Commit | Line | Data |
---|---|---|
2dbac9ad | 1 | {if $boxPosition == 'sidebarLeft' || $boxPosition == 'sidebarRight'} |
2aa9dc9e | 2 | <ul class="sidebarItemList"> |
2dbac9ad MW |
3 | {foreach from=$boxArticleList item=boxArticle} |
4 | <li> | |
6bcfefb9 MW |
5 | <a href="{$boxArticle->getLink()}" class="box64"> |
6 | <span>{if $boxArticle->getImage()}{@$boxArticle->getImage()->getElementTag(64)}{/if}</span> | |
2dbac9ad MW |
7 | |
8 | <div> | |
9 | <h3>{$boxArticle->getTitle()}</h3> | |
10 | <small> | |
11 | {if $boxSortField == 'time'} | |
12 | {@$boxArticle->time|time} | |
13 | {elseif $boxSortField == 'views'} | |
14 | {lang article=$boxArticle}wcf.article.articleViews{/lang} | |
15 | {elseif $boxSortField == 'comments'} | |
16 | {lang article=$boxArticle}wcf.article.articleComments{/lang} | |
17 | {elseif $boxSortField == 'cumulativeLikes'} | |
18 | {if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike') && ($boxArticle->likes || $boxArticle->dislikes)} | |
19 | <span class="wcfLikeCounter{if $boxArticle->cumulativeLikes > 0} likeCounterLiked{elseif $boxArticle->cumulativeLikes < 0}likeCounterDisliked{/if}"> | |
20 | <span class="icon icon16 fa-thumbs-o-{if $boxArticle->cumulativeLikes < 0}down{else}up{/if} jsTooltip" title="{lang likes=$boxArticle->likes dislikes=$boxArticle->dislikes}wcf.like.tooltip{/lang}"></span>{if $boxArticle->cumulativeLikes > 0}+{elseif $boxArticle->cumulativeLikes == 0}±{/if}{#$boxArticle->cumulativeLikes} | |
21 | </span> | |
22 | {/if} | |
23 | {/if} | |
24 | </small> | |
25 | </div> | |
26 | </a> | |
27 | </li> | |
28 | {/foreach} | |
29 | </ul> | |
30 | {elseif $boxPosition == 'footerBoxes'} | |
31 | <ul class="articleList"> | |
32 | {foreach from=$boxArticleList item=boxArticle} | |
33 | <li> | |
34 | <a href="{$boxArticle->getLink()}"> | |
f4d9e975 | 35 | {if $boxArticle->getImage() && $boxArticle->getImage()->hasThumbnail('small')} |
2dbac9ad MW |
36 | <div class="articleListImage">{@$boxArticle->getImage()->getThumbnailTag('small')}</div> |
37 | {/if} | |
38 | ||
39 | <h3 class="articleListTitle">{$boxArticle->getTitle()}</h3> | |
40 | <ul class="inlineList articleListMetaData"> | |
41 | <li> | |
42 | <span class="icon icon16 fa-clock-o"></span> | |
43 | {@$boxArticle->time|time} | |
44 | </li> | |
45 | ||
46 | <li> | |
47 | <span class="icon icon16 fa-comments"></span> | |
48 | {lang article=$boxArticle}wcf.article.articleComments{/lang} | |
49 | </li> | |
50 | </ul> | |
51 | </a> | |
52 | </li> | |
53 | {/foreach} | |
54 | </ul> | |
55 | {else} | |
56 | {include file='articleListItems' objects=$boxArticleList} | |
57 | {/if} |