Magoch_Externlinks - Version 1.0.3

Version Notes

# minor changes

Download this release

Release Info

Developer Igor Ocheretnyi
Extension Magoch_Externlinks
Version 1.0.3
Comparing to
See all releases


Version 1.0.3

app/code/community/Magoch/Externlinks/Block/Adminhtml/Externlinks.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magoch.com
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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade this module to newer
18
+ * versions in the future.
19
+ *
20
+ * @category Administration
21
+ * @package Magoch_Externlinks
22
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
23
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
+ * @author Igor Ocheretnyi <support@magoch.com>
25
+ */
26
+ class Magoch_Externlinks_Block_Adminhtml_Externlinks extends Mage_Adminhtml_Block_Widget_Form {
27
+
28
+ public function __construct() {
29
+ $id = $this->getRequest()->getParam('id');
30
+ $uri = Mage::getStoreConfig("externlinks/default/menu_link$id");
31
+
32
+ // validate input parameter
33
+ if (!Zend_Uri::check($uri)) {
34
+ $uri = '';
35
+ //$this->addException("Expecting a valid 'uri' parameter");
36
+ }
37
+
38
+ $this->setTmpUrl($uri);
39
+ }
40
+ }
app/code/community/Magoch/Externlinks/Block/Adminhtml/Page/Menu.php ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Magoch.com
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade this module to newer
19
+ * versions in the future.
20
+ *
21
+ * @category Administration
22
+ * @package Magoch_Externlinks
23
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ * @author Igor Ocheretnyi <support@magoch.com>
26
+ */
27
+ class Magoch_Externlinks_Block_Adminhtml_Page_Menu extends Mage_Adminhtml_Block_Page_Menu {
28
+
29
+ protected $extraMenuLinks = 6;
30
+
31
+ /**
32
+ * Recursive Build Menu array
33
+ *
34
+ * @param Varien_Simplexml_Element $parent
35
+ * @param string $path
36
+ * @param int $level
37
+ * @return array
38
+ */
39
+ protected function _buildMenuArray(Varien_Simplexml_Element $parent=null, $path='', $level=0) {
40
+ if (is_null($parent)) {
41
+ $parent = Mage::getSingleton('admin/config')->getAdminhtmlConfig()->getNode('menu');
42
+ }
43
+
44
+ $parentArr = array();
45
+ $sortOrder = 0;
46
+ foreach ($parent->children() as $childName => $child) {
47
+ if (1 == $child->disabled) {
48
+ continue;
49
+ }
50
+
51
+ $aclResource = 'admin/' . ($child->resource ? (string) $child->resource : $path . $childName);
52
+ if (!$this->_checkAcl($aclResource)) {
53
+ continue;
54
+ }
55
+
56
+ if ($child->depends && !$this->_checkDepends($child->depends)) {
57
+ continue;
58
+ }
59
+
60
+ $menuArr = array();
61
+
62
+ $menuArr['label'] = $this->_getHelperValue($child);
63
+
64
+ $menuArr['sort_order'] = $child->sort_order ? (int) $child->sort_order : $sortOrder;
65
+
66
+ if ($child->action) {
67
+ $menuArr['url'] = $this->_url->getUrl((string) $child->action, array('_cache_secret_key' => true));
68
+ } else {
69
+ $menuArr['url'] = '#';
70
+ $menuArr['click'] = 'return false';
71
+ }
72
+
73
+ $menuArr['active'] = ($this->getActive() == $path . $childName)
74
+ || (strpos($this->getActive(), $path . $childName . '/') === 0);
75
+
76
+ $menuArr['level'] = $level;
77
+
78
+ if ($child->children) {
79
+ $menuArr['children'] = $this->_buildMenuArray($child->children, $path . $childName . '/', $level + 1);
80
+ }
81
+
82
+ if (Mage::getStoreConfig("externlinks/default/enabled")) {
83
+ if ($childName == 'dashboard') {
84
+
85
+ for ($i = 1, $n = $this->extraMenuLinks; $i <= $n; $i++) {
86
+ $link = Mage::getStoreConfig("externlinks/default/menu_link$i");
87
+ $title = Mage::getStoreConfig("externlinks/default/menu_title$i");
88
+
89
+ $link = trim($link);
90
+ $title = trim($title);
91
+
92
+ if ($link && $title) {
93
+
94
+ // validate input parameter
95
+ if (!Zend_Uri::check($link)) {
96
+ continue;
97
+ //$this->addException("Expecting a valid 'uri' parameter");
98
+ }
99
+
100
+ $mArr['label'] = $title;
101
+ $mArr['sort_order'] = $i * 10;
102
+ $mArr['url'] = $this->getUrl('externlinks/adminhtml_index/index/id/' . $i);
103
+ $mArr['active'] = 0;
104
+ $mArr['level'] = 1;
105
+ $menuArr['children']["sub_$i"] = $mArr;
106
+
107
+ unset($mArr);
108
+ }
109
+ }
110
+ }
111
+ }
112
+ $parentArr[$childName] = $menuArr;
113
+ $sortOrder++;
114
+ }
115
+
116
+ uasort($parentArr, array($this, '_sortMenu'));
117
+
118
+ while (list($key, $value) = each($parentArr)) {
119
+ $last = $key;
120
+ }
121
+ if (isset($last)) {
122
+ $parentArr[$last]['last'] = true;
123
+ }
124
+
125
+ return $parentArr;
126
+ }
127
+
128
+ }
app/code/community/Magoch/Externlinks/Helper/Data.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magoch.com
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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade this module to newer
18
+ * versions in the future.
19
+ *
20
+ * @category Administration
21
+ * @package Magoch_Externlinks
22
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
23
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
+ * @author Igor Ocheretnyi <support@magoch.com>
25
+ */
26
+ class Magoch_Externlinks_Helper_Data extends Mage_Core_Helper_Abstract
27
+ {
28
+
29
+ }
app/code/community/Magoch/Externlinks/controllers/Adminhtml/IndexController.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magoch.com
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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade this module to newer
18
+ * versions in the future.
19
+ *
20
+ * @category Administration
21
+ * @package Magoch_Externlinks
22
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
23
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
+ * @author Igor Ocheretnyi <support@magoch.com>
25
+ */
26
+ class Magoch_Externlinks_Adminhtml_IndexController extends Mage_Adminhtml_Controller_action {
27
+
28
+ public function indexAction() {
29
+
30
+
31
+ $this->loadLayout();
32
+ $this->renderLayout();
33
+
34
+ //$this->_initAction()->renderLayout();
35
+ }
36
+ }
app/code/community/Magoch/Externlinks/etc/adminhtml.xml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * Magoch.com
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade this module to newer
19
+ * versions in the future.
20
+ *
21
+ * @category Administration
22
+ * @package Magoch_Externlinks
23
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ * @author Igor Ocheretnyi <support@magoch.com>
26
+ */
27
+ -->
28
+ <config>
29
+ <translate>
30
+ <modules>
31
+ <Magoch_Externlinks>
32
+ <files>
33
+ <default>Magoch_Externlinks.csv</default>
34
+ </files>
35
+ </Magoch_Externlinks>
36
+ </modules>
37
+ </translate>
38
+ <acl>
39
+ <resources>
40
+ <admin>
41
+ <children>
42
+ <system>
43
+ <children>
44
+ <config>
45
+ <children>
46
+ <externlinks translate="title" module="externlinks">
47
+ <title>Extrenal Links</title>
48
+ <sort_order>70</sort_order>
49
+ </externlinks>
50
+ </children>
51
+ </config>
52
+ </children>
53
+ </system>
54
+ </children>
55
+ </admin>
56
+ </resources>
57
+ </acl>
58
+ </config>
app/code/community/Magoch/Externlinks/etc/config.xml ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * Magoch.com
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade this module to newer
19
+ * versions in the future.
20
+ *
21
+ * @category Administration
22
+ * @package Magoch_Externlinks
23
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ * @author Igor Ocheretnyi <support@magoch.com>
26
+ */
27
+ -->
28
+ <config>
29
+ <modules>
30
+ <Magoch_Externlinks>
31
+ <version>1.0.3</version>
32
+ </Magoch_Externlinks>
33
+ </modules>
34
+ <global>
35
+ <blocks>
36
+ <externlinks>
37
+ <class>Magoch_Externlinks_Block</class>
38
+ </externlinks>
39
+ <adminhtml>
40
+ <rewrite>
41
+ <page_menu>Magoch_Externlinks_Block_Adminhtml_Page_Menu</page_menu>
42
+ </rewrite>
43
+ </adminhtml>
44
+ </blocks>
45
+ <models>
46
+
47
+ </models>
48
+ <resources>
49
+
50
+ </resources>
51
+ <helpers>
52
+ <externlinks>
53
+ <class>Magoch_Externlinks_Helper</class>
54
+ </externlinks>
55
+ </helpers>
56
+ </global>
57
+ <admin>
58
+ <routers>
59
+ <externlinks>
60
+ <use>admin</use>
61
+ <args>
62
+ <module>Magoch_Externlinks</module>
63
+ <frontName>externlinks</frontName>
64
+ </args>
65
+ </externlinks>
66
+ </routers>
67
+ </admin>
68
+ <adminhtml>
69
+ <layout>
70
+ <updates>
71
+ <externlinks>
72
+ <file>magoch/externlinks.xml</file>
73
+ </externlinks>
74
+ </updates>
75
+ </layout>
76
+ </adminhtml>
77
+ <default>
78
+ <externlinks>
79
+ <default>
80
+ <menu_title1>Google Analytics</menu_title1>
81
+ <menu_link1>https://www.google.com/accounts/ServiceLogin?service=analytics</menu_link1>
82
+
83
+ <menu_title2>Clicky</menu_title2>
84
+ <menu_link2>http://getclicky.com/</menu_link2>
85
+
86
+ <menu_title3>MailChimp</menu_title3>
87
+ <menu_link3>http://www.mailchimp.com/</menu_link3>
88
+
89
+ <menu_title4>Fedex</menu_title4>
90
+ <menu_link4>http://fedex.com/dk/</menu_link4>
91
+ </default>
92
+ </externlinks>
93
+ </default>
94
+ </config>
app/code/community/Magoch/Externlinks/etc/system.xml ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * Magoch.com
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade this module to newer
19
+ * versions in the future.
20
+ *
21
+ * @category Administration
22
+ * @package Magoch_Externlinks
23
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ * @author Igor Ocheretnyi <support@magoch.com>
26
+ */
27
+ -->
28
+ <config>
29
+ <tabs>
30
+ <externlinks translate="label" module="externlinks">
31
+ <label>Magoch.com</label>
32
+ <sort_order>210</sort_order>
33
+ </externlinks>
34
+ </tabs>
35
+
36
+ <sections>
37
+ <externlinks translate="label" module="externlinks">
38
+ <tab>catalog</tab>
39
+ <label>External links</label>
40
+ <tab>externlinks</tab>
41
+ <frontend_type>text</frontend_type>
42
+ <sort_order>300</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>0</show_in_website>
45
+ <show_in_store>0</show_in_store>
46
+ <groups>
47
+ <default translate="label comment" module="externlinks">
48
+ <label>Defaults</label>
49
+ <comment><![CDATA[
50
+ <ul class="messages">
51
+ <li class="notice-msg">
52
+ <ul>
53
+ <li>'External Links' Module Provided by <a href="http://www.magoch.com">Magoch.com</a></li>
54
+ <li>If you are having any problems with 'External Links' Module then contact <a href="mailto:support@magoch.com">us</a>, please.
55
+ </li>
56
+ </ul>
57
+ </li>
58
+ </ul>
59
+ ]]>
60
+ </comment>
61
+ <frontend_type>text</frontend_type>
62
+ <sort_order>1</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
+ <fields>
67
+ <enabled translate="label">
68
+ <label>Enabled</label>
69
+ <frontend_type>select</frontend_type>
70
+ <source_model>adminhtml/system_config_source_yesno</source_model>
71
+ <sort_order>1</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
+ <comment><![CDATA[Enable / disable extension]]>
76
+ </comment>
77
+ </enabled>
78
+ <menu_title1 translate="label">
79
+ <label>Dashboard: menu item1</label>
80
+ <frontend_type>text</frontend_type>
81
+ <sort_order>20</sort_order>
82
+ <show_in_default>1</show_in_default>
83
+ <show_in_website>1</show_in_website>
84
+ <show_in_store>1</show_in_store>
85
+ <comment><![CDATA[Menu item title]]></comment>
86
+ </menu_title1>
87
+ <menu_link1 translate="label">
88
+ <label></label>
89
+ <frontend_type>text</frontend_type>
90
+ <sort_order>30</sort_order>
91
+ <show_in_default>1</show_in_default>
92
+ <show_in_website>1</show_in_website>
93
+ <show_in_store>1</show_in_store>
94
+ <comment><![CDATA[Link url]]></comment>
95
+ </menu_link1>
96
+ <menu_title2 translate="label">
97
+ <label>Dashboard: menu item2</label>
98
+ <frontend_type>text</frontend_type>
99
+ <sort_order>40</sort_order>
100
+ <show_in_default>1</show_in_default>
101
+ <show_in_website>1</show_in_website>
102
+ <show_in_store>1</show_in_store>
103
+ <comment><![CDATA[Menu item title]]></comment>
104
+ </menu_title2>
105
+ <menu_link2 translate="label">
106
+ <label></label>
107
+ <frontend_type>text</frontend_type>
108
+ <sort_order>50</sort_order>
109
+ <show_in_default>1</show_in_default>
110
+ <show_in_website>1</show_in_website>
111
+ <show_in_store>1</show_in_store>
112
+ <comment><![CDATA[Link url]]></comment>
113
+ </menu_link2>
114
+ <menu_title3 translate="label">
115
+ <label>Dashboard: menu item3</label>
116
+ <frontend_type>text</frontend_type>
117
+ <sort_order>60</sort_order>
118
+ <show_in_default>1</show_in_default>
119
+ <show_in_website>1</show_in_website>
120
+ <show_in_store>1</show_in_store>
121
+ <comment><![CDATA[Menu item title]]></comment>
122
+ </menu_title3>
123
+ <menu_link3 translate="label">
124
+ <label></label>
125
+ <frontend_type>text</frontend_type>
126
+ <sort_order>70</sort_order>
127
+ <show_in_default>1</show_in_default>
128
+ <show_in_website>1</show_in_website>
129
+ <show_in_store>1</show_in_store>
130
+ <comment><![CDATA[Link url]]></comment>
131
+ </menu_link3>
132
+ <menu_title4 translate="label">
133
+ <label>Dashboard: menu item4</label>
134
+ <frontend_type>text</frontend_type>
135
+ <sort_order>80</sort_order>
136
+ <show_in_default>1</show_in_default>
137
+ <show_in_website>1</show_in_website>
138
+ <show_in_store>1</show_in_store>
139
+ <comment><![CDATA[Menu item title]]></comment>
140
+ </menu_title4>
141
+ <menu_link4 translate="label">
142
+ <label></label>
143
+ <frontend_type>text</frontend_type>
144
+ <sort_order>90</sort_order>
145
+ <show_in_default>1</show_in_default>
146
+ <show_in_website>1</show_in_website>
147
+ <show_in_store>1</show_in_store>
148
+ <comment><![CDATA[Link url]]></comment>
149
+ </menu_link4>
150
+ <menu_title5 translate="label">
151
+ <label>Dashboard: menu item5</label>
152
+ <frontend_type>text</frontend_type>
153
+ <sort_order>100</sort_order>
154
+ <show_in_default>1</show_in_default>
155
+ <show_in_website>1</show_in_website>
156
+ <show_in_store>1</show_in_store>
157
+ <comment><![CDATA[Menu item title]]></comment>
158
+ </menu_title5>
159
+ <menu_link5 translate="label">
160
+ <label></label>
161
+ <frontend_type>text</frontend_type>
162
+ <sort_order>110</sort_order>
163
+ <show_in_default>1</show_in_default>
164
+ <show_in_website>1</show_in_website>
165
+ <show_in_store>1</show_in_store>
166
+ <comment><![CDATA[Link url]]></comment>
167
+ </menu_link5>
168
+ <menu_title6 translate="label">
169
+ <label>Dashboard: menu item6</label>
170
+ <frontend_type>text</frontend_type>
171
+ <sort_order>120</sort_order>
172
+ <show_in_default>1</show_in_default>
173
+ <show_in_website>1</show_in_website>
174
+ <show_in_store>1</show_in_store>
175
+ <comment><![CDATA[Menu item title]]></comment>
176
+ </menu_title6>
177
+ <menu_link6 translate="label">
178
+ <label></label>
179
+ <frontend_type>text</frontend_type>
180
+ <sort_order>130</sort_order>
181
+ <show_in_default>1</show_in_default>
182
+ <show_in_website>1</show_in_website>
183
+ <show_in_store>1</show_in_store>
184
+ <comment><![CDATA[Link url]]></comment>
185
+ </menu_link6>
186
+ </fields>
187
+ </default>
188
+ </groups>
189
+ </externlinks>
190
+ </sections>
191
+ </config>
app/design/adminhtml/default/default/layout/magoch/externlinks.xml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magoch.com
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade this module to newer
19
+ * versions in the future.
20
+ *
21
+ * @category Administration
22
+ * @package Magoch_Externlinks
23
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ * @author Igor Ocheretnyi <support@magoch.com>
26
+ */
27
+ -->
28
+ <layout version="0.1.0">
29
+ <externlinks_adminhtml_index_index>
30
+ <reference name="content">
31
+ <block ifconfig="externlinks/default/enabled" type="externlinks/adminhtml_externlinks" name="externlinks" template="magoch/externlinks.phtml" />
32
+ </reference>
33
+ </externlinks_adminhtml_index_index>
34
+ </layout>
app/design/adminhtml/default/default/template/magoch/externlinks.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magoch.com
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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade this module to newer
18
+ * versions in the future.
19
+ *
20
+ * @category Administration
21
+ * @package Magoch_Externlinks
22
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
23
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
+ * @author Igor Ocheretnyi <support@magoch.com>
25
+ */
26
+ ?>
27
+ <center>
28
+ <iframe src ="<?php if( $this->getTmpUrl() ): ?><?php echo $this->getTmpUrl();?><?php else: ?>http://getclicky.com/<?php endif;?>" width="100%" height="600">
29
+ <p>Your browser does not support iframes.</p>
30
+ </iframe>
31
+ </center>
app/etc/modules/Magoch_Externlinks.xml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * Magoch.com
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade this module to newer
19
+ * versions in the future.
20
+ *
21
+ * @category Administration
22
+ * @package Magoch_Externlinks
23
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ * @author Igor Ocheretnyi <support@magoch.com>
26
+ */
27
+ -->
28
+ <config>
29
+ <modules>
30
+ <Magoch_Externlinks>
31
+ <active>true</active>
32
+ <codePool>community</codePool>
33
+ </Magoch_Externlinks>
34
+ </modules>
35
+ </config>
package.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Magoch_Externlinks</name>
4
+ <version>1.0.3</version>
5
+ <stability>stable</stability>
6
+ <license>OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Project's external links (analitical, payments, marketing, shipping information) management info from backend.</summary>
10
+ <description>&lt;p&gt;&lt;span style="font-size: small; color: #555555;"&gt; Extension gives you a possibility to manager project's external links in one place.&lt;/span&gt;&lt;span style="font-size: small; color: #555555;"&gt;&lt;br /&gt;This useful magento extension provides an ease of use for your web-shop.&lt;/span&gt;&lt;span style="font-size: small; color: #555555;"&gt;&lt;br /&gt;It can be used in case you have external links with &lt;strong&gt;analitical, payments, marketing, tracking shipping information&lt;/strong&gt; like Google Analytics, Fedex, etc.&lt;/span&gt;&lt;/p&gt;&#xD;
11
+ &lt;p&gt;&lt;strong&gt;&lt;span style="font-size: medium; color: #ff6600;"&gt;With the extension you are free to:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size: small; color: #555555;"&gt; * - Add external links into Dashboard menu for Admin side.&lt;/span&gt;&lt;/p&gt;&#xD;
12
+ &lt;p&gt;&lt;strong&gt;&lt;span style="font-size: medium; color: #ff6600;"&gt;Also the extension:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size: small; color: #555555;"&gt;&amp;nbsp;&amp;nbsp; * - is easy to install (takes just a couple minutes)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small; color: #555555;"&gt;&amp;nbsp;&amp;nbsp; * - is 100% open source&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small; color: #555555;"&gt;&amp;nbsp;&amp;nbsp; * - free upgrades&lt;/span&gt;&lt;/p&gt;&#xD;
13
+ &lt;p&gt;&lt;strong&gt;&lt;span style="font-size: medium; color: #ff6600;"&gt;Release info:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size: small; color: #555555;"&gt;No files are replaced and no codding experience needed to install!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small; color: #555555;"&gt;To install:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small; color: #555555;"&gt;&amp;nbsp;&amp;nbsp; 1. Install extension using magento connect.&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: small; color: #555555;"&gt;&amp;nbsp;&amp;nbsp; 2. Navigation to System &amp;gt; Configuration &amp;gt; .....Magoch.com &amp;gt; External links ... and enable extension.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small; color: #555555;"&gt;&amp;nbsp;&amp;nbsp; 3. Log out from admin and login again.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small; color: #555555;"&gt;&amp;nbsp;&amp;nbsp; 4. Enjoy after opening Dashboard sub menu with your links.&lt;/span&gt;&lt;/p&gt;&#xD;
14
+ &lt;p&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #ff6600;"&gt;&lt;strong&gt;Visit Extension Page:&lt;/strong&gt;&lt;/span&gt; &lt;a href="http://demo.magoch.com/admin/"&gt;http://demo.magoch.com/admin/&lt;/a&gt;&lt;br /&gt; user: externlink&lt;br /&gt; password: magoch1 &lt;/span&gt;&lt;/p&gt;</description>
15
+ <notes># minor changes</notes>
16
+ <authors><author><name>Igor Ocheretnyi</name><user>magochdotcom</user><email>magento@magoch.com</email></author></authors>
17
+ <date>2011-06-01</date>
18
+ <time>15:03:56</time>
19
+ <contents><target name="mageetc"><dir name="modules"><file name="Magoch_Externlinks.xml" hash="88a8912ca4b8eaf75b00c5c242006385"/></dir></target><target name="magecommunity"><dir><dir name="Magoch"><dir><dir name="Externlinks"><dir name="Block"><dir name="Adminhtml"><file name="Externlinks.php" hash="f9cc1326e3ddcb1760399ea36d571fbb"/><dir name="Page"><file name="Menu.php" hash="e73d7776796fb8ce762f041ea5220195"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="c2fae96d5810ef8a616b62dc9f89997b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="3222846cc9c01ed7015a7aaa99e91429"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="627f3c8d9eaadd953d5562e48effb2b4"/><file name="config.xml" hash="b935ddf8fc2a19f5fd71f888425c10c4"/><file name="system.xml" hash="af1499e0240fb153d46810096d301893"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="magoch"><file name="externlinks.xml" hash="0d744ca78cde00829c0db229f5688188"/></dir></dir><dir name="template"><dir name="magoch"><file name="externlinks.phtml" hash="57919a608034a93502076adb7d5ed0fe"/></dir></dir></dir></dir></dir></target></contents>
20
+ <compatible/>
21
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
+ </package>