Vinagento_Vpager - Version 0.1.6

Version Notes

- Fix search error
- Fix cache eror
- Support Full Page Cache for EE version

Download this release

Release Info

Developer Vinagento
Extension Vinagento_Vpager
Version 0.1.6
Comparing to
See all releases


Code changes from version 0.1.5 to 0.1.6

app/code/community/Vinagento/Vpager/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Vinagento_Vpager>
5
- <version>0.1.5</version>
6
  </Vinagento_Vpager>
7
  </modules>
8
  <frontend>
@@ -21,13 +21,6 @@
21
  </modules>
22
  </args>
23
  </catalogsearch>
24
- <vpager>
25
- <use>standart</use>
26
- <args>
27
- <module>Vinagento_Vpager</module>
28
- <frontName>vpager</frontName>
29
- </args>
30
- </vpager>
31
  </routers>
32
  <layout>
33
  <updates>
2
  <config>
3
  <modules>
4
  <Vinagento_Vpager>
5
+ <version>0.1.6</version>
6
  </Vinagento_Vpager>
7
  </modules>
8
  <frontend>
21
  </modules>
22
  </args>
23
  </catalogsearch>
 
 
 
 
 
 
 
24
  </routers>
25
  <layout>
26
  <updates>
app/code/community/Vinagento/Vpager/etc/system.xml CHANGED
@@ -1,5 +1,11 @@
1
  <?xml version="1.0"?>
2
  <config>
 
 
 
 
 
 
3
  <sections>
4
  <vpager>
5
  <label>Ajax Pagination - Layered Navigation</label>
1
  <?xml version="1.0"?>
2
  <config>
3
+ <tabs>
4
+ <vgall translate="label" module="vpager">
5
+ <label>Vinagento Extensions</label>
6
+ <sort_order>300</sort_order>
7
+ </vgall>
8
+ </tabs>
9
  <sections>
10
  <vpager>
11
  <label>Ajax Pagination - Layered Navigation</label>
package.xml CHANGED
@@ -1,18 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Vinagento_Vpager</name>
4
- <version>0.1.5</version>
5
  <stability>stable</stability>
6
- <license uri="http://www.opensource.org/licenses/academic.php">Academic Free License</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Change you layered navigation</summary>
10
- <description>It use latest HTML5 pushState, allow user to go back use browser back, next button. Still good for SEO</description>
11
- <notes>Fixed issue with back and next, change license type.</notes>
12
- <authors><author><name>Vinagento</name><user>auto-converted</user><email>vinagento@gmail.com</email></author></authors>
13
- <date>2012-06-05</date>
14
- <time>16:43:33</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Vinagento_Vpager.xml" hash="8c2343c234e6b7a53f3c5efb3407a508"/><file name="Vinagento_All.xml" hash="c7cc1f2ff35e2715b7c1705b7c02752f"/></dir></target><target name="magelocal"><dir name="Vinagento"><dir name="All"><dir name="Helper"><file name="Config.php" hash="21d13777d955e4e952357f188da6e117"/><file name="Data.php" hash="4085e9b76a48f8a27c4a84cff1a5e043"/></dir><dir name="Model"><dir name="Feed"><file name="Abstract.php" hash="01029311caffdc31a9d828c94802fd11"/><file name="Updates.php" hash="9867bd672d7df5c373fe19cefdc99fc0"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="60ecc4909183b214f2ea955ee728d248"/><file name="config.xml" hash="87222fbc8ce24253d50294ccf6c65dc0"/><file name="system.xml" hash="93caad8f7183536148872a7bb9be28c8"/></dir></dir></dir></target><target name="magecommunity"><dir name="Vinagento"><dir name="Vpager"><dir name="Block"><dir name="CatalogSearch"><file name="Result.php" hash="461f3712b78004a3491fb1a4c3602984"/></dir></dir><dir name="Helper"><file name="Data.php" hash="26d3ed48ef6e74c34646ba120d5173cc"/></dir><dir name="controllers"><file name="CategoryController.php" hash="47f3a9e070cda7a7d9ce71ab26321887"/><file name="ResultController.php" hash="cb2bce594eeb872e03185b0b590aa795"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c0980903f8f84ccd205a5d56dcdeadf"/><file name="config.xml" hash="8e353cd6e799cf9de789fa4d880e2f03"/><file name="system.xml" hash="ccd29175d141ff621852e7945b357cd7"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="vpager.xml" hash="b9e52555faa91af93845f76c76c5771d"/></dir><dir name="template"><dir name="vpager"><file name="search_result.phtml" hash="4005b55c055fb9711332d0565ae7c9aa"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="vpager.css" hash="428829d5c2c519fdaeab759cd6fc9a39"/></dir><dir name="js"><file name="vpager.js" hash="d79edeaf9f9cb3f478405485c8547a34"/></dir></dir></dir></dir></target></contents>
 
 
16
  <compatible/>
