'; } endif; /** * Tags */ if(!function_exists('bootguy_post_tags')): function bootguy_post_tags() { if(get_the_tag_list()) { echo '
'; } } endif; if(!function_exists('bootguy_theme_logo')): /** * Site Header */ function bootguy_site_header() { $custom_logo_id = get_theme_mod( 'custom_logo' ); if($custom_logo_id) { $image = wp_get_attachment_image_src( $custom_logo_id , 'full' ); ?> <?php echo get_bloginfo() . ' logo'; ?> 1 && get_option( 'page_comments' ) ) : ?>
'; $offset = "col-sm-offset-6"; if (get_previous_post_link ()) : echo ""; endif; if(get_next_post_link()): echo ""; endif; echo '
'; } endif; if ( ! function_exists( 'bootguy_pagination' ) ) : function bootguy_pagination($pages = '', $range = 2) { global $wp_query; $big = 999999999; // need an unlikely integer $paginate_links = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'type' => 'array', 'prev_text' => '«', 'next_text' => '»' ) ); echo '
\n"; } endif; /** * Custom walker class. */ class Boot_Walker_Nav_Menu extends Walker_Nav_Menu { function display_element ($element, &$children_elements, $max_depth, $depth = 0, $args, &$output) { // check, whether there are children for the given ID and append it to the element with a (new) ID $element->hasChildren = isset($children_elements[$element->ID]) && !empty($children_elements[$element->ID]); return parent::display_element($element, $children_elements, $max_depth, $depth, $args, $output); } /** * Starts the list before the elements are added. * * Adds classes to the unordered list sub-menus. * * @param string $output Passed by reference. Used to append additional content. * @param int $depth Depth of menu item. Used for padding. * @param array $args An array of arguments. @see wp_nav_menu() */ function start_lvl( &$output, $depth = 0, $args = array() ) { // Depth-dependent classes. $indent = ( $depth > 0 ? str_repeat( "\t", $depth ) : '' ); // code indent $display_depth = ( $depth + 1); // because it counts the first submenu as 0 $classes = array( 'sub-menu dropdown-menu', ( $display_depth % 2 ? 'menu-odd' : 'menu-even' ), ( $display_depth >=2 ? 'sub-sub-menu' : '' ), 'menu-depth-' . $display_depth ); $class_names = implode( ' ', $classes ); // Build HTML for output. $output .= "\n" . $indent . '