From: <pas...@us...> - 2010-01-18 22:10:00
|
Revision: 24522 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=24522&view=rev Author: pascalstjean Date: 2010-01-18 22:09:54 +0000 (Mon, 18 Jan 2010) Log Message: ----------- [NEW] using new use_author and add_date to properly control the display of Blog Title, Author and Date Modified Paths: -------------- trunk/templates/tiki-view_blog_post.tpl Modified: trunk/templates/tiki-view_blog_post.tpl =================================================================== --- trunk/templates/tiki-view_blog_post.tpl 2010-01-18 22:01:56 UTC (rev 24521) +++ trunk/templates/tiki-view_blog_post.tpl 2010-01-18 22:09:54 UTC (rev 24522) @@ -16,21 +16,30 @@ {/if} </div> <div class="author_info"> - {if $blog_data.show_avatar eq 'y'} - {$post_info.avatar} + {if $blog_data.use_author eq 'y' || $blog_data.add_date eq 'y'} + {tr}Published {/tr} {/if} - {if $blog_data.use_title eq 'y'} - {tr}By{/tr} {$post_info.user|userlink} {tr}on{/tr} {$post_info.created|tiki_short_datetime} - {else} - {tr}By{/tr} {$post_info.user|userlink} + {if $blog_data.use_author eq 'y'} + {tr}by{/tr} {$post_info.user|userlink} {/if} + + {if $blog_data.add_date eq 'y'} + {tr}at{/tr} {$post_info.created|tiki_short_datetime} + {/if} + + {if $blog_data.show_avatar eq 'y'} + {$post_info.avatar} + {/if} </div> </div> <div class="clearfix postbody-title"> + {if $blog_data.use_title eq 'y'} <div class="title"> - <h2>{$post_info.title|escape}</h2> + <h2>{$post_info.title|escape}</h2> </div> + {/if} + {if $prefs.feature_freetags eq 'y' and $tiki_p_view_freetags eq 'y'} {if $tags.data|@count >0} <div class="freetaglist"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |