|
4 | 4 |
|
5 | 5 | {capture assign='contentHeader'} |
6 | 6 | <header class="contentHeader articleContentHeader"> |
7 | | - <div class="contentHeaderTitle"> |
8 | | - <h1 class="contentTitle" itemprop="name headline">{$articleContent->title}</h1> |
9 | | - <ul class="inlineList contentHeaderMetaData articleMetaData"> |
10 | | - <li itemprop="author" itemscope itemtype="http://schema.org/Person"> |
11 | | - {icon name='user'} |
12 | | - {if $article->userID} |
13 | | - <a href="{$article->getUserProfile()->getLink()}" class="userLink" data-object-id="{$article->userID}" itemprop="url"> |
14 | | - <span itemprop="name">{unsafe:$article->getUserProfile()->getFormattedUsername()}</span> |
15 | | - </a> |
16 | | - {else} |
17 | | - <span itemprop="name">{$article->username}</span> |
18 | | - {/if} |
19 | | - </li> |
20 | | - |
21 | | - <li> |
22 | | - {icon name='clock'} |
23 | | - <a href="{$article->getLink()}">{time time=$article->time}</a> |
24 | | - <meta itemprop="datePublished" content="{$article->time|date:'c'}"> |
25 | | - </li> |
26 | | - |
27 | | - {if $article->hasLabels()} |
28 | | - <li> |
29 | | - {icon name='tags'} |
30 | | - <ul class="labelList"> |
31 | | - {foreach from=$article->getLabels() item=label} |
32 | | - <li>{unsafe:$label->render()}</li> |
33 | | - {/foreach} |
34 | | - </ul> |
35 | | - </li> |
36 | | - {/if} |
37 | | - |
38 | | - <li> |
39 | | - {icon name='eye'} |
40 | | - {lang}wcf.article.articleViews{/lang} |
41 | | - </li> |
42 | | - |
43 | | - {if $article->getDiscussionProvider()->getDiscussionCountPhrase()} |
44 | | - <li itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> |
45 | | - {icon name='comments'} |
46 | | - {if $article->getDiscussionProvider()->getDiscussionLink()}<a href="{$article->getDiscussionProvider()->getDiscussionLink()}">{else}<span>{/if} |
47 | | - {$article->getDiscussionProvider()->getDiscussionCountPhrase()} |
48 | | - {if $article->getDiscussionProvider()->getDiscussionLink()}</a>{else}</span>{/if} |
49 | | - <meta itemprop="interactionType" content="http://schema.org/CommentAction"> |
50 | | - <meta itemprop="userInteractionCount" content="{$article->getDiscussionProvider()->getDiscussionCount()}"> |
51 | | - </li> |
52 | | - {/if} |
53 | | - |
54 | | - {hascontent} |
55 | | - <li> |
56 | | - {icon name='flag'} |
57 | | - {content} |
58 | | - {if $article->isDeleted} |
59 | | - <span class="badge red">{lang}wcf.message.status.deleted{/lang}</span> |
60 | | - {/if} |
61 | | - {if !$article->isPublished()} |
62 | | - <span class="badge green">{lang}wcf.message.status.disabled{/lang}</span> |
63 | | - {/if} |
64 | | - {event name='contentHeaderMetaDataFlag'} |
65 | | - {/content} |
66 | | - </li> |
67 | | - {/hascontent} |
68 | | - |
69 | | - {event name='contentHeaderMetaData'} |
70 | | - </ul> |
71 | | - |
72 | | - <div itemprop="publisher" itemscope itemtype="http://schema.org/Organization"> |
73 | | - <meta itemprop="name" content="{PAGE_TITLE|phrase}"> |
74 | | - <div itemprop="logo" itemscope itemtype="http://schema.org/ImageObject"> |
75 | | - <meta itemprop="url" content="{$__wcf->getStyleHandler()->getStyle()->getPageLogo()}"> |
76 | | - </div> |
77 | | - </div> |
78 | | - </div> |
| 7 | + {include file='articleContentHeaderTitle'} |
79 | 8 |
|
80 | 9 | {hascontent} |
81 | 10 | <nav class="contentHeaderNavigation"> |
|
100 | 29 | {/capture} |
101 | 30 |
|
102 | 31 | {capture assign='contentInteractionButtons'} |
103 | | - {if $article->canEdit()} |
104 | | - <a href="{link controller='ArticleEdit' id=$article->articleID}{/link}" class="contentInteractionButton button small">{icon name='pencil'} <span>{lang}wcf.acp.article.edit{/lang}</span></a> |
105 | | - {/if} |
106 | | - |
| 32 | + {unsafe:$interactionContextMenu->render()} |
| 33 | + |
107 | 34 | {if $article->isMultilingual && $__wcf->user->userID} |
108 | 35 | <div class="contentInteractionButton dropdown jsOnly"> |
109 | 36 | <button type="button" class="dropdownToggle boxFlag box24 button small"> |
|
0 commit comments