'navbar_background', 'id' => 'navbar_background', 'value' => espressionista_theme_option( 'navbar_background' ), ) ); add_settings_field( 'submenu_background', // Unique identifier for the field for this section __( 'Submenu Background', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'background_colors', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'submenu_background', 'id' => 'submenu_background', 'value' => espressionista_theme_option( 'submenu_background' ), ) ); add_settings_field( 'content_background', // Unique identifier for the field for this section __( 'Content Background', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'background_colors', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'content_background', 'id' => 'content_background', 'value' => espressionista_theme_option( 'content_background' ), ) ); add_settings_field( 'sidebar_background', // Unique identifier for the field for this section __( 'Sidebar Background', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'background_colors', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'sidebar_background', 'id' => 'sidebar_background', 'value' => espressionista_theme_option( 'sidebar_background' ), ) ); add_settings_field( 'footer_background', // Unique identifier for the field for this section __( 'Footer Background', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'background_colors', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'footer_background', 'id' => 'footer_background', 'value' => espressionista_theme_option( 'footer_background' ), ) ); add_settings_section( 'layout_template', // Unique identifier for the settings section __( 'Layout Template', 'espressionista' ), // Section title (we don't want one) '__return_false', // Section callback (we don't want anything) 'espressionista_theme_options' // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() ); add_settings_field( 'layout_template', // Unique identifier for the field for this section __( 'Choose your preferred Layout Template', 'espressionista' ), // Setting field label 'espressionista_radio_buttons', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'layout_template', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'layout_template', 'class' => 'layout-template', 'buttons' => array( array( 'id' => 'content-sidebar', 'value' => 'content-sidebar', 'label' => 'Content / Sidebar', ), array( 'id' => 'sidebar-content', 'value' => 'sidebar-content', 'label' => 'Sidebar / Content', ), array( 'id' => 'full-width', 'value' => 'full-width', 'label' => 'Full Width', ), ), ) ); add_settings_section( 'social_media', // Unique identifier for the settings section __( 'Social Media', 'espressionista' ), // Section title (we don't want one) '__return_false', // Section callback (we don't want anything) 'espressionista_theme_options' // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() ); add_settings_field( 'social_media_buttons_placement', // Unique identifier for the field for this section __( 'Choose where you would like to display social media sharing buttons', 'espressionista' ), // Setting field label 'espressionista_checkboxes', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'social_media', // Settings section. Same as the first argument in the add_settings_section() above array( 'class' => 'social-media-buttons-display', 'checkboxes' => array( array( 'name' => 'social_media_buttons_posts', 'id' => 'social_media_buttons_posts', 'label' => 'Posts', ), array( 'name' => 'social_media_buttons_attcs', 'id' => 'social_media_buttons_attcs', 'label' => 'Attachments', ), array( 'name' => 'social_media_buttons_pages', 'id' => 'social_media_buttons_pages', 'label' => 'Pages', ), ), ) ); add_settings_field( 'social_media_buttons', // Unique identifier for the field for this section __( 'Choose which social media sharing buttons you would like to use', 'espressionista' ), // Setting field label 'espressionista_checkboxes', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'social_media', // Settings section. Same as the first argument in the add_settings_section() above array( 'class' => 'social-media-buttons', 'checkboxes' => array( array( 'name' => 'facebook_like', 'id' => 'facebook-like', 'label' => 'Facebook Like', ), array( 'name' => 'twitter_tweet', 'id' => 'twitter-tweet', 'label' => 'Twitter Button', ), array( 'name' => 'google_plusone', 'id' => 'google-plusone', 'label' => 'Google Plusone', ), array( 'name' => 'pinterest_button', 'id' => 'pinterest-button', 'label' => 'Pinterest Button', ), ), ) ); add_settings_section( 'typography', // Unique identifier for the settings section __( 'Typography', 'espressionista' ), // Section title (we don't want one) '__return_false', // Section callback (we don't want anything) 'espressionista_theme_options' // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() ); add_settings_field( 'body_font', // Unique identifier for the field for this section __( 'Body Font', 'espressionista' ), // Setting field label 'espressionista_font_options', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'body', 'class' => 'body', ) ); add_settings_field( 'site_title_font', // Unique identifier for the field for this section __( 'Site Title Font', 'espressionista' ), // Setting field label 'espressionista_font_options', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'site_title', 'class' => 'site-title', ) ); add_settings_field( 'menu_item_font', // Unique identifier for the field for this section __( 'Menu Item Font', 'espressionista' ), // Setting field label 'espressionista_font_options', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'menu_item', 'class' => 'menu-item', ) ); add_settings_field( 'menu_item_hover_color', // Unique identifier for the field for this section __( 'Menu Item Hover Color', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'menu_item_hover_color', 'id' => 'menu_item_hover_color', 'value' => espressionista_theme_option( 'menu_item_hover_color' ), ) ); add_settings_field( 'submenu_item_color', // Unique identifier for the field for this section __( 'Submenu Item Color', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'submenu_item_color', 'id' => 'submenu_item_color', 'value' => espressionista_theme_option( 'submenu_item_color' ), ) ); add_settings_field( 'headlines_font', // Unique identifier for the field for this section __( 'Headlines Font', 'espressionista' ), // Setting field label 'espressionista_font_options', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'headlines', 'class' => 'headlines', ) ); add_settings_field( 'bylines_font', // Unique identifier for the field for this section __( 'Bylines Font', 'espressionista' ), // Setting field label 'espressionista_font_options', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'bylines', 'class' => 'bylines', ) ); add_settings_field( 'content_font', // Unique identifier for the field for this section __( 'Content Font', 'espressionista' ), // Setting field label 'espressionista_font_options', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'content', 'class' => 'content', ) ); add_settings_field( 'link_color', // Unique identifier for the field for this section __( 'Link Color', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'link_color', 'id' => 'link_color', 'value' => espressionista_theme_option( 'link_color' ), ) ); add_settings_field( 'link_hover_color', // Unique identifier for the field for this section __( 'Link Hover Color', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'link_hover_color', 'id' => 'link_hover_color', 'value' => espressionista_theme_option( 'link_hover_color' ), ) ); add_settings_field( 'widget_title_font', // Unique identifier for the field for this section __( 'Widget Title Font', 'espressionista' ), // Setting field label 'espressionista_font_options', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'widget_title', 'class' => 'widget_title', ) ); add_settings_field( 'widget_text_font', // Unique identifier for the field for this section __( 'Widget Text Font', 'espressionista' ), // Setting field label 'espressionista_font_options', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'widget_text', 'class' => 'widget_text', ) ); add_settings_field( 'widget_link_color', // Unique identifier for the field for this section __( 'Widget Link Color', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'widget_link_color', 'id' => 'widget_link_color', 'value' => espressionista_theme_option( 'widget_link_color' ), ) ); add_settings_field( 'widget_link_hover_color', // Unique identifier for the field for this section __( 'Widget Link Hover Color', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'widget_link_hover_color', 'id' => 'widget_link_hover_color', 'value' => espressionista_theme_option( 'widget_link_hover_color' ), ) ); add_settings_field( 'footer_text_font', // Unique identifier for the field for this section __( 'Footer Text Font', 'espressionista' ), // Setting field label 'espressionista_font_options', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'footer_text', 'class' => 'footer_text', ) ); add_settings_field( 'footer_link_color', // Unique identifier for the field for this section __( 'Footer Link Color', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'footer_link_color', 'id' => 'footer_link_color', 'value' => espressionista_theme_option( 'footer_link_color' ), ) ); add_settings_field( 'footer_link_hover_color', // Unique identifier for the field for this section __( 'Footer Link Hover Color', 'espressionista' ), // Setting field label 'espressionista_color_picker', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'typography', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'footer_link_hover_color', 'id' => 'footer_link_hover_color', 'value' => espressionista_theme_option( 'footer_link_hover_color' ), ) ); add_settings_section( 'custom_css', // Unique identifier for the settings section __( 'Custom CSS', 'espressionista' ), // Section title (we don't want one) '__return_false', // Section callback (we don't want anything) 'espressionista_theme_options' // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() ); add_settings_field( 'custom_css', // Unique identifier for the field for this section __( 'Enter your custom CSS', 'espressionista' ), // Setting field label 'espressionista_textarea', // Function that renders the settings field 'espressionista_theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'custom_css', // Settings section. Same as the first argument in the add_settings_section() above array( 'name' => 'custom_css', 'class' => 'custom-css', 'cols' => 70, 'rows' => 15, 'style' => 'width:97%;font-family:Consolas,Monaco,monospace;background:#f9f9f9', ) ); } add_action( 'admin_init', 'espressionista_theme_options_init' ); function espressionista_theme_options_page() { ?>