soclever_sharing_buttons - Version 1.0.0

Version Notes

Stable Version 1.0.0

Download this release

Release Info

Developer Soclever Social
Extension soclever_sharing_buttons
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/local/Soclever/Socialshare/Block/Adminhtml/Help.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Soclever_Socialshare_Block_Adminhtml_Help extends Mage_Adminhtml_Block_System_Config_Form_Field
3
+ {
4
+
5
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
6
+ {
7
+
8
+ $fileContent="<h3>For more information on configuration, Please refer to our developer page <a href='http://developers.socleversocial.com' target='_blank'>Socleversocial.com</a></h3>";
9
+ return $fileContent;
10
+
11
+
12
+ }
13
+
14
+
15
+
16
+ }
17
+ ?>
app/code/local/Soclever/Socialshare/Block/Adminhtml/Positions.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Soclever_Socialshare_Block_Adminhtml_Positions extends Mage_Adminhtml_Block_System_Config_Form_Field
3
+ {
4
+
5
+
6
+
7
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
8
+ {
9
+
10
+ $site_id=Mage::getStoreConfig('socialshare_options/apisettings/scss_siteid');
11
+ $api_secret=Mage::getStoreConfig('socialshare_options/apisettings/scss_appsecret');
12
+ $api_key=Mage::getStoreConfig('socialshare_options/apisettings/scss_appid');
13
+
14
+ $valid_data=file_get_contents("https://www.socleversocial.com/dashboard/wp_activate.php?site_id=".$site_id."&api_key=".$api_key."&api_secret=".$api_secret."&csplatform=magento");
15
+ if($valid_data && $valid_data[0]!='0')
16
+ {
17
+ $display_style=Mage::getStoreConfig('socialshare_options/displaysettings/displaystyle');
18
+
19
+ $countersetting=Mage::getStoreConfig('socialshare_options/displaysettings/countersetting');
20
+ $yourstyle=Mage::getStoreConfig('socialshare_options/displaysettings/yourstyle');
21
+ $display_option=($display_style=='1' || $display_style=='2')?'1':'0';
22
+ $div_style="";
23
+ $imgeStyle="style='width:380px;margin-top:-10px;'";
24
+ if($display_style=='1' || $display_style=='2')
25
+ {
26
+ $imgeStyle="";
27
+ $div_style=($display_style=='1')?'style="float:left;"':'style="float:right;"';
28
+ }
29
+
30
+
31
+ $fileContent="<div ".$div_style."><img src='https://www.socleversocial.com/dashboard/images/preview/style".$countersetting.$display_option.$yourstyle.".png' ".$imgeStyle." alt='Current Soclever Social Share Preview' title='Current Soclever Social Share Preview' ></div>";
32
+ return $fileContent;
33
+
34
+
35
+ }
36
+ else
37
+ {
38
+ return "<h1>Please provide valid API setting</h1>";
39
+ }
40
+
41
+
42
+
43
+
44
+
45
+
46
+ }
47
+
48
+ }
49
+ ?>
app/code/local/Soclever/Socialshare/Block/Scsshead.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Soclever_Socialshare_Block_Scsshead 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/Socialshare/Block/Scsshow.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Soclever_Socialshare_Block_Scsshow 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/Socialshare/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+ class Soclever_Socialshare_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+
5
+ }
6
+ ?>
app/code/local/Soclever/Socialshare/Model/Providers.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Soclever_Socialshare_Model_Providers
4
+ {
5
+ public function getproviders()
6
+ {
7
+ return array(
8
+ array('value'=>2, 'label'=>'Facebook'),
9
+ array('value'=>4, 'label'=>'Google+'),
10
+ array('value'=>7, 'label'=>'LinkedIN'),
11
+ array('value'=>13, 'label'=>'Twitter'),
12
+ array('value'=>17, 'label'=>'Pinterest'),
13
+ array('value'=>18, 'label'=>'Whatsapp'),
14
+ );
15
+ /*$providers=array("2"=>"Facebook","4"=>"Google+","7"=>"LinkedIN","13"=>"Twitter","17"=>"Pinterest");
16
+ return $providers;*/
17
+ }
18
+ public function getcounters()
19
+ {
20
+ /*return array(
21
+ array('value'=>2, 'label'=>'No Counter'),
22
+ array('value'=>1, 'label'=>'Vertical Counter'),
23
+ array('value'=>0, 'label'=>'Horizontal Counter'),
24
+ );*/
25
+ $countersarray=array("2"=>"No Conter","1"=>"Vertical Counter","0"=>"Horizontal Counter");
26
+ //$countersarray=array("2"=>"No Conter");
27
+ return $countersarray;
28
+ }
29
+ public function getgaps()
30
+ {
31
+ $gaparr=array();
32
+ for($i=0;$i<=20;$i++)
33
+ {
34
+ $gaparr[$i]=$i;
35
+ }
36
+ return $gaparr;
37
+
38
+ }
39
+ public function geticonsize()
40
+ {
41
+ $iconsize=array();
42
+ $iconsize=array("30x30"=>"30X30<br/>","32x32"=>"32X32<br/>","40x40"=>"40X40<br/>","50x50"=>"50X50<br/>","60x60"=>"60X60<br/>","70x70"=>"70X70<br/>","85x85"=>"85X85<br/>","100x100"=>"100X100<br/>");
43
+ return $iconsize;
44
+
45
+ }
46
+ public function displaystyle()
47
+ {
48
+ $displaysize=array();
49
+ $displaysize=array("0"=>"Horizontal<br/>","1"=>"Vertical Left<br/>","2"=>"Vertical Right<br/>");
50
+ return $displaysize;
51
+
52
+ }
53
+ public function yourstyle()
54
+ {
55
+ $yourstyle=array();
56
+ $yourstyle=array("1"=>'<div style="margin-top: -26px;margin-left:20px;">&nbsp;&nbsp;<img src="https://www.socleversocial.com/dashboard/images/preview/style201.png" style="width:140px;" alt="Square Icons" title="Square Icons" /></div>',"2"=>'<div style="margin-top: -26px;margin-left:20px;">&nbsp;&nbsp;<img src="https://www.socleversocial.com/dashboard/images/preview/style202.png" style="width:140px;" alt="Rounded Icons" title="Rounded Icons" /></div>',"3"=>'<div style="margin-top: -22px;margin-left:20px;">&nbsp;&nbsp;<img src="https://www.socleversocial.com/dashboard/images/preview/style203.png" style="width:140px;" alt="Square Grey Icons" title="Square Grey Icons" /></div>',"4"=>'<div style="margin-top: -22px;margin-left:20px;">&nbsp;&nbsp;<img src="https://www.socleversocial.com/dashboard/images/preview/style204.png" style="width:140px;" alt="Rounded Grey Icons" title="Rounded Grey Icons" /></div>');
57
+ return $yourstyle;
58
+
59
+ }
60
+ public function sharewithautho()
61
+ {
62
+ $sharewithautho=array();
63
+ $sharewithautho=array("0"=>"No","1"=>"Yes");
64
+ return $sharewithautho;
65
+
66
+ }
67
+ public function getpreview()
68
+ {
69
+ return array("0"=>"Good");
70
+ }
71
+ public function gethelphtml()
72
+ {
73
+ $help_date="<h1>Help..............</h1>";
74
+ return array("0"=>$help_date);
75
+ }
76
+
77
+ }
78
+
79
+
80
+ ?>
app/code/local/Soclever/Socialshare/controllers/IndexController.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ Mage::app('default');
3
+ function getMazeTable($tbl){
4
+ $tableName = Mage::getSingleton('core/resource')->getTableName($tbl);
5
+ return($tableName);
6
+ }
7
+ class Soclever_Socialshare_IndexController extends Mage_Core_Controller_Front_Action
8
+ {
9
+ public function indexAction()
10
+ {
11
+ exit("DDDD");
12
+ $this->loadLayout();
13
+ $this->renderLayout();
14
+ }
15
+
16
+ }
17
+ ?>
app/code/local/Soclever/Socialshare/etc/config.xml ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Soclever_Socialshare>
5
+ <version>1.1.1</version>
6
+ </Soclever_Socialshare>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <socialshare>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Socelver_Socialshare</module>
14
+ <frontName>socialshare</frontName>
15
+ </args>
16
+ </socialshare>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <Soclever_Socialshare>
21
+ <file>socialshare.xml</file>
22
+ </Soclever_Socialshare>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <admin>
27
+ <routers>
28
+ <socialshare>
29
+ <use>admin</use>
30
+ <args>
31
+ <module>Soclever_Socialshare</module>
32
+ <frontName>Socialshare admin</frontName>
33
+ </args>
34
+ </socialshare>
35
+ </routers>
36
+ </admin>
37
+ <adminhtml>
38
+ <acl>
39
+ <resources>
40
+ <admin>
41
+ <children>
42
+ <system>
43
+ <children>
44
+ <config>
45
+ <children>
46
+ <socialshare_options>
47
+ <title>Store Social Share Module Section</title>
48
+ </socialshare_options>
49
+ </children>
50
+ </config>
51
+ </children>
52
+ </system>
53
+ </children>
54
+ </admin>
55
+ </resources>
56
+ </acl>
57
+ </adminhtml>
58
+ <global>
59
+ <models>
60
+ <socialshare>
61
+ <class>Soclever_Socialshare_Model</class>
62
+ </socialshare>
63
+ </models>
64
+ <resources>
65
+ <socialshare_setup>
66
+ <setup>
67
+ <module>Soclever_Socialshare</module>
68
+ </setup>
69
+ <connection>
70
+ <use>core_setup</use>
71
+ </connection>
72
+ </socialshare_setup>
73
+ <socialshare_write>
74
+ <connection>
75
+ <use>core_write</use>
76
+ </connection>
77
+ </socialshare_write>
78
+ <socialshare_read>
79
+ <connection>
80
+ <use>core_read</use>
81
+ </connection>
82
+ </socialshare_read>
83
+ </resources>
84
+ <blocks>
85
+ <socialshare>
86
+ <class>Soclever_Socialshare_Block</class>
87
+ </socialshare>
88
+ </blocks>
89
+ <helpers>
90
+ <socialshare>
91
+ <class>Soclever_Socialshare_Helper</class>
92
+ </socialshare>
93
+ </helpers>
94
+ </global>
95
+ </config>
app/code/local/Soclever/Socialshare/etc/system.xml ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <socialsharesetting translate="label" module="socialshare">
5
+ <label>Soclever Social</label>
6
+ <sort_order>1</sort_order>
7
+ </socialsharesetting>
8
+ </tabs>
9
+ <sections>
10
+ <socialshare_options translate="label" module="socialshare">
11
+ <label>Soclever Social Share</label>
12
+ <tab>socialsharesetting</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>1000</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <apisettings translate="label">
20
+ <label>SocleverSocial Sharing API Settings</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>1</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <scss_appid translate="label">
28
+ <label>Soclever API Key</label>
29
+ <frontend_type>text</frontend_type>
30
+ <comment><![CDATA[ Socelver API ]]></comment>
31
+ <sort_order>15</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ </scss_appid>
36
+ <scss_appsecret translate="label">
37
+ <label>Soclever API Secret</label>
38
+ <frontend_type>text</frontend_type>
39
+ <comment><![CDATA[ Socelver API Secret ]]></comment>
40
+ <sort_order>16</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ </scss_appsecret>
45
+ <scss_siteid translate="label">
46
+ <label>Soclever Client ID</label>
47
+ <frontend_type>text</frontend_type>
48
+ <comment><![CDATA[ Socelver Client ID ]]></comment>
49
+ <sort_order>17</sort_order>
50
+ <show_in_default>1</show_in_default>
51
+ <show_in_website>1</show_in_website>
52
+ <show_in_store>1</show_in_store>
53
+ </scss_siteid>
54
+ <scss_validdomain translate="label">
55
+ <label>Soclever Valid Domain</label>
56
+ <frontend_type>text</frontend_type>
57
+ <comment><![CDATA[ Socelver Valid Domain ]]></comment>
58
+ <sort_order>18</sort_order>
59
+ <show_in_default>1</show_in_default>
60
+ <show_in_website>1</show_in_website>
61
+ <show_in_store>1</show_in_store>
62
+ </scss_validdomain>
63
+ </fields>
64
+
65
+ </apisettings>
66
+ <displaysettings translate="label">
67
+ <label>SocleverSocial Display Settings</label>
68
+ <frontend_type>text</frontend_type>
69
+ <sort_order>2</sort_order>
70
+ <show_in_default>1</show_in_default>
71
+ <show_in_website>1</show_in_website>
72
+ <show_in_store>1</show_in_store>
73
+ <fields>
74
+ <socialproviders translate="label">
75
+ <label>Select Providers</label>
76
+ <frontend_type>multiselect</frontend_type>
77
+ <source_model>socialshare/providers::getproviders</source_model>
78
+ <sort_order>201</sort_order>
79
+ <show_in_default>1</show_in_default>
80
+ <show_in_website>1</show_in_website>
81
+ <show_in_store>1</show_in_store>
82
+ </socialproviders>
83
+ <countersetting translate="label">
84
+ <label>Counter Display</label>
85
+ <frontend_type>radios</frontend_type>
86
+ <source_model>socialshare/providers::getcounters</source_model>
87
+ <sort_order>200</sort_order>
88
+ <show_in_default>1</show_in_default>
89
+ <show_in_website>1</show_in_website>
90
+ <show_in_store>1</show_in_store>
91
+ </countersetting>
92
+ <gapsetting translate="label">
93
+ <label>Gap</label>
94
+ <frontend_type>select</frontend_type>
95
+ <source_model>socialshare/providers::getgaps</source_model>
96
+ <sort_order>199</sort_order>
97
+ <show_in_default>1</show_in_default>
98
+ <show_in_website>1</show_in_website>
99
+ <show_in_store>1</show_in_store>
100
+ </gapsetting>
101
+ <iconsize translate="label">
102
+ <label>Icon Size</label>
103
+ <frontend_type>radios</frontend_type>
104
+ <source_model>socialshare/providers::geticonsize</source_model>
105
+ <sort_order>198</sort_order>
106
+ <show_in_default>1</show_in_default>
107
+ <show_in_website>1</show_in_website>
108
+ <show_in_store>1</show_in_store>
109
+ </iconsize>
110
+ <displaystyle translate="label">
111
+ <label>Display Style</label>
112
+ <frontend_type>radios</frontend_type>
113
+ <source_model>socialshare/providers::displaystyle</source_model>
114
+
115
+ <sort_order>197</sort_order>
116
+ <show_in_default>1</show_in_default>
117
+ <show_in_website>1</show_in_website>
118
+ <show_in_store>1</show_in_store>
119
+ </displaystyle>
120
+ <yourstyle translate="label">
121
+ <label>Your Style</label>
122
+ <frontend_type>radios</frontend_type>
123
+ <source_model>socialshare/providers::yourstyle</source_model>
124
+ <sort_order>197</sort_order>
125
+ <show_in_default>1</show_in_default>
126
+ <show_in_website>1</show_in_website>
127
+ <show_in_store>1</show_in_store>
128
+ </yourstyle>
129
+ </fields>
130
+ </displaysettings>
131
+ <currentpreview translate="label">
132
+ <label>SocleverSocial Preview</label>
133
+ <frontend_type>text</frontend_type>
134
+ <sort_order>3</sort_order>
135
+ <show_in_default>1</show_in_default>
136
+ <show_in_website>1</show_in_website>
137
+ <show_in_store>1</show_in_store>
138
+ <fields>
139
+ <previewshow translate="label">
140
+ <label>Preview</label>
141
+ <frontend_model>socialshare/adminhtml_positions</frontend_model>
142
+ <comment><![CDATA[<script type="text/javascript">
143
+ document.getElementById('socialshare_options_displaysettings_yourstyle1').style.marginLeft='5px';
144
+ document.getElementById('socialshare_options_displaysettings_shareautho0').style.marginLeft='5px';
145
+ document.getElementById('socialshare_options_displaysettings_displaystyle0').style.marginLeft='5px';
146
+ document.getElementById('socialshare_options_displaysettings_iconsize30x30').style.marginLeft='5px';
147
+
148
+
149
+
150
+ </script>
151
+ ]]></comment>
152
+ <sort_order>201</sort_order>
153
+ <show_in_default>1</show_in_default>
154
+ <show_in_website>1</show_in_website>
155
+ <show_in_store>1</show_in_store>
156
+ </previewshow>
157
+ </fields>
158
+ </currentpreview>
159
+ <currenthelp translate="label">
160
+ <label>SocleverSocial Share Help</label>
161
+ <frontend_type>text</frontend_type>
162
+ <sort_order>4</sort_order>
163
+ <show_in_default>1</show_in_default>
164
+ <show_in_website>1</show_in_website>
165
+ <show_in_store>1</show_in_store>
166
+ <fields>
167
+ <helpshow translate="label">
168
+ <label></label>
169
+ <frontend_model>socialshare/adminhtml_help</frontend_model>
170
+ <comment><![CDATA[ ]]></comment>
171
+ <sort_order>202</sort_order>
172
+ <show_in_default>1</show_in_default>
173
+ <show_in_website>0</show_in_website>
174
+ <show_in_store>0</show_in_store>
175
+ </helpshow>
176
+ </fields>
177
+ </currenthelp>
178
+
179
+ </groups>
180
+ </socialshare_options>
181
+
182
+ </sections>
183
+ </config>
app/design/frontend/base/default/layout/socialshare.xml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="1.0.0">
3
+ <default>
4
+ <reference name="head">
5
+ <block type="socialshare/scsshead" name="socialshare_head" template="socialshare/socialshare_head.phtml" />
6
+ </reference>
7
+ <!--reference name="content">
8
+ <block type="socialshare/scsshow" name="socialshare_show" template="socialshare/socialshare_show.phtml" />
9
+ </reference-->
10
+ </default>
11
+ <catalog_product_view>
12
+ <reference name="alert.urls">
13
+ <block type="socialshare/scsshow" name="socialshare_product" template="socialshare/socialshare_product.phtml" before="-" />
14
+ </reference>
15
+ </catalog_product_view>
16
+ <default>
17
+ <reference name="content">
18
+ <block type="socialshare/scsshow" name="socialshare_show" template="socialshare/socialshare_show.phtml" />
19
+ </reference>
20
+ </default>
21
+ </layout>
app/design/frontend/base/default/template/socialshare/socialshare.phtml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+
3
+ echo"Welcome to Soclver Social Share......";
4
+
5
+ ?>
app/design/frontend/base/default/template/socialshare/socialshare_head.phtml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $js_code ='<script type="text/javascript" src="https://www.socleversocial.com/dashboard/client_share_js/client_'.Mage::getStoreConfig('socialshare_options/apisettings/scss_siteid').'_share_noautho.js?v='.time().'"></script>'.PHP_EOL.
3
+ '<script>'.PHP_EOL.
4
+ 'csauthosharebarjs.init([\''.Mage::getStoreConfig('socialshare_options/apisettings/scss_appid').'\', \''.Mage::getStoreConfig('socialshare_options/apisettings/scss_siteid').'\',\''.Mage::getStoreConfig('socialshare_options/apisettings/scss_appsecret').'\',\''.Mage::getStoreConfig('socialshare_options/apisettings/scss_validdomain').'\']);'.PHP_EOL.
5
+ 'csauthosharebarjs.validateCsApi();'.PHP_EOL.
6
+ '</script>'.PHP_EOL;
7
+ /*$scss_thumbnail_url=Mage::getStoreConfig('socialshare_options/displaysettings/shareImage');
8
+ $js_code .= '<meta property="scss_image" content="'.$scss_thumbnail_url.'" />'.PHP_EOL;
9
+ $js_code .= '<meta property="og:image" content="'.$scss_thumbnail_url.'" />'.PHP_EOL;
10
+ $js_code .= '<script type="text/javascript" /> var scss_share_image="'.$scss_thumbnail_url.'"</script>'.PHP_EOL;
11
+ */
12
+ echo $js_code;
13
+
14
+ ?>
app/design/frontend/base/default/template/socialshare/socialshare_product.phtml ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(!function_exists('cs_get_plusones'))
3
+ {
4
+
5
+ function cs_get_plusones($url) {
6
+ $curl = curl_init();
7
+ curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
8
+ curl_setopt($curl, CURLOPT_POST, true);
9
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
10
+ 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"}]');
11
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
12
+ curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
13
+ $curl_results = curl_exec ($curl);
14
+ curl_close ($curl);
15
+ $json = json_decode($curl_results, true);
16
+ return isset($json[0]['result']['metadata']['globalCounts']['count'])?intval( $json[0]['result']['metadata']['globalCounts']['count'] ):0;
17
+ }
18
+
19
+ }
20
+ $iwidth=explode("x",Mage::getStoreConfig('socialshare_options/displaysettings/iconsize'));
21
+ $button_style=Mage::getStoreConfig('socialshare_options/displaysettings/yourstyle');
22
+ $display_style=Mage::getStoreConfig('socialshare_options/displaysettings/displaystyle');
23
+ $gap=Mage::getStoreConfig('socialshare_options/displaysettings/gapsetting');
24
+ $counter_type=Mage::getStoreConfig('socialshare_options/displaysettings/countersetting');
25
+ $share_button=explode(",",Mage::getStoreConfig('socialshare_options/displaysettings/socialproviders'));
26
+
27
+ $vartical_top=$counter_position="";
28
+ $main_div='height:'.$iwidth[0].'px';
29
+ if($counter_type=='0' || $counter_type=='1')
30
+ {
31
+
32
+ $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; }';
33
+ if($counter_type=='0')
34
+ {
35
+ $main_div='float:left;margin-top:0px;margin-left:8px;height:'.$iwidth[0].'px;margin-right:8px;';
36
+
37
+ $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; }';
38
+ }
39
+ $js_code .='<style>'.PHP_EOL.
40
+ '.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.
41
+ '</style>'.PHP_EOL;
42
+ }
43
+ $useragent=$_SERVER['HTTP_USER_AGENT'];
44
+ $mobile_Display="display:none;";
45
+ $comon_counter_start='<div class="arrow_box" ><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
46
+ $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.'">';
47
+ 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)))
48
+ {
49
+
50
+ $mobile_Display="display:inline-block;";
51
+ $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.'">';
52
+ }
53
+
54
+ if($button_style=='1')
55
+ {
56
+ $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"';
57
+ $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"';
58
+ $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\'';
59
+ $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"';
60
+ $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"';
61
+ $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"';
62
+
63
+ }
64
+ else if($button_style=='2')
65
+ {
66
+ $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"';
67
+ $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"';
68
+ $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\'';
69
+ $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"';
70
+ $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"';
71
+ $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"';
72
+ }
73
+ else if($button_style=='3')
74
+ {
75
+ $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"';
76
+ $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"';
77
+ $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\'';
78
+ $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"';
79
+ $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"';
80
+ $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"';
81
+ }
82
+ else if($button_style=='4')
83
+ {
84
+ $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"';
85
+ $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"';
86
+ $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\'';
87
+ $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"';
88
+ $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"';
89
+ $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"';
90
+ }
91
+
92
+ if($display_style=='1')
93
+ {
94
+ $gap_string='<div style=\'float:left;height:'.$gap.'px;\'>&nbsp;</div>';
95
+ }
96
+ else
97
+ {
98
+ $gap_string='<div style=\'float:left;width:'.$gap.'px;\'>&nbsp;</div>';
99
+ }
100
+
101
+ if($counter_type=='0' || $counter_type=='1')
102
+ {
103
+
104
+
105
+ $cspageURL = 'http';
106
+ if($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
107
+ $cspageURL .= "://";
108
+ if ($_SERVER["SERVER_PORT"] != "80") {
109
+ $cspageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
110
+ } else {
111
+ $cspageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
112
+ }
113
+ $url=$cspageURL;
114
+ $fburl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=1';
115
+ $liurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=2';
116
+ $gpurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=3';
117
+ $twurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=4';
118
+
119
+ $fb=json_decode(file_get_contents("http://graph.facebook.com/?ids=".$url.",".$fburl.""));
120
+ $tw=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$url.""));
121
+ $tw2=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$twurl.""));
122
+ $li=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$url."&format=json"));
123
+ $li2=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$liurl."&format=json"));
124
+ $pin_count=file_get_contents("http://api.pinterest.com/v1/urls/count.json?url=".$url."");
125
+
126
+ $whatsapp_count=file_get_contents("https://www.socleversocial.com/dashboard/whatsappcount.php?site_id=".Mage::getStoreConfig('socialshare_options/apisettings/scss_siteid')."&url=".$url."");
127
+ $str=substr(substr($pin_count,0,-1),13);
128
+ $pin_arr=json_decode($str);
129
+
130
+
131
+ $fb=json_decode(file_get_contents("http://graph.facebook.com/?id=".$url.""));
132
+ $tw=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$url.""));
133
+ $li=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$url."&format=json"));
134
+ $pin_count=file_get_contents("http://api.pinterest.com/v1/urls/count.json?url=".$url."");
135
+
136
+ $str=substr(substr($pin_count,0,-1),13);
137
+ $pin_arr=json_decode($str);
138
+
139
+
140
+ $fb_shares="FB Shares=".$fb->shares."==Googleplus==".$count."==Twitter=".$tw->count."===Linked==".$li->count."==Pinterest==".$pin_arr->count;
141
+ $counter_top_margin='';
142
+ if($counter_type=='0')
143
+ {
144
+ $counter_top_margin='margin-top:'.intval($iwidth[0]/4).'px;';
145
+ }
146
+
147
+ $comon_counter_end='</div></div>';
148
+ $count2=$count4=$count7=$count13=$count17="";
149
+ $count2r=$count2=''.$comon_counter_start.''.intval($fb->$url->shares+$fb->$fburl->shares).''.$comon_counter_end.'';
150
+ $count4r=$count4=''.$comon_counter_start.''.intval(cs_get_plusones($url)+cs_get_plusones($gpurl)).''.$comon_counter_end.'';
151
+ $count7r=$count7=''.$comon_counter_start.''.intval($tw->count+$tw2->count).''.$comon_counter_end.'';
152
+ $count13r=$count13=''.$comon_counter_start.''.intval($li->count+$li2->count).''.$comon_counter_end.'';
153
+ $count17r=$count17=''.$comon_counter_start.''.intval($pin_arr->count).''.$comon_counter_end.'';
154
+ $count18r=$count18=''.$comon_counter_start_18.''.intval($whatsapp_count).''.$comon_counter_end.'';
155
+ }
156
+ if($counter_type=='0')
157
+ {
158
+ $count2=$count4=$count7=$count13=$count17=$count18="";
159
+ }
160
+ else
161
+ {
162
+ $count2r=$count4r=$count7r=$count13r=$count17r=$count18r="";
163
+ }
164
+
165
+ $share_arr[2]='<div style="float:left;">'.$count2.'<img '.$src_style2.' onclick="share_on_cs(\'1\');" alt="Share on Facebook" ></div>'.$count2r.''.$gap_string.'';
166
+ $share_arr[4]='<div style=\'float:left;\'>'.$count4.'<img '.$src_style4.' onclick="share_on_cs(\'3\');" alt="Share on Google+"></div>'.$count4r.''.$gap_string.'';
167
+ $share_arr[7]='<div style=\'float:left;\'>'.$count7.'<img '.$src_style7.' onclick="share_on_cs(\'2\');" alt="Share on LinkedIN" ></div>'.$count7r.''.$gap_string.'';
168
+ $share_arr[13]='<div style=\'float:left;\'>'.$count13.'<img '.$src_style13.' onclick="share_on_cs(\'4\');" alt="Share on Twitter"></div>'.$count13r.''.$gap_string.'';
169
+ $share_arr[17]='<div style=\'float:left;\'>'.$count17.'<img '.$src_style17.' onclick="share_on_cs(\'5\');" alt="Pin It"></div>'.$count17r.''.$gap_string.'';
170
+ $share_arr[18]='<div style=\'float:left;\'>'.$count18.'<img '.$src_style18.' onclick="share_on_cs(\'6\');" alt="Share on Whatsapp"></div>'.$count18r.''.$gap_string.'';
171
+ $start_div='<div id="scssdiv" style="clear:both;wdth:100%;height:100%;z-index:999;display:inline-block;">';
172
+ $end_div='</div>';
173
+ if($display_style=='1' || $display_style=='2' )
174
+ {
175
+
176
+ $left_right=($display_style=='2')?'right:0;':'left:0;';
177
+ $multiplier_div=($counter_type=='0')?'2':'1';
178
+ $add_extra=($counter_type=='0')?'20':'0';
179
+ $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;">';
180
+ $end_div='</div>';
181
+ }
182
+
183
+
184
+ $js_code .= PHP_EOL;
185
+ $js_code .=$start_div;
186
+ foreach($share_button as $key=>$val)
187
+ {
188
+
189
+ $js_code .=$share_arr[$val];
190
+ }
191
+ $js_code .=$end_div;
192
+
193
+
194
+
195
+ echo $js_code;
196
+ ?>
app/design/frontend/base/default/template/socialshare/socialshare_show.phtml ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //echo "<h1 style='color:red;'>Welcome to Socleversocial.com</h1>";
3
+
4
+ $scss_product_page=false;
5
+ if(Mage::registry('current_product')) {
6
+ $scss_product_page = true;
7
+ }
8
+
9
+ function cs_get_plusones($url) {
10
+ $curl = curl_init();
11
+ curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
12
+ curl_setopt($curl, CURLOPT_POST, true);
13
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
14
+ 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"}]');
15
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
16
+ curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
17
+ $curl_results = curl_exec ($curl);
18
+ curl_close ($curl);
19
+ $json = json_decode($curl_results, true);
20
+ return isset($json[0]['result']['metadata']['globalCounts']['count'])?intval( $json[0]['result']['metadata']['globalCounts']['count'] ):0;
21
+ }
22
+
23
+
24
+ if(!$scss_product_page)
25
+ {
26
+
27
+ $iwidth=explode("x",Mage::getStoreConfig('socialshare_options/displaysettings/iconsize'));
28
+ $button_style=Mage::getStoreConfig('socialshare_options/displaysettings/yourstyle');
29
+ $display_style=Mage::getStoreConfig('socialshare_options/displaysettings/displaystyle');
30
+ $gap=Mage::getStoreConfig('socialshare_options/displaysettings/gapsetting');
31
+ $counter_type=Mage::getStoreConfig('socialshare_options/displaysettings/countersetting');
32
+ $share_button=explode(",",Mage::getStoreConfig('socialshare_options/displaysettings/socialproviders'));
33
+
34
+ $vartical_top=$counter_position="";
35
+ $main_div='height:'.$iwidth[0].'px';
36
+ if($counter_type=='0' || $counter_type=='1')
37
+ {
38
+
39
+ $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; }';
40
+ if($counter_type=='0')
41
+ {
42
+ $main_div='float:left;margin-top:0px;margin-left:8px;height:'.$iwidth[0].'px;margin-right:8px;';
43
+
44
+ $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; }';
45
+ }
46
+ $js_code .='<style>'.PHP_EOL.
47
+ '.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.
48
+ '</style>'.PHP_EOL;
49
+ }
50
+ $useragent=$_SERVER['HTTP_USER_AGENT'];
51
+ $mobile_Display="display:none;";
52
+ $comon_counter_start='<div class="arrow_box" ><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
53
+ $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.'">';
54
+ 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)))
55
+ {
56
+
57
+ $mobile_Display="display:inline-block;";
58
+ $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.'">';
59
+ }
60
+
61
+ if($button_style=='1')
62
+ {
63
+ $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"';
64
+ $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"';
65
+ $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\'';
66
+ $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"';
67
+ $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"';
68
+ $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"';
69
+
70
+ }
71
+ else if($button_style=='2')
72
+ {
73
+ $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"';
74
+ $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"';
75
+ $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\'';
76
+ $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"';
77
+ $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"';
78
+ $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"';
79
+ }
80
+ else if($button_style=='3')
81
+ {
82
+ $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"';
83
+ $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"';
84
+ $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\'';
85
+ $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"';
86
+ $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"';
87
+ $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"';
88
+ }
89
+ else if($button_style=='4')
90
+ {
91
+ $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"';
92
+ $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"';
93
+ $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\'';
94
+ $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"';
95
+ $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"';
96
+ $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"';
97
+ }
98
+
99
+ if($display_style=='1')
100
+ {
101
+ $gap_string='<div style=\'float:left;height:'.$gap.'px;\'>&nbsp;</div>';
102
+ }
103
+ else
104
+ {
105
+ $gap_string='<div style=\'float:left;width:'.$gap.'px;\'>&nbsp;</div>';
106
+ }
107
+
108
+ if($counter_type=='0' || $counter_type=='1')
109
+ {
110
+ //$url=$this->helper('core/url')->getCurrentUrl();
111
+
112
+ $cspageURL = 'http';
113
+ if($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
114
+ $cspageURL .= "://";
115
+ if ($_SERVER["SERVER_PORT"] != "80") {
116
+ $cspageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
117
+ } else {
118
+ $cspageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
119
+ }
120
+ $url=$cspageURL;
121
+ $fburl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=1';
122
+ $liurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=2';
123
+ $gpurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=3';
124
+ $twurl=$url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'scsource=4';
125
+
126
+ $fb=json_decode(file_get_contents("http://graph.facebook.com/?ids=".$url.",".$fburl.""));
127
+ $tw=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$url.""));
128
+ $tw2=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$twurl.""));
129
+ $li=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$url."&format=json"));
130
+ $li2=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$liurl."&format=json"));
131
+ $pin_count=file_get_contents("http://api.pinterest.com/v1/urls/count.json?url=".$url."");
132
+
133
+ $whatsapp_count=file_get_contents("https://www.socleversocial.com/dashboard/whatsappcount.php?site_id=".Mage::getStoreConfig('socialshare_options/apisettings/scss_siteid')."&url=".$url."");
134
+ $str=substr(substr($pin_count,0,-1),13);
135
+ $pin_arr=json_decode($str);
136
+
137
+
138
+ $fb=json_decode(file_get_contents("http://graph.facebook.com/?id=".$url.""));
139
+ $tw=json_decode(file_get_contents("http://cdn.api.twitter.com/1/urls/count.json?url=".$url.""));
140
+ $li=json_decode(file_get_contents("http://www.linkedin.com/countserv/count/share?url=".$url."&format=json"));
141
+ $pin_count=file_get_contents("http://api.pinterest.com/v1/urls/count.json?url=".$url."");
142
+
143
+ $str=substr(substr($pin_count,0,-1),13);
144
+ $pin_arr=json_decode($str);
145
+
146
+
147
+ $fb_shares="FB Shares=".$fb->shares."==Googleplus==".$count."==Twitter=".$tw->count."===Linked==".$li->count."==Pinterest==".$pin_arr->count;
148
+ $counter_top_margin='';
149
+ if($counter_type=='0')
150
+ {
151
+ $counter_top_margin='margin-top:'.intval($iwidth[0]/4).'px;';
152
+ }
153
+
154
+ $comon_counter_end='</div></div>';
155
+ $count2=$count4=$count7=$count13=$count17="";
156
+ $count2r=$count2=''.$comon_counter_start.''.intval($fb->$url->shares+$fb->$fburl->shares).''.$comon_counter_end.'';
157
+ $count4r=$count4=''.$comon_counter_start.''.intval(cs_get_plusones($url)+cs_get_plusones($gpurl)).''.$comon_counter_end.'';
158
+ $count7r=$count7=''.$comon_counter_start.''.intval($tw->count+$tw2->count).''.$comon_counter_end.'';
159
+ $count13r=$count13=''.$comon_counter_start.''.intval($li->count+$li2->count).''.$comon_counter_end.'';
160
+ $count17r=$count17=''.$comon_counter_start.''.intval($pin_arr->count).''.$comon_counter_end.'';
161
+ $count18r=$count18=''.$comon_counter_start_18.''.intval($whatsapp_count).''.$comon_counter_end.'';
162
+ }
163
+ if($counter_type=='0')
164
+ {
165
+ $count2=$count4=$count7=$count13=$count17=$count18="";
166
+ }
167
+ else
168
+ {
169
+ $count2r=$count4r=$count7r=$count13r=$count17r=$count18r="";
170
+ }
171
+
172
+ $share_arr[2]='<div style="float:left;">'.$count2.'<img '.$src_style2.' onclick="share_on_cs(\'1\');" alt="Share on Facebook" ></div>'.$count2r.''.$gap_string.'';
173
+ $share_arr[4]='<div style=\'float:left;\'>'.$count4.'<img '.$src_style4.' onclick="share_on_cs(\'3\');" alt="Share on Google+"></div>'.$count4r.''.$gap_string.'';
174
+ $share_arr[7]='<div style=\'float:left;\'>'.$count7.'<img '.$src_style7.' onclick="share_on_cs(\'2\');" alt="Share on LinkedIN" ></div>'.$count7r.''.$gap_string.'';
175
+ $share_arr[13]='<div style=\'float:left;\'>'.$count13.'<img '.$src_style13.' onclick="share_on_cs(\'4\');" alt="Share on Twitter"></div>'.$count13r.''.$gap_string.'';
176
+ $share_arr[17]='<div style=\'float:left;\'>'.$count17.'<img '.$src_style17.' onclick="share_on_cs(\'5\');" alt="Pin It"></div>'.$count17r.''.$gap_string.'';
177
+ $share_arr[18]='<div style=\'float:left;\'>'.$count18.'<img '.$src_style18.' onclick="share_on_cs(\'6\');" alt="Share on Whatsapp"></div>'.$count18r.''.$gap_string.'';
178
+
179
+ $start_div='<div id="scssdiv" style="clear:both;wdth:100%;height:100%;display:inline-block;z-index:999;">';
180
+ $end_div='</div>';
181
+ if($display_style=='1' || $display_style=='2' )
182
+ {
183
+
184
+ $left_right=($display_style=='2')?'right:0;':'left:0;';
185
+ $multiplier_div=($counter_type=='0')?'2':'1';
186
+ $add_extra=($counter_type=='0')?'20':'0';
187
+ $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;">';
188
+ $end_div='</div>';
189
+ }
190
+
191
+
192
+ $js_code .= PHP_EOL;
193
+ $js_code .=$start_div;
194
+ foreach($share_button as $key=>$val)
195
+ {
196
+
197
+ $js_code .=$share_arr[$val];
198
+ }
199
+ $js_code .=$end_div;
200
+
201
+
202
+
203
+ echo $js_code;
204
+ }
205
+
206
+ ?>
app/etc/modules/Soclever_Socialshare.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <modules>
4
+ <Soclever_Socialshare>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ </Soclever_Socialshare>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>soclever_sharing_buttons</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>
8
+ <extends/>
9
+ <summary>Configurable Facebook, Twitter, Google, Pinterest &amp; more Social buttons with reports</summary>
10
+ <description>&lt;h3&gt;Social Share Buttons &amp; Analytics By SoClever&lt;/h3&gt;&#xD;
11
+ &lt;p&gt;SoClevers provides social sharing buttons tools to help increase social traffic and referred traffic. Our Plugin works with Facebook, Google+ LinkedIn, Twitter, Pinterest &amp;amp; Whatsapp. Our JavaScript is asynchronous ensuring fast load time, and it&#x2019;s also dynamic so you can A-B test from our dashboard without needing to re-code.&lt;/p&gt;&#xD;
12
+ &lt;p&gt;100% Customizable designs, size, shape and colour. Select ours or load your own logo designs.&lt;/p&gt;&#xD;
13
+ &lt;p&gt;Included in this plugin is our Social Buttons and Like bar PS: You'll need a SoClever API to use it. API Keys are free; paid subscriptions are available for advanced reporting, analytics and demographic data. Download now, Free to try, no contracts or credit card required.&lt;/p&gt;&#xD;
14
+ &lt;p&gt;Thanks for choosing our plugin, feel free to leave a review or contact us for any feedback.&#xA0;If you want to know more about the features we offer, keep reading below. &#xD;
15
+ &#xD;
16
+ &lt;/p&gt;&#xD;
17
+ &lt;h3&gt;&lt;strong&gt;Features&lt;/strong&gt;&lt;/h3&gt;&#xD;
18
+ &lt;p&gt;&lt;strong&gt;Social Sharing&#xD;
19
+ &#xD;
20
+ &lt;/strong&gt;&lt;br&gt;&#xD;
21
+ Allow users to share your pages to famous social networks and get free traffic from social networks. &lt;/p&gt;&#xD;
22
+ &lt;p&gt;&lt;strong&gt;Track Referral &lt;/strong&gt;&lt;br&gt;&#xD;
23
+ Sharing with Authentication allows you to track referral from shared links. Detailed reports on referral can be downloaded from SoClever Dashboard.&#xD;
24
+ &lt;/p&gt;&#xD;
25
+ &lt;p&gt;&lt;strong&gt;Sharing Reports from API &lt;/strong&gt;&lt;br&gt;&#xD;
26
+ We use API provided by social networks to count shares of your website pages. It makes it possible to get accurate history of your page's shares. &#xD;
27
+ &lt;/p&gt;&#xD;
28
+ &lt;p&gt;&lt;strong&gt;Cookie Data &lt;/strong&gt;&lt;br&gt;&#xD;
29
+ Unlike other FREE sharing buttons SoClever DOES NOT sell your customer cookie data which allows competitors to target your customers/visitors.&lt;/p&gt;&#xD;
30
+ &lt;p&gt;&lt;strong&gt;Dynamic JavaScript&lt;/strong&gt;&lt;br&gt;&#xD;
31
+ Our asynchronous javascript load 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.0.0</notes>
33
+ <authors><author><name>Soclever Social</name><user>Socleversocial</user><email>hemang@socleversocial.com</email></author></authors>
34
+ <date>2015-01-15</date>
35
+ <time>07:51:08</time>
36
+ <contents><target name="magelocal"><dir name="Soclever"><dir name="Socialshare"><dir name="Block"><dir name="Adminhtml"><file name="Help.php" hash="2276dfe2c2623d29775eaed4da51d827"/><file name="Positions.php" hash="3a48bfdeab119b14e2a042efd94788d5"/></dir><file name="Scsshead.php" hash="250c0e38bf8ae6e4822caca4bc1870b2"/><file name="Scsshow.php" hash="58883c5e501c1576d1e2765c7cac4a0d"/></dir><dir name="controllers"><file name="IndexController.php" hash="0b2c64cf59fb3d070479f3d639e2c520"/></dir><dir name="etc"><file name="config.xml" hash="0041e839c8fdb1c143c8596413ef2fd5"/><file name="system.xml" hash="2031d9dca4a3f03ca2d948b8a2895f86"/></dir><dir name="Helper"><file name="Data.php" hash="26100ff8846be15dee038d857b2335f9"/></dir><dir name="Model"><file name="Providers.php" hash="93ba841161cf67d903bb455d70269f08"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="socialshare.xml" hash="eb1d6e180d9257c379ab18f0a54c5109"/></dir><dir name="template"><dir name="socialshare"><file name="socialshare.phtml" hash="882027a88ba4832fc6aab04295a90645"/><file name="socialshare_head.phtml" hash="9b3fc1be19e93db607c9fe26a2702747"/><file name="socialshare_product.phtml" hash="e8b6e249c9a105ec3948b1c8e0312032"/><file name="socialshare_show.phtml" hash="564a5b38ac1482e494e719887084e41a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Soclever_Socialshare.xml" hash="213cb6e89c3408bb392eee9519b59047"/></dir></target></contents>
37
+ <compatible/>
38
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Magento_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.7</max></package></required></dependencies>
39
+ </package>