Version Notes
- Added jQuery.noConfict() for resolving conflicts with existing jQuery versions and other javascript frameworks
Download this release
Release Info
| Developer | MKMage |
| Extension | Mkmage_layered_navigation |
| Version | 0.1.2 |
| Comparing to | |
| See all releases | |
Code changes from version 0.1.1 to 0.1.2
- app/code/local/MKMage/LayeredNavigation/Helper/Data.php +2 -1
- app/design/frontend/base/default/layout/mkmage/layerednavigation.xml +12 -0
- app/design/frontend/base/default/template/mkmage/layerednavigation/filter.phtml +1 -1
- app/design/frontend/base/default/template/mkmage/layerednavigation/loader.phtml +2 -1
- package.xml +5 -5
- skin/frontend/base/default/css/mkmage/layerednavigation/layerednavigation.css +0 -5
app/code/local/MKMage/LayeredNavigation/Helper/Data.php
CHANGED
|
@@ -20,7 +20,8 @@ class MKMage_LayeredNavigation_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
| 20 |
|
| 21 |
public function getLoaderUrl() {
|
| 22 |
|
| 23 |
-
|
|
|
|
| 24 |
return Mage::getBaseUrl() . 'media' . DS . 'theme' . DS . Mage::getStoreConfig('mkmage_layerednavigation/mkmage_layerednavigation_display/loader_image',Mage::app()->getStore());
|
| 25 |
} else {
|
| 26 |
return false;
|
| 20 |
|
| 21 |
public function getLoaderUrl() {
|
| 22 |
|
| 23 |
+
$check = Mage::getStoreConfig('mkmage_layerednavigation/mkmage_layerednavigation_display/loader_image',Mage::app()->getStore());
|
| 24 |
+
if(!empty($check)) {
|
| 25 |
return Mage::getBaseUrl() . 'media' . DS . 'theme' . DS . Mage::getStoreConfig('mkmage_layerednavigation/mkmage_layerednavigation_display/loader_image',Mage::app()->getStore());
|
| 26 |
} else {
|
| 27 |
return false;
|
app/design/frontend/base/default/layout/mkmage/layerednavigation.xml
CHANGED
|
@@ -28,6 +28,12 @@
|
|
| 28 |
<type>skin_css</type>
|
| 29 |
<name>css/mkmage/layerednavigation/layerednavigation.css</name>
|
| 30 |
</action>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
</reference>
|
| 32 |
|
| 33 |
<reference name="catalog.leftnav">
|
|
@@ -66,6 +72,12 @@
|
|
| 66 |
<type>skin_css</type>
|
| 67 |
<name>css/mkmage/layerednavigation/layerednavigation.css</name>
|
| 68 |
</action>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
</reference>
|
| 70 |
|
| 71 |
<reference name="catalogsearch.leftnav">
|
| 28 |
<type>skin_css</type>
|
| 29 |
<name>css/mkmage/layerednavigation/layerednavigation.css</name>
|
| 30 |
</action>
|
| 31 |
+
<block type="core/text" name="jquery.noconflict">
|
| 32 |
+
<action method="setText">
|
| 33 |
+
<text><![CDATA[<script type="text/javascript">var $jq = jQuery.noConflict();</script>]]>
|
| 34 |
+
</text>
|
| 35 |
+
</action>
|
| 36 |
+
</block>
|
| 37 |
</reference>
|
| 38 |
|
| 39 |
<reference name="catalog.leftnav">
|
| 72 |
<type>skin_css</type>
|
| 73 |
<name>css/mkmage/layerednavigation/layerednavigation.css</name>
|
| 74 |
</action>
|
| 75 |
+
<block type="core/text" name="jquery.noconflict">
|
| 76 |
+
<action method="setText">
|
| 77 |
+
<text><![CDATA[<script type="text/javascript">var $jq = jQuery.noConflict();</script>]]>
|
| 78 |
+
</text>
|
| 79 |
+
</action>
|
| 80 |
+
</block>
|
| 81 |
</reference>
|
| 82 |
|
| 83 |
<reference name="catalogsearch.leftnav">
|
app/design/frontend/base/default/template/mkmage/layerednavigation/filter.phtml
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
<?php if ($_item->getCount() > 0): ?>
|
| 9 |
<a href="<?php echo $this->urlEscape($_item->getUrl()) ?>">
|
| 10 |
<span class="filter-checkbox">
|
| 11 |
-
<?php if($_item->isSelected()): ?><
|
| 12 |
</span>
|
| 13 |
<span class="filter-label"><?php echo $_item->getLabel() ?></span>
|
| 14 |
</a>
|
| 8 |
<?php if ($_item->getCount() > 0): ?>
|
| 9 |
<a href="<?php echo $this->urlEscape($_item->getUrl()) ?>">
|
| 10 |
<span class="filter-checkbox">
|
| 11 |
+
<?php if($_item->isSelected()): ?><span style="line-height:10px;font-size: 18px; color: initial;">✓</span><?php endif; ?>
|
| 12 |
</span>
|
| 13 |
<span class="filter-label"><?php echo $_item->getLabel() ?></span>
|
| 14 |
</a>
|
app/design/frontend/base/default/template/mkmage/layerednavigation/loader.phtml
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
-
$
|
|
|
|
| 3 |
?>
|
| 4 |
|
| 5 |
<div class="mkmage-overlay"></div>
|
| 1 |
<?php
|
| 2 |
+
$url = Mage::helper('layerednavigation')->getLoaderUrl();
|
| 3 |
+
$imgSrc = !empty($url) ? Mage::helper('layerednavigation')->getLoaderUrl() : $this->getSkinUrl('images/mkmage/layerednavigation/rolling.svg');
|
| 4 |
?>
|
| 5 |
|
| 6 |
<div class="mkmage-overlay"></div>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>MKMage_LayeredNavigation</name>
|
| 4 |
-
<version>0.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>Open Software License (OSL)</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -9,11 +9,11 @@
|
|
| 9 |
<summary>Improve the Layered Navigation for your store with an Ajax-powered one.</summary>
|
| 10 |
<description>Replace the classical Layered Navigation with an AJAX-powered one for faster loading. Your customers can effortlessly filter down and switch layouts without page reloads. Designed to optimize and improve the navigation of your online Magento store, AJAX navigation allows better searching experience for your store visitors. This Layered Navigation extension is the perfect way to boost your website's performance.
|
| 11 |
</description>
|
| 12 |
-
<notes
|
| 13 |
<authors><author><name>MKMage</name><user>mkmage</user><email>support@mkmage.com</email></author></authors>
|
| 14 |
-
<date>2016-04-
|
| 15 |
-
<time>
|
| 16 |
-
<contents><target name="magelocal"><dir name="MKMage"><dir name="LayeredNavigation"><dir name="Block"><dir name="Layer"><dir name="Filter"><file name="Price.php" hash="4fbd979a9c2aa360b0c3d5b17dc1ad8d"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="
|
| 17 |
<compatible/>
|
| 18 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 19 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>MKMage_LayeredNavigation</name>
|
| 4 |
+
<version>0.1.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>Open Software License (OSL)</license>
|
| 7 |
<channel>community</channel>
|
| 9 |
<summary>Improve the Layered Navigation for your store with an Ajax-powered one.</summary>
|
| 10 |
<description>Replace the classical Layered Navigation with an AJAX-powered one for faster loading. Your customers can effortlessly filter down and switch layouts without page reloads. Designed to optimize and improve the navigation of your online Magento store, AJAX navigation allows better searching experience for your store visitors. This Layered Navigation extension is the perfect way to boost your website's performance.
|
| 11 |
</description>
|
| 12 |
+
<notes>- Added jQuery.noConfict() for resolving conflicts with existing jQuery versions and other javascript frameworks</notes>
|
| 13 |
<authors><author><name>MKMage</name><user>mkmage</user><email>support@mkmage.com</email></author></authors>
|
| 14 |
+
<date>2016-04-20</date>
|
| 15 |
+
<time>14:38:31</time>
|
| 16 |
+
<contents><target name="magelocal"><dir name="MKMage"><dir name="LayeredNavigation"><dir name="Block"><dir name="Layer"><dir name="Filter"><file name="Price.php" hash="4fbd979a9c2aa360b0c3d5b17dc1ad8d"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="09d663a36bac093d537000646baf04a8"/></dir><dir name="Model"><dir name="Catalog"><dir name="Filter"><file name="Attribute.php" hash="95b2f8a56d380aed61a6459035c35dcf"/><file name="Category.php" hash="258eeb090921f45a70a2a8ea0f02e8fd"/><file name="Item.php" hash="08d5cd0b1580b5c67910274be1eff76d"/><file name="Price.php" hash="2134b313b3059fa3b9e2a3bfa9c55c0f"/></dir><file name="Layer.php" hash="7494a373fef233d603afeaa63c2b4706"/></dir><file name="Filter.php" hash="17540939a9495127a05f5dd423f2b409"/><file name="Observer.php" hash="a79eac53727a933d7f1b04cb85554ea2"/><file name="Option.php" hash="fa8db003eb84a13ec1f1377465799698"/><dir name="Resource"><dir name="Catalog"><dir name="Filter"><file name="Attribute.php" hash="c4f31cf0434e8b5207611e40dcabbd13"/><file name="Price.php" hash="1861c84bb1e4a9669138d601bbcbd2d2"/></dir></dir><dir name="Filter"><file name="Collection.php" hash="6cc131b01874fc7a508cb1c1bf2a7ef4"/></dir><file name="Filter.php" hash="4dc40b759c6dd8e674c842605dd798bd"/><dir name="Option"><file name="Collection.php" hash="87a8650612e306798b1b71022e366c91"/></dir><file name="Option.php" hash="3c221c3fd26e38f68fd35f853411858d"/></dir><dir name="Search"><dir name="Filter"><file name="Attribute.php" hash="82a9462edbe54335afee48d51f56a4aa"/></dir><file name="Layer.php" hash="de9413221b083f28b98fb3b3a270b25a"/></dir></dir><dir name="etc"><file name="config.xml" hash="b07f024e8e1166f56005a3f8b48403eb"/><file name="system.xml" hash="8909cfc9c17e99502a7357fe724b680a"/></dir><file name=".DS_Store" hash="303a125d64e9f5fa047d43db1e836856"/></dir><dir name="Mkcore"><dir name="Block"><file name="Mkcore.php" hash="b185e6c5d805b706bf9aec042cc99de3"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="c5bffa704efaa08a27ef3616b74d707e"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="config.xml" hash="83af6b9387931b0314c5df272422cae2"/><file name="system.xml" hash="164cd51bff905833ab0d3b39033cdc89"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="390f4f2167be77fc07146bfa6acf338b"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="mkmage"><file name="layerednavigation.xml" hash="07aa7ba43d28a9ed015e43edd2a9e3cd"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="mkmage"><file name="layerednavigation.xml" hash="fdd0104740f382551d06e5fc1de4e1eb"/></dir></dir><dir name="template"><dir name="mkmage"><dir name="layerednavigation"><file name="filter.phtml" hash="83b6fc1b0028da2c223319bdd86358e2"/><file name="loader.phtml" hash="5d18d3e40755fcf72ac1857451838786"/><file name="state.phtml" hash="129d6d79d1e607ba30d9a4b4414b80e5"/><file name="view.phtml" hash="cecb2ad66a6832b3eadc00cd691bf272"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="mkcore.png" hash="de2e975210a34a30c717e549d212b739"/></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="mkmage"><dir name="layerednavigation"><file name="jquery-ui.css" hash="da512109d985611cb6ad45c8ab0b1ac5"/><file name="layerednavigation.css" hash="91dff4c130a71de7c6a224ae439c610f"/></dir></dir></dir><dir name="js"><dir name="mkmage"><dir name="layerednavigation"><file name="jquery-ui.min.js" hash="d935d506ae9c8dd9e0f96706fbb91f65"/><file name="jquery.min.js" hash="397754ba49e9e0cf4e7c190da78dda05"/><file name="layered.js" hash="c816c66225704b9a3b591dc2c96d171d"/><file name="price-slider.js" hash="04a4db2983450a2970c459ba87b4210a"/></dir></dir></dir><dir name="images"><dir name="mkmage"><dir name="layerednavigation"><file name="rolling.svg" hash="fae9f99e39cbec84010d228da536ce1a"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MKMage_Mkcore.xml" hash="9d4a95fc4e27a2d67eb91ed6312141e4"/><file name="MKMage_LayeredNavigation.xml" hash="52a74bd08beb49cfa01739d64eb83002"/></dir></target></contents>
|
| 17 |
<compatible/>
|
| 18 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 19 |
</package>
|
skin/frontend/base/default/css/mkmage/layerednavigation/layerednavigation.css
CHANGED
|
@@ -68,9 +68,4 @@
|
|
| 68 |
.catalogsearch-result-index #narrow-by-list li span.filter-label {
|
| 69 |
display: inline-block;
|
| 70 |
vertical-align: middle;
|
| 71 |
-
}
|
| 72 |
-
|
| 73 |
-
.catalog-category-view #narrow-by-list li.filter-active .filter-checkbox,
|
| 74 |
-
.catalogsearch-result-index #narrow-by-list li.filter-active .filter-checkbox {
|
| 75 |
-
background-color: #CCCCCC;
|
| 76 |
}
|
| 68 |
.catalogsearch-result-index #narrow-by-list li span.filter-label {
|
| 69 |
display: inline-block;
|
| 70 |
vertical-align: middle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
}
|
