array ( 'id' => $shortname.'_logo_source', 'value' => 'text', 'type' => 'text' ), 'logo_image' => array ( 'id' => $shortname.'_logo_image', 'value' => '', 'type' => 'text' ), 'logo_text' => array ( 'id' => $shortname.'_logo_text', 'value' => $blog_name, 'type' => 'text' ), 'logo_discr' => array ( 'id' => $shortname.'_logo_discr', 'value' => $blog_discr, 'type' => 'text' ), 'favicon_url' => array ( 'id' => $shortname.'_favicon', 'value' => '', 'type' => 'text' ), 'excerpt_length' => array ( 'id' => $shortname.'_excerpt', 'value' => 40, 'type' => 'text' ), 'index_date' => array ( 'id' => $shortname.'_index_date', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'index_comments' => array ( 'id' => $shortname.'_index_comments', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'single_date' => array ( 'id' => $shortname.'_single_date', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'single_comments' => array ( 'id' => $shortname.'_single_comments', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'single_category' => array ( 'id' => $shortname.'_single_category', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'single_author' => array ( 'id' => $shortname.'_single_author', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'single_tags' => array ( 'id' => $shortname.'_single_tags', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'index_search' => array ( 'id' => $shortname.'_index_search', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'to_top' => array ( 'id' => $shortname.'_to_top', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'en_posts_comments' => array ( 'id' => $shortname.'_en_posts_comments', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'en_pages_comments' => array ( 'id' => $shortname.'_en_pages_comments', 'value' => 'Show', 'options' => array( 'Show', 'Hide' ), 'type' => 'radio' ), 'sidebar_position' => array ( 'id' => $shortname.'_sidebar_position', 'value' => 'Right', 'options' => array( 'Left', 'Right' ), 'type' => 'select' ), 'footer_left' => array ( 'id' => $shortname.'_footer_left', 'value' => "© 2013 Columnis | Just Another WordPress Theme", 'type' => 'textarea' ), 'footer_right' => array ( 'id' => $shortname.'_footer_right', 'value' => "Powered by WordPress | Designed by Mihail Barinov", 'type' => 'textarea' ), 'font_size_body' => array ( 'id' => $shortname.'_font_size_body', 'value' => '15', 'options' => $font_sizes, 'type' => 'select' ), 'font_family_body' => array ( 'id' => $shortname.'_font_family_body', 'value' => 'Helvetica', 'options' => array( 'Arial', 'Verdana', 'Trebuchet', 'Georgia', 'Times New Roman', 'Tahoma', 'Palatino', 'Helvetica', 'Calibri', 'Arial Black', 'Impact', 'Courier', 'Oxygen' ), 'type' => 'select' ), 'font_style_body' => array ( 'id' => $shortname.'_font_style_body', 'value' => 'Normal', 'options' => array( 'Normal', 'Bold', 'Italic', 'Bold Italic' ), 'type' => 'select' ), 'font_size_excerpt' => array ( 'id' => $shortname.'_font_size_excerpt', 'value' => '13', 'options' => $font_sizes, 'type' => 'select' ), 'font_family_excerpt' => array ( 'id' => $shortname.'_font_family_excerpt', 'value' => 'Helvetica', 'options' => array( 'Arial', 'Verdana', 'Trebuchet', 'Georgia', 'Times New Roman', 'Tahoma', 'Palatino', 'Helvetica', 'Calibri', 'Arial Black', 'Impact', 'Courier', 'Oxygen' ), 'type' => 'select' ), 'font_style_excerpt' => array ( 'id' => $shortname.'_font_style_excerpt', 'value' => 'Normal', 'options' => array( 'Normal', 'Bold', 'Italic', 'Bold Italic' ), 'type' => 'select' ), 'font_size_nav' => array ( 'id' => $shortname.'_font_size_nav', 'value' => '16', 'options' => $font_sizes, 'type' => 'select' ), 'font_family_nav' => array ( 'id' => $shortname.'_font_family_nav', 'value' => 'Helvetica', 'options' => array( 'Arial', 'Verdana', 'Trebuchet', 'Georgia', 'Times New Roman', 'Tahoma', 'Palatino', 'Helvetica', 'Calibri', 'Arial Black', 'Impact', 'Courier', 'Oxygen' ), 'type' => 'select' ), 'font_style_nav' => array ( 'id' => $shortname.'_font_style_nav', 'value' => 'Normal', 'options' => array( 'Normal', 'Bold', 'Italic', 'Bold Italic' ), 'type' => 'select' ), 'header_color' => array ( 'id' => $shortname.'_header_color', 'value' => '#000000', 'type' => 'text' ), 'body_color' => array ( 'id' => $shortname.'_body_color', 'value' => '#eff2f4', 'type' => 'text' ), 'body_pattern' => array ( 'id' => $shortname.'_body_pattern', 'value' => 'body-bg1', 'type' => 'radio' ), 'footer_color' => array ( 'id' => $shortname.'_footer_color', 'value' => '#ffffff', 'type' => 'text' ), 'menu_mtext_color' => array ( 'id' => $shortname.'_menu_mtext_color', 'value' => '#ffffff', 'type' => 'text' ), 'metatext_color' => array ( 'id' => $shortname.'_metatext_color', 'value' => '#818181', 'type' => 'text' ), 'links_color' => array ( 'id' => $shortname.'_links_color', 'value' => '#2aa4cf', 'type' => 'text' ), 'links_hover' => array ( 'id' => $shortname.'_links_hover', 'value' => '#999999', 'type' => 'text' ), 'menu_color' => array ( 'id' => $shortname.'_menu_color', 'value' => '#2aa4cf', 'type' => 'text' ), 'menu_lists_color' => array ( 'id' => $shortname.'_menu_lists_color', 'value' => '#ffffff', 'type' => 'text' ), 'menu_hover' => array ( 'id' => $shortname.'_menu_hover', 'value' => '#50B7DC', 'type' => 'text' ), 'sticky_bg_color' => array ( 'id' => $shortname.'_sticky_bg_color', 'value' => '#D6F0F9', 'type' => 'text' ), 'sticky_text_color' => array ( 'id' => $shortname.'_sticky_text_color', 'value' => '#333333', 'type' => 'text' ), 'sticky_head_color' => array ( 'id' => $shortname.'_sticky_head_color', 'value' => '#333333', 'type' => 'text' ), 'standard_bg_color' => array ( 'id' => $shortname.'_standard_bg_color', 'value' => '#ffffff', 'type' => 'text' ), 'standard_text_color' => array ( 'id' => $shortname.'_standard_text_color', 'value' => '#666666', 'type' => 'text' ), 'standard_head_color' => array ( 'id' => $shortname.'_standard_head_color', 'value' => '#333333', 'type' => 'text' ), ); function columnis_style() { wp_enqueue_style("theme-admin", get_stylesheet_directory_uri() ."/admin/admin-style.css", false, "1.0", "all"); wp_enqueue_style("wheelcolorpicker", get_stylesheet_directory_uri() ."/admin/jquery.wheelcolorpicker/css/wheelcolorpicker.css", false, "1.0", "all"); wp_enqueue_style('thickbox'); } function columnis_scripts() { global $query_string; if ( isset( $_GET['page'] ) && $_GET['page'] == 'columnis-settings') { wp_enqueue_script('columnis-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery') ); } wp_enqueue_script('media-upload'); wp_enqueue_script('thickbox'); wp_enqueue_script("theme-admin", get_stylesheet_directory_uri() ."/admin/admin-script.js", false, "1.0"); $admin_params = array( 'colorDir' => get_stylesheet_directory_uri() .'/admin/jquery.wheelcolorpicker' ); wp_enqueue_script("wheelcolorpicker", get_stylesheet_directory_uri() ."/admin/jquery.wheelcolorpicker/jquery.wheelcolorpicker.js", false, "1.0"); wp_localize_script( 'theme-admin', 'AdminParams', $admin_params ); } function columnis_settings_init(){ register_setting( 'columnis_settings', 'columnis_settings' ); } function columnis_add_settings_page() { global $query_string; global $options; global $shortname; if ( isset( $_GET['page'] ) && $_GET['page'] == 'columnis-settings') { if ( isset( $_REQUEST['action'] ) && 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { if ( $value['type'] == 'text') { update_option( $value['id'], esc_attr( $_REQUEST[ $value['id'] ] ) ); } else { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } } $send = $_GET['page']; header("Location: admin.php?page=$send&saved=true"); die; } } // $_GET['page'] == 'columnis-settings' add_theme_page( __( 'Theme Settings', 'columnis' ), __( 'Theme Settings', 'columnis' ), 'edit_theme_options', 'columnis-settings', 'columnis_settings_page' ); } function columnis_settings_page() { global $options; global $shortname; ?>

| Columnis 1.2

logo

favicon

" />
>Yes >No
>Yes >No
>Yes >No
>Yes >No

>Yes >No
>Yes >No
>Yes >No
>Yes >No
>Yes >No
>Yes >No
>Yes >No

  • />