BeeShopy_BeeSocial - Version 0.9.0

Version Notes

Adding configuration dialog.

Download this release

Release Info

Developer Magento Core Team
Extension BeeShopy_BeeSocial
Version 0.9.0
Comparing to
See all releases


Code changes from version 0.7.5 to 0.9.0

app/code/community/BeeShopy/BeeSocial/Block/Iframe.php CHANGED
@@ -12,12 +12,21 @@ class BeeShopy_BeeSocial_Block_Iframe
12
  if($product){
13
 
14
  $html = "
15
- <div id='beesocial' class='product-view' style='text-align:center;padding-top:10px;'data-domain='".$domain."' data-product-id='".$product->getId()."' data-url='".$url."'></div>
16
- <script type='text/javascript' src='//www.beetailer.com/javascripts/beetailer.js'></script>
17
-
18
- <style>#beesocial iframe{width:560px;}</style>
19
-
20
- ";
 
 
 
 
 
 
 
 
 
21
  return $html;
22
  }
23
  }
12
  if($product){
13
 
14
  $html = "
15
+ <div id='beesocial' class='product-view' style='text-align:center;'".
16
+ " data-domain='".$domain.
17
+ "' data-product-id='".$product->getId().
18
+ "' data-url='".$url.
19
+ "' data-fb-comment-style='".Mage::getStoreConfig('beesocial_options/general/color').
20
+ "' data-css-style='".Mage::getStoreConfig('beesocial_options/general/style').
21
+ "' data-disable-like='".Mage::getStoreConfig('beesocial_options/general/disable_fb_like').
22
+ "' data-disable-twitter='".Mage::getStoreConfig('beesocial_options/general/disable_twitter').
23
+ "' data-disable-comment='".Mage::getStoreConfig('beesocial_options/general/disable_comments').
24
+ "' data-disable-plusone='".Mage::getStoreConfig('beesocial_options/general/disable_plusone').
25
+ "' data-fb-comment-num-post='".Mage::getStoreConfig('beesocial_options/fb_comments/number').
26
+ "' data-comment-width='".Mage::getStoreConfig('beesocial_options/fb_comments/width').
27
+ "' data-twitter-text='".Mage::getStoreConfig('beesocial_options/twitter/text').
28
+ "' ></div> <script type='text/javascript' src='http://beeshopy.local:3000/javascripts/beetailer.js'></script>
29
+ <style>#beesocial iframe{width:".(Mage::getStoreConfig('beesocial_options/fb_comments/width') + 10)."px;}</style>";
30
  return $html;
31
  }
32
  }
app/code/community/BeeShopy/BeeSocial/{helper → Helper}/Data.php RENAMED
@@ -1,7 +1,4 @@
1
  <?php
2
- /**
3
- * BeeShopy / BeeSocial helper
4
- */
5
  class BeeShopy_BeeSocial_Helper_Data extends Mage_Core_Helper_Abstract
6
  {
7
  }
1
  <?php
 
 
 
2
  class BeeShopy_BeeSocial_Helper_Data extends Mage_Core_Helper_Abstract
3
  {
4
  }
app/code/community/BeeShopy/BeeSocial/Model/Themes.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class BeeShopy_BeeSocial_Model_Themes
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>"light", 'label'=> "Light"),
8
+ array('value'=> "black", 'label'=> "Black")
9
+ );
10
+ }
11
+ }
12
+
app/code/community/BeeShopy/BeeSocial/etc/.system.xml.swp ADDED
Binary file
app/code/community/BeeShopy/BeeSocial/etc/config.xml CHANGED
@@ -12,10 +12,54 @@
12
  </beesocial>
13
  </helpers>
14
  <blocks>
15
- <beesocial>
16
- <class>BeeShopy_BeeSocial_Block</class>
17
- </beesocial>
18
  </blocks>
 
 
 
 
 
19
  </global>
20
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  </config>
12
  </beesocial>
13
  </helpers>
14
  <blocks>
15
+ <beesocial>
16
+ <class>BeeShopy_BeeSocial_Block</class>
17
+ </beesocial>
18
  </blocks>
19
+ <models>
20
+ <beesocial>
21
+ <class>BeeShopy_BeeSocial_Model</class>
22
+ </beesocial>
23
+ </models>
24
  </global>
