__( 'Primary Navigation', 'skeptical' ), ) ); // 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' ); if ( ! function_exists( 'wp_body_open' ) ) : /** * Fire the wp_body_open action. * * Included for backward compatibility with WordPress versions prior to 5.2. */ function wp_body_open() { do_action( 'wp_body_open' ); } endif; /** * 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', 'skeptical' ), 'id' => 'sidebar-1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

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

', 'after_title' => '

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

', 'after_title' => '

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

', 'after_title' => '

', )); register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'skeptical' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'The fourth footer widget area.', 'skeptical' ), '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 :', 'skeptical' ), get_comment_author_link() ); ?> ', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), sprintf(__( '%1$s at %2$s', 'skeptical' ), get_comment_date(), get_comment_time() ) ); ?> comment_approved == '0' ) { ?>

    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>