$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' => apply_filters( 'boxy_customizer_options', 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'), ), 'default' => 1, 'sanitize_callback' => 'boxy_breadcrumb_char_choices', ), 'numeric_pagination' => array( 'type' => 'checkbox', 'label' => __('Enable Numeric Page Navigation', 'boxy'), 'description' => __('Check to display numeric page navigation, instead of Previous Posts / Next Posts links.', 'boxy'), 'default' => 1, ), 'sidebar_position' => array( 'type' => 'radio', 'label' => __('Main Layout', 'boxy'), 'description' => __('Select main content and sidebar alignment.', 'boxy'), 'choices' => array( 'left' => __('Sidebar Left', 'boxy'), 'right' => __('Sidebar Right', 'boxy'), ), 'default' => 'right', ), ), ), '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', ), 'header_search' => array( 'type' => 'checkbox', 'label' => __('Show Search box in Navigation', 'boxy'), 'default' => 1, 'sanitize_callback' => 'boxy_boolean', ), ), ), 'primary_color_field' => array( 'title' => __('Change Color Options', 'boxy'), 'description' => __('This will reflect in links, buttons,Navigation and many others. Choose a color to match your site.', 'boxy'), 'fields' => array( 'enable_primary_color' => array( 'type' => 'checkbox', 'label' => __('Enable Custom Primary color', 'boxy'), 'default' => 0, 'sanitize_callback' => 'boxy_boolean', ), 'primary_color' => array( 'type' => 'color', 'label' => __('Primary Color', 'boxy'), 'description' => __('', 'boxy'), 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#f94242' ), 'enable_nav_bg_color' => array( 'type' => 'checkbox', 'label' => __('Enable Custom Navigation Background color', 'boxy'), 'default' => 0, 'sanitize_callback' => 'boxy_boolean', ), 'nav_bg_color' => array( 'type' => 'color', 'label' => __('Navigation Background Color', 'boxy'), 'description' => __('', 'boxy'), 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#d7d7d7' ), 'enable_dd_bg_color' => array( 'type' => 'checkbox', 'label' => __('Enable Custom Navigation Dropdown Background color', 'boxy'), 'default' => 0, 'sanitize_callback' => 'boxy_boolean', ), 'dd_bg_color' => array( 'type' => 'color', 'label' => __('Navigation Dropdown Background Color', 'boxy'), 'description' => __('', 'boxy'), 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#d7d7d7' ), 'enable_nav_hover_color' => array( 'type' => 'checkbox', 'label' => __('Enable Custom Navigation Hover color', 'boxy'), 'default' => 0, 'sanitize_callback' => 'boxy_boolean', ), 'nav_hover_color' => array( 'type' => 'color', 'label' => __('Navigation Hover Color', 'boxy'), 'description' => __('', 'boxy'), 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#fff' ), 'enable_secondary_color' => array( 'type' => 'checkbox', 'label' => __('Enable Custom Secondary color', 'boxy'), 'default' => 0, 'sanitize_callback' => 'boxy_boolean', ), 'secondary_color' => array( 'type' => 'color', 'label' => __('Secondary Color', 'boxy'), 'description' => __('', 'boxy'), 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', 'default' => '#3a3a3a' ), ), ), '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' => 1, 'sanitize_callback' => 'boxy_boolean', ), 'copyright' => array( 'type' => 'textarea', 'label' => __('Footer Copyright Text (Validated that it\'s HTML Allowed)', 'boxy'), 'description' => __('HTML Allowed. This field is even HTML validated! ', 'boxy'), 'sanitize_callback' => 'wbls_footer_copyright', ), ), ), 'blog' => array( 'title' => __('Blog', 'boxy'), 'description' => __('Blog related options', 'boxy'), 'fields' => array( 'featured_image' => array( 'type' => 'checkbox', 'label' => __('Enable Featured Image', 'boxy'), 'default' => 1, 'sanitize_callback' => 'boxy_boolean', ), 'featured_image_size' => array( 'type' => 'radio', 'label' => __('Choose the featured image display type for Blog Page ', 'boxy'), 'choices' => array( '1' => 'Large Featured Image', '2' => 'Small Featured Image', ), 'default' => '1', ), 'single_featured_image' => array( 'type' => 'checkbox', 'label' => __('Enable Single Post Featured Image', 'boxy'), 'default' => 1, 'sanitize_callback' => 'boxy_boolean', ), 'single_featured_image_size' => array( 'type' => 'radio', 'label' => __('Choose the featured image display type for Single Page ', 'boxy'), 'choices' => array( '1' => 'Large Featured Image', '2' => 'Small Featured Image', ), 'default' => '1', ), 'author_bio_box' => array( 'type' => 'checkbox', 'label' => __(' Enable Author Bio Box below single post', 'boxy'), 'description' => __('Show Author information box below single post.', 'boxy'), 'default' => 0, ), 'social_sharing_box' => array( 'type' => 'checkbox', 'label' => __('Show social sharing options box below single post', 'boxy'), 'description' => __('Show social sharing options box below single post.', 'boxy'), 'default' => 1, ), 'related_posts' => array( 'type' => 'checkbox', 'label' => __('Show related posts', 'boxy'), 'description' => __('Show related posts.', 'boxy'), 'default' => 0, ), 'comments' => array( 'type' => 'checkbox', 'label' => __(' Show Comments', 'boxy'), 'description' => __('Show Comments', 'boxy'), 'default' => 1, ), ), ), 'social_sharing_box' => array( 'title' => __('Social Sharing Box', 'boxy'), 'description' => __('Social Sharing Icons Setup', 'boxy'), 'fields' => array( 'facebook_sb' => array( 'type' => 'checkbox', 'label' => __('Show facebook sharing option in single posts', 'boxy'), 'description' => __('Show facebook sharing option in single posts.', 'boxy'), 'default' => 1, ), 'twitter_sb' => array( 'type' => 'checkbox', 'label' => __('Show twitter sharing option in single posts', 'boxy'), 'description' => __('Show twitter sharing option in single posts.', 'boxy'), 'default' => 1, ), 'linkedin_sb' => array( 'type' => 'checkbox', 'label' => __('Show linkedin sharing option in single posts', 'boxy'), 'description' => __('Show linkedin sharing option in single posts.', 'boxy'), 'default' => 1, ), 'google-plus_sb' => array( 'type' => 'checkbox', 'label' => __('Show googleplus sharing option in single posts', 'boxy'), 'description' => __('Show googleplus sharing option in single posts.', 'boxy'), 'default' => 1, ), 'email_sb' => array( 'type' => 'checkbox', 'label' => __('Show email sharing option in single posts', 'boxy'), 'description' => __('Show email sharing option in single posts.', 'boxy'), 'default' => 1, ), ), ), ), ), // 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', ), ), ), 'pro_home_section' => array( 'title' => __('Use Page Builder', 'boxy'), 'fields' => array( 'page-builder' => array( 'type' => 'checkbox', 'label' => __('Use Page Builder: Check this to disable theme options for home page content and use page builder to enter content', 'boxy'), 'default' => 0, ), 'flexslider' => array( 'type' => 'text', 'label' => __('Enter FlexSlider shortcode (FlexSlider for Home Page)', 'boxy'), 'description' => __('FlexSlider for Home Page. Enter a FlexSlider shortcode to be displayed on Home Page','boxy'), 'sanitize' => 'sanitize_text_field' ), ) ) ), // 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; } } if ( ! function_exists( 'wbls_footer_copyright' ) ) { function wbls_footer_copyright($string) { $allowed_tags = array( 'a' => array( 'href' => array(), 'title' => array() ), 'img' => array( 'src' => array(), 'alt' => array() ), 'p' => array(), 'br' => array(), 'em' => array(), 'strong' => array(), ); return wp_kses( $string,$allowed_tags); } }