socleverloginsharing - Version 1.1.0

Version Notes

Stable Version 1.1.0

Download this release

Release Info

Developer Soclever Social
Extension socleverloginsharing
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.0 to 1.1.0

app/code/local/Soclever/Socialloginsharing/Block/Adminhtml/System/Config/Form/Field/Customopt1toggle.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Soclever_Socialloginsharing_Block_Adminhtml_System_Config_Form_Field_Customopt1toggle extends Mage_Adminhtml_Block_System_Config_Form_Field
3
+ {
4
+
5
+ /**
6
+ * Get element ID of the dependent field to toggle
7
+ *
8
+ * @param object $element
9
+ * @return String
10
+ */
11
+ protected function _getToggleElementId($element)
12
+ {
13
+ return substr($element->getId(), 0, strrpos($element->getId(), 'mbcustomopt1')) . 'mbcustomopt2';
14
+ }
15
+ /**
16
+ * Get element ID of the dependent field's parent row
17
+ *
18
+ * @param object $element
19
+ * @return String
20
+ */
21
+ protected function _getToggleRowElementId($element)
22
+ {
23
+ return 'row_'.$this->_getToggleElementId($element);
24
+ }
25
+ /**
26
+ * Override method to output our custom HTML with JavaScript
27
+ *
28
+ * @param Varien_Data_Form_Element_Abstract $element
29
+ * @return String
30
+ */
31
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
32
+ {
33
+
34
+ // Get the default HTML for this option
35
+ $html = parent::_getElementHtml($element);
36
+ // Set up additional JavaScript for our toggle action. Note we are using the two helper methods above
37
+ // to get the correct field ID's. They are hard-coded and depend on your option names in system.xml
38
+ $javaScript = "
39
+ <script type=\"text/javascript\">
40
+ Event.observe(window, 'load', function() {
41
+ enabled=document.getElementById('socialloginsharing_options_displaysettingshare_yourstyle').value;
42
+ if (enabled=='custom') {
43
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylefb').show();
44
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylegp').show();
45
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylepi').show();
46
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylewa').show();
47
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylesu').show();
48
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyleli').show();
49
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylerd').show();
50
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletw').show();
51
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletm').show();
52
+ } else {
53
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylefb').hide();
54
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylegp').hide();
55
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylepi').hide();
56
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylewa').hide();
57
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylesu').hide();
58
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyleli').hide();
59
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylerd').hide();
60
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletw').hide();
61
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletm').hide();
62
+ }
63
+ });
64
+ Event.observe('socialloginsharing_options_displaysettingshare_yourstyle', 'change', function(){
65
+ enabled=document.getElementById('socialloginsharing_options_displaysettingshare_yourstyle').value;
66
+ if (enabled=='custom') {
67
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylefb').show();
68
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylegp').show();
69
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylepi').show();
70
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylewa').show();
71
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylesu').show();
72
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyleli').show();
73
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylerd').show();
74
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletw').show();
75
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletm').show();
76
+ } else {
77
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylefb').hide();
78
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylegp').hide();
79
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylepi').hide();
80
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylewa').hide();
81
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylesu').hide();
82
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyleli').hide();
83
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstylerd').hide();
84
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletw').hide();
85
+ document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletm').hide();
86
+ }
87
+ });
88
+ </script>";
89
+
90
+ $html .= $javaScript;
91
+ return $html;
92
+ }
93
+ }
94
+
95
+ ?>
app/code/local/Soclever/Socialloginsharing/Block/Scssfooter.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Soclever_Socialloginsharing_Block_Scssfooter extends Mage_Core_Block_Template
3
+ {
4
+ protected function _construct(){
5
+ parent::_construct();
6
+
7
+ }
8
+ public function _prepareLayout(){
9
+ return parent::_prepareLayout();
10
+ }
11
+ }
12
+
13
+ ?>
app/code/local/Soclever/Socialloginsharing/Model/Providers.php CHANGED
@@ -24,7 +24,10 @@ class Soclever_Socialloginsharing_Model_Providers
24
  array('value'=>7, 'label'=>'LinkedIN'),
25
  array('value'=>13, 'label'=>'Twitter'),
26
  array('value'=>17, 'label'=>'Pinterest'),
27
- array('value'=>18, 'label'=>'Whatsapp'),
 
 
 
28
  );
29
  /*$providers=array("2"=>"Facebook","4"=>"Google+","7"=>"LinkedIN","13"=>"Twitter","17"=>"Pinterest");
30
  return $providers;*/
@@ -36,7 +39,7 @@ class Soclever_Socialloginsharing_Model_Providers
36
  array('value'=>2, 'label'=>'Facebook'),
37
  array('value'=>4, 'label'=>'Google+'),
38
  array('value'=>7, 'label'=>'LinkedIN'),
39
- array('value'=>13, 'label'=>'Yahoo!'),
40
  array('value'=>16, 'label'=>'Paypal'),
41
  array('value'=>8, 'label'=>'Microsoft'),
42
  );
@@ -82,7 +85,7 @@ class Soclever_Socialloginsharing_Model_Providers
82
  {
83
  $yourstyle=array();
84
  $yourstyle=array("2"=>'Rounded Corner',"3"=>'Transparent Grey',"4"=>'Rounded Black',"5"=>'Flower',
85
- "6"=>'Glossy',"7"=>'Leaf',"8"=>'Polygon',"10"=>'Rectangular',"11"=>'Waterdrop');
86
  return $yourstyle;
87
 
88
  }
@@ -92,6 +95,13 @@ class Soclever_Socialloginsharing_Model_Providers
92
  $sharewithautho=array("0"=>"No","1"=>"Yes");
93
  return $sharewithautho;
94
 
 
 
 
 
 
 
 
95
  }
96
  public function getpreview()
97
  {
24
  array('value'=>7, 'label'=>'LinkedIN'),
25
  array('value'=>13, 'label'=>'Twitter'),
26
  array('value'=>17, 'label'=>'Pinterest'),
27
+ array('value'=>18, 'label'=>'Whatsapp'),
28
+ array('value'=>19, 'label'=>'Stumbleupon'),
29
+ array('value'=>20, 'label'=>'Reddit'),
30
+ array('value'=>21, 'label'=>'Tumblr'),
31
  );
32
  /*$providers=array("2"=>"Facebook","4"=>"Google+","7"=>"LinkedIN","13"=>"Twitter","17"=>"Pinterest");
33
  return $providers;*/
39
  array('value'=>2, 'label'=>'Facebook'),
40
  array('value'=>4, 'label'=>'Google+'),
41
  array('value'=>7, 'label'=>'LinkedIN'),
42
+ array('value'=>15, 'label'=>'Yahoo!'),
43
  array('value'=>16, 'label'=>'Paypal'),
44
  array('value'=>8, 'label'=>'Microsoft'),
45
  );
85
  {
86
  $yourstyle=array();
87
  $yourstyle=array("2"=>'Rounded Corner',"3"=>'Transparent Grey',"4"=>'Rounded Black',"5"=>'Flower',
88
+ "6"=>'Glossy',"7"=>'Leaf',"8"=>'Polygon',"10"=>'Rectangular',"11"=>'Waterdrop',"custom"=>'Custom');
89
  return $yourstyle;
90
 
91
  }
95
  $sharewithautho=array("0"=>"No","1"=>"Yes");
96
  return $sharewithautho;
97
 
98
+ }
99
+ public function showpoweredby()
100
+ {
101
+ $showpoweredby=array();
102
+ $showpoweredby=array("1"=>"Yes","0"=>"No");
103
+ return $showpoweredby;
104
+
105
  }
106
  public function getpreview()
