Hi. How can I turn off ''share this story''? I prefer to use another plugin for social sharing. My site: http://www.islamnet.no
leagurru wrote:In template configuration, social api frame you can disable social sharing.
.item-social-icons {
display: none;
}
<?php
$templateSettings = JFactory::getApplication()->getTemplate(true)->params;
if(
$templateSettings->get('social_api_type', '2') == '2' &&
(
$templateSettings->get('popup_fb', '1') == '1' ||
$templateSettings->get('popup_twitter', '1') == '1' ||
$templateSettings->get('popup_gplus', '1') == '1' ||
$templateSettings->get('popup_pinterest', '1') == '1' ||
$templateSettings->get('popup_linkedin', '0') == '1' ||
$templateSettings->get('popup_vk', '0') == '1' ||
($this->item->params->get('itemEmailButton') && !JRequest::getInt('print')) ||
($this->item->params->get('itemPrintButton') && !JRequest::getInt('print'))
)
) : ?>
<span class="item-social-icons">
<h3><?php echo JText::_('TPL_GK_LANG_SOCIAL_STORY_SHARE'); ?></h3>
<?php if($templateSettings->get('popup_fb', '1') == '1') : ?>
<a href="https://www.facebook.com/sharer.php?u=<?php echo $cur_url; ?>" target="_blank" title="Facebook" class="facebook icon-share-popup"><i class="fa fa-facebook"></i></a>
<?php endif; ?>
<?php if($templateSettings->get('popup_twitter', '1') == '1') : ?>
<a href="http://twitter.com/intent/tweet?source=sharethiscom&url=<?php echo $cur_url; ?>" target="_blank" title="Twitter" class="twitter icon-share-popup"><i class="fa fa-twitter"></i></a>
<?php endif; ?>
<?php if($templateSettings->get('popup_gplus', '1') == '1') : ?>
<a href="https://plus.google.com/share?url=<?php echo $cur_url; ?>" target="_blank" title="Google+" class="google icon-share-popup"><i class="fa fa-google-plus"></i></a>
<?php endif; ?>
<?php if($templateSettings->get('popup_pinterest', '1') == '1') : ?>
<a href="javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());" title="Pinterest" class="pinterest"><i class="fa fa-pinterest-p"></i></a>
<?php endif; ?>
<?php if($templateSettings->get('popup_linkedin', '0') == '1') : ?>
<a href="https://www.linkedin.com/cws/share?url=<?php echo $cur_url; ?>" title="LinkedIn" class="linkedin icon-share-popup"><i class="fa fa-linkedin"></i></a>
<?php endif; ?>
<?php if($templateSettings->get('popup_vk', '0') == '1') : ?>
<a href="http://vkontakte.ru/share.php?url=<?php echo $cur_url; ?>" title="VK" class="vk icon-share-popup"><i class="fa fa-vk"></i></a>
<?php endif; ?>
</span>
<?php endif; ?>