Version Notes
Stable Version 1.0.1
Download this release
Release Info
Developer | Soclever Social |
Extension | soclever_sharing_buttons |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/local/Soclever/Socialshare/Block/Adminhtml/Help.php +0 -17
- app/code/local/Soclever/Socialshare/Block/Adminhtml/Positions.php +0 -49
- app/code/local/Soclever/Socialshare/Helper/Data.php +0 -6
- app/code/local/Soclever/Socialsharesc/Block/Adminhtml/Help.php +23 -0
- app/code/local/Soclever/Socialsharesc/Block/Adminhtml/Positions.php +52 -0
- app/code/local/Soclever/Socialsharesc/Block/Adminhtml/System/Config/Form/Field/Customopt1toggle.php +95 -0
- app/code/local/Soclever/{Socialshare/Block/Scsshow.php → Socialsharesc/Block/Scssfooter.php} +12 -12
- app/code/local/Soclever/{Socialshare → Socialsharesc}/Block/Scsshead.php +1 -1
- app/code/local/Soclever/Socialsharesc/Block/Scsshow.php +13 -0
- app/code/local/Soclever/Socialsharesc/Helper/Data.php +6 -0
- app/code/local/Soclever/{Socialshare → Socialsharesc}/Model/Providers.php +18 -5
- app/code/local/Soclever/{Socialshare → Socialsharesc}/controllers/IndexController.php +2 -2
- app/code/local/Soclever/{Socialshare → Socialsharesc}/etc/config.xml +31 -31
- app/code/local/Soclever/{Socialshare → Socialsharesc}/etc/system.xml +92 -29
- app/design/frontend/base/default/layout/socialshare.xml +0 -21
- app/design/frontend/base/default/layout/socialsharesc.xml +23 -0
- app/design/frontend/base/default/template/socialshare/socialshare_product.phtml +0 -196
- app/design/frontend/base/default/template/socialshare/socialshare_show.phtml +0 -206
- app/design/frontend/base/default/template/{socialshare/socialshare.phtml → socialsharesc/socialsharesc.phtml} +0 -0
- app/design/frontend/base/default/template/socialsharesc/socialsharesc_footer.phtml +11 -0
- app/design/frontend/base/default/template/{socialshare/socialshare_head.phtml → socialsharesc/socialsharesc_head.phtml} +3 -3
- app/design/frontend/base/default/template/socialsharesc/socialsharesc_product.phtml +352 -0
- app/design/frontend/base/default/template/socialsharesc/socialsharesc_show.phtml +357 -0
- app/etc/modules/{Soclever_Socialshare.xml → Soclever_Socialsharesc.xml} +2 -2
- package.xml +5 -5
app/code/local/Soclever/Socialshare/Block/Adminhtml/Help.php
DELETED
@@ -1,17 +0,0 @@
|
|
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
DELETED
@@ -1,49 +0,0 @@
|
|
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/Helper/Data.php
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Soclever_Socialshare_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
-
{
|
4 |
-
|
5 |
-
}
|
6 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Soclever/Socialsharesc/Block/Adminhtml/Help.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Soclever_Socialsharesc_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='<ul style="float:left; margin-right:43px">
|
9 |
+
<li>1. <a target="_blank" href="https://www.socleversocial.com/dashboard/login.php">Login</a> to your SoClever account. Or <a target="_blank" href="https://www.socleversocial.com/pricing/">Register</a> for free account to generate API Keys. </li>
|
10 |
+
<li>2. Go to <a target="_blank" href="https://www.socleversocial.com/dashboard/billing_profile_setting.php">Site Settings</a> . Your API key, API secret and site ID will be displayed on this page.</li>
|
11 |
+
<li>3. Configure your API details on API settings tab on your magento Admin Panel.</li>
|
12 |
+
<li>4. Please select social networks you want to use for social sharing and save settings.</li>
|
13 |
+
<li>Feel free to <a target="_blank" href="https://www.socleversocial.com/contact-us/">contact us</a> for any assistance you may require.</li>
|
14 |
+
</ul>';
|
15 |
+
return $fileContent;
|
16 |
+
|
17 |
+
|
18 |
+
}
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
}
|
23 |
+
?>
|
app/code/local/Soclever/Socialsharesc/Block/Adminhtml/Positions.php
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Soclever_Socialsharesc_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('socialsharesc_options/apisettings/scss_siteid');
|
11 |
+
$api_secret=Mage::getStoreConfig('socialsharesc_options/apisettings/scss_appsecret');
|
12 |
+
$api_key=Mage::getStoreConfig('socialsharesc_options/apisettings/scss_appid');
|
13 |
+
$yourstyle=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstyle');
|
14 |
+
$iconsize=Mage::getStoreConfig('socialsharesc_options/displaysettings/iconsize');
|
15 |
+
$gap=Mage::getStoreConfig('socialsharesc_options/displaysettings/gapsetting');
|
16 |
+
|
17 |
+
$valid_data=file_get_contents("https://www.socleversocial.com/dashboard/mage_share_activate.php?site_id=".$site_id."&api_key=".$api_key."&api_secret=".$api_secret."&csplatform=magento&yourstyle=".$yourstyle."&iconsize=".$iconsize."&gap=".$gap."&networks=".Mage::getStoreConfig('socialsharesc_options/displaysettings/socialproviders'));
|
18 |
+
if($valid_data && $valid_data[0]!='0')
|
19 |
+
{
|
20 |
+
$display_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/displaystyle');
|
21 |
+
|
22 |
+
$countersetting=Mage::getStoreConfig('socialsharesc_options/displaysettings/countersetting');
|
23 |
+
|
24 |
+
$display_option=($display_style=='1' || $display_style=='2')?'1':'0';
|
25 |
+
$div_style="";
|
26 |
+
$imgeStyle="style='width:380px;margin-top:-10px;'";
|
27 |
+
if($display_style=='1' || $display_style=='2')
|
28 |
+
{
|
29 |
+
$imgeStyle="";
|
30 |
+
$div_style=($display_style=='1')?'style="float:left;"':'style="float:right;"';
|
31 |
+
}
|
32 |
+
|
33 |
+
|
34 |
+
$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>";
|
35 |
+
return $fileContent;
|
36 |
+
|
37 |
+
|
38 |
+
}
|
39 |
+
else
|
40 |
+
{
|
41 |
+
return "<h1>Please provide valid API setting</h1>";
|
42 |
+
}
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
52 |
+
?>
|
app/code/local/Soclever/Socialsharesc/Block/Adminhtml/System/Config/Form/Field/Customopt1toggle.php
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Soclever_Socialsharesc_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('socialsharesc_options_displaysettings_yourstyle').value;
|
42 |
+
if (enabled=='custom') {
|
43 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylefb').show();
|
44 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylegp').show();
|
45 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylepi').show();
|
46 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylewa').show();
|
47 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylesu').show();
|
48 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyleli').show();
|
49 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylerd').show();
|
50 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyletw').show();
|
51 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyletm').show();
|
52 |
+
} else {
|
53 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylefb').hide();
|
54 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylegp').hide();
|
55 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylepi').hide();
|
56 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylewa').hide();
|
57 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylesu').hide();
|
58 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyleli').hide();
|
59 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylerd').hide();
|
60 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyletw').hide();
|
61 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyletm').hide();
|
62 |
+
}
|
63 |
+
});
|
64 |
+
Event.observe('socialsharesc_options_displaysettings_yourstyle', 'change', function(){
|
65 |
+
enabled=document.getElementById('socialsharesc_options_displaysettings_yourstyle').value;
|
66 |
+
if (enabled=='custom') {
|
67 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylefb').show();
|
68 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylegp').show();
|
69 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylepi').show();
|
70 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylewa').show();
|
71 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylesu').show();
|
72 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyleli').show();
|
73 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylerd').show();
|
74 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyletw').show();
|
75 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyletm').show();
|
76 |
+
} else {
|
77 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylefb').hide();
|
78 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylegp').hide();
|
79 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylepi').hide();
|
80 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylewa').hide();
|
81 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylesu').hide();
|
82 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyleli').hide();
|
83 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstylerd').hide();
|
84 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyletw').hide();
|
85 |
+
document.getElementById('row_socialsharesc_options_displaysettings_yourstyletm').hide();
|
86 |
+
}
|
87 |
+
});
|
88 |
+
</script>";
|
89 |
+
|
90 |
+
$html .= $javaScript;
|
91 |
+
return $html;
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
?>
|
app/code/local/Soclever/{Socialshare/Block/Scsshow.php → Socialsharesc/Block/Scssfooter.php}
RENAMED
@@ -1,13 +1,13 @@
|
|
1 |
-
<?php
|
2 |
-
class
|
3 |
-
{
|
4 |
-
protected function _construct(){
|
5 |
-
parent::_construct();
|
6 |
-
|
7 |
-
}
|
8 |
-
public function _prepareLayout(){
|
9 |
-
return parent::_prepareLayout();
|
10 |
-
}
|
11 |
-
}
|
12 |
-
|
13 |
?>
|
1 |
+
<?php
|
2 |
+
class Soclever_Socialsharesc_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/{Socialshare → Socialsharesc}/Block/Scsshead.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
protected function _construct(){
|
5 |
parent::_construct();
|
1 |
<?php
|
2 |
+
class Soclever_Socialsharesc_Block_Scsshead extends Mage_Core_Block_Template
|
3 |
{
|
4 |
protected function _construct(){
|
5 |
parent::_construct();
|
app/code/local/Soclever/Socialsharesc/Block/Scsshow.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Soclever_Socialsharesc_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/Socialsharesc/Helper/Data.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Soclever_Socialsharesc_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
+
{
|
4 |
+
|
5 |
+
}
|
6 |
+
?>
|
app/code/local/Soclever/{Socialshare → Socialsharesc}/Model/Providers.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
public function getproviders()
|
6 |
{
|
@@ -10,11 +10,21 @@ class Soclever_Socialshare_Model_Providers
|
|
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(
|
@@ -39,21 +49,24 @@ class Soclever_Socialshare_Model_Providers
|
|
39 |
public function geticonsize()
|
40 |
{
|
41 |
$iconsize=array();
|
42 |
-
$iconsize=array("30x30"=>"30X30
|
43 |
return $iconsize;
|
44 |
|
45 |
}
|
46 |
public function displaystyle()
|
47 |
{
|
48 |
$displaysize=array();
|
49 |
-
$displaysize=array("0"=>"Horizontal
|
50 |
return $displaysize;
|
51 |
|
52 |
}
|
53 |
public function yourstyle()
|
54 |
{
|
55 |
$yourstyle=array();
|
56 |
-
|
|
|
|
|
|
|
57 |
return $yourstyle;
|
58 |
|
59 |
}
|
1 |
<?php
|
2 |
|
3 |
+
class Soclever_Socialsharesc_Model_Providers extends Mage_Adminhtml_Block_System_Config_Form_Field
|
4 |
{
|
5 |
public function getproviders()
|
6 |
{
|
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 |
+
array('value'=>19, 'label'=>'StumbleUpon'),
|
15 |
+
array('value'=>20, 'label'=>'Reddit'),
|
16 |
+
array('value'=>21, 'label'=>'Tumblr'),
|
17 |
);
|
18 |
/*$providers=array("2"=>"Facebook","4"=>"Google+","7"=>"LinkedIN","13"=>"Twitter","17"=>"Pinterest");
|
19 |
return $providers;*/
|
20 |
}
|
21 |
+
|
22 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
23 |
+
{
|
24 |
+
var_dump(get_class($element));
|
25 |
+
return $element->getElementHtml();
|
26 |
+
}
|
27 |
+
|
28 |
public function getcounters()
|
29 |
{
|
30 |
/*return array(
|
49 |
public function geticonsize()
|
50 |
{
|
51 |
$iconsize=array();
|
52 |
+
$iconsize=array("30x30"=>"30X30","32x32"=>"32X32","40x40"=>"40X40","50x50"=>"50X50","60x60"=>"60X60","70x70"=>"70X70","85x85"=>"85X85","100x100"=>"100X100");
|
53 |
return $iconsize;
|
54 |
|
55 |
}
|
56 |
public function displaystyle()
|
57 |
{
|
58 |
$displaysize=array();
|
59 |
+
$displaysize=array("0"=>"Horizontal","1"=>"Vertical Left","2"=>"Vertical Right");
|
60 |
return $displaysize;
|
61 |
|
62 |
}
|
63 |
public function yourstyle()
|
64 |
{
|
65 |
$yourstyle=array();
|
66 |
+
|
67 |
+
$yourstyle=array("2"=>'Rounded Corner',"3"=>'Transparent Grey',"4"=>'Rounded Black',"5"=>'Flower',
|
68 |
+
"6"=>'Glossy',"7"=>'Leaf',"8"=>'Polygon',"10"=>'Rectangular',"11"=>'Waterdrop',"custom"=>'Custom');
|
69 |
+
|
70 |
return $yourstyle;
|
71 |
|
72 |
}
|
app/code/local/Soclever/{Socialshare → Socialsharesc}/controllers/IndexController.php
RENAMED
@@ -4,11 +4,11 @@ function getMazeTable($tbl){
|
|
4 |
$tableName = Mage::getSingleton('core/resource')->getTableName($tbl);
|
5 |
return($tableName);
|
6 |
}
|
7 |
-
class
|
8 |
{
|
9 |
public function indexAction()
|
10 |
{
|
11 |
-
|
12 |
$this->loadLayout();
|
13 |
$this->renderLayout();
|
14 |
}
|
4 |
$tableName = Mage::getSingleton('core/resource')->getTableName($tbl);
|
5 |
return($tableName);
|
6 |
}
|
7 |
+
class Soclever_Socialsharesc_IndexController extends Mage_Core_Controller_Front_Action
|
8 |
{
|
9 |
public function indexAction()
|
10 |
{
|
11 |
+
|
12 |
$this->loadLayout();
|
13 |
$this->renderLayout();
|
14 |
}
|
app/code/local/Soclever/{Socialshare → Socialsharesc}/etc/config.xml
RENAMED
@@ -1,37 +1,37 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
-
<
|
5 |
<version>1.1.1</version>
|
6 |
-
</
|
7 |
</modules>
|
8 |
<frontend>
|
9 |
<routers>
|
10 |
-
<
|
11 |
<use>standard</use>
|
12 |
<args>
|
13 |
-
<module>
|
14 |
-
<frontName>
|
15 |
</args>
|
16 |
-
</
|
17 |
</routers>
|
18 |
<layout>
|
19 |
<updates>
|
20 |
-
<
|
21 |
-
<file>
|
22 |
-
</
|
23 |
</updates>
|
24 |
</layout>
|
25 |
</frontend>
|
26 |
<admin>
|
27 |
<routers>
|
28 |
-
<
|
29 |
<use>admin</use>
|
30 |
<args>
|
31 |
-
<module>
|
32 |
-
<frontName>
|
33 |
</args>
|
34 |
-
</
|
35 |
</routers>
|
36 |
</admin>
|
37 |
<adminhtml>
|
@@ -43,9 +43,9 @@
|
|
43 |
<children>
|
44 |
<config>
|
45 |
<children>
|
46 |
-
<
|
47 |
<title>Store Social Share Module Section</title>
|
48 |
-
</
|
49 |
</children>
|
50 |
</config>
|
51 |
</children>
|
@@ -57,39 +57,39 @@
|
|
57 |
</adminhtml>
|
58 |
<global>
|
59 |
<models>
|
60 |
-
<
|
61 |
-
<class>
|
62 |
-
</
|
63 |
</models>
|
64 |
<resources>
|
65 |
-
<
|
66 |
<setup>
|
67 |
-
<module>
|
68 |
</setup>
|
69 |
<connection>
|
70 |
<use>core_setup</use>
|
71 |
</connection>
|
72 |
-
</
|
73 |
-
<
|
74 |
<connection>
|
75 |
<use>core_write</use>
|
76 |
</connection>
|
77 |
-
</
|
78 |
-
<
|
79 |
<connection>
|
80 |
<use>core_read</use>
|
81 |
</connection>
|
82 |
-
</
|
83 |
</resources>
|
84 |
<blocks>
|
85 |
-
<
|
86 |
-
<class>
|
87 |
-
</
|
88 |
</blocks>
|
89 |
<helpers>
|
90 |
-
<
|
91 |
-
<class>
|
92 |
-
</
|
93 |
</helpers>
|
94 |
</global>
|
95 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<Soclever_Socialsharesc>
|
5 |
<version>1.1.1</version>
|
6 |
+
</Soclever_Socialsharesc>
|
7 |
</modules>
|
8 |
<frontend>
|
9 |
<routers>
|
10 |
+
<socialsharesc>
|
11 |
<use>standard</use>
|
12 |
<args>
|
13 |
+
<module>Socelver_Socialsharesc</module>
|
14 |
+
<frontName>socialsharesc</frontName>
|
15 |
</args>
|
16 |
+
</socialsharesc>
|
17 |
</routers>
|
18 |
<layout>
|
19 |
<updates>
|
20 |
+
<Soclever_Socialsharesc>
|
21 |
+
<file>socialsharesc.xml</file>
|
22 |
+
</Soclever_Socialsharesc>
|
23 |
</updates>
|
24 |
</layout>
|
25 |
</frontend>
|
26 |
<admin>
|
27 |
<routers>
|
28 |
+
<socialsharesc>
|
29 |
<use>admin</use>
|
30 |
<args>
|
31 |
+
<module>Soclever_Socialsharesc</module>
|
32 |
+
<frontName>Socialsharesc admin</frontName>
|
33 |
</args>
|
34 |
+
</socialsharesc>
|
35 |
</routers>
|
36 |
</admin>
|
37 |
<adminhtml>
|
43 |
<children>
|
44 |
<config>
|
45 |
<children>
|
46 |
+
<socialsharesc_options>
|
47 |
<title>Store Social Share Module Section</title>
|
48 |
+
</socialsharesc_options>
|
49 |
</children>
|
50 |
</config>
|
51 |
</children>
|
57 |
</adminhtml>
|
58 |
<global>
|
59 |
<models>
|
60 |
+
<socialsharesc>
|
61 |
+
<class>Soclever_Socialsharesc_Model</class>
|
62 |
+
</socialsharesc>
|
63 |
</models>
|
64 |
<resources>
|
65 |
+
<socialsharesc_setup>
|
66 |
<setup>
|
67 |
+
<module>Soclever_Socialsharesc</module>
|
68 |
</setup>
|
69 |
<connection>
|
70 |
<use>core_setup</use>
|
71 |
</connection>
|
72 |
+
</socialsharesc_setup>
|
73 |
+
<socialsharesc_write>
|
74 |
<connection>
|
75 |
<use>core_write</use>
|
76 |
</connection>
|
77 |
+
</socialsharesc_write>
|
78 |
+
<socialsharesc_read>
|
79 |
<connection>
|
80 |
<use>core_read</use>
|
81 |
</connection>
|
82 |
+
</socialsharesc_read>
|
83 |
</resources>
|
84 |
<blocks>
|
85 |
+
<socialsharesc>
|
86 |
+
<class>Soclever_Socialsharesc_Block</class>
|
87 |
+
</socialsharesc>
|
88 |
</blocks>
|
89 |
<helpers>
|
90 |
+
<socialsharesc>
|
91 |
+
<class>Soclever_Socialsharesc_Helper</class>
|
92 |
+
</socialsharesc>
|
93 |
</helpers>
|
94 |
</global>
|
95 |
</config>
|
app/code/local/Soclever/{Socialshare → Socialsharesc}/etc/system.xml
RENAMED
@@ -1,15 +1,15 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<tabs>
|
4 |
-
<
|
5 |
<label>Soclever Social</label>
|
6 |
<sort_order>1</sort_order>
|
7 |
-
</
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
-
<
|
11 |
<label>Soclever Social Share</label>
|
12 |
-
<tab>
|
13 |
<frontend_type>text</frontend_type>
|
14 |
<sort_order>1000</sort_order>
|
15 |
<show_in_default>1</show_in_default>
|
@@ -74,8 +74,8 @@
|
|
74 |
<socialproviders translate="label">
|
75 |
<label>Select Providers</label>
|
76 |
<frontend_type>multiselect</frontend_type>
|
77 |
-
<source_model>
|
78 |
-
<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>
|
@@ -83,8 +83,8 @@
|
|
83 |
<countersetting translate="label">
|
84 |
<label>Counter Display</label>
|
85 |
<frontend_type>radios</frontend_type>
|
86 |
-
<source_model>
|
87 |
-
<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>
|
@@ -92,8 +92,8 @@
|
|
92 |
<gapsetting translate="label">
|
93 |
<label>Gap</label>
|
94 |
<frontend_type>select</frontend_type>
|
95 |
-
<source_model>
|
96 |
-
<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>
|
@@ -101,8 +101,8 @@
|
|
101 |
<iconsize translate="label">
|
102 |
<label>Icon Size</label>
|
103 |
<frontend_type>radios</frontend_type>
|
104 |
-
<source_model>
|
105 |
-
<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>
|
@@ -110,7 +110,7 @@
|
|
110 |
<displaystyle translate="label">
|
111 |
<label>Display Style</label>
|
112 |
<frontend_type>radios</frontend_type>
|
113 |
-
<source_model>
|
114 |
|
115 |
<sort_order>197</sort_order>
|
116 |
<show_in_default>1</show_in_default>
|
@@ -118,14 +118,87 @@
|
|
118 |
<show_in_store>1</show_in_store>
|
119 |
</displaystyle>
|
120 |
<yourstyle translate="label">
|
121 |
-
<label>
|
122 |
-
<frontend_type>
|
123 |
-
<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">
|
@@ -138,17 +211,7 @@
|
|
138 |
<fields>
|
139 |
<previewshow translate="label">
|
140 |
<label>Preview</label>
|
141 |
-
<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>
|
@@ -166,7 +229,7 @@
|
|
166 |
<fields>
|
167 |
<helpshow translate="label">
|
168 |
<label></label>
|
169 |
-
<frontend_model>
|
170 |
<comment><![CDATA[ ]]></comment>
|
171 |
<sort_order>202</sort_order>
|
172 |
<show_in_default>1</show_in_default>
|
@@ -177,7 +240,7 @@
|
|
177 |
</currenthelp>
|
178 |
|
179 |
</groups>
|
180 |
-
</
|
181 |
|
182 |
</sections>
|
183 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<tabs>
|
4 |
+
<socialsharescsetting translate="label" module="socialsharesc">
|
5 |
<label>Soclever Social</label>
|
6 |
<sort_order>1</sort_order>
|
7 |
+
</socialsharescsetting>
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
+
<socialsharesc_options translate="label" module="socialsharesc">
|
11 |
<label>Soclever Social Share</label>
|
12 |
+
<tab>socialsharescsetting</tab>
|
13 |
<frontend_type>text</frontend_type>
|
14 |
<sort_order>1000</sort_order>
|
15 |
<show_in_default>1</show_in_default>
|
74 |
<socialproviders translate="label">
|
75 |
<label>Select Providers</label>
|
76 |
<frontend_type>multiselect</frontend_type>
|
77 |
+
<source_model>socialsharesc/providers::getproviders</source_model>
|
78 |
+
<sort_order>208</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>
|
83 |
<countersetting translate="label">
|
84 |
<label>Counter Display</label>
|
85 |
<frontend_type>radios</frontend_type>
|
86 |
+
<source_model>socialsharesc/providers::getcounters</source_model>
|
87 |
+
<sort_order>207</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>
|
92 |
<gapsetting translate="label">
|
93 |
<label>Gap</label>
|
94 |
<frontend_type>select</frontend_type>
|
95 |
+
<source_model>socialsharesc/providers::getgaps</source_model>
|
96 |
+
<sort_order>206</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>
|
101 |
<iconsize translate="label">
|
102 |
<label>Icon Size</label>
|
103 |
<frontend_type>radios</frontend_type>
|
104 |
+
<source_model>socialsharesc/providers::geticonsize</source_model>
|
105 |
+
<sort_order>208</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>
|
110 |
<displaystyle translate="label">
|
111 |
<label>Display Style</label>
|
112 |
<frontend_type>radios</frontend_type>
|
113 |
+
<source_model>socialsharesc/providers::displaystyle</source_model>
|
114 |
|
115 |
<sort_order>197</sort_order>
|
116 |
<show_in_default>1</show_in_default>
|
118 |
<show_in_store>1</show_in_store>
|
119 |
</displaystyle>
|
120 |
<yourstyle translate="label">
|
121 |
+
<label>Icon Style</label>
|
122 |
+
<frontend_type>select</frontend_type>
|
123 |
+
<source_model>socialsharesc/providers::yourstyle</source_model>
|
124 |
+
<frontend_model>socialsharesc/adminhtml_system_config_form_field_customopt1toggle</frontend_model>
|
125 |
<sort_order>197</sort_order>
|
126 |
<show_in_default>1</show_in_default>
|
127 |
<show_in_website>1</show_in_website>
|
128 |
<show_in_store>1</show_in_store>
|
129 |
</yourstyle>
|
130 |
+
<yourstylefb translate="label">
|
131 |
+
<label>Facebook</label>
|
132 |
+
<frontend_type>text</frontend_type>
|
133 |
+
<sort_order>198</sort_order>
|
134 |
+
<show_in_default>1</show_in_default>
|
135 |
+
<show_in_website>1</show_in_website>
|
136 |
+
<show_in_store>1</show_in_store>
|
137 |
+
</yourstylefb>
|
138 |
+
<yourstylegp translate="label">
|
139 |
+
<label>Google+</label>
|
140 |
+
<frontend_type>text</frontend_type>
|
141 |
+
<sort_order>199</sort_order>
|
142 |
+
<show_in_default>1</show_in_default>
|
143 |
+
<show_in_website>1</show_in_website>
|
144 |
+
<show_in_store>1</show_in_store>
|
145 |
+
</yourstylegp>
|
146 |
+
<yourstyletw translate="label">
|
147 |
+
<label>Twitter</label>
|
148 |
+
<frontend_type>text</frontend_type>
|
149 |
+
<sort_order>200</sort_order>
|
150 |
+
<show_in_default>1</show_in_default>
|
151 |
+
<show_in_website>1</show_in_website>
|
152 |
+
<show_in_store>1</show_in_store>
|
153 |
+
</yourstyletw>
|
154 |
+
<yourstyleli translate="label">
|
155 |
+
<label>LinkedIN</label>
|
156 |
+
<frontend_type>text</frontend_type>
|
157 |
+
<sort_order>201</sort_order>
|
158 |
+
<show_in_default>1</show_in_default>
|
159 |
+
<show_in_website>1</show_in_website>
|
160 |
+
<show_in_store>1</show_in_store>
|
161 |
+
</yourstyleli>
|
162 |
+
<yourstylepi translate="label">
|
163 |
+
<label>Pinterest</label>
|
164 |
+
<frontend_type>text</frontend_type>
|
165 |
+
<sort_order>202</sort_order>
|
166 |
+
<show_in_default>1</show_in_default>
|
167 |
+
<show_in_website>1</show_in_website>
|
168 |
+
<show_in_store>1</show_in_store>
|
169 |
+
</yourstylepi>
|
170 |
+
<yourstylewa translate="label">
|
171 |
+
<label>Whatsapp</label>
|
172 |
+
<frontend_type>text</frontend_type>
|
173 |
+
<sort_order>203</sort_order>
|
174 |
+
<show_in_default>1</show_in_default>
|
175 |
+
<show_in_website>1</show_in_website>
|
176 |
+
<show_in_store>1</show_in_store>
|
177 |
+
</yourstylewa>
|
178 |
+
<yourstylesu translate="label">
|
179 |
+
<label>StumbleUpon</label>
|
180 |
+
<frontend_type>text</frontend_type>
|
181 |
+
<sort_order>204</sort_order>
|
182 |
+
<show_in_default>1</show_in_default>
|
183 |
+
<show_in_website>1</show_in_website>
|
184 |
+
<show_in_store>1</show_in_store>
|
185 |
+
</yourstylesu>
|
186 |
+
<yourstylerd translate="label">
|
187 |
+
<label>Reddit</label>
|
188 |
+
<frontend_type>text</frontend_type>
|
189 |
+
<sort_order>205</sort_order>
|
190 |
+
<show_in_default>1</show_in_default>
|
191 |
+
<show_in_website>1</show_in_website>
|
192 |
+
<show_in_store>1</show_in_store>
|
193 |
+
</yourstylerd>
|
194 |
+
<yourstyletm translate="label">
|
195 |
+
<label>Tumblr</label>
|
196 |
+
<frontend_type>text</frontend_type>
|
197 |
+
<sort_order>206</sort_order>
|
198 |
+
<show_in_default>1</show_in_default>
|
199 |
+
<show_in_website>1</show_in_website>
|
200 |
+
<show_in_store>1</show_in_store>
|
201 |
+
</yourstyletm>
|
202 |
</fields>
|
203 |
</displaysettings>
|
204 |
<currentpreview translate="label">
|
211 |
<fields>
|
212 |
<previewshow translate="label">
|
213 |
<label>Preview</label>
|
214 |
+
<frontend_model>socialsharesc/adminhtml_positions</frontend_model>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
<sort_order>201</sort_order>
|
216 |
<show_in_default>1</show_in_default>
|
217 |
<show_in_website>1</show_in_website>
|
229 |
<fields>
|
230 |
<helpshow translate="label">
|
231 |
<label></label>
|
232 |
+
<frontend_model>socialsharesc/adminhtml_help</frontend_model>
|
233 |
<comment><![CDATA[ ]]></comment>
|
234 |
<sort_order>202</sort_order>
|
235 |
<show_in_default>1</show_in_default>
|
240 |
</currenthelp>
|
241 |
|
242 |
</groups>
|
243 |
+
</socialsharesc_options>
|
244 |
|
245 |
</sections>
|
246 |
</config>
|
app/design/frontend/base/default/layout/socialshare.xml
DELETED
@@ -1,21 +0,0 @@
|
|
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/layout/socialsharesc.xml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="1.0.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<block type="socialsharesc/scsshead" name="socialsharesc_head" template="socialsharesc/socialsharesc_head.phtml" />
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
+
<default>
|
9 |
+
<reference name="before_body_end">
|
10 |
+
<block type="socialsharesc/scssfooter" name="socialsharesc_footer" template="socialsharesc/socialsharesc_footer.phtml" />
|
11 |
+
</reference>
|
12 |
+
</default>
|
13 |
+
<catalog_product_view>
|
14 |
+
<reference name="alert.urls">
|
15 |
+
<block type="socialsharesc/scsshow" name="socialsharesc_product" template="socialsharesc/socialsharesc_product.phtml" before="-" />
|
16 |
+
</reference>
|
17 |
+
</catalog_product_view>
|
18 |
+
<default>
|
19 |
+
<reference name="content">
|
20 |
+
<block type="socialsharesc/scsshow" name="socialsharesc_show" template="socialsharesc/socialsharesc_show.phtml" />
|
21 |
+
</reference>
|
22 |
+
</default>
|
23 |
+
</layout>
|
app/design/frontend/base/default/template/socialshare/socialshare_product.phtml
DELETED
@@ -1,196 +0,0 @@
|
|
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;\'> </div>';
|
95 |
-
}
|
96 |
-
else
|
97 |
-
{
|
98 |
-
$gap_string='<div style=\'float:left;width:'.$gap.'px;\'> </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
DELETED
@@ -1,206 +0,0 @@
|
|
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;\'> </div>';
|
102 |
-
}
|
103 |
-
else
|
104 |
-
{
|
105 |
-
$gap_string='<div style=\'float:left;width:'.$gap.'px;\'> </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/design/frontend/base/default/template/{socialshare/socialshare.phtml → socialsharesc/socialsharesc.phtml}
RENAMED
File without changes
|
app/design/frontend/base/default/template/socialsharesc/socialsharesc_footer.phtml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
Mage::getModel('core/config')->saveConfig('socialsharesc_options/apisettings/scss_footer_added',"1");
|
4 |
+
$footer_code='<script type="text/javascript">var sid=\''.Mage::getStoreConfig('socialsharesc_options/apisettings/scss_siteid').'\';(function()
|
5 |
+
{ 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); }
|
6 |
+
)();
|
7 |
+
</script>'.PHP_EOL;
|
8 |
+
|
9 |
+
echo $footer_code;
|
10 |
+
|
11 |
+
?>
|
app/design/frontend/base/default/template/{socialshare/socialshare_head.phtml → socialsharesc/socialsharesc_head.phtml}
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
-
$js_code ='<script type="text/javascript" src="https://www.socleversocial.com/dashboard/client_share_js/client_'.Mage::getStoreConfig('
|
3 |
'<script>'.PHP_EOL.
|
4 |
-
'csauthosharebarjs.init([\''.Mage::getStoreConfig('
|
5 |
'csauthosharebarjs.validateCsApi();'.PHP_EOL.
|
6 |
'</script>'.PHP_EOL;
|
7 |
-
/*$scss_thumbnail_url=Mage::getStoreConfig('
|
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;
|
1 |
<?php
|
2 |
+
$js_code ='<script type="text/javascript" src="https://www.socleversocial.com/dashboard/client_share_js/client_'.Mage::getStoreConfig('socialsharesc_options/apisettings/scss_siteid').'_share_noautho.js?v='.time().'"></script>'.PHP_EOL.
|
3 |
'<script>'.PHP_EOL.
|
4 |
+
'csauthosharebarjs.init([\''.Mage::getStoreConfig('socialsharesc_options/apisettings/scss_appid').'\', \''.Mage::getStoreConfig('socialsharesc_options/apisettings/scss_siteid').'\',\''.Mage::getStoreConfig('socialsharesc_options/apisettings/scss_appsecret').'\',\''.Mage::getStoreConfig('socialsharesc_options/apisettings/scss_validdomain').'\']);'.PHP_EOL.
|
5 |
'csauthosharebarjs.validateCsApi();'.PHP_EOL.
|
6 |
'</script>'.PHP_EOL;
|
7 |
+
/*$scss_thumbnail_url=Mage::getStoreConfig('socialsharesc_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;
|
app/design/frontend/base/default/template/socialsharesc/socialsharesc_product.phtml
ADDED
@@ -0,0 +1,352 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
if(!function_exists('cs_format_share_url'))
|
21 |
+
{
|
22 |
+
function cs_format_share_url($url,$source)
|
23 |
+
{
|
24 |
+
|
25 |
+
$name = "scsource";
|
26 |
+
$value = $source;
|
27 |
+
|
28 |
+
|
29 |
+
$separator = "?";
|
30 |
+
if (strpos($url,"?")!==false)
|
31 |
+
$separator = "&";
|
32 |
+
|
33 |
+
|
34 |
+
$insertPosition = strlen($url);
|
35 |
+
if (strpos($url,"#")!==false)
|
36 |
+
$insertPosition = strpos($url,"#");
|
37 |
+
|
38 |
+
|
39 |
+
$newUrl = substr_replace($url,"$separator$name=$value",$insertPosition,0);
|
40 |
+
|
41 |
+
return $newUrl;
|
42 |
+
}
|
43 |
+
|
44 |
+
}
|
45 |
+
$iwidth=explode("x",Mage::getStoreConfig('socialsharesc_options/displaysettings/iconsize'));
|
46 |
+
$button_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstyle');
|
47 |
+
$display_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/displaystyle');
|
48 |
+
$gap=Mage::getStoreConfig('socialsharesc_options/displaysettings/gapsetting');
|
49 |
+
$counter_type=Mage::getStoreConfig('socialsharesc_options/displaysettings/countersetting');
|
50 |
+
$share_button=explode(",",Mage::getStoreConfig('socialsharesc_options/displaysettings/socialproviders'));
|
51 |
+
|
52 |
+
$vartical_top=$counter_position="";
|
53 |
+
$main_div='height:'.$iwidth[0].'px';
|
54 |
+
if($counter_type=='0' || $counter_type=='1')
|
55 |
+
{
|
56 |
+
|
57 |
+
$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; }';
|
58 |
+
if($counter_type=='0')
|
59 |
+
{
|
60 |
+
$main_div='float:left;margin-top:0px;margin-left:8px;height:'.$iwidth[0].'px;margin-right:8px;';
|
61 |
+
|
62 |
+
$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; }';
|
63 |
+
}
|
64 |
+
$js_code .='<style>'.PHP_EOL.
|
65 |
+
'.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.
|
66 |
+
'</style>'.PHP_EOL;
|
67 |
+
}
|
68 |
+
$useragent=$_SERVER['HTTP_USER_AGENT'];
|
69 |
+
$mobile_Display="display:none;";
|
70 |
+
$comon_counter_start='<div class="arrow_box" ><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
|
71 |
+
$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.'">';
|
72 |
+
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)))
|
73 |
+
{
|
74 |
+
|
75 |
+
$mobile_Display="display:inline-block;";
|
76 |
+
$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.'">';
|
77 |
+
}
|
78 |
+
|
79 |
+
|
80 |
+
if($button_style=='custom')
|
81 |
+
{
|
82 |
+
$fb_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylefb');
|
83 |
+
$gp_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylegp');
|
84 |
+
$li_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstyleli');
|
85 |
+
$tw_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstyletw');
|
86 |
+
$pi_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylepi');
|
87 |
+
$wa_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylewa');
|
88 |
+
$su_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylesu');
|
89 |
+
$rd_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylerd');
|
90 |
+
$tm_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstyletm');
|
91 |
+
$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').'\'';
|
92 |
+
$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').'\'';
|
93 |
+
$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').'\'';
|
94 |
+
$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').'\'';
|
95 |
+
$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').'\'';
|
96 |
+
$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').'\'';
|
97 |
+
$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').'\'';
|
98 |
+
$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').'\'';
|
99 |
+
$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').'\'';
|
100 |
+
$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').'\'';
|
101 |
+
|
102 |
+
|
103 |
+
}
|
104 |
+
else if($button_style=='1')
|
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_square.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_square.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_square.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_square.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_square.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_square.png"';
|
112 |
+
$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"';
|
113 |
+
$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"';
|
114 |
+
$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"';
|
115 |
+
|
116 |
+
}
|
117 |
+
else if($button_style=='2')
|
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.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.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.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.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.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.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.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.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.png"';
|
128 |
+
|
129 |
+
}
|
130 |
+
else if($button_style=='3')
|
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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.png"';
|
141 |
+
}
|
142 |
+
else if($button_style=='4')
|
143 |
+
{
|
144 |
+
$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"';
|
145 |
+
$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"';
|
146 |
+
$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\'';
|
147 |
+
$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"';
|
148 |
+
$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"';
|
149 |
+
$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"';
|
150 |
+
$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"';
|
151 |
+
$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"';
|
152 |
+
$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"';
|
153 |
+
}
|
154 |
+
else if($button_style=='5')
|
155 |
+
{
|
156 |
+
$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"';
|
157 |
+
$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"';
|
158 |
+
$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\'';
|
159 |
+
$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"';
|
160 |
+
$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"';
|
161 |
+
$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"';
|
162 |
+
$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"';
|
163 |
+
$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"';
|
164 |
+
$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"';
|
165 |
+
|
166 |
+
}
|
167 |
+
else if($button_style=='6')
|
168 |
+
{
|
169 |
+
$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"';
|
170 |
+
$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"';
|
171 |
+
$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\'';
|
172 |
+
$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"';
|
173 |
+
$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"';
|
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/glossy/stumbleupon_glossy.png"';
|
176 |
+
$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"';
|
177 |
+
$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"';
|
178 |
+
|
179 |
+
|
180 |
+
}
|
181 |
+
else if($button_style=='7')
|
182 |
+
{
|
183 |
+
$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"';
|
184 |
+
$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"';
|
185 |
+
$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\'';
|
186 |
+
$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"';
|
187 |
+
$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"';
|
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 |
+
$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"';
|
190 |
+
$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"';
|
191 |
+
$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"';
|
192 |
+
|
193 |
+
|
194 |
+
}
|
195 |
+
else if($button_style=='8')
|
196 |
+
{
|
197 |
+
$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"';
|
198 |
+
$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"';
|
199 |
+
$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\'';
|
200 |
+
$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"';
|
201 |
+
$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"';
|
202 |
+
$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"';
|
203 |
+
$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"';
|
204 |
+
$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"';
|
205 |
+
$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"';
|
206 |
+
|
207 |
+
|
208 |
+
}
|
209 |
+
else if($button_style=='9')
|
210 |
+
{
|
211 |
+
$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"';
|
212 |
+
$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"';
|
213 |
+
$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\'';
|
214 |
+
$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"';
|
215 |
+
$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"';
|
216 |
+
$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"';
|
217 |
+
$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"';
|
218 |
+
$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"';
|
219 |
+
$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"';
|
220 |
+
|
221 |
+
}
|
222 |
+
else if($button_style=='10')
|
223 |
+
{
|
224 |
+
$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"';
|
225 |
+
$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"';
|
226 |
+
$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\'';
|
227 |
+
$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"';
|
228 |
+
$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"';
|
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/rounded_corners/stumbleupon_rounded_corners.png"';
|
231 |
+
$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"';
|
232 |
+
$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"';
|
233 |
+
|
234 |
+
|
235 |
+
}
|
236 |
+
else if($button_style=='11')
|
237 |
+
{
|
238 |
+
$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"';
|
239 |
+
$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"';
|
240 |
+
$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\'';
|
241 |
+
$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"';
|
242 |
+
$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"';
|
243 |
+
$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"';
|
244 |
+
$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"';
|
245 |
+
$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"';
|
246 |
+
$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"';
|
247 |
+
}
|
248 |
+
|
249 |
+
|
250 |
+
|
251 |
+
if($display_style=='1')
|
252 |
+
{
|
253 |
+
$gap_string='<div style=\'float:left;height:'.$gap.'px;\'> </div>';
|
254 |
+
}
|
255 |
+
else
|
256 |
+
{
|
257 |
+
$gap_string='<div style=\'float:left;width:'.$gap.'px;\'> </div>';
|
258 |
+
}
|
259 |
+
|
260 |
+
if($counter_type=='0' || $counter_type=='1')
|
261 |
+
{
|
262 |
+
|
263 |
+
|
264 |
+
$cspageURL = 'http';
|
265 |
+
if($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
|
266 |
+
$cspageURL .= "://";
|
267 |
+
if ($_SERVER["SERVER_PORT"] != "80") {
|
268 |
+
$cspageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
269 |
+
} else {
|
270 |
+
$cspageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
271 |
+
}
|
272 |
+
$url=$cspageURL;
|
273 |
+
|
274 |
+
$counter_top_margin='';
|
275 |
+
if($counter_type=='0')
|
276 |
+
{
|
277 |
+
$counter_top_margin='margin-top:'.intval($iwidth[0]/4).'px;';
|
278 |
+
}
|
279 |
+
|
280 |
+
$comon_counter_end='</div></div>';
|
281 |
+
|
282 |
+
$other_count=file_get_contents("https://www.socleversocial.com/dashboard/get_other_counts.php?site_id=".Mage::getStoreConfig('socialsharesc_options/apisettings/scss_siteid')."&url=".$url."");
|
283 |
+
$row_count=explode("~",$other_count);
|
284 |
+
$comon_counter_end='</div></div>';
|
285 |
+
$count2=$count4=$count7=$count13=$count17=$count18=$count19=$count20=$count21="";
|
286 |
+
$count2r=$count2=''.$comon_counter_start.''.intval($row_count[4]).''.$comon_counter_end.'';
|
287 |
+
$count4r=$count4=''.$comon_counter_start.''.intval($row_count[6]).''.$comon_counter_end.'';
|
288 |
+
$count7r=$count7=''.$comon_counter_start.''.intval($row_count[5]).''.$comon_counter_end.'';
|
289 |
+
$count13r=$count13=''.$comon_counter_start.''.intval($row_count[7]).''.$comon_counter_end.'';
|
290 |
+
$count17r=$count17=''.$comon_counter_start.''.intval($row_count[8]).''.$comon_counter_end.'';
|
291 |
+
$count18r=$count18=''.$comon_counter_start_18.''.intval($row_count[0]).''.$comon_counter_end.'';
|
292 |
+
$count19r=$count19=''.$comon_counter_start.''.intval($row_count[1]).''.$comon_counter_end.'';
|
293 |
+
$count20r=$count20=''.$comon_counter_start.''.intval($row_count[2]).''.$comon_counter_end.'';
|
294 |
+
$count21r=$count21=''.$comon_counter_start.''.intval($row_count[3]).''.$comon_counter_end.'';
|
295 |
+
|
296 |
+
|
297 |
+
}
|
298 |
+
if($counter_type=='0')
|
299 |
+
{
|
300 |
+
$count2=$count4=$count7=$count13=$count17=$count18=$count19=$count20=$count21="";
|
301 |
+
}
|
302 |
+
else
|
303 |
+
{
|
304 |
+
$count2r=$count4r=$count7r=$count13r=$count17r=$count18r=$count19r=$count20r=$count21r="";
|
305 |
+
}
|
306 |
+
|
307 |
+
if($customer = Mage::getSingleton('customer/session')->isLoggedIn()) {
|
308 |
+
|
309 |
+
$customerData = Mage::getSingleton('customer/session')->getCustomer();
|
310 |
+
//$customerData = Mage::getModel('customer/customer')->load($customer->getId())->getData();
|
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 |
+
?>
|
app/design/frontend/base/default/template/socialsharesc/socialsharesc_show.phtml
ADDED
@@ -0,0 +1,357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
if(!function_exists('cs_format_share_url'))
|
24 |
+
{
|
25 |
+
function cs_format_share_url($url,$source)
|
26 |
+
{
|
27 |
+
|
28 |
+
$name = "scsource";
|
29 |
+
$value = $source;
|
30 |
+
|
31 |
+
|
32 |
+
$separator = "?";
|
33 |
+
if (strpos($url,"?")!==false)
|
34 |
+
$separator = "&";
|
35 |
+
|
36 |
+
|
37 |
+
$insertPosition = strlen($url);
|
38 |
+
if (strpos($url,"#")!==false)
|
39 |
+
$insertPosition = strpos($url,"#");
|
40 |
+
|
41 |
+
|
42 |
+
$newUrl = substr_replace($url,"$separator$name=$value",$insertPosition,0);
|
43 |
+
|
44 |
+
return $newUrl;
|
45 |
+
}
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
+
if(!$scss_product_page)
|
50 |
+
{
|
51 |
+
|
52 |
+
$iwidth=explode("x",Mage::getStoreConfig('socialsharesc_options/displaysettings/iconsize'));
|
53 |
+
$button_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstyle');
|
54 |
+
$display_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/displaystyle');
|
55 |
+
$gap=Mage::getStoreConfig('socialsharesc_options/displaysettings/gapsetting');
|
56 |
+
$counter_type=Mage::getStoreConfig('socialsharesc_options/displaysettings/countersetting');
|
57 |
+
$share_button=explode(",",Mage::getStoreConfig('socialsharesc_options/displaysettings/socialproviders'));
|
58 |
+
|
59 |
+
$vartical_top=$counter_position="";
|
60 |
+
$main_div='height:'.$iwidth[0].'px';
|
61 |
+
if($counter_type=='0' || $counter_type=='1')
|
62 |
+
{
|
63 |
+
|
64 |
+
$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; }';
|
65 |
+
if($counter_type=='0')
|
66 |
+
{
|
67 |
+
$main_div='float:left;margin-top:0px;margin-left:8px;height:'.$iwidth[0].'px;margin-right:8px;';
|
68 |
+
|
69 |
+
$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; }';
|
70 |
+
}
|
71 |
+
$js_code .='<style>'.PHP_EOL.
|
72 |
+
'.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.
|
73 |
+
'</style>'.PHP_EOL;
|
74 |
+
}
|
75 |
+
$useragent=$_SERVER['HTTP_USER_AGENT'];
|
76 |
+
$mobile_Display="display:none;";
|
77 |
+
$comon_counter_start='<div class="arrow_box" ><div style="color:#000;font-weight:bold;position: relative;width: 100%;text-align: center;'.$counter_top_margin.'">';
|
78 |
+
$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.'">';
|
79 |
+
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)))
|
80 |
+
{
|
81 |
+
|
82 |
+
$mobile_Display="display:inline-block;";
|
83 |
+
$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.'">';
|
84 |
+
}
|
85 |
+
|
86 |
+
if($button_style=='custom')
|
87 |
+
{
|
88 |
+
$fb_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylefb');
|
89 |
+
$gp_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylegp');
|
90 |
+
$li_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstyleli');
|
91 |
+
$tw_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstyletw');
|
92 |
+
$pi_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylepi');
|
93 |
+
$wa_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylewa');
|
94 |
+
$su_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylesu');
|
95 |
+
$rd_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstylerd');
|
96 |
+
$tm_style=Mage::getStoreConfig('socialsharesc_options/displaysettings/yourstyletm');
|
97 |
+
$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').'\'';
|
98 |
+
$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').'\'';
|
99 |
+
$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').'\'';
|
100 |
+
$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').'\'';
|
101 |
+
$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').'\'';
|
102 |
+
$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').'\'';
|
103 |
+
$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').'\'';
|
104 |
+
$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').'\'';
|
105 |
+
$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').'\'';
|
106 |
+
$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').'\'';
|
107 |
+
|
108 |
+
|
109 |
+
}
|
110 |
+
else if($button_style=='1')
|
111 |
+
{
|
112 |
+
$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"';
|
113 |
+
$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"';
|
114 |
+
$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\'';
|
115 |
+
$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"';
|
116 |
+
$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"';
|
117 |
+
$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"';
|
118 |
+
$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"';
|
119 |
+
$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"';
|
120 |
+
$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"';
|
121 |
+
|
122 |
+
}
|
123 |
+
else if($button_style=='2')
|
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.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.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.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.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.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.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.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.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.png"';
|
134 |
+
|
135 |
+
}
|
136 |
+
else if($button_style=='3')
|
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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.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_grey.png"';
|
147 |
+
}
|
148 |
+
else if($button_style=='4')
|
149 |
+
{
|
150 |
+
$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"';
|
151 |
+
$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"';
|
152 |
+
$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\'';
|
153 |
+
$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"';
|
154 |
+
$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"';
|
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/rounded/whatsapp_grey_circle.png"';
|
156 |
+
$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"';
|
157 |
+
$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"';
|
158 |
+
$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"';
|
159 |
+
}
|
160 |
+
else if($button_style=='5')
|
161 |
+
{
|
162 |
+
$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"';
|
163 |
+
$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"';
|
164 |
+
$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\'';
|
165 |
+
$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"';
|
166 |
+
$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"';
|
167 |
+
$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"';
|
168 |
+
$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"';
|
169 |
+
$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"';
|
170 |
+
$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"';
|
171 |
+
|
172 |
+
}
|
173 |
+
else if($button_style=='6')
|
174 |
+
{
|
175 |
+
$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"';
|
176 |
+
$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"';
|
177 |
+
$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\'';
|
178 |
+
$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"';
|
179 |
+
$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"';
|
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/glossy/stumbleupon_glossy.png"';
|
182 |
+
$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"';
|
183 |
+
$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"';
|
184 |
+
|
185 |
+
|
186 |
+
}
|
187 |
+
else if($button_style=='7')
|
188 |
+
{
|
189 |
+
$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"';
|
190 |
+
$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"';
|
191 |
+
$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\'';
|
192 |
+
$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"';
|
193 |
+
$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"';
|
194 |
+
$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"';
|
195 |
+
$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"';
|
196 |
+
$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"';
|
197 |
+
$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"';
|
198 |
+
|
199 |
+
|
200 |
+
}
|
201 |
+
else if($button_style=='8')
|
202 |
+
{
|
203 |
+
$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"';
|
204 |
+
$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"';
|
205 |
+
$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\'';
|
206 |
+
$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"';
|
207 |
+
$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"';
|
208 |
+
$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"';
|
209 |
+
$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"';
|
210 |
+
$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"';
|
211 |
+
$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"';
|
212 |
+
|
213 |
+
|
214 |
+
}
|
215 |
+
else if($button_style=='9')
|
216 |
+
{
|
217 |
+
$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"';
|
218 |
+
$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"';
|
219 |
+
$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\'';
|
220 |
+
$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"';
|
221 |
+
$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"';
|
222 |
+
$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"';
|
223 |
+
$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"';
|
224 |
+
$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"';
|
225 |
+
$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"';
|
226 |
+
|
227 |
+
}
|
228 |
+
else if($button_style=='10')
|
229 |
+
{
|
230 |
+
$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"';
|
231 |
+
$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"';
|
232 |
+
$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\'';
|
233 |
+
$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"';
|
234 |
+
$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"';
|
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/rounded_corners/stumbleupon_rounded_corners.png"';
|
237 |
+
$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"';
|
238 |
+
$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"';
|
239 |
+
|
240 |
+
|
241 |
+
}
|
242 |
+
else if($button_style=='11')
|
243 |
+
{
|
244 |
+
$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"';
|
245 |
+
$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"';
|
246 |
+
$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\'';
|
247 |
+
$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"';
|
248 |
+
$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"';
|
249 |
+
$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"';
|
250 |
+
$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"';
|
251 |
+
$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"';
|
252 |
+
$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"';
|
253 |
+
}
|
254 |
+
|
255 |
+
|
256 |
+
if($display_style=='1')
|
257 |
+
{
|
258 |
+
$gap_string='<div style=\'float:left;height:'.$gap.'px;\'> </div>';
|
259 |
+
}
|
260 |
+
else
|
261 |
+
{
|
262 |
+
$gap_string='<div style=\'float:left;width:'.$gap.'px;\'> </div>';
|
263 |
+
}
|
264 |
+
|
265 |
+
if($counter_type=='0' || $counter_type=='1')
|
266 |
+
{
|
267 |
+
//$url=$this->helper('core/url')->getCurrentUrl();
|
268 |
+
|
269 |
+
$cspageURL = 'http';
|
270 |
+
if($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
|
271 |
+
$cspageURL .= "://";
|
272 |
+
if ($_SERVER["SERVER_PORT"] != "80") {
|
273 |
+
$cspageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
274 |
+
} else {
|
275 |
+
$cspageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
276 |
+
}
|
277 |
+
$url=$cspageURL;
|
278 |
+
|
279 |
+
$counter_top_margin='';
|
280 |
+
if($counter_type=='0')
|
281 |
+
{
|
282 |
+
$counter_top_margin='margin-top:'.intval($iwidth[0]/4).'px;';
|
283 |
+
}
|
284 |
+
|
285 |
+
$comon_counter_end='</div></div>';
|
286 |
+
$other_count=file_get_contents("https://www.socleversocial.com/dashboard/get_other_counts.php?site_id=".Mage::getStoreConfig('socialsharesc_options/apisettings/scss_siteid')."&url=".$url."");
|
287 |
+
$row_count=explode("~",$other_count);
|
288 |
+
$comon_counter_end='</div></div>';
|
289 |
+
$count2=$count4=$count7=$count13=$count17=$count18=$count19=$count20=$count21="";
|
290 |
+
$count2r=$count2=''.$comon_counter_start.''.intval($row_count[4]).''.$comon_counter_end.'';
|
291 |
+
$count4r=$count4=''.$comon_counter_start.''.intval($row_count[6]).''.$comon_counter_end.'';
|
292 |
+
$count7r=$count7=''.$comon_counter_start.''.intval($row_count[5]).''.$comon_counter_end.'';
|
293 |
+
$count13r=$count13=''.$comon_counter_start.''.intval($row_count[7]).''.$comon_counter_end.'';
|
294 |
+
$count17r=$count17=''.$comon_counter_start.''.intval($row_count[8]).''.$comon_counter_end.'';
|
295 |
+
$count18r=$count18=''.$comon_counter_start_18.''.intval($row_count[0]).''.$comon_counter_end.'';
|
296 |
+
$count19r=$count19=''.$comon_counter_start.''.intval($row_count[1]).''.$comon_counter_end.'';
|
297 |
+
$count20r=$count20=''.$comon_counter_start.''.intval($row_count[2]).''.$comon_counter_end.'';
|
298 |
+
$count21r=$count21=''.$comon_counter_start.''.intval($row_count[3]).''.$comon_counter_end.'';
|
299 |
+
|
300 |
+
}
|
301 |
+
if($counter_type=='0')
|
302 |
+
{
|
303 |
+
$count2=$count4=$count7=$count13=$count17=$count18=$count19=$count20=$count21="";
|
304 |
+
}
|
305 |
+
else
|
306 |
+
{
|
307 |
+
$count2r=$count4r=$count7r=$count13r=$count17r=$count18r=$count19r=$count20r=$count21r="";
|
308 |
+
}
|
309 |
+
|
310 |
+
if($customer = Mage::getSingleton('customer/session')->isLoggedIn()) {
|
311 |
+
|
312 |
+
$customerData = Mage::getSingleton('customer/session')->getCustomer();
|
313 |
+
//$customerData = Mage::getModel('customer/customer')->load($customer->getId())->getData();
|
314 |
+
|
315 |
+
$user_ID=$customerData->getId();
|
316 |
+
|
317 |
+
}
|
318 |
+
$title=$this->getLayout()->getBlock('head')->getTitle();
|
319 |
+
$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.'';
|
320 |
+
$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.'';
|
321 |
+
$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.'';
|
322 |
+
$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.'';
|
323 |
+
$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.'';
|
324 |
+
$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.'';
|
325 |
+
$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.'';
|
326 |
+
$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.'';
|
327 |
+
$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.'';
|
328 |
+
|
329 |
+
|
330 |
+
$start_div='<div id="scssdiv" style="clear:both;wdth:100%;height:100%;display:inline-block;z-index:999;">';
|
331 |
+
$end_div='</div>';
|
332 |
+
if($display_style=='1' || $display_style=='2' )
|
333 |
+
{
|
334 |
+
|
335 |
+
$left_right=($display_style=='2')?'right:0;':'left:0;';
|
336 |
+
$multiplier_div=($counter_type=='0')?'2':'1';
|
337 |
+
$add_extra=($counter_type=='0')?'20':'0';
|
338 |
+
$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;">';
|
339 |
+
$end_div='</div>';
|
340 |
+
}
|
341 |
+
|
342 |
+
|
343 |
+
$js_code .= PHP_EOL;
|
344 |
+
$js_code .=$start_div;
|
345 |
+
foreach($share_button as $key=>$val)
|
346 |
+
{
|
347 |
+
|
348 |
+
$js_code .=$share_arr[$val];
|
349 |
+
}
|
350 |
+
$js_code .=$end_div;
|
351 |
+
|
352 |
+
|
353 |
+
|
354 |
+
echo $js_code;
|
355 |
+
}
|
356 |
+
|
357 |
+
?>
|
app/etc/modules/{Soclever_Socialshare.xml → Soclever_Socialsharesc.xml}
RENAMED
@@ -1,9 +1,9 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
-
<
|
5 |
<active>true</active>
|
6 |
<codePool>local</codePool>
|
7 |
-
</
|
8 |
</modules>
|
9 |
</config>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<Soclever_Socialsharesc>
|
5 |
<active>true</active>
|
6 |
<codePool>local</codePool>
|
7 |
+
</Soclever_Socialsharesc>
|
8 |
</modules>
|
9 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>soclever_sharing_buttons</name>
|
4 |
-
<version>1.0.
|
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 |
Unlike other FREE sharing buttons SoClever DOES NOT sell your customer cookie data which allows competitors to target your customers/visitors.</p>
|
30 |
<p><strong>Dynamic JavaScript</strong><br>
|
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.</p></description>
|
32 |
-
<notes>Stable Version 1.0.
|
33 |
<authors><author><name>Soclever Social</name><user>Socleversocial</user><email>hemang@socleversocial.com</email></author></authors>
|
34 |
-
<date>2015-
|
35 |
-
<time>
|
36 |
-
<contents><target name="magelocal"><dir name="Soclever"><dir name="
|
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>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>soclever_sharing_buttons</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
29 |
Unlike other FREE sharing buttons SoClever DOES NOT sell your customer cookie data which allows competitors to target your customers/visitors.</p>
|
30 |
<p><strong>Dynamic JavaScript</strong><br>
|
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.</p></description>
|
32 |
+
<notes>Stable Version 1.0.1</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:26:13</time>
|
36 |
+
<contents><target name="magelocal"><dir name="Soclever"><dir name="Socialsharesc"><dir name="Block"><dir name="Adminhtml"><file name="Help.php" hash="eca144a1a28dff90783200aa49746051"/><file name="Positions.php" hash="8377130d506a7447e8e1f7237b60e1c6"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Customopt1toggle.php" hash="07a62f5baacef304587b5ec03e4a92c1"/></dir></dir></dir></dir></dir><file name="Scsshead.php" hash="2431d0175206e3a5d4b83fda9f2bce55"/><file name="Scsshow.php" hash="b6db268fc8524b25e8dc38379e984920"/><file name="Scssfooter.php" hash="b93dba620ecaaae446d1f5c099c4bd23"/></dir><dir name="controllers"><file name="IndexController.php" hash="4eaf422c7443916710d8a87973066033"/></dir><dir name="etc"><file name="config.xml" hash="059f78748877d750c21620a1e4a06dfa"/><file name="system.xml" hash="f601cf2ca6d1cf9aca4107c0dbc03a27"/></dir><dir name="Helper"><file name="Data.php" hash="d2e2fcd286fd2494814177e72bf0e0ed"/></dir><dir name="Model"><file name="Providers.php" hash="670d1e1a370ac8f19579591dcfe8376d"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="socialsharesc.xml" hash="6b3b0ae1dc4d7db2e36d795e5b933076"/></dir><dir name="template"><dir name="socialsharesc"><file name="socialsharesc.phtml" hash="882027a88ba4832fc6aab04295a90645"/><file name="socialsharesc_head.phtml" hash="ba15f1e70df8b1e78b1e2181b9df9161"/><file name="socialsharesc_product.phtml" hash="40b9a16a69488d9f34b64d671a731c8a"/><file name="socialsharesc_show.phtml" hash="0a763536ab332db55d229c8d19384bb7"/><file name="socialsharesc_footer.phtml" hash="fc3e6869469608478a8573b89f1dafe1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Soclever_Socialsharesc.xml" hash="c10cdf8b9b3ab01bf0b8408d83ec1409"/></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>
|