Juste_me__
Member
I am trying to replace "Recommend" and "Tweet" inside side bar with Twitter "Follow" and Youtube "Subscribe" buttons. in the same time, I still want "Recommend" and "Tweet" to be included in all internal pages.
I were able to do that by commenting Twitter,FB and G+ sections and adding the code for "Follow" and "Subscribe" buttons as follows in "sidebar_share_page" template:
Any suggestions for a cleaner way or concerns regarding the existing one ?
Thanks in advance
I were able to do that by commenting Twitter,FB and G+ sections and adding the code for "Follow" and "Subscribe" buttons as follows in "sidebar_share_page" template:
Code:
<xen:if hascontent="true">
<xen:require css="sidebar_share_page.css" />
<div class="section infoBlock sharePage">
<div class="secondaryContent">
<h3>{xen:phrase share_this_page}</h3>
<xen:contentcheck>
<xen:comment>
<xen:hook name="sidebar_share_page_options">
<xen:if is="{$xenOptions.tweet.enabled}">
<div class="tweet shareControl">
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"
data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
data-url="{$url}"
{xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
{xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
</div>
</xen:if>
<xen:if is="{$xenOptions.facebookLike}">
<div class="facebookLike shareControl">
<xen:container var="$facebookSdk">1</xen:container>
<div class="fb-like" data-href="{$url}" data-layout="button_count" data-action="{$xenOptions.facebookLikeAction}" data-font="trebuchet ms" data-colorscheme="@fbColorScheme"></div>
</div>
</xen:if>
<xen:if is="{$xenOptions.plusone}">
<div class="plusone shareControl">
<div class="g-plusone" data-size="medium" data-count="true" data-href="{$url}"></div>
</div>
</xen:if>
</xen:hook>
</xen:comment>
<a href="https://twitter.com/XYZ" class="twitter-follow-button" data-size="large" data-show-count="false">Follow @XYZ</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
<script src="https://apis.google.com/js/platform.js"></script>
<div class="g-ytsubscribe" data-channelid="XYZ" data-layout="full" data-theme="dark" data-count="default"></div>
</xen:contentcheck>
</div>
</div>
</xen:if>
Any suggestions for a cleaner way or concerns regarding the existing one ?
Thanks in advance