107
  {
app/code/local/Soclever/Socialloginsharing/controllers/IndexController.php CHANGED
@@ -28,6 +28,7 @@ if(isset($_GET['lc']) && $_GET['lc']!='')
28
 
29
  if($get_fb!='0')
30
  {
 
31
  $app_arr=explode("~",$get_fb);
32
  $app_id = $app_arr[0];
33
  $my_url="".Mage::getBaseUrl()."soclever_socialloginsharing/index/fblogin";
@@ -125,6 +126,14 @@ $customer = Mage::getModel("customer/customer");
125
  Mage::getModel('core/session', array('name' => 'frontend'));
126
  $customer->setWebsiteId(Mage::app()->getWebsite()->getId());
127
  $customer->loadByEmail($username);
 
 
 
 
 
 
 
 
128
 
129
  $redirect_location=($_COOKIE['lc']=='c')?Mage::getBaseUrl()."checkout/onepage/":Mage::getBaseUrl()."customer/account/";
130
  if(isset($_COOKIE['lch']) && $_COOKIE['lch']!='')
@@ -231,6 +240,16 @@ $customer = Mage::getModel("customer/customer");
231
  Mage::getModel('core/session', array('name' => 'frontend'));
232
  $customer->setWebsiteId(Mage::app()->getWebsite()->getId());
233
  $customer->loadByEmail($username);
 
 
 
 
 
 
 
 
 
 
234
  $redirect_location=($_GET['lc']=='c')?Mage::getBaseUrl()."checkout/onepage/":Mage::getBaseUrl()."customer/account/";
235
  $is_from='7';
236
  Mage::getSingleton('core/session')->setSessionVariable($is_from);
@@ -419,7 +438,16 @@ $customer = Mage::getModel("customer/customer");
419
 
420
  Mage::getModel('core/session', array('name' => 'frontend'));
421
  $customer->setWebsiteId(Mage::app()->getWebsite()->getId());
422
- $customer->loadByEmail($username);
 
 
 
 
 
 
 
 
 
423
  $this->getSession()->loginById($customer->getId());
424
 
425
  if(Mage::getSingleton('customer/session')->isLoggedIn())
28
 
29
  if($get_fb!='0')
30
  {
31
+
32
  $app_arr=explode("~",$get_fb);
33
  $app_id = $app_arr[0];
34
  $my_url="".Mage::getBaseUrl()."soclever_socialloginsharing/index/fblogin";
126
  Mage::getModel('core/session', array('name' => 'frontend'));
127
  $customer->setWebsiteId(Mage::app()->getWebsite()->getId());
128
  $customer->loadByEmail($username);
129
+ $customer->setCustomerActivated(true);
130
+ $customer->setData('password',$password);
131
+ $customer->save();
132
+ if($is_new=='1' && Mage::getStoreConfig('socialloginsharing_options/displaysettings/socialloginregemail')=='1')
133
+ {
134
+ $customer->sendNewAccountEmail();
135
+
136
+ }
137
 
138
  $redirect_location=($_COOKIE['lc']=='c')?Mage::getBaseUrl()."checkout/onepage/":Mage::getBaseUrl()."customer/account/";
139
  if(isset($_COOKIE['lch']) && $_COOKIE['lch']!='')
240
  Mage::getModel('core/session', array('name' => 'frontend'));
241
  $customer->setWebsiteId(Mage::app()->getWebsite()->getId());
242
  $customer->loadByEmail($username);
243
+ $customer->setCustomerActivated(true);
244
+ $customer->setData('password',$password);
245
+ $customer->save();
246
+ if($is_new=='1' && Mage::getStoreConfig('socialloginsharing_options/displaysettings/socialloginregemail')=='1')
247
+ {
248
+ $customer->sendNewAccountEmail();
249
+
250
+ }
251
+
252
+
253
  $redirect_location=($_GET['lc']=='c')?Mage::getBaseUrl()."checkout/onepage/":Mage::getBaseUrl()."customer/account/";
254
  $is_from='7';
255
  Mage::getSingleton('core/session')->setSessionVariable($is_from);
438
 
439
  Mage::getModel('core/session', array('name' => 'frontend'));
440
  $customer->setWebsiteId(Mage::app()->getWebsite()->getId());
441
+ $customer->loadByEmail($username);
442
+ $customer->setCustomerActivated(true);
443
+ $customer->setData('password',$password);
444
+ $customer->save();
445
+ if($is_new=='1' && Mage::getStoreConfig('socialloginsharing_options/displaysettings/socialloginregemail')=='1')
446
+ {
447
+ $customer->sendNewAccountEmail();
448
+
449
+ }
450
+
451
  $this->getSession()->loginById($customer->getId());
452
 
453
  if(Mage::getSingleton('customer/session')->isLoggedIn())
app/code/local/Soclever/Socialloginsharing/etc/config.xml CHANGED
@@ -22,7 +22,8 @@
22
  <default>
23
  <socialloginsharing_options>
24
  <displaysettings>
25
- <buttonstyle>ic</buttonstyle>
 
26
  </displaysettings>
27
  </socialloginsharing_options>
28
  </default>
22
  <default>
23
  <socialloginsharing_options>
24
  <displaysettings>
25
+ <buttonstyle>ic</buttonstyle>
26
+ <socialloginboxcaption>Login With:</socialloginboxcaption>
27
  </displaysettings>
28
  </socialloginsharing_options>
29
  </default>
app/code/local/Soclever/Socialloginsharing/etc/system.xml CHANGED
@@ -74,7 +74,7 @@
74
  <label>Select Providers</label>
75
  <frontend_type>multiselect</frontend_type>
76
  <source_model>socialloginsharing/providers::getproviders</source_model>
77
- <sort_order>201</sort_order>
78
  <show_in_default>1</show_in_default>
79
  <show_in_website>1</show_in_website>
80
  <show_in_store>1</show_in_store>
@@ -83,7 +83,7 @@
83
  <label>Counter Display</label>
84
  <frontend_type>select</frontend_type>
85
  <source_model>socialloginsharing/providers::getcounters</source_model>
86
- <sort_order>200</sort_order>
87
  <show_in_default>1</show_in_default>
88
  <show_in_website>1</show_in_website>
89
  <show_in_store>1</show_in_store>
@@ -92,7 +92,7 @@
92
  <label>Gap</label>
93
  <frontend_type>select</frontend_type>
94
  <source_model>socialloginsharing/providers::getgaps</source_model>
95
- <sort_order>199</sort_order>
96
  <show_in_default>1</show_in_default>
97
  <show_in_website>1</show_in_website>
98
  <show_in_store>1</show_in_store>
@@ -101,7 +101,7 @@
101
  <label>Icon Size</label>
102
  <frontend_type>select</frontend_type>
103
  <source_model>socialloginsharing/providers::geticonsize</source_model>
104
- <sort_order>198</sort_order>
105
  <show_in_default>1</show_in_default>
106
  <show_in_website>1</show_in_website>
107
  <show_in_store>1</show_in_store>
@@ -109,9 +109,8 @@
109
  <displaystyle translate="label">
110
  <label>Display Style</label>
111
  <frontend_type>select</frontend_type>
112
- <source_model>socialloginsharing/providers::displaystyle</source_model>
113
-
114
- <sort_order>197</sort_order>
115
  <show_in_default>1</show_in_default>
116
  <show_in_website>1</show_in_website>
117
  <show_in_store>1</show_in_store>
@@ -119,12 +118,85 @@
119
  <yourstyle translate="label">
120
  <label>Button Style</label>
121
  <frontend_type>select</frontend_type>
122
- <source_model>socialloginsharing/providers::yourstyle</source_model>
123
- <sort_order>197</sort_order>
 
124
  <show_in_default>1</show_in_default>
125
  <show_in_website>1</show_in_website>
126
  <show_in_store>1</show_in_store>
127
  </yourstyle>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  </fields>
129
  </displaysettingshare>
130
  <displaysettings translate="label">
@@ -139,7 +211,7 @@
139
  <label>Select Button Style</label>
140
  <frontend_type>select</frontend_type>
141
  <source_model>socialloginsharing/providers::getbuttonstyles</source_model>
142
- <sort_order>200</sort_order>
143
  <show_in_default>1</show_in_default>
144
  <show_in_website>1</show_in_website>
145
  <show_in_store>1</show_in_store>
@@ -148,7 +220,7 @@
148
  <label>Button Size</label>
149
  <frontend_type>select</frontend_type>
150
  <source_model>socialloginsharing/providers::getsizes</source_model>
151
- <sort_order>199</sort_order>
152
  <show_in_default>1</show_in_default>
153
  <show_in_website>1</show_in_website>
154
  <show_in_store>1</show_in_store>
@@ -157,11 +229,39 @@
157
  <label>Select Providers</label>
158
  <frontend_type>multiselect</frontend_type>
159
  <source_model>socialloginsharing/providers::getloginproviders</source_model>
160
- <sort_order>201</sort_order>
161
  <show_in_default>1</show_in_default>
162
  <show_in_website>1</show_in_website>
163
  <show_in_store>1</show_in_store>
164
  </socialloginproviders>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  </fields>
166
  </displaysettings>
167
  </groups>
74
  <label>Select Providers</label>
75
  <frontend_type>multiselect</frontend_type>
76
  <source_model>socialloginsharing/providers::getproviders</source_model>
77
+ <sort_order>150</sort_order>
78
  <show_in_default>1</show_in_default>
79
  <show_in_website>1</show_in_website>
80
  <show_in_store>1</show_in_store>
83
  <label>Counter Display</label>
84
  <frontend_type>select</frontend_type>
85
  <source_model>socialloginsharing/providers::getcounters</source_model>
86
+ <sort_order>151</sort_order>
87
  <show_in_default>1</show_in_default>
88
  <show_in_website>1</show_in_website>
89
  <show_in_store>1</show_in_store>
92
  <label>Gap</label>
93
  <frontend_type>select</frontend_type>
94
  <source_model>socialloginsharing/providers::getgaps</source_model>
95
+ <sort_order>152</sort_order>
96
  <show_in_default>1</show_in_default>
97
  <show_in_website>1</show_in_website>
98
  <show_in_store>1</show_in_store>
101
  <label>Icon Size</label>
102
  <frontend_type>select</frontend_type>
103
  <source_model>socialloginsharing/providers::geticonsize</source_model>
104
+ <sort_order>153</sort_order>
105
  <show_in_default>1</show_in_default>
106
  <show_in_website>1</show_in_website>
107
  <show_in_store>1</show_in_store>
109
  <displaystyle translate="label">
110
  <label>Display Style</label>
111
  <frontend_type>select</frontend_type>
112
+ <source_model>socialloginsharing/providers::displaystyle</source_model>
113
+ <sort_order>154</sort_order>
 
114
  <show_in_default>1</show_in_default>
115
  <show_in_website>1</show_in_website>
116
  <show_in_store>1</show_in_store>
118
  <yourstyle translate="label">
119
  <label>Button Style</label>
120
  <frontend_type>select</frontend_type>
121
+ <source_model>socialloginsharing/providers::yourstyle</source_model>
122
+ <frontend_model>socialloginsharing/adminhtml_system_config_form_field_customopt1toggle</frontend_model>
123
+ <sort_order>110</sort_order>
124
  <show_in_default>1</show_in_default>
125
  <show_in_website>1</show_in_website>
126
  <show_in_store>1</show_in_store>
127
  </yourstyle>
128
+ <yourstylefb translate="label">
129
+ <label>Facebook</label>
130
+ <frontend_type>text</frontend_type>
131
+ <sort_order>111</sort_order>
132
+ <show_in_default>1</show_in_default>
133
+ <show_in_website>1</show_in_website>
134
+ <show_in_store>1</show_in_store>
135
+ </yourstylefb>
136
+ <yourstylegp translate="label">
137
+ <label>Google+</label>
138
+ <frontend_type>text</frontend_type>
139
+ <sort_order>112</sort_order>
140
+ <show_in_default>1</show_in_default>
141
+ <show_in_website>1</show_in_website>
142
+ <show_in_store>1</show_in_store>
143
+ </yourstylegp>
144
+ <yourstyletw translate="label">
145
+ <label>Twitter</label>
146
+ <frontend_type>text</frontend_type>
147
+ <sort_order>113</sort_order>
148
+ <show_in_default>1</show_in_default>
149
+ <show_in_website>1</show_in_website>
150
+ <show_in_store>1</show_in_store>
151
+ </yourstyletw>
152
+ <yourstyleli translate="label">
153
+ <label>LinkedIN</label>
154
+ <frontend_type>text</frontend_type>
155
+ <sort_order>114</sort_order>
156
+ <show_in_default>1</show_in_default>
157
+ <show_in_website>1</show_in_website>
158
+ <show_in_store>1</show_in_store>
159
+ </yourstyleli>
160
+ <yourstylepi translate="label">
161
+ <label>Pinterest</label>
162
+ <frontend_type>text</frontend_type>
163
+ <sort_order>115</sort_order>
164
+ <show_in_default>1</show_in_default>
165
+ <show_in_website>1</show_in_website>
166
+ <show_in_store>1</show_in_store>
167
+ </yourstylepi>
168
+ <yourstylewa translate="label">
169
+ <label>Whatsapp</label>
170
+ <frontend_type>text</frontend_type>
171
+ <sort_order>116</sort_order>
172
+ <show_in_default>1</show_in_default>
173
+ <show_in_website>1</show_in_website>
174
+ <show_in_store>1</show_in_store>
175
+ </yourstylewa>
176
+ <yourstylesu translate="label">
177
+ <label>StumbleUpon</label>
178
+ <frontend_type>text</frontend_type>
179
+ <sort_order>117</sort_order>
180
+ <show_in_default>1</show_in_default>
181
+ <show_in_website>1</show_in_website>
182
+ <show_in_store>1</show_in_store>
183
+ </yourstylesu>
184
+ <yourstylerd translate="label">
185
+ <label>Reddit</label>
186
+ <frontend_type>text</frontend_type>
187
+ <sort_order>118</sort_order>
188
+ <show_in_default>1</show_in_default>
189
+ <show_in_website>1</show_in_website>
190
+ <show_in_store>1</show_in_store>
191
+ </yourstylerd>
192
+ <yourstyletm translate="label">
193
+ <label>Tumblr</label>
194
+ <frontend_type>text</frontend_type>
195
+ <sort_order>119</sort_order>
196
+ <show_in_default>1</show_in_default>
197
+ <show_in_website>1</show_in_website>
198
+ <show_in_store>1</show_in_store>
199
+ </yourstyletm>
200
  </fields>
201
  </displaysettingshare>
202
  <displaysettings translate="label">
211
  <label>Select Button Style</label>
212
  <frontend_type>select</frontend_type>
213
  <source_model>socialloginsharing/providers::getbuttonstyles</source_model>
214
+ <sort_order>207</sort_order>
215
  <show_in_default>1</show_in_default>
216
  <show_in_website>1</show_in_website>
217
  <show_in_store>1</show_in_store>
220
  <label>Button Size</label>
221
  <frontend_type>select</frontend_type>
222
  <source_model>socialloginsharing/providers::getsizes</source_model>
223
+ <sort_order>208</sort_order>
224
  <show_in_default>1</show_in_default>
225
  <show_in_website>1</show_in_website>
226
  <show_in_store>1</show_in_store>
229
  <label>Select Providers</label>
230
  <frontend_type>multiselect</frontend_type>
231
  <source_model>socialloginsharing/providers::getloginproviders</source_model>
232
+ <sort_order>209</sort_order>
233
  <show_in_default>1</show_in_default>
234
  <show_in_website>1</show_in_website>
235
  <show_in_store>1</show_in_store>
236
  </socialloginproviders>
237
+ <socialloginboxcaption translate="label">
238
+ <label>Login Box Caption</label>
239
+ <frontend_type>text</frontend_type>
240
+ <comment><![CDATA[Text to display on social login box i.e Social Login By]]></comment>
241
+ <sort_order>210</sort_order>
242
+ <show_in_default>1</show_in_default>
243
+ <show_in_website>1</show_in_website>
244
+ <show_in_store>1</show_in_store>
245
+ </socialloginboxcaption>
246
+ <socialloginpowerby translate="label">
247
+ <label>Show Powered by SoClever</label>
248
+ <frontend_type>select</frontend_type>
249
+ <source_model>socialloginsharing/providers::showpoweredby</source_model>
250
+ <comment><![CDATA[At the bottom of login box will show "Powered By Socleversocial.com"]]></comment>
251
+ <sort_order>211</sort_order>
252
+ <show_in_default>1</show_in_default>
253
+ <show_in_website>1</show_in_website>
254
+ <show_in_store>1</show_in_store>
255
+ </socialloginpowerby>
256
+ <socialloginregemail translate="label">
257
+ <label>Send welcome email?</label>
258
+ <frontend_type>select</frontend_type>
259
+ <source_model>adminhtml/system_config_source_yesno</source_model>
260
+ <sort_order>212</sort_order>
261
+ <show_in_default>1</show_in_default>
262
+ <show_in_website>1</show_in_website>
263
+ <show_in_store>1</show_in_store>
264
+ </socialloginregemail>
265
  </fields>
266
  </displaysettings>
267
  </groups>
app/design/frontend/base/default/layout/socialloginsharing.xml CHANGED
@@ -7,6 +7,11 @@
7
  <block type="socialloginsharing/scsshead" name="socialshare_head" template="socialloginsharing/socialshare_head.phtml" />
8
  </reference>
9
  </default>
 
 
 
 
 
10
  <catalog_product_view>
11
  <reference name="product.info.extrahint">
12
  <block type="socialloginsharing/scsshow" name="socialshare_product" template="socialloginsharing/socialshare_product.phtml" />
7
  <block type="socialloginsharing/scsshead" name="socialshare_head" template="socialloginsharing/socialshare_head.phtml" />
8
  </reference>
9
  </default>
10
+ <default>
11
+ <reference name="before_body_end">
12
+ <block type="socialloginsharing/scssfooter" name="socialshare_footer" template="socialloginsharing/socialshare_footer.phtml" />
13
+ </reference>
14
+ </default>
15
  <catalog_product_view>
16
  <reference name="product.info.extrahint">
17
  <block type="socialloginsharing/scsshow" name="socialshare_product" template="socialloginsharing/socialshare_product.phtml" />
app/design/frontend/base/default/template/socialloginsharing/scsl_buttons.phtml CHANGED
@@ -4,6 +4,8 @@ $api_secret=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_ap
4
  $api_key=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_appid');
5
  $btn_style=Mage::getStoreConfig('socialloginsharing_options/displaysettings/buttonstyle');
6
  $button_size=Mage::getStoreConfig('socialloginsharing_options/displaysettings/buttonsize');
 
 
7
 
8
  $is_validated=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_validated');
9
 
@@ -11,8 +13,8 @@ $selected_providers=Mage::getStoreConfig('socialloginsharing_options/displaysett
11
 
12
  if($is_validated=='1' && $selected_providers!='' && $selected_providers!='0')
13
  {
14
-
15
- $valid_data=file_get_contents("https://www.socleversocial.com/dashboard/mage_login_buttons.php?site_id=".$site_id."&api_key=".$api_key."&api_secret=".$api_secret."&csplatform=magentologin&rt=gp&bstyle=".$btn_style."&bsize=".$button_size."&providers=".$selected_providers);
16
 
17
  if($valid_data && $valid_data!='0~~0')
18
  {
4
  $api_key=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_appid');
5
  $btn_style=Mage::getStoreConfig('socialloginsharing_options/displaysettings/buttonstyle');
6
  $button_size=Mage::getStoreConfig('socialloginsharing_options/displaysettings/buttonsize');
7
+ $loginboxcaption=Mage::getStoreConfig('socialloginsharing_options/displaysettings/socialloginboxcaption');
8
+ $showpoweredby=Mage::getStoreConfig('socialloginsharing_options/displaysettings/socialloginpowerby');
9
 
10
  $is_validated=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_validated');
11
 
13
 
14
  if($is_validated=='1' && $selected_providers!='' && $selected_providers!='0')
15
  {
16
+
17
+ $valid_data=file_get_contents("https://www.socleversocial.com/dashboard/mage_login_buttons.php?site_id=".$site_id."&api_key=".$api_key."&api_secret=".$api_secret."&csplatform=magentologin&rt=gp&bcaption=".base64_encode($loginboxcaption)."&bshow=".$showpoweredby."&bstyle=".$btn_style."&bsize=".$button_size."&providers=".$selected_providers);
18
 
19
  if($valid_data && $valid_data!='0~~0')
20
  {
app/design/frontend/base/default/template/socialloginsharing/sociallogin_head.phtml CHANGED
@@ -4,7 +4,7 @@ if($is_validated=='1')
4
  {
5
  if(!Mage::getSingleton('customer/session')->isLoggedIn())
6
  {
7
- echo'<script type="text/javascript" src="https://www.socleversocial.com/dashboard/client_share_js/client_'.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_siteid').'_login.js"></script>'.PHP_EOL.
8
  '<script type="text/javascript">'.PHP_EOL.
9
  'csloginjs.init([\''.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_appid').'\', \''.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_siteid').'\',\''.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_appsecret').'\',\''.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_validdomain').'\']);'.PHP_EOL.
10
  'csloginjs.validateCsApi();'.PHP_EOL.
4
  {
5
  if(!Mage::getSingleton('customer/session')->isLoggedIn())
6
  {
7
+ echo'<script type="text/javascript" src="https://www.socleversocial.com/dashboard/client_share_js/client_'.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_siteid').'_combinelogin.js"></script>'.PHP_EOL.
8
  '<script type="text/javascript">'.PHP_EOL.
9
  'csloginjs.init([\''.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_appid').'\', \''.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_siteid').'\',\''.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_appsecret').'\',\''.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_validdomain').'\']);'.PHP_EOL.
10
  'csloginjs.validateCsApi();'.PHP_EOL.
app/design/frontend/base/default/template/socialloginsharing/socialshare_footer.phtml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if(!Mage::getStoreConfig('advanced/modules_disable_output/Soclever_Socialsharesc') && !Mage::getStoreConfig('advanced/modules_disable_output/Soclever_Socialloginsc'))
4
+ {
5
+
6
+ Mage::getModel('core/config')->saveConfig('socialloginsharing_options/apisettings/scsl_footer_added',"1");
7
+ $footer_code='<script type="text/javascript">var sid=\''.Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_siteid').'\';(function()
8
+ { var u=((\'https:\'==document.location.protocol)?\'http://\':\'http://\')+\'s3.socleversocial.com/\'; var su=u;var s=document.createElement(\'script\'); s.type=\'text/javascript\'; s.defer=true; s.async=true; s.src=su+\'scs.js\'; var p=document.getElementsByTagName(\'script\')[0]; p.parentNode.insertBefore(s,p); }
9
+ )();
10
+ </script>'.PHP_EOL;
11
+
12
+ echo $footer_code;
13
+ }
14
+ ?>
app/design/frontend/base/default/template/socialloginsharing/socialshare_product.phtml CHANGED
@@ -1,305 +1,354 @@
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');
6
- if($display_style=='0')
7
- {
8
- if(!function_exists('cs_get_plusones'))
9
- {
10
-
11
- function cs_get_plusones($url) {
12
- $curl = curl_init();
13
- curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
14
- curl_setopt($curl, CURLOPT_POST, true);
15
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
16
- 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"}]');
17
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
18
- curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
19
- $curl_results = curl_exec ($curl);
20
- curl_close ($curl);
21
- $json = json_decode($curl_results, true);
22
- return isset($json[0]['result']['metadata']['globalCounts']['count'])?intval( $json[0]['result']['metadata']['globalCounts']['count'] ):0;
23
- }
24
-
25
- }
26
- if(!function_exists('cs_format_share_url'))
27
- {
28
- function cs_format_share_url($url,$source)
29
- {
30
-
31
- $name = "scsource";
32
- $value = $source;
33
-
34
-
35
- $separator = "?";
36
- if (strpos($url,"?")!==false)
37
- $separator = "&";
38
-
39
-
40
- $insertPosition = strlen($url);
41
- if (strpos($url,"#")!==false)
42
- $insertPosition = strpos($url,"#");
43
-
44
-
45
- $newUrl = substr_replace($url,"$separator$name=$value",$insertPosition,0);
46
-
47
- return $newUrl;
48
- }
49
-
50
- }
51
- $iwidth=explode("x",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/iconsize'));
52
- $button_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyle');
53
- $display_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/displaystyle');
54
- $gap=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/gapsetting');
55
- $counter_type=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/countersetting');
56
- $share_button=explode(",",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/socialproviders'));
57
-
58
- $vartical_top=$counter_position="";
59
- $main_div='height:'.$iwidth[0].'px';
60
- $cspageURL = 'http';
61
- if($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
62
- $cspageURL .= "://";
63
- if ($_SERVER["SERVER_PORT"] != "80") {
64
- $cspageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
65
- } else {
66
- $cspageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
67
- }
68
- $url=$cspageURL;
69
- if($counter_type=='0' || $counter_type=='1')
70
- {
71
-
72
- $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; }';
73
- if($counter_type=='0')
74
- {
75
- $main_div='float:left;margin-top:0px;margin-left:8px;height:'.$iwidth[0].'px;margin-right:8px;';
76
-
77
- $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; }';
78
- }
79
- $js_code .='<style>'.PHP_EOL.
80
- '.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.
81
- '</style>'.PHP_EOL;
82
- }
83
- $useragent=$_SERVER['HTTP_USER_AGENT'];
84
- $mobile_Display="display:none;";
85
- $comon_counter_start='<div class="arrow_box" ><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
86
- $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.'">';
87
- if(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)))
88
- {
89
-
90
- $mobile_Display="display:inline-block;";
91
- $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.'">';
92
- }
93
-
94
- if($button_style=='1')
95
- {
96
- $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"';
97
- $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"';
98
- $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\'';
99
- $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"';
100
- $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"';
101
- $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"';
102
-
103
- }
104
- else if($button_style=='2')
105
- {
106
- $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"';
107
- $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"';
108
- $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\'';
109
- $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"';
110
- $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"';
111
- $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"';
112
- }
113
- else if($button_style=='3')
114
- {
115
- $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"';
116
- $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"';
117
- $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\'';
118
- $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"';
119
- $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"';
120
- $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"';
121
- }
122
- else if($button_style=='4')
123
- {
124
- $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"';
125
- $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"';
126
- $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\'';
127
- $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"';
128
- $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"';
129
- $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"';
130
- }
131
- else if($button_style=='5')
132
- {
133
- $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"';
134
- $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"';
135
- $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\'';
136
- $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"';
137
- $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"';
138
- $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"';
139
-
140
- }
141
- else if($button_style=='6')
142
- {
143
- $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"';
144
- $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"';
145
- $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\'';
146
- $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"';
147
- $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"';
148
- $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"';
149
-
150
- }
151
- else if($button_style=='7')
152
- {
153
- $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"';
154
- $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"';
155
- $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\'';
156
- $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"';
157
- $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"';
158
- $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"';
159
-
160
- }
161
- else if($button_style=='8')
162
- {
163
- $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"';
164
- $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"';
165
- $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\'';
166
- $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"';
167
- $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"';
168
- $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"';
169
-
170
- }
171
- else if($button_style=='9')
172
- {
173
- $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"';
174
- $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"';
175
- $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\'';
176
- $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"';
177
- $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"';
178
- $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"';
179
-
180
- }
181
- else if($button_style=='10')
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_corners/facebook_rounded_corners.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_corners/google_rounded_corners.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_corners/linkedin_rounded_corners.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_corners/twitter_rounded_corners.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_corners/pinterest_rounded_corners.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/square/whatsapp_square.png"';
189
-
190
- }
191
- else if($button_style=='11')
192
- {
193
- $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"';
194
- $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"';
195
- $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\'';
196
- $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"';
197
- $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"';
198
- $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"';
199
- }
200
- if($display_style=='1')
201
- {
202
- $gap_string='<div style=\'float:left;height:'.$gap.'px;\'>&nbsp;</div>';
203
- }
204
- else
205
- {
206
- $gap_string='<div style=\'float:left;width:'.$gap.'px;\'>&nbsp;</div>';
207
- }
208
-
209
- if($counter_type=='0' || $counter_type=='1')
210
- {
211
-
212
-
213
-
214
- $fburl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=1';
215
- $liurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=2';
216
- $gpurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=3';
217
- $twurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=4';
218
-
219
- $fb=json_decode(file_get_contents("http://graph.facebook.com/?ids=".$url.",".$fburl.""));
220
- $tw=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$url.""));
221
- $tw2=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$twurl.""));
222
- $li=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$url."&format=json"));
223
- $li2=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$liurl."&format=json"));
224
- $pin_count=file_get_contents("http://api.pinterest.com/v1/urls/count.json?url=".$url."");
225
-
226
- $whatsapp_count=file_get_contents("https://www.socleversocial.com/dashboard/whatsappcount.php?site_id=".Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_siteid')."&url=".$url."");
227
- $str=substr(substr($pin_count,0,-1),13);
228
- $pin_arr=json_decode($str);
229
-
230
-
231
- $fb=json_decode(file_get_contents("http://graph.facebook.com/?id=".$url.""));
232
- $tw=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$url.""));
233
- $li=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$url."&format=json"));
234
- $pin_count=file_get_contents("http://api.pinterest.com/v1/urls/count.json?url=".$url."");
235
-
236
- $str=substr(substr($pin_count,0,-1),13);
237
- $pin_arr=json_decode($str);
238
-
239
-
240
- $fb_shares="FB Shares=".$fb->shares."==Googleplus==".$count."==Twitter=".$tw->count."===Linked==".$li->count."==Pinterest==".$pin_arr->count;
241
- $counter_top_margin='';
242
- if($counter_type=='0')
243
- {
244
- $counter_top_margin='margin-top:'.intval($iwidth[0]/4).'px;';
245
- }
246
-
247
- $comon_counter_end='</div></div>';
248
- $count2=$count4=$count7=$count13=$count17="";
249
- $count2r=$count2=''.$comon_counter_start.''.intval($fb->$url->shares+$fb->$fburl->shares).''.$comon_counter_end.'';
250
- $count4r=$count4=''.$comon_counter_start.''.intval(cs_get_plusones($url)+cs_get_plusones($gpurl)).''.$comon_counter_end.'';
251
- $count7r=$count7=''.$comon_counter_start.''.intval($tw->count+$tw2->count).''.$comon_counter_end.'';
252
- $count13r=$count13=''.$comon_counter_start.''.intval($li->count+$li2->count).''.$comon_counter_end.'';
253
- $count17r=$count17=''.$comon_counter_start.''.intval($pin_arr->count).''.$comon_counter_end.'';
254
- $count18r=$count18=''.$comon_counter_start_18.''.intval($whatsapp_count).''.$comon_counter_end.'';
255
- }
256
- if($counter_type=='0')
257
- {
258
- $count2=$count4=$count7=$count13=$count17=$count18="";
259
- }
260
- else
261
- {
262
- $count2r=$count4r=$count7r=$count13r=$count17r=$count18r="";
263
- }
264
-
265
- if($customer = Mage::getSingleton('customer/session')->isLoggedIn()) {
266
- $customerData = Mage::getSingleton('customer/session')->getCustomer();
267
-
268
- $user_ID=$customerData->getId();
269
-
270
- }
271
- $title=$this->getLayout()->getBlock('head')->getTitle();
272
- $share_arr[2]='<div style="float:left;">'.$count2.'<img '.$src_style2.' onclick="share_on_cs(\'1\',\''.$user_ID.'\');window.open(\'http://www.facebook.com/sharer.php?u='.urlencode(cs_format_share_url($url,'1')).'&t='.urlencode($title).'\',\'_new\');" alt="Share on Facebook" ></div>'.$count2r.''.$gap_string.'';
273
- $share_arr[4]='<div style=\'float:left;\'>'.$count4.'<img '.$src_style4.' onclick="share_on_cs(\'3\',\''.$user_ID.'\');window.open(\'https://plus.google.com/share?url='.urlencode(cs_format_share_url($url,'3')).'&title='.urlencode($title).'\',\'_new\');" alt="Share on Google+"></div>'.$count4r.''.$gap_string.'';
274
- $share_arr[7]='<div style=\'float:left;\'>'.$count7.'<img '.$src_style7.' onclick="share_on_cs(\'2\',\''.$user_ID.'\');window.open(\'https://www.linkedin.com/cws/share?url='.urlencode(cs_format_share_url($url,'2')).'&title='.urlencode($title).'\',\'_new\');" alt="Share on LinkedIN" ></div>'.$count7r.''.$gap_string.'';
275
- $share_arr[13]='<div style=\'float:left;\'>'.$count13.'<img '.$src_style13.' onclick="share_on_cs(\'4\',\''.$user_ID.'\');window.open(\'http://twitter.com/share?url='.urlencode(cs_format_share_url($url,'4')).'&text='.urlencode($title).'\',\'_new\');" alt="Share on Twitter"></div>'.$count13r.''.$gap_string.'';
276
- $share_arr[17]='<div style=\'float:left;\'>'.$count17.'<img '.$src_style17.' onclick="share_on_cs(\'5\',\''.$user_ID.'\');" alt="Pin It"></div>'.$count17r.''.$gap_string.'';
277
- $share_arr[18]='<div style=\'float:left;\'>'.$count18.'<img '.$src_style18.' onclick="share_on_cs(\'6\',\''.$user_ID.'\');" alt="Share on Whatsapp"></div>'.$count18r.''.$gap_string.'';
278
- $start_div='<div id="scssdiv" style="clear:both;wdth:100%;height:100%;z-index:999;display:inline-block;">';
279
- $end_div='</div>';
280
- if($display_style=='1' || $display_style=='2' )
281
- {
282
-
283
- $left_right=($display_style=='2')?'right:0;':'left:0;';
284
- $multiplier_div=($counter_type=='0')?'2':'1';
285
- $add_extra=($counter_type=='0')?'20':'0';
286
- $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;display:inline-block;">';
287
- $end_div='</div>';
288
- }
289
-
290
-
291
- $js_code .= PHP_EOL;
292
- $js_code .=$start_div;
293
- foreach($share_button as $key=>$val)
294
- {
295
-
296
- $js_code .=$share_arr[$val];
297
- }
298
- $js_code .=$end_div;
299
-
300
-
301
-
302
- echo $js_code;
303
- }
304
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
  ?>
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');
6
+ if($display_style=='0')
7
+ {
8
+ if(!function_exists('cs_get_plusones'))
9
+ {
10
+
11
+ function cs_get_plusones($url) {
12
+ $curl = curl_init();
13
+ curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
14
+ curl_setopt($curl, CURLOPT_POST, true);
15
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
16
+ 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"}]');
17
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
18
+ curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
19
+ $curl_results = curl_exec ($curl);
20
+ curl_close ($curl);
21
+ $json = json_decode($curl_results, true);
22
+ return isset($json[0]['result']['metadata']['globalCounts']['count'])?intval( $json[0]['result']['metadata']['globalCounts']['count'] ):0;
23
+ }
24
+
25
+ }
26
+ if(!function_exists('cs_format_share_url'))
27
+ {
28
+ function cs_format_share_url($url,$source)
29
+ {
30
+
31
+ $name = "scsource";
32
+ $value = $source;
33
+
34
+
35
+ $separator = "?";
36
+ if (strpos($url,"?")!==false)
37
+ $separator = "&";
38
+
39
+
40
+ $insertPosition = strlen($url);
41
+ if (strpos($url,"#")!==false)
42
+ $insertPosition = strpos($url,"#");
43
+
44
+
45
+ $newUrl = substr_replace($url,"$separator$name=$value",$insertPosition,0);
46
+
47
+ return $newUrl;
48
+ }
49
+
50
+ }
51
+ $iwidth=explode("x",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/iconsize'));
52
+ $button_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyle');
53
+ $display_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/displaystyle');
54
+ $gap=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/gapsetting');
55
+ $counter_type=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/countersetting');
56
+ $share_button=explode(",",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/socialproviders'));
57
+
58
+ $vartical_top=$counter_position="";
59
+ $main_div='height:'.$iwidth[0].'px';
60
+ $cspageURL = 'http';
61
+ if($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
62
+ $cspageURL .= "://";
63
+ if ($_SERVER["SERVER_PORT"] != "80") {
64
+ $cspageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
65
+ } else {
66
+ $cspageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
67
+ }
68
+ $url=$cspageURL;
69
+ if($counter_type=='0' || $counter_type=='1')
70
+ {
71
+
72
+ $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; }';
73
+ if($counter_type=='0')
74
+ {
75
+ $main_div='float:left;margin-top:0px;margin-left:8px;height:'.$iwidth[0].'px;margin-right:8px;';
76
+
77
+ $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; }';
78
+ }
79
+ $js_code .='<style>'.PHP_EOL.
80
+ '.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.
81
+ '</style>'.PHP_EOL;
82
+ }
83
+ $useragent=$_SERVER['HTTP_USER_AGENT'];
84
+ $mobile_Display="display:none;";
85
+ $comon_counter_start='<div class="arrow_box" ><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
86
+ $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.'">';
87
+ if(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)))
88
+ {
89
+
90
+ $mobile_Display="display:inline-block;";
91
+ $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.'">';
92
+ }
93
+
94
+ if($button_style=='custom')
95
+ {
96
+ $fb_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylefb');
97
+ $gp_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylegp');
98
+ $li_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyleli');
99
+ $tw_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyletw');
100
+ $pi_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylepi');
101
+ $wa_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylewa');
102
+ $su_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylesu');
103
+ $rd_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylerd');
104
+ $tm_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyletm');
105
+
106
+ $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').'\'';
107
+ $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').'\'';
108
+ $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').'\'';
109
+ $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').'\'';
110
+ $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').'\'';
111
+ $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').'\'';
112
+ $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').'\'';
113
+ $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').'\'';
114
+ $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').'\'';
115
+
116
+ }
117
+ else if($button_style=='1')
118
+ {
119
+ $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"';
120
+ $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"';
121
+ $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\'';
122
+ $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"';
123
+ $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"';
124
+ $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"';
125
+ $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"';
126
+ $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"';
127
+ $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"';
128
+
129
+ }
130
+ else if($button_style=='2')
131
+ {
132
+ $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"';
133
+ $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"';
134
+ $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\'';
135
+ $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"';
136
+ $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"';
137
+ $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"';
138
+ $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"';
139
+ $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"';
140
+ $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"';
141
+
142
+ }
143
+ else if($button_style=='3')
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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.png"';
154
+ }
155
+ else if($button_style=='4')
156
+ {
157
+ $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"';
158
+ $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"';
159
+ $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\'';
160
+ $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"';
161
+ $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"';
162
+ $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"';
163
+ $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"';
164
+ $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"';
165
+ $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"';
166
+ }
167
+ else if($button_style=='5')
168
+ {
169
+ $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"';
170
+ $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"';
171
+ $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\'';
172
+ $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"';
173
+ $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"';
174
+ $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"';
175
+ $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"';
176
+ $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"';
177
+ $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"';
178
+
179
+ }
180
+ else if($button_style=='6')
181
+ {
182
+ $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"';
183
+ $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"';
184
+ $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\'';
185
+ $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"';
186
+ $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"';
187
+ $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"';
188
+ $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"';
189
+ $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"';
190
+ $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"';
191
+
192
+
193
+ }
194
+ else if($button_style=='7')
195
+ {
196
+ $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"';
197
+ $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"';
198
+ $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\'';
199
+ $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"';
200
+ $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"';
201
+ $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"';
202
+ $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"';
203
+ $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"';
204
+ $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"';
205
+
206
+
207
+ }
208
+ else if($button_style=='8')
209
+ {
210
+ $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"';
211
+ $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"';
212
+ $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\'';
213
+ $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"';
214
+ $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"';
215
+ $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"';
216
+ $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"';
217
+ $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"';
218
+ $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"';
219
+
220
+
221
+ }
222
+ else if($button_style=='9')
223
+ {
224
+ $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"';
225
+ $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"';
226
+ $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\'';
227
+ $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"';
228
+ $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"';
229
+ $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"';
230
+ $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"';
231
+ $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"';
232
+ $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"';
233
+
234
+ }
235
+ else if($button_style=='10')
236
+ {
237
+ $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"';
238
+ $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"';
239
+ $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\'';
240
+ $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"';
241
+ $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"';
242
+ $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"';
243
+ $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"';
244
+ $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"';
245
+ $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"';
246
+
247
+
248
+ }
249
+ else if($button_style=='11')
250
+ {
251
+ $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"';
252
+ $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"';
253
+ $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\'';
254
+ $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"';
255
+ $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"';
256
+ $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"';
257
+ $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"';
258
+ $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"';
259
+ $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"';
260
+ }
261
+
262
+ if($display_style=='1')
263
+ {
264
+ $gap_string='<div style=\'float:left;height:'.$gap.'px;\'>&nbsp;</div>';
265
+ }
266
+ else
267
+ {
268
+ $gap_string='<div style=\'float:left;width:'.$gap.'px;\'>&nbsp;</div>';
269
+ }
270
+
271
+ if($counter_type=='0' || $counter_type=='1')
272
+ {
273
+
274
+
275
+
276
+
277
+ $counter_top_margin='';
278
+ if($counter_type=='0')
279
+ {
280
+ $counter_top_margin='margin-top:'.intval($iwidth[0]/4).'px;';
281
+ }
282
+
283
+ $comon_counter_end='</div></div>';
284
+ $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."");
285
+ $row_count=explode("~",$other_count);
286
+ $comon_counter_end='</div></div>';
287
+ $count2=$count4=$count7=$count13=$count17=$count18=$count19=$count20=$count21="";
288
+ $count2r=$count2=''.$comon_counter_start.''.intval($row_count[4]).''.$comon_counter_end.'';
289
+ $count4r=$count4=''.$comon_counter_start.''.intval($row_count[6]).''.$comon_counter_end.'';
290
+ $count7r=$count7=''.$comon_counter_start.''.intval($row_count[5]).''.$comon_counter_end.'';
291
+ $count13r=$count13=''.$comon_counter_start.''.intval($row_count[7]).''.$comon_counter_end.'';
292
+ $count17r=$count17=''.$comon_counter_start.''.intval($row_count[8]).''.$comon_counter_end.'';
293
+ $count18r=$count18=''.$comon_counter_start_18.''.intval($row_count[0]).''.$comon_counter_end.'';
294
+ $count19r=$count19=''.$comon_counter_start.''.intval($row_count[1]).''.$comon_counter_end.'';
295
+ $count20r=$count20=''.$comon_counter_start.''.intval($row_count[2]).''.$comon_counter_end.'';
296
+ $count21r=$count21=''.$comon_counter_start.''.intval($row_count[3]).''.$comon_counter_end.'';
297
+
298
+
299
+ }
300
+ if($counter_type=='0')
301
+ {
302
+ $count2=$count4=$count7=$count13=$count17=$count18=$count19=$count20=$count21="";
303
+ }
304
+ else
305
+ {
306
+ $count2r=$count4r=$count7r=$count13r=$count17r=$count18r=$count19r=$count20r=$count21r="";
307
+ }
308
+
309
+ if($customer = Mage::getSingleton('customer/session')->isLoggedIn()) {
310
+ $customerData = Mage::getSingleton('customer/session')->getCustomer();
311
+
312
+ $user_ID=$customerData->getId();
313
+
314
+ }
315
+ $title=$this->getLayout()->getBlock('head')->getTitle();
316
+ $share_arr[2]='<div style="float:left;">'.$count2.'<img '.$src_style2.' onclick="share_on_cs(\'1\',\''.$user_ID.'\');window.open(\'http://www.facebook.com/sharer.php?u='.urlencode(cs_format_share_url($url,'1')).'&t='.urlencode($title).'\',\'_new\');" alt="Share on Facebook" ></div>'.$count2r.''.$gap_string.'';
317
+ $share_arr[4]='<div style=\'float:left;\'>'.$count4.'<img '.$src_style4.' onclick="share_on_cs(\'3\',\''.$user_ID.'\');window.open(\'https://plus.google.com/share?url='.urlencode(cs_format_share_url($url,'3')).'&title='.urlencode($title).'\',\'_new\');" alt="Share on Google+"></div>'.$count4r.''.$gap_string.'';
318
+ $share_arr[7]='<div style=\'float:left;\'>'.$count7.'<img '.$src_style7.' onclick="share_on_cs(\'2\',\''.$user_ID.'\');window.open(\'https://www.linkedin.com/cws/share?url='.urlencode(cs_format_share_url($url,'2')).'&title='.urlencode($title).'\',\'_new\');" alt="Share on LinkedIN" ></div>'.$count7r.''.$gap_string.'';
319
+ $share_arr[13]='<div style=\'float:left;\'>'.$count13.'<img '.$src_style13.' onclick="share_on_cs(\'4\',\''.$user_ID.'\');window.open(\'http://twitter.com/share?url='.urlencode(cs_format_share_url($url,'4')).'&text='.urlencode($title).'\',\'_new\');" alt="Share on Twitter"></div>'.$count13r.''.$gap_string.'';
320
+ $share_arr[17]='<div style=\'float:left;\'>'.$count17.'<img '.$src_style17.' onclick="share_on_cs(\'5\',\''.$user_ID.'\');" alt="Pin It"></div>'.$count17r.''.$gap_string.'';
321
+ $share_arr[18]='<div style=\'float:left;\'>'.$count18.'<img '.$src_style18.' onclick="share_on_cs(\'6\',\''.$user_ID.'\');" alt="Share on Whatsapp"></div>'.$count18r.''.$gap_string.'';
322
+ $share_arr[19]='<div style=\'float:left;\'>'.$count19.'<img '.$src_style19.' onclick="share_on_cs(\'7\',\''.$user_ID.'\');window.open(\'http://www.stumbleupon.com/submit?url='.urlencode(cs_format_share_url($url,'7')).'&title='.urlencode($title).'\',\'_new\');"" alt="Share on StumbleUpon"></div>'.$count19r.''.$gap_string.'';
323
+ $share_arr[20]='<div style=\'float:left;\'>'.$count20.'<img '.$src_style20.' onclick="share_on_cs(\'8\',\''.$user_ID.'\');window.open(\'http://www.reddit.com/submit?url='.urlencode(cs_format_share_url($url,'8')).'&title='.urlencode($title).'\',\'_new\');"" alt="Share on Reddit"></div>'.$count20r.''.$gap_string.'';
324
+ $share_arr[21]='<div style=\'float:left;\'>'.$count21.'<img '.$src_style21.' onclick="share_on_cs(\'9\',\''.$user_ID.'\');window.open(\'http://www.tumblr.com/share/link?url='.urlencode(cs_format_share_url($url,'9')).'&name='.urlencode($title).'\',\'_new\');"" alt="Pin It"></div>'.$count21r.''.$gap_string.'';
325
+
326
+
327
+ $start_div='<div id="scssdiv" style="clear:both;wdth:100%;height:100%;z-index:999;display:inline-block;">';
328
+ $end_div='</div>';
329
+ if($display_style=='1' || $display_style=='2' )
330
+ {
331
+
332
+ $left_right=($display_style=='2')?'right:0;':'left:0;';
333
+ $multiplier_div=($counter_type=='0')?'2':'1';
334
+ $add_extra=($counter_type=='0')?'20':'0';
335
+ $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;display:inline-block;">';
336
+ $end_div='</div>';
337
+ }
338
+
339
+
340
+ $js_code .= PHP_EOL;
341
+ $js_code .=$start_div;
342
+ foreach($share_button as $key=>$val)
343
+ {
344
+
345
+ $js_code .=$share_arr[$val];
346
+ }
347
+ $js_code .=$end_div;
348
+
349
+
350
+
351
+ echo $js_code;
352
+ }
353
+ }
354
  ?>
