__('Main Menu', 'simplify') ) ); // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 150, 150, true ); // default Post Thumbnail dimensions (cropped) // additional image sizes // delete the next line if you do not need additional image sizes add_image_size( 'category-thumb', 300, 9999 ); //300 pixels wide (and unlimited height) // WordPress Custom Background Support $simplify_custom_background = array( 'default-color' => 'ffffff', ); add_theme_support( 'custom-background', $simplify_custom_background ); // WordPress Custom Header Support $simplify_custom_header = array( 'default-image' => '', 'random-default' => false, 'width' => 300, 'height' => 90, 'flex-height' => true, 'flex-width' => true, 'default-text-color' => 'AAAAAA', 'header-text' => false, 'uploads' => true, 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-header', $simplify_custom_header ); } add_action( 'after_setup_theme', 'simplify_setup' ); // Functions for adding script function simplify_enqueue_scripts() { if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_style('simplify-style', get_stylesheet_uri(), false ); wp_enqueue_script( 'simplify-menu-style', get_template_directory_uri(). '/js/menu.js', array( 'jquery' ) ); wp_register_style('simplify-gfonts1', '//fonts.googleapis.com/css?family=Poiret+One', false ); wp_register_style('simplify-gfonts2', '//fonts.googleapis.com/css?family=Anaheim', false ); wp_enqueue_style('simplify-gfonts1'); wp_enqueue_style('simplify-gfonts2'); wp_enqueue_script( 'simplify-html5', get_template_directory_uri().'/js/html5.js'); wp_script_add_data( 'simplify-html5', 'conditional', 'lt IE 9' ); $responsive = ''; $responsive = esc_html(simplify_get_option('responsive', '1')); if (is_front_page()): wp_enqueue_script( 'simplify-slider', get_template_directory_uri(). '/js/jqFancyTransitions.1.8.min.js', array( 'jquery' ) ); if($responsive) wp_enqueue_script( 'simplify-rslider', get_template_directory_uri(). '/js/responsiveslides.js', array( 'jquery' ) ); endif; if ( $responsive ) wp_enqueue_style('simplify-responsive', get_template_directory_uri(). '/style-responsive.css' ); } add_action( 'wp_enqueue_scripts', 'simplify_enqueue_scripts' ); // Functions for adding script to Admin Area function simplify_admin_style() { wp_enqueue_style( 'simplify_admin_css', get_template_directory_uri() . '/inc/admin-style.css', false ); } add_action( 'admin_enqueue_scripts', 'simplify_admin_style' ); // function tied to the excerpt_more filter hook. function simplify_excerpt_length( $Length ) { global $simplifyExcerptLength; if ($simplifyExcerptLength) { return $simplifyExcerptLength; } else { return 50; //default value } } add_filter( 'excerpt_length', 'simplify_excerpt_length', 999 ); function simplify_not_found() { ?>



ID) . '" class="read-more">Read More...'; } add_filter('excerpt_more', 'simplify_excerpt_more'); // Content Type Showing function simplify_content() { the_content(''.__('Read More...', 'simplify').''); } function simplify_creditline() { echo '| Simplify '.__('Theme by: ', 'simplify').'D5 Creation | '.__('Powered by: ', 'simplify').'WordPress'; } // Registers the Widgets and Sidebars for the site function simplify_widgets_init() { register_sidebar( array( 'name' => __('Primary Sidebar','simplify'), 'id' => 'sidebar-1', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __('Secondary Sidebar', 'simplify'), 'id' => 'sidebar-2', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __('Footer Area One', 'simplify'), 'id' => 'sidebar-3', 'description' => 'An optional widget area for your site footer', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __('Footer Area Two', 'simplify'), 'id' => 'sidebar-4', 'description' => 'An optional widget area for your site footer', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __('Footer Area Three','simplify'), 'id' => 'sidebar-5', 'description' => 'An optional widget area for your site footer', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __('Footer Area Four', 'simplify'), 'id' => 'sidebar-6', 'description' => 'An optional widget area for your site footer', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'simplify_widgets_init' ); add_filter('the_title', 'simplify_title'); function simplify_title($title) { if ( '' == $title ) { return '(Untitled)'; } else { return $title; } } // Remove WordPress Custom Header Support for the theme Simplify // remove_theme_support('custom-header');