socleverloginsharing - Version 1.2.3

Version Notes

Minor bug fix

Download this release

Release Info

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


Code changes from version 1.2.2 to 1.2.3

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