"; print ""; if(function_exists('wp_enqueue_media')) { wp_enqueue_media(); } else { wp_enqueue_script('media-upload'); wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox'); } } add_action('admin_head', 'admin_head_js'); // **************** Enable Featured Image Option add_theme_support( 'post-thumbnails' ); add_theme_support( 'title-tag' ); add_theme_support( "custom-header" ); add_theme_support( "custom-background"); add_theme_support( 'automatic-feed-links' ); add_editor_style(); if ( ! isset( $content_width ) ) $content_width = 900; /* Register custom menus */ function register_my_menu() { register_nav_menu('primary_menu',__( 'Primary Menu' )); } add_action( 'init', 'register_my_menu' ); /* * **************** Thumbnails Resizing * bt_add_image_size ( 'ft-post-thumb', 545, 125, array( 'center', 'center' ) ); * add_image_size ( 'ft-thumb', 270, 270, false ); */ if ( function_exists( 'add_image_size' ) ) { // Resizing image function here bt_add_image_size ( 'ft-slider', 1280, 500, array( 'center', 'center' ) ); bt_add_image_size ( 'ft-post-thumb', 250, 175, array( 'center', 'center' ) ); bt_add_image_size ( 'ft-testimonial', 82, 82, array( 'center', 'center' ) ); } function bt_add_image_size( $name, $width = 0, $height = 0, $crop = false ) { global $_wp_additional_image_sizes; $_wp_additional_image_sizes[$name] = array( 'width' => absint( $width ), 'height' => absint( $height ), 'crop' => $crop ); } // **************** Register widget areas function flextoon_widgets_init() { register_sidebar( array( 'name' => __( 'Blog Sidebar', 'flextoon' ), 'id' => 'sidebar-1', 'description' => __( 'Blog sidebar that appears on the right.', 'flextoon' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'flextoon_widgets_init' ); // **************** Excerpt Modificaiton function new_excerpt_more( $more ) { return ' ' . __('Read More', 'your-text-domain') . ''; } add_filter( 'excerpt_more', 'new_excerpt_more' ); // **************** Custom Theme Option require_once (TEMPLATEPATH . '/admin/theme-options.php'); // **************** Custom Post Type //require_once (TEMPLATEPATH . '/admin/custom-post-type.php'); // **************** Custom Meta Box require_once (TEMPLATEPATH . '/admin/meta-box.php'); ?>