0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
templates
/
[
Home
]
File: tiki-view_articles.tpl
{if $prefs.art_home_title ne ''} {title help="Articles" admpage="cms"} {if $prefs.art_home_title eq 'topic' and !empty($topic)}{tr}{$topic|escape}{/tr} {elseif $prefs.art_home_title eq 'type' and !empty($type)}{tr}{$type|escape}{/tr} {else}{tr}Articles{/tr}{/if} {/title} {/if} <div class="clearfix" style="clear: both;"> <div style="float: right; padding-left:10px; white-space: nowrap"> {if $user and $prefs.feature_user_watches eq 'y'} {if $user_watching_articles eq 'n'} {self_link watch_event='article_*' watch_object='*' watch_action='add' _icon='eye' _alt="{tr}Monitor Articles{/tr}" _title="{tr}Monitor Articles{/tr}"}{/self_link} {else} {self_link watch_event='article_*' watch_object='*' watch_action='remove' _icon='no_eye' _alt="{tr}Stop Monitoring Articles{/tr}" _title="{tr}Stop Monitoring Articles{/tr}"}{/self_link} {/if} {/if} {if $prefs.feature_group_watches eq 'y' and $tiki_p_admin_users eq 'y'} <a href="tiki-object_watches.php?watch_event=article_*&objectId=*" class="icon">{icon _id='eye_group' alt="{tr}Group Monitor{/tr}"}</a> {/if} </div> </div> {section name=ix loop=$listpages} {capture name=href}{if empty($urlparam)}{$listpages[ix].articleId|sefurl:article}{else}{$listpages[ix].articleId|sefurl:article:with_next}{$urlparam}{/if}{/capture} {if $listpages[ix].disp_article eq 'y'} {if $prefs.feature_freetags eq 'y' and $tiki_p_view_freetags eq 'y' and $listpages[ix].freetags.data|@count >0} <div class="freetaglist"> {foreach from=$listpages[ix].freetags.data item=taginfo} {capture name=tagurl}{if (strstr($taginfo.tag, ' '))}"{$taginfo.tag}"{else}{$taginfo.tag}{/if}{/capture} <a class="freetag" href="tiki-browse_freetags.php?tag={$smarty.capture.tagurl|escape:'url'}">{$taginfo.tag}</a> {/foreach} </div> {/if} <div class="article{if !empty($container_class)} {$container_class}{/if}"> {if $listpages[ix].show_topline eq 'y' and $listpages[ix].topline}<div class="articletopline">{$listpages[ix].topline|escape}</div>{/if} <div class="articletitle"> <h2>{object_link type=article id=$listpages[ix].articleId url=$smarty.capture.href title=$listpages[ix].title}</h2> {if $listpages[ix].show_subtitle eq 'y' and $listpages[ix].subtitle}<div class="articlesubtitle">{$listpages[ix].subtitle|escape}</div>{/if} {if ($listpages[ix].show_author eq 'y') or ($listpages[ix].show_pubdate eq 'y') or ($listpages[ix].show_expdate eq 'y') or ($listpages[ix].show_reads eq 'y')} <span class="titleb"> {if $listpages[ix].show_author eq 'y'} {tr}By:{/tr} {$listpages[ix].authorName|escape} {/if} {if $listpages[ix].show_pubdate eq 'y'} {$listpages[ix].publishDate|tiki_short_datetime:'On:'} {/if} {if $listpages[ix].show_expdate eq 'y'} {tr}expires:{/tr} {$listpages[ix].expireDate|tiki_short_datetime} {/if} {if $listpages[ix].show_reads eq 'y'} ({$listpages[ix].nbreads} {tr}Reads{/tr}) {/if} </span><br /> {/if} </div> {if $listpages[ix].use_ratings eq 'y'} <div class="articleheading"> {tr}Rating:{/tr} {repeat count=$listpages[ix].rating} {icon _id='star' alt="{tr}star{/tr}"} {/repeat} {if $listpages[ix].rating > $listpages[ix].entrating} {icon _id='star_half' alt="{tr}half star{/tr}"} {/if} ({$listpages[ix].rating}/10) </div> {/if} <div class="articleheading"> <table cellpadding="0" cellspacing="0"> <tr> <td valign="top"> {if $listpages[ix].show_image eq 'y'} {if $listpages[ix].useImage eq 'y'} {if $listpages[ix].hasImage eq 'y'} <a href="{$smarty.capture.href}" title="{if $listpages[ix].show_image_caption and $listpages[ix].image_caption}{$listpages[ix].image_caption|escape}{elseif $listpages[ix].topicName}{tr}{$listpages[ix].topicName}{/tr}{else}{tr}Read More{/tr}{/if}"> <img {if $listpages[ix].isfloat eq 'y'}style="margin-right:4px;float:left;"{else}class="articleimage"{/if} alt="{if $listpages[ix].show_image_caption and $listpages[ix].image_caption}{$listpages[ix].image_caption|escape}{elseif $listpages[ix].topicName}{tr}{$listpages[ix].topicName}{/tr}{/if}" src="article_image.php?image_type=article&id={$listpages[ix].articleId} {if $listpages[ix].list_image_x > 0} {if $largefirstimage eq 'y' and $smarty.section.ix.first} {if $listpages[ix].image_x > 0}&width={$listpages[ix].image_x}{/if} {else} &width={$listpages[ix].list_image_x}&cache=y {/if} {elseif $listpages[ix].image_x > 0} &width={$listpages[ix].image_x}&cache=y {else} &cache=y {/if}" /> </a> {else} {* Intentionally left blank to allow user add an image from somewhere else through the img tag and no other extra image *} {/if} {else} {section name=it loop=$topics} {if ($topics[it].topicId eq $listpages[ix].topicId) and ($topics[it].image_size > 0)} <a href="{$smarty.capture.href}" title="{if $listpages[ix].show_image_caption and $listpages[ix].image_caption}{$listpages[ix].image_caption|escape}{else}{tr}{$listpages[ix].topicName}{/tr}{/if}"> <img {if $listpages[ix].isfloat eq 'y'}style="margin-right:4px;float:left;"{else}class="articleimage"{/if} alt="{if $listpages[ix].show_image_caption and $listpages[ix].image_caption}{$listpages[ix].image_caption|escape}{else}{tr}{$listpages[ix].topicName}{/tr}{/if}" src="article_image.php?image_type=topic&id={$listpages[ix].topicId}" /> </a> {/if} {/section} {/if} {/if} {if ($listpages[ix].show_avatar eq 'y')} {$listpages[ix].author|avatarize} {/if} {if $listpages[ix].isfloat eq 'n'} </td><td valign="top"> {/if} <div class="articleheadingtext">{$listpages[ix].parsed_heading}</div> {if isset($fullbody) and $fullbody eq "y"} <div class="articlebody">{$listpages[ix].parsed_body}</div> {/if} </td> </tr> </table> </div> <div class="articletrailer"> {if ($listpages[ix].size > 0) or (($prefs.feature_article_comments eq 'y') and ($tiki_p_read_comments eq 'y'))} {if ($tiki_p_read_article eq 'y' and $listpages[ix].heading_only ne 'y' and (!isset($fullbody) or $fullbody ne "y"))} {if ($listpages[ix].size > 0)} <div class="status"> {* named to be similar to forum/blog item *} <a href="{$smarty.capture.href}" class="more">{tr}Read More{/tr}</a> </div> {if ($listpages[ix].show_size eq 'y')} <span> ({$listpages[ix].size} {tr}bytes{/tr}) </span> {/if} {/if} {/if} {if ($prefs.feature_article_comments eq 'y') and ($tiki_p_read_comments eq 'y') and ($listpages[ix].allow_comments eq 'y')} <span> <a href="{$listpages[ix].articleId|sefurl:article:with_next}show_comzone=y{if !empty($urlparam)}&{$urlparam}{/if}#comments"{if $listpages[ix].comments_cant > 0} class="highlight"{/if}> {if $listpages[ix].comments_cant == 0 or ($tiki_p_read_comments == 'n' and $tiki_p_post_comments == 'y')} {if !isset($actions) or $actions eq "y"} {tr}Add Comment{/tr} {/if} {elseif $listpages[ix].comments_cant == 1} {tr}1 comment{/tr} {else} {$listpages[ix].comments_cant} {tr}comments{/tr} {/if} </a> </span> {/if} {/if} {if !isset($actions) or $actions eq "y"} <div class="actions"> {if $tiki_p_edit_article eq 'y' or ($listpages[ix].author eq $user and $listpages[ix].creator_edit eq 'y')} <a class="icon" href="tiki-edit_article.php?articleId={$listpages[ix].articleId}">{icon _id='page_edit'}</a> {/if} {if $prefs.feature_cms_print eq 'y'} <a class="icon" href="tiki-print_article.php?articleId={$listpages[ix].articleId}">{icon _id='printer' alt="{tr}Print{/tr}"}</a> {/if} {if $prefs.feature_multilingual eq 'y' and $tiki_p_edit_article eq 'y'} <a class="icon" href="tiki-edit_translation.php?id={$listpages[ix].articleId}&type=article">{icon _id='world' alt="{tr}Translation{/tr}"}</a> {/if} {if $tiki_p_remove_article eq 'y'} <a class="icon" href="tiki-list_articles.php?remove={$listpages[ix].articleId}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a> {/if} </div> {/if} </div> </div> {/if} {sectionelse} {if $quiet ne 'y'}{tr}No articles yet.{/tr} {if $tiki_p_edit_article eq 'y'}<a href="tiki-edit_article.php">{tr}Add an article{/tr}</a>{/if} {/if} {/section} {if !empty($listpages) && $usePagination ne 'n'} {pagination_links cant=$cant step=$maxArticles offset=$offset}{$urlnext}{/pagination_links} {/if}
© 2017 -
ZeroByte.ID
.