MRWEB_SocialShareButtons - Version 1.1.1

Version Notes

First Release

Download this release

Release Info

Developer Raghunath
Extension MRWEB_SocialShareButtons
Version 1.1.1
Comparing to
See all releases


Code changes from version 1.0.1 to 1.1.1

Files changed (43) hide show
  1. app/code/community/MRWEB/SocialShareButtons/Block/About.php +0 -26
  2. app/code/community/MRWEB/SocialShareButtons/Block/Index.php +0 -5
  3. app/code/community/MRWEB/SocialShareButtons/Helper/Data.php +31 -1
  4. app/code/community/MRWEB/SocialShareButtons/Model/System/Config/{Source/Dropdown/Buttons.php → Buttons.php} +1 -1
  5. app/code/community/MRWEB/SocialShareButtons/Model/System/Config/{Source/Dropdown/Position.php → Position.php} +1 -1
  6. app/code/community/MRWEB/SocialShareButtons/controllers/IndexController.php +0 -25
  7. app/code/community/MRWEB/SocialShareButtons/etc/config.xml +2 -17
  8. app/code/community/MRWEB/SocialShareButtons/etc/system.xml +22 -6
  9. app/design/frontend/{default → base}/default/layout/socialsharebuttons.xml +2 -1
  10. app/design/frontend/{default → base}/default/template/socialsharebuttons/socialsharebuttons.phtml +40 -61
  11. package.xml +31 -8
  12. skin/frontend/{default → base}/default/css/socialsharebuttons/socialsharebuttons.css +0 -0
  13. skin/frontend/{default → base}/default/images/socialsharebuttons/fb.png +0 -0
  14. skin/frontend/{default → base}/default/images/socialsharebuttons/gp.png +0 -0
  15. skin/frontend/base/default/images/socialsharebuttons/hide-r.png +0 -0
  16. skin/frontend/{default → base}/default/images/socialsharebuttons/hide.png +0 -0
  17. skin/frontend/{default → base}/default/images/socialsharebuttons/in.png +0 -0
  18. skin/frontend/{default → base}/default/images/socialsharebuttons/ml.png +0 -0
  19. skin/frontend/{default → base}/default/images/socialsharebuttons/mrweb-logo.jpg +0 -0
  20. skin/frontend/{default → base}/default/images/socialsharebuttons/pinit.png +0 -0
  21. skin/frontend/{default → base}/default/images/socialsharebuttons/raghu.jpg +0 -0
  22. skin/frontend/{default → base}/default/images/socialsharebuttons/reddit.png +0 -0
  23. skin/frontend/base/default/images/socialsharebuttons/show-l.png +0 -0
  24. skin/frontend/{default → base}/default/images/socialsharebuttons/show.png +0 -0
  25. skin/frontend/{default → base}/default/images/socialsharebuttons/stumbleupon.png +0 -0
  26. skin/frontend/{default → base}/default/images/socialsharebuttons/tw.png +0 -0
  27. skin/frontend/{default → base}/default/images/socialsharebuttons/youtube.png +0 -0
  28. skin/frontend/{default → base}/default/js/socialsharebuttons/jquery-2.1.3.js +0 -0
  29. skin/frontend/base/default/js/socialsharebuttons/ssb-custom.js +29 -0
  30. skin/frontend/default/default/images/socialsharebuttons/fb-p.png +0 -0
  31. skin/frontend/default/default/images/socialsharebuttons/gp-p.png +0 -0
  32. skin/frontend/default/default/images/socialsharebuttons/in-p.png +0 -0
  33. skin/frontend/default/default/images/socialsharebuttons/ml-p.png +0 -0
  34. skin/frontend/default/default/images/socialsharebuttons/overlay.png +0 -0
  35. skin/frontend/default/default/images/socialsharebuttons/pinit-p.png +0 -0
  36. skin/frontend/default/default/images/socialsharebuttons/reddit-p.png +0 -0
  37. skin/frontend/default/default/images/socialsharebuttons/sharethis-l.png +0 -0
  38. skin/frontend/default/default/images/socialsharebuttons/sharethis-r.png +0 -0
  39. skin/frontend/default/default/images/socialsharebuttons/sharethis.png +0 -0
  40. skin/frontend/default/default/images/socialsharebuttons/sharethis_old.png +0 -0
  41. skin/frontend/default/default/images/socialsharebuttons/stumbleupon-p.png +0 -0
  42. skin/frontend/default/default/images/socialsharebuttons/tw-p.png +0 -0
  43. skin/frontend/default/default/images/socialsharebuttons/youtube-p.png +0 -0
app/code/community/MRWEB/SocialShareButtons/Block/About.php DELETED
@@ -1,26 +0,0 @@
1
- <?php
2
-
3
- class MRWEB_SocialShareButtons_Block_About
4
- extends Mage_Adminhtml_Block_Abstract
5
- implements Varien_Data_Form_Element_Renderer_Interface
6
- {
7
-
8
- /**
9
- * Render fieldset html
10
- *
11
- * @param Varien_Data_Form_Element_Abstract $element
12
- * @return string
13
- */
14
- public function render(Varien_Data_Form_Element_Abstract $element)
15
- {
16
- $html = <<<HTML
17
- <div>
18
- <a href="http://www.mrwebsolution.in/" target="_blank"><img src="http://www.mrwebsolution.in/wp-content/uploads/2014/10/latest-logo1.jpg"></a>
19
- <p><a href="http://www.mrwebsolution.in/about-us/"><span class="wpmega-link-title">About MR Web Solution</span></a><div class="wpmega-nonlink uberClearfix"><p>MR Web Solutions is an Indian IT sourcing company which sees your relationship with us as equally vital to the success of our outsourcing partnership as our development skills.</p>
20
- <p><a href="#"><span class="wpmega-link-title">Address</span></a><div class="wpmega-nonlink wpmega-widgetarea ss-colgroup-1 uberClearfix"><ul id="wpmega-ubermenu-widget-area-2"><li id="custom_post_widget-7" class="widget widget_custom_post_widget"><div class="clearfix"></p>
21
- <div style="float: left; clear: both; padding-top: 5px;"><b>Email:</b> raghunath.0087@gmail.com</div>
22
- </div>
23
- HTML;
24
- return $html;
25
- }
26
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/MRWEB/SocialShareButtons/Block/Index.php CHANGED
@@ -1,9 +1,4 @@
1
  <?php
2
  class MRWEB_SocialShareButtons_Block_Index extends Mage_Core_Block_Template{
3
-
4
-
5
-
6
-
7
-
8
  }
9
  ?>
1
  <?php
2
  class MRWEB_SocialShareButtons_Block_Index extends Mage_Core_Block_Template{
 
 
 
 
 
3
  }
4
  ?>
app/code/community/MRWEB/SocialShareButtons/Helper/Data.php CHANGED
@@ -33,5 +33,35 @@ class MRWEB_SocialShareButtons_Helper_Data extends Mage_Payment_Helper_Data
33
  const SSB_SIDEBAR_HIDE_HOME = 'socialsharebuttonssettings/socialsharebuttonsgeneral/ssb_home_disable';
34
  const SSB_SIDEBAR_JQUERY = 'socialsharebuttonssettings/socialsharebuttonsgeneral/ssb_jquery_yesno';
35
  const SSB_SIDEBAR_MAIL_URL = 'socialsharebuttonssettings/socialsharebuttonsgeneral/ssb_mail_url';
36
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  ?>
33
  const SSB_SIDEBAR_HIDE_HOME = 'socialsharebuttonssettings/socialsharebuttonsgeneral/ssb_home_disable';
34
  const SSB_SIDEBAR_JQUERY = 'socialsharebuttonssettings/socialsharebuttonsgeneral/ssb_jquery_yesno';
35
  const SSB_SIDEBAR_MAIL_URL = 'socialsharebuttonssettings/socialsharebuttonsgeneral/ssb_mail_url';
36
+ const SSB_SIDEBAR_YT_URL = 'socialsharebuttonssettings/socialsharebuttonsgeneral/ssb_yt_url';
37
+ /*
38
+ * Mobile Detection
39
+ * */
40
+ public function ssbIsMobile() {
41
+ // Check the server headers to see if they're mobile friendly
42
+ if(isset($_SERVER["HTTP_X_WAP_PROFILE"])) {
43
+ return true;
44
+ }
45
+ // Let's NOT return "mobile" if it's an iPhone, because the iPhone can render normal pages quite well.
46
+ if(strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
47
+ return false;
48
+ }
49
+ // If the http_accept header supports wap then it's a mobile too
50
+ if(preg_match("/wap\.|\.wap/i",$_SERVER["HTTP_ACCEPT"])) {
51
+ return true;
52
+ }
53
+ // Still no luck? Let's have a look at the user agent on the browser. If it contains
54
+ // any of the following, it's probably a mobile device. Kappow!
55
+ if(isset($_SERVER["HTTP_USER_AGENT"])){
56
+ $user_agents = array("midp", "j2me", "avantg", "docomo", "novarra", "palmos", "palmsource", "240x320", "opwv", "chtml", "pda", "windows\ ce", "mmp\/", "blackberry", "mib\/", "symbian", "wireless", "nokia", "hand", "mobi", "phone", "cdm", "up\.b", "audio", "SIE\-", "SEC\-", "samsung", "HTC", "mot\-", "mitsu", "sagem", "sony", "alcatel", "lg", "erics", "vx", "NEC", "philips", "mmm", "xx", "panasonic", "sharp", "wap", "sch", "rover", "pocket", "benq", "java", "pt", "pg", "vox", "amoi", "bird", "compal", "kg", "voda", "sany", "kdd", "dbt", "sendo", "sgh", "gradi", "jb", "\d\d\di", "moto");
57
+ foreach($user_agents as $user_string){
58
+ if(preg_match("/".$user_string."/i",$_SERVER["HTTP_USER_AGENT"])) {
59
+ return true;
60
+ }
61
+ }
62
+ }
63
+ // None of the above? Then it's probably not a mobile device.
64
+ return false;
65
+ }
66
+ }
67
  ?>
