Commit | Line | Data |
---|---|---|
c9613f13 AE |
1 | {capture assign='pageTitle'}{lang}wcf.tagging.combinedTaggedObjects.{@$objectType}{/lang}{if $pageNo > 1} - {lang}wcf.page.pageNo{/lang}{/if}{/capture} |
2 | ||
3 | {capture assign='contentHeader'} | |
4 | <header class="contentHeader"> | |
5 | <div class="contentHeaderTitle"> | |
6 | <h1 class="contentTitle">{lang}wcf.tagging.combinedTaggedObjects.{@$objectType}{/lang}</h1> | |
7 | <ul class="tagList" style="margin-top: 10px"> | |
8 | {foreach from=$combinedTags item=tag} | |
9 | <li><a href="{link controller='Tagged' object=$tag}objectType={@$objectType}{/link}" class="tag jsTooltip" title="{lang}wcf.tagging.taggedObjects.{@$objectType}{/lang}">{$tag->name}</a></li> | |
10 | {/foreach} | |
11 | </ul> | |
12 | </div> | |
13 | </header> | |
14 | {/capture} | |
15 | ||
16 | {capture assign='linkParameters'}{implode from=$combinedTags item=tag glue='&'}tagIDs[]={@$tag->tagID}{/implode}{/capture} | |
17 | ||
18 | {capture assign='headContent'} | |
19 | {if $pageNo < $pages} | |
20 | <link rel="next" href="{link controller='CombinedTagged'}{@$linkParameters}&objectType={@$objectType}&pageNo={@$pageNo+1}{/link}"> | |
21 | {/if} | |
22 | {if $pageNo > 1} | |
23 | <link rel="prev" href="{link controller='CombinedTagged'}{@$linkParameters}&objectType={@$objectType}{if $pageNo > 2}&pageNo={@$pageNo-1}{/if}{/link}"> | |
24 | {/if} | |
25 | <link rel="canonical" href="{link controller='CombinedTagged'}{@$linkParameters}&objectType={@$objectType}{if $pageNo > 1}&pageNo={@$pageNo}{/if}{/link}"> | |
26 | {/capture} | |
27 | ||
28 | {capture assign='sidebarLeft'} | |
29 | <section class="box" data-static-box-identifier="com.woltlab.wcf.TaggedMenu"> | |
30 | <h2 class="boxTitle">{lang}wcf.tagging.objectTypes{/lang}</h2> | |
31 | ||
32 | <nav class="boxContent"> | |
33 | <ul class="boxMenu"> | |
34 | {foreach from=$availableObjectTypes item=availableObjectType} | |
35 | <li{if $objectType == $availableObjectType->objectType} class="active"{/if}><a class="boxMenuLink" href="{link controller='CombinedTagged'}{@$linkParameters}&objectType={@$availableObjectType->objectType}{/link}">{lang}wcf.tagging.objectType.{@$availableObjectType->objectType}{/lang}</a></li> | |
36 | {/foreach} | |
37 | </ul> | |
38 | </nav> | |
39 | </section> | |
40 | ||
41 | <section class="box" data-static-box-identifier="com.woltlab.wcf.TaggedTagCloud"> | |
42 | <h2 class="boxTitle">{lang}wcf.tagging.tags{/lang}</h2> | |
43 | ||
44 | <div class="boxContent"> | |
45 | {include file='tagCloudBox' taggableObjectType=$objectType} | |
46 | </div> | |
47 | </section> | |
48 | {/capture} | |
49 | ||
50 | {include file='header'} | |
51 | ||
52 | {hascontent} | |
53 | <div class="paginationTop"> | |
54 | {content}{pages print=true assign=pagesLinks controller='CombinedTagged' link="$linkParameters&objectType=$objectType&pageNo=%d"}{/content} | |
55 | </div> | |
56 | {/hascontent} | |
57 | ||
58 | {if $items} | |
59 | {include file=$resultListTemplateName application=$resultListApplication} | |
60 | {else} | |
fc7cf040 | 61 | <p class="info" role="status">{lang}wcf.tagging.taggedObjects.noResults{/lang}</p> |
c9613f13 AE |
62 | {/if} |
63 | ||
64 | <footer class="contentFooter"> | |
65 | {hascontent} | |
66 | <div class="paginationBottom"> | |
67 | {content}{@$pagesLinks}{/content} | |
68 | </div> | |
69 | {/hascontent} | |
70 | ||
71 | {hascontent} | |
72 | <nav class="contentFooterNavigation"> | |
73 | <ul> | |
74 | {content}{event name='contentFooterNavigation'}{/content} | |
75 | </ul> | |
76 | </nav> | |
77 | {/hascontent} | |
78 | </footer> | |
79 | ||
80 | {include file='footer'} |