Bubbleyes_BubblitPlugin - Version 1.1.0

Version Notes

- Compatibility with PHP5.3 and below

Download this release

Release Info

Developer Terje Lindstad
Extension Bubbleyes_BubblitPlugin
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.1 to 1.1.0

app/code/community/Bubbleyes/BubblitPlugin/Model/Observer.php CHANGED
@@ -93,12 +93,12 @@ class Bubbleyes_BubblitPlugin_Model_Observer
93
  {
94
  $productXML = $productsXML -> addChild("product");
95
 
96
- $productXML -> addAttribute("sku", $product->sku);
97
 
98
- $productXML -> addChild("shopurl", $product-> getProductUrl());
99
 
100
- $productXML -> addChild("name", $product->name);
101
- $productXML -> addChild("description", $product->short_description);
102
  $productXML -> addChild("currency", Mage::app()->getStore()->getCurrentCurrencyCode());
103
  $productXML -> addChild("price", number_format($product->price, 2, '.', ''));
104
 
@@ -112,10 +112,10 @@ class Bubbleyes_BubblitPlugin_Model_Observer
112
  $categories = $product -> getCategoryCollection() -> addAttributeToSelect(array('name'));
113
  if(count($categories) > 0)
114
  {
115
- $productXML -> addChild("category", $categories -> getFirstItem() -> getName());
116
  }
117
 
118
- $productXML -> addChild("image", $product -> getImage() != 'no_selection' ? $product -> getImageUrl() : null);
119
  }
120
 
121
  return $productsXML->asXML();
93
  {
94
  $productXML = $productsXML -> addChild("product");
95
 
96
+ $productXML -> addAttribute("sku", htmlspecialchars($product->sku, ENT_QUOTES));
97
 
98
+ $productXML -> addChild("shopurl", htmlspecialchars($product-> getProductUrl(), ENT_QUOTES));
99
 
100
+ $productXML -> addChild("name", htmlspecialchars($product->name, ENT_QUOTES));
101
+ $productXML -> addChild("description", htmlspecialchars($product->short_description, ENT_QUOTES));
102
  $productXML -> addChild("currency", Mage::app()->getStore()->getCurrentCurrencyCode());
103
  $productXML -> addChild("price", number_format($product->price, 2, '.', ''));
104
 
112
  $categories = $product -> getCategoryCollection() -> addAttributeToSelect(array('name'));
113
  if(count($categories) > 0)
114
  {
115
+ $productXML -> addChild("category", htmlspecialchars($categories -> getFirstItem() -> getName(), ENT_QUOTES));
116
  }
117
 
118
+ $productXML -> addChild("image", htmlspecialchars($product -> getImage() != 'no_selection' ? $product -> getImageUrl() : null, ENT_QUOTES));
119
  }
120
 
121
  return $productsXML->asXML();
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bubbleyes_BubblitPlugin</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/bsd-license.php">BSDL</license>
7
  <channel>community</channel>
@@ -9,13 +9,11 @@
9
  <summary>Connect customers and web stores&#xD;
10
  in a unique and dynamic way: Bubbl!</summary>
11
  <description>It's simple. End-consumers from all over the world surf the Internet, finding products which interest them- but the prices are slightly higher than they are willing to pay. With a simple click, these products are stored in a single convenient collection.</description>
12
- <notes>- First release&#xD;
13
- - Supporting configuration of the module in the settings administration&#xD;
14
- - Supporting visualization of the BubblitPlugin in the product details page</notes>
15
  <authors><author><name>Terje Lindstad</name><user>tlindstad</user><email>terjelindstad@bubbleyes.com</email></author></authors>
16
  <date>2015-01-22</date>