app/code/community/MRWEB/SocialShareButtons/Model/System/Config/{Source/Dropdown/Buttons.php → Buttons.php} RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class MRWEB_SocialShareButtons_Model_System_Config_Source_Dropdown_Buttons
4
  {
5
  public function toOptionArray()
6
  {
1
  <?php
2
 
3
+ class MRWEB_SocialShareButtons_Model_System_Config_Buttons
4
  {
5
  public function toOptionArray()
6
  {
app/code/community/MRWEB/SocialShareButtons/Model/System/Config/{Source/Dropdown/Position.php → Position.php} RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class MRWEB_SocialShareButtons_Model_System_Config_Source_Dropdown_Position
4
  {
5
  public function toOptionArray()
6
  {
1
  <?php
2
 
3
+ class MRWEB_SocialShareButtons_Model_System_Config_Position
4
  {
5
  public function toOptionArray()
6
  {
app/code/community/MRWEB/SocialShareButtons/controllers/IndexController.php CHANGED
@@ -26,32 +26,7 @@
26
  */
27
  public function indexAction()
28
  {
29
-
30
  $this->loadLayout();
31
- /* $this->getLayout()->getBlock("head")->setTitle($this->__("Social Share Buttons"));
32
- $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
33
- $breadcrumbs->addCrumb("home", array(
34
- "label" => $this->__("Home Page"),
35
- "title" => $this->__("Home Page"),
36
- "link" => Mage::getBaseUrl()
37
- ));
38
-
39
- $breadcrumbs->addCrumb("titlename", array(
40
- "label" => $this->__("Social Share Buttons"),
41
- "title" => $this->__("SocialShareButtons")
42
- ));
43
- */
44
  $this->renderLayout();
45
-
46
  }
47
-
48
- public function testAction()
49
- {
50
- // $this->loadLayout();
51
- //$this->renderLayout();
52
-
53
- }
54
- // echo $payEmailTo=Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_STATUS);
55
-
56
-
57
  }
26
  */
27
  public function indexAction()
28
  {
 
29
  $this->loadLayout();
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  $this->renderLayout();
 
31
  }
 
 
 
 
 
 
 
 
 
 
32
  }
app/code/community/MRWEB/SocialShareButtons/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <MRWEB_SocialShareButtons>
5
- <version>0.1.0</version>
6
  </MRWEB_SocialShareButtons>
7
  </modules>
8
  <frontend>
@@ -22,7 +22,6 @@
22
  </socialsharebuttons>
23
  </updates>
24
  </layout>
25
-
26
  </frontend>
27
  <global>
28
  <models>
@@ -37,22 +36,8 @@
37
  </helpers>
38
  <blocks>
39
  <socialsharebuttons>
40
- <class>Helios_SocialShareButtons_Block</class>
41
  </socialsharebuttons>
42
  </blocks>
43
  </global>
44
- <default>
45
- <socialsharebuttonssettings>
46
- <general>
47
- <text_field>Default value</text_field>
48
- <textarea></textarea>
49
- <dropdown>ssb_key_1</dropdown>
50
- <multiple_dropdown>ssb_key_1,ssb_key_2</multiple_dropdown>
51
- <time>11,30,45</time>
52
- <active>0</active>
53
- <boolean>1</boolean>
54
- <dependant_text_field>Default value</dependant_text_field>
55
- </general>
56
- </socialsharebuttonssettings>
57
- </default>
58
  </config>
2
  <config>
3
  <modules>
4
  <MRWEB_SocialShareButtons>
5
+ <version>1.1.0</version>
6
  </MRWEB_SocialShareButtons>
7
  </modules>
8
  <frontend>
22
  </socialsharebuttons>
23
  </updates>
24
  </layout>
 
25
  </frontend>
26
  <global>
27
  <models>
36
  </helpers>
37
  <blocks>
38
  <socialsharebuttons>
39
+ <class>MRWEB_SocialShareButtons_Block</class>
40
  </socialsharebuttons>
41
  </blocks>
42
  </global>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  </config>
app/code/community/MRWEB/SocialShareButtons/etc/system.xml CHANGED
@@ -21,7 +21,7 @@
21
  <show_in_default>1</show_in_default>
22
  <show_in_website>1</show_in_website>
23
  <show_in_store>1</show_in_store>
24
- <comment><![CDATA[This is a <strong>social share buttons</strong> <em>configuration</em>. Feel free to contact us for any query on our email <a href="mailto:raghunath.0087@gmail.com">raghunath.0087@gmail.com</a>]]></comment>
25
  <fields>
26
  <ssb_enable translate="label socialsharebuttons">
27
  <label>Enable Module</label>
@@ -96,7 +96,7 @@
96
  <label>Sidebar Position</label>
97
  <comment>enable social share buttons</comment>
98
  <frontend_type>select</frontend_type>
99
- <source_model>mrweb_socialsharebuttons/system_config_source_dropdown_position</source_model>
100
  <sort_order>8</sort_order>
101
  <show_in_default>1</show_in_default>
102
  <show_in_website>1</show_in_website>
@@ -107,7 +107,7 @@
107
  <label>Publish Buttons</label>
108
  <comment>select share buttons.</comment>
109
  <frontend_type>multiselect</frontend_type>
110
- <source_model>mrweb_socialsharebuttons/system_config_source_dropdown_buttons</source_model>
111
  <sort_order>9</sort_order>
112
  <show_in_default>1</show_in_default>
113
  <show_in_website>0</show_in_website>
@@ -124,17 +124,33 @@
124
  <comment>Load jquery file or not</comment>
125
  </ssb_jquery_yesno>
126
  <ssb_mail_url translate="label socialsharebuttons">
127
- <label>Define Mail Button URL</label>
128
  <comment>define mail button URL</comment>
129
  <frontend_type>text</frontend_type>
130
  <sort_order>12</sort_order>
131
  <show_in_default>1</show_in_default>
132
  <show_in_website>1</show_in_website>
133
  <show_in_store>1</show_in_store>
134
- </ssb_mail_url>
135
-
 
 
 
 
 
 
 
 
136
  </fields>
137
  </socialsharebuttonsgeneral>
 
 
 
 
 
 
 
 
138
  </groups>
139
  </socialsharebuttonssettings>
140
  </sections>
21
  <show_in_default>1</show_in_default>
22
  <show_in_website>1</show_in_website>
23
  <show_in_store>1</show_in_store>
24
+ <comment><![CDATA[We have released a pro version which not only demonstrates the flexibility of Social Share Buttons, but also adds some important features (responsive buttons,show number of share count...etc).<h2><strong><a href="http://ssbwfs.mrwebsolution.in/pro" target="_blank">Go Pro</a></strong></h2>]]></comment>
25
  <fields>
26
  <ssb_enable translate="label socialsharebuttons">
27
  <label>Enable Module</label>
96
  <label>Sidebar Position</label>
97
  <comment>enable social share buttons</comment>
98
  <frontend_type>select</frontend_type>
99
+ <source_model>mrweb_socialsharebuttons/system_config_position</source_model>
100
  <sort_order>8</sort_order>
101
  <show_in_default>1</show_in_default>
102
  <show_in_website>1</show_in_website>
107
  <label>Publish Buttons</label>
108
  <comment>select share buttons.</comment>
109
  <frontend_type>multiselect</frontend_type>
110
+ <source_model>mrweb_socialsharebuttons/system_config_buttons</source_model>
111
  <sort_order>9</sort_order>
112
  <show_in_default>1</show_in_default>
113
  <show_in_website>0</show_in_website>
124
  <comment>Load jquery file or not</comment>
125
  </ssb_jquery_yesno>
126
  <ssb_mail_url translate="label socialsharebuttons">
127
+ <label>Mail Button URL</label>
128
  <comment>define mail button URL</comment>
129
  <frontend_type>text</frontend_type>
130
  <sort_order>12</sort_order>
131
  <show_in_default>1</show_in_default>
132
  <show_in_website>1</show_in_website>
133
  <show_in_store>1</show_in_store>
134
+ </ssb_mail_url>
135
+ <ssb_yt_url translate="label socialsharebuttons">
136
+ <label>Youtube Button URL</label>
137
+ <comment>define youtube channel URL</comment>
138
+ <frontend_type>text</frontend_type>
139
+ <sort_order>13</sort_order>
140
+ <show_in_default>1</show_in_default>
141
+ <show_in_website>1</show_in_website>
142
+ <show_in_store>1</show_in_store>
143
+ </ssb_yt_url>
144
  </fields>
145
  </socialsharebuttonsgeneral>
146
+ <socialsharebuttonssupport translate="label socialsharebuttons support">
147
+ <label>Go Pro and Support</label>
148
+ <sort_order>2</sort_order>
149
+ <show_in_default>1</show_in_default>
150
+ <show_in_website>1</show_in_website>
151
+ <show_in_store>1</show_in_store>
152
+ <comment><![CDATA[We have released a pro version which not only demonstrates the flexibility of Social Share Buttons, but also adds some important features (responsive buttons,show number of share count...etc).<br> Please have a look on this link for find live demo <a href="http://ssbwfs.mrwebsolution.in/pro" target="_blank">Live Demo</a></br>Feel free to contact us for any query on our email <a href="mailto:raghunath.0087@gmail.com">raghunath.0087@gmail.com</a>]]></comment>
153
+ </socialsharebuttonssupport>
154
  </groups>
155
  </socialsharebuttonssettings>
156
  </sections>
app/design/frontend/{default → base}/default/layout/socialsharebuttons.xml RENAMED
@@ -2,7 +2,8 @@
2
  <layout version="0.1.0">
3
  <default>
4
  <reference name="head">
5
- <action method="addItem"><type>skin_css</type><name>css/socialsharebuttons/socialsharebuttons.css</name></action>
 
6
  </reference>
7
  <reference name="footer" >
8
  <block type="core/template" name="socialsharebuttons" as="socialshare" template="socialsharebuttons/socialsharebuttons.phtml" />
2
  <layout version="0.1.0">
3
  <default>
4
  <reference name="head">
5
+ <action method="addItem"><type>skin_css</type><name>css/socialsharebuttons/socialsharebuttons.css</name></action>
6
+ <action method="addItem"><type>skin_js</type><name>js/socialsharebuttons/ssb-custom.js</name></action>
7
  </reference>
8
  <reference name="footer" >
9
  <block type="core/template" name="socialsharebuttons" as="socialshare" template="socialsharebuttons/socialsharebuttons.phtml" />
app/design/frontend/{default → base}/default/template/socialsharebuttons/socialsharebuttons.phtml RENAMED
@@ -1,5 +1,6 @@
1
  <?php
2
  /**
 
3
  * get Controller name
4
  */
5
  $ssb_ControllerName=Mage::app()->getRequest()->getControllerName();
@@ -8,26 +9,38 @@ $ssb_ControllerName=Mage::app()->getRequest()->getControllerName();
8
  */
9
  $ssb_moduleName=Mage::app()->getRequest()->getModuleName();
10
  $ssb_hideOnHome=Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_HIDE_HOME);
 
 
 
 
 
 
 
 
 
11
  /** check is catalog OR CMS */
12
  $ssb_condAry=array('cms','catalog');
13
  if(in_array($ssb_moduleName,$ssb_condAry)):
14
-
15
  /** Check condition for buttons to display on home or not*/
16
  if($ssb_hideOnHome=='0' && $ssb_moduleName=='cms' && $ssb_ControllerName=='index')
17
  {
18
  return true;
19
  exit;
20
  }
21
-
22
  if(Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_STATUS)):
23
  $margin='20%;';$sidebarPosition='left:0;';$sidebarDivid='left';
24
- $SSB_SIDEBAR_MAIL_URL='';
25
  $sidebarPositionVal=Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_POSITION);
26
  $sidebarDelayTime=Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_DELAY_TIME);
27
  $sidebarShowHide=Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_SHOW_HIDE);
28
  $topmargin = Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_TOP_MARGIN);
