'click', 'container' => 'content', 'render' => 'simplecatch_infinite_scroll_render', 'footer' => 'page' ) ); // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page. add_theme_support( 'post-thumbnails' ); /* We'll be using post thumbnails for custom features images on posts under blog category. * Larger images will be auto-cropped to fit. */ set_post_thumbnail_size( 210, 210 ); // Add Simple Catch's custom image sizes add_image_size( 'featured', 210, 210, true); // uses on homepage featured image add_image_size( 'slider', 976, 313, true); // uses on Featured Slider on Homepage Header // Add default posts and comments RSS feed links to head add_theme_support( 'automatic-feed-links' ); // remove wordpress version from header for security concern remove_action( 'wp_head', 'wp_generator' ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'simplecatch' ) ); // Add support for custom backgrounds add_theme_support( 'custom-background' ); // The default header text color define( 'HEADER_TEXTCOLOR', '444' ); // Add support for custom header add_theme_support( 'custom-header', array( // Header image random rotation default 'random-default' => false, // Header image flex width 'flex-width' => true, // Recommended Header width 'width' => 978, // Header image flex height 'flex-height' => true, // Recommended Header height 'height' => 200, // Template header style callback 'wp-head-callback' => 'simplecatch_header_style', // Admin header style callback 'admin-head-callback' => 'simplecatch_admin_header_style', // Admin preview style callback 'admin-preview-callback' => 'simplecatch_admin_header_image' ) ); } // simplecatch_setup endif; if ( ! function_exists( 'simplecatch_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @since Simple Catch 2.7 */ function simplecatch_header_style() { $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( $text_color == HEADER_TEXTCOLOR ) return; // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @since Simple Catch 2.7 */ function simplecatch_admin_header_style() { $color = get_header_textcolor(); ?> Header admin panel. * * * @since Simple Catch 2.7 */ function simplecatch_admin_header_image() { if ( function_exists( 'simplecatch_headerdetails' ) ): simplecatch_headerdetails(); endif; if ( get_header_image() ) : ?>
Header admin panel. * * @since Simple Catch 2.7 */ function simplecatch_custom_header_image() { if ( get_header_image() ) : ?>