25
+ <adminhtml>
26
+ <acl>
27
+ <resources>
28
+ <admin>
29
+ <children>
30
+ <system>
31
+ <children>
32
+ <config>
33
+ <children>
34
+ <beesocial_options>
35
+ <title>Beetailer social widget configuration section</title>
36
+ </beesocial_options>
37
+ </children>
38
+ </config>
39
+ </children>
40
+ </system>
41
+ </children>
42
+ </admin>
43
+ </resources>
44
+ </acl>
45
+ </adminhtml>
46
+ <default>
47
+ <beesocial_options>
48
+ <general translate="general" module="beesocial">
49
+ <color>light</color>
50
+ <style>padding-top: 20px;</style>
51
+ <disable_fb_like>0</disable_fb_like>
52
+ <disable_twitter>0</disable_twitter>
53
+ <disable_comments>0</disable_comments>
54
+ <disable_plusone>0</disable_plusone>
55
+ </general>
56
+ <fb_comments translate="Facebook comments" module="beesocial">
57
+ <width>525</width>
58
+ <number>10</number>
59
+ </fb_comments>
60
+ <twitter translate="Facebook comments" module="beesocial">
61
+ <text>Check it out!</text>
62
+ </twitter>
63
+ </beesocial_options>
64
+ </default>
65
  </config>
app/code/community/BeeShopy/BeeSocial/etc/system.xml ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <config>
2
+ <!-- <tabs> -->
3
+ <!-- <beesocial_config translate="label" module="beesocial"> -->
4
+ <!-- <label>Beetailer</label> -->
5
+ <!-- <sort_order>99999</sort_order> -->
6
+ <!-- </beesocial_config> -->
7
+ <!-- </tabs> -->
8
+ <sections>
9
+ <beesocial_options translate="label" module="beesocial">
10
+ <label>Social Widget preferences</label>
11
+ <tab>general</tab>
12
+ <sort_order>10000</sort_order>
13
+ <show_in_default>1</show_in_default>
14
+ <show_in_website>1</show_in_website>
15
+ <show_in_store>1</show_in_store>
16
+ <groups>
17
+ <general translate="label">
18
+ <label>General configuration</label>
19
+ <sort_order>1</sort_order>
20
+ <show_in_default>1</show_in_default>
21
+ <show_in_website>1</show_in_website>
22
+ <show_in_store>1</show_in_store>
23
+ <fields>
24
+ <color>
25
+ <label>Color Schema</label>
26
+ <frontend_type>radios</frontend_type>
27
+ <source_model>beesocial/themes</source_model>
28
+ <sort_order>1</sort_order>
29
+ <show_in_default>1</show_in_default>
30
+ <show_in_website>1</show_in_website>
31
+ <show_in_store>1</show_in_store>
32
+ </color>
33
+ <style>
34
+ <label>Basic Style</label>
35
+ <sort_order>2</sort_order>
36
+ <show_in_default>1</show_in_default>
37
+ <show_in_website>1</show_in_website>
38
+ <show_in_store>1</show_in_store>
39
+ </style>
40
+ <disable_fb_like>
41
+ <label>Disable Facebook like widget</label>
42
+ <frontend_type>select</frontend_type>
43
+ <source_model>adminhtml/system_config_source_yesno</source_model>
44
+ <sort_order>3</sort_order>
45
+ <show_in_default>1</show_in_default>
46
+ <show_in_website>1</show_in_website>
47
+ <show_in_store>1</show_in_store>
48
+ </disable_fb_like>
49
+ <disable_twitter>
50
+ <label>Disable Twitter widget</label>
51
+ <frontend_type>select</frontend_type>
52
+ <source_model>adminhtml/system_config_source_yesno</source_model>
53
+ <sort_order>4</sort_order>
54
+ <show_in_default>1</show_in_default>
55
+ <show_in_website>1</show_in_website>
56
+ <show_in_store>1</show_in_store>
57
+ </disable_twitter>
58
+ <disable_comments>
59
+ <label>Disable Facebook coments</label>
60
+ <frontend_type>select</frontend_type>
61
+ <source_model>adminhtml/system_config_source_yesno</source_model>
62
+ <sort_order>5</sort_order>
63
+ <show_in_default>1</show_in_default>
64
+ <show_in_website>1</show_in_website>
65
+ <show_in_store>1</show_in_store>
66
+ </disable_comments>
67
+ <disable_plusone>
68
+ <label>Disable +1 button</label>
69
+ <frontend_type>select</frontend_type>
70
+ <source_model>adminhtml/system_config_source_yesno</source_model>
71
+ <sort_order>6</sort_order>
72
+ <show_in_default>1</show_in_default>
73
+ <show_in_website>1</show_in_website>
74
+ <show_in_store>1</show_in_store>
75
+ </disable_plusone>
76
+ </fields>
77
+ </general>
78
+ <fb_comments translate="label">
79
+ <label>Facebook comments</label>
80
+ <sort_order>2</sort_order>
81
+ <show_in_default>1</show_in_default>
82
+ <show_in_website>1</show_in_website>
83
+ <show_in_store>1</show_in_store>
84
+ <fields>
85
+ <width>
86
+ <label>Width</label>
87
+ <comment>Width in pixels</comment>
88
+ <sort_order>1</sort_order>
89
+ <show_in_default>1</show_in_default>
90
+ <show_in_website>1</show_in_website>
91
+ <show_in_store>1</show_in_store>
92
+ </width>
93
+ <number>
94
+ <label>Comments number</label>
95
+ <sort_order>2</sort_order>
96
+ <show_in_default>1</show_in_default>
97
+ <show_in_website>1</show_in_website>
98
+ <show_in_store>1</show_in_store>
99
+ </number>
100
+ </fields>
101
+ </fb_comments>
102
+ <twitter translate="label">
103
+ <label>Twitter</label>
104
+ <sort_order>3</sort_order>
105
+ <show_in_default>1</show_in_default>
106
+ <show_in_website>1</show_in_website>
107
+ <show_in_store>1</show_in_store>
108
+ <fields>
109
+ <text>
110
+ <label>Text in the tweet</label>
111
+ <sort_order>1</sort_order>
112
+ <show_in_default>1</show_in_default>
113
+ <show_in_website>1</show_in_website>
114
+ <show_in_store>1</show_in_store>
115
+ </text>
116
+ </fields>
117
+ </twitter>
118
+ </groups>
119
+ </beesocial_options>
120
+ </sections>
121
+ </config>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>BeeShopy_BeeSocial</name>
4
- <version>0.7.5</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>FB:Comments, FB:Like and Twitter Badget for your products.</summary>
10
  <description>BeeSocial allows to your users comment and share your products in Facebook and Twitter.</description>