29
  $IsJquery = Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_JQUERY);
30
- $SSB_SIDEBAR_MAIL_URL = Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_MAIL_URL);
 
 
 
 
 
31
 
32
  if($topmargin!='')
33
  $margin =$topmargin ;
@@ -51,7 +64,6 @@ $jscnt.='
51
  defaultAnimateWidth= animateWidth-10;
52
  animateHeight="49";
53
  defaultAnimateHeight= animateHeight-2;';
54
-
55
  if($sidebarDelayTime!=''):
56
  $jscnt.='jQuery("#delaydiv").hide();
57
  setTimeout(function(){
@@ -61,7 +73,6 @@ endif;
61
 
62
  foreach($ButtonsAry as $btnsVal)
63
  {
64
-
65
  if($btnsVal=='tw'):
66
  $jscnt.='jQuery("div#ssb_tw a").hover(function(){
67
  jQuery("div#ssb_tw a").animate({width:animateWidth});
@@ -69,7 +80,6 @@ if($btnsVal=='tw'):
69
  jQuery("div#ssb_tw a").stop( true, true ).animate({width:defaultAnimateWidth});
70
  });';
71
  endif;
72
-
73
  if($btnsVal=='fb'):
74
  $jscnt.='jQuery("div#ssb_fb a").hover(function(){
75
  jQuery("div#ssb_fb a").animate({width:animateWidth});
@@ -77,7 +87,6 @@ if($btnsVal=='tw'):
77
  jQuery("div#ssb_fb a").stop( true, true ).animate({width:defaultAnimateWidth});
78
  });';
