$view_demo $upgrade_to_pro

FEATURES; function brawny_theme_page() { add_theme_page( __( 'Upgrade To brawny Pro','brawny'), __( 'Theme Upgrade','brawny'), 'edit_theme_options', 'brawny_upgrade', 'brawny_display_upgrade' ); } add_action('admin_menu','brawny_theme_page'); function brawny_display_upgrade() { global $brawny_why_upgrade; echo '
'; echo $brawny_why_upgrade; echo '
'; } $options = array( 'capability' => 10, 'type' => 'theme_mod', 'pro_url' => 'http://www.webulousthemes.com/?add-to-cart=29', 'panels' => array( 'theme_options' => array( 'priority' => 9, 'title' => __('Theme Options', 'brawny'), 'sections' => array( 'general_settings' => array( 'title' => __('General Settings', 'brawny'), 'description' => __('General Settings of Theme to change look and feel through out the site', 'brawny'), 'fields' => array( 'color' => array( 'type' => 'select', 'label' => __('Select your Color Scheme.', 'brawny'), 'choices' => array( '1' => __('default', 'brawny'), '2' => __('lightpurple', 'brawny'), ), 'default' => 1, ), 'breadcrumb' => array( 'type' => 'checkbox', 'label' => __('Enable Breadcrumb Navigation', 'brawny'), 'description' => __(' Check to display breadcrumb navigation.', 'brawny'), 'default' => 1, 'sanitize_callback' => 'brawny_boolean', ), 'breadcrumb-char' => array( 'type' => 'select', 'label' => __('Breadcrumb Character', 'brawny'), 'description' => __(' Check to display breadcrumb navigation.', 'brawny'), 'choices' => array( '1' => __('»', 'brawny'), '2' => __('/', 'brawny'), '3' => __('>', 'brawny'), ), 'sanitize_callback' => 'brawny_breadcrumb_char_choices', 'default' => 1, ), ), ), 'header_section' => array( 'title' => __('Header', 'brawny'), 'description' => __('Theme options related to header section', 'brawny'), 'fields' => array( 'site-title' => array( 'type' => 'checkbox', 'label' => __('Enable logo as site title', 'brawny'), 'description' => __('Enable to load custom logo as site title in header.','brawny'), 'default' => 0, 'sanitize_callback' => 'brawny_boolean', ), 'custom-logo' => array( 'type' => 'image', 'label' => __('Custom Logo: Upload any media using the WordPress native uploader', 'brawny'), 'description' => __('Upload any media using the WordPress native uploader','brawny'), 'sanitize_callback' => 'esc_url_raw', ), 'site-description' => array( 'type' => 'checkbox', 'label' => __('Enable to show site description in header.', 'brawny'), 'default' => 1, 'sanitize_callback' => 'brawny_boolean', ), ), ), 'footer_section' => array( 'title' => __('Footer', 'brawny'), 'description' => __('Theme options related to footer area of theme', 'brawny'), 'fields' => array( 'footer-widgets' => array( 'type' => 'checkbox', 'label' => __('Check to Enable 4 Column Footer widget Area', 'brawny'), 'description' => __(' Check to enable 4 Column Footer widget Area', 'brawny'), 'default' => 0, 'sanitize_callback' => 'brawny_boolean', ), ), ), 'blog_section' => array( 'title' => __('Blog', 'brawny'), 'description' => __('Blog options for site', 'brawny'), 'fields' => array( 'featured-image' => array( 'type' => 'checkbox', 'label' => __('Check to show featured image', 'brawny'), 'description' => __('Check to show featured image', 'brawny'), 'default' => 1, 'sanitize_callback' => 'brawny_boolean', ), 'single-featured-image' => array( 'type' => 'checkbox', 'label' => __('Check to show featured image on single post', 'brawny'), 'description' => __('Check to show featured image on single post', 'brawny'), 'default' => 1, 'sanitize_callback' => 'brawny_boolean', ), ), ), ), ), // theme options panel end// 'home' => array( 'priority' => 9, 'title' => __('Home', 'brawny'), 'description' => __('Theme options related to home page', 'brawny'), 'sections' => array( 'slider_section' => array( 'title' => __('Flexslider Settings', 'brawny'), 'description' => __('','brawny'), 'fields' => array( 'image_upload-1' => array( 'type' => 'image', 'label' => __('Upload Image - Slider 1', 'brawny'), 'sanitize_callback' => 'esc_url_raw', 'default' => BRAWNY_PARENT_URL .'/images/slide1.png', ), 'flexcaption-1' => array( 'type' => 'text', 'label' => __('Enter Text (Flexcaption)- Slider 1', 'brawny'), 'sanitize' => 'sanitize_text_field', 'default' => sprintf( __('

The Most Modern WordPress Theme

Slider Setting

You haven\'t created any slider yet. Go to Customizer and click Home => FlexSlider Settings, edit or add your images and Caption.

Customizer

', 'brawny'), admin_url('customize.php') ), ), 'image_upload-2' => array( 'type' => 'image', 'label' => __('Upload Image- Slider 2', 'brawny'), 'description' => __('','brawny'), 'sanitize_callback' => 'esc_url_raw', ), 'flexcaption-2' => array( 'type' => 'text', 'label' => __('Enter Text (Flexcaption)- Slider 2', 'brawny'), 'sanitize' => 'sanitize_text_field' ), 'image_upload-3' => array( 'type' => 'image', 'label' => __('Upload Image- Slider 3', 'brawny'), 'sanitize_callback' => 'esc_url_raw', ), 'flexcaption-3' => array( 'type' => 'text', 'label' => __('Enter Text (Flexcaption)- Slider 3', 'brawny'), 'sanitize' => 'sanitize_text_field' ), 'image_upload-4' => array( 'type' => 'image', 'label' => __('Upload Image- Slider 4', 'brawny'), 'sanitize_callback' => 'esc_url_raw', ), 'flexcaption-4' => array( 'type' => 'text', 'label' => __('Enter Text (Flexcaption)- Slider 4', 'brawny'), 'sanitize' => 'sanitize_text_field' ), 'image_upload-5' => array( 'type' => 'image', 'label' => __('Upload Image- Slider 5', 'brawny'), 'sanitize_callback' => 'esc_url_raw', ), 'flexcaption-5' => array( 'type' => 'text', 'label' => __('Enter Text (Flexcaption)- Slider 5', 'brawny'), 'sanitize' => 'sanitize_text_field' ), ), ), 'service_section-1' => array( 'title' => __('Service Section - 1','brawny'), 'description' => __('','brawny'), 'fields' => array ( 'service-icon-1' => array( 'type' => 'text', 'label' => __('Service Icon: Enter Font Awesome Icon name. e.g. fa fa-bullhorn', 'brawny'), 'sanitize' => 'sanitize_text_field', 'default' => 'fa fa-magic', ), 'service-title-1' => array( 'type' => 'text', 'label' => __('Service Title: Enter title of this service', 'brawny'), 'sanitize' => 'sanitize_text_field', 'default' => __( 'Featured Page', 'brawny' ), ), 'service-description-1' => array( 'type' => 'text', 'label' => __('Service Description', 'brawny'), 'sanitize' => 'sanitize_text_field', 'default' => sprintf(__('

Featured page description text : use the page excerpt or set your own custom text. Click Customizer and Goto Home => Sercice Section -1.

', 'brawny' ), admin_url('customize.php') ), ), ), ), 'service_section-2' => array( 'title' => __('Service Section - 2','brawny'), 'description' => __('','brawny'), 'fields' => array ( 'service-icon-2' => array( 'type' => 'text', 'label' => __('Service Icon: Enter Font Awesome Icon name. e.g. fa fa-bullhorn', 'brawny'), 'sanitize' => 'sanitize_text_field', 'default' => 'fa fa-magic', ), 'service-title-2' => array( 'type' => 'text', 'label' => __('Service Title: Enter title of this service', 'brawny'), 'sanitize' => 'sanitize_text_field', 'default' => __( 'Featured Page', 'brawny' ), ), 'service-description-2' => array( 'type' => 'text', 'label' => __('Service Description', 'brawny'), 'sanitize' => 'sanitize_text_field', 'default' => sprintf(__('

Featured page description text : use the page excerpt or set your own custom text. Click Customizer and Goto Home => Sercice Section -2.

', 'brawny' ), admin_url('customize.php') ), ), ), ), 'service_section-3' => array( 'title' => __('Service Section - 3','brawny'), 'description' => __('','brawny'), 'fields' => array ( 'service-icon-3' => array( 'type' => 'text', 'label' => __('Service Icon: Enter Font Awesome Icon name. e.g. fa fa-bullhorn', 'brawny'), 'sanitize' => 'sanitize_text_field', 'default' => 'fa fa-magic', ), 'service-title-3' => array( 'type' => 'text', 'label' => __('Service Title: Enter title of this service', 'brawny'), 'sanitize' => 'sanitize_text_field', 'default' => __( 'Featured Page', 'brawny' ), ), 'service-description-3' => array( 'type' => 'text', 'label' => __('Service Description', 'brawny'), 'sanitize' => 'sanitize_text_field', 'default' => sprintf(__('

Featured page description text : use the page excerpt or set your own custom text. Click Customizer and Goto Home => Sercice Section -3.

', 'brawny' ), admin_url('customize.php') ), ), ), ), ), ), // home panel end // )//panel end// ); function brawny_breadcrumb_char_choices($value='') { $choices = array('1','2','3'); if( in_array($value, $choices)) { return $value; } else { return '1'; } } function brawny_boolean($value) { if(is_bool($value)) { return $value; } else { return false; } }