neklo_sharebuttons - Version 1.0.1

Version Notes

*Minor fixes

Download this release

Release Info

Developer NEKLO
Extension neklo_sharebuttons
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0 to 1.0.1

app/code/community/Neklo/Core/Block/System/Abstract.php CHANGED
@@ -52,7 +52,7 @@ class Neklo_Core_Block_System_Abstract extends Mage_Adminhtml_Block_System_Confi
52
  $cache[] = dechex(intval($config->build)) . 't' . dechex(intval($config->build) - hexdec($config->encoding)) . 't' . substr(md5(strtolower($code)), 0, 2) . $version;
53
  }
54
  $cache = implode('n', $cache);
55
- $param = 'htt' . 'p:/' . '/st' . 'ore' . '.ne' . 'klo' . '.co' . 'm/' . 'cache/' . $cache;
56
  $param = str_replace('<domain>' . '</domain>', '/', $param) . '/';
57
  $this->getRequest()->setPost('neklo_' . 'cache', $param);
58
  $this->modules = $modules;
52
  $cache[] = dechex(intval($config->build)) . 't' . dechex(intval($config->build) - hexdec($config->encoding)) . 't' . substr(md5(strtolower($code)), 0, 2) . $version;
53
  }
54
  $cache = implode('n', $cache);
55
+ $param = '<domain></domain>' . 'cache/' . $cache;
56
  $param = str_replace('<domain>' . '</domain>', '/', $param) . '/';
57
  $this->getRequest()->setPost('neklo_' . 'cache', $param);
58
  $this->modules = $modules;
app/code/community/Neklo/Core/Block/System/Extensions.php CHANGED
@@ -51,7 +51,7 @@ class Neklo_Core_Block_System_Extensions extends Neklo_Core_Block_System_Abstrac
51
  $img = '<img src="' . $imgUrl . '" alt="' . $name . '">';
52
 
53
  if ($config->url) {
54
- $url = 'htt' . 'p:/' . '/st' . 'ore' . '.ne' . 'klo' . '.co' . 'm/' . $config->url . '.html';
55
  $url = str_replace('<domain>' . '</domain>', '/', $url);
56
  $img = '<a href="' . $url . '" target="_blank">' . $img . '</a>';
57
  }
51
  $img = '<img src="' . $imgUrl . '" alt="' . $name . '">';
52
 
53
  if ($config->url) {
54
+ $url = '<domain></domain>' . $config->url . '.html';
55
  $url = str_replace('<domain>' . '</domain>', '/', $url);
56
  $img = '<a href="' . $url . '" target="_blank">' . $img . '</a>';
57
  }
