__( 'Primary Navigation', 'woothemes' ), ) ); // Enable Post Thumbnail and add two custom sizes add_theme_support( 'post-thumbnails' ); add_image_size( 'recent-image-thumb', 75, 75, true ); add_image_size( 'skeptical-featured-image', 519, 519, false ); } add_action( 'after_setup_theme', 'skeptical_setup' ); /** * Setup the WordPress core custom background feature. * * Hooks into the after_setup_theme action. */ function skeptical_register_custom_background() { add_theme_support( 'custom-background' ); } add_action( 'after_setup_theme', 'skeptical_register_custom_background' ); /** * Enqueue scripts and styles */ function skeptical_scripts() { wp_enqueue_style( 'skeptical', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'skeptical_scripts' ); /** * Audio helper script. * * If an audio shortcode exists we will enqueue javascript * that replaces all non-supported audio player instances * with text links. * * @uses shortcode_exists(); */ function skeptical_audio_script() { if ( shortcode_exists( 'audio' ) ) return; if ( ! is_singular() || has_post_format( 'audio' ) ) wp_enqueue_script( 'skeptical-audio', get_template_directory_uri() . '/js/audio.js', array(), '20130521' ); } add_action( 'wp_enqueue_scripts', 'skeptical_audio_script' ); // Fallback for the nav menu function skeptical_page_menu() { ?> __( 'Sidebar Widget Area', 'woothemes' ), 'id' => 'sidebar-1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'woothemes' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area.', 'woothemes' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'woothemes' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area.', 'woothemes' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'woothemes' ), 'id' => 'third-footer-widget-area', 'description' => __( 'The third footer widget area.', 'woothemes' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'woothemes' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'The fourth footer widget area.', 'woothemes' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } add_action( 'widgets_init', 'skeptical_widgets_init' ); // Sniff out the number of categories in use and return the number of categories. function skeptical_category_counter() { if ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) { // Create an array of all the categories that are attached to posts. $all_the_cool_cats = get_categories( array( 'hide_empty' => 1, ) ); // Count the number of categories that are attached to the posts. $all_the_cool_cats = is_countable( $all_the_cool_cats ) ? count( $all_the_cool_cats ) : 0; set_transient( 'all_the_cool_cats', $all_the_cool_cats ); } return $all_the_cool_cats; } // Post Meta in loop function skeptical_post_meta() { ?>   max_num_pages > 1 ) : ?> 'gray', 'theme_rss' => 'yes', ) ); } // Register our color schemes and add them to the style queue function skeptical_color_registrar() { $options = skeptical_get_options(); $color_scheme = $options['color_scheme']; if ( ! empty( $color_scheme ) && 'gray' != $color_scheme ) { wp_register_style( $color_scheme, get_template_directory_uri() . '/styles/' . $color_scheme . '.css', null, null ); wp_enqueue_style( $color_scheme ); } } add_action( 'wp_enqueue_scripts', 'skeptical_color_registrar' ); // Show author info. function skeptical_author_info() { ?>

ID ) ); if ( in_array( $mime, array( 'mp3', 'ogg', 'wav', ) ) ) $classes[] = $mime; } } return $classes; } add_filter( 'post_class', 'skeptical_post_classes' ); // Comment Output function skeptical_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : ?>
  • id="li-comment-"> -
  • id="li-comment-">
    says :', 'woothemes' ), get_comment_author_link() ); ?> ', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), sprintf(__( '%1$s at %2$s', 'woothemes' ), get_comment_date(), get_comment_time() ) ); ?> comment_approved == '0' ) { ?>

    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    tag based on what is being viewed. * * @since Skeptical 1.0.2 */ function skeptical_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', 'woothemes' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'skeptical_wp_title', 10, 2 ); /** * Load up our functions for grabbing content from posts. */ require get_template_directory() . '/content-grabbers.php'; /** * Load up the theme options. */ require get_template_directory() . '/inc/theme-options.php'; /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Load Jetpack compatibility file. */ if ( file_exists( get_template_directory() . '/inc/jetpack.php' ) ) require get_template_directory() . '/inc/jetpack.php';