17
- <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Vinagento_Vpager</name>
4
+ <version>0.1.6</version>
5
  <stability>stable</stability>
6
+ <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Ajax powered pagination and layered navigation for your store</summary>
10
+ <description>Use latest browser's pushState to support back and next of page. better SEO support</description>
11
+ <notes>- Fix search error&#xD;
12
+ - Fix cache eror&#xD;
13
+ - Support Full Page Cache for EE version</notes>
14
+ <authors><author><name>Vinagento</name><user>vinagento</user><email>vinagento@gmail.com</email></author></authors>
15
+ <date>2013-07-23</date>
16
+ <time>07:48:57</time>
17
+ <contents><target name="magecommunity"><dir name="Vinagento"><dir name="Vpager"><dir name="Block"><dir name="CatalogSearch"><file name="Result.php" hash="461f3712b78004a3491fb1a4c3602984"/></dir></dir><dir name="Helper"><file name="Data.php" hash="26d3ed48ef6e74c34646ba120d5173cc"/></dir><dir name="controllers"><file name="CategoryController.php" hash="47f3a9e070cda7a7d9ce71ab26321887"/><file name="ResultController.php" hash="cb2bce594eeb872e03185b0b590aa795"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c0980903f8f84ccd205a5d56dcdeadf"/><file name="config.xml" hash="23534b54ec71133f85e62bc47be6cd81"/><file name="system.xml" hash="224537930f3931ddad1339f0832cc3a2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vinagento_Vpager.xml" hash="8c2343c234e6b7a53f3c5efb3407a508"/><file name="Vinagento_All.xml" hash="c7cc1f2ff35e2715b7c1705b7c02752f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="vpager.xml" hash="b9e52555faa91af93845f76c76c5771d"/></dir><dir name="template"><dir name="vpager"><file name="search_result.phtml" hash="4005b55c055fb9711332d0565ae7c9aa"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><file name="vpager.js" hash="7fb0aa64a6df245bfbe991cb525dc847"/></dir><dir name="css"><file name="vpager.css" hash="3286d0e04f149edb3df22cf322b83d2d"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Vinagento"><dir name="All"><dir name="Helper"><file name="Config.php" hash="21d13777d955e4e952357f188da6e117"/><file name="Data.php" hash="4085e9b76a48f8a27c4a84cff1a5e043"/></dir><dir name="Model"><dir name="Feed"><file name="Abstract.php" hash="01029311caffdc31a9d828c94802fd11"/><file name="Updates.php" hash="9867bd672d7df5c373fe19cefdc99fc0"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="60ecc4909183b214f2ea955ee728d248"/><file name="config.xml" hash="87222fbc8ce24253d50294ccf6c65dc0"/><file name="system.xml" hash="93caad8f7183536148872a7bb9be28c8"/></dir></dir></dir></target></contents>
18
  <compatible/>
19
+ <dependencies><required><php><min>5.1.0</min><max>6.2.0</max></php></required></dependencies>
20
  </package>
skin/frontend/base/default/css/vpager.css CHANGED
@@ -1,8 +1,8 @@
1
  div.category-products{
2
- -webkit-transition: background-color 300ms ease-in 200ms; /* property duration timing-function delay */
3
- -moz-transition: background-color 300ms ease-in 200ms;
4
- -o-transition: background-color 300ms ease-in 200ms;
5
- transition: background-color 300ms ease-in 200ms;
6
  }