11
- <notes>Adding new resize system</notes>
12
  <authors><author><name>Miguel &#xC1;ngel Mart&#xED;nez Trivi&#xF1;o</name><user>auto-converted</user><email>miguel@beetailer.com</email></author></authors>
13
- <date>2011-07-19</date>
14
- <time>17:49:08</time>
15
- <contents><target name="magecommunity"><dir name="BeeShopy"><dir name="BeeSocial"><dir name="Block"><file name="Iframe.php" hash="acb025033c44f3b44a36343c27006e68"/></dir><dir name="etc"><file name="config.xml" hash="2f94b6b143ba00f802b1187de9165c41"/><file name="widget.xml" hash="983dfa5d28418547ca7b636f246f5e98"/></dir><dir name="helper"><file name="Data.php" hash="7a9befef350fe2d362599b32620eb534"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="BeeShopy_BeeSocial.xml" hash="f24331c9435e13df6243bdf75e28b5b1"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>BeeShopy_BeeSocial</name>
4
+ <version>0.9.0</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>FB:Comments, FB:Like and Twitter Badget for your products.</summary>
10
  <description>BeeSocial allows to your users comment and share your products in Facebook and Twitter.</description>
11
+ <notes>Adding configuration dialog.</notes>
12
  <authors><author><name>Miguel &#xC1;ngel Mart&#xED;nez Trivi&#xF1;o</name><user>auto-converted</user><email>miguel@beetailer.com</email></author></authors>
13
+ <date>2011-07-22</date>
14
+ <time>09:43:23</time>
15
+ <contents><target name="magecommunity"><dir name="BeeShopy"><dir name="BeeSocial"><dir name="Block"><file name="Iframe.php" hash="b899b3422b08418e98e1e1e50fbb1d63"/></dir><dir name="Helper"><file name="Data.php" hash="756f44af9ad6bdc769ce65a87e3b1718"/></dir><dir name="Model"><file name="Themes.php" hash="4a76619575c942b8f3c58e6530fad1e5"/></dir><dir name="etc"><file name="config.xml" hash="9656407a881e0cf4e083b007126e6963"/><file name="system.xml" hash="ab438f1d573e15dc06d5de69a19a8263"/><file name="widget.xml" hash="983dfa5d28418547ca7b636f246f5e98"/><file name=".system.xml.swp" hash="aab1a3b23d53e27e0b4fc1a03a8d6e9a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="BeeShopy_BeeSocial.xml" hash="f24331c9435e13df6243bdf75e28b5b1"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>