app/design/frontend/base/default/template/socialloginsharing/socialshare_show.phtml CHANGED
@@ -1,316 +1,363 @@
1
- <?php
2
- $is_validated=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_validated');
3
- if($is_validated=='1')
4
- {
5
- /*$scss_product_page=false;
6
- if(Mage::registry('current_product')) {
7
- $scss_product_page = true;
8
- }
9
- */
10
- $display_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/displaystyle');
11
- if(!function_exists('cs_get_plusones'))
12
- {
13
-
14
- function cs_get_plusones($url) {
15
- $curl = curl_init();
16
- curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
17
- curl_setopt($curl, CURLOPT_POST, true);
18
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
19
- 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"}]');
20
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
21
- curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
22
- $curl_results = curl_exec ($curl);
23
- curl_close ($curl);
24
- $json = json_decode($curl_results, true);
25
- return isset($json[0]['result']['metadata']['globalCounts']['count'])?intval( $json[0]['result']['metadata']['globalCounts']['count'] ):0;
26
- }
27
-
28
- }
29
- if(!function_exists('cs_format_share_url'))
30
- {
31
- function cs_format_share_url($url,$source)
32
- {
33
-
34
- $name = "scsource";
35
- $value = $source;
36
-
37
-
38
- $separator = "?";
39
- if (strpos($url,"?")!==false)
40
- $separator = "&";
41
-
42
-
43
- $insertPosition = strlen($url);
44
- if (strpos($url,"#")!==false)
45
- $insertPosition = strpos($url,"#");
46
-
47
-
48
- $newUrl = substr_replace($url,"$separator$name=$value",$insertPosition,0);
49
-
50
- return $newUrl;
51
- }
52
-
53
- }
54
-
55
- if($display_style=='1' || $display_style=='2')
56
- {
57
-
58
- $iwidth=explode("x",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/iconsize'));
59
- $button_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyle');
60
- $display_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/displaystyle');
61
- $gap=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/gapsetting');
62
- $counter_type=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/countersetting');
63
- $share_button=explode(",",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/socialproviders'));
64
-
65
- $vartical_top=$counter_position="";
66
- $main_div='height:'.$iwidth[0].'px';
67
- $cspageURL = 'http';
68
- if($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
69
- $cspageURL .= "://";
70
- if ($_SERVER["SERVER_PORT"] != "80") {
71
- $cspageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
72
- } else {
73
- $cspageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
74
- }
75
- $url=$cspageURL;
76
- if($counter_type=='0' || $counter_type=='1')
77
- {
78
-
79
- $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; }';
80
- if($counter_type=='0')
81
- {
82
- $main_div='float:left;margin-top:0px;margin-left:8px;height:'.$iwidth[0].'px;margin-right:8px;';
83
-
84
- $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; }';
85
- }
86
- $js_code .='<style>'.PHP_EOL.
87
- '.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.
88
- '</style>'.PHP_EOL;
89
- }
90
- $useragent=$_SERVER['HTTP_USER_AGENT'];
91
- $mobile_Display="display:none;";
92
- $comon_counter_start='<div class="arrow_box" ><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
93
- $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.'">';
94
- if(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)))
95
- {
96
-
97
- $mobile_Display="display:inline-block;";
98
- $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.'">';
99
- }
100
-
101
- if($button_style=='1')
102
- {
103
- $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"';
104
- $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"';
105
- $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\'';
106
- $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"';
107
- $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"';
108
- $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"';
109
-
110
- }
111
- else if($button_style=='2')
112
- {
113
- $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"';
114
- $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"';
115
- $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\'';
116
- $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"';
117
- $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"';
118
- $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"';
119
- }
120
- else if($button_style=='3')
121
- {
122
- $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"';
123
- $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"';
124
- $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\'';
125
- $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"';
126
- $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"';
127
- $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"';
128
- }
129
- else if($button_style=='4')
130
- {
131
- $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"';
132
- $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"';
133
- $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\'';
134
- $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"';
135
- $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"';
136
- $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"';
137
- }
138
- else if($button_style=='5')
139
- {
140
- $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"';
141
- $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"';
142
- $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\'';
143
- $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"';
144
- $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"';
145
- $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"';
146
-
147
- }
148
- else if($button_style=='6')
149
- {
150
- $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"';
151
- $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"';
152
- $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\'';
153
- $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"';
154
- $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"';
155
- $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"';
156
-
157
- }
158
- else if($button_style=='7')
159
- {
160
- $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"';
161
- $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"';
162
- $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\'';
163
- $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"';
164
- $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"';
165
- $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"';
166
-
167
- }
168
- else if($button_style=='8')
169
- {
170
- $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"';
171
- $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"';
172
- $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\'';
173
- $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"';
174
- $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"';
175
- $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"';
176
-
177
- }
178
- else if($button_style=='9')
179
- {
180
- $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"';
181
- $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"';
182
- $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\'';
183
- $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"';
184
- $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"';
185
- $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"';
186
-
187
- }
188
- else if($button_style=='10')
189
- {
190
- $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"';
191
- $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"';
192
- $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\'';
193
- $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"';
194
- $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"';
195
- $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"';
196
-
197
- }
198
- else if($button_style=='11')
199
- {
200
- $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"';
201
- $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"';
202
- $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\'';
203
- $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"';
204
- $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"';
205
- $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"';
206
- }
207
- if($display_style=='1')
208
- {
209
- $gap_string='<div style=\'float:left;height:'.$gap.'px;\'>&nbsp;</div>';
210
- }
211
- else
212
- {
213
- $gap_string='<div style=\'float:left;width:'.$gap.'px;\'>&nbsp;</div>';
214
- }
215
-
216
- if($counter_type=='0' || $counter_type=='1')
217
- {
218
- //$url=$this->helper('core/url')->getCurrentUrl();
219
-
220
-
221
- $fburl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=1';
222
- $liurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=2';
223
- $gpurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=3';
224
- $twurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=4';
225
-
226
- $fb=json_decode(file_get_contents("http://graph.facebook.com/?ids=".$url.",".$fburl.""));
227
- $tw=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$url.""));
228
- $tw2=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$twurl.""));
229
- $li=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$url."&format=json"));
230
- $li2=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$liurl."&format=json"));
231
- $pin_count=file_get_contents("http://api.pinterest.com/v1/urls/count.json?url=".$url."");
232
-
233
- $whatsapp_count=file_get_contents("https://www.socleversocial.com/dashboard/whatsappcount.php?site_id=".Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_siteid')."&url=".$url."");
234
- $str=substr(substr($pin_count,0,-1),13);
235
- $pin_arr=json_decode($str);
236
-
237
-
238
- $fb=json_decode(file_get_contents("http://graph.facebook.com/?id=".$url.""));
239
- $tw=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$url.""));
240
- $li=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$url."&format=json"));
241
- $pin_count=file_get_contents("http://api.pinterest.com/v1/urls/count.json?url=".$url."");
242
-
243
- $str=substr(substr($pin_count,0,-1),13);
244
- $pin_arr=json_decode($str);
245
-
246
-
247
- $fb_shares="FB Shares=".$fb->shares."==Googleplus==".$count."==Twitter=".$tw->count."===Linked==".$li->count."==Pinterest==".$pin_arr->count;
248
- $counter_top_margin='';
249
- if($counter_type=='0')
250
- {
251
- $counter_top_margin='margin-top:'.intval($iwidth[0]/4).'px;';
252
- }
253
-
254
- $comon_counter_end='</div></div>';
255
- $count2=$count4=$count7=$count13=$count17="";
256
- $count2r=$count2=''.$comon_counter_start.''.intval($fb->$url->shares+$fb->$fburl->shares).''.$comon_counter_end.'';
257
- $count4r=$count4=''.$comon_counter_start.''.intval(cs_get_plusones($url)+cs_get_plusones($gpurl)).''.$comon_counter_end.'';
258
- $count7r=$count7=''.$comon_counter_start.''.intval($tw->count+$tw2->count).''.$comon_counter_end.'';
259
- $count13r=$count13=''.$comon_counter_start.''.intval($li->count+$li2->count).''.$comon_counter_end.'';
260
- $count17r=$count17=''.$comon_counter_start.''.intval($pin_arr->count).''.$comon_counter_end.'';
261
- $count18r=$count18=''.$comon_counter_start_18.''.intval($whatsapp_count).''.$comon_counter_end.'';
262
- }
263
- if($counter_type=='0')
264
- {
265
- $count2=$count4=$count7=$count13=$count17=$count18="";
266
- }
267
- else
268
- {
269
- $count2r=$count4r=$count7r=$count13r=$count17r=$count18r="";
270
- }
271
-
272
- if($customer = Mage::getSingleton('customer/session')->isLoggedIn()) {
273
-
274
- $customerData = Mage::getSingleton('customer/session')->getCustomer();
275
- //$customerData = Mage::getModel('customer/customer')->load($customer->getId())->getData();
276
-
277
- $user_ID=$customerData->getId();
278
-
279
- }
280
- $title=$this->getLayout()->getBlock('head')->getTitle();
281
- $share_arr[2]='<div style="float:left;">'.$count2.'<img '.$src_style2.' onclick="share_on_cs(\'1\',\''.$user_ID.'\');window.open(\'http://www.facebook.com/sharer.php?u='.urlencode(cs_format_share_url($url,'1')).'&t='.urlencode($title).'\',\'_new\');" alt="Share on Facebook" ></div>'.$count2r.''.$gap_string.'';
282
- $share_arr[4]='<div style=\'float:left;\'>'.$count4.'<img '.$src_style4.' onclick="share_on_cs(\'3\',\''.$user_ID.'\');window.open(\'https://plus.google.com/share?url='.urlencode(cs_format_share_url($url,'3')).'&title='.urlencode($title).'\',\'_new\');" alt="Share on Google+"></div>'.$count4r.''.$gap_string.'';
283
- $share_arr[7]='<div style=\'float:left;\'>'.$count7.'<img '.$src_style7.' onclick="share_on_cs(\'2\',\''.$user_ID.'\');window.open(\'https://www.linkedin.com/cws/share?url='.urlencode(cs_format_share_url($url,'2')).'&title='.urlencode($title).'\',\'_new\');" alt="Share on LinkedIN" ></div>'.$count7r.''.$gap_string.'';
284
- $share_arr[13]='<div style=\'float:left;\'>'.$count13.'<img '.$src_style13.' onclick="share_on_cs(\'4\',\''.$user_ID.'\');window.open(\'http://twitter.com/share?url='.urlencode(cs_format_share_url($url,'4')).'&text='.urlencode($title).'\',\'_new\');" alt="Share on Twitter"></div>'.$count13r.''.$gap_string.'';
285
- $share_arr[17]='<div style=\'float:left;\'>'.$count17.'<img '.$src_style17.' onclick="share_on_cs(\'5\',\''.$user_ID.'\');" alt="Pin It"></div>'.$count17r.''.$gap_string.'';
286
- $share_arr[18]='<div style=\'float:left;\'>'.$count18.'<img '.$src_style18.' onclick="share_on_cs(\'6\',\''.$user_ID.'\');" alt="Share on Whatsapp"></div>'.$count18r.''.$gap_string.'';
287
-
288
-
289
- $start_div='<div id="scssdiv" style="clear:both;wdth:100%;height:100%;display:inline-block;z-index:999;">';
290
- $end_div='</div>';
291
- if($display_style=='1' || $display_style=='2' )
292
- {
293
-
294
- $left_right=($display_style=='2')?'right:0;':'left:0;';
295
- $multiplier_div=($counter_type=='0')?'2':'1';
296
- $add_extra=($counter_type=='0')?'20':'0';
297
- $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;">';
298
- $end_div='</div>';
299
- }
300
-
301
-
302
- $js_code .= PHP_EOL;
303
- $js_code .=$start_div;
304
- foreach($share_button as $key=>$val)
305
- {
306
-
307
- $js_code .=$share_arr[$val];
308
- }
309
- $js_code .=$end_div;
310
-
311
-
312
-
313
- echo $js_code;
314
- }
315
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
  ?>
