Version Notes
0.1.0 - 0.2.0
- Add/Remove option for My Account > My Applications
- Add/Remove option for My Account > Log Out
- Add/Remove option for My Account > Store Credit (EE only)
- Add/Remove option for My Account > Gift Card (EE only)
- Add/Remove option for My Account > Gift Registry (EE only)
- Add/Remove option for My Account > Reward Points (EE only)
- Add/Remove option for My Account > My Invitations (EE only)
- Add/Remove option for Footer > Orders and Returns
- Add/Remove option for Footer > Rss
- Overriding of catalog navigation template only if Home link is enabled
Download this release
Release Info
Developer | MagePsycho |
Extension | Frontend_Links_Manager |
Version | 0.2.0 |
Comparing to | |
See all releases |
Code changes from version 0.1.0 to 0.2.0
- app/code/local/MagePsycho/Xmllinks/Block/Account/Navigation.php +8 -7
- app/code/local/MagePsycho/Xmllinks/Block/Checkout/Links.php +0 -22
- app/code/local/MagePsycho/Xmllinks/Block/System/Config/Heading.php +23 -0
- app/code/local/MagePsycho/Xmllinks/Block/System/Config/Info.php +9 -6
- app/code/local/MagePsycho/Xmllinks/Block/Xmllinks.php +1 -1
- app/code/local/MagePsycho/Xmllinks/Helper/Data.php +11 -8
- app/code/local/MagePsycho/Xmllinks/Model/System/Config/Source/Noyes.php +18 -0
- app/code/local/MagePsycho/Xmllinks/Model/System/Config/Source/Yesno.php +7 -7
- app/code/local/MagePsycho/Xmllinks/Model/Xmllinks.php +1 -1
- app/code/local/MagePsycho/Xmllinks/controllers/IndexController.php +1 -1
- app/code/local/MagePsycho/Xmllinks/etc/adminhtml.xml +1 -1
- app/code/local/MagePsycho/Xmllinks/etc/config.xml +11 -8
- app/code/local/MagePsycho/Xmllinks/etc/system.xml +93 -3
- app/design/frontend/default/default/layout/xmllinks.xml +20 -3
- app/etc/modules/MagePsycho_Xmllinks.xml +1 -1
- package.xml +19 -9
app/code/local/MagePsycho/Xmllinks/Block/Account/Navigation.php
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
class MagePsycho_Xmllinks_Block_Account_Navigation extends Mage_Customer_Block_Account_Navigation
|
3 |
{
|
4 |
-
/**
|
5 |
-
* Removes link by name
|
6 |
-
*
|
7 |
-
* @param string $name
|
8 |
-
* @return Mage_Page_Block_Template_Links
|
9 |
-
*/
|
10 |
public function removeLinkByName($name)
|
11 |
{
|
12 |
foreach ($this->_links as $k => $v) {
|
@@ -16,4 +17,4 @@ class MagePsycho_Xmllinks_Block_Account_Navigation extends Mage_Customer_Block_A
|
|
16 |
}
|
17 |
return $this;
|
18 |
}
|
19 |
-
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @category MagePsycho
|
4 |
+
* @package MagePsycho_Xmllinks
|
5 |
+
* @author magepsycho@gmail.com
|
6 |
+
* @website http://www.magepsycho.com
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
class MagePsycho_Xmllinks_Block_Account_Navigation extends Mage_Customer_Block_Account_Navigation
|
10 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
public function removeLinkByName($name)
|
12 |
{
|
13 |
foreach ($this->_links as $k => $v) {
|
17 |
}
|
18 |
return $this;
|
19 |
}
|
20 |
+
}
|
app/code/local/MagePsycho/Xmllinks/Block/Checkout/Links.php
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class MagePsycho_Xmllinks_Block_Checkout_Links extends Mage_Checkout_Block_Links
|
3 |
-
{
|
4 |
-
public function addCheckoutLink()
|
5 |
-
{
|
6 |
-
/*$helper = Mage::helper('xmllinks');
|
7 |
-
if($helper->isActive() && $helper->getConfig('checkout', 'top_links') == 1){
|
8 |
-
return null;
|
9 |
-
}*/
|
10 |
-
|
11 |
-
if (!$this->helper('checkout')->canOnepageCheckout()) {
|
12 |
-
return $this;
|
13 |
-
}
|
14 |
-
|
15 |
-
$parentBlock = $this->getParentBlock();
|
16 |
-
if ($parentBlock && Mage::helper('core')->isModuleOutputEnabled('Mage_Checkout')) {
|
17 |
-
$text = $this->__('Checkout');
|
18 |
-
$parentBlock->addLink($text, 'checkout', $text, true, array(), 60, null, 'class="top-link-checkout"');
|
19 |
-
}
|
20 |
-
return $this;
|
21 |
-
}
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MagePsycho/Xmllinks/Block/System/Config/Heading.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @category MagePsycho
|
4 |
+
* @package MagePsycho_Xmllinks
|
5 |
+
* @author magepsycho@gmail.com
|
6 |
+
* @website http://www.magepsycho.com
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
class MagePsycho_Xmllinks_Block_System_Config_Heading extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
|
10 |
+
{
|
11 |
+
/**
|
12 |
+
* Render element html
|
13 |
+
*
|
14 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
15 |
+
* @return string
|
16 |
+
*/
|
17 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
18 |
+
{
|
19 |
+
return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4>%s</h4></td></tr>',
|
20 |
+
$element->getHtmlId(), $element->getLabel()
|
21 |
+
);
|
22 |
+
}
|
23 |
+
}
|
app/code/local/MagePsycho/Xmllinks/Block/System/Config/Info.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @category MagePsycho
|
4 |
* @package MagePsycho_Xmllinks
|
5 |
-
* @author
|
6 |
* @website http://www.magepsycho.com
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
@@ -21,13 +21,16 @@ class MagePsycho_Xmllinks_Block_System_Config_Info
|
|
21 |
{
|
22 |
$html = '<div style="background:url(\'http://www.magepsycho.com/_logo.png\') no-repeat scroll 15px center #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 200px;">
|
23 |
<h4>About MagePsycho</h4>
|
24 |
-
<p>
|
25 |
View more extensions @ <a href="http://www.magentocommerce.com/magento-connect/developer/MagePsycho" target="_blank">MagentoConnect</a><br />
|
26 |
<a href="http://www.magepsycho.com/contacts" target="_blank">Request a Quote / Contact Us</a><br />
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
31 |
</div>';
|
32 |
|
33 |
return $html;
|
2 |
/**
|
3 |
* @category MagePsycho
|
4 |
* @package MagePsycho_Xmllinks
|
5 |
+
* @author magepsycho@gmail.com
|
6 |
* @website http://www.magepsycho.com
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
21 |
{
|
22 |
$html = '<div style="background:url(\'http://www.magepsycho.com/_logo.png\') no-repeat scroll 15px center #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 200px;">
|
23 |
<h4>About MagePsycho</h4>
|
24 |
+
<p>Zend PHP5 Certified Engineer, Magento Certified Developer, Magento Moderator, Freelancer with specialization in web applications (CMS, E-Commerce, ERP etc.).<br /><br />
|
25 |
View more extensions @ <a href="http://www.magentocommerce.com/magento-connect/developer/MagePsycho" target="_blank">MagentoConnect</a><br />
|
26 |
<a href="http://www.magepsycho.com/contacts" target="_blank">Request a Quote / Contact Us</a><br />
|
27 |
+
<table width="100%">
|
28 |
+
<tr><td width="70px">Skype:</td><td>magentopycho</td></tr>
|
29 |
+
<tr><td>Email:</td><td><a href="mailto:info@magepsycho.com">info@magepsycho.com</a></td></tr>
|
30 |
+
<tr><td>Follow:</td><td><a href="http://twitter.com/magepsycho" target="_blank">@magepsycho</a></td></tr>
|
31 |
+
<tr><td>Website:</td><td><a href="http://www.magepsycho.com" target="_blank">www.magespycho.com</a></td></tr>
|
32 |
+
<tr><td>Blog:</td><td><a href="http://www.blog.magepsycho.com" target="_blank">www.blog.magepsycho.com</a></td></tr>
|
33 |
+
</table>
|
34 |
</div>';
|
35 |
|
36 |
return $html;
|
app/code/local/MagePsycho/Xmllinks/Block/Xmllinks.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @category MagePsycho
|
4 |
* @package MagePsycho_Xmllinks
|
5 |
-
* @author
|
6 |
* @website http://www.magepsycho.com
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
2 |
/**
|
3 |
* @category MagePsycho
|
4 |
* @package MagePsycho_Xmllinks
|
5 |
+
* @author magepsycho@gmail.com
|
6 |
* @website http://www.magepsycho.com
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
app/code/local/MagePsycho/Xmllinks/Helper/Data.php
CHANGED
@@ -2,13 +2,14 @@
|
|
2 |
/**
|
3 |
* @category MagePsycho
|
4 |
* @package MagePsycho_Xmllinks
|
5 |
-
* @author
|
6 |
* @website http://www.magepsycho.com
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class MagePsycho_Xmllinks_Helper_Data extends Mage_Core_Helper_Abstract
|
10 |
{
|
11 |
-
public function getConfig($field, $section = 'option', $default = null)
|
|
|
12 |
$value = Mage::getStoreConfig('xmllinks/'.$section.'/'.$field);
|
13 |
if(!isset($value) or trim($value) == ''){
|
14 |
return $default;
|
@@ -17,11 +18,12 @@ class MagePsycho_Xmllinks_Helper_Data extends Mage_Core_Helper_Abstract
|
|
17 |
}
|
18 |
}
|
19 |
|
20 |
-
public function log($data)
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
25 |
}
|
26 |
|
27 |
public function getUrl($route, $params = array())
|
@@ -29,7 +31,8 @@ class MagePsycho_Xmllinks_Helper_Data extends Mage_Core_Helper_Abstract
|
|
29 |
return $this->_getUrl($route, $params);
|
30 |
}
|
31 |
|
32 |
-
public function isActive()
|
|
|
33 |
return $this->getConfig('active');
|
34 |
}
|
35 |
}
|
2 |
/**
|
3 |
* @category MagePsycho
|
4 |
* @package MagePsycho_Xmllinks
|
5 |
+
* @author magepsycho@gmail.com
|
6 |
* @website http://www.magepsycho.com
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class MagePsycho_Xmllinks_Helper_Data extends Mage_Core_Helper_Abstract
|
10 |
{
|
11 |
+
public function getConfig($field, $section = 'option', $default = null)
|
12 |
+
{
|
13 |
$value = Mage::getStoreConfig('xmllinks/'.$section.'/'.$field);
|
14 |
if(!isset($value) or trim($value) == ''){
|
15 |
return $default;
|
18 |
}
|
19 |
}
|
20 |
|
21 |
+
public function log($data)
|
22 |
+
{
|
23 |
+
if(!$this->getConfig('enable_log')){
|
24 |
+
return;
|
25 |
+
}
|
26 |
+
Mage::log($data, null, 'xmllinks.log', true);
|
27 |
}
|
28 |
|
29 |
public function getUrl($route, $params = array())
|
31 |
return $this->_getUrl($route, $params);
|
32 |
}
|
33 |
|
34 |
+
public function isActive()
|
35 |
+
{
|
36 |
return $this->getConfig('active');
|
37 |
}
|
38 |
}
|
app/code/local/MagePsycho/Xmllinks/Model/System/Config/Source/Noyes.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @category MagePsycho
|
4 |
+
* @package MagePsycho_Xmllinks
|
5 |
+
* @author magepsycho@gmail.com
|
6 |
+
* @website http://www.magepsycho.com
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
class MagePsycho_Xmllinks_Model_System_Config_Source_Noyes
|
10 |
+
{
|
11 |
+
public function toOptionArray()
|
12 |
+
{
|
13 |
+
return array(
|
14 |
+
array('value' => 1, 'label'=>Mage::helper('xmllinks')->__('Enabled')),
|
15 |
+
array('value' => 0, 'label'=>Mage::helper('xmllinks')->__('Disabled')),
|
16 |
+
);
|
17 |
+
}
|
18 |
+
}
|
app/code/local/MagePsycho/Xmllinks/Model/System/Config/Source/Yesno.php
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
class MagePsycho_Xmllinks_Model_System_Config_Source_Yesno
|
3 |
{
|
4 |
-
|
5 |
-
/**
|
6 |
-
* Options getter
|
7 |
-
*
|
8 |
-
* @return array
|
9 |
-
*/
|
10 |
public function toOptionArray()
|
11 |
{
|
12 |
return array(
|
@@ -14,5 +15,4 @@ class MagePsycho_Xmllinks_Model_System_Config_Source_Yesno
|
|
14 |
array('value' => 1, 'label'=>Mage::helper('xmllinks')->__('Disabled')),
|
15 |
);
|
16 |
}
|
17 |
-
|
18 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @category MagePsycho
|
4 |
+
* @package MagePsycho_Xmllinks
|
5 |
+
* @author magepsycho@gmail.com
|
6 |
+
* @website http://www.magepsycho.com
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
class MagePsycho_Xmllinks_Model_System_Config_Source_Yesno
|
10 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
public function toOptionArray()
|
12 |
{
|
13 |
return array(
|
15 |
array('value' => 1, 'label'=>Mage::helper('xmllinks')->__('Disabled')),
|
16 |
);
|
17 |
}
|
|
|
18 |
}
|
app/code/local/MagePsycho/Xmllinks/Model/Xmllinks.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @category MagePsycho
|
4 |
* @package MagePsycho_Xmllinks
|
5 |
-
* @author
|
6 |
* @website http://www.magepsycho.com
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
2 |
/**
|
3 |
* @category MagePsycho
|
4 |
* @package MagePsycho_Xmllinks
|
5 |
+
* @author magepsycho@gmail.com
|
6 |
* @website http://www.magepsycho.com
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
app/code/local/MagePsycho/Xmllinks/controllers/IndexController.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @category MagePsycho
|
4 |
* @package MagePsycho_Xmllinks
|
5 |
-
* @author
|
6 |
* @website http://www.magepsycho.com
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
2 |
/**
|
3 |
* @category MagePsycho
|
4 |
* @package MagePsycho_Xmllinks
|
5 |
+
* @author magepsycho@gmail.com
|
6 |
* @website http://www.magepsycho.com
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
app/code/local/MagePsycho/Xmllinks/etc/adminhtml.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* @category MagePsycho
|
5 |
* @package MagePsycho_Xmllinks
|
6 |
-
* @author
|
7 |
* @website http://www.magepsycho.com
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
3 |
/**
|
4 |
* @category MagePsycho
|
5 |
* @package MagePsycho_Xmllinks
|
6 |
+
* @author magepsycho@gmail.com
|
7 |
* @website http://www.magepsycho.com
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
app/code/local/MagePsycho/Xmllinks/etc/config.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* @category MagePsycho
|
5 |
* @package MagePsycho_Xmllinks
|
6 |
-
* @author
|
7 |
* @website http://www.magepsycho.com
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
@@ -11,7 +11,7 @@
|
|
11 |
<config>
|
12 |
<modules>
|
13 |
<MagePsycho_Xmllinks>
|
14 |
-
<version>0.
|
15 |
</MagePsycho_Xmllinks>
|
16 |
</modules>
|
17 |
<global>
|
@@ -29,11 +29,6 @@
|
|
29 |
<account_navigation>MagePsycho_Xmllinks_Block_Account_Navigation</account_navigation>
|
30 |
</rewrite>
|
31 |
</customer>
|
32 |
-
<!--<checkout>
|
33 |
-
<rewrite>
|
34 |
-
<links>MagePsycho_Xmllinks_Block_Checkout_Links</links>
|
35 |
-
</rewrite>
|
36 |
-
</checkout>-->
|
37 |
</blocks>
|
38 |
<helpers>
|
39 |
<xmllinks>
|
@@ -87,6 +82,7 @@
|
|
87 |
<xmllinks>
|
88 |
<option>
|
89 |
<active>1</active>
|
|
|
90 |
</option>
|
91 |
<top_links>
|
92 |
<my_account>0</my_account>
|
@@ -112,11 +108,18 @@
|
|
112 |
<my_product_reviews>0</my_product_reviews>
|
113 |
<my_tags>0</my_tags>
|
114 |
<my_wishlist>0</my_wishlist>
|
|
|
115 |
<my_downloadable_products>0</my_downloadable_products>
|
116 |
<newsletter_subscriptions>0</newsletter_subscriptions>
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
</customer_navigation>
|
118 |
<catalog_navigation>
|
119 |
-
<home_active>
|
120 |
<home_label>Home</home_label>
|
121 |
</catalog_navigation>
|
122 |
</xmllinks>
|
3 |
/**
|
4 |
* @category MagePsycho
|
5 |
* @package MagePsycho_Xmllinks
|
6 |
+
* @author magepsycho@gmail.com
|
7 |
* @website http://www.magepsycho.com
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
11 |
<config>
|
12 |
<modules>
|
13 |
<MagePsycho_Xmllinks>
|
14 |
+
<version>0.2.0</version>
|
15 |
</MagePsycho_Xmllinks>
|
16 |
</modules>
|
17 |
<global>
|
29 |
<account_navigation>MagePsycho_Xmllinks_Block_Account_Navigation</account_navigation>
|
30 |
</rewrite>
|
31 |
</customer>
|
|
|
|
|
|
|
|
|
|
|
32 |
</blocks>
|
33 |
<helpers>
|
34 |
<xmllinks>
|
82 |
<xmllinks>
|
83 |
<option>
|
84 |
<active>1</active>
|
85 |
+
<enable_log>1</enable_log>
|
86 |
</option>
|
87 |
<top_links>
|
88 |
<my_account>0</my_account>
|
108 |
<my_product_reviews>0</my_product_reviews>
|
109 |
<my_tags>0</my_tags>
|
110 |
<my_wishlist>0</my_wishlist>
|
111 |
+
<my_applications>0</my_applications>
|
112 |
<my_downloadable_products>0</my_downloadable_products>
|
113 |
<newsletter_subscriptions>0</newsletter_subscriptions>
|
114 |
+
<logout>0</logout>
|
115 |
+
<store_credit>0</store_credit>
|
116 |
+
<gift_card>0</gift_card>
|
117 |
+
<gift_registry>0</gift_registry>
|
118 |
+
<reward_points>0</reward_points>
|
119 |
+
<my_invitations>0</my_invitations>
|
120 |
</customer_navigation>
|
121 |
<catalog_navigation>
|
122 |
+
<home_active>0</home_active>
|
123 |
<home_label>Home</home_label>
|
124 |
</catalog_navigation>
|
125 |
</xmllinks>
|
app/code/local/MagePsycho/Xmllinks/etc/system.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* @category MagePsycho
|
5 |
* @package MagePsycho_Xmllinks
|
6 |
-
* @author
|
7 |
* @website http://www.magepsycho.com
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
@@ -134,7 +134,7 @@
|
|
134 |
<show_in_default>1</show_in_default>
|
135 |
<show_in_website>1</show_in_website>
|
136 |
<show_in_store>1</show_in_store>
|
137 |
-
<
|
138 |
</static_block_links>
|
139 |
<sitemap translate="label">
|
140 |
<label>Sitemap</label>
|
@@ -163,6 +163,15 @@
|
|
163 |
<show_in_website>1</show_in_website>
|
164 |
<show_in_store>1</show_in_store>
|
165 |
</advanced_search>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
<contact_us translate="label">
|
167 |
<label>Contact Us</label>
|
168 |
<frontend_type>select</frontend_type>
|
@@ -172,6 +181,16 @@
|
|
172 |
<show_in_website>1</show_in_website>
|
173 |
<show_in_store>1</show_in_store>
|
174 |
</contact_us>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
</fields>
|
176 |
</footer_links>
|
177 |
<customer_navigation translate="label">
|
@@ -263,6 +282,15 @@
|
|
263 |
<show_in_website>1</show_in_website>
|
264 |
<show_in_store>1</show_in_store>
|
265 |
</my_wishlist>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
<my_downloadable_products translate="label">
|
267 |
<label>My Downloadable Products</label>
|
268 |
<frontend_type>select</frontend_type>
|
@@ -281,6 +309,68 @@
|
|
281 |
<show_in_website>1</show_in_website>
|
282 |
<show_in_store>1</show_in_store>
|
283 |
</newsletter_subscriptions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
</fields>
|
285 |
</customer_navigation>
|
286 |
<catalog_navigation translate="label">
|
@@ -308,7 +398,7 @@
|
|
308 |
<show_in_website>1</show_in_website>
|
309 |
<show_in_store>1</show_in_store>
|
310 |
<depends><home_active>1</home_active></depends>
|
311 |
-
<
|
312 |
</home_label>
|
313 |
</fields>
|
314 |
</catalog_navigation>
|
3 |
/**
|
4 |
* @category MagePsycho
|
5 |
* @package MagePsycho_Xmllinks
|
6 |
+
* @author magepsycho@gmail.com
|
7 |
* @website http://www.magepsycho.com
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
134 |
<show_in_default>1</show_in_default>
|
135 |
<show_in_website>1</show_in_website>
|
136 |
<show_in_store>1</show_in_store>
|
137 |
+
<tooltip><![CDATA[Enabling this option will remove the footer links defined in static block with identifier: footer_links.<br /> Ref: About Us | Customer Service | Privacy Policy]]></tooltip>
|
138 |
</static_block_links>
|
139 |
<sitemap translate="label">
|
140 |
<label>Sitemap</label>
|
163 |
<show_in_website>1</show_in_website>
|
164 |
<show_in_store>1</show_in_store>
|
165 |
</advanced_search>
|
166 |
+
<return_link translate="label">
|
167 |
+
<label>Orders and Returns</label>
|
168 |
+
<frontend_type>select</frontend_type>
|
169 |
+
<source_model>xmllinks/system_config_source_yesno</source_model>
|
170 |
+
<sort_order>45</sort_order>
|
171 |
+
<show_in_default>1</show_in_default>
|
172 |
+
<show_in_website>1</show_in_website>
|
173 |
+
<show_in_store>1</show_in_store>
|
174 |
+
</return_link>
|
175 |
<contact_us translate="label">
|
176 |
<label>Contact Us</label>
|
177 |
<frontend_type>select</frontend_type>
|
181 |
<show_in_website>1</show_in_website>
|
182 |
<show_in_store>1</show_in_store>
|
183 |
</contact_us>
|
184 |
+
<rss translate="label">
|
185 |
+
<label>RSS</label>
|
186 |
+
<frontend_type>select</frontend_type>
|
187 |
+
<source_model>xmllinks/system_config_source_yesno</source_model>
|
188 |
+
<sort_order>60</sort_order>
|
189 |
+
<show_in_default>1</show_in_default>
|
190 |
+
<show_in_website>1</show_in_website>
|
191 |
+
<show_in_store>1</show_in_store>
|
192 |
+
<tooltip><![CDATA[This will only work if you have enabled RSS option from: System > Configuration > RSS Feeds > RSS Config]]></tooltip>
|
193 |
+
</rss>
|
194 |
</fields>
|
195 |
</footer_links>
|
196 |
<customer_navigation translate="label">
|
282 |
<show_in_website>1</show_in_website>
|
283 |
<show_in_store>1</show_in_store>
|
284 |
</my_wishlist>
|
285 |
+
<my_applications translate="label">
|
286 |
+
<label>My Applications</label>
|
287 |
+
<frontend_type>select</frontend_type>
|
288 |
+
<source_model>xmllinks/system_config_source_yesno</source_model>
|
289 |
+
<sort_order>101</sort_order>
|
290 |
+
<show_in_default>1</show_in_default>
|
291 |
+
<show_in_website>1</show_in_website>
|
292 |
+
<show_in_store>1</show_in_store>
|
293 |
+
</my_applications>
|
294 |
<my_downloadable_products translate="label">
|
295 |
<label>My Downloadable Products</label>
|
296 |
<frontend_type>select</frontend_type>
|
309 |
<show_in_website>1</show_in_website>
|
310 |
<show_in_store>1</show_in_store>
|
311 |
</newsletter_subscriptions>
|
312 |
+
<logout translate="label">
|
313 |
+
<label>Log Out</label>
|
314 |
+
<frontend_type>select</frontend_type>
|
315 |
+
<source_model>xmllinks/system_config_source_noyes</source_model>
|
316 |
+
<sort_order>130</sort_order>
|
317 |
+
<show_in_default>1</show_in_default>
|
318 |
+
<show_in_website>1</show_in_website>
|
319 |
+
<show_in_store>1</show_in_store>
|
320 |
+
<tooltip><![CDATA[Enabling this option will add 'Log Out' link at the bottom of Customer Navigation.]]></tooltip>
|
321 |
+
</logout>
|
322 |
+
<enterprise_edition translate="label">
|
323 |
+
<label>Enterprise Edition Only</label>
|
324 |
+
<frontend_model>xmllinks/system_config_heading</frontend_model>
|
325 |
+
<sort_order>140</sort_order>
|
326 |
+
<show_in_default>1</show_in_default>
|
327 |
+
<show_in_website>1</show_in_website>
|
328 |
+
</enterprise_edition>
|
329 |
+
<store_credit translate="label">
|
330 |
+
<label>Store Credit</label>
|
331 |
+
<frontend_type>select</frontend_type>
|
332 |
+
<source_model>xmllinks/system_config_source_yesno</source_model>
|
333 |
+
<sort_order>150</sort_order>
|
334 |
+
<show_in_default>1</show_in_default>
|
335 |
+
<show_in_website>1</show_in_website>
|
336 |
+
<show_in_store>1</show_in_store>
|
337 |
+
</store_credit>
|
338 |
+
<gift_card translate="label">
|
339 |
+
<label>Gift Card</label>
|
340 |
+
<frontend_type>select</frontend_type>
|
341 |
+
<source_model>xmllinks/system_config_source_yesno</source_model>
|
342 |
+
<sort_order>160</sort_order>
|
343 |
+
<show_in_default>1</show_in_default>
|
344 |
+
<show_in_website>1</show_in_website>
|
345 |
+
<show_in_store>1</show_in_store>
|
346 |
+
</gift_card>
|
347 |
+
<gift_registry translate="label">
|
348 |
+
<label>Gift Registry</label>
|
349 |
+
<frontend_type>select</frontend_type>
|
350 |
+
<source_model>xmllinks/system_config_source_yesno</source_model>
|
351 |
+
<sort_order>170</sort_order>
|
352 |
+
<show_in_default>1</show_in_default>
|
353 |
+
<show_in_website>1</show_in_website>
|
354 |
+
<show_in_store>1</show_in_store>
|
355 |
+
</gift_registry>
|
356 |
+
<reward_points translate="label">
|
357 |
+
<label>Reward Points</label>
|
358 |
+
<frontend_type>select</frontend_type>
|
359 |
+
<source_model>xmllinks/system_config_source_yesno</source_model>
|
360 |
+
<sort_order>180</sort_order>
|
361 |
+
<show_in_default>1</show_in_default>
|
362 |
+
<show_in_website>1</show_in_website>
|
363 |
+
<show_in_store>1</show_in_store>
|
364 |
+
</reward_points>
|
365 |
+
<my_invitations translate="label">
|
366 |
+
<label>My Invitations</label>
|
367 |
+
<frontend_type>select</frontend_type>
|
368 |
+
<source_model>xmllinks/system_config_source_yesno</source_model>
|
369 |
+
<sort_order>190</sort_order>
|
370 |
+
<show_in_default>1</show_in_default>
|
371 |
+
<show_in_website>1</show_in_website>
|
372 |
+
<show_in_store>1</show_in_store>
|
373 |
+
</my_invitations>
|
374 |
</fields>
|
375 |
</customer_navigation>
|
376 |
<catalog_navigation translate="label">
|
398 |
<show_in_website>1</show_in_website>
|
399 |
<show_in_store>1</show_in_store>
|
400 |
<depends><home_active>1</home_active></depends>
|
401 |
+
<tooltip><![CDATA[If Label is left empty, 'Home' label will be used.]]></tooltip>
|
402 |
</home_label>
|
403 |
</fields>
|
404 |
</catalog_navigation>
|
app/design/frontend/default/default/layout/xmllinks.xml
CHANGED
@@ -2,9 +2,13 @@
|
|
2 |
<layout>
|
3 |
<default>
|
4 |
|
5 |
-
<remove name="catalog.topnav" />
|
6 |
<reference name="top.menu">
|
7 |
-
<
|
|
|
|
|
|
|
|
|
|
|
8 |
</reference>
|
9 |
|
10 |
<reference name="top.links">
|
@@ -14,7 +18,7 @@
|
|
14 |
</reference>
|
15 |
|
16 |
<reference name="wishlist_link">
|
17 |
-
<action method="setTemplate" ifconfig="xmllinks/top_links/my_wishlist"><template>blank-link.phtml</template></action>
|
18 |
</reference>
|
19 |
|
20 |
<reference name="footer_links">
|
@@ -22,6 +26,11 @@
|
|
22 |
<action method="removeLinkByUrl" ifconfig="xmllinks/footer_links/search_terms"><url helper="catalogsearch/getSearchTermUrl" /></action>
|
23 |
<action method="removeLinkByUrl" ifconfig="xmllinks/footer_links/advanced_search"><url helper="catalogsearch/getAdvancedSearchUrl" /></action>
|
24 |
<action method="removeLinkByUrl" ifconfig="xmllinks/footer_links/contact_us"><url helper="xmllinks/getUrl"><url>contacts</url></url></action>
|
|
|
|
|
|
|
|
|
|
|
25 |
</reference>
|
26 |
|
27 |
<reference name="footer">
|
@@ -37,12 +46,20 @@
|
|
37 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_orders"><name>orders</name></action>
|
38 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_tags"><name>tags</name></action>
|
39 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_wishlist"><name>wishlist</name></action>
|
|
|
40 |
|
41 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/recurring_profiles"><name>recurring_profiles</name></action>
|
42 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/billing_agreements"><name>billing_agreements</name></action>
|
43 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_downloadable_products"><name>downloadable_products</name></action>
|
44 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_product_reviews"><name>reviews</name></action>
|
45 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/newsletter_subscriptions"><name>newsletter</name></action>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
</reference>
|
47 |
</customer_account>
|
48 |
<customer_logged_out>
|
2 |
<layout>
|
3 |
<default>
|
4 |
|
|
|
5 |
<reference name="top.menu">
|
6 |
+
<action method="unsetChild"><child>catalog.topnav</child></action>
|
7 |
+
<block type="catalog/navigation" name="catalog.topnav.xmllinks" template="catalog/navigation/top.phtml"/>
|
8 |
+
</reference>
|
9 |
+
|
10 |
+
<reference name="catalog.topnav.xmllinks">
|
11 |
+
<action method="setTemplate" ifconfig="xmllinks/catalog_navigation/home_active"><template>xmllinks/catalog/navigation/top.phtml</template></action>
|
12 |
</reference>
|
13 |
|
14 |
<reference name="top.links">
|
18 |
</reference>
|
19 |
|
20 |
<reference name="wishlist_link">
|
21 |
+
<action method="setTemplate" ifconfig="xmllinks/top_links/my_wishlist"><template>xmllinks/blank-link.phtml</template></action>
|
22 |
</reference>
|
23 |
|
24 |
<reference name="footer_links">
|
26 |
<action method="removeLinkByUrl" ifconfig="xmllinks/footer_links/search_terms"><url helper="catalogsearch/getSearchTermUrl" /></action>
|
27 |
<action method="removeLinkByUrl" ifconfig="xmllinks/footer_links/advanced_search"><url helper="catalogsearch/getAdvancedSearchUrl" /></action>
|
28 |
<action method="removeLinkByUrl" ifconfig="xmllinks/footer_links/contact_us"><url helper="xmllinks/getUrl"><url>contacts</url></url></action>
|
29 |
+
|
30 |
+
<reference name="return_link">
|
31 |
+
<action method="setTemplate" ifconfig="xmllinks/footer_links/return_link"><template>xmllinks/blank-link.phtml</template></action>
|
32 |
+
</reference>
|
33 |
+
<action method="removeLinkByUrl" ifconfig="xmllinks/footer_links/rss"><url helper="xmllinks/getUrl"><url>rss</url></url></action>
|
34 |
</reference>
|
35 |
|
36 |
<reference name="footer">
|
46 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_orders"><name>orders</name></action>
|
47 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_tags"><name>tags</name></action>
|
48 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_wishlist"><name>wishlist</name></action>
|
49 |
+
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_applications"><name>OAuth Customer Tokens</name></action>
|
50 |
|
51 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/recurring_profiles"><name>recurring_profiles</name></action>
|
52 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/billing_agreements"><name>billing_agreements</name></action>
|
53 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_downloadable_products"><name>downloadable_products</name></action>
|
54 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_product_reviews"><name>reviews</name></action>
|
55 |
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/newsletter_subscriptions"><name>newsletter</name></action>
|
56 |
+
<action method="addLink" translate="label" module="xmllinks" ifconfig="xmllinks/customer_navigation/logout" after="-"><name>logout</name><path>customer/account/logout</path><label>Log Out</label></action>
|
57 |
+
|
58 |
+
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/store_credit"><name>enterprise_customerbalance</name></action>
|
59 |
+
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/gift_card"><name>enterprise_giftcardaccount</name></action>
|
60 |
+
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/gift_registry"><name>giftregistry</name></action>
|
61 |
+
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/reward_points"><name>enterprise_reward</name></action>
|
62 |
+
<action method="removeLinkByName" ifconfig="xmllinks/customer_navigation/my_invitations"><name>invitations</name></action>
|
63 |
</reference>
|
64 |
</customer_account>
|
65 |
<customer_logged_out>
|
app/etc/modules/MagePsycho_Xmllinks.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* @category MagePsycho
|
5 |
* @package MagePsycho_Xmllinks
|
6 |
-
* @author
|
7 |
* @website http://www.magepsycho.com
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
3 |
/**
|
4 |
* @category MagePsycho
|
5 |
* @package MagePsycho_Xmllinks
|
6 |
+
* @author magepsycho@gmail.com
|
7 |
* @website http://www.magepsycho.com
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
package.xml
CHANGED
@@ -1,18 +1,28 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Frontend_Links_Manager</name>
|
4 |
-
<version>0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Frontend Links Manager extension is used to turn on/off the frontend links(top links, footer links, customer navigation links
|
10 |
-
<description>Frontend Links Manager extension is used to turn on/off the frontend links(top links, footer links, customer navigation links
|
11 |
-
<notes
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<compatible/>
|
17 |
-
<dependencies
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Frontend_Links_Manager</name>
|
4 |
+
<version>0.2.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Frontend Links Manager extension is used to turn on/off the frontend links(top links, footer links, customer navigation links & catalog navigation links) is easier way via backend.</summary>
|
10 |
+
<description>Frontend Links Manager extension is used to turn on/off the frontend links(top links, footer links, customer navigation links & catalog navigation links) is easier way via backend.</description>
|
11 |
+
<notes><strong>0.1.0 - 0.2.0</strong><br />
|
12 |
+
- Add/Remove option for My Account > My Applications<br />
|
13 |
+
- Add/Remove option for My Account > Log Out<br />
|
14 |
+
- Add/Remove option for My Account > Store Credit (EE only)<br />
|
15 |
+
- Add/Remove option for My Account > Gift Card (EE only)<br />
|
16 |
+
- Add/Remove option for My Account > Gift Registry (EE only)<br />
|
17 |
+
- Add/Remove option for My Account > Reward Points (EE only)<br />
|
18 |
+
- Add/Remove option for My Account > My Invitations (EE only)<br />
|
19 |
+
- Add/Remove option for Footer > Orders and Returns<br />
|
20 |
+
- Add/Remove option for Footer > Rss<br />
|
21 |
+
- Overriding of catalog navigation template only if Home link is enabled<br /></notes>
|
22 |
+
<authors><author><name>MagePsycho</name><user>magepsycho</user><email>rajen_k_bhtt@hotmail.com</email></author></authors>
|
23 |
+
<date>2013-07-26</date>
|
24 |
+
<time>11:15:57</time>
|
25 |
+
<contents><target name="mageetc"><dir name="modules"><file name="MagePsycho_Xmllinks.xml" hash="4f432c754ea77467f58f5936850b843a"/></dir></target><target name="magelocal"><dir name="MagePsycho"><dir name="Xmllinks"><dir name="Block"><dir name="Account"><file name="Navigation.php" hash="76400cc7cea603eb2af77f9ad3046040"/></dir><dir name="System"><dir name="Config"><file name="Heading.php" hash="409f5b54fd0e4407c4daf89f387cdd67"/><file name="Info.php" hash="a50db944e0b876d60848ff4c3753a50b"/></dir></dir><file name="Xmllinks.php" hash="eac9037445d98ef284b593cf595f5ce5"/></dir><dir name="Helper"><file name="Data.php" hash="772190e03f041fdded937900ea7d5c55"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Noyes.php" hash="d190b7d3278f07bc770b381927238d9c"/><file name="Yesno.php" hash="cc0e6b14a0c3e5fb80a89ec776e1ebe7"/></dir></dir></dir><file name="Xmllinks.php" hash="6865ffdcae13236daff8ae96e7004948"/></dir><dir name="controllers"><file name="IndexController.php" hash="fb4c6d7603ed06f25d5eb4965f969938"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4b2879fef1d0e50f1e9bd4bc5b9a71cb"/><file name="config.xml" hash="142600cd67c5abab7911e16f3921807b"/><file name="system.xml" hash="d626987c6fe5ffa1d274f4cc2da41d4f"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="xmllinks.xml" hash="1ac376aa3223b872659cbb06593c9e6d"/></dir><dir name="template"><dir name="xmllinks"><file name="blank-link.phtml" hash="68b329da9893e34099c7d8ad5cb9c940"/><dir name="catalog"><dir name="navigation"><file name="top.phtml" hash="2579e73ca413f2950d1cfcae7d0a6d1f"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
26 |
<compatible/>
|
27 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
28 |
</package>
|