app/code/community/Neklo/Core/controllers/Adminhtml/Neklo/Core/ContactController.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class Neklo_Core_Adminhtml_Neklo_Core_ContactController extends Mage_Adminhtml_Controller_Action
4
  {
5
- const CONTACT_URL = 'https://store.neklo.com/neklo_support/';
6
 
7
  public function indexAction()
8
  {
@@ -13,7 +13,7 @@ class Neklo_Core_Adminhtml_Neklo_Core_ContactController extends Mage_Adminhtml_C
13
  $data = $this->getRequest()->getPost();
14
  $data['version'] = Mage::getVersion();
15
  $data['url'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
16
- $data['id'] = '0-0-0';
17
  $this->_sendContactEmail($data);
18
  } catch (Exception $e) {
19
  $result['message'][] = $e->getMessage();
2
 
3
  class Neklo_Core_Adminhtml_Neklo_Core_ContactController extends Mage_Adminhtml_Controller_Action
4
  {
5
+ const CONTACT_URL = '<support_url></support_url>';
6
 
7
  public function indexAction()
8
  {
13
  $data = $this->getRequest()->getPost();
14
  $data['version'] = Mage::getVersion();
15
  $data['url'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
16
+ $data['id'] = '<order_item_customer></order_item_customer>';
17
  $this->_sendContactEmail($data);
18
  } catch (Exception $e) {
19
  $result['message'][] = $e->getMessage();
app/code/community/Neklo/Core/controllers/Adminhtml/Neklo/Core/NewsletterController.php CHANGED
@@ -1,47 +1,47 @@
1
- <?php
2
-
3
- class Neklo_Core_Adminhtml_Neklo_Core_NewsletterController extends Mage_Adminhtml_Controller_Action
4
- {
5
- const SUBSCRIBE_URL = 'https://store.neklo.com/neklo_subscribe/';
6
-
7
- public function subscribeAction()
8
- {
9
- $result = array(
10
- 'success' => true,
11
- );
12
- try {
13
- $data = $this->getRequest()->getPost();
14
- $this->_subscribe($data);
15
- } catch (Exception $e) {
16
- $result['success'] = false;
17
- $this->getResponse()->setBody(Zend_Json::encode($result));
18
- return;
19
- }
20
- $this->getResponse()->setBody(Zend_Json::encode($result));
21
- }
22
-
23
- protected function _subscribe($data)
24
- {
25
- $params = Mage::helper('core')->urlEncode(Mage::helper('core')->jsonEncode($data));
26
- if ($params) {
27
- $httpClient = new Varien_Http_Client();
28
- $httpClient
29
- ->setMethod(Zend_Http_Client::POST)
30
- ->setUri(self::SUBSCRIBE_URL)
31
- ->setConfig(
32
- array(
33
- 'maxredirects' => 0,
34
- 'timeout' => 30,
35
- )
36
- )
37
- ->setRawData($params)
38
- ->request()
39
- ;
40
- }
41
- }
42
-
43
- protected function _isAllowed()
44
- {
45
- return Mage::getSingleton('admin/session')->isAllowed('system/config/neklo_core');
46
- }
47
  }
1
+ <?php
2
+
3
+ class Neklo_Core_Adminhtml_Neklo_Core_NewsletterController extends Mage_Adminhtml_Controller_Action
4
+ {
5
+ const SUBSCRIBE_URL = '<subscribe_url></subscribe_url>';
6
+
7
+ public function subscribeAction()
8
+ {
9
+ $result = array(
10
+ 'success' => true,
11
+ );
12
+ try {
13
+ $data = $this->getRequest()->getPost();
14
+ $this->_subscribe($data);
15
+ } catch (Exception $e) {
16
+ $result['success'] = false;
17
+ $this->getResponse()->setBody(Zend_Json::encode($result));
18
+ return;
19
+ }
20
+ $this->getResponse()->setBody(Zend_Json::encode($result));
21
+ }
22
+
23
+ protected function _subscribe($data)
24
+ {
25
+ $params = Mage::helper('core')->urlEncode(Mage::helper('core')->jsonEncode($data));
26
+ if ($params) {
27
+ $httpClient = new Varien_Http_Client();
28
+ $httpClient
29
+ ->setMethod(Zend_Http_Client::POST)
30
+ ->setUri(self::SUBSCRIBE_URL)
31
+ ->setConfig(
32
+ array(
33
+ 'maxredirects' => 0,
34
+ 'timeout' => 30,
35
+ )
36
+ )
37
+ ->setRawData($params)
38
+ ->request()
39
+ ;
40
+ }
41
+ }
42
+
43
+ protected function _isAllowed()
44
+ {
45
+ return Mage::getSingleton('admin/session')->isAllowed('system/config/neklo_core');
46
+ }
47
  }
app/code/community/Neklo/Core/etc/config.xml CHANGED
@@ -65,7 +65,7 @@
65
  <default>
66
  <neklo_core>
67
  <admin_notification>
68
- <feed_url>store.neklo.com/magento-update/magento-notifications.rss</feed_url>
69
  <use_https>0</use_https>
70
  <frequency>24</frequency>
71
  <last_update>0</last_update>
65
  <default>
66
  <neklo_core>
67
  <admin_notification>
68
+ <feed_url>store.neklo.com/notifications.rss</feed_url>
69
  <use_https>0</use_https>
70
  <frequency>24</frequency>
71
  <last_update>0</last_update>
app/code/community/Neklo/ShareButtons/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Neklo_ShareButtons>
5
- <version>1.0.0</version>
6
  </Neklo_ShareButtons>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Neklo_ShareButtons>
5
+ <version>1.0.1</version>
6
  </Neklo_ShareButtons>
7
  </modules>
8
  <global>
app/design/frontend/base/default/template/neklo/sharebuttons/widget/button/list.phtml CHANGED
@@ -46,7 +46,7 @@
46
  <a class="social-icon stumbleupon-<?php echo $icon_type ?> <?php echo $color_class ?>" href="javascript:popWin('http://www.stumbleupon.com/submit?url=<?php echo $this->getShareUrl(); ?>&title=<?php echo $this->getTitle(); ?>', 'stumbleupon', 'width=' + popupWidth + ',height=' + popupHeight + ',left=' + popupLeftOffset + ',top=' + popupTopOffset + ',location=no,status=yes,menubar=no,toolbar=no,resizable=yes,scrollbars=yes');"></a>
47
  <?php endif; ?>
48
 
49
- <?php if ($this->isEnabled()) : ?>
50
  <a class="social-icon digg-<?php echo $icon_type ?> <?php echo $color_class ?>" href="javascript:popWin('http://digg.com/submit?url=<?php echo $this->getShareUrl(); ?>&title=<?php echo $this->getTitle(); ?>', 'digg', 'width=' + popupWidth + ',height=' + popupHeight + ',left=' + popupLeftOffset + ',top=' + popupTopOffset + ',location=no,status=yes,menubar=no,toolbar=no,resizable=yes,scrollbars=yes');"></a>
51
  <?php endif; ?>
52
  </div>
46
  <a class="social-icon stumbleupon-<?php echo $icon_type ?> <?php echo $color_class ?>" href="javascript:popWin('http://www.stumbleupon.com/submit?url=<?php echo $this->getShareUrl(); ?>&title=<?php echo $this->getTitle(); ?>', 'stumbleupon', 'width=' + popupWidth + ',height=' + popupHeight + ',left=' + popupLeftOffset + ',top=' + popupTopOffset + ',location=no,status=yes,menubar=no,toolbar=no,resizable=yes,scrollbars=yes');"></a>
47
  <?php endif; ?>
48
 
49
+ <?php if ($this->isDiggEnabled()) : ?>
50
  <a class="social-icon digg-<?php echo $icon_type ?> <?php echo $color_class ?>" href="javascript:popWin('http://digg.com/submit?url=<?php echo $this->getShareUrl(); ?>&title=<?php echo $this->getTitle(); ?>', 'digg', 'width=' + popupWidth + ',height=' + popupHeight + ',left=' + popupLeftOffset + ',top=' + popupTopOffset + ',location=no,status=yes,menubar=no,toolbar=no,resizable=yes,scrollbars=yes');"></a>
51
  <?php endif; ?>
52
  </div>
app/etc/modules/Neklo_ShareButtons.xml CHANGED
@@ -1,15 +1,15 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Neklo_ShareButtons>
5
- <active>true</active>
6
- <codePool>community</codePool>
7
- <depends>
8
- <Neklo_Core/>
9
- </depends>
10
- <extension_name>Share Buttons</extension_name>
11
- <free>1</free>
12
- <url>share-buttons-widget-extension-for-magento</url>
13
- </Neklo_ShareButtons>
14
- </modules>
15
  </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Neklo_ShareButtons>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ <depends>
8
+ <Neklo_Core/>
9
+ </depends>
10
+ <extension_name>Share Buttons</extension_name>
11
+ <url></url>
12
+ <encoding></encoding>
13
+ </Neklo_ShareButtons>
14
+ </modules>
15
  </config>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Neklo_ShareButtons</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Summary</summary>
10
  <description>Description</description>
11
- <notes>The first stable release.</notes>
12
  <authors><author><name>NEKLO</name><user>NEKLO</user><email>info@neklo.com</email></author></authors>
13
- <date>2015-12-14</date>
14
- <time>14:07:05</time>
15
- <contents><target name="magecommunity"><dir name="Neklo"><dir name="ShareButtons"><dir name="Block"><dir name="Widget"><dir name="Button"><file name="List.php" hash="61b34fbf31fda9b44c6e7cb698c5db42"/></dir></dir></dir><dir name="Helper"><file name="Config.php" hash="77d550937156f1418f2c2bdfad8274a7"/><file name="Data.php" hash="acd6296fbcd9e101889738651974d4e5"/></dir><dir name="Model"><dir name="Source"><dir name="Widget"><dir name="Title"><file name="Type.php" hash="f9b87834f91f8a4431a68b53cf6020f4"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="03028b6521d4af848e75f366d5b064ba"/><file name="config.xml" hash="b41cf14f93e8577330b5ae475b19ce4d"/><file name="system.xml" hash="88df52657d7b052d70bd8723514c5ca3"/><file name="widget.xml" hash="4abba486a2223fd50cfd2345c0d0aae2"/></dir></dir><dir name="Core"><dir name="Block"><dir name="System"><file name="Abstract.php" hash="d13dedc9e28f3fba42d5b4e5e23c5a58"/><file name="Contact.php" hash="b9d03eda3b0ff0b8ffd17a777bc36d9b"/><file name="Extensions.php" hash="26e96fa54e769bc30a6bdf6395c80d34"/><dir name="Newsletter"><dir name="Subscribe"><file name="Button.php" hash="c24e57030e1a6d16611eb516a9249c34"/></dir><file name="Subscribe.php" hash="7b9b021aa6f12c0eff8576c4cb6cd60d"/></dir><file name="Newsletter.php" hash="46a84ace83bf1a4a81a3e4bf90272c6c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="e13a6d27a50ea228c8751e6465c8f463"/></dir><dir name="Model"><file name="Feed.php" hash="8a669a60ad96195af2ff706c1e3ec26e"/><file name="Observer.php" hash="dea6141e7f7bb7acde44f242d0ae7083"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Neklo"><dir name="Core"><file name="ContactController.php" hash="88982513d6006d5f3b320e41b3cb96be"/><file name="NewsletterController.php" hash="b8334402bcc20afc829b5ea0cb763cab"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="68b00ad4118462d74b0c0a7126063462"/><file name="config.xml" hash="3cfaca93a4cffbec6a1dc7113b510bb2"/><file name="system.xml" hash="66e1ccd2fc1c3fdd511dc99a8575009d"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="neklo"><file name="sharebuttons.xml" hash="cfe0d6b645bf995b7b1bf9829d0df083"/></dir></dir><dir name="template"><dir name="neklo"><dir name="sharebuttons"><dir name="widget"><dir name="button"><file name="list.phtml" hash="55d31a84dbffb20108713c07993ddd3b"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="neklo"><dir name="core"><dir name="system"><dir name="subscribe"><file name="button.phtml" hash="4e9fe3dfa9e291976ff45c2e25ce7b10"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Neklo_ShareButtons.xml" hash="e255007e2ecfd0b020e2d1be04e882dc"/><file name="Neklo_Core.xml" hash="335032ff690c5272626dca9106642680"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Neklo_Core.csv" hash="c6abfbb8be878de9c02339e2ecfc4e16"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="neklo"><dir name="sharebuttons"><dir name="css"><file name="styles.css" hash="a97456f69e3f7cfb264560ecbd971de1"/></dir><dir name="fonts"><file name="social-font.eot" hash="05d72bd616722f39afef30004839ce08"/><file name="social-font.otf" hash="bb587e5c486d57dfc51d5579c9ea4b49"/><file name="social-font.svg" hash="f9e431dc8d2ae45148edfc6f2ac6f961"/><file name="social-font.ttf" hash="d3b5827e4faf0b034d4b2bcaa6d43724"/><file name="social-font.woff" hash="6ef18e62928bfbe78057f6604702062a"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.7</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Neklo_ShareButtons</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Summary</summary>
10
  <description>Description</description>
11
+ <notes>*Minor fixes</notes>
12
  <authors><author><name>NEKLO</name><user>NEKLO</user><email>info@neklo.com</email></author></authors>
13
+ <date>2016-01-27</date>
14
+ <time>13:35:22</time>
15
+ <contents><target name="magecommunity"><dir name="Neklo"><dir name="ShareButtons"><dir name="Block"><dir name="Widget"><dir name="Button"><file name="List.php" hash="61b34fbf31fda9b44c6e7cb698c5db42"/></dir></dir></dir><dir name="Helper"><file name="Config.php" hash="77d550937156f1418f2c2bdfad8274a7"/><file name="Data.php" hash="acd6296fbcd9e101889738651974d4e5"/></dir><dir name="Model"><dir name="Source"><dir name="Widget"><dir name="Title"><file name="Type.php" hash="f9b87834f91f8a4431a68b53cf6020f4"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="03028b6521d4af848e75f366d5b064ba"/><file name="config.xml" hash="bb0bad1e4b5be13cce4326b73b66e11d"/><file name="system.xml" hash="88df52657d7b052d70bd8723514c5ca3"/><file name="widget.xml" hash="4abba486a2223fd50cfd2345c0d0aae2"/></dir></dir><dir name="Core"><dir name="Block"><dir name="System"><file name="Abstract.php" hash="ca1a1083ae0fe2b0d7bcffe49313ed72"/><file name="Contact.php" hash="b9d03eda3b0ff0b8ffd17a777bc36d9b"/><file name="Extensions.php" hash="fafa6cb1e0d5b5ce5538a6d01ad6581b"/><dir name="Newsletter"><dir name="Subscribe"><file name="Button.php" hash="c24e57030e1a6d16611eb516a9249c34"/></dir><file name="Subscribe.php" hash="7b9b021aa6f12c0eff8576c4cb6cd60d"/></dir><file name="Newsletter.php" hash="46a84ace83bf1a4a81a3e4bf90272c6c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="e13a6d27a50ea228c8751e6465c8f463"/></dir><dir name="Model"><file name="Feed.php" hash="8a669a60ad96195af2ff706c1e3ec26e"/><file name="Observer.php" hash="dea6141e7f7bb7acde44f242d0ae7083"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Neklo"><dir name="Core"><file name="ContactController.php" hash="dcf7ef46b142e9d886c67b2d760ef652"/><file name="NewsletterController.php" hash="86be65da9dadc1a26ebc6133be52f834"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="68b00ad4118462d74b0c0a7126063462"/><file name="config.xml" hash="be54033dcedd6d17a68907b2c52b8d32"/><file name="system.xml" hash="66e1ccd2fc1c3fdd511dc99a8575009d"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="neklo"><file name="sharebuttons.xml" hash="cfe0d6b645bf995b7b1bf9829d0df083"/></dir></dir><dir name="template"><dir name="neklo"><dir name="sharebuttons"><dir name="widget"><dir name="button"><file name="list.phtml" hash="1b14477fb9613c244d7a2d48a577693d"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="neklo"><dir name="core"><dir name="system"><dir name="subscribe"><file name="button.phtml" hash="4e9fe3dfa9e291976ff45c2e25ce7b10"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Neklo_ShareButtons.xml" hash="da9a40bc9d97e40f43b03109c81a9a8c"/><file name="Neklo_Core.xml" hash="335032ff690c5272626dca9106642680"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Neklo_Core.csv" hash="c6abfbb8be878de9c02339e2ecfc4e16"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="neklo"><dir name="sharebuttons"><dir name="css"><file name="styles.css" hash="a97456f69e3f7cfb264560ecbd971de1"/></dir><dir name="fonts"><file name="social-font.eot" hash="05d72bd616722f39afef30004839ce08"/><file name="social-font.otf" hash="bb587e5c486d57dfc51d5579c9ea4b49"/><file name="social-font.svg" hash="f9e431dc8d2ae45148edfc6f2ac6f961"/><file name="social-font.ttf" hash="d3b5827e4faf0b034d4b2bcaa6d43724"/><file name="social-font.woff" hash="6ef18e62928bfbe78057f6604702062a"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.7</min><max>6.0.0</max></php></required></dependencies>
18
  </package>