79
  endif;
80
-
81
  if($btnsVal=='mail'):
82
  $jscnt.='jQuery("div#ssb_ml a").hover(function(){
83
  jQuery("div#ssb_ml a").animate({width:animateWidth});
@@ -85,7 +94,6 @@ if($btnsVal=='tw'):
85
  jQuery("div#ssb_ml a").stop( true, true ).animate({width:defaultAnimateWidth});
86
  });';
87
  endif;
88
-
89
  if($btnsVal=='gp'):
90
  $jscnt.='jQuery("div#ssb_gp a").hover(function(){
91
  jQuery("div#ssb_gp a").animate({width:animateWidth});
@@ -93,7 +101,6 @@ if($btnsVal=='tw'):
93
  jQuery("div#ssb_gp a").stop( true, true ).animate({width:defaultAnimateWidth});
94
  });';
95
  endif;
96
-
97
  if($btnsVal=='li'):
98
  $jscnt.='jQuery("div#ssb_li a").hover(function(){
99
  jQuery("div#ssb_li a").animate({width:animateWidth});
@@ -101,7 +108,6 @@ if($btnsVal=='tw'):
101
  jQuery("div#ssb_li a").stop( true, true ).animate({width:defaultAnimateWidth});
102
  });';
103
  endif;
104
-
105
  if($btnsVal=='pi'):
106
  $jscnt.='jQuery("div#ssb_pin a").hover(function(){
107
  jQuery("div#ssb_pin a").animate({width:animateWidth});
@@ -109,7 +115,6 @@ if($btnsVal=='tw'):
109
  jQuery("div#ssb_pin a").stop( true, true ).animate({width:defaultAnimateWidth});
110
  });';
111
  endif;
112
-
113
  if($btnsVal=='yt'):
114
  $jscnt.='jQuery("div#ssb_yt a").hover(function(){
115
  jQuery("div#ssb_yt a").animate({width:animateWidth});
@@ -124,7 +129,6 @@ if($btnsVal=='tw'):
124
  jQuery("div#ssb_re a").stop( true, true ).animate({width:defaultAnimateWidth});
125
  });';
126
  endif;
127
-
128
  if($btnsVal=='st'):
129
  $jscnt.='jQuery("div#ssb_st a").hover(function(){
130
  jQuery("div#ssb_st a").animate({width:animateWidth});
@@ -132,7 +136,6 @@ if($btnsVal=='tw'):
132
  jQuery("div#ssb_st a").stop( true, true ).animate({width:defaultAnimateWidth});
133
  });';
134
  endif;
135
-
136
  }
137
 
138
  $jscnt.='jQuery("div.ssb_show").hide();
@@ -140,17 +143,15 @@ $jscnt.='jQuery("div.ssb_show").hide();
140
  jQuery("div#social-inner").show(500);
141
  jQuery("div.ssb_show").hide(500);
142
  jQuery("div.ssb_hide").show(500);
143
- csbwfsSetCookie("csbwfs_show_hide_status","active","1");
144
  });
145
-
146
  jQuery("div.ssb_hide a").click(function(){
147
  jQuery("div.ssb_show").show(500);
148
  jQuery("div.ssb_hide").hide(500);
149
  jQuery("div#social-inner").hide(500);
150
- csbwfsSetCookie("csbwfs_show_hide_status","in_active","1");
151
  });';
152
-
153
- $jscnt.='var button_status=csbwfsGetCookie("csbwfs_show_hide_status");
154
  if (button_status =="in_active") {
155
  jQuery("div.ssb_show").show();
156
  jQuery("div.ssb_hide").hide();
@@ -160,14 +161,9 @@ $jscnt.='var button_status=csbwfsGetCookie("csbwfs_show_hide_status");
160
  jQuery("div.ssb_show").hide();
161
  jQuery("div.ssb_hide").show();
162
  }';
163
-
164
-
165
  $jscnt.='});
166
-
167
  </script>';
168
-
169
- echo $jscnt;
170
-
171
  /** Get All buttons Image */
172
  //get facebook button image
173
  $fImg=$this->getSkinUrl('images/socialsharebuttons/fb.png');
@@ -191,99 +187,82 @@ $stImg=$this->getSkinUrl('images/socialsharebuttons/stumbleupon.png');
191
  $ShareTitle='';
192
  if($ssb_ControllerName=='page')
193
  $ShareTitle=Mage::getSingleton('cms/page')->getTitle();
194
-
195
  if($ssb_ControllerName=='category')
196
  $ShareTitle=Mage::registry('current_category')->getName();
197
-
198
  if($ssb_ControllerName=='product')
199
  $ShareTitle=Mage::registry('current_product')->getName();
200
-
201
  /** Get URL */
202
  $shareurl = Mage::helper('core/url')->getCurrentUrl();
203
-
204
  //Sidebar Position
205
  if($sidebarPositionVal=='right'){
206
  $style=' style="top:'.$margin.';right:-5px;"';
207
  $idName=' id="ssb_right"';
208
- $showImg=$this->getSkinUrl('images/socialsharebuttons/hide.png');
209
  $hideImg=$this->getSkinUrl('images/socialsharebuttons/show.png');
210
 
211
- }else if($sidebarPositionVal=='bottom'){
212
- $style=' style="bottom:0;"';
213
- $idName=' id="ssb_bottom"';
214
- $showImg=$this->getSkinUrl('images/socialsharebuttons/hide.png');
215
- $hideImg=$this->getSkinUrl('images/socialsharebuttons/show.png');
216
-
217
- }
218
  else
219
  {
220
  $idName=' id="ssb_left"';
221
  $style=' style="top:'.$margin.';left:0;"';
222
- $showImg=$this->getSkinUrl('images/socialsharebuttons/show.png');
223
  $hideImg=$this->getSkinUrl('images/socialsharebuttons/hide.png');
224
  }
