Social API for Blog Layout

October 08 Joomla Templates
GK User
Wed Aug 24, 2011 2:08 pm
I like how the template includes social API but these buttons only show up to links of individual articles and not when presented in menu type - category blog. I have tried adding the code

Code: Select all
   <gavern:social><div id="gkSocialAPI"></gavern:social>
      <fb:like href="<?php echo $cur_url; ?>" GK_FB_LIKE_SETTINGS></fb:like>
      <g:plusone GK_GOOGLE_PLUS_SETTINGS callback="<?php echo $cur_url; ?>"></g:plusone>
      <a href="http://twitter.com/share" class="twitter-share-button" data-text="<?php echo $this->item->title; ?>" data-url="<?php $cur_url; ?>" GK_TWEET_BTN_SETTINGS>Tweet</a>
      <a class="DiggThisButton GK_DIGG_SETTINGS" href="<?php echo $cur_url; ?>"></a>
      <a href="http://www.google.com/buzz/post" class="google-buzz-button" title="<?php echo JText::_('TPL_GK_LANG_GOOGLE_BUZZ_TITLE'); ?>" GK_BUZZ_BTN_SETTINGS data-url="<?php echo $cur_url; ?>"></a>
      <a href="http://www.delicious.com/save" onclick="window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;" class="deliciousBtn" title="<?php echo JText::_('TPL_GK_APPSITE_DELICIOUS_TITLE'); ?>"></a>
      <a href="http://www.instapaper.com/hello2?url=<?php echo urlencode($cur_url); ?>&title=<?php echo urlencode($this->item->title); ?>" class="instapaperBtn" title="<?php echo JText::_('TPL_GK_LANG_INSTAPAPER_TITLE'); ?>"></a>
   <gavern:social><div class="clr"></div></div></gavern:social>


to /templates/gk_twn2/html/com_content/category/blog_item.php but it didn't work correctly.

Is there any chance that you will be supporting this. I'm just looking for the facebook and twitter buttons to show up on the article pages whether or not they are presented via article or blog link.

Thanks
User avatar
Junior Boarder

GK User
Sat Aug 27, 2011 1:53 pm
I guess I'm the only one who uses this template. I did notice that if you have a read more link in the article that when it opens up you have the API but if you have the full article in the blog layout no API.
User avatar
Junior Boarder


cron