Version Notes
Minor bug fix
Download this release
Release Info
Developer | Soclever Social |
Extension | socleverloginsharing |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- app/code/local/Soclever/Socialloginsharing/Model/Info.php +109 -0
- app/code/local/Soclever/Socialloginsharing/controllers/IndexController.php +11 -7
- app/code/local/Soclever/Socialloginsharing/etc/config.xml +1 -1
- app/design/frontend/base/default/template/socialloginsharing/socialshare_product.phtml +21 -14
- app/design/frontend/base/default/template/socialloginsharing/socialshare_show.phtml +425 -417
- package.xml +5 -5
app/code/local/Soclever/Socialloginsharing/Model/Info.php
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Soclever_Socialloginsharing_Model_Info extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
|
3 |
+
{
|
4 |
+
|
5 |
+
|
6 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
7 |
+
{
|
8 |
+
|
9 |
+
|
10 |
+
$this->render_module_thanks_message_container();
|
11 |
+
|
12 |
+
|
13 |
+
$this->render_module_info_container();
|
14 |
+
|
15 |
+
|
16 |
+
$this->render_module_help_and_documentations_container();
|
17 |
+
|
18 |
+
|
19 |
+
$this->render_module_support_us_container();
|
20 |
+
|
21 |
+
|
22 |
+
}
|
23 |
+
|
24 |
+
public function render_module_thanks_message_container()
|
25 |
+
{
|
26 |
+
?>
|
27 |
+
<fieldset>
|
28 |
+
<h4><strong><?php echo $this->__('Thank you for installing SoClever Extension!') ?></strong></h4>
|
29 |
+
|
30 |
+
<p>
|
31 |
+
<?php echo $this->__('To activate the extension, you will need to first configure it (manage your desired social networks apps, etc.) from your SoCLever account. If you do not have an account, click') ?>
|
32 |
+
<a target="_blank" href="https://www.socleversocial.com/"><?php echo $this->__('here') ?></a> <?php echo $this->__('and create one for FREE!') ?>
|
33 |
+
</p>
|
34 |
+
</br>
|
35 |
+
<div style="margin-top:10px">
|
36 |
+
<a style="text-decoration:none;margin-right:10px;" href="https://www.socleversocial.com/" target="_blank">
|
37 |
+
<input class="form-button" type="button" value="<?php echo $this->__('Set up my FREE account!') ?>">
|
38 |
+
</a>
|
39 |
+
</div>
|
40 |
+
</fieldset>
|
41 |
+
<?php
|
42 |
+
}
|
43 |
+
|
44 |
+
public function render_module_info_container()
|
45 |
+
{
|
46 |
+
?>
|
47 |
+
<fieldset class="ss_admin_configuration_info_fieldsets ss_configuration_info_fieldsets_right" id="ss_extension_info_container">
|
48 |
+
<h4 class="ss_admin_fieldset_title"><strong><?php echo $this->__('Extension Information!') ?></strong></h4>
|
49 |
+
|
50 |
+
<div style="margin:5px 0">
|
51 |
+
<strong>Version: </strong>1.0.0 <br/>
|
52 |
+
<strong>Author:</strong> Soclever<br/>
|
53 |
+
<strong>Website:</strong> <a href="https://www.socleversocial.com" target="_blank">www.socleversocial.com</a>
|
54 |
+
<br/>
|
55 |
+
|
56 |
+
<div id="sociallogin_get_update" style="float:left;">To receive updates on new features and releases, Please follow us on one of our social media pages
|
57 |
+
</div>
|
58 |
+
<div id="ss_media_pages_container">
|
59 |
+
<a target="_blank" href="https://www.facebook.com/socleversocial"><img
|
60 |
+
src="https://www.socleversocial.com/dashboard/img/social_icon/30x30/30x30_facebook.png"></a>
|
61 |
+
<a target="_blank" href="http://twitter.com/socleversocial"><img
|
62 |
+
src="https://www.socleversocial.com/dashboard/img/social_icon/30x30/30x30_twitter.png"></a>
|
63 |
+
<a target="_blank" href="https://plus.google.com/u/4/b/100077356381531929431"> <img
|
64 |
+
src="https://www.socleversocial.com/dashboard/img/social_icon/30x30/30x30_google_plus.png"></a>
|
65 |
+
<a target="_blank" href="http://www.linkedin.com/company/soclever"> <img
|
66 |
+
src="https://www.socleversocial.com/dashboard/img/social_icon/30x30/30x30_linkedin.png"></a>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
</fieldset>
|
70 |
+
<?php
|
71 |
+
}
|
72 |
+
|
73 |
+
public function render_module_help_and_documentations_container()
|
74 |
+
{
|
75 |
+
?>
|
76 |
+
<fieldset class="ss_admin_configuration_info_fieldsets ss_configuration_info_fieldsets_left" id="ss_extension_help_container">
|
77 |
+
<h4 class="ss_admin_fieldset_title"><strong><?php echo $this->__('Help & Documentations') ?></strong></h4>
|
78 |
+
<ul style="float:left; margin-right:43px">
|
79 |
+
<li><a target="_blank" href="http://developers.socleversocial.com/magento-social-login-extension/">Extension Installation and Configuration</a></li>
|
80 |
+
<li><a target="_blank" href="http://developers.socleversocial.com/how-to-get-api-key-and-secret/">How to get SoClever API Key & Secret</a></li>
|
81 |
+
<li><a target="_blank" href="http://developers.socleversocial.com/category/social-network-set-up/">How to create Social Network Apps</a></li>
|
82 |
+
<li><a target="_blank" href="https://www.socleversocial.com/">SoClever Products</a></li>
|
83 |
+
</ul>
|
84 |
+
<ul style="float:left; margin-right:43px">
|
85 |
+
<li><a target="_blank" href="http://developers.socleversocial.com/">Developer Forum</a></li>
|
86 |
+
<li><a target="_blank" href="https://www.socleversocial.com/about-us/">About SoCleverSocial</a></li>
|
87 |
+
<li><a target="_blank" href="http://developers.socleversocial.com/category/cms-plugins/">Social Plugins</a></li>
|
88 |
+
</ul>
|
89 |
+
</fieldset>
|
90 |
+
<?php
|
91 |
+
}
|
92 |
+
|
93 |
+
public function render_module_support_us_container()
|
94 |
+
{
|
95 |
+
?>
|
96 |
+
<fieldset class="ss_admin_configuration_info_fieldsets ss_configuration_info_fieldsets_right" id="ss_extension_support_container">
|
97 |
+
<h4 class="ss_admin_fieldset_title"><strong><?php echo $this->__('Support') ?></strong></h4>
|
98 |
+
|
99 |
+
<p>
|
100 |
+
<?php echo $this->__('<a target="_blank" href="https://www.socleversocial.com/contact-us/">Click Here</a>') ?> to contact us. You can also email our support team at
|
101 |
+
<a href="mailto:info@socleversocial.com">info@socleversocial.com</a> </p>
|
102 |
+
</fieldset>
|
103 |
+
<div style='clear:both'></div>
|
104 |
+
|
105 |
+
|
106 |
+
<?php
|
107 |
+
}
|
108 |
+
}
|
109 |
+
?>
|
app/code/local/Soclever/Socialloginsharing/controllers/IndexController.php
CHANGED
@@ -1,7 +1,4 @@
|
|
1 |
<?php
|
2 |
-
ini_set("display_errors","1");
|
3 |
-
error_reporting(E_ALL);
|
4 |
-
|
5 |
class Soclever_Socialloginsharing_IndexController extends Mage_Core_Controller_Front_Action
|
6 |
{
|
7 |
public function indexAction()
|
@@ -83,7 +80,7 @@ $client = new oauth_client_class;
|
|
83 |
}
|
84 |
if($client->exit)
|
85 |
{
|
86 |
-
exit('
|
87 |
}
|
88 |
if($success)
|
89 |
{
|
@@ -556,6 +553,7 @@ if(isset($_GET['lc']) && $_GET['lc']!='')
|
|
556 |
curl_close($ch);
|
557 |
$fbuser_old = $temp_user;
|
558 |
$fbuser=json_decode($fbuser_old);
|
|
|
559 |
|
560 |
if($fbuser_old && $fbuser->email!="")
|
561 |
{
|
@@ -736,7 +734,7 @@ try
|
|
736 |
{
|
737 |
|
738 |
|
739 |
-
$openid = new LightOpenID('
|
740 |
|
741 |
|
742 |
if(!$openid->mode)
|
@@ -752,9 +750,15 @@ try
|
|
752 |
$openid->required = array('contact/email','person/guid','dob','birthDate','namePerson' , 'person/gender' , 'pref/language' , 'media/image/default','birthDate/birthday');
|
753 |
|
754 |
//start discovery
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
755 |
|
756 |
-
|
757 |
-
header('Location: ' . $openid->authUrl());
|
758 |
}
|
759 |
|
760 |
|
1 |
<?php
|
|
|
|
|
|
|
2 |
class Soclever_Socialloginsharing_IndexController extends Mage_Core_Controller_Front_Action
|
3 |
{
|
4 |
public function indexAction()
|
80 |
}
|
81 |
if($client->exit)
|
82 |
{
|
83 |
+
exit('Twitter Login Failed');
|
84 |
}
|
85 |
if($success)
|
86 |
{
|
553 |
curl_close($ch);
|
554 |
$fbuser_old = $temp_user;
|
555 |
$fbuser=json_decode($fbuser_old);
|
556 |
+
|
557 |
|
558 |
if($fbuser_old && $fbuser->email!="")
|
559 |
{
|
734 |
{
|
735 |
|
736 |
|
737 |
+
$openid = new LightOpenID($_SERVER['HTTP_HOST']);
|
738 |
|
739 |
|
740 |
if(!$openid->mode)
|
750 |
$openid->required = array('contact/email','person/guid','dob','birthDate','namePerson' , 'person/gender' , 'pref/language' , 'media/image/default','birthDate/birthday');
|
751 |
|
752 |
//start discovery
|
753 |
+
?>
|
754 |
+
<script type="text/javascript">
|
755 |
+
window.location.href="<?php echo $openid->authUrl(); ?>";
|
756 |
+
</script>
|
757 |
+
|
758 |
+
<?php
|
759 |
+
exit;
|
760 |
|
761 |
+
//header('Location: ' . $openid->authUrl());
|
|
|
762 |
}
|
763 |
|
764 |
|
app/code/local/Soclever/Socialloginsharing/etc/config.xml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
<config>
|
17 |
<modules>
|
18 |
<Soclever_Socialloginsharing>
|
19 |
-
<version>1.
|
20 |
</Soclever_Socialloginsharing>
|
21 |
</modules>
|
22 |
<default>
|
16 |
<config>
|
17 |
<modules>
|
18 |
<Soclever_Socialloginsharing>
|
19 |
+
<version>1.2.3</version>
|
20 |
</Soclever_Socialloginsharing>
|
21 |
</modules>
|
22 |
<default>
|
app/design/frontend/base/default/template/socialloginsharing/socialshare_product.phtml
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
$is_validated=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_validated');
|
|
|
3 |
if($is_validated=='1')
|
4 |
{
|
5 |
$display_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/displaystyle');
|
@@ -20,8 +21,7 @@ if(!function_exists('scs_is_mobile'))
|
|
20 |
|
21 |
|
22 |
|
23 |
-
|
24 |
-
{
|
25 |
if(!function_exists('cs_get_plusones'))
|
26 |
{
|
27 |
|
@@ -352,15 +352,15 @@ $newUrl = substr_replace($url,"$separator$name=$value",$insertPosition,0);
|
|
352 |
$ic_div='float:left;';
|
353 |
}
|
354 |
$title=$this->getLayout()->getBlock('head')->getTitle();
|
355 |
-
$share_arr[2]='<span style="
|
356 |
-
$share_arr[4]='<span style=\'
|
357 |
-
$share_arr[7]='<span style=\'
|
358 |
-
$share_arr[13]='<span style=\'
|
359 |
-
$share_arr[17]='<span style=\'
|
360 |
-
$share_arr[18]='<span style=\'
|
361 |
-
$share_arr[19]='<span style=\'
|
362 |
-
$share_arr[20]='<span style=\'
|
363 |
-
$share_arr[21]='<span style=\'
|
364 |
|
365 |
|
366 |
$start_div='<div id="scssdiv" style="clear:both;wdth:100%;height:100%;z-index:999;display:inline-block;">';
|
@@ -377,7 +377,7 @@ if($display_style=='1' || $display_style=='2' )
|
|
377 |
|
378 |
if($mobilefriendly=='1' && scs_is_mobile())
|
379 |
{
|
380 |
-
$start_div='<div id="scssdiv" style="width: 90%;position:fixed;bottom:
|
381 |
}
|
382 |
|
383 |
$js_code .= PHP_EOL;
|
@@ -399,11 +399,18 @@ if($display_style=='1' || $display_style=='2' )
|
|
399 |
}
|
400 |
}
|
401 |
</script>'.PHP_EOL;
|
402 |
-
$js_code .='<style>#scssdiv img { display:inline !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
403 |
|
404 |
|
405 |
|
406 |
echo $js_code;
|
407 |
-
|
408 |
}
|
409 |
?>
|
1 |
<?php
|
2 |
$is_validated=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_validated');
|
3 |
+
|
4 |
if($is_validated=='1')
|
5 |
{
|
6 |
$display_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/displaystyle');
|
21 |
|
22 |
|
23 |
|
24 |
+
|
|
|
25 |
if(!function_exists('cs_get_plusones'))
|
26 |
{
|
27 |
|
352 |
$ic_div='float:left;';
|
353 |
}
|
354 |
$title=$this->getLayout()->getBlock('head')->getTitle();
|
355 |
+
$share_arr[2]='<span style="'.$ic_div.'">'.$count2.'<img '.$src_style2.' onclick="share_on_cs(\'1\',\''.$user_ID.'\');cspopupCenterMagento(\'http://www.facebook.com/sharer.php?u='.urlencode(cs_format_share_url($url,'1')).'&t='.urlencode($title).'\',\'Share on Facebook\',\'600\',\'400\');" alt="Share on Facebook" ></span>'.$count2r.''.$gap_string.'';
|
356 |
+
$share_arr[4]='<span style=\''.$ic_div.'\'>'.$count4.'<img '.$src_style4.' onclick="share_on_cs(\'3\',\''.$user_ID.'\');cspopupCenterMagento(\'https://plus.google.com/share?url='.urlencode(cs_format_share_url($url,'3')).'&title='.urlencode($title).'\',\'Share on Google\',\'600\',\'400\');" alt="Share on Google+"></span>'.$count4r.''.$gap_string.'';
|
357 |
+
$share_arr[7]='<span style=\''.$ic_div.'\'>'.$count7.'<img '.$src_style7.' onclick="share_on_cs(\'2\',\''.$user_ID.'\');cspopupCenterMagento(\'https://www.linkedin.com/cws/share?url='.urlencode(cs_format_share_url($url,'2')).'&title='.urlencode($title).'\',\'Share on LinkedIN\',\'600\',\'400\');" alt="Share on LinkedIN" ></span>'.$count7r.''.$gap_string.'';
|
358 |
+
$share_arr[13]='<span style=\''.$ic_div.'\'>'.$count13.'<img '.$src_style13.' onclick="share_on_cs(\'4\',\''.$user_ID.'\');cspopupCenterMagento(\'http://twitter.com/share?url='.urlencode(cs_format_share_url($url,'4')).'&text='.urlencode($title).'\',\'Share on Twitter\',\'600\',\'400\',);" alt="Share on Twitter"></span>'.$count13r.''.$gap_string.'';
|
359 |
+
$share_arr[17]='<span style=\''.$ic_div.'\'>'.$count17.'<img '.$src_style17.' onclick="share_on_cs(\'5\',\''.$user_ID.'\');" alt="Pin It"></span>'.$count17r.''.$gap_string.'';
|
360 |
+
$share_arr[18]='<span style=\''.$ic_div.'\'>'.$count18.'<img '.$src_style18.' onclick="share_on_cs(\'6\',\''.$user_ID.'\');" alt="Share on Whatsapp"></span>'.$count18r.''.$gap_string.'';
|
361 |
+
$share_arr[19]='<span style=\''.$ic_div.'\'>'.$count19.'<img '.$src_style19.' onclick="share_on_cs(\'7\',\''.$user_ID.'\');cspopupCenterMagento(\'http://www.stumbleupon.com/submit?url='.urlencode(cs_format_share_url($url,'7')).'&title='.urlencode($title).'\',\'Share on StumbleUpon\',\'600\',\'400\');"" alt="Share on StumbleUpon"></span>'.$count19r.''.$gap_string.'';
|
362 |
+
$share_arr[20]='<span style=\''.$ic_div.'\'>'.$count20.'<img '.$src_style20.' onclick="share_on_cs(\'8\',\''.$user_ID.'\');cspopupCenterMagento(\'http://www.reddit.com/submit?url='.urlencode(cs_format_share_url($url,'8')).'&title='.urlencode($title).'\',\'Share on Reddit\',\'600\',\'400\');"" alt="Share on Reddit"></span>'.$count20r.''.$gap_string.'';
|
363 |
+
$share_arr[21]='<span style=\''.$ic_div.'\'>'.$count21.'<img '.$src_style21.' onclick="share_on_cs(\'9\',\''.$user_ID.'\');cspopupCenterMagento(\'http://www.tumblr.com/share/link?url='.urlencode(cs_format_share_url($url,'9')).'&name='.urlencode($title).'\',\'Share on Tumblr\',\'600\',\'400\');"" alt="Share on Tumblr"></span>'.$count21r.''.$gap_string.'';
|
364 |
|
365 |
|
366 |
$start_div='<div id="scssdiv" style="clear:both;wdth:100%;height:100%;z-index:999;display:inline-block;">';
|
377 |
|
378 |
if($mobilefriendly=='1' && scs_is_mobile())
|
379 |
{
|
380 |
+
$start_div='<div id="scssdiv" style="width: 90%;position:fixed;left:10%;bottom:1%;height: 40px; background-color:transparent;z-index:999;text-align:center;margin:0 auto;">';
|
381 |
}
|
382 |
|
383 |
$js_code .= PHP_EOL;
|
399 |
}
|
400 |
}
|
401 |
</script>'.PHP_EOL;
|
402 |
+
$js_code .='<style>#scssdiv img { display:inline !important; }';
|
403 |
+
if($mobilefriendly=='1' && scs_is_mobile())
|
404 |
+
{
|
405 |
+
$js_code .= PHP_EOL;
|
406 |
+
$js_code .='#scssdiv span { margin-right:15px !important;}';
|
407 |
+
$js_code .= PHP_EOL;
|
408 |
+
}
|
409 |
+
$js_code.='</style>';
|
410 |
|
411 |
|
412 |
|
413 |
echo $js_code;
|
414 |
+
|
415 |
}
|
416 |
?>
|
app/design/frontend/base/default/template/socialloginsharing/socialshare_show.phtml
CHANGED
@@ -1,418 +1,426 @@
|
|
1 |
-
<?php
|
2 |
-
$scss_product_page=false;
|
3 |
-
if(Mage::registry('current_product')) {
|
4 |
-
$scss_product_page = true;
|
5 |
-
}
|
6 |
-
if(!$scss_product_page)
|
7 |
-
{
|
8 |
-
$is_validated=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_validated');
|
9 |
-
|
10 |
-
if($is_validated=='1')
|
11 |
-
{
|
12 |
-
/*$scss_product_page=false;
|
13 |
-
if(Mage::registry('current_product')) {
|
14 |
-
$scss_product_page = true;
|
15 |
-
}
|
16 |
-
*/
|
17 |
-
$display_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/displaystyle');
|
18 |
-
if(!function_exists('scs_is_mobile'))
|
19 |
-
{
|
20 |
-
function scs_is_mobile()
|
21 |
-
{
|
22 |
-
$useragent=$_SERVER['HTTP_USER_AGENT'];
|
23 |
-
|
24 |
-
|
25 |
-
return preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i',substr($useragent,0,4));
|
26 |
-
|
27 |
-
|
28 |
-
}
|
29 |
-
}
|
30 |
-
if(!function_exists('cs_get_plusones'))
|
31 |
-
{
|
32 |
-
|
33 |
-
function cs_get_plusones($url) {
|
34 |
-
$curl = curl_init();
|
35 |
-
curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
|
36 |
-
curl_setopt($curl, CURLOPT_POST, true);
|
37 |
-
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
38 |
-
curl_setopt($curl, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"'.rawurldecode($url).'","source":"widget","userId":"@viewer","groupId":"@self"},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]');
|
39 |
-
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
40 |
-
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
|
41 |
-
$curl_results = curl_exec ($curl);
|
42 |
-
curl_close ($curl);
|
43 |
-
$json = json_decode($curl_results, true);
|
44 |
-
return isset($json[0]['result']['metadata']['globalCounts']['count'])?intval( $json[0]['result']['metadata']['globalCounts']['count'] ):0;
|
45 |
-
}
|
46 |
-
|
47 |
-
}
|
48 |
-
if(!function_exists('cs_format_share_url'))
|
49 |
-
{
|
50 |
-
function cs_format_share_url($url,$source)
|
51 |
-
{
|
52 |
-
|
53 |
-
$name = "scsource";
|
54 |
-
$value = $source;
|
55 |
-
|
56 |
-
|
57 |
-
$separator = "?";
|
58 |
-
if (strpos($url,"?")!==false)
|
59 |
-
$separator = "&";
|
60 |
-
|
61 |
-
|
62 |
-
$insertPosition = strlen($url);
|
63 |
-
if (strpos($url,"#")!==false)
|
64 |
-
$insertPosition = strpos($url,"#");
|
65 |
-
|
66 |
-
|
67 |
-
$newUrl = substr_replace($url,"$separator$name=$value",$insertPosition,0);
|
68 |
-
|
69 |
-
return $newUrl;
|
70 |
-
}
|
71 |
-
|
72 |
-
}
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
$iwidth=explode("x",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/iconsize'));
|
77 |
-
$mobilefriendly=Mage::getStoreConfig('socialloginsharing_options/
|
78 |
-
|
79 |
-
$
|
80 |
-
$
|
81 |
-
$
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
$
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
'
|
107 |
-
|
108 |
-
|
109 |
-
$
|
110 |
-
$
|
111 |
-
$
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
$
|
116 |
-
$
|
117 |
-
$
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
$
|
124 |
-
$
|
125 |
-
$
|
126 |
-
$
|
127 |
-
$
|
128 |
-
$
|
129 |
-
$
|
130 |
-
$
|
131 |
-
$
|
132 |
-
|
133 |
-
|
134 |
-
$
|
135 |
-
$
|
136 |
-
$
|
137 |
-
$
|
138 |
-
$
|
139 |
-
$
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
$
|
146 |
-
$
|
147 |
-
$
|
148 |
-
$
|
149 |
-
$
|
150 |
-
$
|
151 |
-
$
|
152 |
-
$
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
$
|
159 |
-
$
|
160 |
-
$
|
161 |
-
$
|
162 |
-
$
|
163 |
-
$
|
164 |
-
$
|
165 |
-
$
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
$
|
172 |
-
$
|
173 |
-
$
|
174 |
-
$
|
175 |
-
$
|
176 |
-
$
|
177 |
-
$
|
178 |
-
$
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
$
|
184 |
-
$
|
185 |
-
$
|
186 |
-
$
|
187 |
-
$
|
188 |
-
$
|
189 |
-
$
|
190 |
-
$
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
$
|
196 |
-
$
|
197 |
-
$
|
198 |
-
$
|
199 |
-
$
|
200 |
-
$
|
201 |
-
$
|
202 |
-
$
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
$
|
209 |
-
$
|
210 |
-
$
|
211 |
-
$
|
212 |
-
$
|
213 |
-
$
|
214 |
-
$
|
215 |
-
$
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
$
|
223 |
-
$
|
224 |
-
$
|
225 |
-
$
|
226 |
-
$
|
227 |
-
$
|
228 |
-
$
|
229 |
-
$
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
$
|
237 |
-
$
|
238 |
-
$
|
239 |
-
$
|
240 |
-
$
|
241 |
-
$
|
242 |
-
$
|
243 |
-
$
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
$
|
251 |
-
$
|
252 |
-
$
|
253 |
-
$
|
254 |
-
$
|
255 |
-
$
|
256 |
-
$
|
257 |
-
$
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
$
|
264 |
-
$
|
265 |
-
$
|
266 |
-
$
|
267 |
-
$
|
268 |
-
$
|
269 |
-
$
|
270 |
-
$
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
$
|
278 |
-
$
|
279 |
-
$
|
280 |
-
$
|
281 |
-
$
|
282 |
-
$
|
283 |
-
$
|
284 |
-
$
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
$
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
$
|
323 |
-
|
324 |
-
|
325 |
-
$
|
326 |
-
$
|
327 |
-
$
|
328 |
-
$
|
329 |
-
$
|
330 |
-
$
|
331 |
-
$
|
332 |
-
$
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
$share_arr[
|
367 |
-
$share_arr[
|
368 |
-
$share_arr[
|
369 |
-
$share_arr[
|
370 |
-
$share_arr[
|
371 |
-
$share_arr[
|
372 |
-
$share_arr[
|
373 |
-
$share_arr[
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
$
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
$
|
383 |
-
$
|
384 |
-
$
|
385 |
-
$
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
$js_code
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
?>
|
1 |
+
<?php
|
2 |
+
$scss_product_page=false;
|
3 |
+
if(Mage::registry('current_product')) {
|
4 |
+
$scss_product_page = true;
|
5 |
+
}
|
6 |
+
if(!$scss_product_page)
|
7 |
+
{
|
8 |
+
$is_validated=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_validated');
|
9 |
+
|
10 |
+
if($is_validated=='1')
|
11 |
+
{
|
12 |
+
/*$scss_product_page=false;
|
13 |
+
if(Mage::registry('current_product')) {
|
14 |
+
$scss_product_page = true;
|
15 |
+
}
|
16 |
+
*/
|
17 |
+
$display_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/displaystyle');
|
18 |
+
if(!function_exists('scs_is_mobile'))
|
19 |
+
{
|
20 |
+
function scs_is_mobile()
|
21 |
+
{
|
22 |
+
$useragent=$_SERVER['HTTP_USER_AGENT'];
|
23 |
+
|
24 |
+
|
25 |
+
return preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i',substr($useragent,0,4));
|
26 |
+
|
27 |
+
|
28 |
+
}
|
29 |
+
}
|
30 |
+
if(!function_exists('cs_get_plusones'))
|
31 |
+
{
|
32 |
+
|
33 |
+
function cs_get_plusones($url) {
|
34 |
+
$curl = curl_init();
|
35 |
+
curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
|
36 |
+
curl_setopt($curl, CURLOPT_POST, true);
|
37 |
+
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
38 |
+
curl_setopt($curl, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"'.rawurldecode($url).'","source":"widget","userId":"@viewer","groupId":"@self"},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]');
|
39 |
+
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
40 |
+
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
|
41 |
+
$curl_results = curl_exec ($curl);
|
42 |
+
curl_close ($curl);
|
43 |
+
$json = json_decode($curl_results, true);
|
44 |
+
return isset($json[0]['result']['metadata']['globalCounts']['count'])?intval( $json[0]['result']['metadata']['globalCounts']['count'] ):0;
|
45 |
+
}
|
46 |
+
|
47 |
+
}
|
48 |
+
if(!function_exists('cs_format_share_url'))
|
49 |
+
{
|
50 |
+
function cs_format_share_url($url,$source)
|
51 |
+
{
|
52 |
+
|
53 |
+
$name = "scsource";
|
54 |
+
$value = $source;
|
55 |
+
|
56 |
+
|
57 |
+
$separator = "?";
|
58 |
+
if (strpos($url,"?")!==false)
|
59 |
+
$separator = "&";
|
60 |
+
|
61 |
+
|
62 |
+
$insertPosition = strlen($url);
|
63 |
+
if (strpos($url,"#")!==false)
|
64 |
+
$insertPosition = strpos($url,"#");
|
65 |
+
|
66 |
+
|
67 |
+
$newUrl = substr_replace($url,"$separator$name=$value",$insertPosition,0);
|
68 |
+
|
69 |
+
return $newUrl;
|
70 |
+
}
|
71 |
+
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
$iwidth=explode("x",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/iconsize'));
|
77 |
+
$mobilefriendly=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/mobilefriendly');
|
78 |
+
|
79 |
+
$button_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyle');
|
80 |
+
$gap=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/gapsetting');
|
81 |
+
$counter_type=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/countersetting');
|
82 |
+
$share_button=explode(",",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/socialproviders'));
|
83 |
+
|
84 |
+
$vartical_top=$counter_position="";
|
85 |
+
$main_div='height:'.$iwidth[0].'px';
|
86 |
+
$cspageURL = 'http';
|
87 |
+
if($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
|
88 |
+
$cspageURL .= "://";
|
89 |
+
if ($_SERVER["SERVER_PORT"] != "80") {
|
90 |
+
$cspageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
91 |
+
} else {
|
92 |
+
$cspageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
93 |
+
}
|
94 |
+
$url=$cspageURL;
|
95 |
+
if($counter_type=='0' || $counter_type=='1')
|
96 |
+
{
|
97 |
+
|
98 |
+
$counter_position='.arrow_box:after, .arrow_box:before { top: 100%; left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } .arrow_box:after { border-color: rgba(255, 255, 255, 0); border-top-color: #fff; border-width: 6px; margin-left: -6px; } .arrow_box:before { border-color: rgba(204, 204, 203, 0); border-top-color: #cccccb; border-width: 7px; margin-left: -7px; }';
|
99 |
+
if($counter_type=='0')
|
100 |
+
{
|
101 |
+
$main_div='float:left;margin-top:0px;margin-left:8px;height:'.$iwidth[0].'px;margin-right:8px;';
|
102 |
+
|
103 |
+
$counter_position='.arrow_box:after, .arrow_box:before { right: 100%; top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } .arrow_box:after { border-color: rgba(255, 255, 255, 0); border-right-color: #fff; border-width: 6px; margin-top: -6px; } .arrow_box:before { border-color: rgba(204, 204, 203, 0); border-right-color: #cccccb; border-width: 7px; margin-top: -7px; }';
|
104 |
+
}
|
105 |
+
$js_code .='<style>'.PHP_EOL.
|
106 |
+
'.arrow_box { width: '.($iwidth[0]-5).'px; margin-bottom:8px;'.$main_div.' border-radius: 1px; position: relative; background: #fff; border: 1px solid #cccccb; }'.$counter_position.''.PHP_EOL.
|
107 |
+
'</style>'.PHP_EOL;
|
108 |
+
}
|
109 |
+
$is_mobile='0';
|
110 |
+
$mobile_Display="display:none !important;";
|
111 |
+
$comon_counter_start='<div class="arrow_box" ><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
|
112 |
+
$comon_counter_start_18='<div class="arrow_box" style="display:none;"><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
|
113 |
+
if(scs_is_mobile())
|
114 |
+
{
|
115 |
+
$is_mobile='1';
|
116 |
+
$iwidth=explode("x","40x40");
|
117 |
+
$mobile_Display="display:inline-block !important;";
|
118 |
+
$comon_counter_start_18='<div class="arrow_box"><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
|
119 |
+
}
|
120 |
+
if($button_style=='custom')
|
121 |
+
{
|
122 |
+
|
123 |
+
$fb_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylefb');
|
124 |
+
$gp_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylegp');
|
125 |
+
$li_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyleli');
|
126 |
+
$tw_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyletw');
|
127 |
+
$pi_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylepi');
|
128 |
+
$wa_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylewa');
|
129 |
+
$su_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylesu');
|
130 |
+
$rd_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylerd');
|
131 |
+
$tm_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyletm');
|
132 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src=\''.(($fb_style)?$fb_style:'https://www.socleversocial.com/dashboard/img/social_icon/rounded/facebook_square.png').'\'';
|
133 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src=\''.(($gp_style)?$gp_style:'https://www.socleversocial.com/dashboard/img/social_icon/rounded/google_plus_square.png').'\'';
|
134 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\''.(($li_style)?$li_style:'https://www.socleversocial.com/dashboard/img/social_icon/rounded/linkedin_square.png').'\'';
|
135 |
+
$src_style13='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\''.(($tw_style)?$tw_style:'https://www.socleversocial.com/dashboard/img/social_icon/rounded/twitter_square.png').'\'';
|
136 |
+
$src_style17='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\''.(($pi_style)?$pi_style:'https://www.socleversocial.com/dashboard/img/social_icon/rounded/pinterest_square.png').'\'';
|
137 |
+
$src_style18='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'\' src=\''.(($wa_style)?$wa_style:'https://www.socleversocial.com/dashboard/img/social_icon/rounded/linkedin_square.png').'\'';
|
138 |
+
$src_style19='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\''.(($su_style)?$su_style:'https://www.socleversocial.com/dashboard/img/social_icon/rounded/stumbleupon_square.png').'\'';
|
139 |
+
$src_style20='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\''.(($rd_style)?$rd_style:'https://www.socleversocial.com/dashboard/img/social_icon/rounded/reddit_square.png').'\'';
|
140 |
+
$src_style21='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\''.(($tm_style)?$tm_style:'https://www.socleversocial.com/dashboard/img/social_icon/square/tumblr_square.png').'\'';
|
141 |
+
|
142 |
+
}
|
143 |
+
else if($button_style=='1')
|
144 |
+
{
|
145 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/facebook_square.png"';
|
146 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/google_plus_square.png"';
|
147 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/rounded/linkedin_square.png\'';
|
148 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/twitter_square.png"';
|
149 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/pinterest_square.png"';
|
150 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/whatsapp_square.png"';
|
151 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/stumbleupon_square.png"';
|
152 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/reddit_square.png"';
|
153 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/tumblr_square.png"';
|
154 |
+
|
155 |
+
}
|
156 |
+
else if($button_style=='2')
|
157 |
+
{
|
158 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/facebook.png"';
|
159 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/google_plus.png"';
|
160 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/rounded/linkedin.png\'';
|
161 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/twitter.png"';
|
162 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/pinterest.png"';
|
163 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/whatsapp.png"';
|
164 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/stumbleupon.png"';
|
165 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/reddit.png"';
|
166 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/tumblr.png"';
|
167 |
+
|
168 |
+
}
|
169 |
+
else if($button_style=='3')
|
170 |
+
{
|
171 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/facebook_grey.png"';
|
172 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/google_plus_grey.png"';
|
173 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/rounded/linkedin_grey.png\'';
|
174 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/twitter_grey.png"';
|
175 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/pinterest_grey.png"';
|
176 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/whatsapp_grey.png"';
|
177 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/stumbleupon_grey.png"';
|
178 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/reddit_grey.png"';
|
179 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/tumblr_grey.png"';
|
180 |
+
}
|
181 |
+
else if($button_style=='4')
|
182 |
+
{
|
183 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/facebook_grey_circle.png"';
|
184 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/google_plus_grey_circle.png"';
|
185 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/rounded/linkedin_grey_circle.png\'';
|
186 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/twitter_grey_circle.png"';
|
187 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/pinterest_grey_circle.png"';
|
188 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/whatsapp_grey_circle.png"';
|
189 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/stumbleupon_grey_circle.png"';
|
190 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded/reddit_grey_circle.png"';
|
191 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/grey_circle/tumblr_grey_circle.png"';
|
192 |
+
}
|
193 |
+
else if($button_style=='5')
|
194 |
+
{
|
195 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/flower/facebook_flower.png"';
|
196 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/flower/google_flower.png"';
|
197 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/flower/linkedin_flower.png\'';
|
198 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/flower/twitter_flower.png"';
|
199 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/flower/pinterest_flower.png"';
|
200 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/square/whatsapp_square.png"';
|
201 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/flower/stumbleupon_flower.png"';
|
202 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/flower/reddit_flower.png"';
|
203 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/flower/tumblr_flower.png"';
|
204 |
+
|
205 |
+
}
|
206 |
+
else if($button_style=='6')
|
207 |
+
{
|
208 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/glossy/facebook_glossy.png"';
|
209 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/glossy/google_glossy.png"';
|
210 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/glossy/linkedin_glossy.png\'';
|
211 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/glossy/twitter_glossy.png"';
|
212 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/glossy/pinterest_glossy.png"';
|
213 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/square/whatsapp_square.png"';
|
214 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/glossy/stumbleupon_glossy.png"';
|
215 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/glossy/reddit_glossy.png"';
|
216 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/glossy/tumblr_glossy.png"';
|
217 |
+
|
218 |
+
|
219 |
+
}
|
220 |
+
else if($button_style=='7')
|
221 |
+
{
|
222 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/leaf/facebook_leaf.png"';
|
223 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/leaf/google_leaf.png"';
|
224 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/leaf/linkedin_leaf.png\'';
|
225 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/leaf/twitter_leaf.png"';
|
226 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/leaf/pinterest_leaf.png"';
|
227 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/square/whatsapp_square.png"';
|
228 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/leaf/stumbleupon_leaf.png"';
|
229 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/leaf/reddit_leaf.png"';
|
230 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/leaf/tumblr_leaf.png"';
|
231 |
+
|
232 |
+
|
233 |
+
}
|
234 |
+
else if($button_style=='8')
|
235 |
+
{
|
236 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/polygon/facebook_polygon.png"';
|
237 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/polygon/google_polygon.png"';
|
238 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/polygon/linkedin_polygon.png\'';
|
239 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/polygon/twitter_polygon.png"';
|
240 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/polygon/pinterest_polygon.png"';
|
241 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/square/whatsapp_square.png"';
|
242 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/polygon/stumbleupon_polygon.png"';
|
243 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/polygon/reddit_polygon.png"';
|
244 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/polygon/tumblr_polygon.png"';
|
245 |
+
|
246 |
+
|
247 |
+
}
|
248 |
+
else if($button_style=='9')
|
249 |
+
{
|
250 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rectangular/facebook_rectangular.png"';
|
251 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rectangular/google_rectangular.png"';
|
252 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/rectangular/linkedin_rectangular.png\'';
|
253 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rectangular/twitter_rectangular.png"';
|
254 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rectangular/pinterest_rectangular.png"';
|
255 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/square/whatsapp_square.png"';
|
256 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rectangular/stumbleupon_rectangular.png"';
|
257 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rectangular/reddit_rectangular.png"';
|
258 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rectangular/tumblr_rectangular.png"';
|
259 |
+
|
260 |
+
}
|
261 |
+
else if($button_style=='10')
|
262 |
+
{
|
263 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded_corners/facebook_rounded_corners.png"';
|
264 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded_corners/google_rounded_corners.png"';
|
265 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/rounded_corners/linkedin_rounded_corners.png\'';
|
266 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded_corners/twitter_rounded_corners.png"';
|
267 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded_corners/pinterest_rounded_corners.png"';
|
268 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/square/whatsapp_square.png"';
|
269 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded_corners/stumbleupon_rounded_corners.png"';
|
270 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded_corners/reddit_rounded_corners.png"';
|
271 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/rounded_corners/tumblr_rounded_corners.png"';
|
272 |
+
|
273 |
+
|
274 |
+
}
|
275 |
+
else if($button_style=='11')
|
276 |
+
{
|
277 |
+
$src_style2='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/waterdrop/facebook_waterdrop.png"';
|
278 |
+
$src_style4='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/waterdrop/google_waterdrop.png"';
|
279 |
+
$src_style7='style=\'width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;\' src=\'https://www.socleversocial.com/dashboard/img/social_icon/waterdrop/linkedin_waterdrop.png\'';
|
280 |
+
$src_style13='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/waterdrop/twitter_waterdrop.png"';
|
281 |
+
$src_style17='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/waterdrop/pinterest_waterdrop.png"';
|
282 |
+
$src_style18='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;'.$mobile_Display.'" src="https://www.socleversocial.com/dashboard/img/social_icon/square/whatsapp_square.png"';
|
283 |
+
$src_style19='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/waterdrop/stumbleupon_waterdrop.png"';
|
284 |
+
$src_style20='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/waterdrop/reddit_waterdrop.png"';
|
285 |
+
$src_style21='style="width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;cursor:pointer;" src="https://www.socleversocial.com/dashboard/img/social_icon/waterdrop/tumblr_waterdrop.png"';
|
286 |
+
}
|
287 |
+
if($display_style=='1')
|
288 |
+
{
|
289 |
+
$gap_string='<span style=\'float:left;height:'.$gap.'px;\'> </span>';
|
290 |
+
}
|
291 |
+
else
|
292 |
+
{
|
293 |
+
$gap_string='<span style=\'float:left;width:'.$gap.'px;\'> </span>';
|
294 |
+
}
|
295 |
+
|
296 |
+
if($mobilefriendly=='1' && scs_is_mobile())
|
297 |
+
{
|
298 |
+
$gap_string='';
|
299 |
+
}
|
300 |
+
|
301 |
+
|
302 |
+
|
303 |
+
if($counter_type=='0' || $counter_type=='1')
|
304 |
+
{
|
305 |
+
//$url=$this->helper('core/url')->getCurrentUrl();
|
306 |
+
|
307 |
+
|
308 |
+
|
309 |
+
$counter_top_margin='';
|
310 |
+
if($counter_type=='0')
|
311 |
+
{
|
312 |
+
$counter_top_margin='margin-top:'.intval($iwidth[0]/4).'px;';
|
313 |
+
}
|
314 |
+
|
315 |
+
$comon_counter_end='</div></div>';
|
316 |
+
|
317 |
+
|
318 |
+
$comon_counter_end='</div></div>';
|
319 |
+
$count2=$count4=$count7=$count13=$count17=$count18=$count19=$count20=$count21="";
|
320 |
+
if(!scs_is_mobile())
|
321 |
+
{
|
322 |
+
$other_count=file_get_contents("https://www.socleversocial.com/dashboard/get_other_counts.php?site_id=".Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_siteid')."&url=".$url."");
|
323 |
+
$row_count=explode("~",$other_count);
|
324 |
+
|
325 |
+
$count2r=$count2=''.$comon_counter_start.''.intval($row_count[4]).''.$comon_counter_end.'';
|
326 |
+
$count4r=$count4=''.$comon_counter_start.''.intval($row_count[6]).''.$comon_counter_end.'';
|
327 |
+
$count7r=$count7=''.$comon_counter_start.''.intval($row_count[5]).''.$comon_counter_end.'';
|
328 |
+
$count13r=$count13=''.$comon_counter_start.''.intval($row_count[7]).''.$comon_counter_end.'';
|
329 |
+
$count17r=$count17=''.$comon_counter_start.''.intval($row_count[8]).''.$comon_counter_end.'';
|
330 |
+
$count18r=$count18=''.$comon_counter_start_18.''.intval($row_count[0]).''.$comon_counter_end.'';
|
331 |
+
$count19r=$count19=''.$comon_counter_start.''.intval($row_count[1]).''.$comon_counter_end.'';
|
332 |
+
$count20r=$count20=''.$comon_counter_start.''.intval($row_count[2]).''.$comon_counter_end.'';
|
333 |
+
$count21r=$count21=''.$comon_counter_start.''.intval($row_count[3]).''.$comon_counter_end.'';
|
334 |
+
}
|
335 |
+
|
336 |
+
}
|
337 |
+
if($counter_type=='0')
|
338 |
+
{
|
339 |
+
$count2=$count4=$count7=$count13=$count17=$count18=$count19=$count20=$count21="";
|
340 |
+
}
|
341 |
+
else
|
342 |
+
{
|
343 |
+
$count2r=$count4r=$count7r=$count13r=$count17r=$count18r=$count19r=$count20r=$count21r="";
|
344 |
+
}
|
345 |
+
|
346 |
+
if($customer = Mage::getSingleton('customer/session')->isLoggedIn()) {
|
347 |
+
|
348 |
+
$customerData = Mage::getSingleton('customer/session')->getCustomer();
|
349 |
+
//$customerData = Mage::getModel('customer/customer')->load($customer->getId())->getData();
|
350 |
+
|
351 |
+
$user_ID=$customerData->getId();
|
352 |
+
|
353 |
+
}
|
354 |
+
$title=$this->getLayout()->getBlock('head')->getTitle();
|
355 |
+
|
356 |
+
if($mobilefriendly=='1' && scs_is_mobile())
|
357 |
+
{
|
358 |
+
$ic_div='margin:0px 0px;width:'.$iwidth[0].'px;height:'.$iwidth[0].'px;';
|
359 |
+
}
|
360 |
+
else
|
361 |
+
{
|
362 |
+
$ic_div='float:left;';
|
363 |
+
}
|
364 |
+
|
365 |
+
|
366 |
+
$share_arr[2]='<span style="'.$ic_div.'">'.$count2.'<img '.$src_style2.' onclick="share_on_cs(\'1\',\''.$user_ID.'\');cspopupCenterMagento(\'http://www.facebook.com/sharer.php?u='.urlencode(cs_format_share_url($url,'1')).'&t='.urlencode($title).'\',\'Share on Facebook\',\'600\',\'400\');" alt="Share on Facebook" ></span>'.$count2r.''.$gap_string.'';
|
367 |
+
$share_arr[4]='<span style=\''.$ic_div.'\'>'.$count4.'<img '.$src_style4.' onclick="share_on_cs(\'3\',\''.$user_ID.'\');cspopupCenterMagento(\'https://plus.google.com/share?url='.urlencode(cs_format_share_url($url,'3')).'&title='.urlencode($title).'\',\'Share on Google\',\'600\',\'400\');" alt="Share on Google+"></span>'.$count4r.''.$gap_string.'';
|
368 |
+
$share_arr[7]='<span style=\''.$ic_div.'\'>'.$count7.'<img '.$src_style7.' onclick="share_on_cs(\'2\',\''.$user_ID.'\');cspopupCenterMagento(\'https://www.linkedin.com/cws/share?url='.urlencode(cs_format_share_url($url,'2')).'&title='.urlencode($title).'\',\'Share on LinkedIN\',\'600\',\'400\');" alt="Share on LinkedIN" ></span>'.$count7r.''.$gap_string.'';
|
369 |
+
$share_arr[13]='<span style=\''.$ic_div.'\'>'.$count13.'<img '.$src_style13.' onclick="share_on_cs(\'4\',\''.$user_ID.'\');cspopupCenterMagento(\'http://twitter.com/share?url='.urlencode(cs_format_share_url($url,'4')).'&text='.urlencode($title).'\',\'Share on Twitter\',\'600\',\'400\');" alt="Share on Twitter"></span>'.$count13r.''.$gap_string.'';
|
370 |
+
$share_arr[17]='<span style=\''.$ic_div.'\'>'.$count17.'<img '.$src_style17.' onclick="share_on_cs(\'5\',\''.$user_ID.'\');" alt="Pin It"></span>'.$count17r.''.$gap_string.'';
|
371 |
+
$share_arr[18]='<span style=\''.$ic_div.'\'>'.$count18.'<img '.$src_style18.' onclick="share_on_cs(\'6\',\''.$user_ID.'\');" alt="Share on Whatsapp"></span>'.$count18r.''.$gap_string.'';
|
372 |
+
$share_arr[19]='<span style=\''.$ic_div.'\'>'.$count19.'<img '.$src_style19.' onclick="share_on_cs(\'7\',\''.$user_ID.'\');cspopupCenterMagento(\'http://www.stumbleupon.com/submit?url='.urlencode(cs_format_share_url($url,'7')).'&title='.urlencode($title).'\',\'Share on StumbleUpon\',\'600\',\'400\');"" alt="Share on StumbleUpon"></span>'.$count19r.''.$gap_string.'';
|
373 |
+
$share_arr[20]='<span style=\''.$ic_div.'\'>'.$count20.'<img '.$src_style20.' onclick="share_on_cs(\'8\',\''.$user_ID.'\');cspopupCenterMagento(\'http://www.reddit.com/submit?url='.urlencode(cs_format_share_url($url,'8')).'&title='.urlencode($title).'\',\'Share on Reddit\',\'600\',\'400\');"" alt="Share on Reddit"></span>'.$count20r.''.$gap_string.'';
|
374 |
+
$share_arr[21]='<span style=\''.$ic_div.'\'>'.$count21.'<img '.$src_style21.' onclick="share_on_cs(\'9\',\''.$user_ID.'\');cspopupCenterMagento(\'http://www.tumblr.com/share/link?url='.urlencode(cs_format_share_url($url,'9')).'&name='.urlencode($title).'\',\'Share on Tumblr\',\'600\',\'400\');"" alt="Share on Tumblr"></span>'.$count21r.''.$gap_string.'';
|
375 |
+
|
376 |
+
|
377 |
+
$start_div='<div id="scssdiv" style="clear:both;wdth:100%;height:100%;display:inline-block;z-index:999;">';
|
378 |
+
$end_div='</div>';
|
379 |
+
if($display_style=='1' || $display_style=='2' )
|
380 |
+
{
|
381 |
+
|
382 |
+
$left_right=($display_style=='2')?'right:0;':'left:0;';
|
383 |
+
$multiplier_div=($counter_type=='0')?'2':'1';
|
384 |
+
$add_extra=($counter_type=='0')?'20':'0';
|
385 |
+
$start_div='<div id="scssdiv" style="width:'.intval(($iwidth[0]*$multiplier_div)+$add_extra).'px;position:fixed;top:30%;'.$left_right.'display:inline-block;height:100%;z-index:999;">';
|
386 |
+
$end_div='</div>';
|
387 |
+
}
|
388 |
+
|
389 |
+
if($mobilefriendly=='1' && scs_is_mobile())
|
390 |
+
{
|
391 |
+
|
392 |
+
$start_div='<div id="scssdiv" style="width: 90%;position:fixed;left:10%;bottom:1%;height: 40px; background-color:transparent;z-index:999;text-align:center;margin:0 auto;">';
|
393 |
+
|
394 |
+
}
|
395 |
+
|
396 |
+
$js_code .= PHP_EOL;
|
397 |
+
$js_code .=$start_div;
|
398 |
+
foreach($share_button as $key=>$val)
|
399 |
+
{
|
400 |
+
|
401 |
+
$js_code .=$share_arr[$val];
|
402 |
+
}
|
403 |
+
$js_code .=$end_div;
|
404 |
+
|
405 |
+
$js_code .= PHP_EOL;
|
406 |
+
$js_code .='<script type="text/javascript">
|
407 |
+
function cspopupCenterMagento(url, title, w, h) {
|
408 |
+
var left = (screen.width/2)-(w/2);
|
409 |
+
var top = (screen.height/2)-(h/2);
|
410 |
+
return window.open(url, title, \'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=\'+w+\', height=\'+h+\', top=\'+top+\', left=\'+left);
|
411 |
+
}
|
412 |
+
</script>'.PHP_EOL;
|
413 |
+
|
414 |
+
$js_code .='<style>#scssdiv img { display:inline !important; }';
|
415 |
+
if($mobilefriendly=='1' && scs_is_mobile())
|
416 |
+
{
|
417 |
+
$js_code .= PHP_EOL;
|
418 |
+
$js_code .='#scssdiv span { margin-right:15px !important;}';
|
419 |
+
$js_code .= PHP_EOL;
|
420 |
+
}
|
421 |
+
$js_code.='</style>';
|
422 |
+
echo $js_code;
|
423 |
+
|
424 |
+
}
|
425 |
+
}
|
426 |
?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>socleverloginsharing</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
@@ -29,11 +29,11 @@
|
|
29 |
Send personalised message to your visitors by using our birthday reports. </p>
|
30 |
<p><strong>Dynamic JavaScript</strong><br />
|
31 |
Our asynchronous javascript loads faster without interfearing with the display or behaviour of the page. Dynamic JavaScript makes it easy to choose/sort social netork buttons for display.</p></description>
|
32 |
-
<notes>
|
33 |
<authors><author><name>Soclever Social</name><user>Socleversocial</user><email>hemang@socleversocial.com</email></author></authors>
|
34 |
-
<date>2015-
|
35 |
-
<time>
|
36 |
-
<contents><target name="magelocal"><dir name="Soclever"><dir name="Socialloginsharing"><dir name="Model"><file name="Observer.php" hash="e030057738d89a0b186ff25ce5e5dbfe"/><file name="Providers.php" hash="c036d6fac3cc3259075b315b27f0d671"/></dir><dir name="Block"><file name="Scslhead.php" hash="219920fc652715e4383509b0ceedf82f"/><file name="Scslshow.php" hash="e979ec3119f18b8d0b8a2dc38b2d0341"/><file name="Scsltrackpixel.php" hash="dcb7add6ba6acd6cfd8080b40d2b0e24"/><file name="Scslheadfb.php" hash="4298e17782026f4003694ebcb1149376"/><file name="Scsshead.php" hash="173c515d7a83f8b42cd00d38bcd47a5e"/><file name="Scsshow.php" hash="392625a6c38bec962120fa40f0cf68ed"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Customopt1toggle.php" hash="2deb0de4baaa671232e7cadd9bddba1e"/></dir></dir></dir></dir></dir><file name="Scssfooter.php" hash="1437931932e9c6c6c0b7c3ab173dc51a"/></dir><dir name="controllers"><file name="IndexController.php" hash="
|
37 |
<compatible/>
|
38 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
39 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>socleverloginsharing</name>
|
4 |
+
<version>1.2.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
29 |
Send personalised message to your visitors by using our birthday reports. </p>
|
30 |
<p><strong>Dynamic JavaScript</strong><br />
|
31 |
Our asynchronous javascript loads faster without interfearing with the display or behaviour of the page. Dynamic JavaScript makes it easy to choose/sort social netork buttons for display.</p></description>
|
32 |
+
<notes>Minor bug fix</notes>
|
33 |
<authors><author><name>Soclever Social</name><user>Socleversocial</user><email>hemang@socleversocial.com</email></author></authors>
|
34 |
+
<date>2015-08-05</date>
|
35 |
+
<time>05:19:38</time>
|
36 |
+
<contents><target name="magelocal"><dir name="Soclever"><dir name="Socialloginsharing"><dir name="Model"><file name="Observer.php" hash="e030057738d89a0b186ff25ce5e5dbfe"/><file name="Providers.php" hash="c036d6fac3cc3259075b315b27f0d671"/><file name="Info.php" hash="03c6cd13748bc1f9fad8a7ccdc7fca2f"/></dir><dir name="Block"><file name="Scslhead.php" hash="219920fc652715e4383509b0ceedf82f"/><file name="Scslshow.php" hash="e979ec3119f18b8d0b8a2dc38b2d0341"/><file name="Scsltrackpixel.php" hash="dcb7add6ba6acd6cfd8080b40d2b0e24"/><file name="Scslheadfb.php" hash="4298e17782026f4003694ebcb1149376"/><file name="Scsshead.php" hash="173c515d7a83f8b42cd00d38bcd47a5e"/><file name="Scsshow.php" hash="392625a6c38bec962120fa40f0cf68ed"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Customopt1toggle.php" hash="2deb0de4baaa671232e7cadd9bddba1e"/></dir></dir></dir></dir></dir><file name="Scssfooter.php" hash="1437931932e9c6c6c0b7c3ab173dc51a"/></dir><dir name="controllers"><file name="IndexController.php" hash="a4dd7a82e9d2022036d4e8a82a2c2015"/><file name="openid.php" hash="421d5936957b8ddda543b679d1876f04"/><file name="http.php" hash="1fe6b6ac5002ed03f3bb5e7f623b8682"/><file name="oauth_client.php" hash="37aa9661a90add71a61181e1f800be44"/></dir><dir name="etc"><file name="config.xml" hash="1806f73e913dfd37f76058ef8d51f847"/><file name="system.xml" hash="0052b5e8b0e810f5895d0cddfa4b3c8a"/></dir><dir name="Helper"><file name="Data.php" hash="035a7f9b50f1e92c9955e427d4e7a73e"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="socialloginsharing.xml" hash="dece49ed90e3ab16196ecaf878e505ab"/></dir><dir name="template"><dir name="socialloginsharing"><file name="scsl_buttons.phtml" hash="3bda0893a31e7d72f930b26d1f584e0a"/><file name="sociallogin_fb.phtml" hash="718d8596a14d123d83afb0d5d6d6fd96"/><file name="sociallogin_head.phtml" hash="f9a4331ee933427b6c3f36ae88b840e9"/><file name="sociallogin_trackpixel.phtml" hash="542ceb3ba7d5314f2f9aad416636d349"/><file name="socialshare_head.phtml" hash="f35a4bdaad57d1731be186f9e0ac612e"/><file name="socialshare_product.phtml" hash="0172f2dc7ca60597da93cd79e42f52a3"/><file name="socialshare_show.phtml" hash="9f0b49cf0b5ed456db0abe8a535c28c1"/><file name="socialshare_footer.phtml" hash="d11a5014fc6b326123df5a1322582399"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="soclever_socialloginsharing.xml" hash="17a99813f44f3aa85a4781558133ac5c"/></dir></target></contents>
|
37 |
<compatible/>
|
38 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
39 |
</package>
|