summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormodela bitweaver <bitweaver@modela>2014-05-23 13:38:30 -0400
committermodela bitweaver <bitweaver@modela>2014-05-23 13:38:30 -0400
commit3af9beeb36851e7ee2b8091dffc4bff01bda1614 (patch)
treed7586e84134a943d9d9d099638c90ea816c48e50 /templates
parent95cfde7880d46ac8d1d743f8378e25ced3be99d9 (diff)
downloadarticles-3af9beeb36851e7ee2b8091dffc4bff01bda1614.tar.gz
articles-3af9beeb36851e7ee2b8091dffc4bff01bda1614.tar.bz2
articles-3af9beeb36851e7ee2b8091dffc4bff01bda1614.zip
fix articles for smarty3
Diffstat (limited to 'templates')
-rw-r--r--templates/article_display.tpl2
-rw-r--r--templates/center_list_articles.php2
-rw-r--r--templates/center_list_articles.tpl4
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}&nbsp;
+ {displayname hash=$article}&nbsp;
{/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 />