diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2008-07-25 19:28:17 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2008-07-25 19:28:17 +0000 |
| commit | 93ec0a8de18fafda6e60f10d6e3ccaea73057948 (patch) | |
| tree | b8dc01031b452d23d212c154a09e910914764740 /templates/article_display.tpl | |
| parent | 0bc42dcb1ce5d558be3f3123f94c3d48085be1a5 (diff) | |
| download | articles-93ec0a8de18fafda6e60f10d6e3ccaea73057948.tar.gz articles-93ec0a8de18fafda6e60f10d6e3ccaea73057948.tar.bz2 articles-93ec0a8de18fafda6e60f10d6e3ccaea73057948.zip | |
only try to display image when we have something to display
Diffstat (limited to 'templates/article_display.tpl')
| -rw-r--r-- | templates/article_display.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/article_display.tpl b/templates/article_display.tpl index 34d7f46..d9b896a 100644 --- a/templates/article_display.tpl +++ b/templates/article_display.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_articles/templates/article_display.tpl,v 1.51 2008/07/25 15:53:38 squareing Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_articles/templates/article_display.tpl,v 1.52 2008/07/25 19:28:17 bitweaver Exp $ *} {strip} {if !$showDescriptionsOnly} {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='nav' serviceHash=$article} @@ -39,7 +39,7 @@ <div class="content"> {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$article} {* deal with the article image if there is one *} - {if $article.show_image eq 'y'} + {if $article.show_image eq 'y' && ( $article.thumbnail_url || $article.primary_attachment )} <div class="image"> {assign var=size value=$gBitSystem->getConfig('articles_image_size','small')} {if $showDescriptionsOnly and $article.has_more} |
