0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
tikiwiki
/
1.9.7-31
/
htdocs
/
templates
/
[
Home
]
File: tiki-view_blog.tpl
{if strlen($heading) > 0} {eval var=$heading} {else} {include file="blog-heading.tpl"} {/if} {if $use_find eq 'y'} <div class="blogtools"> <table><tr><td> <form action="tiki-view_blog.php" method="get"> <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" /> <input type="hidden" name="blogId" value="{$blogId|escape}" /> {tr}Find:{/tr} <input type="text" name="find" value="{$find|regex_replace:"/\"/":"'"}" /> <input type="submit" name="search" value="{tr}find{/tr}" /> </form> </td><td> <!-- {tr}Sort posts by:{/tr} <a class="bloglink" href="tiki-view_blog.php?blogId={$blogId}&offset={$offset}&sort_mode={if $sort_mode eq 'created_desc'}created_asc{else}created_desc{/if}">{tr}Date{/tr}</a> --> </td></tr></table> </div> {/if} {section name=ix loop=$listpages} <div class="blogpost"> <div class="posthead"> {if $use_title eq 'y'} <h3>{$listpages[ix].title}</h3> {else} <h3>{$listpages[ix].created|tiki_short_datetime}</h3> {/if} <table ><tr><td align="left"> <span class="posthead"> {if $use_title eq 'y'} <small> {tr}posted by{/tr} {$listpages[ix].user|userlink} {if $show_avatar eq 'y'} {$listpages[ix].avatar} {/if} {tr}on{/tr} {$listpages[ix].created|tiki_short_datetime}</small> {else} <small> {tr}posted by{/tr} {$listpages[ix].user} {if $show_avatar eq 'y'} {$listpages[ix].avatar} {/if} </small> {/if} </span> </td><td align="right"> {if ($ownsblog eq 'y') or ($user and $listpages[ix].user eq $user) or $tiki_p_blog_admin eq 'y'} <a class="blogt" href="tiki-blog_post.php?blogId={$listpages[ix].blogId}&postId={$listpages[ix].postId}"><img border='0' src='img/icons/edit.gif' alt='{tr}Edit{/tr}' title='{tr}Edit{/tr}' /></a> <a class="blogt" href="tiki-view_blog.php?blogId={$blogId}&remove={$listpages[ix].postId}"><img src='img/icons2/delete.gif' alt='{tr}Remove{/tr}' border='0' title='{tr}Remove{/tr}' /></a> {/if} {if $user and $feature_notepad eq 'y' and $tiki_p_notepad eq 'y'} <a title="{tr}Save to notepad{/tr}" href="tiki-view_blog.php?blogId={$blogId}&savenotepad={$listpages[ix].postId}">{html_image file='img/icons/ico_save.gif' border='0' alt='{tr}save{/tr}'}</a> {/if} </td></tr></table> </div> <div class="postbody"> {$listpages[ix].parsed_data} {if $listpages[ix].pages > 1} <a class="link" href="tiki-view_blog_post.php?blogId={$blogId}&postId={$listpages[ix].postId}">{tr}read more{/tr} ({$listpages[ix].pages} {tr}pages{/tr})</a> {/if} <hr/> <table ><tr><td> <small> <a class="link" href="tiki-view_blog_post.php?blogId={$blogId}&postId={$listpages[ix].postId}">{tr}Permalink{/tr}</a> ({tr}referenced by{/tr}: {$listpages[ix].trackbacks_from_count} {tr}posts{/tr} / {tr}references{/tr}: {$listpages[ix].trackbacks_to_count} {tr}posts{/tr}) {if $allow_comments eq 'y' and $feature_blogposts_comments eq 'y'} {$listpages[ix].comments} {tr}comments{/tr} [<a class="link" href="tiki-view_blog_post.php?find={$find}&blogId={$blogId}&offset={$offset}&sort_mode={$sort_mode}&postId={$listpages[ix].postId}&show_comments=1">{tr}view comments{/tr}</a>] {/if} </small> </td><td style='text-align:right'> <a href='tiki-print_blog_post.php?postId={$listpages[ix].postId}'><img src='img/icons/ico_print.gif' border='0' alt='{tr}print{/tr}' title='{tr}print{/tr}' /></a> <a href='tiki-send_blog_post.php?postId={$listpages[ix].postId}'><img src='img/icons/email.gif' border='0' alt='{tr}email this post{/tr}' title='{tr}email this post{/tr}' /></a> </td></tr></table> </div> </div> {/section} <br /> <div align="center"> <div class="mini"> {if $prev_offset >= 0} [<a class="blogprevnext" href="tiki-view_blog.php?find={$find}&blogId={$blogId}&offset={$prev_offset}&sort_mode={$sort_mode}">{tr}prev{/tr}</a>] {/if} {tr}Page{/tr}: {$actual_page}/{$cant_pages} {if $next_offset >= 0} [<a class="blogprevnext" href="tiki-view_blog.php?find={$find}&blogId={$blogId}&offset={$next_offset}&sort_mode={$sort_mode}">{tr}next{/tr}</a>] {/if} {if $direct_pagination eq 'y'} <br /> {section loop=$cant_pages name=foo} {assign var=selector_offset value=$smarty.section.foo.index|times:$maxRecords} <a class="prevnext" href="tiki-view_blog.php?find={$find}&blogId={$blogId}&offset={$selector_offset}&sort_mode={$sort_mode}"> {$smarty.section.foo.index_next}</a> {/section} {/if} </div> </div> {if $feature_blog_comments == 'y' && (($tiki_p_read_comments == 'y' && $comments_cant != 0) || $tiki_p_post_comments == 'y' || $tiki_p_edit_comments == 'y')} <div id="page-bar"> <table> <tr><td> <div class="button2"> <a href="#comments" onclick="javascript:flip('comzone{if $comments_show eq 'y'}open{/if}');" class="linkbut"> {if $comments_cant == 0} {tr}add comment{/tr} {elseif $comments_cant == 1} <span class="highlight">{tr}1 comment{/tr}</span> {else} <span class="highlight">{$comments_cant} {tr}comments{/tr}</span> {/if} </a> </div> </td></tr></table> </div> {include file=comments.tpl} {/if}