7
  div.page-loading{
8
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
@@ -18,4 +18,5 @@ div.page-loading{
18
 
19
  /* Good browsers */
20
  opacity: 0.5;
 
21
  }
1
  div.category-products{
2
+ -webkit-transition: all 300ms ease-in 200ms; /* property duration timing-function delay */
3
+ -moz-transition: all 300ms ease-in 200ms;
4
+ -o-transition: all 300ms ease-in 200ms;
5
+ transition: all 300ms ease-in 200ms;
6
  }
7
  div.page-loading{
8
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
18
 
19
  /* Good browsers */
20
  opacity: 0.5;
21
+ background: transparent url("../images/pager-anim.gif") repeat-x 0 0;
22
  }
skin/frontend/base/default/js/vpager.js CHANGED
@@ -1 +1 @@
1
- eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('8 o=Y.Z();o.B={10:2(){1.c=p;1.3=p;1.d=e;C.f("11:12",1.q.5(1));13.14=2(9){1.d=15;1.r(16.g)}.5(1)},r:2(u){1.D(e);1.3=u;b(1.c!==p){1.c.s()}1.c=t h.E(u,{17:\'18\',19:1.F.5(1),1a:1.q.5(1)})},i:2(9){6=G.1b(9);3=\'\';b(6.H){3=6.H}v b(6.g){3=6.g}v{6=G.1c(9,\'a\');3=6.g}1.r(3);9.1d()},q:2(){$$(\'.1e 1f a\',\'.1g-1h a\',\'.w a\').j(\'f\',\'I\',1.i.5(1));$$(\'.J 7\',\'.w 7\').j(\'1i\',\'1j\');$$(\'.J 7\',\'.w 7\').j(\'f\',\'1k\',1.i.5(1));$$(\'.x-y-k a\').j(\'f\',\'I\',1.i.5(1))},F:2(l){K=l.1l;b(1m(L.M)==\'2\'){b(1.d===e){L.M({3:1.3},C.1n,1.3)}v{1.d=e}}8 m=t z(\'A\');m.1o(K);8 N=m.7(\'A#O-1p-P\')[0];8 Q=m.7(\'A#O-k-P\')[0];$$(\'.R-S\').n(2(4){z.T(4,N.U)});$$(\'.x-y-k\').n(2(4){z.T(4,Q.U)})},D:2(1q){$$(\'.R-S\').n(2(4){4.V(\'W-X\')});$$(\'.x-y-k\').n(2(4){4.V(\'W-X\')})}};1r.1s(h);h.E.B.s=2(){1.l.1t=1u.1v;1.l.s();h.1w--};8 1x=t o();',62,96,'|this|function|url|item|bind|sEle|select|var|event||if|request|pop|false|observe|href|Ajax|getResult|invoke|nav|transport|bagEle|each|Vpager|null|olinks|riff|abort|new||else|sorter|block|layered|Element|div|prototype|document|showSpinner|Request|glist|Event|value|click|limiter|ft|history|pushState|plist|ajax|container|lnav|category|products|replace|innerHTML|addClassName|page|loading|Class|create|initialize|dom|loaded|window|onpopstate|true|location|method|get|onSuccess|onComplete|element|findElement|stop|pages|li|view|mode|removeAttribute|onchange|change|responseText|typeof|title|update|list|flag|Object|extend|onreadystatechange|Prototype|emptyFunction|activeRequestCount|ajaxPager'.split('|'),0,{}))
1
+ var Vpager=Class.create();Vpager.prototype={initialize:function(){this.request=null;this.url=null;this.pop=false;document.observe("dom:loaded",this.olinks.bind(this));window.onpopstate=function(event){if(event&&event.state){this.pop=true;this.riff(location.href)}}.bind(this)},riff:function(u){this.showSpinner(false);this.url=u.sub("ajax=1&","").sub("&ajax=1","");var params={};if(!u.include("ajax=1")){params={"ajax":1}}if(this.request!==null){this.request.abort()}this.request=new Ajax.Request(u,{method:'get',parameters:params,onSuccess:this.glist.bind(this),onComplete:this.olinks.bind(this)})},getResult:function(event){event.preventDefault();sEle=Event.element(event);url='';tag=sEle.tagName.toLowerCase();if(tag=="input"){url=sEle.next().value}else if(tag=="select"&&sEle.value){url=sEle.value}else if(tag=="a"&&sEle.href){url=sEle.href}else{sEle=Event.findElement(event,'a');url=sEle.href}if(url!="#"||url!==''){this.riff(url)}return},olinks:function(){$$('.pages li a','.view-mode a','.sorter a').invoke('observe','click',this.getResult.bind(this));$$('.limiter select','.sorter select').invoke('removeAttribute','onchange');$$('.limiter select','.sorter select').invoke('observe','change',this.getResult.bind(this));$$('.block-layered-nav a').invoke('observe','click',this.getResult.bind(this));$$('.block-layered-nav input').invoke('observe','click',this.getResult.bind(this))},rlinks:function(){$$('.pages li a','.view-mode a','.sorter a').invoke('stopObserving','click');$$('.limiter select','.sorter select').invoke('stopObserving','change');$$('.block-layered-nav a').invoke('stopObserving','click');$$('.block-layered-nav input').invoke('stopObserving','click')},glist:function(transport){this.rlinks();ft=transport.responseText;if(typeof(history.pushState)=='function'){if(this.pop===false){history.pushState({url:this.url},document.title,this.url)}else{this.pop=false}}var bagEle=new Element('div');bagEle.update(ft);var plist=bagEle.select('div#ajax-list-container')[0];var lnav=bagEle.select('div#ajax-nav-container')[0];$$('.category-products').each(function(item){Element.replace(item,plist.innerHTML)});$$('.block-layered-nav').each(function(item){Element.replace(item,lnav.innerHTML)});document.body.fire('list:loaded')},showSpinner:function(flag){$$('.category-products').each(function(item){item.addClassName('page-loading')});$$('.block-layered-nav').each(function(item){item.addClassName('page-loading')})}};Object.extend(Ajax);Ajax.Request.prototype.abort=function(){this.transport.onreadystatechange=Prototype.emptyFunction;this.transport.abort();Ajax.activeRequestCount--};var ajaxPager=new Vpager();