'link-list', 'theme_location' => 'main-menu', 'menu_class' => 'nav navbar-nav menu nav-menu', 'container' => '', 'fallback_cb' => 'Navwalker_Class::fallback', 'walker' => new Navwalker_Class, ] ); } /** * @return string */ function a_anglo_enable_rtl(){ $is_rtl = false; if ( $is_rtl ) { return ' dir="rtl" '; } else { return ''; } } /** * * pagination */ if ( !function_exists( 'a_anglo_pagination' ) ) { function _a_anglo_pagi_callback( $pagination ) { return $pagination; } //page navegation function a_anglo_pagination( $prev, $next, $pages, $args ) { global $wp_query, $wp_rewrite; $wp_query->query_vars['paged'] > 1 ? $current = $wp_query->query_vars['paged'] : $current = 1; if ( $pages == '' ) { global $wp_query; $pages = $wp_query->max_num_pages; if ( !$pages ) { $pages = 1; } } $pagination = [ 'base' => add_query_arg( 'paged', '%#%' ), 'format' => '', 'total' => $pages, 'current' => $current, 'prev_text' => $prev, 'next_text' => $next, 'type' => 'array', ]; //rewrite permalinks if ( $wp_rewrite->using_permalinks() ) { $pagination['base'] = user_trailingslashit( trailingslashit( remove_query_arg( 's', get_pagenum_link( 1 ) ) ) . 'page/%#%/', 'paged' ); } if ( !empty( $wp_query->query_vars['s'] ) ) { $pagination['add_args'] = ['s' => get_query_var( 's' )]; } $pagi = ''; if ( paginate_links( $pagination ) != '' ) { $paginations = paginate_links( $pagination ); $pagi .= '