225
-
226
-
227
  $showbtn='Show Buttons';
228
  $hidebtn='Hide Buttons';
229
- $flitingSidebarContent='<div id="delaydiv"><div class="ssb_social-widget" '.$idName.' title="'.$sharemsg.'" '.$style.'>';
230
 
231
  if($sidebarShowHide=='0') :
232
- $flitingSidebarContent .= '<div class="ssb_show"><a href="javascript:" alt="'.$showbtn.'" id="ssb_show"><img src="'.$showImg.'" title="'.$showbtn.'"></a></div>';
233
  endif;
234
 
235
- $flitingSidebarContent .= '<div id="social-inner">';
236
 
237
  foreach($ButtonsAry as $btnsVal)
238
  {
239
  /** FB */
240
  if($btnsVal=='fb'):
241
- $flitingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_fb"><a href="https://www.facebook.com/sharer/sharer.php?u='.$shareurl.'" onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;" target="_blank" alt="Share on Facebook" > <img src="'.$fImg.'"></a></div></div>';
242
  endif;
243
  /** TW */
244
  if($btnsVal=='tw'):
245
- $flitingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_tw"><a href="javascript:" onclick="window.open(\'http://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'\',\'_blank\',\'width=800,height=300\')" alt="Twitter" ><img src="'.$tImg.'"></a></div></div>';
246
  endif;
247
  /** GP */
248
  if($btnsVal=='gp'):
249
- $flitingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_gp"><a href="https://plus.google.com/share?url='.$shareurl.'" onclick="javascript:window.open(this.href,\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" alt="Google Plus" ><img src="'.$gImg.'"></a></div></div>';
250
  endif;
251
  /** LI */
252
  if($btnsVal=='li'):
253
- $flitingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_li"><a href="https://www.linkedin.com/cws/share?mini=true&url='. $shareurl.'" onclick="javascript:window.open(this.href,\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" alt="Google Plus" ><img src="'.$lImg.'"></a></div></div>';
254
  endif;
255
  /** PIN */
256
  if($btnsVal=='pi'):
257
- $flitingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_pin"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&amp;media='.$pinShareImg.'&amp;description='.$ShareTitle.' :'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=800,height=500\');" href="javascript:void(0);" ><img src="'.$pImg.'"></a></div></div>';
258
  endif;
259
  /** YT */
260
  if($btnsVal=='yt'):
261
- $flitingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" ><img src="'.$ytImg.'"></a></div></div>';
262
  endif;
263
  /** Reddit */
264
  if($btnsVal=='re'):
265
- $flitingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_re"><a onclick="window.open(\'http://reddit.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" ><img src="'.$reImg.'"></a></div></div>';
266
  endif;
267
  /** Stumbleupon */
268
  if($btnsVal=='st'):
269
- $flitingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_st"><a onclick="window.open(\'http://www.stumbleupon.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" ><img src="'. $stImg.'"></a></div></div>';
270
  endif;
271
  /** Mail*/
272
  if($btnsVal=='mail'):
273
- $flitingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_ml"><a href="'.$SSB_SIDEBAR_MAIL_URL.'" alt="Email" ><img src="'.$mImg.'"></a></div></div>';
274
  endif;
275
  } // End buttons foreach
276
-
277
- $flitingSidebarContent .='</div>'; //End social-inner
278
-
279
  if($sidebarShowHide=='0') :
280
- $flitingSidebarContent .='<div class="ssb_hide"><a href="javascript:" alt="'.$hidebtn.'" id="ssb_hide"><img src="'.$hideImg.'" title="'.$hidebtn.'"></a></div>';
281
  endif;
282
-
283
- $flitingSidebarContent .='</div></div>'; //End social-inner
284
-
285
- print $flitingSidebarContent;
286
-
287
  endif;
288
  endif;
289
  ?>
1
  <?php
2
  /**
3
+ * MRWEB_SocialShareButtons_IndexController
4
  * get Controller name
5
  */
6
  $ssb_ControllerName=Mage::app()->getRequest()->getControllerName();
9
  */
10
  $ssb_moduleName=Mage::app()->getRequest()->getModuleName();
11
  $ssb_hideOnHome=Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_HIDE_HOME);
12
+ $ssb_hideOnMobile=Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_MOB_DISABLE);
13
+ echo $HideOnMobile=mage::helper('socialsharebuttons')->ssbIsMobile();
14
+
15
+ /** Check condition for buttons to display on mobile or not*/
16
+ if($ssb_hideOnMobile=='1' && $HideOnMobile!='')
17
+ {
18
+ return true;
19
+ exit;
20
+ }
21
  /** check is catalog OR CMS */
22
  $ssb_condAry=array('cms','catalog');
23
  if(in_array($ssb_moduleName,$ssb_condAry)):
 
24
  /** Check condition for buttons to display on home or not*/
25
  if($ssb_hideOnHome=='0' && $ssb_moduleName=='cms' && $ssb_ControllerName=='index')
26
  {
27
  return true;
28
  exit;
29
  }
 
30
  if(Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_STATUS)):
31
  $margin='20%;';$sidebarPosition='left:0;';$sidebarDivid='left';
32
+ $SSB_SIDEBAR_MAIL_URL='#';
33
  $sidebarPositionVal=Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_POSITION);
34
  $sidebarDelayTime=Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_DELAY_TIME);
35
  $sidebarShowHide=Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_SHOW_HIDE);
36
  $topmargin = Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_TOP_MARGIN);
37
  $IsJquery = Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_JQUERY);
38
+ $SSB_SIDEBAR_MAIL_URL = Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_MAIL_URL);$SSB_SIDEBAR_YT_URL = Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Data::SSB_SIDEBAR_YT_URL);
39
+ if($SSB_SIDEBAR_YT_URL=='')
40
+ $SSB_SIDEBAR_YT_URL='#';
41
+
42
+ if($SSB_SIDEBAR_MAIL_URL=='')
43
+ $SSB_SIDEBAR_MAIL_URL='#';
44
 
45
  if($topmargin!='')
46
  $margin =$topmargin ;
64
  defaultAnimateWidth= animateWidth-10;
65
  animateHeight="49";
66
  defaultAnimateHeight= animateHeight-2;';
 
67
  if($sidebarDelayTime!=''):
68
  $jscnt.='jQuery("#delaydiv").hide();
69
  setTimeout(function(){
73
 
74
  foreach($ButtonsAry as $btnsVal)
75
  {
 
76
  if($btnsVal=='tw'):
77
  $jscnt.='jQuery("div#ssb_tw a").hover(function(){
78
  jQuery("div#ssb_tw a").animate({width:animateWidth});
80
  jQuery("div#ssb_tw a").stop( true, true ).animate({width:defaultAnimateWidth});
81
  });';
82
  endif;
 
83
  if($btnsVal=='fb'):
84
  $jscnt.='jQuery("div#ssb_fb a").hover(function(){
85
  jQuery("div#ssb_fb a").animate({width:animateWidth});
87
  jQuery("div#ssb_fb a").stop( true, true ).animate({width:defaultAnimateWidth});
88
  });';
89
  endif;
 
90
  if($btnsVal=='mail'):
91
  $jscnt.='jQuery("div#ssb_ml a").hover(function(){
