|
|
@@ -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}&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=light&font&height=21&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}&text={title_encoded}&size=medium&count=horizontal&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);
|
|
|
+
|
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|