summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorturon <spider@turon>2014-12-29 17:20:43 -0500
committerturon <spider@turon>2014-12-29 17:20:43 -0500
commit49324f8ae91f50322124ad9e7da5f63ceb79442c (patch)
treec98fd7e7c2971625dd56286772be2ebede8ce210 /templates
parent77c62592c8ecb37cbce707876a49959fb01989d1 (diff)
downloadwiki-49324f8ae91f50322124ad9e7da5f63ceb79442c.tar.gz
wiki-49324f8ae91f50322124ad9e7da5f63ceb79442c.tar.bz2
wiki-49324f8ae91f50322124ad9e7da5f63ceb79442c.zip
handle notitle/showTitle flag
Diffstat (limited to 'templates')
-rw-r--r--templates/center_wiki_page.php6
-rw-r--r--templates/center_wiki_page.tpl2
2 files changed, 6 insertions, 2 deletions
diff --git a/templates/center_wiki_page.php b/templates/center_wiki_page.php
index da4fa9d..d324239 100644
--- a/templates/center_wiki_page.php
+++ b/templates/center_wiki_page.php
@@ -8,8 +8,12 @@ $lookupHash['page'] = ( !empty( $moduleParams['module_params']['page'] )
// make sure gContent doesn't hold any information in case this is included multiple times
$gContent = NULL;
include( WIKI_PKG_PATH."lookup_page_inc.php" );
-if( !empty( $moduleParams['title'] )) {
+$showTitle = TRUE;
+if( !empty( $moduleParams['module_params']['notitle'] ) ) {
+ $showTitle = FALSE;
+} elseif( !empty( $moduleParams['title'] )) {
$gContent->mInfo['title'] = $moduleParams['title'];
}
+$_template->tpl_vars['showTitle'] = $showTitle;
$_template->tpl_vars['gContent'] = new Smarty_variable( $gContent );
diff --git a/templates/center_wiki_page.tpl b/templates/center_wiki_page.tpl
index d85745b..526132e 100644
--- a/templates/center_wiki_page.tpl
+++ b/templates/center_wiki_page.tpl
@@ -10,7 +10,7 @@
{/if}
</div> <!-- End Actions -->
- {if $gContent->mInfo.title}
+ {if $showTitle && $gContent->mInfo.title}
<div class="header"><h1>{$gContent->mInfo.title|escape}</h1></div>
{/if}