tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /** Support Formats theme. */ /* add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery', ) ); */ /* May delete below 4 lines /** Support post-thumbnails */ /*if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); }*/ /* * Enable support for Post Thumbnails on posts and pages. * * See: https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); add_theme_support( "custom-header"); // Setup the WordPress core custom background feature. add_theme_support( "custom-background" ); /** Add Support WooCommerce. */ //add_theme_support( 'woocommerce' ); } endif; // alphabet_setup add_action( 'after_setup_theme', 'alphabet_setup' ); /** * Need check correct serialized data in get_option( 'theme_mods_' . get_stylesheet() ) */ /* if (!get_option('theme_mods_alphabet')) { // it is possible that something is wrong with the serialized data in wp_options.theme_mods_alphabet print '
It is possible that something is wrong with the serialized data in DB: \'wp_options.theme_mods_alphabet\'.
'; print 'File: '. __FILE__ .'
'; print 'Line: '. __LINE__ .'
'; } */ /** * * @param type $id * @return type */ function alphabet_get_the_portfolio_category( $id = false ) { $categories = get_the_terms( $id, 'portfolio_category' ); if ( ! $categories || is_wp_error( $categories ) ) $categories = array(); $categories = array_values( $categories ); foreach ( array_keys( $categories ) as $key ) { _make_cat_compat( $categories[$key] ); } /** * Filter the array of categories to return for a post. * * @since 3.1.0 * * @param array $categories An array of categories to return for the post. */ return apply_filters( 'get_the_categories', $categories ); } function alphabet_the_breadcrumb() { if ((get_option( 'show_brealcrums_line' ) == 'show') and (get_post_meta(get_the_ID(), 'brescrumbs_show', true) != 'no')) { echo ''; } } /** Activation theme. */ function alphabet_myactivationfunction($oldname, $oldtheme=false) { add_option( 'comming_soon', '' ); add_option( 'type_comming_soon', 'skin2' ); add_option( 'datatime_startsite', '' ); add_option( 'heading_text_comming_soon', 'We Are Currently Under Construction' ); add_option( 'description_text_comming_soon', 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.' ); add_option( 'default_sidebar_position_category', 'right' ); add_option( 'default_list_style_category', 'list' ); add_option( 'default_post_style_category', 'standart' ); add_option( 'default_even_animation_box', '' ); add_option( 'default_even_delay_box', '' ); add_option( 'default_odd_animation_box', '' ); add_option( 'default_odd_delay_box', '' ); add_option( 'default_date_animation_box', '' ); add_option( 'default_date_delay_box', '' ); add_option( 'default_sidebar_position_post', 'full' ); add_option( 'type_preloader', 'skin5' ); add_option( 'text_preloader', '' ); add_option( 'animation_for_logo', '' ); // in TO: select; moved add_option( 'delay_for_logo', '' ); // in TO: select; moved add_option( 'default_body_font', '' ); // in TO: select; moved add_option( 'default_body_fontweight', '' ); // in TO: select; moved add_option( 'default_body_fontstyle', '' ); // in TO: select; moved add_option( 'default_body_fontsize', '' ); // moved add_option( 'default_body_lineheight', '' ); // moved add_option( 'default_body_letter_spacing', '' ); // moved add_option( 'default_body_fontcolor', '' ); // moved add_option( 'default_h1_font', '' ); // moved add_option( 'default_h1_fontweight', '' ); add_option( 'default_h1_fontstyle', '' ); add_option( 'default_h1_fontsize', '' ); add_option( 'default_h1_lineheight', '' ); add_option( 'default_h1_letter_spacing', '' ); add_option( 'default_h1_fontcolor', '' ); // moved add_option( 'default_h2_font', '' ); // moved add_option( 'default_h2_fontweight', '' ); add_option( 'default_h2_fontstyle', '' ); add_option( 'default_h2_fontsize', '' ); add_option( 'default_h2_lineheight', '' ); add_option( 'default_h2_letter_spacing', '' ); add_option( 'default_h2_fontcolor', '' ); // moved add_option( 'default_h3_font', '' ); // moved add_option( 'default_h3_fontweight', '' ); add_option( 'default_h3_fontstyle', '' ); add_option( 'default_h3_fontsize', '' ); add_option( 'default_h3_lineheight', '' ); add_option( 'default_h3_letter_spacing', '' ); add_option( 'default_h3_fontcolor', '' ); // moved add_option( 'default_h4_font', '' ); // moved add_option( 'default_h4_fontweight', '' ); add_option( 'default_h4_fontstyle', '' ); add_option( 'default_h4_fontsize', '' ); add_option( 'default_h4_lineheight', '' ); add_option( 'default_h4_letter_spacing', '' ); add_option( 'default_h4_fontcolor', '' ); // moved add_option( 'default_h5_font', '' ); // moved add_option( 'default_h5_fontweight', '' ); add_option( 'default_h5_fontstyle', '' ); add_option( 'default_h5_fontsize', '' ); add_option( 'default_h5_lineheight', '' ); add_option( 'default_h5_letter_spacing', '' ); add_option( 'default_h5_fontcolor', '' ); // moved add_option( 'default_h6_font', '' ); // moved add_option( 'default_h6_fontweight', '' ); add_option( 'default_h6_fontstyle', '' ); add_option( 'default_h6_fontsize', '' ); add_option( 'default_h6_lineheight', '' ); add_option( 'default_h6_letter_spacing', '' ); add_option( 'default_h6_fontcolor', '' ); // moved add_option( 'line_title_backcolor', '#edf1f2' ); // not implemented by Theme Options (in styles) add_option( 'line_title_textcolor', '#000000' ); // not implemented by Theme Options (in styles) add_option( 'animation_line_title', '' ); // moved to Customizer add_option( 'delay_line_title', '' ); // moved to Customizer add_option( 'show_brealcrums_line', 'show' ); // moved to Customizer add_option( 'breadcrums_a_color', '#3bc0c3' ); // moved to Customizer add_option( 'breadcrums_ahover_color', '#000000' ); // moved to Customizer add_option( 'breadcrums_ccurrent', '#9caab3' ); // moved to Customizer add_option( 'breadcrums_text', '#9caab3' ); // moved to Customizer add_option( 'animation_breadcrumbs', '' ); // only in Customizer add_option( 'delay_breadcrumbs', '' ); // only in Customizer //add_option( 'show_ajax_load', '' ); // moved to Customizer; moved to serialized in DB: alphabet_theme_options; may remove //add_option( 'menu_ontop_preloader', '' ); // moved to Customizer; moved to serialized in DB: alphabet_theme_options; may remove //add_option( 'menu_fixed', '' ); // moved to Customizer; moved to serialized in DB: alphabet_theme_options; may remove add_option( 'animation_for_menu', '' ); // in TO: select; moved to Customizer add_option( 'delay_for_menu', '' ); // in TO: select; moved to Customizer add_option( 'menu_background', '#ffffff' ); // moved to Customizer add_option( 'menu_background_hover', '#edf1f2' ); // moved to Cus add_option( 'menu_text_color', '#7f8f99' ); // moved to Cus add_option( 'menu_text_color_hover', '#39c1c3' ); // moved to Cus add_option( 'menu_text_color_current', '#7f8f99' ); // moved to Cus add_option( 'menu_border_color_current', '#39c1c3' ); // moved to Cus add_option( 'sub_menu_background', '#edf1f2' ); // moved to Cus add_option( 'sub_menu_background_hover', '#39c1c3' ); // moved to Cus add_option( 'sub_menu_text_color', '#a1b1bc' ); // moved to Cus add_option( 'sub_menu_text_color_hover', '#ffffff' ); // moved to Cus add_option( 'sub_menu_text_color_current', '#ffffff' ); // moved to Cus add_option( 'sub_menu_border_color_current', '#39c1c3' ); // moved to Cus add_option( 'menu_border_color_full', '#edf1f2' ); // moved to Cus add_option( 'border_width_skin_1', '0' ); // in TO: text; moved to Cus add_option( 'border_width_skin_2', '1' ); // in TO: text; moved to Cus add_option( 'logo_vertical_padding', '18' ); // in TO: text; moved to Cus add_option( 'menu_vertical_padding', '0' ); // in TO: text; moved to Cus add_option( 'social_link_facebook', 'https://www.facebook.com/' ); add_option( 'social_share_facebook', 'enable' ); add_option( 'social_link_twitter', 'https://twitter.com/' ); add_option( 'social_share_twitter', 'enable' ); add_option( 'social_link_google_plus', 'https://plus.google.com/' ); add_option( 'social_share_google_plus', 'enable' ); add_option( 'social_link_vkontakte', 'http://vk.com/' ); add_option( 'social_share_vkontakte', 'enable' ); add_option( 'social_link_mailru', 'https://mail.ru/' ); add_option( 'social_share_mailru', 'enable' ); add_option( 'social_link_odnoklassniki', 'http://ok.ru/' ); add_option( 'social_share_odnoklassniki', 'enable' ); add_option( 'social_link_linkedin', 'https://www.linkedin.com/' ); add_option( 'social_share_linkedin', 'enable' ); add_option( 'social_link_livejournal', 'http://www.livejournal.com/' ); add_option( 'social_share_livejournal', 'enable' ); add_option( 'social_link_tumblr', 'https://www.tumblr.com/' ); add_option( 'social_share_tumblr', 'enable' ); //add_option( 'logo_header_position', 'skin1' ); // moved to Customizer //add_option( 'show_header_login', '1' ); // moved to Customizer //add_option( 'show_header_first', 'Yes' ); // moved to Customizer /** set array of default options * (couse we need in options, stored as boolean values) */ $alphabet_theme_options = array( 'checkbox_show_header_login' => TRUE, 'checkbox_show_header_first' => TRUE, 'checkbox_show_ajax_load' => FALSE, 'checkbox_menu_ontop_preloader' => FALSE, 'checkbox_menu_fixed' => FALSE, 'checkbox_show_border_menu' => TRUE, ); add_option('alphabet_theme_options', $alphabet_theme_options); add_option( 'top_sdb_background', '#edf1f2' ); // moved to Customizer add_option( 'top_txt_color', '#677b87' ); // moved to Customizer add_option( 'logo_sdb_padding', '10' ); // moved to Customizer //add_option( 'footer_copyright', '© Copyright 2015' ); //add_option( 'footer_backgroung', '#b6c2c9' ); //add_option( 'footer_text_color', '#ffffff' ); //add_option( 'fwidgeteria_background', '#edf1f2' ); //add_option( 'fwidgeteria_color_text', '#888888' ); //add_option( 'fwidgeteria_color_links', '#141414' ); //add_option( 'fwidgeteria_color_h3', '#8698a2' ); //add_option( 'fwidgeteria_color_h4', '#000000' ); // moved to Customizer //add_option( 'show_logo_and_text', 'show' ); // in TO: checkbox; enable core feature in Customizer; may delete from here. //add_option( 'logo_noimage_color', '#3BC0C3' ); // moved; we will use WP buit-in feature for that: theme_mod: 'header_textcolor', may delete add_option( 'logo_noimage_size', '18' ); // moved add_option( 'slogan_noimage_color', '#989898' ); // moved add_option( 'slogan_noimage_size', '18' ); // moved add_option( 'logo_noimage_2row', '2row' ); // in TO: radio; moved add_option( 'show_border_menu', 'yes' ); // checkbox in TO, moved to Customize: in proc ?? add_option( 'type_contact', 'skin1' ); //update_option( 'page_on_front', '10' ); //update_option( 'show_on_front', 'page' ); //add_option( 'line_title_image', '1740' ); // old variant //add_option( 'favicon_theme', '346' ); // was'767' // in TO: value="346" (id of image in DB (Table: wp_postmeta: _wp_attached_file: '2016/01/favicon.png')); //add_option( 'favicon_theme', '/wp-content/themes/alphabet/img/favicon.png' ); // moved; we will use wp default feature. May remove. // new variant // set default value to WP buil-in favicon add_option( 'site_icon', get_stylesheet_directory_uri() . '/img/favicon.png' ); // this is WP built-in option, pls don't make 'delete_option' action! //add_option( 'logo_in_header', '64' ); // old, was commented. (in DB: 339; image with this id: /wp-content/uploads/2016/01/logo.png) add_option( 'logo_in_header', '/wp-content/themes/alphabet/img/logo.png' ); // moved //add_option( 'logo_in_footer', '272' ); // old, was commented. (in DB: 349; image with this id: /wp-content/uploads/2016/01/logo_white.png) add_option( 'logo_in_footer', '/wp-content/themes/alphabet/img/logo_white.png' ); // moved //add_option( 'logo_big_size', '1339' ); // old, was commented. (in DB: 347; image with this id: /wp-content/uploads/2016/01/logo_big.png) add_option( 'logo_big_size', '/wp-content/themes/alphabet/img/logo_big.png' ); // moved add_option('hidden_current_option', '#custom-option-faqs'); // default Tab in TO //add_option( 'logo_preloader', '229' ); //add_option( 'background_preloader', '1143' ); //add_option( 'category_2', 'a:4:{s:9:"cat_title";s:1:"1";s:9:"list_grid";s:4:"list";s:12:"post_masonry";s:8:"standart";s:16:"sidebar_position";s:4:"left";}' ); //add_option( 'category_3', 'a:3:{s:16:"sidebar_position";s:4:"full";s:9:"list_grid";s:4:"grid";s:12:"post_masonry";s:8:"standart";}' ); //add_option( 'category_5', 'a:3:{s:16:"sidebar_position";s:5:"right";s:9:"list_grid";s:4:"list";s:12:"post_masonry";s:8:"standart";}' ); //add_option( 'category_19', 'a:3:{s:16:"sidebar_position";s:5:"right";s:9:"list_grid";s:4:"grid";s:12:"post_masonry";s:8:"standart";}' ); //add_option( 'category_21', 'a:11:{s:16:"sidebar_position";s:4:"full";s:9:"list_grid";s:8:"timeline";s:12:"post_masonry";s:8:"standart";s:13:"animation_box";s:10:"fadeInLeft";s:9:"delay_box";s:10:"delay-0_5s";s:18:"even_animation_box";s:0:"";s:14:"even_delay_box";s:10:"delay-0_5s";s:17:"odd_animation_box";s:0:"";s:13:"odd_delay_box";s:10:"delay-0_5s";s:18:"date_animation_box";s:0:"";s:14:"date_delay_box";s:10:"delay-1_0s";}' ); //add_option( 'category_22', 'a:9:{s:16:"sidebar_position";s:4:"left";s:9:"list_grid";s:8:"timeline";s:12:"post_masonry";s:8:"standart";s:18:"even_animation_box";s:0:"";s:14:"even_delay_box";s:0:"";s:17:"odd_animation_box";s:0:"";s:13:"odd_delay_box";s:0:"";s:18:"date_animation_box";s:0:"";s:14:"date_delay_box";s:0:"";}' ); //add_option( 'category_23', 'a:3:{s:16:"sidebar_position";s:5:"right";s:9:"list_grid";s:8:"timeline";s:12:"post_masonry";s:7:"masonry";}' ); //add_option( 'category_6', 'a:3:{s:16:"sidebar_position";s:4:"full";s:9:"list_grid";s:4:"list";s:12:"post_masonry";s:8:"standart";}' ); //add_option( 'category_18', 'a:5:{s:16:"sidebar_position";s:4:"left";s:9:"list_grid";s:4:"grid";s:12:"post_masonry";s:8:"standart";s:13:"animation_box";s:0:"";s:9:"delay_box";s:0:"";}' ); } add_action("after_switch_theme", "alphabet_myactivationfunction", 10 , 2); // Temporary DUPLICATE here $alphabet_theme_options = array( 'checkbox_show_header_login' => TRUE, 'checkbox_show_header_first' => TRUE, 'checkbox_show_ajax_load' => FALSE, 'checkbox_menu_ontop_preloader' => FALSE, 'checkbox_menu_fixed' => FALSE, 'checkbox_show_border_menu' => TRUE, ); //add_option('alphabet_theme_options', $alphabet_theme_options); // Temporary DUPLICATE here add_option( 'animation_breadcrumbs', '' ); // only in Customizer add_option( 'delay_breadcrumbs', '' ); // only in Customizer // Temporary DUPLICATE here delete_option( 'menu_ontop_preloader' ); // moved to serialized in DB: alphabet_theme_options; may remove delete_option( 'show_ajax_load' ); // moved to serialized in DB: alphabet_theme_options; may remove delete_option( 'menu_fixed' ); // moved to serialized in DB: alphabet_theme_options; may remove // Temporary DUPLICATE here delete_option( 'logo_noimage_color'); // we will use WP buit-in feature for that: theme_mod: 'header_textcolor', may delete /** Deactivation theme. */ function alphabet_mydeactivationfunction($newname, $newtheme) { /* delete_option( 'comming_soon' ); delete_option( 'type_comming_soon' ); delete_option( 'datatime_startsite' ); delete_option( 'heading_text_comming_soon' ); delete_option( 'description_text_comming_soon' ); delete_option( 'default_sidebar_position_category' ); delete_option( 'default_list_style_category' ); delete_option( 'default_post_style_category' ); delete_option( 'default_even_animation_box' ); delete_option( 'default_even_delay_box' ); delete_option( 'default_odd_animation_box' ); delete_option( 'default_odd_delay_box' ); delete_option( 'default_date_animation_box' ); delete_option( 'default_date_delay_box' ); delete_option( 'default_sidebar_position_post' ); delete_option( 'type_preloader' ); delete_option( 'text_preloader' ); delete_option( 'animation_for_logo' ); delete_option( 'delay_for_logo' ); delete_option( 'default_body_font'); delete_option( 'default_body_fontweight' ); delete_option( 'default_body_fontstyle' ); delete_option( 'default_body_fontsize' ); delete_option( 'default_body_lineheight' ); delete_option( 'default_body_letter_spacing' ); delete_option( 'default_body_fontcolor' ); delete_option( 'default_h1_font' ); delete_option( 'default_h1_fontweight' ); delete_option( 'default_h1_fontstyle' ); delete_option( 'default_h1_fontsize' ); delete_option( 'default_h1_lineheight' ); delete_option( 'default_h1_letter_spacing' ); delete_option( 'default_h1_fontcolor' ); delete_option( 'default_h2_font' ); delete_option( 'default_h2_fontweight' ); delete_option( 'default_h2_fontstyle' ); delete_option( 'default_h2_fontsize' ); delete_option( 'default_h2_lineheight' ); delete_option( 'default_h2_letter_spacing' ); delete_option( 'default_h2_fontcolor' ); delete_option( 'default_h3_font' ); delete_option( 'default_h3_fontweight' ); delete_option( 'default_h3_fontstyle' ); delete_option( 'default_h3_fontsize' ); delete_option( 'default_h3_lineheight' ); delete_option( 'default_h3_letter_spacing' ); delete_option( 'default_h3_fontcolor' ); delete_option( 'default_h4_font' ); delete_option( 'default_h4_fontweight' ); delete_option( 'default_h4_fontstyle' ); delete_option( 'default_h4_fontsize' ); delete_option( 'default_h4_lineheight' ); delete_option( 'default_h4_letter_spacing' ); delete_option( 'default_h4_fontcolor' ); delete_option( 'default_h5_font' ); delete_option( 'default_h5_fontweight' ); delete_option( 'default_h5_fontstyle' ); delete_option( 'default_h5_fontsize' ); delete_option( 'default_h5_lineheight' ); delete_option( 'default_h5_letter_spacing' ); delete_option( 'default_h5_fontcolor' ); delete_option( 'default_h6_font' ); delete_option( 'default_h6_fontweight' ); delete_option( 'default_h6_fontstyle' ); delete_option( 'default_h6_fontsize' ); delete_option( 'default_h6_lineheight' ); delete_option( 'default_h6_letter_spacing' ); delete_option( 'default_h6_fontcolor' ); delete_option( 'line_title_backcolor' ); delete_option( 'line_title_textcolor' ); delete_option( 'animation_line_title' ); delete_option( 'delay_line_title' ); delete_option( 'show_brealcrums_line' ); delete_option( 'breadcrums_a_color' ); delete_option( 'breadcrums_ahover_color' ); delete_option( 'breadcrums_ccurrent' ); delete_option( 'breadcrums_text' ); //delete_option( 'show_ajax_load' ); // moved to serialized in DB: alphabet_theme_options; may remove //delete_option( 'menu_ontop_preloader' ); // moved to serialized in DB: alphabet_theme_options; may remove //delete_option( 'menu_fixed' ); // moved to serialized in DB: alphabet_theme_options; may remove delete_option( 'animation_for_menu' ); delete_option( 'delay_for_menu' ); delete_option( 'menu_background' ); delete_option( 'menu_background_hover' ); delete_option( 'menu_text_color' ); delete_option( 'menu_text_color_hover' ); delete_option( 'menu_text_color_current' ); delete_option( 'menu_border_color_current' ); delete_option( 'sub_menu_background' ); delete_option( 'sub_menu_background_hover' ); delete_option( 'sub_menu_text_color' ); delete_option( 'sub_menu_text_color_hover' ); delete_option( 'sub_menu_text_color_current' ); delete_option( 'sub_menu_border_color_current' ); delete_option( 'menu_border_color_full' ); delete_option( 'border_width_skin_1' ); delete_option( 'border_width_skin_2' ); delete_option( 'logo_vertical_padding' ); delete_option( 'menu_vertical_padding' ); delete_option( 'social_link_facebook' ); delete_option( 'social_share_facebook' ); delete_option( 'social_link_twitter' ); delete_option( 'social_share_twitter' ); delete_option( 'social_link_google_plus' ); delete_option( 'social_share_google_plus' ); delete_option( 'social_link_vkontakte' ); delete_option( 'social_share_vkontakte' ); delete_option( 'social_link_mailru' ); delete_option( 'social_share_mailru' ); delete_option( 'social_link_odnoklassniki' ); delete_option( 'social_share_odnoklassniki' ); delete_option( 'social_link_linkedin' ); delete_option( 'social_share_linkedin' ); delete_option( 'social_link_livejournal' ); delete_option( 'social_share_livejournal' ); delete_option( 'social_link_tumblr' ); delete_option( 'social_share_tumblr' ); delete_option( 'show_header_first' ); delete_option( 'top_sdb_background' ); delete_option( 'top_txt_color' ); delete_option( 'logo_sdb_padding' ); delete_option( 'logo_header_position' ); delete_option( 'show_header_login' ); delete_option( 'footer_copyright' ); delete_option( 'footer_backgroung' ); delete_option( 'footer_text_color' ); delete_option( 'fwidgeteria_background' ); delete_option( 'fwidgeteria_color_text' ); delete_option( 'fwidgeteria_color_links' ); delete_option( 'fwidgeteria_color_h3' ); delete_option( 'fwidgeteria_color_h4' ); delete_option( 'line_title_image' ); //delete_option( 'favicon_theme' ); // we will use wp default feature. May remove. delete_option( 'logo_in_header' ); delete_option( 'logo_in_footer' ); delete_option( 'logo_big_size' ); delete_option( 'logo_preloader' ); delete_option( 'background_preloader' ); //delete_option( 'logo_noimage_color'); delete_option( 'logo_noimage_size'); delete_option( 'slogan_noimage_color'); delete_option( 'slogan_noimage_size'); delete_option( 'logo_noimage_2row'); delete_option( 'show_border_menu'); delete_option( 'type_contact'); delete_option( 'animation_breadcrumbs'); // only in Customizer delete_option( 'delay_breadcrumbs'); // only in Customizer */ } add_action("switch_theme", "alphabet_mydeactivationfunction", 10 , 2); add_action('init', 'alphabet_register_nav_menus_on_init'); function alphabet_register_nav_menus_on_init() { // This theme uses wp_nav_menu() in one location. register_nav_menus(array( 'top-pages-menu' => __('My Top Pages Menu', 'alphabet'), )); } /** Import demo data theme. */ //include_once('includes/import/custom-import.php'); if ( ! isset( $content_width ) ) { $content_width = 600; } /** Include VARS from theme. */ include_once('includes/vars.php'); /** Include the TGM_Plugin_Activation class. */ //include_once('includes/plugins/requared-plugin-list.php'); composer /** Include Custom Options for This Theme */ include_once('includes/admin/theme-options.php'); /** Include Custom Options for This Theme */ include_once('includes/admin/metaboxes.php'); include_once('includes/admin/custom-fields-post-formats.php'); /** Include Custom Widgets and Shortcodes for This Theme */ include_once('includes/admin/widgets.php'); /** Register custom sidebar */ /* if ( function_exists('register_sidebar') ) register_sidebar(array( 'before_widget' => '', 'before_title' => '