Use new position in article template
authorMarcel Werk <burntime@woltlab.com>
Wed, 19 Apr 2023 14:51:11 +0000 (16:51 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 19 Apr 2023 14:51:11 +0000 (16:51 +0200)
com.woltlab.wcf/templates/article.tpl

index d80804d0f4dc25278874daaba2b7d53f3be1ea15..78681a2b6689d17b02b757a6d114e6c60b98f8e5 100644 (file)
        {/if}
 {/capture}
 
+{capture assign='contentInteractionShareButton'}
+       <button type="button" class="button small wsShareButton jsTooltip" title="{lang}wcf.message.share{/lang}" data-link="{$articleContent->getLink()}" data-link-title="{$articleContent->getTitle()}" data-bbcode="[article]{$article->getObjectID()}[/article]">
+               {icon name='share-nodes'}
+       </button>
+{/capture}
+
 {include file='header'}
 
 {if !$article->isPublished()}
                        
                        <div class="col-xs-12 col-md-6 col-md{if !(MODULE_LIKE && ARTICLE_ENABLE_LIKE && $__wcf->session->getPermission('user.like.canViewLike'))} col-md-offset-6{/if}">
                                <ul class="articleLikeButtons buttonGroup buttonList smallButtons">
-                                       <li>
-                                               <a href="{$articleContent->getLink()}" class="button wsShareButton jsOnly" data-link-title="{$articleContent->getTitle()}">
-                                                       {icon name='share-nodes'} <span>{lang}wcf.message.share{/lang}</span>
-                                               </a>
-                                       </li>
                                        {if $__wcf->session->getPermission('user.profile.canReportContent')}
                                                <li>
                                                        <button