MRWEB_SocialShareButtons - Version 1.1.2

Version Notes

Released New version 1.1.2

Download this release

Release Info

Developer Raghunath
Extension MRWEB_SocialShareButtons
Version 1.1.2
Comparing to
See all releases


Code changes from version 1.1.1 to 1.1.2

app/code/community/MRWEB/SocialShareButtons/etc/system.xml CHANGED
@@ -53,7 +53,7 @@
53
  <show_in_website>1</show_in_website>
54
  <show_in_store>1</show_in_store>
55
  </ssb_home_disable>
56
- <ssb_cms_disable translate="label socialsharebuttons">
57
  <label>Show On CMS Pages</label>
58
  <comment>disable social share buttons on cms pages</comment>
59
  <frontend_type>select</frontend_type>
@@ -62,7 +62,7 @@
62
  <show_in_default>1</show_in_default>
63
  <show_in_website>1</show_in_website>
64
  <show_in_store>1</show_in_store>
65
- </ssb_cms_disable>
66
  <ssb_delay_time translate="label socialsharebuttons">
67
  <label>Delay Time</label>
68
  <comment>define delay time for publish buttons</comment>
@@ -114,7 +114,7 @@
114
  <show_in_store>0</show_in_store>
115
  </ssb_num_share_buttons>
116
  <ssb_jquery_yesno translate="label">
117
- <label>Exclude Jquery</label>
118
  <frontend_type>select</frontend_type>
119
  <source_model>adminhtml/system_config_source_Yesno</source_model>
120
  <sort_order>10</sort_order>
53
  <show_in_website>1</show_in_website>
54
  <show_in_store>1</show_in_store>
55
  </ssb_home_disable>
56
+ <!--<ssb_cms_disable translate="label socialsharebuttons">
57
  <label>Show On CMS Pages</label>
58
  <comment>disable social share buttons on cms pages</comment>
59
  <frontend_type>select</frontend_type>
62
  <show_in_default>1</show_in_default>
63
  <show_in_website>1</show_in_website>
64
  <show_in_store>1</show_in_store>
65
+ </ssb_cms_disable>-->
66
  <ssb_delay_time translate="label socialsharebuttons">
67
  <label>Delay Time</label>
68
  <comment>define delay time for publish buttons</comment>
114
  <show_in_store>0</show_in_store>
115
  </ssb_num_share_buttons>
116
  <ssb_jquery_yesno translate="label">
117
+ <label>Load jQuery</label>
118
  <frontend_type>select</frontend_type>
119
  <source_model>adminhtml/system_config_source_Yesno</source_model>
120
  <sort_order>10</sort_order>
app/design/frontend/base/default/template/socialsharebuttons/socialsharebuttons.phtml CHANGED
@@ -10,7 +10,7 @@ $ssb_ControllerName=Mage::app()->getRequest()->getControllerName();
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!='')
@@ -49,7 +49,7 @@ $ButtonsAry= explode(',',Mage::getStoreConfig(MRWEB_SocialShareButtons_Helper_Da
49
 
50
  $jscnt='';
51
 
52
- if(!$IsJquery):
53
  $jscnt.=' <script src="'.$this->getSkinUrl('js/socialsharebuttons/jquery-2.1.3.js').'"></script>';
54
  endif;
55
 
@@ -140,15 +140,15 @@ if($btnsVal=='tw'):
140
 
141
  $jscnt.='jQuery("div.ssb_show").hide();
142
  jQuery("div.ssb_show a").click(function(){
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");
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
+ $HideOnMobile=mage::helper('socialsharebuttons')->ssbIsMobile();
14
 
15
  /** Check condition for buttons to display on mobile or not*/
16
  if($ssb_hideOnMobile=='1' && $HideOnMobile!='')
49
 
50
  $jscnt='';
51
 
52
+ if($IsJquery):
53
  $jscnt.=' <script src="'.$this->getSkinUrl('js/socialsharebuttons/jquery-2.1.3.js').'"></script>';
54
  endif;
55
 
140
 
141
  $jscnt.='jQuery("div.ssb_show").hide();
142
  jQuery("div.ssb_show a").click(function(){
143
+ jQuery("div#social-inner").show();
144
+ jQuery("div.ssb_show").hide();
145
+ jQuery("div.ssb_hide").show();
146
  ssbwfsSetCookie("ssbwfs_show_hide_status","active","1");
147
  });
148
  jQuery("div.ssb_hide a").click(function(){
149
+ jQuery("div.ssb_show").show();
150
+ jQuery("div.ssb_hide").hide();
151
+ jQuery("div#social-inner").hide();
152
  ssbwfsSetCookie("ssbwfs_show_hide_status","in_active","1");
153
  });';
154
  $jscnt.='var button_status=ssbwfsGetCookie("ssbwfs_show_hide_status");
package.xml CHANGED
@@ -1,7 +1,7 @@
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>
@@ -33,10 +33,10 @@ It is lightweight extension. There are not added any external JS files in this p
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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MRWEB_SocialShareButtons</name>
4
+ <version>1.1.2</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>
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>Released New version 1.1.2</notes>
37
  <authors><author><name>Raghunath</name><user>Raghunath</user><email>raghunath.0087@gmail.com</email></author></authors>
38
+ <date>2015-11-23</date>
39
+ <time>13: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/base/default/css/socialsharebuttons/socialsharebuttons.css CHANGED
@@ -19,7 +19,7 @@
19
  /* Right Position */
20
  #ssb_right #ssb_re,#ssb_right #ssb_st,#ssb_right #ssb_yt,#ssb_right #ssb_ml,#ssb_right #ssb_pin,#ssb_right #ssb_gp,#ssb_right #ssb_tw,#ssb_right #ssb_fb,#ssb_right #ssb_li a {position: absolute; right: 0;}
21
  #ssb_right a#ssb_hide {padding-right:33px;}
22
- #ssb_right a#ssb_show {float:right;}
23
  /* Bottom Position */
24
  #ssb_bottom #re a, #ssb_bottom #st a ,#ssb_bottom #yt a , #ssb_bottom #ml a,#ssb_bottom #pin a,#ssb_bottom #gp a ,#ssb_bottom #tw a,#ssb_bottom #fb a ,#ssb_bottom #fb a {
25
  bottom: 0; height: 45px;
19
  /* Right Position */
20
  #ssb_right #ssb_re,#ssb_right #ssb_st,#ssb_right #ssb_yt,#ssb_right #ssb_ml,#ssb_right #ssb_pin,#ssb_right #ssb_gp,#ssb_right #ssb_tw,#ssb_right #ssb_fb,#ssb_right #ssb_li a {position: absolute; right: 0;}
21
  #ssb_right a#ssb_hide {padding-right:33px;}
22
+ #ssb_right a#ssb_show {float:right;}#ssb_left .ssb_show {float:left;}
23
  /* Bottom Position */
24
  #ssb_bottom #re a, #ssb_bottom #st a ,#ssb_bottom #yt a , #ssb_bottom #ml a,#ssb_bottom #pin a,#ssb_bottom #gp a ,#ssb_bottom #tw a,#ssb_bottom #fb a ,#ssb_bottom #fb a {
25
  bottom: 0; height: 45px;