'f2efe8', 'text' => '474534', 'link' => 'da0a0a', 'border' => '9d9474', 'url' => 'da0a0a', ); } /** * Tell WordPress to run boldlife_setup() when the 'after_setup_theme' hook is run. */ add_action( 'after_setup_theme', 'boldlife_setup' ); if ( ! function_exists( 'boldlife_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which runs * before the init hook. The init hook is too late for some features, such as indicating * support post thumbnails. * * To override boldlife_setup() in a child theme, add your own boldlife_setup to your child theme's * functions.php file. * * @uses load_theme_textdomain() For translation/localization support. * @uses add_theme_support() To add support for post thumbnails, automatic feed links, and Post Formats. * @uses register_nav_menus() To add support for navigation menus. * */ function boldlife_setup() { // Automatic Feed Links add_theme_support( 'automatic-feed-links' ); // I18n load_theme_textdomain( 'bold-life', get_template_directory() . '/languages' ); // Navigation Menu register_nav_menu( 'primary', __( 'Primary Menu', 'bold-life' ) ); // Custom Background add_theme_support( 'custom-background' ); add_theme_support( 'print-style' ); } endif; // boldlife_setup /** * Enqueue scripts and styles */ function boldlife_scripts() { wp_enqueue_style( 'bold-life', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'boldlife_scripts' ); /** * Register our sidebars and widgetized areas. */ add_action( 'widgets_init', 'boldlife_register_sidebars' ); if ( ! function_exists( 'boldlife_register_sidebars' ) ) : function boldlife_register_sidebars() { /* Add theme support for widgetized sidebars. */ register_sidebar( array( 'name' => __( 'Primary Sidebar', 'bold-life' ), 'id' => 'primary-sidebar', 'description' => __( 'Widgets in this sidebar will be shown adjacent to all site content (with the exception of individual image attachment pages).', 'bold-life' ) ) ); /* Add Bold Life-specific RSS subscription button widget */ wp_register_sidebar_widget( 'boldlife-rss', // unique widget ID __( 'Subscribe to RSS Button', 'bold-life' ), // widget name 'widget_boldlife_rss', // callback function array( // options 'description' => 'Add a large, bright "Subscribe to RSS" button to your sidebar.', 'classname' => 'widget-boldlife-rss' ) ); } endif; // boldlife_register_sidebars /** * Modify the font sizes of WordPress' tag cloud */ if ( ! function_exists( 'boldlife_widget_tag_cloud_args' ) ) : function boldlife_widget_tag_cloud_args( $args ) { $args['smallest'] = 12; $args['largest']= 20; $args['unit']= 'px'; return $args; } add_filter( 'widget_tag_cloud_args', 'boldlife_widget_tag_cloud_args' ); endif; // boldlife_widget_tag_cloud_args /** * Build Subscribe to RSS widget */ if ( ! function_exists( 'widget_boldlife_rss' ) ) : function widget_boldlife_rss($args) { extract($args); echo $before_widget; ?> comment_type ) : case 'pingback' : case 'trackback' : ?>
  • ', '' ); ?>

  • id="li-comment-">
    comment_parent ) $avatar_size = 36; echo get_avatar( $comment, $avatar_size ); /* translators: 1: comment author, 2: date and time */ printf( __( '%1$s on %2$s said:', 'bold-life' ), sprintf( '%s', get_comment_author_link() ), sprintf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'bold-life' ), get_comment_date(), get_comment_time() ) ) ); ?> ', '' ); ?>
    comment_approved == '0' ) : ?>
    __( 'Reply ', 'bold-life' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    tag based on what is being viewed. * * @since Bold Life 1.2 */ function boldlife_wp_title( $title, $sep ) { global $page, $paged; if ( is_feed() ) return $title; // Add the blog name $title .= get_bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $sep $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) $title .= " $sep " . sprintf( __( 'Page %s', 'bold-life' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'boldlife_wp_title', 10, 2 ); /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php';