This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module PaginateHelper | |
class LinkRenderer < WillPaginate::ActionView::LinkRenderer | |
protected | |
def html_container(html) | |
tag(:nav, tag(:ol, html, class: "pagination-list"), class: "pagination", role: "navigation", "aria-label": "pagination navigation") | |
end | |
def previous_or_next_page(page, text, classname) | |
if page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Register menus in functions.php | |
*/ | |
register_nav_menus( array( | |
'logged-in' => __( 'Logged-in Menu Area', 'yourtheme' ), | |
'visitor' => __( 'Visitor Menu Area', 'yourtheme' ), | |
)); | |