%s', get_comment_author_link()) ?>
','') ?>
comment_approved == '0') : ?>
$depth, 'max_depth' => $args['max_depth']))) ?>
. add_theme_support( 'automatic-feed-links' ); // This theme supports a variety of post formats. //add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'BooWP' ) ); // This theme uses a custom image size for featured images, displayed on "standard" posts. add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 460, 9999 ); // Unlimited height, soft crop } add_action( 'after_setup_theme', 'BooWP_setup' ); require( get_template_directory() . '/inc/custom-header.php' ); // font function BooWP_get_font_url() { $font_url = ''; if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'BooWP' ) ) { $subsets = 'latin,latin-ext'; $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'BooWP' ); if ( 'cyrillic' == $subset ) $subsets .= ',cyrillic,cyrillic-ext'; elseif ( 'greek' == $subset ) $subsets .= ',greek,greek-ext'; elseif ( 'vietnamese' == $subset ) $subsets .= ',vietnamese'; $protocol = is_ssl() ? 'https' : 'http'; $query_args = array( 'family' => 'Open+Sans:400italic,700italic,400,700', 'subset' => $subsets, ); $font_url = add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" ); } return $font_url; } function BooWP_mce_css( $mce_css ) { $font_url = BooWP_get_font_url(); if ( empty( $font_url ) ) return $mce_css; if ( ! empty( $mce_css ) ) $mce_css .= ','; $mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) ); return $mce_css; } add_filter( 'mce_css', 'BooWP_mce_css' ); // feed function BooWP_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; $title .= get_bloginfo( 'name' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; // Add a page number if necessary. if ( $paged >= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'BooWP' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'BooWP_wp_title', 10, 2 ); // NAV MENU // bootstrap nav menu require( get_template_directory() . '/inc/wp_bootstrap_navwalker.php' ); register_nav_menus( array( 'primary' => __( 'Primary Menu', 'BooWP' ), 'top' => __( 'Top Menu', 'BooWP' ), 'bottom' => __( 'Bottom Menu', 'BooWP' ), ) ); ////////////////////////////////////////////////////////// function BooWP_page_menu_args( $args ) { if ( ! isset( $args['show_home'] ) ) $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'BooWP_page_menu_args' ); ///////////////////////////////////////////////////////////////////////// // APPARANCE - WIDGET - Bilesenler require( get_template_directory() . '/inc/widgets.php' ); add_action( 'widgets_init', 'BooWP_widgets_init' ); //////////////////////////////////////////////////////////////////////// // NAV if ( ! function_exists( 'BooWP_content_nav' ) ) : /** * Displays navigation to next/previous pages when applicable. * * @since Twenty Twelve 1.0 */ function BooWP_content_nav( $html_id ) { global $wp_query; $html_id = esc_attr( $html_id ); if ( $wp_query->max_num_pages > 1 ) : ?>
comment_type ) : case 'pingback' : case 'trackback' : // Display trackbacks differently than normal comments. ?>', '' ); ?>