17
- <time>14:00:50</time>
18
- <contents><target name="magecommunity"><dir><dir name="Bubbleyes"><dir name="BubblitPlugin"><dir name="Block"><file name="Button.php" hash="5b9ee082aa8542c2204b1ad86cec1272"/></dir><dir name="Helper"><file name="Data.php" hash="638a8f76ead78a1f84f99b5adc26b2b4"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Bubbllayout.php" hash="ea03544f51545df9803dc3fb0d69ce30"/><dir name="Helpinfo"><file name="Comment.php" hash="eaa644af07bf619a06805184e1daffbd"/></dir></dir></dir><file name="Observer.php" hash="81f04622c37f3f46890bfcc1c28c2b41"/></dir><dir name="etc"><file name="config.xml" hash="042fd5e76f03266d2f22e4e7025d06b1"/><file name="system.xml" hash="3b8dde9a695682f52559ee57df8258c2"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Bubbleyes_BubblitPlugin.xml" hash="0691ad097f8ca937d80ad4936607fea5"/></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="Bubbleyes_BubblitPlugin.xml" hash="2b172171473b55f2c4596f1eacee7e63"/></dir><dir name="template"><dir name="BubblitPlugin"><file name="button.phtml" hash="18199c13f81a042985363824986156c0"/></dir></dir></dir></dir><dir name="Bubbleyes"><dir name="default"><dir name="etc"><file name="theme.xml" hash="5c4fce4eb634014e556a22cec2a76d20"/></dir><dir name="layout"><file name="local.xml" hash="01c78642851f6e17d1057882f893d3c1"/></dir><dir name="template"><dir name="catalog"><dir name="product"><dir name="view"><file name="sharing.phtml" hash="5be2544566332d003f3bb16579a96498"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>4.5.0</min><max>10.0.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bubbleyes_BubblitPlugin</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/bsd-license.php">BSDL</license>
7
  <channel>community</channel>
9
  <summary>Connect customers and web stores&#xD;
10
  in a unique and dynamic way: Bubbl!</summary>
11
  <description>It's simple. End-consumers from all over the world surf the Internet, finding products which interest them- but the prices are slightly higher than they are willing to pay. With a simple click, these products are stored in a single convenient collection.</description>
12
+ <notes>- Compatibility with PHP5.3 and below</notes>
 
 
13
  <authors><author><name>Terje Lindstad</name><user>tlindstad</user><email>terjelindstad@bubbleyes.com</email></author></authors>
14
  <date>2015-01-22</date>
15
+ <time>14:52:06</time>
16
+ <contents><target name="magecommunity"><dir><dir name="Bubbleyes"><dir name="BubblitPlugin"><dir name="Block"><file name="Button.php" hash="5b9ee082aa8542c2204b1ad86cec1272"/></dir><dir name="Helper"><file name="Data.php" hash="638a8f76ead78a1f84f99b5adc26b2b4"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Bubbllayout.php" hash="ea03544f51545df9803dc3fb0d69ce30"/><dir name="Helpinfo"><file name="Comment.php" hash="eaa644af07bf619a06805184e1daffbd"/></dir></dir></dir><file name="Observer.php" hash="81840c62dcf864639a9f980cf7a65249"/></dir><dir name="etc"><file name="config.xml" hash="042fd5e76f03266d2f22e4e7025d06b1"/><file name="system.xml" hash="3b8dde9a695682f52559ee57df8258c2"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Bubbleyes_BubblitPlugin.xml" hash="0691ad097f8ca937d80ad4936607fea5"/></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="Bubbleyes_BubblitPlugin.xml" hash="2b172171473b55f2c4596f1eacee7e63"/></dir><dir name="template"><dir name="BubblitPlugin"><file name="button.phtml" hash="18199c13f81a042985363824986156c0"/></dir></dir></dir></dir><dir name="Bubbleyes"><dir name="default"><dir name="etc"><file name="theme.xml" hash="5c4fce4eb634014e556a22cec2a76d20"/></dir><dir name="layout"><file name="local.xml" hash="01c78642851f6e17d1057882f893d3c1"/></dir><dir name="template"><dir name="catalog"><dir name="product"><dir name="view"><file name="sharing.phtml" hash="5be2544566332d003f3bb16579a96498"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>4.5.0</min><max>10.0.0</max></php></required></dependencies>
19
  </package>