1
+ <?php
2
+ $is_validated=Mage::getStoreConfig('socialloginsharing_options/apisettings/scsl_validated');
3
+ if($is_validated=='1')
4
+ {
5
+ /*$scss_product_page=false;
6
+ if(Mage::registry('current_product')) {
7
+ $scss_product_page = true;
8
+ }
9
+ */
10
+ $display_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/displaystyle');
11
+ if(!function_exists('cs_get_plusones'))
12
+ {
13
+
14
+ function cs_get_plusones($url) {
15
+ $curl = curl_init();
16
+ curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
17
+ curl_setopt($curl, CURLOPT_POST, true);
18
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
19
+ 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"}]');
20
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
21
+ curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
22
+ $curl_results = curl_exec ($curl);
23
+ curl_close ($curl);
24
+ $json = json_decode($curl_results, true);
25
+ return isset($json[0]['result']['metadata']['globalCounts']['count'])?intval( $json[0]['result']['metadata']['globalCounts']['count'] ):0;
26
+ }
27
+
28
+ }
29
+ if(!function_exists('cs_format_share_url'))
30
+ {
31
+ function cs_format_share_url($url,$source)
32
+ {
33
+
34
+ $name = "scsource";
35
+ $value = $source;
36
+
37
+
38
+ $separator = "?";
39
+ if (strpos($url,"?")!==false)
40
+ $separator = "&";
41
+
42
+
43
+ $insertPosition = strlen($url);
44
+ if (strpos($url,"#")!==false)
45
+ $insertPosition = strpos($url,"#");
46
+
47
+
48
+ $newUrl = substr_replace($url,"$separator$name=$value",$insertPosition,0);
49
+
50
+ return $newUrl;
51
+ }
52
+
53
+ }
54
+
55
+ if($display_style=='1' || $display_style=='2')
56
+ {
57
+
58
+ $iwidth=explode("x",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/iconsize'));
59
+ $button_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyle');
60
+ $display_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/displaystyle');
61
+ $gap=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/gapsetting');
62
+ $counter_type=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/countersetting');
63
+ $share_button=explode(",",Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/socialproviders'));
64
+
65
+ $vartical_top=$counter_position="";
66
+ $main_div='height:'.$iwidth[0].'px';
67
+ $cspageURL = 'http';
68
+ if($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
69
+ $cspageURL .= "://";
70
+ if ($_SERVER["SERVER_PORT"] != "80") {
71
+ $cspageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
72
+ } else {
73
+ $cspageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
74
+ }
75
+ $url=$cspageURL;
76
+ if($counter_type=='0' || $counter_type=='1')
77
+ {
78
+
79
+ $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; }';
80
+ if($counter_type=='0')
81
+ {
82
+ $main_div='float:left;margin-top:0px;margin-left:8px;height:'.$iwidth[0].'px;margin-right:8px;';
83
+
84
+ $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; }';
85
+ }
86
+ $js_code .='<style>'.PHP_EOL.
87
+ '.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.
88
+ '</style>'.PHP_EOL;
89
+ }
90
+ $useragent=$_SERVER['HTTP_USER_AGENT'];
91
+ $mobile_Display="display:none;";
92
+ $comon_counter_start='<div class="arrow_box" ><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
93
+ $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.'">';
94
+ if(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)))
95
+ {
96
+
97
+ $mobile_Display="display:inline-block;";
98
+ $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.'">';
99
+ }
100
+ if($button_style=='custom')
101
+ {
102
+
103
+ $fb_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylefb');
104
+ $gp_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylegp');
105
+ $li_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyleli');
106
+ $tw_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyletw');
107
+ $pi_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylepi');
108
+ $wa_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylewa');
109
+ $su_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylesu');
110
+ $rd_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstylerd');
111
+ $tm_style=Mage::getStoreConfig('socialloginsharing_options/displaysettingshare/yourstyletm');
112
+ $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').'\'';
113
+ $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').'\'';
114
+ $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').'\'';
115
+ $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').'\'';
116
+ $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').'\'';
117
+ $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').'\'';
118
+ $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').'\'';
119
+ $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').'\'';
120
+ $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').'\'';
121
+
122
+ }
123
+ else if($button_style=='1')
124
+ {
125
+ $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"';
126
+ $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"';
127
+ $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\'';
128
+ $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"';
129
+ $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"';
130
+ $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"';
131
+ $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"';
132
+ $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"';
133
+ $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"';
134
+
135
+ }
136
+ else if($button_style=='2')
137
+ {
138
+ $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"';
139
+ $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"';
140
+ $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\'';
141
+ $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"';
142
+ $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"';
143
+ $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"';
144
+ $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"';
145
+ $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"';
146
+ $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"';
147
+
148
+ }
149
+ else if($button_style=='3')
150
+ {
151
+ $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"';
152
+ $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"';
153
+ $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\'';
154
+ $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"';
155
+ $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"';
156
+ $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"';
157
+ $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"';
158
+ $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"';
159
+ $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"';
160
+ }
161
+ else if($button_style=='4')
162
+ {
163
+ $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"';
164
+ $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"';
165
+ $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\'';
166
+ $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"';
167
+ $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"';
168
+ $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"';
169
+ $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"';
170
+ $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"';
171
+ $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"';
172
+ }
173
+ else if($button_style=='5')
174
+ {
175
+ $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"';
176
+ $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"';
177
+ $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\'';
178
+ $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"';
179
+ $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"';
180
+ $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"';
181
+ $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"';
182
+ $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"';
183
+ $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"';
184
+
185
+ }
186
+ else if($button_style=='6')
187
+ {
188
+ $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"';
189
+ $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"';
190
+ $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\'';
191
+ $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"';
192
+ $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"';
193
+ $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"';
194
+ $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"';
195
+ $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"';
196
+ $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"';
197
+
198
+
199
+ }
200
+ else if($button_style=='7')
201
+ {
202
+ $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"';
203
+ $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"';
204
+ $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\'';
205
+ $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"';
206
+ $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"';
207
+ $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"';
208
+ $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"';
209
+ $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"';
210
+ $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"';
211
+
212
+
213
+ }
214
+ else if($button_style=='8')
215
+ {
216
+ $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"';
217
+ $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"';
218
+ $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\'';
219
+ $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"';
220
+ $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"';
221
+ $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"';
222
+ $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"';
223
+ $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"';
224
+ $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"';
225
+
226
+
227
+ }
228
+ else if($button_style=='9')
229
+ {
230
+ $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"';
231
+ $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"';
232
+ $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\'';
233
+ $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"';
234
+ $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"';
235
+ $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"';
236
+ $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"';
237
+ $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"';
238
+ $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"';
239
+
240
+ }
241
+ else if($button_style=='10')
242
+ {
243
+ $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"';
244
+ $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"';
245
+ $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\'';
246
+ $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"';
247
+ $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"';
248
+ $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"';
249
+ $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"';
250
+ $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"';
251
+ $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"';
252
+
253
+
254
+ }
255
+ else if($button_style=='11')
256
+ {
257
+ $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"';
258
+ $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"';
259
+ $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\'';
260
+ $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"';
261
+ $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"';
262
+ $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"';
263
+ $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"';
264
+ $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"';
265
+ $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"';
266
+ }
267
+ if($display_style=='1')
268
+ {
269
+ $gap_string='<div style=\'float:left;height:'.$gap.'px;\'>&nbsp;</div>';
270
+ }
271
+ else
272
+ {
273
+ $gap_string='<div style=\'float:left;width:'.$gap.'px;\'>&nbsp;</div>';
274
+ }
275
+
276
+ if($counter_type=='0' || $counter_type=='1')
277
+ {
278
+ //$url=$this->helper('core/url')->getCurrentUrl();
279
+
280
+
281
+
282
+ $counter_top_margin='';
283
+ if($counter_type=='0')
284
+ {
285
+ $counter_top_margin='margin-top:'.intval($iwidth[0]/4).'px;';
286
+ }
287
+
288
+ $comon_counter_end='</div></div>';
289
+
290
+
291
+ $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."");
292
+ $row_count=explode("~",$other_count);
293
+ $comon_counter_end='</div></div>';
294
+ $count2=$count4=$count7=$count13=$count17=$count18=$count19=$count20=$count21="";
295
+ $count2r=$count2=''.$comon_counter_start.''.intval($row_count[4]).''.$comon_counter_end.'';
296
+ $count4r=$count4=''.$comon_counter_start.''.intval($row_count[6]).''.$comon_counter_end.'';
297
+ $count7r=$count7=''.$comon_counter_start.''.intval($row_count[5]).''.$comon_counter_end.'';
298
+ $count13r=$count13=''.$comon_counter_start.''.intval($row_count[7]).''.$comon_counter_end.'';
299
+ $count17r=$count17=''.$comon_counter_start.''.intval($row_count[8]).''.$comon_counter_end.'';
300
+ $count18r=$count18=''.$comon_counter_start_18.''.intval($row_count[0]).''.$comon_counter_end.'';
301
+ $count19r=$count19=''.$comon_counter_start.''.intval($row_count[1]).''.$comon_counter_end.'';
302
+ $count20r=$count20=''.$comon_counter_start.''.intval($row_count[2]).''.$comon_counter_end.'';
303
+ $count21r=$count21=''.$comon_counter_start.''.intval($row_count[3]).''.$comon_counter_end.'';
304
+
305
+
306
+ }
307
+ if($counter_type=='0')
308
+ {
309
+ $count2=$count4=$count7=$count13=$count17=$count18=$count19=$count20=$count21="";
310
+ }
311
+ else
312
+ {
313
+ $count2r=$count4r=$count7r=$count13r=$count17r=$count18r=$count19r=$count20r=$count21r="";
314
+ }
315
+
316
+ if($customer = Mage::getSingleton('customer/session')->isLoggedIn()) {
317
+
318
+ $customerData = Mage::getSingleton('customer/session')->getCustomer();
319
+ //$customerData = Mage::getModel('customer/customer')->load($customer->getId())->getData();
320
+
321
+ $user_ID=$customerData->getId();
322
+
323
+ }
324
+ $title=$this->getLayout()->getBlock('head')->getTitle();
325
+ $share_arr[2]='<div style="float:left;">'.$count2.'<img '.$src_style2.' onclick="share_on_cs(\'1\',\''.$user_ID.'\');window.open(\'http://www.facebook.com/sharer.php?u='.urlencode(cs_format_share_url($url,'1')).'&t='.urlencode($title).'\',\'_new\');" alt="Share on Facebook" ></div>'.$count2r.''.$gap_string.'';
326
+ $share_arr[4]='<div style=\'float:left;\'>'.$count4.'<img '.$src_style4.' onclick="share_on_cs(\'3\',\''.$user_ID.'\');window.open(\'https://plus.google.com/share?url='.urlencode(cs_format_share_url($url,'3')).'&title='.urlencode($title).'\',\'_new\');" alt="Share on Google+"></div>'.$count4r.''.$gap_string.'';
327
+ $share_arr[7]='<div style=\'float:left;\'>'.$count7.'<img '.$src_style7.' onclick="share_on_cs(\'2\',\''.$user_ID.'\');window.open(\'https://www.linkedin.com/cws/share?url='.urlencode(cs_format_share_url($url,'2')).'&title='.urlencode($title).'\',\'_new\');" alt="Share on LinkedIN" ></div>'.$count7r.''.$gap_string.'';
328
+ $share_arr[13]='<div style=\'float:left;\'>'.$count13.'<img '.$src_style13.' onclick="share_on_cs(\'4\',\''.$user_ID.'\');window.open(\'http://twitter.com/share?url='.urlencode(cs_format_share_url($url,'4')).'&text='.urlencode($title).'\',\'_new\');" alt="Share on Twitter"></div>'.$count13r.''.$gap_string.'';
329
+ $share_arr[17]='<div style=\'float:left;\'>'.$count17.'<img '.$src_style17.' onclick="share_on_cs(\'5\',\''.$user_ID.'\');" alt="Pin It"></div>'.$count17r.''.$gap_string.'';
330
+ $share_arr[18]='<div style=\'float:left;\'>'.$count18.'<img '.$src_style18.' onclick="share_on_cs(\'6\',\''.$user_ID.'\');" alt="Share on Whatsapp"></div>'.$count18r.''.$gap_string.'';
331
+ $share_arr[19]='<div style=\'float:left;\'>'.$count19.'<img '.$src_style19.' onclick="share_on_cs(\'7\',\''.$user_ID.'\');window.open(\'http://www.stumbleupon.com/submit?url='.urlencode(cs_format_share_url($url,'7')).'&title='.urlencode($title).'\',\'_new\');"" alt="Share on StumbleUpon"></div>'.$count19r.''.$gap_string.'';
332
+ $share_arr[20]='<div style=\'float:left;\'>'.$count20.'<img '.$src_style20.' onclick="share_on_cs(\'8\',\''.$user_ID.'\');window.open(\'http://www.reddit.com/submit?url='.urlencode(cs_format_share_url($url,'8')).'&title='.urlencode($title).'\',\'_new\');"" alt="Share on Reddit"></div>'.$count20r.''.$gap_string.'';
333
+ $share_arr[21]='<div style=\'float:left;\'>'.$count21.'<img '.$src_style21.' onclick="share_on_cs(\'9\',\''.$user_ID.'\');window.open(\'http://www.tumblr.com/share/link?url='.urlencode(cs_format_share_url($url,'9')).'&name='.urlencode($title).'\',\'_new\');"" alt="Pin It"></div>'.$count21r.''.$gap_string.'';
334
+
335
+
336
+ $start_div='<div id="scssdiv" style="clear:both;wdth:100%;height:100%;display:inline-block;z-index:999;">';
337
+ $end_div='</div>';
338
+ if($display_style=='1' || $display_style=='2' )
339
+ {
340
+
341
+ $left_right=($display_style=='2')?'right:0;':'left:0;';
342
+ $multiplier_div=($counter_type=='0')?'2':'1';
343
+ $add_extra=($counter_type=='0')?'20':'0';
344
+ $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;">';
345
+ $end_div='</div>';
346
+ }
347
+
348
+
349
+ $js_code .= PHP_EOL;
350
+ $js_code .=$start_div;
351
+ foreach($share_button as $key=>$val)
352
+ {
353
+
354
+ $js_code .=$share_arr[$val];
355
+ }
356
+ $js_code .=$end_div;
357
+
358
+
359
+
360
+ echo $js_code;
361
+ }
362
+ }
363
  ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>socleverloginsharing</name>
