Commit | Line | Data |
---|---|---|
2dbac9ad | 1 | {if $boxPosition == 'sidebarLeft' || $boxPosition == 'sidebarRight'} |
2aa9dc9e | 2 | <ul class="sidebarItemList"> |
2dbac9ad | 3 | {foreach from=$boxArticleList item=boxArticle} |
20ffd375 MW |
4 | <li class="box24 sidebarItem"> |
5 | <a href="{$boxArticle->getLink()}" aria-hidden="true" tabindex="-1">{unsafe:$boxArticle->getUserProfile()->getAvatar()->getImageTag(24)}</a> | |
6 | ||
7 | <div class="sidebarItemTitle"> | |
8 | <h3><a href="{$boxArticle->getLink()}">{$boxArticle->getTitle()}</a></h3> | |
2dbac9ad | 9 | |
20ffd375 MW |
10 | <small> |
11 | {if $boxSortField == 'time'} | |
12 | {user object=$boxArticle->getUserProfile() tabindex='-1'} | |
13 | <span class="separatorLeft">{time time=$boxArticle->time}</span> | |
14 | {elseif $boxSortField == 'views'} | |
15 | {lang article=$boxArticle}wcf.article.articleViews{/lang} | |
16 | {elseif $boxSortField == 'comments'} | |
17 | {$boxArticle->getDiscussionProvider()->getDiscussionCountPhrase()} | |
18 | {elseif $boxSortField == 'cumulativeLikes'} | |
19 | {if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike') && $boxArticle->cachedReactions} | |
20 | {include file='shared_topReaction' cachedReactions=$boxArticle->cachedReactions render='full'} | |
2dbac9ad | 21 | {/if} |
20ffd375 MW |
22 | {/if} |
23 | </small> | |
24 | </div> | |
2dbac9ad MW |
25 | </li> |
26 | {/foreach} | |
27 | </ul> | |
28 | {elseif $boxPosition == 'footerBoxes'} | |
29 | <ul class="articleList"> | |
30 | {foreach from=$boxArticleList item=boxArticle} | |
31 | <li> | |
32 | <a href="{$boxArticle->getLink()}"> | |
b7f936eb | 33 | {if $boxArticle->getTeaserImage() && $boxArticle->getTeaserImage()->hasThumbnail('small')} |
20ffd375 | 34 | <div class="articleListImage">{unsafe:$boxArticle->getTeaserImage()->getThumbnailTag('small')}</div> |
ae6683db AE |
35 | {else} |
36 | <div class="articleListImage"> | |
37 | <img src="{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoURL()}" alt="" | |
20ffd375 | 38 | style="height: {$__wcf->getStyleHandler()->getStyle()->getCoverPhotoHeight()}px; width: {$__wcf->getStyleHandler()->getStyle()->getCoverPhotoWidth()}px"> |
ae6683db | 39 | </div> |
2dbac9ad MW |
40 | {/if} |
41 | ||
42 | <h3 class="articleListTitle">{$boxArticle->getTitle()}</h3> | |
43 | <ul class="inlineList articleListMetaData"> | |
44 | <li> | |
ab43711a | 45 | {icon name='clock'} |
20ffd375 | 46 | {time time=$boxArticle->time} |
2dbac9ad MW |
47 | </li> |
48 | ||
49 | <li> | |
ab43711a | 50 | {icon name='comments'} |
27cc87cd | 51 | {$boxArticle->getDiscussionProvider()->getDiscussionCountPhrase()} |
2dbac9ad MW |
52 | </li> |
53 | </ul> | |
54 | </a> | |
55 | </li> | |
56 | {/foreach} | |
57 | </ul> | |
58 | {else} | |
4a9b28a5 | 59 | {include file='articleListItems' objects=$boxArticleList disableAds=true} |
2dbac9ad | 60 | {/if} |