Skip to content

Commit

Permalink
Update author list template to hide on post detail (DNNCommunity#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-poindexter authored Sep 5, 2022
1 parent 9597173 commit 80271d2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.dnn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<dotnetnuke type="Package" version="9.0">
<packages>
<package name="nvisionative.DNNCommunityTheme" type="Skin" version="1.2.0">
<package name="nvisionative.DNNCommunityTheme" type="Skin" version="1.2.1">
<friendlyName>DNNCommunityTheme</friendlyName>
<description>A DNN Theme by and for the DNN Community</description>
<iconFile>MyIcon.png</iconFile>
Expand Down
2 changes: 1 addition & 1 deletion project-details.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"project": "DNNCommunityTheme",
"version": "1.2.0",
"version": "1.2.1",
"author": "David Poindexter",
"company": "nvisionative",
"url": "www.nvisionative.com",
Expand Down
13 changes: 12 additions & 1 deletion src/Templates/Blog/CommunityAuthorList/Template.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<div id="authorList[module:moduleid]" class="authorList_list">
[subtemplate|Author.html|authors]
[if|1][query:postselected][=]False[/if]
<h2>Blog Authors</h2>
[subtemplate|Author.html|authors]
[endif|1]
[if|2][query:postselected][=]True[/if]
<script lang="javascript">
var moduleId = [module:moduleid];
document.querySelector('.DnnModule-' + moduleId).remove();
document.querySelector('#dnn_WideLeftPane').classList.replace('col-lg-8', 'col-auto');
document.querySelector('#dnn_NarrowRightPane').classList.replace('col-lg-4', 'col');
</script>
[endif|2]
</div>

0 comments on commit 80271d2

Please sign in to comment.