Use new generic share button position
authorMarcel Werk <burntime@woltlab.com>
Wed, 3 May 2023 12:49:20 +0000 (14:49 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 3 May 2023 12:49:20 +0000 (14:49 +0200)
com.woltlab.wcf/templates/cms.tpl

index 0959f0d06cda759c2737ef7745b167f848c6f8aa..7452c96f057c5fe24de34c2f297855f2e4338215 100644 (file)
 {/capture}
 
 {capture assign='contentInteractionButtons'}
-       {if $page->showShareButtons()}
-               <a href="{$content->getLink()}" class="contentInteractionButton button small wsShareButton jsOnly" data-link-title="{$content->getTitle()}">{icon name='share'} <span>{lang}wcf.message.share{/lang}</span></a>
-       {/if}
-
        {if $page->isMultilingual && $__wcf->user->userID && $page->getPageLanguages()|count > 1}
                <div class="contentInteractionButton dropdown jsOnly">
                        <button type="button" class="button small dropdownToggle boxFlag box24">
        {if $__wcf->getSession()->getPermission('admin.content.cms.canManagePage')}<a href="{link controller='PageEdit' id=$page->pageID isACP=true}{/link}" class="contentInteractionButton button small">{icon name='pencil'} <span>{lang}wcf.acp.page.edit{/lang}</span></a>{/if}
 {/capture}
 
+{if $page->showShareButtons()}
+       {capture assign='contentInteractionShareButton'}
+               <button type="button" class="button small wsShareButton jsTooltip" title="{lang}wcf.message.share{/lang}" data-link="{$content->getLink()}" data-link-title="{$content->getTitle()}">
+                       {icon name='share-nodes'}
+               </button>
+       {/capture}
+{/if}
+
 {include file='header'}
 
 {if $content->content}