diff options
Diffstat (limited to 'templates/view_blog_post.tpl')
| -rwxr-xr-x | templates/view_blog_post.tpl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/view_blog_post.tpl b/templates/view_blog_post.tpl index 70bbb2b..05a7170 100755 --- a/templates/view_blog_post.tpl +++ b/templates/view_blog_post.tpl @@ -1,6 +1,6 @@ {* $Header$ *} {if empty($print_page)}{assign var=print_page value=false}{/if} -{if !empty($liberty_preview) or !empty($preview)} +{if !empty($liberty_preview) || !empty($preview)} <!-- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" @@ -23,7 +23,7 @@ <div class="floaticon"> {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$post_info} {if $gBitUser->hasPermission( 'p_users_view_icons_and_tools' )} - {if $gBitSystem->isPackageActive( 'rss' ) and $gBitSystem->isFeatureActive( 'rss_blogs' )} + {if $gBitSystem->isPackageActive( 'rss' ) && $gBitSystem->isFeatureActive( 'rss_blogs' )} <a href="{$smarty.const.BLOGS_PKG_URL}blogs_rss.php?user_id={$post_info.user_id}">{booticon iname="icon-rss" ipackage="icons" iexplain="RSS feed"}</a> {/if} @@ -67,7 +67,7 @@ </div> <h1> - {if $post_info.use_title eq 'y' and $post_info.title} + {if $post_info.use_title eq 'y' && $post_info.title} {$post_info.title|escape|highlight} {else} {$post_info.publish_date|default:$post_info.created|bit_long_date} @@ -80,7 +80,7 @@ {if count($post_info.blogs) > 0} {tr}Posted to{/tr} {foreach from=$post_info.blogs item=memberBlog key=blogContentId name=memberBlogLoop} - <a href="{$memberBlog.blog_url}">{$memberBlog.title}</a>{if $smarty.foreach.memberBlogLoop.total > 1 and !$smarty.foreach.memberBlogLoop.last }, {/if} + <a href="{$memberBlog.blog_url}">{$memberBlog.title}</a>{if $smarty.foreach.memberBlogLoop.total > 1 && !$smarty.foreach.memberBlogLoop.last }, {/if} {/foreach} <br /> {/if} @@ -89,7 +89,7 @@ </div> <div class="body" - {if $gBitUser->getPreference( 'users_double_click' ) eq 'y' and (($ownsblog eq 'y') or $gContent->hasUserPermission( 'p_blogs_admin' ))} + {if $gBitUser->getPreference( 'users_double_click' ) eq 'y' && (($ownsblog eq 'y') || $gContent->hasUserPermission( 'p_blogs_admin' ))} ondblclick="location.href='{$smarty.const.BLOGS_PKG_URL}post.php?post_id={$post_info.post_id}';" {/if} > @@ -97,7 +97,7 @@ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$post_info} {* deal with the blog post image if there is one *} - {if $gBitSystem->isFeatureActive( 'blog_show_image' ) and $post_info.thumbnail_url} + {if $gBitSystem->isFeatureActive( 'blog_show_image' ) && $post_info.thumbnail_url} <div class="image primary"> {jspopup notra=1 href=$post_info.thumbnail_url.original alt=$post_info.title|escape title=$post_info.title|escape img=$post_info.thumbnail_url.medium} </div> @@ -126,7 +126,7 @@ {/if} </div> {* end .footer *} - {if !empty($pages) and $pages > 1} + {if !empty($pages) && $pages > 1} <div class="pagination"> <a href="{$smarty.const.BLOGS_PKG_URL}view_post.php?blog_id={$smarty.request.blog_id}&post_id={$smarty.request.post_id}&page={$first_page}">{booticon ipackage="icons" iname="go-first" iexplain="first page"}</a> <a href="{$smarty.const.BLOGS_PKG_URL}view_post.php?blog_id={$smarty.request.blog_id}&post_id={$smarty.request.post_id}&page={$prev_page}">{booticon iname="icon-arrow-left" ipackage="icons" iexplain="previous page"}</a> @@ -156,7 +156,7 @@ {/if} </div> {* end .blog *} -{if $gBitSystem->isFeatureActive( 'blog_posts_comments' ) and !empty($preview) and !empty($liberty_preview)} +{if $gBitSystem->isFeatureActive( 'blog_posts_comments' ) && !empty($preview) && !empty($liberty_preview)} {include file="bitpackage:liberty/comments.tpl"} {/if} |
