Beetailer_Beesocial - Version 0.7.0

Version Notes

Adding new resize system

Download this release

Release Info

Developer Magento Core Team
Extension Beetailer_Beesocial
Version 0.7.0
Comparing to
See all releases


Version 0.7.0

app/code/community/BeeShopy/BeeSocial/Block/Iframe.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class BeeShopy_BeeSocial_Block_Iframe
3
+ extends Mage_Core_Block_Abstract
4
+ implements Mage_Widget_Block_Interface
5
+ {
6
+
7
+ protected function _toHtml()
8
+ {
9
+ $product = Mage::registry('current_product');
10
+ $domain = urlencode(Mage::getBaseURL());
11
+ $url = urlencode(Mage::helper('core/url')->getCurrentUrl());
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
+ }
24
+ }
app/code/community/BeeShopy/BeeSocial/etc/config.xml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <BeeShopy_BeeSocial>
5
+ <version>0.0.4</version>
6
+ </BeeShopy_BeeSocial>
7
+ </modules>
8
+ <global>
9
+ <helpers>
10
+ <beesocial>
11
+ <class>BeeShopy_BeeSocial_Helper</class>
12
+ </beesocial>
13
+ </helpers>
14
+ <blocks>
15
+ <beesocial>
16
+ <class>BeeShopy_BeeSocial_Block</class>
17
+ </beesocial>
18
+ </blocks>
19
+ </global>
20
+
21
+ </config>
app/code/community/BeeShopy/BeeSocial/etc/widget.xml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <widgets>
3
+ <beesocial_iframe type="beesocial/iframe">
4
+ <name>BeeSocial: Facebook and Twitter widget</name>
5
+ <description type="desc">Facebook and Twitter widget for your products</description>
6
+ </beesocial_iframe>
7
+ </widgets>
app/code/community/BeeShopy/BeeSocial/helper/Data.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BeeShopy / BeeSocial helper
4
+ */
5
+ class BeeShopy_BeeSocial_Helper_Data extends Mage_Core_Helper_Abstract
6
+ {
7
+ }
app/etc/modules/BeeShopy_BeeSocial.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <BeeShopy_BeeSocial>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </BeeShopy_BeeSocial>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Beetailer_Beesocial</name>
4
+ <version>0.7.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 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:46:15</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>