'200px', 'height' => '200px')); add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); add_theme_support( 'automatic-feed-links' ); if ( !isset( $content_width ) ){ $content_width = 600; } /*----- Write post or page title in posts and pages, and the blog title in home -----*/ add_filter( 'wp_title', 'baw_hack_wp_title_for_home' ); function baw_hack_wp_title_for_home( $title ) { if( empty( $title ) && ( is_home() || is_front_page() ) ) { return get_bloginfo( 'name' ); } return $title; } show_admin_bar( false ); /*----- Creates a header-menu -----*/ function register_my_menu() { register_nav_menu('primary', 'Header Menu'); } add_action( 'init', 'register_my_menu' ); /*----- Creates one Widget Area called Main Sidebar -----*/ function regyster_my_sidebar_lateral() { register_sidebar( array( 'name' => 'Main Sidebar', 'Blackcolors', 'id' => 'sidebar-1', 'description' => 'Widgets in this area will be shown on all posts and pages.', 'Blackcolors' , 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'regyster_my_sidebar_lateral' ); /*----- Creates three Widgets Areas called Footer %d -----*/ function regyster_my_sidebar_footer(){ register_sidebars(3, array('name'=>'Footer %d', 'before_title' => '

', 'after_title' => '

',)); } add_action( 'widgets_init', 'regyster_my_sidebar_footer' ); /*----- Creates Custom Admin Menu -----*/ add_action('admin_menu', 'about_menu'); function about_menu() { add_theme_page( 'BlackColors', 'BlackColors', 'edit_theme_options', 'customize-blackcolors', 'my_plugin_options' ); } function my_plugin_options(){ if ( !current_user_can( 'manage_options' ) ) { wp_die( 'You do not have sufficient permissions to access this page.' ); }else{ $url1 = $_POST['urluno']; $url2 = $_POST['urldos']; $url3 = $_POST['urltres']; $url4 = $_POST['urlcuatro']; $url5 = $_POST['urlcinco']; if($url1){ echo "Las opciones son:
"; update_option("userurla", $url1); update_option("userurlb", $url2); update_option("userurlc", $url3); update_option("userurld", $url4); update_option("userurle", $url5); }else{ $url1 = get_option("userurla"); $url2 = get_option("userurlb"); $url3 = get_option("userurlc"); $url4 = get_option("userurld"); $url5 = get_option("userurle"); echo '
'; echo '

Customize BlackColors

'; echo '

You can modify here the URL Address of every colorbox in the top-right bar

'; echo "










"; echo '
'; } } } ?>