4
- <version>1.0.0</version>
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. &lt;/p&gt;&#xD;
30
  &lt;p&gt;&lt;strong&gt;Dynamic JavaScript&lt;/strong&gt;&lt;br /&gt;&#xD;
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.&lt;/p&gt;</description>
32
- <notes>Released Stable Version 1.0.0</notes>
33
  <authors><author><name>Soclever Social</name><user>Socleversocial</user><email>hemang@socleversocial.com</email></author></authors>
34
- <date>2015-02-21</date>
35
- <time>13:56:01</time>
36
- <contents><target name="magelocal"><dir name="Soclever"><dir name="Socialloginsharing"><dir name="Model"><file name="Observer.php" hash="475751edc201b924a7d0f78eb34032f0"/><file name="Providers.php" hash="9839bd2b133cd6d788e312c7262711db"/></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><dir name="controllers"><file name="IndexController.php" hash="8018f017f178bb4968268de4a74d7295"/><file name="openid.php" hash="421d5936957b8ddda543b679d1876f04"/></dir><dir name="etc"><file name="config.xml" hash="16f95dbbf39e055bacc289de3de754db"/><file name="system.xml" hash="11714ec8859aacefc045caf1410eecff"/></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="4d3f31232917e026cc92b3dabaa5ac61"/></dir><dir name="template"><dir name="socialloginsharing"><file name="scsl_buttons.phtml" hash="cc15fbe26dfb2a0d54b3768c613a10c9"/><file name="sociallogin_fb.phtml" hash="718d8596a14d123d83afb0d5d6d6fd96"/><file name="sociallogin_head.phtml" hash="b184204ebae539cabc3f1d5bac63bd62"/><file name="sociallogin_trackpixel.phtml" hash="542ceb3ba7d5314f2f9aad416636d349"/><file name="socialshare_head.phtml" hash="f35a4bdaad57d1731be186f9e0ac612e"/><file name="socialshare_product.phtml" hash="2fbb95766a1675e69ef2b1f60db0457e"/><file name="socialshare_show.phtml" hash="0587dfce9e8c9a8049201e00ea7699b0"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>socleverloginsharing</name>
4
+ <version>1.1.0</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. &lt;/p&gt;&#xD;
30
  &lt;p&gt;&lt;strong&gt;Dynamic JavaScript&lt;/strong&gt;&lt;br /&gt;&#xD;
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.&lt;/p&gt;</description>
32
+ <notes>Stable Version 1.1.0</notes>
33
  <authors><author><name>Soclever Social</name><user>Socleversocial</user><email>hemang@socleversocial.com</email></author></authors>
