GetSomeMojo_Pinterestmojo - Version 2.0.0

Version Notes

- All the code has been refactored


- Updated to match the latest Pinterest Pin It features


- Stable release

Download this release

Release Info

Developer Mitchell Robles, Jr.
Extension GetSomeMojo_Pinterestmojo
Version 2.0.0
Comparing to
See all releases


Code changes from version 1.1.5 to 2.0.0

app/code/local/GetSomeMojo/Pinterestmojo/Block/PinterestButton.php CHANGED
@@ -1,76 +1,93 @@
1
  <?php
2
  /**
3
- * Mojo Crative & Technical Solutions
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category GetSomeMojo
16
  * @package GetSomeMojo_Pinterestmojo
17
- * @copyright Copyright (c) 2012 Mitch Robles, Jr. (http://www.GetSomeMojo.net)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @author Mitch Robles, Jr. <info@GetSomeMojo.net>
20
  */
21
 
22
  class GetSomeMojo_Pinterestmojo_Block_PinterestButton extends Mage_Core_Block_Template
23
  {
24
-
25
- protected $yeaH4yeaH;
26
- protected $pinCount;
27
- protected $pinAlign;
28
- protected $pinStyle;
29
- protected $pinWidth;
30
- protected $pinPrice;
31
- protected $pinFinalPrice;
32
- protected $currentImage;
33
- protected $currentUrl;
34
- protected $currentDesc;
35
- protected $oldUrl;
36
- protected $newUrl;
37
-
38
- /**
39
  * Constructor. Set template.
40
  */
41
- protected function _construct()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  {
43
- parent::_construct();
44
-
45
- $_product = Mage::registry('current_product');
46
- $_helper = Mage::helper('catalog/output');
47
- $this->yeaH4yeaH = Mage::getStoreConfig('pinterestmojosection/pinterestmojosettings/activate',Mage::app()->getStore());
48
- $this->pinCount = Mage::getStoreConfig('pinterestmojosection/pinterestmojosettings/pincount',Mage::app()->getStore());
49
- $this->pinAlign = (Mage::getStoreConfig('pinterestmojosection/pinterestmojosettings/pinalign',Mage::app()->getStore()) ? 'right' : 'left');
50
- $this->pinStyle = Mage::getStoreConfig('pinterestmojosection/pinterestmojosettings/pinstyle',Mage::app()->getStore());
51
- $this->pinWidth = Mage::getStoreConfig('pinterestmojosection/pinterestmojosettings/pinwidth',Mage::app()->getStore());
52
- $this->pinPrice = Mage::getStoreConfig('pinterestmojosection/pinterestmojosettings/pinprice',Mage::app()->getStore());
53
-
54
- if ($_product) :
55
-
56
- $this->currentImage = urlencode( $this->helper('catalog/image')->init($_product, 'image')->resize($this->pinWidth,null)->constrainOnly(TRUE)->keepAspectRatio(TRUE)->keepFrame(FALSE) );
57
- $this->currentUrl = Mage::helper('core/url')->getCurrentUrl();
58
- $this->currentDesc = $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description');
59
- // Add product price to description
60
- if($this->pinPrice==1):
61
- $this->pinFinalPrice = Mage::helper('core')->currency($_product->getPrice(),true,false);
62
- $this->currentDesc .= " [" . $this->pinFinalPrice . "]";
63
- endif;
64
- // Addresses & Fixes certain web server settings for URL rewrites
65
- $this->oldUrl = "http://pinterest.com/pin/create/button/?url=".$this->currentUrl."&media=".$this->currentImage."&description=".$this->currentDesc;
66
- $this->newUrl = str_replace('.html?','.html&',$this->oldUrl);
67
- // Set Template
68
- $this->setTemplate('getsomemojo/pinterestmojo/pinterest_button.phtml');
69
-
70
- endif;
71
-
72
- }
73
-
74
- }
75
-
76
- ?>
1
  <?php
2
  /**
3
+ * Mojo Creative & Technical Solutions LLC
 
 
 
 
 
 
 
 
 
 
4
  *
5
  * @category GetSomeMojo
6
  * @package GetSomeMojo_Pinterestmojo
7
+ * @copyright Copyright (c) 2011-2013 Mojo Creative & Technical Solutions LLC (http://GetSome.MojoMage.com)
8
+ * @license http://getsome.mojomage.com/license/
9
+ * @author Mojo Creative & Technical Solutions LLC <info@MojoMage.com>
10
  */
11
 
12
  class GetSomeMojo_Pinterestmojo_Block_PinterestButton extends Mage_Core_Block_Template
