hello
in the printNewsPageListWithNav function, the current item is not easily identifiable for the css
so, after each installation of a new version of zenphot, I do a hack in zenpage-template-functions.php to add a <span> on the current item
so could you implemente this feature in a next realase ?
line 1507-1508 of zenpage-template-functions.php
replace
`if($i == $current) {
echo "".$i."\n";
`
with
`if($i == $current) {
echo "".$i."\n";
`
Comments
`...`
provides exactly the same wrapping and applies the class to the whole element.
in fact, I tried to have the same CSS rules between printPageListWithNav() and printNewsPageListWithNav().
but these two functions behave differently on the current element.
with printPageListWithNav(), the current element is a navigable link, wheras with printNewsPageListWithNav(), the current element is not.
after spending several hours to solve this CSS problem, add the span tag is the only way I found.
if you have another solution, I know it well ;-)
Otherwise, if you can change the core, it would be nice because it keeps me from making a hack with each new version, especially since I want to publish my theme.
You can address the current element of the Zenpage pagelist with `.class-of-your-page list li.current { }`. Really not that hard and not that much extra. Of course if you have some global setting for uls you might have to add an `!important` to the call.
Generally it does not make sense to link to the page itself you are currently on.
` 1 </ a> </ li>`
Finally, it should perhaps not modify printNewsPageListWithNav() but you need to simplify printPageListWithNav()
what do you think about ?
Btw, regarding the "loosing time" on these stuff. That is normal and does not dissapear even when you know what you are doing. Especially the different browser behaviour fun...
but be sure that the simple addition of the tag <span> on the current element of printNewsPageListWithNav() would provide a more compact code css with one rule for both pagination.
As said we will think about that but currently have a few more important things to do.