92
  jQuery("div#ssb_ml a").animate({width:animateWidth});
94
  jQuery("div#ssb_ml a").stop( true, true ).animate({width:defaultAnimateWidth});
95
  });';
96
  endif;
 
97
  if($btnsVal=='gp'):
98
  $jscnt.='jQuery("div#ssb_gp a").hover(function(){
99
  jQuery("div#ssb_gp a").animate({width:animateWidth});
101
  jQuery("div#ssb_gp a").stop( true, true ).animate({width:defaultAnimateWidth});
102
  });';
103
  endif;
 
104
  if($btnsVal=='li'):
105
  $jscnt.='jQuery("div#ssb_li a").hover(function(){
106
  jQuery("div#ssb_li a").animate({width:animateWidth});
108
  jQuery("div#ssb_li a").stop( true, true ).animate({width:defaultAnimateWidth});
109
  });';
110
  endif;
 
111
  if($btnsVal=='pi'):
112
  $jscnt.='jQuery("div#ssb_pin a").hover(function(){
113
  jQuery("div#ssb_pin a").animate({width:animateWidth});
115
  jQuery("div#ssb_pin a").stop( true, true ).animate({width:defaultAnimateWidth});
116
  });';
117
  endif;
 
118
  if($btnsVal=='yt'):
119
  $jscnt.='jQuery("div#ssb_yt a").hover(function(){
120
  jQuery("div#ssb_yt a").animate({width:animateWidth});
129
  jQuery("div#ssb_re a").stop( true, true ).animate({width:defaultAnimateWidth});
130
  });';
131
  endif;
 
132
  if($btnsVal=='st'):
133
  $jscnt.='jQuery("div#ssb_st a").hover(function(){
134
  jQuery("div#ssb_st a").animate({width:animateWidth});
136
  jQuery("div#ssb_st a").stop( true, true ).animate({width:defaultAnimateWidth});
137
  });';
138
  endif;
 
139
  }
140
 
141
  $jscnt.='jQuery("div.ssb_show").hide();
143
  jQuery("div#social-inner").show(500);
144
  jQuery("div.ssb_show").hide(500);
145
  jQuery("div.ssb_hide").show(500);
146
+ ssbwfsSetCookie("ssbwfs_show_hide_status","active","1");
147
  });
 
148
  jQuery("div.ssb_hide a").click(function(){
149
  jQuery("div.ssb_show").show(500);
150
  jQuery("div.ssb_hide").hide(500);
151
  jQuery("div#social-inner").hide(500);
152
+ ssbwfsSetCookie("ssbwfs_show_hide_status","in_active","1");
153
  });';
154
+ $jscnt.='var button_status=ssbwfsGetCookie("ssbwfs_show_hide_status");
 
155
  if (button_status =="in_active") {
156
  jQuery("div.ssb_show").show();
157
  jQuery("div.ssb_hide").hide();
161
  jQuery("div.ssb_show").hide();
162
  jQuery("div.ssb_hide").show();
163
  }';
 
 
164
  $jscnt.='});
 
165
  </script>';
166
+ print $jscnt;
 
 
167
  /** Get All buttons Image */
168
  //get facebook button image
169
  $fImg=$this->getSkinUrl('images/socialsharebuttons/fb.png');
187
  $ShareTitle='';
188
  if($ssb_ControllerName=='page')
189
  $ShareTitle=Mage::getSingleton('cms/page')->getTitle();
 
190
  if($ssb_ControllerName=='category')
191
  $ShareTitle=Mage::registry('current_category')->getName();
 
192
  if($ssb_ControllerName=='product')
193
  $ShareTitle=Mage::registry('current_product')->getName();
 
194
  /** Get URL */
195
  $shareurl = Mage::helper('core/url')->getCurrentUrl();
 
196
  //Sidebar Position
197
  if($sidebarPositionVal=='right'){
198
  $style=' style="top:'.$margin.';right:-5px;"';
199
  $idName=' id="ssb_right"';
200
+ $showImg=$this->getSkinUrl('images/socialsharebuttons/hide-r.png');
201
  $hideImg=$this->getSkinUrl('images/socialsharebuttons/show.png');
202
 
203
+ }
 
 
 
 
 
 
204
  else
205
  {
206
  $idName=' id="ssb_left"';
207
  $style=' style="top:'.$margin.';left:0;"';
208
+ $showImg=$this->getSkinUrl('images/socialsharebuttons/show-l.png');
209
  $hideImg=$this->getSkinUrl('images/socialsharebuttons/hide.png');
210
  }
 
 
211
  $showbtn='Show Buttons';
212
  $hidebtn='Hide Buttons';
213
+ $floatingSidebarContent='<div id="delaydiv"><div class="ssb_social-widget" '.$idName.' title="'.$sharemsg.'" '.$style.'>';
214
 
215
  if($sidebarShowHide=='0') :
216
+ $floatingSidebarContent .= '<div class="ssb_show"><a href="javascript:" alt="'.$showbtn.'" id="ssb_show"><img src="'.$showImg.'" title="'.$showbtn.'"></a></div>';
217
  endif;
218
 
219
+ $floatingSidebarContent .= '<div id="social-inner">';
220
 
221
  foreach($ButtonsAry as $btnsVal)
