0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest

how can I add share bottom
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: how can I add share bottom

how can I add share bottom 7 years, 2 months ago #4963

Hello,
how can I add a share bottom (facebook, twitter, google) in the sj world, the same way as in the SJ Magazine, I tried to install a plugin but the bottom shows every where, is there a way I could only show it only in the article
thanks

Re: how can I add share bottom 7 years, 1 month ago #4966

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Hi Mohamed,

Please go to "your_site/templates/sj_worldnews/html/com_k2/templates/yt-theme/item.php", finding:

<?php if($this->item->params->get('itemAuthorBlock') && empty($this->item->created_by_alias)): ?>
		<!-- Author Block -->
		<div class="itemAuthorBlock block">
		  
			  <?php if($this->item->params->get('itemAuthorImage') && !empty($this->item->author->avatar)): ?>
			  <img class="itemAuthorAvatar" src="<?php echo $this->item->author->avatar; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($this->item->author->name); ?>" />
			  <?php endif; ?>
		  
			<div class="itemAuthorDetails">
			  <h3 class="itemAuthorName font-text">
				<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
			  </h3>
			
			  <?php if($this->item->params->get('itemAuthorDescription') && !empty($this->item->author->profile->description)): ?>
			  <div class="user-desc"><?php echo $this->item->author->profile->description; ?></div>
			  <?php endif; ?>
			
			  <?php if($this->item->params->get('itemAuthorURL') && !empty($this->item->author->profile->url)): ?>
			  <span class="itemAuthorUrl"><?php echo JText::_('K2_WEBSITE'); ?> <a rel="me" href="<?php echo $this->item->author->profile->url; ?>" target="_blank"><?php echo str_replace('http://','',$this->item->author->profile->url); ?></a></span>
			  <?php endif; ?>
			
			  <?php if($this->item->params->get('itemAuthorEmail')): ?>
			  <span class="itemAuthorEmail"><?php echo JText::_('K2_EMAIL'); ?> <?php echo JHTML::_('Email.cloak', $this->item->author->email); ?></span>
			  <?php endif; ?>
			  </div>
		</div>
	<?php endif; ?>


=>

	<?php if($this->item->params->get('itemTwitterButton',1) || $this->item->params->get('itemFacebookButton',1) || $this->item->params->get('itemGooglePlusOneButton',1)): ?>
	<!-- Social sharing -->
	<div class="itemSocialSharing">

		<?php if($this->item->params->get('itemTwitterButton',1)): ?>
		<!-- Twitter Button -->
		<div class="itemTwitterButton">
			<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"<?php if($this->item->params->get('twitterUsername')): ?> data-via="<?php echo $this->item->params->get('twitterUsername'); ?>"<?php endif; ?>><?php echo JText::_('K2_TWEET'); ?></a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
		</div>
		<?php endif; ?>
		<?php if($this->item->params->get('itemGooglePlusOneButton',1)): ?>
		<!-- Google +1 Button -->
		<div class="itemGooglePlusOneButton">	
			<g:plusone annotation="inline" width="120"></g:plusone>
			<script type="text/javascript">
			  (function() {
			  	window.___gcfg = {lang: 'en'}; // Define button default language here
			    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
			    po.src = 'https://apis.google.com/js/plusone.js';
			    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
			  })();
			</script>
		</div>
		<?php endif; ?>
		<?php if($this->item->params->get('itemFacebookButton',1)): ?>
		<!-- Facebook Button -->
		<div class="itemFacebookButton">
			<div id="fb-root"></div>
			<script type="text/javascript">
				(function(d, s, id) {
				  var js, fjs = d.getElementsByTagName(s)[0];
				  if (d.getElementById(id)) {return;}
				  js = d.createElement(s); js.id = id;
				  js.src = "//connect.facebook.net/en_US/all.js#appId=177111755694317&xfbml=1";
				  fjs.parentNode.insertBefore(js, fjs);
				}(document, 'script', 'facebook-jssdk'));
			</script>
			<div class="fb-like" data-send="false" data-width="200" data-show-faces="true"></div>
		</div>
		<?php endif; ?>

		
	</div>
	<?php endif; ?>
	
	<?php if($this->item->params->get('itemAuthorBlock') && empty($this->item->created_by_alias)): ?>
		<!-- Author Block -->
		<div class="itemAuthorBlock block">
		  
			  <?php if($this->item->params->get('itemAuthorImage') && !empty($this->item->author->avatar)): ?>
			  <img class="itemAuthorAvatar" src="<?php echo $this->item->author->avatar; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($this->item->author->name); ?>" />
			  <?php endif; ?>
		  
			<div class="itemAuthorDetails">
			  <h3 class="itemAuthorName font-text">
				<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
			  </h3>
			
			  <?php if($this->item->params->get('itemAuthorDescription') && !empty($this->item->author->profile->description)): ?>
			  <div class="user-desc"><?php echo $this->item->author->profile->description; ?></div>
			  <?php endif; ?>
			
			  <?php if($this->item->params->get('itemAuthorURL') && !empty($this->item->author->profile->url)): ?>
			  <span class="itemAuthorUrl"><?php echo JText::_('K2_WEBSITE'); ?> <a rel="me" href="<?php echo $this->item->author->profile->url; ?>" target="_blank"><?php echo str_replace('http://','',$this->item->author->profile->url); ?></a></span>
			  <?php endif; ?>
			
			  <?php if($this->item->params->get('itemAuthorEmail')): ?>
			  <span class="itemAuthorEmail"><?php echo JText::_('K2_EMAIL'); ?> <?php echo JHTML::_('Email.cloak', $this->item->author->email); ?></span>
			  <?php endif; ?>
			  </div>
		</div>
	<?php endif; ?>



Thanks
Ticket System | Join our Clubs to download our extensions and templates
  • Page:
  • 1
Time to create page: 0.35 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Suggested Posts

(/)
Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes