diff options
| author | spider <spider@bitweaver.org> | 2015-01-30 13:58:43 -0500 |
|---|---|---|
| committer | spider <spider@bitweaver.org> | 2015-01-30 13:58:43 -0500 |
| commit | b9f234e15249047b00f6de38c58840ce503bc5bd (patch) | |
| tree | c6529b113c49b1fa9e45703fd62e4b4d7641c364 /templates | |
| parent | 49324f8ae91f50322124ad9e7da5f63ceb79442c (diff) | |
| download | wiki-b9f234e15249047b00f6de38c58840ce503bc5bd.tar.gz wiki-b9f234e15249047b00f6de38c58840ce503bc5bd.tar.bz2 wiki-b9f234e15249047b00f6de38c58840ce503bc5bd.zip | |
fix showTitle in center
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/center_wiki_page.php | 3 | ||||
| -rw-r--r-- | templates/center_wiki_page.tpl | 15 |
2 files changed, 10 insertions, 8 deletions
diff --git a/templates/center_wiki_page.php b/templates/center_wiki_page.php index d324239..4bd4329 100644 --- a/templates/center_wiki_page.php +++ b/templates/center_wiki_page.php @@ -14,6 +14,5 @@ if( !empty( $moduleParams['module_params']['notitle'] ) ) { } elseif( !empty( $moduleParams['title'] )) { $gContent->mInfo['title'] = $moduleParams['title']; } - -$_template->tpl_vars['showTitle'] = $showTitle; +$_template->tpl_vars['showTitle'] = new Smarty_variable( $showTitle ); $_template->tpl_vars['gContent'] = new Smarty_variable( $gContent ); diff --git a/templates/center_wiki_page.tpl b/templates/center_wiki_page.tpl index 526132e..ae80c22 100644 --- a/templates/center_wiki_page.tpl +++ b/templates/center_wiki_page.tpl @@ -1,27 +1,30 @@ {strip} {if $gContent} <div class="display wiki"> - <div class="floaticon"> <!-- Actions --> + <nav class="floaticon"> <!-- Actions --> {if $gContent->hasUpdatePermission()} <a href="{$smarty.const.WIKI_PKG_URL}edit.php?page_id={$gContent->mInfo.page_id}">{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}</a> {/if} {if $gBitSystem->isPackageActive( 'pdf' ) && $gContent->hasUserPermission( 'p_pdf_generation' )} <a title="{tr}create PDF{/tr}" href="{$smarty.const.PDF_PKG_URL}?page_id={$gContent->mInfo.page_id}">{biticon ipackage="pdf" iname="pdf" iexplain="PDF"}</a> {/if} - </div> <!-- End Actions --> + </nav> <!-- End Actions --> - {if $showTitle && $gContent->mInfo.title} - <div class="header"><h1>{$gContent->mInfo.title|escape}</h1></div> + {if $showTitle} + <header> + <h1>{$gContent->getTitle()|escape}</h1> + {if $gContent->getField('summary')}<small>{$gContent->getField('summary')}</small>{/if} + </header> {/if} - <div class="body"> + <section class="body"> <div class="content"> {if $gBitSystem->isFeatureActive( 'liberty_auto_display_attachment_thumbs' )} {include file="bitpackage:liberty/storage_thumbs.tpl"} {/if} {$gContent->mInfo.parsed_data} </div> - </div> + </section> </div> {/if} {/strip} |