13
  {
14
+
15
+ const PIN_BUTTON_ANCHOR_URL = '//pinterest.com/pin/create/button/';
16
+ const PIN_BUTTON_IMAGE_URL = '//assets.pinterest.com/images/pidgets/pin_it_button.png';
17
+
18
+ /**
 
 
 
 
 
 
 
 
 
 
19
  * Constructor. Set template.
20
  */
21
+ public function __construct()
22
+ {
23
+ parent::__construct();
24
+
25
+ $this->setCurrentStore(Mage::app()->getStore())
26
+ ->setMojoHelper($this->helper('pinterestmojo'))
27
+ ->setYeaH4yeaH($this->getMojoHelper()->getSystemConfigValue(GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL, GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL_ACTIVATE, $this->getCurrentStore()));
28
+
29
+ if ($this->getYeaH4yeaH() && $currentProduct = Mage::registry('current_product')) {
30
+ $this->setCurrentProduct($currentProduct);
31
+ $this->setTemplate('getsomemojo/pinterestmojo/pinterest_button.phtml');
32
+ }
33
+
34
+ }
35
+
36
+ public function _beforeToHtml()
37
+ {
38
+
39
+ parent::_beforeToHtml();
40
+
41
+ if ($this->getYeaH4yeaH() && $this->getCurrentProduct()) {
42
+
43
+ $this->setButtonType($this->getMojoHelper()->getSystemConfigValue(GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL, GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL_TYPE, $this->getCurrentStore()))
44
+ ->setButtonAlign($this->getMojoHelper()->getSystemConfigValue(GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL, GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL_ALIGN, $this->getCurrentStore()))
45
+ ->setPinStyle($this->getMojoHelper()->getSystemConfigValue(GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL, GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL_STYLE, $this->getCurrentStore()));
46
+
47
+ if ($this->getButtonType() == 'one') {
48
+
49
+ $this->setPinCount($this->getMojoHelper()->getSystemConfigValue(GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL, GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL_COUNT, $this->getCurrentStore()))
50
+ ->setPinPrice($this->getMojoHelper()->getSystemConfigValue(GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL, GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL_PRICE, $this->getCurrentStore()))
51
+ ->setPinWidth($this->getMojoHelper()->getSystemConfigValue(GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL, GetSomeMojo_Pinterestmojo_Helper_Data::XML_MOJO_GENERAL_WIDTH, $this->getCurrentStore()));
52
+
53
+ $_pinDesc = Mage::helper('catalog/output')->productAttribute($this->getCurrentProduct(), nl2br($this->getCurrentProduct()->getShortDescription()), 'short_description');
54
+
55
+ if ($this->getPinPrice()) {
56
+ $this->setProductPrice(Mage::helper('core')->currency($this->getCurrentProduct()->getPrice(), true, false));
57
+ $_pinDesc .= " [" . $this->getProductPrice() . "]";
58
+ }
59
+
60
+ $this->setPinDesc($_pinDesc);
61
+
62
+ $_pinImage = urlencode(
63
+ $this->helper('catalog/image')
64
+ ->init($this->getCurrentProduct(), 'image')
65
+ ->resize($this->getPinWidth(), null)
66
+ ->constrainOnly(TRUE)
67
+ ->keepAspectRatio(TRUE)
68
+ ->keepFrame(FALSE)
69
+ );
70
+
71
+ $this->setPinImage($_pinImage);
72
+
73
+ /* @MOJO - Addresses/Fixes certain web server settings for URL rewrites */
74
+ $_pinUrl = $this->_getPinButtonAnchorUrl() . "?url=" . Mage::helper('core/url')->getCurrentUrl() . "&media=" . $this->getPinImage() . "&description=" . $this->getPinDesc();
75
+ $this->setPinUrl(str_replace('.html?', '.html&', $_pinUrl));
76
+
77
+ }
78
+
79
+ }
80
+
81
+ }
82
+
83
+ public function _getPinButtonAnchorUrl()
84
  {
85
+ return self::PIN_BUTTON_ANCHOR_URL;
86
+ }
87
+
88
+ public function _getPinButtonImageUrl()
89
+ {
90
+ return self::PIN_BUTTON_IMAGE_URL;
91
+ }
92
+
93
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/GetSomeMojo/Pinterestmojo/Helper/Data.php CHANGED
@@ -1,27 +1,41 @@
1
  <?php
2
  /**
3
- * Mojo Crative & Technical Solutions
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category GetSomeMojo
16
  * @package GetSomeMojo_Pinterestmojo
17
- * @copyright Copyright (c) 2012 Mitch Robles, Jr. (http://www.GetSomeMojo.net)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @author Mitch Robles, Jr. <info@GetSomeMojo.net>
20
  */
21
 
22
  class GetSomeMojo_Pinterestmojo_Helper_Data extends Mage_Core_Helper_Abstract
23
  {
24
-
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  }
1
  <?php
2
  /**
3
+ * Mojo Creative & Technical Solutions LLC
 
 
 
 
 
 
 
 
 
 
4
  *
5
  * @category GetSomeMojo
6
  * @package GetSomeMojo_Pinterestmojo
7
+ * @copyright Copyright (c) 2011-2013 Mojo Creative & Technical Solutions LLC (http://GetSome.MojoMage.com)
8
+ * @license http://getsome.mojomage.com/license/
9
+ * @author Mojo Creative & Technical Solutions LLC <info@MojoMage.com>
10
  */
11
 
12
  class GetSomeMojo_Pinterestmojo_Helper_Data extends Mage_Core_Helper_Abstract
13
  {
 
14
 
15
+ /**
16
+ * System Config Node Value Path Names
17
+ */
18
+ const XML_MOJO = 'pinterestmojo';
19
+ const XML_MOJO_GENERAL = 'general';
20
+ const XML_MOJO_GENERAL_ACTIVATE = 'activate';
21
+ const XML_MOJO_GENERAL_TYPE = 'type';
22
+ const XML_MOJO_GENERAL_COUNT = 'count';
23
+ const XML_MOJO_GENERAL_PRICE = 'price';
24
+ const XML_MOJO_GENERAL_ALIGN = 'align';
25
+ const XML_MOJO_GENERAL_STYLE = 'style';
26
+ const XML_MOJO_GENERAL_WIDTH = 'width';
27
+
28
+ /**
29
+ * Get System Config Values
30
+ *
31
+ * @param string $type
32
+ * @param string $value
33
+ * @param mixed $store
34
+ * @return mixed
35
+ */
36
+ public function getSystemConfigValue($type, $value, $store = null)
37
+ {
38
+ return Mage::getStoreConfig(self::XML_MOJO . '/' . $type . '/' . $value, $store);
39
+ }
40
 
41
  }
app/code/local/GetSomeMojo/Pinterestmojo/Model/Config/Bn.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Mojo Creative & Technical Solutions LLC
4
+ *
5
+ * @category GetSomeMojo
6
+ * @package GetSomeMojo_Pinterestmojo
7
+ * @copyright Copyright (c) 2011-2013 Mojo Creative & Technical Solutions LLC (http://GetSome.MojoMage.com)
8
+ * @license http://getsome.mojomage.com/license/
9
+ * @author Mojo Creative & Technical Solutions LLC <info@MojoMage.com>
10
+ */
11
+
12
+ class GetSomeMojo_Pinterestmojo_Model_Config_Bn extends Mage_Paypal_Model_Config
13
+ {
14
+ /**
15
+ * BN code
16
+ *
17
+ * @param string $countryCode ISO 3166-1
18
+ */
19
+ public function getBuildNotationCode($countryCode = null)
20
+ {
21
+ /*
22
+ * determine Magento Edition by License file name
23
+ */
24
+ if (file_exists('LICENSE_EE.txt')) {
25
+ $newBnCode = 'MojoCreative_SI_MagentoEE';
26
+ } elseif (file_exists('LICENSE_PRO.html')) {
27
+ $newBnCode = 'MojoCreative_SI_MagentoPE';
28
+ } else {
29
+ $newBnCode = 'MojoCreative_SI_MagentoCE';
30
+ }
31
+ return $newBnCode;
32
+ }
33
+ }
app/code/local/GetSomeMojo/Pinterestmojo/Model/Config/ButtonAlign.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Mojo Creative & Technical Solutions LLC
4
+ *
5
+ * @category GetSomeMojo
6
+ * @package GetSomeMojo_Pinterestmojo
7
+ * @copyright Copyright (c) 2011-2013 Mojo Creative & Technical Solutions LLC (http://GetSome.MojoMage.com)
8
+ * @license http://getsome.mojomage.com/license/
9
+ * @author Mojo Creative & Technical Solutions LLC <info@MojoMage.com>
10
+ */
11
+
12
+ class GetSomeMojo_Pinterestmojo_Model_Config_ButtonAlign extends Mage_Core_Model_Config_Data
13
+ {
14
+
15
+ const OPTION1_VALUE = 'left';
16
+ const OPTION2_VALUE = 'right';
17
+
18
+ /**
19
+ * Fills the select field with values
20
+ *
21
+ * @return array
22
+ */
23
+ public function toOptionArray()
24
+ {
25
+
26
+ return array(
27
+ self::OPTION1_VALUE => Mage::helper('pinterestmojo')->__('Left'),
28
+ self::OPTION2_VALUE => Mage::helper('pinterestmojo')->__('Right')
29
+ );
30
+
31
+ }
32
+
33
+ }
app/code/local/GetSomeMojo/Pinterestmojo/Model/Config/ButtonType.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Mojo Creative & Technical Solutions LLC
4
+ *
5
+ * @category GetSomeMojo
6
+ * @package GetSomeMojo_Pinterestmojo
7
+ * @copyright Copyright (c) 2011-2013 Mojo Creative & Technical Solutions LLC (http://GetSome.MojoMage.com)
8
+ * @license http://getsome.mojomage.com/license/
9
+ * @author Mojo Creative & Technical Solutions LLC <info@MojoMage.com>
10
+ */
11
+
12
+ class GetSomeMojo_Pinterestmojo_Model_Config_ButtonType extends Mage_Core_Model_Config_Data
13
+ {
14
+
15
+ const OPTION1_VALUE = 'one';
16
+ const OPTION2_VALUE = 'any';
17
+ const OPTION3_VALUE = 'hover';
18
+
19
+ /**
20
+ * Fills the select field with values
21
+ *
22
+ * @return array
23
+ */
24
+ public function toOptionArray()
25
+ {
26
+
27
+ return array(
28
+ self::OPTION1_VALUE => Mage::helper('pinterestmojo')->__('One Image'),
29
+ self::OPTION2_VALUE => Mage::helper('pinterestmojo')->__('Any Image'),
30
+ self::OPTION3_VALUE => Mage::helper('pinterestmojo')->__('Image Hover'),
31
+ );
32
+
33
+ }
34
+
35
+ }
app/code/local/GetSomeMojo/Pinterestmojo/Model/Config/PinCount.php CHANGED
@@ -1,37 +1,20 @@
1
  <?php
2
  /**
3
- * Mojo Crative & Technical Solutions
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category GetSomeMojo
16
  * @package GetSomeMojo_Pinterestmojo
17
- * @copyright Copyright (c) 2012 Mitch Robles, Jr. (http://www.GetSomeMojo.net)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @author Mitch Robles, Jr. <info@GetSomeMojo.net>
20
  */
21
 
22
  class GetSomeMojo_Pinterestmojo_Model_Config_PinCount extends Mage_Core_Model_Config_Data
23
  {
24
-
25
- const XML_PATH_PINTERESTMOJO_GROUP1_VALUES = 'pinterestmojosection/pinterestmojosettings/pincount';
26
-
27
- const OPTION1_VALUE = 'none';
28
- const OPTION2_VALUE = 'vertical';
29
- const OPTION3_VALUE = 'horizontal';
30
-
31
- public function getSomeValueFromSystemConfigFile()
32
- {
33
- return Mage::getStoreConfig(self::XML_PATH_PINTERESTMOJO_GROUP1_VALUES);
34
- }
35
 
36
  /**
37
  * Fills the select field with values
@@ -40,11 +23,13 @@ class GetSomeMojo_Pinterestmojo_Model_Config_PinCount extends Mage_Core_Model_Co
40
  */
41
  public function toOptionArray()
42
  {
43
-
44
- return array(
45
- self::OPTION1_VALUE => Mage::helper('pinterestmojo')->__('No Count'),
46
- self::OPTION2_VALUE => Mage::helper('pinterestmojo')->__('Vertical'),
47
- self::OPTION3_VALUE => Mage::helper('pinterestmojo')->__('Horizontal'),
48
  );
 
49
  }
50
- }
 
1
  <?php
2
  /**
3
+ * Mojo Creative & Technical Solutions LLC
 
 
 
 
 
 
 
 
 
 
4
  *
5
  * @category GetSomeMojo
6
  * @package GetSomeMojo_Pinterestmojo
7
+ * @copyright Copyright (c) 2011-2013 Mojo Creative & Technical Solutions LLC (http://GetSome.MojoMage.com)
8
+ * @license http://getsome.mojomage.com/license/
9
+ * @author Mojo Creative & Technical Solutions LLC <info@MojoMage.com>
10
  */
11
 
12
  class GetSomeMojo_Pinterestmojo_Model_Config_PinCount extends Mage_Core_Model_Config_Data
13
  {
14
+
15
+ const OPTION1_VALUE = 'above';
16
+ const OPTION2_VALUE = 'beside';
17
+ const OPTION3_VALUE = 'none';
 
 
 
 
 
 
 
18
 
19
  /**
20
  * Fills the select field with values
23
  */
24
  public function toOptionArray()
25
  {
26
+
27
+ return array(
28
+ self::OPTION1_VALUE => Mage::helper('pinterestmojo')->__('Above the Button'),
29
+ self::OPTION2_VALUE => Mage::helper('pinterestmojo')->__('Beside the Button'),
30
+ self::OPTION3_VALUE => Mage::helper('pinterestmojo')->__('Not Shown'),
31
  );
32
+
33
  }
34
+
35
+ }
app/code/local/GetSomeMojo/Pinterestmojo/etc/config.xml CHANGED
@@ -1,12 +1,22 @@
1
  <?xml version="1.0"?>
2
-
 
 
 
 
 
 
 
 
 
 
3
  <config>
4
  <modules>
5
  <GetSomeMojo_Pinterestmojo>
6
- <version>1.1.4</version>
7
  </GetSomeMojo_Pinterestmojo>
8
  </modules>
9
- <admin>
10
  <routers>
11
  <getsomemojo_pinterestmojo>
12
  <use>admin</use>
@@ -23,7 +33,7 @@
23
  <class>GetSomeMojo_Pinterestmojo_Block</class>
24
  </getsomemojo_pinterestmojo>
25
  </blocks>
26
- <helpers>
27
  <pinterestmojo>
28
  <class>GetSomeMojo_Pinterestmojo_Helper</class>
29
  </pinterestmojo>
@@ -32,9 +42,14 @@
32
  <pinterestmojo>
33
  <class>GetSomeMojo_Pinterestmojo_Model_Config</class>
34
  </pinterestmojo>
35
- </models>
 
 
 
 
 
36
  </global>
37
-
38
  <frontend>
39
  <layout>
40
  <updates>
@@ -44,41 +59,42 @@
44
  </updates>
45
  </layout>
46
  </frontend>
47
-
48
- <adminhtml>
49
- <acl>
50
- <resources>
51
- <admin>
52
- <children>
53
- <system>
54
- <children>
55
- <config>
56
- <children>
57
- <pinterestmojosection translate="title" module="pinterestmojo">
58
- <title>Pinterest Mojo Developed By Mitch Robles, Jr.</title>
59
- <sort_order>13</sort_order>
60
- </pinterestmojosection>
61
- </children>
62
- </config>
63
- </children>
64
- </system>
65
- </children>
66
- </admin>
67
- </resources>
68
- </acl>
69
- </adminhtml>
70
-
71
- <default>
72
- <pinterestmojosection>
73
- <pinterestmojosettings>
74
  <activate>1</activate>
75
- <pincount>none</pincount>
76
- <pinalign>1</pinalign>
77
- <pinstyle>margin: 10px 0 10px;</pinstyle>
78
- <pinwidth>800</pinwidth>
79
- <pinprice>1</pinprice>
80
- </pinterestmojosettings>
81
- </pinterestmojosection>
 
82
  </default>
83
-
84
  </config>
1
  <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Mojo Creative & Technical Solutions LLC
5
+ *
6
+ * @category GetSomeMojo
7
+ * @package GetSomeMojo_Pinterestmojo
8
+ * @copyright Copyright (c) 2011-2013 Mojo Creative & Technical Solutions LLC (http://GetSome.MojoMage.com)
9
+ * @license http://getsome.mojomage.com/license/
10
+ * @author Mojo Creative & Technical Solutions LLC <info@MojoMage.com>
11
+ */
12
+ -->
13
  <config>
14
  <modules>
15
  <GetSomeMojo_Pinterestmojo>
16
+ <version>2.0.0</version>
17
  </GetSomeMojo_Pinterestmojo>
18
  </modules>
19
+ <admin>
20
  <routers>
21
  <getsomemojo_pinterestmojo>
22
  <use>admin</use>
33
  <class>GetSomeMojo_Pinterestmojo_Block</class>
34
  </getsomemojo_pinterestmojo>
35
  </blocks>
36
+ <helpers>
37
  <pinterestmojo>
38
  <class>GetSomeMojo_Pinterestmojo_Helper</class>
39
  </pinterestmojo>
42
  <pinterestmojo>
43
  <class>GetSomeMojo_Pinterestmojo_Model_Config</class>
44
  </pinterestmojo>
45
+ <paypal>
46
+ <rewrite>
47
+ <config>GetSomeMojo_Pinterestmojo_Model_Config_Bn</config>
48
+ </rewrite>
49
+ </paypal>
50
+ </models>
51
  </global>
52
+
53
  <frontend>
54
  <layout>
55
  <updates>
59
  </updates>
60
  </layout>
61
  </frontend>
62
+
63
+ <adminhtml>
64
+ <acl>
65
+ <resources>
66
+ <admin>
67
+ <children>
68
+ <system>
69
+ <children>
70
+ <config>
71
+ <children>
72
+ <pinterestmojo translate="title" module="pinterestmojo">
73
+ <title>Pinterest Mojo Developed By Mojo Creative and Technical Solutions LLC</title>
74
+ <sort_order>13</sort_order>
75
+ </pinterestmojo>
76
+ </children>
77
+ </config>
78
+ </children>
79
+ </system>
80
+ </children>
81
+ </admin>
82
+ </resources>
83
+ </acl>
84
+ </adminhtml>
85
+
86
+ <default>
87
+ <pinterestmojo>
88
+ <general>
89
  <activate>1</activate>
90
+ <type>one</type>
91
+ <count>none</count>
92
+ <align>left</align>
93
+ <style>margin: 10px 0 10px;</style>
94
+ <width>800</width>
95
+ <price>1</price>
96
+ </general>
97
+ </pinterestmojo>
98
  </default>
99
+
100
  </config>
app/code/local/GetSomeMojo/Pinterestmojo/etc/system.xml CHANGED
@@ -1,15 +1,15 @@
1
  <?xml version="1.0"?>
2
-
3
- <!--
4
  /**
 
 
5
  * @category GetSomeMojo
6
- * @package GetSomeMojo_Pinterestdmojo
7
- * @copyright Copyright (c) 2012 Mitch Robles, Jr. (http://www.GetSomeMojo.net)
8
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
9
- * @author Mitch Robles, Jr. <info@GetSomeMojo.net>
10
  */
11
- -->
12
-
13
  <config>
14
  <tabs>
15
  <getsomemojo translate="label" module="pinterestmojo">
@@ -18,7 +18,7 @@
18
  </getsomemojo>
19
  </tabs>
20
  <sections>
21
- <pinterestmojosection translate="label" module="pinterestmojo">
22
  <class>separator-top</class>
23
  <label>Pinterest Mojo</label>
24
  <tab>getsomemojo</tab>
@@ -27,21 +27,20 @@
27
  <show_in_website>1</show_in_website>
28
  <show_in_store>1</show_in_store>
29
  <groups>
30
- <pinterestmojosettings translate="label">
31
  <label>General Settings</label>
32
  <frontend_type>text</frontend_type>
33
  <sort_order>0</sort_order>
34
  <show_in_default>1</show_in_default>
35
  <show_in_website>1</show_in_website>
36
  <show_in_store>1</show_in_store>
37
- <comment>
38
- <![CDATA[
39
- <p><b>The Pinterest Mojo Extension was Developed by <a href="http://mojomage.getsomemojo.net" target="_blank" title="Get Some Mojo!">Mojo Creative &amp; Technical Solutions</a>.<br /><br />HELP: <a href="mailto:info@getsomemojo.net" title="Contact Mitch Robles, Jr.">info@GetSomeMojo.net</a></b><br /><br/></p>
40
-
41
- ]]>
42
  </comment>
43
  <fields>
44
- <activate translate="label">
45
  <label>Enable Extension</label>
46
  <frontend_type>select</frontend_type>
47
  <source_model>adminhtml/system_config_source_yesno</source_model>
@@ -50,61 +49,69 @@
50
  <show_in_website>1</show_in_website>
51
  <show_in_store>1</show_in_store>
52
  </activate>
53
- <pincount translate="label">
54
- <label>Pin Count</label>
55
- <frontend_type>select</frontend_type>
56
- <sort_order>10</sort_order>
57
- <default>1</default>
58
- <show_in_default>1</show_in_default>
59
  <show_in_website>1</show_in_website>
60
  <show_in_store>1</show_in_store>
61
- <backend_model>pinterestmojo/PinCount</backend_model>
 
 
 
 
 
 
 
 
 
 
62
  <source_model>pinterestmojo/PinCount</source_model>
63
- </pincount>
64
- <pinalign translate="label">
65
- <label>Align Pin to Right Side</label>
66
  <frontend_type>select</frontend_type>
67
- <source_model>adminhtml/system_config_source_yesno</source_model>
68
  <sort_order>20</sort_order>
69
  <show_in_default>1</show_in_default>
70
  <show_in_website>1</show_in_website>
71
  <show_in_store>1</show_in_store>
72
- </pinalign>
73
- <pinstyle translate="label">
 
 
74
  <label>Custom CSS Styles</label>
75
  <frontend_type>text</frontend_type>
76
  <sort_order>40</sort_order>
77
  <show_in_default>1</show_in_default>
78
  <show_in_website>1</show_in_website>
79
  <show_in_store>1</show_in_store>
80
- <comment>Default: margin: 10px 0 10px;</comment>
81
- <tooltip>
82
- <![CDATA[
83
- <div style="border: 1px solid #F00; vertical-align: middle; padding: 20px; width:300px">
84
- <p>Add custom inline css to the DIV layer wrapped around the Pin It button.</p>
85
- </div>
86
-
87
- ]]>
88
- </tooltip>
89
- </pinstyle>
90
- <pinwidth translate="label">
91
  <label>Pin It Image Width</label>
92
  <frontend_type>text</frontend_type>
93
  <sort_order>60</sort_order>
94
  <show_in_default>1</show_in_default>
95
  <show_in_website>1</show_in_website>
96
  <show_in_store>1</show_in_store>
97
- <comment>Default: 800px</comment>
98
- <tooltip>
99
- <![CDATA[
100
- <div style="border: 1px solid #F00; vertical-align: middle; padding: 20px; width:300px">
101
- <p>The original base image width will override this setting if your base image dimensions are smaller than the default size (800px) or your custom size.</p>
102
- </div>
103
-
104
- ]]>
105
- </tooltip>
106
- </pinwidth>
107
- <pinprice translate="label">
108
  <label>Show Product Price in Description</label>
109
  <frontend_type>select</frontend_type>
110
  <source_model>adminhtml/system_config_source_yesno</source_model>
@@ -112,11 +119,11 @@
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
- <comment>Default: Yes</comment>
116
- </pinprice>
117
  </fields>
118
- </pinterestmojosettings>
119
  </groups>
120
- </pinterestmojosection>
121
  </sections>
122
  </config>
1
  <?xml version="1.0"?>
2
+ <!--
 
3
  /**
4
+ * Mojo Creative & Technical Solutions LLC
5
+ *
6
  * @category GetSomeMojo
7
+ * @package GetSomeMojo_Pinterestmojo
8
+ * @copyright Copyright (c) 2011-2013 Mojo Creative & Technical Solutions LLC (http://GetSome.MojoMage.com)
9
+ * @license http://getsome.mojomage.com/license/
10
+ * @author Mojo Creative & Technical Solutions LLC <info@MojoMage.com>
11
  */
12
+ -->
 
13
  <config>
14
  <tabs>
15
  <getsomemojo translate="label" module="pinterestmojo">
18
  </getsomemojo>
19
  </tabs>
20
  <sections>
21
+ <pinterestmojo translate="label" module="pinterestmojo">
22
  <class>separator-top</class>
23
  <label>Pinterest Mojo</label>
24
  <tab>getsomemojo</tab>
27
  <show_in_website>1</show_in_website>
28
  <show_in_store>1</show_in_store>
29
  <groups>
30
+ <general translate="label">
31
  <label>General Settings</label>
32
  <frontend_type>text</frontend_type>
33
  <sort_order>0</sort_order>
34
  <show_in_default>1</show_in_default>
35
  <show_in_website>1</show_in_website>
36
  <show_in_store>1</show_in_store>
37
+ <comment>
38
+ <![CDATA[
39
+ <p><b>The Pinterest Mojo Extension was Developed by <a href="http://getsome.mojomage.com" target="_blank" title="Get Some Mojo!">Mojo Creative & Technical Solutions LLC</a>.<br /><br />LICENSE: <a href="//getsome.mojomage.com/license" target="_blank" title="Mojo Creative & Technical Solutions License">Click to Read</a><br /><br />HELP: <a href="mailto:support@mojomage.com" title="Mojo Creative & Technical Solutions LLC">support@MojoMage.com</a></b><br /><br/></p>
40
+ ]]>
 
41
  </comment>
42
  <fields>
43
+ <activate translate="label">
44
  <label>Enable Extension</label>
45
  <frontend_type>select</frontend_type>
46
  <source_model>adminhtml/system_config_source_yesno</source_model>
49
  <show_in_website>1</show_in_website>
50
  <show_in_store>1</show_in_store>
51
  </activate>
52
+ <type translate="label">
53
+ <label>Button Type</label>
54
+ <frontend_type>select</frontend_type>
55
+ <sort_order>5</sort_order>
56
+ <show_in_default>1</show_in_default>
 
57
  <show_in_website>1</show_in_website>
58
  <show_in_store>1</show_in_store>
59
+ <backend_model>pinterestmojo/ButtonType</backend_model>
60
+ <source_model>pinterestmojo/ButtonType</source_model>
61
+ </type>
62
+ <count translate="label">
63
+ <label>Pin Count</label>
64
+ <frontend_type>select</frontend_type>
65
+ <sort_order>10</sort_order>
66
+ <show_in_default>1</show_in_default>
67
+ <show_in_website>1</show_in_website>
68
+ <show_in_store>1</show_in_store>
69
+ <backend_model>pinterestmojo/PinCount</backend_model>
70
  <source_model>pinterestmojo/PinCount</source_model>
71
+ </count>
72
+ <align translate="label">
73
+ <label>Button Alignment (float)</label>
74
  <frontend_type>select</frontend_type>
 
75
  <sort_order>20</sort_order>
76
  <show_in_default>1</show_in_default>
77
  <show_in_website>1</show_in_website>
78
  <show_in_store>1</show_in_store>
79
+ <backend_model>pinterestmojo/ButtonAlign</backend_model>
80
+ <source_model>pinterestmojo/ButtonAlign</source_model>
81
+ </align>
82
+ <style translate="label">
83
  <label>Custom CSS Styles</label>
84
  <frontend_type>text</frontend_type>
85
  <sort_order>40</sort_order>
86
  <show_in_default>1</show_in_default>
87
  <show_in_website>1</show_in_website>
88
  <show_in_store>1</show_in_store>
89
+ <comment>Default: margin: 10px 0 10px;</comment>
90
+ <tooltip>
91
+ <![CDATA[
92
+ <div style="ertical-align: middle; padding: 20px;">
93
+ <p>Add custom inline css to the DIV layer wrapped around the Pin It button.</p>
94
+ </div>
95
+ ]]>
96
+ </tooltip>
97
+ </style>
98
+ <width translate="label">
 
99
  <label>Pin It Image Width</label>
100
  <frontend_type>text</frontend_type>
101
  <sort_order>60</sort_order>
102
  <show_in_default>1</show_in_default>
103
  <show_in_website>1</show_in_website>
104
  <show_in_store>1</show_in_store>
105
+ <comment>Default: 800px</comment>
106
+ <tooltip>
107
+ <![CDATA[
108
+ <div style="vertical-align: middle; padding: 20px;">
109
+ <p>The original base image width will override this setting if your base image dimensions are smaller than the default size (800px) or your custom size.</p>
110
+ </div>
111
+ ]]>
112
+ </tooltip>
113
+ </width>
114
+ <price translate="label">
 
115
  <label>Show Product Price in Description</label>
116
  <frontend_type>select</frontend_type>
117
  <source_model>adminhtml/system_config_source_yesno</source_model>
119
  <show_in_default>1</show_in_default>
120
  <show_in_website>1</show_in_website>
121
  <show_in_store>1</show_in_store>
122
+ <comment>Default: Yes</comment>
123
+ </price>
124
  </fields>
125
+ </general>
126
  </groups>
127
+ </pinterestmojo>
128
  </sections>
129
  </config>
app/design/frontend/base/default/layout/getsomemojo/pinterestmojo/pinterest.xml CHANGED
@@ -1,11 +1,21 @@
1
  <?xml version="1.0"?>
2
-
 
 
 
 
 
 
 
 
 
 
3
  <layout version="1.0.0">
4
  <catalog_product_view>
5
- <reference name="product.info">
6
- <reference name="alert.urls" before="-">
7
- <block type="getsomemojo_pinterestmojo/PinterestButton" name="getsomemojo_pinterestmojo" />
8
- </reference>
9
- </reference>
10
  </catalog_product_view>
11
  </layout>
1
  <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Mojo Creative & Technical Solutions LLC
5
+ *
6
+ * @category GetSomeMojo
7
+ * @package GetSomeMojo_Pinterestmojo
8
+ * @copyright Copyright (c) 2011-2013 Mojo Creative & Technical Solutions LLC (http://GetSome.MojoMage.com)
9
+ * @license http://getsome.mojomage.com/license/
10
+ * @author Mojo Creative & Technical Solutions LLC <info@MojoMage.com>
11
+ */
12
+ -->
13
  <layout version="1.0.0">
14
  <catalog_product_view>
15
+ <reference name="product.info">
16
+ <reference name="alert.urls" before="-">
17
+ <block type="getsomemojo_pinterestmojo/PinterestButton" name="getsomemojo_pinterestmojo" />
18
+ </reference>
19
+ </reference>
20
  </catalog_product_view>
21
  </layout>
app/design/frontend/base/default/template/getsomemojo/pinterestmojo/pinterest_button.phtml CHANGED
@@ -1,50 +1,45 @@
1
  <?php
2
  /**
3
- * Mojo Crative & Technical Solutions
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category GetSomeMojo
16
  * @package GetSomeMojo_Pinterestmojo
17
- * @copyright Copyright (c) 2012 Mitch Robles, Jr. (http://www.GetSomeMojo.net)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @author Mitch Robles, Jr. <info@GetSomeMojo.net>
20
  */
21
-
22
- if($this->yeaH4yeaH): ?>
23
-
24
-
25
- <script type="text/javascript">
26
- (function() {
27
- window.PinIt = window.PinIt || { loaded:false };
28
- if (window.PinIt.loaded) return;
29
- window.PinIt.loaded = true;
30
- function async_load(){
31
- var s = document.createElement("script");
32
- s.type = "text/javascript";
33
- s.async = true;
34
- s.src = "http://assets.pinterest.com/js/pinit.js";
35
- var x = document.getElementsByTagName("script")[0];
36
- x.parentNode.insertBefore(s, x);
37
- }
38
- if (window.attachEvent)
39
- window.attachEvent("onload", async_load);
40
- else
41
- window.addEventListener("load", async_load, false);
42
- })();
43
- </script>
 
 
 
 
 
 
 
 
44
 
 
45
 
46
- <div id="mojoPinterest" align="<?=$this->pinAlign;?>" style="<?=$this->pinStyle;?>">
47
- <a href="<?=$this->newUrl;?>" class="pin-it-button" count-layout="<?=$this->pinCount;?>">Pin It</a>
48
- </div>
49
-
50
- <?php endif; ?>
1
  <?php
2
  /**
3
+ * Mojo Creative & Technical Solutions LLC
 
 
 
 
 
 
 
 
 
 
4
  *
5
  * @category GetSomeMojo
6
  * @package GetSomeMojo_Pinterestmojo
7
+ * @copyright Copyright (c) 2011-2013 Mojo Creative & Technical Solutions LLC (http://GetSome.MojoMage.com)
8
+ * @license http://getsome.mojomage.com/license/
9
+ * @author Mojo Creative & Technical Solutions LLC <info@MojoMage.com>
10
  */
11
+ ?>
12
+ <?php if ($this->getYeaH4yeaH()): ?>
13
+
14
+ <script type="text/javascript">
15
+ <!--
16
+ (function(d){
17
+ var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');
18
+ p.type = 'text/javascript';
19
+ <?php if ($this->getButtonType() == GetSomeMojo_Pinterestmojo_Model_Config_ButtonType::OPTION3_VALUE): ?>
20
+ p.setAttribute('data-pin-hover', true);
21
+ <?php endif ?>
22
+ p.async = true;
23
+ p.src = '//assets.pinterest.com/js/pinit.js';
24
+ f.parentNode.insertBefore(p, f);
25
+ }(document));
26
+ -->
27
+ </script>
28
+
29
+ <?php if ($this->getButtonType() != GetSomeMojo_Pinterestmojo_Model_Config_ButtonType::OPTION3_VALUE): ?>
30
+
31
+ <div id="mojoPinterest" align="<?php echo $this->getButtonAlign() ?>" style="<?php echo $this->getPinStyle() ?>">
32
+ <?php if ($this->getButtonType() == GetSomeMojo_Pinterestmojo_Model_Config_ButtonType::OPTION1_VALUE): ?>
33
+ <a href="<?php echo $this->getPinUrl();?>" class="pin-it-button" data-pin-do="buttonPin" data-pin-config="<?php echo $this->getPinCount();?>">
34
+ <img src="<?php echo $this->_getPinButtonImageUrl() ?>" alt="Pin It" />
35
+ </a>
36
+ <?php elseif ($this->getButtonType() == GetSomeMojo_Pinterestmojo_Model_Config_ButtonType::OPTION2_VALUE): ?>
37
+ <a href="<?php echo $this->_getPinButtonAnchorUrl() ?>" data-pin-do="buttonBookmark">
38
+ <img src="<?php echo $this->_getPinButtonImageUrl() ?>" alt="Pin It" />
39
+ </a>
40
+ <?php endif ?>
41
+ </div>
42
 
43
+ <?php endif ?>
44
 
45
+ <?php endif ?>
 
 
 
 
package.xml CHANGED
@@ -1,21 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GetSomeMojo_Pinterestmojo</name>
4
- <version>1.1.5</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Adds the Pinterest Pin Button to the Product View page.</summary>
10
- <description>Increase SEO and your social presence by adding the Pinterest Pin button to your Product View pages. Back-end administration provides easy to use settings which allows you to enable or disable the extension, select how your 'pin count' is displayed and aligned on your page.</description>
11
- <notes>- Stable release&#xD;
12
- - Added Ability to Set Pin It Media Width&#xD;
13
- - Added Ability to Add Custom CSS Styling&#xD;
14
- - Added Ability to Show Product Price in Pin Description</notes>
15
- <authors><author><name>Mitch Robles, Jr.</name><user>auto-converted</user><email>info@getsomemojo.net</email></author></authors>
16
- <date>2012-03-30</date>
17
- <time>08:22:26</time>
18
- <contents><target name="mageetc"><dir name="modules"><file name="GetSomeMojo_Pinterestmojo.xml" hash="754937eada3236e4628ed37fb4d826d9"/></dir></target><target name="magelocal"><dir name="GetSomeMojo"><dir name="Pinterestmojo"><dir name="Block"><file name="PinterestButton.php" hash="9eab1c62dd3bcb1058ef35a164439e61"/></dir><dir name="Helper"><file name="Data.php" hash="85a5c493fc9c465fc63ee8a585f4fa58"/></dir><dir name="Model"><dir name="Config"><file name="PinCount.php" hash="ad3eacd95ed078ef0fc554819282802f"/></dir></dir><dir name="etc"><file name="config.xml" hash="d3e9a4d2070ea706fc67313df707ebbb"/><file name="system.xml" hash="abec90239b6b81524d088b3c9fa09ae7"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="getsomemojo"><dir name="pinterestmojo"><file name="pinterest.xml" hash="ab51d23536005c9ab35c77a7a9f106ed"/></dir></dir></dir><dir name="template"><dir name="getsomemojo"><dir name="pinterestmojo"><file name="pinterest_button.phtml" hash="a26e368400396bb0341578cc2567b833"/></dir></dir></dir></dir></dir></dir></target></contents>
 
19
  <compatible/>
20
- <dependencies/>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GetSomeMojo_Pinterestmojo</name>
4
+ <version>2.0.0</version>
5
  <stability>stable</stability>
6
+ <license uri="http://getsome.mojomage.com/license/">Custom</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Adds the Pinterest Pin Button to the Product View page.</summary>
10
+ <description>Increase SEO and your social presence by adding the Pinterest Pin button to your Product View pages. Back-end system configurations settings allow administrators to easily control the latest Pinterest Pin It Button features.</description>
11
+ <notes>- All the code has been refactored&#xD;
12
+ &lt;br /&gt;&#xD;
13
+ - Updated to match the latest Pinterest Pin It features&#xD;
14
+ &lt;br /&gt;&#xD;
15
+ - Stable release</notes>
16
+ <authors><author><name>Mitch Robles, Jr.</name><user>MojoMitch</user><email>info@getsomemojo.net</email></author></authors>
17
+ <date>2013-06-12</date>
18
+ <time>03:48:42</time>
19
+ <contents><target name="mageetc"><dir name="modules"><file name="GetSomeMojo_Pinterestmojo.xml" hash="754937eada3236e4628ed37fb4d826d9"/></dir></target><target name="magelocal"><dir name="GetSomeMojo"><dir name="Pinterestmojo"><dir name="Block"><file name="PinterestButton.php" hash="422fc91c24d84e77dbe3c087210059eb"/></dir><dir name="Helper"><file name="Data.php" hash="bb7343d9153708238cef41005c58ad06"/></dir><dir name="Model"><dir name="Config"><file name="Bn.php" hash="a7eea2937b14d9d3c8a169020c2deacf"/><file name="ButtonAlign.php" hash="a5a27aebb7ce1796fd0051b3540111c2"/><file name="ButtonType.php" hash="0c946e1b5fdf1a71cb86c93dd9dc5267"/><file name="PinCount.php" hash="7cb0d1cdf694e6079f7cd692ca6233d9"/></dir></dir><dir name="etc"><file name="config.xml" hash="b2bb68dbe036fe74fccea6b8861d8a0e"/><file name="system.xml" hash="4141d764f069e8342188e4b2c1707aad"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="getsomemojo"><dir name="pinterestmojo"><file name="pinterest.xml" hash="1d4e687512b5a3e4deccb79bdca13b11"/></dir></dir></dir><dir name="template"><dir name="getsomemojo"><dir name="pinterestmojo"><file name="pinterest_button.phtml" hash="242f6a1925e06cebfa7847a5450b8773"/></dir></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>