Version Notes
Закрыл от индексирования аякс-контент
Download this release
Release Info
| Developer | WebAndPeople |
| Extension | wp_custom_menu |
| Version | 2.8.0 |
| Comparing to | |
| See all releases | |
Code changes from version 2.7.0 to 2.8.0
app/code/community/WP/CustomMenu/controllers/AjaxmenucontentController.php
CHANGED
|
@@ -4,7 +4,9 @@ class WP_CustomMenu_AjaxmenucontentController extends Mage_Core_Controller_Front
|
|
| 4 |
{
|
| 5 |
public function indexAction()
|
| 6 |
{
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
}
|
| 10 |
}
|
| 4 |
{
|
| 5 |
public function indexAction()
|
| 6 |
{
|
| 7 |
+
if ($this->getRequest()->isXmlHttpRequest()) {
|
| 8 |
+
$menu = Mage::helper('custommenu')->getMenuContent();
|
| 9 |
+
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($menu));
|
| 10 |
+
}
|
| 11 |
}
|
| 12 |
}
|
app/code/community/WP/CustomMenu/controllers/AjaxmobilemenucontentController.php
CHANGED
|
@@ -4,7 +4,9 @@ class WP_CustomMenu_AjaxmobilemenucontentController extends Mage_Core_Controller
|
|
| 4 |
{
|
| 5 |
public function indexAction()
|
| 6 |
{
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
}
|
| 10 |
}
|
| 4 |
{
|
| 5 |
public function indexAction()
|
| 6 |
{
|
| 7 |
+
if ($this->getRequest()->isXmlHttpRequest()) {
|
| 8 |
+
$menu = Mage::helper('custommenu')->getMobileMenuContent();
|
| 9 |
+
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($menu));
|
| 10 |
+
}
|
| 11 |
}
|
| 12 |
}
|
app/code/community/WP/CustomMenu/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<WP_CustomMenu>
|
| 5 |
-
<version>2.
|
| 6 |
</WP_CustomMenu>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
|
@@ -81,7 +81,7 @@
|
|
| 81 |
<show_home_link>1</show_home_link>
|
| 82 |
<non_breaking_space>0</non_breaking_space>
|
| 83 |
<rtl>0</rtl>
|
| 84 |
-
<version>2.
|
| 85 |
</general>
|
| 86 |
<columns>
|
| 87 |
<count>3</count>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<WP_CustomMenu>
|
| 5 |
+
<version>2.8.0</version>
|
| 6 |
</WP_CustomMenu>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
| 81 |
<show_home_link>1</show_home_link>
|
| 82 |
<non_breaking_space>0</non_breaking_space>
|
| 83 |
<rtl>0</rtl>
|
| 84 |
+
<version>2.8.0</version>
|
| 85 |
</general>
|
| 86 |
<columns>
|
| 87 |
<count>3</count>
|
package.xml
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<package>
|
| 3 |
<name>wp_custom_menu</name>
|
| 4 |
-
<version>2.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://web-experiment.info/regular_free_license">Web-Experiment.Info Regular Free License</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Magento Extension - Magento Custom Menu (Web-Experiment.Info)</summary>
|
| 10 |
<description>Magento Extension - Magento Custom Menu (Web-Experiment.Info)</description>
|
| 11 |
-
<notes
|
| 12 |
<authors>
|
| 13 |
<author>
|
| 14 |
<name>WebAndPeople</name>
|
|
@@ -21,8 +21,8 @@
|
|
| 21 |
<email>y.gerassimenko@webandpeople.com</email>
|
| 22 |
</author>
|
| 23 |
</authors>
|
| 24 |
-
<date>2014-04-
|
| 25 |
-
<time>
|
| 26 |
<contents>
|
| 27 |
<target name="mageweb">
|
| 28 |
<dir name="app">
|
|
@@ -39,11 +39,11 @@
|
|
| 39 |
<file name="Data.php" hash="be43d5f1ef1a48c7d8ff9a20f1eeac5f"/>
|
| 40 |
</dir>
|
| 41 |
<dir name="controllers">
|
| 42 |
-
<file name="AjaxmenucontentController.php" hash="
|
| 43 |
-
<file name="AjaxmobilemenucontentController.php" hash="
|
| 44 |
</dir>
|
| 45 |
<dir name="etc">
|
| 46 |
-
<file name="config.xml" hash="
|
| 47 |
<file name="system.xml" hash="cfd74237b0ab914323f82113923797e8"/>
|
| 48 |
</dir>
|
| 49 |
</dir>
|
| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<package>
|
| 3 |
<name>wp_custom_menu</name>
|
| 4 |
+
<version>2.8.0</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://web-experiment.info/regular_free_license">Web-Experiment.Info Regular Free License</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Magento Extension - Magento Custom Menu (Web-Experiment.Info)</summary>
|
| 10 |
<description>Magento Extension - Magento Custom Menu (Web-Experiment.Info)</description>
|
| 11 |
+
<notes>Закрыл от индексирования аякс-контент</notes>
|
| 12 |
<authors>
|
| 13 |
<author>
|
| 14 |
<name>WebAndPeople</name>
|
| 21 |
<email>y.gerassimenko@webandpeople.com</email>
|
| 22 |
</author>
|
| 23 |
</authors>
|
| 24 |
+
<date>2014-04-09</date>
|
| 25 |
+
<time>21:55:35</time>
|
| 26 |
<contents>
|
| 27 |
<target name="mageweb">
|
| 28 |
<dir name="app">
|
| 39 |
<file name="Data.php" hash="be43d5f1ef1a48c7d8ff9a20f1eeac5f"/>
|
| 40 |
</dir>
|
| 41 |
<dir name="controllers">
|
| 42 |
+
<file name="AjaxmenucontentController.php" hash="b07f33fd5ac354b89b4c27e856421f09"/>
|
| 43 |
+
<file name="AjaxmobilemenucontentController.php" hash="6aa7592385e1b553826d63cd4a66f818"/>
|
| 44 |
</dir>
|
| 45 |
<dir name="etc">
|
| 46 |
+
<file name="config.xml" hash="7c8d162d4295e4394cfa188b0ea6dbe4"/>
|
| 47 |
<file name="system.xml" hash="cfd74237b0ab914323f82113923797e8"/>
|
| 48 |
</dir>
|
| 49 |
</dir>
|
