'Helvetica', 'Verdana' => 'Verdana', 'Georgia' => 'Georgia', 'Trebuchet' => 'Trebuchet', 'Tahoma' => 'Tahoma' ); // Test data $test_array = array( 'one' => __('One', 'caos'), 'two' => __('Two', 'caos'), 'three' => __('Three', 'caos'), 'four' => __('Four', 'caos'), 'five' => __('Five', 'caos') ); // Multicheck Array $multicheck_array = array( 'one' => __('French Toast', 'caos'), 'two' => __('Pancake', 'caos'), 'three' => __('Omelette', 'caos'), 'four' => __('Crepe', 'caos'), 'five' => __('Waffle', 'caos') ); // Multicheck Defaults $multicheck_defaults = array( 'one' => '1', 'five' => '1' ); // Background Defaults $background_defaults = array( 'color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment'=>'scroll' ); // Typography Defaults $typography_defaults = array( 'size' => '13px', 'face' => 'Helvetica', 'style' => 'normal', 'color' => '#737373' ); // Typography Options $typography_options = array( 'sizes' => false, 'faces' => array( 'Helvetica' => '"Helvetica Neue", Helvetica, sans-serif','Verdana' => 'Verdana','Georgia' => 'Georgia','Trebuchet' => 'Trebuchet', 'Tahoma' => 'Tahoma' ), 'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ), 'color' => '#737373' ); //True/False options $options_true_false = array("true" => "True","false" => "False"); // Pull all the categories into an array $options_categories = array(); $options_categories_obj = get_categories(); foreach ($options_categories_obj as $category) { $options_categories[$category->cat_ID] = $category->cat_name; } // Pull all tags into an array $options_tags = array(); $options_tags_obj = get_tags(); foreach ( $options_tags_obj as $tag ) { $options_tags[$tag->term_id] = $tag->name; } // Pull all the pages into an array $options_pages = array(); $options_pages_obj = get_pages('sort_column=post_parent,menu_order'); $options_pages[''] = 'Select a page:'; foreach ($options_pages_obj as $page) { $options_pages[$page->ID] = $page->post_title; } // If using image radio buttons, define a directory path $imagepath = SHOPHISTIC_IMAGES ; $shortname = "caos_"; //deprecated $options = array(); $options[] = array( 'name' => __('General Settings', 'caos'), 'type' => 'heading'); $options[] = array( 'name' => __('Theme Info', 'caos'), 'desc' => 'Name: '. SHOPHISTIC_NAME . '
' . 'Version: '. SHOPHISTIC_VERSION . '
' . 'Author: ' . SHOPHISTIC_AUTHOR, 'type' => 'info'); /** * For $settings options see: * http://codex.wordpress.org/Function_Reference/wp_editor * * 'media_buttons' are not supported as there is no post to attach items to * 'textarea_name' is set by the 'id' you choose */ $wp_editor_settings = array( 'wpautop' => true, // Default 'textarea_rows' => 5, 'tinymce' => array( 'plugins' => 'wordpress' ) ); $options['sidebar_side'] = array( 'name' => __('Sidebar side', 'caos'), 'desc' => __('Select if you want the Sidebar on the right or left.', 'caos'), 'id' => "sidebar_side", 'std' => "left", 'type' => "images", 'options' => array( 'right' => $imagepath . '/2cr.png', 'left' => $imagepath . '/2cl.png' )); $options[] = array( 'name' => __('Header', 'caos'), 'type' => 'heading'); $options[] = array( 'name' => __('Custom Logo', 'caos'), 'desc' => __("Upload a logo for your theme, or specify the image address of your online logo. (http://yoursite.com/logo.png)", 'caos'), 'id' => 'logo', 'type' => 'upload'); $options[] = array( 'name' => __('Custom Logo Retina size', 'caos'), 'desc' => __("Upload the logo for retina screens. (Same logo, twice the size)", 'caos'), 'id' => 'logo_retina', 'type' => 'upload'); $options[] = array( 'name' => __('Styling', 'caos'), 'type' => 'heading'); $options[ 'featured_color'] = array( 'name' => __('Featured Color', 'caos'), 'desc' => __('Select the featured color for the Theme.', 'caos'), 'id' => 'featured_color', 'std' => '#c3a769', 'class' => 'mini', 'type' => 'color' ); $options[ 'contrast_color'] = array( 'name' => __('Contrast Color', 'caos'), 'desc' => __('This color should contrast with the Featured Color.', 'caos'), 'id' => 'contrast_color', 'std' => '#FFFFFF', 'class' => 'mini', 'type' => 'color' ); $options['headings_color'] = array( 'name' => __('Headings Color', 'caos'), 'desc' => __('Select the background color for the Theme.', 'caos'), 'id' => 'headings_color', 'std' => '#6a6a6a', 'class' => 'mini', 'type' => 'color' ); $options[] = array( 'name' => __('Header', 'caos'), 'desc' => '', 'type' => 'info'); $options['header_color_text'] = array( 'name' => __('Text Color', 'caos'), 'desc' => __('Select the color for text in the header.', 'caos'), 'id' => 'header_color_text', 'std' => '#777777', 'class' => 'mini', 'type' => 'color' ); $options['header_color_links'] = array( 'name' => __('Links Color', 'caos'), 'desc' => __('Select the color for links in the header (not main menu).', 'caos'), 'id' => 'header_color_links', 'std' => '#555555', 'class' => 'mini', 'type' => 'color' ); $options[] = array( 'name' => '', 'desc' => '', 'type' => 'info'); $options[] = array( 'name' => __('Custom CSS', 'caos'), 'desc' => __('Quickly add some CSS to your theme by adding it to this block.', 'caos'), 'id' => 'custom_css', 'std' => '', 'type' => 'textarea'); $options[] = array( "name" => "Footer", "type" => "heading"); $options[] = array( 'name' => __('Footer Text', 'caos'), 'desc' => __('Custom HTML and Text that will appear at the bottom of your site.', 'caos'), 'id' => 'footer_text', 'type' => 'textarea', 'std' => "Copyright © ".date('Y')." ".get_bloginfo('name')."."); $options[] = array( 'name' => __('Designed by Quema Labs', 'caos'), 'desc' => __('If you are happy with the Theme you can give us credit just by adding a small link.', 'caos'), 'id' => 'quemalabs_credit', 'std' => true, 'type' => 'checkbox' ); $options[] = array( 'name' => __('Payment Methods Icons', 'caos'), 'desc' => '', 'type' => 'info'); $options[] = array( 'name' => __('Paypal', 'caos'), 'desc' => __('Show Paypal Icon', 'caos'), 'id' => 'footer_icon_paypal', 'std' => true, 'type' => 'checkbox' ); $options[] = array( 'name' => __('American Express', 'caos'), 'desc' => __('Show American Express Icon', 'caos'), 'id' => 'footer_icon_amex', 'std' => true, 'type' => 'checkbox' ); $options[] = array( 'name' => __('Discover', 'caos'), 'desc' => __('Show Discover Icon', 'caos'), 'id' => 'footer_icon_discover', 'std' => true, 'type' => 'checkbox' ); $options[] = array( 'name' => __('Master Card', 'caos'), 'desc' => __('Show Master Card Icon', 'caos'), 'id' => 'footer_icon_mastercard', 'std' => true, 'type' => 'checkbox' ); $options[] = array( 'name' => __('Stripe', 'caos'), 'desc' => __('Show Stripe Icon', 'caos'), 'id' => 'footer_icon_stripe', 'std' => true, 'type' => 'checkbox' ); $options[] = array( 'name' => __('Visa', 'caos'), 'desc' => __('Show Visa Icon', 'caos'), 'id' => 'footer_icon_visa', 'std' => true, 'type' => 'checkbox' ); $options[] = array( 'name' => __('Shop', 'caos'), 'type' => 'heading'); $options['shop_sidebar'] = array( 'name' => __('Show sidebar on Single Products page', 'caos'), 'desc' => __('Select if you want the Shop Sidebar on your single product page.', 'caos'), 'id' => "shop_sidebar", 'class' => 'mini', 'std' => "no", 'type' => "select", 'options' => array( 'no' => 'No Sidebar', 'yes' => 'With Sidebar' )); $options[] = array( 'name' => __('Typography', 'caos'), 'type' => 'heading'); $options[] = array( 'name' => __('Content Typography', 'caos'), 'desc' => '', 'type' => 'info'); $options['content_typography_font'] = array( 'name' => __('Content Font', 'caos'), 'desc' => __('Select the font for your text.', 'caos'), 'id' => 'content_typography_font', 'std' => 'Helvetica', 'type' => 'select', 'class' => 'mini', //mini, tiny, small 'options' => $font_options); $options['content_typography_color'] = array( 'name' => __('Content Font Color', 'caos'), 'desc' => __('Select the color for your text.', 'caos'), 'id' => 'content_typography_color', 'std' => '#555555', 'class' => 'mini', 'type' => 'color' ); $options['content_typography_weight'] = array( 'name' => __('Content Font Weight', 'caos'), 'desc' => __('Select the font weight for your text.', 'caos'), 'id' => 'content_typography_weight', 'std' => 'normal', 'type' => 'select', 'class' => 'mini', //mini, tiny, small 'options' => array('normal' => __('Normal', 'caos'),'bold' => __('Bold', 'caos')) ); $options[] = array( 'name' => __('Links Typography', 'caos'), 'desc' => '', 'type' => 'info'); $options['links_typography_font'] = array( 'name' => __('Links Font', 'caos'), 'desc' => __('Select the font for your links.', 'caos'), 'id' => 'links_typography_font', 'std' => 'Helvetica', 'type' => 'select', 'class' => 'mini', //mini, tiny, small 'options' => $font_options); $options['links_typography_color'] = array( 'name' => __('Links Font Color', 'caos'), 'desc' => __('Select the color for your links.', 'caos'), 'id' => 'links_typography_color', 'std' => '#c3a769', 'class' => 'mini', 'type' => 'color' ); $options['links_typography_weight'] = array( 'name' => __('Links Font Weight', 'caos'), 'desc' => __('Select the font wheight for your links.', 'caos'), 'id' => 'links_typography_weight', 'std' => 'normal', 'type' => 'select', 'class' => 'mini', //mini, tiny, small 'options' => array('normal' => __('Normal', 'caos'),'bold' => __('Bold', 'caos')) ); $options[] = array( 'name' => __('Font Systems', 'caos'), 'desc' => '', 'type' => 'info'); $options[] = array( 'name' => __('Font Systems', 'caos'), 'desc' => __('Use a font system (Google Fonts)', 'caos'), 'id' => 'font_system', 'std' => true, 'type' => 'checkbox' ); $options[] = array( 'name' => 'Google Fonts', 'desc' => 'Some of the best fonts on google fonts.', 'id' => 'google_font', 'std' => array( 'size' => '36px', 'face' => 'Lato, sans-serif', 'color' => '#00bc96'), 'type' => 'typography', 'options' => array( 'faces' => caos_options_typography_get_google_fonts(), 'styles' => false, 'sizes' => false, 'color' => false ) ); $options[] = array( 'name' => __('Sidebars Generator', 'caos'), 'type' => 'heading'); $options[] = array( 'name' => __('Sidebars', 'caos'), 'desc' => 'Create sidebar for later use on pages.', 'id' => $shortname. 'sidebars', 'std' => '', 'type' => 'sidebar'); return $options; } /** * Front End Customizer * * WordPress 3.4 Required */ caos_require_file('/theme_customizer.php', SHOPHISTIC_FUNCTIONS, CHILD_SHOPHISTIC_FUNCTIONS);