$view_demo $upgrade_to_pro

FEATURES; function boxy_theme_page() { add_theme_page( __( 'Upgrade To boxy Pro','boxy'), __( 'Theme Upgrade','boxy'), 'edit_theme_options', 'boxy_upgrade', 'boxy_display_upgrade' ); } add_action('admin_menu','boxy_theme_page'); function boxy_display_upgrade() { global $boxy_why_upgrade; echo '
'; echo $boxy_why_upgrade; echo '
'; } $options = array( 'capability' => 10, 'type' => 'theme_mod', 'pro_url' => 'http://www.webulousthemes.com/?add-to-cart=25', 'panels' => array( 'theme_options' => array( 'priority' => 9, 'title' => __('Theme Options', 'boxy'), 'sections' => array( 'general_settings' => array( 'title' => __('General Settings', 'boxy'), 'description' => __('General Settings of Theme to change look and feel through out the site', 'boxy'), 'fields' => array( 'color' => array( 'type' => 'select', 'label' => __('Select your Color Scheme.', 'boxy'), 'choices' => array( '1' => __('Default', 'boxy'), '2' => __('Red', 'boxy'), '3' => __('Blue', 'boxy'), '4' => __('More color schemes in Boxy Pro Version.', 'boxy'), ), 'default' => 1, ), 'breadcrumb' => array( 'type' => 'checkbox', 'label' => __('Enable Breadcrumb Navigation', 'boxy'), 'description' => __(' Check to display breadcrumb navigation.', 'boxy'), 'default' => 1, 'sanitize_callback' => 'boxy_boolean', ), 'breadcrumb-char' => array( 'type' => 'select', 'label' => __('Breadcrumb Character', 'boxy'), 'description' => __(' Check to display breadcrumb navigation.', 'boxy'), 'choices' => array( '1' => __('»', 'boxy'), '2' => __('/', 'boxy'), '3' => __('>', 'boxy'), ), 'sanitize_callback' => 'boxy_breadcrumb_char_choices', 'default' => 1, ), ), ), 'header_section' => array( 'title' => __('Header', 'boxy'), 'description' => __('Theme options related to header section', 'boxy'), 'fields' => array( 'site-title' => array( 'type' => 'checkbox', 'label' => __('Enable logo as site title', 'boxy'), 'description' => __('Enable to load custom logo as site title in header.','boxy'), 'default' => 0, 'sanitize_callback' => 'boxy_boolean', ), 'custom-logo' => array( 'type' => 'image', 'label' => __('Custom Logo: Upload any media using the WordPress native uploader', 'boxy'), 'description' => __('Upload any media using the WordPress native uploader','boxy'), 'sanitize_callback' => 'esc_url_raw', ), 'site-description' => array( 'type' => 'checkbox', 'label' => __('Enable to show site description in header.', 'boxy'), 'default' => 1, 'sanitize_callback' => 'boxy_boolean', ), ), ), 'footer_section' => array( 'title' => __('Footer', 'boxy'), 'description' => __('Theme options related to footer area of theme', 'boxy'), 'fields' => array( 'footer-widgets' => array( 'type' => 'checkbox', 'label' => __('Check to Enable 4 Column Footer widget Area', 'boxy'), 'description' => __(' Check to enable 4 Column Footer widget Area', 'boxy'), 'default' => 0, 'sanitize_callback' => 'boxy_boolean', ), ), ), 'blog_section' => array( 'title' => __('Blog', 'boxy'), 'description' => __('Blog options for site', 'boxy'), 'fields' => array( 'featured-image' => array( 'type' => 'checkbox', 'label' => __('Check to show featured image', 'boxy'), 'description' => __('Check to show featured image', 'boxy'), 'default' => 1, 'sanitize_callback' => 'boxy_boolean', ), 'single-featured-image' => array( 'type' => 'checkbox', 'label' => __('Check to show featured image on single post', 'boxy'), 'description' => __('Check to show featured image on single post', 'boxy'), 'default' => 1, 'sanitize_callback' => 'boxy_boolean', ), ), ), ), ), // theme options panel end// 'home' => array( 'priority' => 9, 'title' => __('Home', 'boxy'), 'description' => __('Theme options related to home page', 'boxy'), 'sections' => array( 'slider_section' => array( 'title' => __('Flexslider Settings', 'boxy'), 'description' => __('','boxy'), 'fields' => array( 'image_upload-1' => array( 'type' => 'image', 'label' => __('Upload Image - Slider 1', 'boxy'), 'sanitize_callback' => 'esc_url_raw', 'default' => BOXY_PARENT_URL .'/images/slide1.jpg', ), 'flexcaption-1' => array( 'type' => 'text', 'label' => __('Enter Text (Flexcaption)- Slider 1', 'boxy'), '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

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

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

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

', 'boxy' ), admin_url('customize.php') ), ), ), ),// service section end // 'clients_section' => array( 'title' => __('Client Logo Carousel', 'boxy'), 'fields' => array( 'client_image-1' => array( 'type' => 'image', 'label' => __('Upload Image - Client 1', 'boxy'), 'sanitize_callback' => 'esc_url_raw', 'default' => BOXY_PARENT_URL .'/images/logo.png', ), 'client_image-2' => array( 'type' => 'image', 'label' => __('Upload Image- Client 2', 'boxy'), 'description' => __('','boxy'), 'sanitize_callback' => 'esc_url_raw', ), 'client_image-3' => array( 'type' => 'image', 'label' => __('Upload Image- Client 3', 'boxy'), 'sanitize_callback' => 'esc_url_raw', ), 'client_image-4' => array( 'type' => 'image', 'label' => __('Upload Image- Client 4', 'boxy'), 'sanitize_callback' => 'esc_url_raw', ), 'client_image-5' => array( 'type' => 'image', 'label' => __('Upload Image- Client 5', 'boxy'), 'sanitize_callback' => 'esc_url_raw', ), 'client_image-6' => array( 'type' => 'image', 'label' => __('Upload Image- Client 6', 'boxy'), 'sanitize_callback' => 'esc_url_raw', ), ), ), ), // end// ), // home panel end // )//panel end// ); function boxy_breadcrumb_char_choices($value='') { $choices = array('1','2','3'); if( in_array($value, $choices)) { return $value; } else { return '1'; } } function boxy_boolean($value) { if(is_bool($value)) { return $value; } else { return false; } }