diff options
| author | modela bitweaver <bitweaver@modela> | 2014-05-23 13:38:30 -0400 |
|---|---|---|
| committer | modela bitweaver <bitweaver@modela> | 2014-05-23 13:38:30 -0400 |
| commit | 3af9beeb36851e7ee2b8091dffc4bff01bda1614 (patch) | |
| tree | d7586e84134a943d9d9d099638c90ea816c48e50 /templates | |
| parent | 95cfde7880d46ac8d1d743f8378e25ced3be99d9 (diff) | |
| download | articles-3af9beeb36851e7ee2b8091dffc4bff01bda1614.tar.gz articles-3af9beeb36851e7ee2b8091dffc4bff01bda1614.tar.bz2 articles-3af9beeb36851e7ee2b8091dffc4bff01bda1614.zip | |
fix articles for smarty3
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/article_display.tpl | 2 | ||||
| -rw-r--r-- | templates/center_list_articles.php | 2 | ||||
| -rw-r--r-- | templates/center_list_articles.tpl | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/templates/article_display.tpl b/templates/article_display.tpl index 66f9be4..33610f9 100644 --- a/templates/article_display.tpl +++ b/templates/article_display.tpl @@ -25,7 +25,7 @@ <div class="date"> {if $article.show_author eq 'y'} {* can't really use the link here since it only works when the user uses his login name *} - {$article.author_name} + {displayname hash=$article} {/if} {if $article.show_pubdate eq 'y'} diff --git a/templates/center_list_articles.php b/templates/center_list_articles.php index 22d45f8..1f6c578 100644 --- a/templates/center_list_articles.php +++ b/templates/center_list_articles.php @@ -43,7 +43,7 @@ $_template->tpl_vars['articles'] = new Smarty_variable( $articles ); $_template->tpl_vars['listInfo'] = new Smarty_variable( $listHash['listInfo'] ); // show only descriptions on listing page -$gBitSmarty->assign( 'showDescriptionsOnly', TRUE ); +$_template->tpl_vars['showDescriptionsOnly'] = new Smarty_variable( TRUE ); // display submissions if we have the perm to approve them if( $gBitUser->hasPermission( 'p_articles_approve_submission' ) || ( $gBitSystem->isFeatureActive( 'articles_auto_approve' ) && $gBitUser->isRegistered() )) { diff --git a/templates/center_list_articles.tpl b/templates/center_list_articles.tpl index 1531e1b..897df09 100644 --- a/templates/center_list_articles.tpl +++ b/templates/center_list_articles.tpl @@ -28,7 +28,9 @@ {/if} {foreach from=$articles item=article} - {include file="bitpackage:articles/article_display.tpl"} + <div class="clear"> + {include file="bitpackage:articles/article_display.tpl"} + </div> {foreachelse} <p class="norecords"> {tr}No records found{/tr}<br /> |
