Version Notes
Убрал от поисковых систем тексты Loading... и Menu. Исправил инициализацию мобильного меню, которая была испорчена предыдущими изменениями. В версии 2.6.0 мобильное меню работало только при включении опции Load content through ajax.
Download this release
Release Info
Developer | WebAndPeople |
Extension | wp_custom_menu |
Version | 2.7.0 |
Comparing to | |
See all releases |
Code changes from version 2.6.0 to 2.7.0
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.7.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.7.0</version>
|
85 |
</general>
|
86 |
<columns>
|
87 |
<count>3</count>
|
app/design/frontend/default/default/template/webandpeople/custommenu/menucontent.phtml
CHANGED
@@ -9,5 +9,9 @@ wpPopupMenuContent = Base64.decode('<?php echo base64_encode($menuContent['popup
|
|
9 |
<script type="text/javascript">
|
10 |
//<![CDATA[
|
11 |
wpMobileMenuContent = Base64.decode('<?php echo base64_encode($mobileMenuContent); ?>');
|
|
|
|
|
|
|
|
|
12 |
//]]>
|
13 |
</script>
|
9 |
<script type="text/javascript">
|
10 |
//<![CDATA[
|
11 |
wpMobileMenuContent = Base64.decode('<?php echo base64_encode($mobileMenuContent); ?>');
|
12 |
+
wpCustomMenuMobileToggle();
|
13 |
+
Event.observe(window, 'resize', function() {
|
14 |
+
wpCustomMenuMobileToggle();
|
15 |
+
});
|
16 |
//]]>
|
17 |
</script>
|
app/design/frontend/default/default/template/webandpeople/custommenu/top.phtml
CHANGED
@@ -1,43 +1,51 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
<div class="menu">
|
5 |
<div class="parentMenu menu0">
|
6 |
<a href="javascript:;">
|
7 |
-
<span
|
8 |
</a>
|
9 |
</div>
|
10 |
</div>
|
11 |
<div class="clearBoth"></div>
|
12 |
</div>
|
13 |
-
<div id="custommenu" class="
|
14 |
<div class="menu">
|
15 |
<div class="parentMenu menu0">
|
16 |
<a href="javascript:;">
|
17 |
-
<span
|
18 |
</a>
|
19 |
</div>
|
20 |
</div>
|
21 |
<div class="clearBoth"></div>
|
22 |
</div>
|
23 |
-
<div id="custommenu-mobile" class="
|
24 |
<div id="menu-button" onclick="wpMenuButtonToggle()">
|
25 |
<a href="javascript:void(0);">
|
26 |
-
<span
|
27 |
</a>
|
28 |
</div>
|
29 |
<div id="menu-content" style="display:none;">
|
30 |
<div id="menu-mobile-loading" class="menu-mobile level0">
|
31 |
<div class="parentMenu">
|
32 |
<a href="javascript:;">
|
33 |
-
<span
|
34 |
</a>
|
35 |
</div>
|
36 |
</div>
|
37 |
<div class="clearBoth"></div>
|
38 |
</div>
|
39 |
</div>
|
40 |
-
|
|
|
|
|
41 |
<script type="text/javascript">
|
42 |
//<![CDATA[
|
43 |
var CUSTOMMENU_POPUP_WIDTH = <?php echo $_popupWidth; ?>;
|
@@ -53,9 +61,12 @@ var wpMenuAjaxUrl = '<?php echo $_menuAjaxUrl; ?>';
|
|
53 |
var wpMoblieMenuAjaxUrl = '<?php echo $_moblieMenuAjaxUrl; ?>';
|
54 |
var wpPopupMenuContent = '';
|
55 |
var wpMobileMenuContent = '';
|
|
|
|
|
56 |
wpCustomMenuMobileToggle();
|
57 |
Event.observe(window, 'resize', function() {
|
58 |
wpCustomMenuMobileToggle();
|
59 |
});
|
|
|
60 |
//]]>
|
61 |
</script>
|
1 |
+
<?php
|
2 |
+
$menuData = Mage::helper('custommenu')->getMenuData();
|
3 |
+
extract($menuData);
|
4 |
+
// ---
|
5 |
+
$txtLoading = $this->__('Loading...');
|
6 |
+
$txtMenu = $this->__('Menu');
|
7 |
+
$xRtl = $_rtl ? ' rtl' : '';
|
8 |
+
$wpInitContent = <<<HTML
|
9 |
+
<div id="custommenu-loading" class="$xRtl">
|
10 |
<div class="menu">
|
11 |
<div class="parentMenu menu0">
|
12 |
<a href="javascript:;">
|
13 |
+
<span>$txtLoading</span>
|
14 |
</a>
|
15 |
</div>
|
16 |
</div>
|
17 |
<div class="clearBoth"></div>
|
18 |
</div>
|
19 |
+
<div id="custommenu" class="$xRtl" style="display:none;">
|
20 |
<div class="menu">
|
21 |
<div class="parentMenu menu0">
|
22 |
<a href="javascript:;">
|
23 |
+
<span>$txtLoading</span>
|
24 |
</a>
|
25 |
</div>
|
26 |
</div>
|
27 |
<div class="clearBoth"></div>
|
28 |
</div>
|
29 |
+
<div id="custommenu-mobile" class="$xRtl" style="display:none;">
|
30 |
<div id="menu-button" onclick="wpMenuButtonToggle()">
|
31 |
<a href="javascript:void(0);">
|
32 |
+
<span>$txtMenu</span>
|
33 |
</a>
|
34 |
</div>
|
35 |
<div id="menu-content" style="display:none;">
|
36 |
<div id="menu-mobile-loading" class="menu-mobile level0">
|
37 |
<div class="parentMenu">
|
38 |
<a href="javascript:;">
|
39 |
+
<span>$txtLoading</span>
|
40 |
</a>
|
41 |
</div>
|
42 |
</div>
|
43 |
<div class="clearBoth"></div>
|
44 |
</div>
|
45 |
</div>
|
46 |
+
HTML;
|
47 |
+
?>
|
48 |
+
<div class="nav-container" id="wp-nav-container"></div>
|
49 |
<script type="text/javascript">
|
50 |
//<![CDATA[
|
51 |
var CUSTOMMENU_POPUP_WIDTH = <?php echo $_popupWidth; ?>;
|
61 |
var wpMoblieMenuAjaxUrl = '<?php echo $_moblieMenuAjaxUrl; ?>';
|
62 |
var wpPopupMenuContent = '';
|
63 |
var wpMobileMenuContent = '';
|
64 |
+
$('wp-nav-container').update(Base64.decode('<?php echo base64_encode($wpInitContent); ?>'));
|
65 |
+
<?php if (Mage::getStoreConfig('custom_menu/general/ajax_load_content')) : ?>
|
66 |
wpCustomMenuMobileToggle();
|
67 |
Event.observe(window, 'resize', function() {
|
68 |
wpCustomMenuMobileToggle();
|
69 |
});
|
70 |
+
<?php endif; ?>
|
71 |
//]]>
|
72 |
</script>
|
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-
|
25 |
-
<time>
|
26 |
<contents>
|
27 |
<target name="mageweb">
|
28 |
<dir name="app">
|
@@ -43,7 +43,7 @@
|
|
43 |
<file name="AjaxmobilemenucontentController.php" hash="b2bacb5ba79b3be8d3e2ae1b85472507"/>
|
44 |
</dir>
|
45 |
<dir name="etc">
|
46 |
-
<file name="config.xml" hash="
|
47 |
<file name="system.xml" hash="cfd74237b0ab914323f82113923797e8"/>
|
48 |
</dir>
|
49 |
</dir>
|
@@ -62,8 +62,8 @@
|
|
62 |
<dir name="template">
|
63 |
<dir name="webandpeople">
|
64 |
<dir name="custommenu">
|
65 |
-
<file name="menucontent.phtml" hash="
|
66 |
-
<file name="top.phtml" hash="
|
67 |
</dir>
|
68 |
</dir>
|
69 |
</dir>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<package>
|
3 |
<name>wp_custom_menu</name>
|
4 |
+
<version>2.7.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>Убрал от поисковых систем тексты Loading... и Menu. Исправил инициализацию мобильного меню, которая была испорчена предыдущими изменениями. В версии 2.6.0 мобильное меню работало только при включении опции Load content through ajax.</notes>
|
12 |
<authors>
|
13 |
<author>
|
14 |
<name>WebAndPeople</name>
|
21 |
<email>y.gerassimenko@webandpeople.com</email>
|
22 |
</author>
|
23 |
</authors>
|
24 |
+
<date>2014-04-02</date>
|
25 |
+
<time>23:35:26</time>
|
26 |
<contents>
|
27 |
<target name="mageweb">
|
28 |
<dir name="app">
|
43 |
<file name="AjaxmobilemenucontentController.php" hash="b2bacb5ba79b3be8d3e2ae1b85472507"/>
|
44 |
</dir>
|
45 |
<dir name="etc">
|
46 |
+
<file name="config.xml" hash="c5e29d367ce54881d56415385a3d889a"/>
|
47 |
<file name="system.xml" hash="cfd74237b0ab914323f82113923797e8"/>
|
48 |
</dir>
|
49 |
</dir>
|
62 |
<dir name="template">
|
63 |
<dir name="webandpeople">
|
64 |
<dir name="custommenu">
|
65 |
+
<file name="menucontent.phtml" hash="8c68ef93596b61fe26328df161133ac3"/>
|
66 |
+
<file name="top.phtml" hash="2f73af8dfbb421a6942bdabdec230a82"/>
|
67 |
</dir>
|
68 |
</dir>
|
69 |
</dir>
|