I want to add a page-number
class attribute to all numbers in the paging, including the
theme code of the currentClass class as follows:
<code><?php $this->pageNav('Newer', 'Older', 1, '...', array('wrapTag' => 'nav', 'wrapClass' => 'page-nav', 'itemTag' => '', 'prevClass' => 'extend prev', 'nextClass' => 'extend next', 'currentClass' => 'page-number current' )); ?> </code>
As shown in the picture above, now I only know how to add a page-number
attribute to currentClass, but I want to add this attribute to all numbers. I don’t know if there is a good way. I haven’t found it yet. I hope someone can do it. Please help me solve it, thank you!
I want to add a page-number
class attribute to all numbers in the paging, including the
theme code of the currentClass class as follows:
<code><?php $this->pageNav('Newer', 'Older', 1, '...', array('wrapTag' => 'nav', 'wrapClass' => 'page-nav', 'itemTag' => '', 'prevClass' => 'extend prev', 'nextClass' => 'extend next', 'currentClass' => 'page-number current' )); ?> </code>
As shown in the picture above, now I only know how to add a page-number
attribute to currentClass, but I want to add this attribute to all numbers. I don’t know if there is a good way. I haven’t found it yet. I hope someone can do it. Please help me solve it, thank you!
Actually, it can be done in CSS
<code class="css">.page-nav a:not([class~="extend"]) { /* 数字的样式 */ }</code>