esc_html__( 'Import Demo Content', 'bianco' ), 'import_file_url' => get_template_directory_uri() . '/include/demos/demo-content.xml', 'import_widget_file_url' => get_template_directory_uri() . '/include/demos/widget-content.wie', ), ); } add_filter( 'pt-ocdi/import_files', 'bianco_demo_content' ); /*====== * * Body Classes * ======*/ function bianco_class_names( $classes ) { $classes[] = 'bianco-theme'; return $classes; } add_filter( 'body_class', 'bianco_class_names' ); /*====== * * Excerpt More * ======*/ function bianco_excerpt_more( $more ) { return '...'; } add_filter( 'excerpt_more', 'bianco_excerpt_more' ); /*====== * * Excerpt Support for Pages * ======*/ function bianco_excerpts_for_pages() { add_post_type_support( 'page', 'excerpt' ); } add_action( 'init', 'bianco_excerpts_for_pages' ); /*====== * * Pagination for Archive * ======*/ function bianco_pagination() { $args = array( 'prev_text' => esc_html__( 'Prev', 'bianco' ), 'next_text' => esc_html__( 'Next', 'bianco' ), 'type' => 'list', ); if( !empty( paginate_links( $args ) ) ) { echo '
'; echo ''; echo '
'; } } /*====== * * Pagination for Elements * ======*/ function bianco_element_pagination( $paged = "", $query = "" ) { if( !empty( $paged ) or !empty( $query ) ) { $output = ""; $args = array( 'prev_text' => esc_html__( 'Prev', 'bianco' ), 'next_text' => esc_html__( 'Next', 'bianco' ), 'type' => 'list', 'total' => $query->max_num_pages ); if( !empty( paginate_links( $args ) ) ) { $output .= '
'; $output .= ''; $output .= '
'; } return $output; } } /*====== * * Menus * ======*/ register_nav_menus( array( 'main-menu' => esc_html__( 'Main Menu', 'bianco' ), 'footer-menu' => esc_html__( 'Footer Menu', 'bianco' ), ) ); /*====== * * Menu Walker * ======*/ class bianco_walker extends Walker_Nav_Menu { public function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat( "\t", $depth ); $output .= "\n$indent