Today came improvements into one of oldest modules of the YF framework – “divide pages” or pagination module.
From now it had real modular structure and support for several renderers.
Each renderer is a method named starting with “render_type_” of the classes/common/yf_divide_pages.class.php
Right now there are 2: “slide” (new) and “blocks” (old one).
I made new renderer “slide” the default one. It acts more intuitive way and centers current page in list of pages like this:
1 2 3 4 <5> 6 7 8 9 10 > >>
<< < 2 3 4 5 <6> 7 8 9 10 11 > >>
<< < 3 4 5 6 <7> 8 9 10 11 12 > >>