222
  {
223
  /** FB */
224
  if($btnsVal=='fb'):
225
+ $floatingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_fb"><a href="https://www.facebook.com/sharer/sharer.php?u='.$shareurl.'" onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;" target="_blank" alt="Share on Facebook" > <img src="'.$fImg.'" alt="Share on Facebook"></a></div></div>';
226
  endif;
227
  /** TW */
228
  if($btnsVal=='tw'):
229
+ $floatingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_tw"><a href="javascript:" onclick="window.open(\'http://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'\',\'_blank\',\'width=800,height=300\')" alt="Twitter" ><img src="'.$tImg.'" alt="Share on Twitter"></a></div></div>';
230
  endif;
231
  /** GP */
232
  if($btnsVal=='gp'):
233
+ $floatingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_gp"><a href="https://plus.google.com/share?url='.$shareurl.'" onclick="javascript:window.open(this.href,\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" alt="Google Plus" ><img src="'.$gImg.'" alt="Share on Google Plus"></a></div></div>';
234
  endif;
235
  /** LI */
236
  if($btnsVal=='li'):
237
+ $floatingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_li"><a href="https://www.linkedin.com/cws/share?mini=true&url='. $shareurl.'" onclick="javascript:window.open(this.href,\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" alt="Google Plus" ><img src="'.$lImg.'" alt="Share on Linkdin"></a></div></div>';
238
  endif;
239
  /** PIN */
240
  if($btnsVal=='pi'):
241
+ $floatingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_pin"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&amp;media='.$pinShareImg.'&amp;description='.$ShareTitle.' :'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=800,height=500\');" href="javascript:void(0);" ><img src="'.$pImg.'" alt="Share on Pinterest"></a></div></div>';
242
  endif;
243
  /** YT */
244
  if($btnsVal=='yt'):
245
+ $floatingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_yt"><a href="'.$SSB_SIDEBAR_YT_URL.'" ><img src="'.$ytImg.'" alt="Share on Youtube"></a></div></div>';
246
  endif;
247
  /** Reddit */
248
  if($btnsVal=='re'):
249
+ $floatingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_re"><a onclick="window.open(\'http://reddit.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" ><img src="'.$reImg.'" alt="Share on Reddit"></a></div></div>';
250
  endif;
251
  /** Stumbleupon */
252
  if($btnsVal=='st'):
253
+ $floatingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_st"><a onclick="window.open(\'http://www.stumbleupon.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" ><img src="'. $stImg.'" alt="Share on Stumbleupon"></a></div></div>';
254
  endif;
255
  /** Mail*/
256
  if($btnsVal=='mail'):
257
+ $floatingSidebarContent .='<div class="ssb_sbutton"><div id="ssb_ml"><a href="'.$SSB_SIDEBAR_MAIL_URL.'" alt="Email" ><img src="'.$mImg.'" alt="Share on Mail"></a></div></div>';
258
  endif;
259
  } // End buttons foreach
260
+ $floatingSidebarContent .='</div>'; //End social-inner
 
 
261
  if($sidebarShowHide=='0') :
262
+ $floatingSidebarContent .='<div class="ssb_hide"><a href="javascript:" alt="'.$hidebtn.'" id="ssb_hide"><img src="'.$hideImg.'" title="'.$hidebtn.'"></a></div>';
263
  endif;
264
+ $floatingSidebarContent .='</div></div>'; //End social-inner
265
+ print $floatingSidebarContent;
 
 
 
266
  endif;
267
  endif;
268
  ?>
package.xml CHANGED
@@ -1,19 +1,42 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MRWEB_SocialShareButtons</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GNU General Public License ( GPL )</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Add Social Share Buttons Using Floating Sidebar On Your Site(Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit)</summary>
10
- <description>sociasharebuttons is the very simple plugin for share your site with your friends through social sites (Facebook,Twitter,Linkedin,Pinterest,Google+,Stumbleupon,Reddit).You can add a floating sidebar with all social buttons.&#xD;
11
- There are not added any external JS files in this plugin so it's does not effect on your site speed as well.</description>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  <notes>First Release</notes>
13
  <authors><author><name>Raghunath</name><user>Raghunath</user><email>raghunath.0087@gmail.com</email></author></authors>
14
- <date>2015-05-21</date>
15
- <time>12:59:37</time>
16
- <contents><target name="magecommunity"><dir name="MRWEB"><dir name="SocialShareButtons"><dir name="Block"><file name="About.php" hash="0643ae6ec9b9cecb6b6683b9672081ef"/><file name="Index.php" hash="1a79281d028154a136801f0f0201a917"/></dir><dir name="Helper"><file name="Data.php" hash="fc7cafdaca92c2616dfcc7a845450f38"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Buttons.php" hash="0268216e974e779458d00ec4eae77017"/><file name="Position.php" hash="02ee831ffabe79d89820897002c52fac"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="d7f66647162a1164187e960b59477ac3"/></dir><dir name="etc"><file name="adminhtml.xml" hash="9714da7f9835fc1446526612f91c1232"/><file name="config.xml" hash="bcc20e60437a815b84ccad900b5c4280"/><file name="system.xml" hash="2358e26a435cb6a1a718b64d792f1ae7"/></dir></dir></dir><dir><dir name="MRWEB"><dir name="SocialShareButtons"><dir name="Block"><file name="About.php" hash="0643ae6ec9b9cecb6b6683b9672081ef"/><file name="Index.php" hash="1a79281d028154a136801f0f0201a917"/></dir><dir name="Helper"><file name="Data.php" hash="fc7cafdaca92c2616dfcc7a845450f38"/></dir><dir name="controllers"><file name="IndexController.php" hash="d7f66647162a1164187e960b59477ac3"/></dir><dir name="etc"><file name="adminhtml.xml" hash="9714da7f9835fc1446526612f91c1232"/><file name="system.xml" hash="2358e26a435cb6a1a718b64d792f1ae7"/><file name="config.xml" hash="bcc20e60437a815b84ccad900b5c4280"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Buttons.php" hash="0268216e974e779458d00ec4eae77017"/><file name="Position.php" hash="02ee831ffabe79d89820897002c52fac"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="MRWEB_SocialShareButtons.xml" hash="a2cbc651155dfbe573dddfb77c27cfda"/></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="socialsharebuttons"><file name="socialsharebuttons.phtml" hash="309e7540a7291e78762e2f7eaaa0ca83"/></dir></dir><dir name="layout"><file name="socialsharebuttons.xml" hash="290eb4a17089dbaf6010b6f1edc1ced2"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="socialsharebuttons"><file name="socialsharebuttons.css" hash="f0650da45457c47665ac26a0b28142a6"/></dir></dir><dir name="js"><dir name="socialsharebuttons"><file name="jquery-2.1.3.js" hash="cf26f8f0ccb06be71e92d8db0fb64ab5"/></dir></dir><dir name="images"><file name="fb.png" hash=""/><file name="tw.png" hash=""/><file name="youtube.png" hash=""/><file name="gp.png" hash=""/><file name="in.png" hash=""/><file name="ml.png" hash=""/><file name="pinit.png" hash=""/><file name="reddit.png" hash=""/><file name="stumbleupon.png" hash=""/><file name="show.png" hash=""/><file name="hide.png" hash=""/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
- <dependencies><required><php><min>5.2.0</min><max>5.6.7</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MRWEB_SocialShareButtons</name>
4
+ <version>1.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GNU General Public License ( GPL )</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Add Social Share Buttons Using Floating Sidebar.</summary>
10
+ <description>&lt;b&gt;Social Share Button&lt;/b&gt; is extension for social networks. It is very simple extension for share your site with your friends through social sites,The plugin supports 9 social networking.&#xD;
11
+ &#xD;
12
+ Your users share via their accounts on popular social networks such as Facebook, Twitter, Youtube, Linkedin, Pinterest, Google+, Stumbleupon, Reddit and Email with this extenstion, you give users the tools to share your content, product details and other information with their own networks.&#xD;
13
+ &#xD;
14
+ More than 22 billion shares are viewed each and every day on the internet, with sharing becoming an increasingly important part of every website owner&#x2019;s marketing strategies.&#xD;
15
+ &#xD;
16
+ Let your users share via their accounts on popular social networks. Install this free extension to enable Social Sharing on your Magento site and start driving high quality referrals to your website.&#xD;
17
+ &#xD;
18
+ It is lightweight extension. There are not added any external JS files in this plugin so it&#x2019;s does not effect on your site speed as well.&#xD;
19
+ &#xD;
20
+ &lt;b&gt;Features&lt;/b&gt;&#xD;
21
+ &#xD;
22
+ &lt;ol&gt;&lt;li&gt;Floating Sidebar&lt;/li&gt;&lt;li&gt;Show/Hide options for any buttons&lt;/li&gt;&lt;li&gt;Options for set the position of Floating Sidebar (Left/Right)&lt;/li&gt;&lt;li&gt;Option for disable/enable sidebar on home page&lt;/li&gt;&lt;/ol&gt;&#xD;
23
+ &lt;p&gt;&lt;a href="http://ssbwfs.mrwebsolution.in/index.php/pro"&gt;Go Pro&lt;/a&gt;&lt;/p&gt;&#xD;
24
+ &lt;b&gt;Pro Features&lt;/b&gt;&#xD;
25
+ &lt;ol&gt;&#xD;
26
+ &lt;li&gt;Responsive Floating Sidebar&lt;/li&gt;&#xD;
27
+ &lt;li&gt;Options for set the position of Floating Sidebar (Left/Right/Bottom)&lt;/li&gt;&#xD;
28
+ &lt;li&gt;Advance Feature For Choose To Pinterest Share Image&lt;/li&gt;&#xD;
29
+ &lt;li&gt;Extra Button (Google Translate Button , Instagram Button, Whatsapp Button)&lt;/li&gt;&#xD;
30
+ &lt;li&gt;Option for display to number of share (Twitter,Facebook,LinkedIn,StumbleUpon,Google Plus,Pinterest and Reddit)&lt;/li&gt;&#xD;
31
+ &lt;li&gt;Faster support&lt;/li&gt;&#xD;
32
+ &lt;/ol&gt;&#xD;
33
+ &lt;p&gt;&lt;a href="http://ssbwfs.mrwebsolution.in/index.php/pro"&gt;Pro Demo&lt;/a&gt;&lt;/p&gt;&#xD;
34
+ &#xD;
35
+ &lt;p&gt;&lt;a href="http://ssbwfs.mrwebsolution.in/index.php/pro"&gt;Go Pro&lt;/a&gt;&lt;/p&gt;</description>
36
  <notes>First Release</notes>
37
  <authors><author><name>Raghunath</name><user>Raghunath</user><email>raghunath.0087@gmail.com</email></author></authors>
38
+ <date>2015-06-09</date>
39
+ <time>15:05:47</time>
40
+ <contents><target name="magecommunity"><dir><dir name="MRWEB"><dir name="SocialShareButtons"><dir name="Block"><file name="Index.php" hash="fa06f0fee02c0d62c97be315b17dedd3"/></dir><dir name="controllers"><file name="IndexController.php" hash="7ee9b6a3d09be9931c2caf588b549764"/></dir><dir name="etc"><file name="adminhtml.xml" hash="9714da7f9835fc1446526612f91c1232"/><file name="system.xml" hash="5c2954c7d5d8c7480bc4155674a4477a"/><file name="config.xml" hash="8d68e0878eaa341c4a1d6b7f092bfb11"/></dir><dir name="Helper"><file name="Data.php" hash="651ac7ff1bbbd7154147663199490243"/></dir><dir name="Model"><dir name="System"><dir name="Config"><file name="Buttons.php" hash="487079b8fbfff994d64fd171a8a14e0c"/><file name="Position.php" hash="0bd93fd579b416b3ba951560fa9244cc"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="socialsharebuttons"><file name="socialsharebuttons.phtml" hash="e5d479f553bc432a4d466a48a6c645a3"/></dir></dir><dir name="layout"><file name="socialsharebuttons.xml" hash="18b0d478d333b74518a67a739f390516"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="MRWEB_SocialShareButtons.xml" hash="a2cbc651155dfbe573dddfb77c27cfda"/></dir></dir></target><target name="mageskin"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="socialsharebuttons"><file name="socialsharebuttons.css" hash="f0650da45457c47665ac26a0b28142a6"/></dir></dir><dir name="js"><dir name="socialsharebuttons"><file name="jquery-2.1.3.js" hash="cf26f8f0ccb06be71e92d8db0fb64ab5"/><file name="ssb-custom.js" hash="8674a3afb2b5e7d081fddad6cfdd3d09"/></dir></dir><dir name="images"><dir name="socialsharebuttons"><file name="fb.png" hash="a117e4a3cc88705699b7d0051fe8011e"/><file name="gp.png" hash="986a250e56396f1c2e1453a4b2a2ffff"/><file name="in.png" hash="646f30f3b86c1e83151edcd2a029c39c"/><file name="ml.png" hash="d5facfe4ab5ee2ec19a9e820b390c719"/><file name="pinit.png" hash="26f4250575b324cde9fc7e89b5f3ee03"/><file name="reddit.png" hash="fdc962feee17c322abb31ada2c28a005"/><file name="stumbleupon.png" hash="333d188bb11c0f9f7b61bd63713aacb7"/><file name="tw.png" hash="7ef81d4aa45a6cfa0e775d68b974188e"/><file name="youtube.png" hash="8082960ef4ebcee881066458655c2ad1"/><file name="hide.png" hash="e8d0dabc3404158e623e63b99117f918"/><file name="hide-r.png" hash="2a602a4ab0f65943429e2b37bdc712c7"/><file name="mrweb-logo.jpg" hash="a7bd6dbe5da658b93a2aeb7ce862e376"/><file name="raghu.jpg" hash="81098e492cce9afd3b07b96dc3a74a95"/><file name="show.png" hash="f1398c749178913820d7a3f95143c4c1"/><file name="show-l.png" hash="d0e15acdc5d01880a1f1003d2abf4190"/></dir></dir></dir></dir></dir></dir></target></contents>
41
  <compatible/>
 
42
  </package>
skin/frontend/{default → base}/default/css/socialsharebuttons/socialsharebuttons.css RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/fb.png RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/gp.png RENAMED
File without changes
skin/frontend/base/default/images/socialsharebuttons/hide-r.png ADDED
Binary file
skin/frontend/{default → base}/default/images/socialsharebuttons/hide.png RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/in.png RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/ml.png RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/mrweb-logo.jpg RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/pinit.png RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/raghu.jpg RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/reddit.png RENAMED
File without changes
skin/frontend/base/default/images/socialsharebuttons/show-l.png ADDED
Binary file
skin/frontend/{default → base}/default/images/socialsharebuttons/show.png RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/stumbleupon.png RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/tw.png RENAMED
File without changes
skin/frontend/{default → base}/default/images/socialsharebuttons/youtube.png RENAMED
File without changes
skin/frontend/{default → base}/default/js/socialsharebuttons/jquery-2.1.3.js RENAMED
File without changes
skin/frontend/base/default/js/socialsharebuttons/ssb-custom.js ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ssbwfsCheckCookie();
2
+ function ssbwfsSetCookie(cname,cvalue,exdays) {
3
+ var d = new Date();
4
+ d.setTime(d.getTime() + (exdays*24*60*60*1000));
5
+ var expires = "expires=" + d.toGMTString();
6
+ document.cookie = cname+"="+cvalue+"; "+expires+"; path:/";
7
+ }
8
+
9
+ function ssbwfsGetCookie(cname) {
10
+ var name = cname + "=";
11
+ var ca = document.cookie.split(';');
12
+ for(var i=0; i<ca.length; i++) {
13
+ var c = ca[i];
14
+ while (c.charAt(0)==' ') c = c.substring(1);
15
+ if (c.indexOf(name) != -1) {
16
+ return c.substring(name.length, c.length);
17
+ }
18
+ }
19
+ return "";
20
+ }
21
+
22
+ function ssbwfsCheckCookie() {
23
+ var button_status=ssbwfsGetCookie("ssbwfs_show_hide_status");
24
+ if (button_status != "") {
25
+
26
+ } else {
27
+ ssbwfsSetCookie("ssbwfs_show_hide_status", "active",1);
28
+ }
29
+ }
skin/frontend/default/default/images/socialsharebuttons/fb-p.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/gp-p.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/in-p.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/ml-p.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/overlay.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/pinit-p.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/reddit-p.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/sharethis-l.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/sharethis-r.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/sharethis.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/sharethis_old.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/stumbleupon-p.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/tw-p.png DELETED
Binary file
skin/frontend/default/default/images/socialsharebuttons/youtube-p.png DELETED
Binary file