Alex Trofimov пре 13 година
родитељ
комит
10fca509ff
2 измењених фајлова са 8 додато и 6 уклоњено
  1. 2 2
      inc/classes/BxDolSocialSharing.php
  2. 6 4
      install/sql/v70.sql

+ 2 - 2
inc/classes/BxDolSocialSharing.php

@@ -25,7 +25,7 @@ bx_import('BxDolSocialSharingQuery');
  *
  * @code
  * bx_import('BxTemplSocialSharing');
- * echo BxTemplSocialSharing::getInstance()->getCode($sUrl, $sTitle);
+ * echo BxTemplSocialSharing::getInstance()->getCode($iId, $sModuleName, $sUrl, $sTitle);
  * @endcode
  *
  *
@@ -69,7 +69,7 @@ class BxDolSocialSharing extends BxDol implements iBxDolSingleton
         return ($GLOBALS['bxDolClasses']['BxDolSocialSharing'] = $o);
     }
 
-    public function getCode ($sUrl, $sTitle, $aCustomVars = false) {
+    public function getCode ($sContentId, $sModuleName, $sUrl, $sTitle, $aCustomVars = false) {
         // overrided in template class
     }
 

+ 6 - 4
install/sql/v70.sql

@@ -67,11 +67,13 @@ CREATE TABLE IF NOT EXISTS `sys_objects_social_sharing` (
   PRIMARY KEY (`id`)
 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
 
+
 INSERT INTO `sys_objects_social_sharing` (`object`, `type`, `content`, `order`, `active`) VALUES
-('facebook', 'html', '<iframe src="//www.facebook.com/plugins/like.php?href={url_encoded}&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21&amp;locale={locale}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:21px;" allowTransparency="true"></iframe>', 1, 1),
-('googleplus', 'html', '<div style="height:21px;">\r\n<div class="g-plusone" data-size="medium" data-href="{url}"></div>\r\n<script type="text/javascript">\r\n  window.___gcfg = {lang: ''{lang}''};\r\n  (function() {\r\n    var po = document.createElement(''script''); po.type = ''text/javascript''; po.async = true;\r\n    po.src = ''https://apis.google.com/js/plusone.js'';\r\n    var s = document.getElementsByTagName(''script'')[0]; s.parentNode.insertBefore(po, s);\r\n  })();\r\n</script>\r\n</div>', 2, 1),
-('twitter', 'html', '<iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/tweet_button.html?url={url_encoded}&amp;text={title_encoded}&amp;size=medium&amp;count=horizontal&amp;lang={lang}" style="width:100%;height:21px;"></iframe>', 3, 1),
-('pinterest', 'html', '<a href="http://pinterest.com/pin/create/button/?url={url_encoded}&media={img_url_encoded}&description={title_encoded}" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a>\r\n\r\n<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>', 4, 1);
+('facebook', 'html', '<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u={url_encoded}"><i class="sys-icon facebook-square"></i><span>32</span></a>', 1, 1),
+('googleplus', 'html', '<a target="_blank" href="https://plus.google.com/share?url={url_encoded}"><i class="sys-icon google-plus-square"></i></a>', 2, 1),
+('twitter', 'html', '<a  target="_blank" href="https://twitter.com/share?url={url_encoded}"><i class="sys-icon twitter-square"></i></a>', 3, 1),
+('pinterest', 'html', '<a target="_blank" href="http://pinterest.com/pin/create/button/?url={url_encoded}&media={img_url_encoded}&description={title_encoded}" class="pin-it-button" count-layout="horizontal"><i class="sys-icon pinterest-square"></i></a>', 4, 1);
+
 
 
 -- --------------------------------------------------------