34
+ <date>2015-04-14</date>
35
+ <time>05:31:57</time>
36
+ <contents><target name="magelocal"><dir name="Soclever"><dir name="Socialloginsharing"><dir name="Model"><file name="Observer.php" hash="475751edc201b924a7d0f78eb34032f0"/><file name="Providers.php" hash="671f7b43bc77ea8a734290025fd3f42f"/></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="f5b951998e7d4181c5461dce81661876"/></dir></dir></dir></dir></dir><file name="Scssfooter.php" hash="1437931932e9c6c6c0b7c3ab173dc51a"/></dir><dir name="controllers"><file name="IndexController.php" hash="cc9c19668874454a411ee40b48ec1d10"/><file name="openid.php" hash="421d5936957b8ddda543b679d1876f04"/></dir><dir name="etc"><file name="config.xml" hash="ef6aec9ea5f1d5713b39df2baf71ee41"/><file name="system.xml" hash="a74a88bd862525a2e6314c597eeb41e5"/></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="6096dae3f64f11dc006cd575ee5914d4"/><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="3462fab856f8d6584612906760bd8fab"/><file name="socialshare_show.phtml" hash="0d4ab68544834c5f970463ae71333a8e"/><file name="socialshare_footer.phtml" hash="8872368942684475955f03550625c385"/></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>