array( 'tab_title' => __( 'General', 'italystrap' ), 'id' => 'general', 'title' => __( 'General options page', 'italystrap' ), // 'desc' => __( 'General setting for ItalyStrap plugin', 'italystrap' ), 'settings_fields' => array( array( 'id' => 'activate_advanced', 'title' => __( 'Activate advanced options', 'italystrap' ), 'args' => array( 'label' => __( 'Activate advanced options', 'italystrap' ) . $beta, 'desc' => __( 'If you want to have more advanced options to control', 'italystrap' ), 'id' => 'activate_advanced', 'type' => 'checkbox', 'class' => 'activate_advanced easy hidden', 'default' => '1', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), // 'show_on' => Core\is_beta(), ), array( 'id' => 'show-ids', 'title' => __( 'Show Post Type IDs', 'italystrap' ), 'args' => array( 'label' => __( 'Show Post Type IDs', 'italystrap' ), 'desc' => __( 'Post type edit screen: show post/page IDS', 'italystrap' ), 'id' => 'show-ids', 'type' => 'checkbox', 'class' => 'show-ids easy', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), array( 'id' => 'show-thumb', 'title' => __( 'Show Post Type Thumb', 'italystrap' ), 'args' => array( 'label' => __( 'Show the Post Type Thumbnail', 'italystrap' ), 'desc' => __( 'Post type edit screen: show post/page thumbnail', 'italystrap' ), 'id' => 'show-thumb', 'type' => 'checkbox', 'class' => 'show-thumb easy', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), array( 'id' => 'kill-emojis', 'title' => __( 'Kill the Emojis', 'italystrap' ), 'args' => array( 'label' => __( 'Kill the Emojis', 'italystrap' ), 'desc' => __( 'Avoid loading Emojis support if your does not need it to speed up the website.', 'italystrap' ), 'id' => 'kill-emojis', 'type' => 'checkbox', 'class' => 'kill-emojis easy', 'default' => 'on', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), array( 'id' => 'activate_social_share', 'title' => __( 'Social Sharing Button', 'italystrap' ), 'args' => array( 'label' => __( 'Activate Social Sharing Button', 'italystrap' ) . $beta, 'desc' => __( 'This are a simple social sharing links', 'italystrap' ), 'id' => 'activate_social_share', 'type' => 'checkbox', 'class' => 'activate_social_share easy', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_beta(), ), array( 'id' => 'social_button_position', 'title' => __( 'Social Sharing Button position', 'italystrap' ), 'args' => array( 'desc' => __( 'Select the position to display buttons', 'italystrap' ) . $beta, 'id' => 'social_button_position', 'type' => 'select', 'options' => array( 'before' => __( 'Before the content', 'italystrap' ), 'after' => __( 'After the content', 'italystrap' ), 'both' => __( 'Before and after the content', 'italystrap' ), ), 'class' => 'social_button_position easy', 'default' => 'after', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_beta(), ), array( 'id' => 'social_button_on_post_types', 'title' => __( 'Display Social Sharing on', 'italystrap' ), 'args' => array( 'desc' => __( 'Select the post types to display buttons', 'italystrap' ) . $beta, 'id' => 'social_button_on_post_types', 'type' => 'checkbox', 'options' => (array) get_post_types( [ 'public' => true, ] ), 'class' => 'widefat post_types social_button_position easy', 'default' => 'post', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_select_multiple', ), 'show_on' => Core\is_beta(), ), array( 'id' => 'google_api_key', 'title' => __( 'Google API Key', 'italystrap' ), 'args' => array( 'desc' => __( 'Insert here the google API key.', 'italystrap' ) . $beta, 'id' => 'google_api_key', 'type' => 'text', 'class' => 'google_api_key easy', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_beta(), ), array( 'id' => 'web_font_loading', 'title' => __( 'Web font Loading', 'italystrap' ), 'args' => array( 'label' => __( 'Web font Loading', 'italystrap' ) . $beta, 'desc' => __( 'Activate it for using the web fonts loader (lazyload for the web fonts), then you have to go to the customizer and select the font, weight and subsets you want to use in this site, then in the customizer below the selected font you can add in the dedicated text input the HTML tags or CSS selector you want to bind to the font selected, all separated by comma. Example: body or h1 or h1,h2,h3,h4,h5,h6 or .widget-title. Otherwise you can add some css to the Custom CSS area of this plugin (Settings > Style > Custom CSS) or in your style.css like this:
.fonts-loaded body{ font-family: "Open Sans"; }
.fonts-loaded h1{ font-family: "Lato"; }
', 'italystrap' ), 'id' => 'web_font_loading', 'type' => 'checkbox', 'class' => 'web_font_loading hard', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_beta(), ), array( 'id' => 'show_theme_hooks', 'title' => __( 'Theme Hooks', 'italystrap' ), 'args' => array( 'label' => __( 'Show Theme Hooks', 'italystrap' ), 'desc' => __( 'Only fof ItalyStrap theme framework. This is only for getting a visual of the ItalyStrap theme framework hooks registered.', 'italystrap' ), 'id' => 'show_theme_hooks', 'type' => 'checkbox', 'class' => 'show_theme_hooks easy', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_italystrap_active(), ), array( 'id' => 'show_hooked_callable', 'title' => __( 'Hooked callable', 'italystrap' ), 'args' => array( 'label' => __( 'Show Hooked callable', 'italystrap' ), 'desc' => __( 'This will show callable with hook.', 'italystrap' ), 'id' => 'show_hooked_callable', 'type' => 'checkbox', 'class' => 'show_hooked_callable easy', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_italystrap_active(), ), array( 'id' => 'menu_cache', 'title' => __( 'Cache the menu output', 'italystrap' ), 'args' => array( 'label' => __( 'Cache the menu output', 'italystrap' ) . $beta, 'desc' => __( 'This will put in cache the menu output only if server cache is active.', 'italystrap' ), 'id' => 'menu_cache', 'type' => 'checkbox', 'class' => 'menu_cache easy', 'default' => '1', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_beta(), ), ), ), /** * This is the Widget configuration */ 'widget' => array( 'tab_title' => __( 'Widgets', 'italystrap' ), 'id' => 'widget', 'title' => __( 'Options page for widgets', 'italystrap' ), 'desc' => __( 'Select the widgets you want to use.', 'italystrap' ), 'settings_fields' => array( array( 'id' => 'widget_areas', 'title' => __( 'Widget Areas', 'italystrap' ), 'args' => array( 'label' => __( 'Activate new settings page for widget areas', 'italystrap' ) . $beta, 'desc' => __( 'This will add new settings page on Appearance where you can create new widget area to append on theme action hook.', 'italystrap' ), 'id' => 'widget_areas', 'type' => 'checkbox', 'class' => 'widget_areas medium', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_beta(), ), array( 'id' => 'widget_visibility', 'title' => __( 'Widget Visibility', 'italystrap' ), 'args' => array( 'label' => __( 'Add Widget Visibility to any widget.', 'italystrap' ), 'desc' => __( 'This will add the possibility to choice the widget visibility for front-end.', 'italystrap' ), 'id' => 'widget_visibility', 'type' => 'checkbox', 'class' => 'widget_visibility medium', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), array( 'id' => 'widget_attributes', 'title' => __( 'HTML attributes for widget', 'italystrap' ), 'args' => array( 'label' => __( 'Activate two new input HTML attributes for every widget', 'italystrap' ), 'desc' => __( 'This will add two new input in every widget that allow for custom id and class attributes in the widget container.', 'italystrap' ), 'id' => 'widget_attributes', 'type' => 'checkbox', 'class' => 'widget_attributes medium', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), array( 'id' => 'render_html_in_widget_title', 'title' => __( 'HTML in Widget Title', 'italystrap' ), 'args' => array( 'label' => __( 'Render HTML in Widget Title', 'italystrap' ), 'desc' => __( 'Activate this if you want to add an HTML tag to Widget title: replace the opening and closing tags with {{ and }}. E.g.: <strong>Widget Title</strong> becomes {{strong}}Widget Title{{/strong}}', 'italystrap' ), 'id' => 'render_html_in_widget_title', 'type' => 'checkbox', 'class' => 'render_html_in_widget_title medium', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), array( 'id' => 'remove_widget_title', 'title' => __( 'Remove widget title', 'italystrap' ), 'args' => array( 'label' => __( 'Remove widget title conditionally', 'italystrap' ), 'desc' => __( 'Add !! (2 exclamation marks) at the beginning of the widget title to hide it. Example: !!My widget title.', 'italystrap' ), 'id' => 'remove_widget_title', 'type' => 'checkbox', 'class' => 'remove_widget_title easy', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), array( 'id' => 'widget_posts', 'title' => __( 'Posts Widget', 'italystrap' ), 'args' => array( 'label' => __( 'Widget for custom loop of posts , pages and custom post types', 'italystrap' ), 'desc' => __( 'This widget allow you to create a custom loop of posts/page/CPT with a lot of options like "Recent Posts" or "Posts more comented" or "Related posts" ecc and place it in your sidebars. (This plugin does not provide any style, you have to add it in the style.css of your theme)', 'italystrap' ), 'id' => 'widget_posts', 'type' => 'checkbox', 'class' => 'widget_posts hard', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), // array( // 'id' => 'widget_grouped_posts', // 'title' => __( 'Grouped Posts Widget', 'italystrap' ), // 'callback' => 'get_field_type', // // 'page' => 'italystrap_options_group', // 'section' => 'widget', // 'args' => array( // 'label' => __( 'Posts Grouped by Taxonomies (cats, tags and custom tax)', 'italystrap' ) . $beta, // 'desc' => __( 'This widget allow you to create a lists of custom loop of any posts type regrouped by taxonomies with a lot of options. (This plugin does not provide any style, you have to add it in the style.css of your theme)', 'italystrap' ), // 'id' => 'widget_grouped_posts', // 'type' => 'checkbox', // 'class' => 'widget_grouped_posts hard', // 'default' => '', // // 'validate' => 'ctype_alpha', // 'sanitize' => 'sanitize_text_field', // ), // 'show_on' => \ItalyStrap\Core\is_dev(), // ), array( 'id' => 'media_carousel_widget', 'title' => __( 'Carousel Widget', 'italystrap' ), 'args' => array( 'label' => __( 'Widget for Media Carousel', 'italystrap' ), 'desc' => __( 'This will activate a Bootstrap media Carousel with a ton of options, make shure you have a Twitter Bootstrap CSS in your site.', 'italystrap' ), 'id' => 'media_carousel_widget', 'type' => 'checkbox', 'class' => 'media_carousel_widget medium', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), array( 'id' => 'widget_vcard', 'title' => __( 'vCard Widget', 'italystrap' ), 'args' => array( 'label' => __( 'vCard Local Business', 'italystrap' ), 'desc' => __( 'Add a vCard Local Business with Schema.org markup to your theme widgetized area. (This plugin does not provide any style, you have to add it in the style.css of your theme).', 'italystrap' ), 'id' => 'widget_vcard', 'type' => 'checkbox', 'class' => 'widget_vcard medium', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), array( 'id' => 'widget_image', 'title' => __( 'Image Widget', 'italystrap' ), 'args' => array( 'label' => __( 'Image Widget', 'italystrap' ) . $beta, 'desc' => __( 'Activate image widget and displays an image from media with an array of options. (This plugin does not provide any style, you have to add it in the style.css of your theme).', 'italystrap' ), 'id' => 'widget_image', 'type' => 'checkbox', 'class' => 'widget_image medium', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_beta(), ), // array( // 'id' => 'widget_breadcrumbs', // 'title' => __( 'Breadcrumbs Widget', 'italystrap' ), // 'callback' => 'get_field_type', // // 'page' => 'italystrap_options_group', // 'section' => 'widget', // 'args' => array( // 'label' => __( 'Breadcrumbs Widget with Schema.org markup', 'italystrap' ) . $beta, // 'desc' => __( 'Activate Breadcrumbs widget with Schema.org markup. (This plugin does not provide any style, you have to add it in the style.css of your theme)', 'italystrap' ), // 'id' => 'widget_breadcrumbs', // 'type' => 'checkbox', // 'class' => 'widget_breadcrumbs hard', // 'default' => '', // // 'validate' => 'ctype_alpha', // 'sanitize' => 'sanitize_text_field', // ), // 'show_on' => \ItalyStrap\Core\is_dev(), // ), // array( // 'id' => 'widget_facebook_page', // 'title' => __( 'Facebook Page Widget', 'italystrap' ), // 'callback' => 'get_field_type', // // 'page' => 'italystrap_options_group', // 'section' => 'widget', // 'args' => array( // 'label' => __( 'Facebook Page Widget', 'italystrap' ) . $beta, // 'desc' => __( 'Embed a Facebook Page on your site with a widget.', 'italystrap' ), // 'id' => 'widget_facebook_page', // 'type' => 'checkbox', // 'class' => 'widget_facebook_page hard', // 'default' => '', // // 'validate' => 'ctype_alpha', // 'sanitize' => 'sanitize_text_field', // ), // 'show_on' => \ItalyStrap\Core\is_dev(), // ), // array( // 'id' => 'widget_editor', // 'title' => __( 'Editor Widget', 'italystrap' ), // 'callback' => 'get_field_type', // // 'page' => 'italystrap_options_group', // 'section' => 'widget', // 'args' => array( // 'label' => __( 'TinyMCE Editor Widget', 'italystrap' ) . $beta, // 'desc' => __( 'Adds the TinyMCE visual editor widget.', 'italystrap' ), // 'id' => 'widget_editor', // 'type' => 'checkbox', // 'class' => 'widget_editor hard', // 'default' => '', // // 'validate' => 'ctype_alpha', // 'sanitize' => 'sanitize_text_field', // ), // 'show_on' => \ItalyStrap\Core\is_dev(), // ), array( 'id' => 'widget_nav_menu', 'title' => __( 'Nav Menu Widget', 'italystrap' ), 'args' => array( 'label' => __( 'Nav Menu Widget', 'italystrap' ) . $beta, 'desc' => __( 'Add an advanced custom menu to your sidebar. Available only for ItalyStrap theme framework.', 'italystrap' ), 'id' => 'widget_nav_menu', 'type' => 'checkbox', 'class' => 'widget_nav_menu hard', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_beta() && Core\is_italystrap_active(), ), array( 'id' => 'widget_monster', 'title' => __( 'Monster Widget', 'italystrap' ), 'args' => array( 'label' => __( 'Monster Widget by ItalyStrap {{Only for debug}}', 'italystrap' ), 'desc' => __( 'Test multiple widgets by ItalyStrap at the same time.', 'italystrap' ), 'id' => 'widget_monster', 'type' => 'checkbox', 'class' => 'widget_monster hard', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_debug(), ), // array( // 'id' => 'vcardwidget', // 'title' => __( 'vCard Widget (DEPRECATED)', 'italystrap' ), // 'callback' => 'get_field_type', // // 'page' => 'italystrap_options_group', // 'section' => 'widget', // 'args' => array( // 'label' => __( 'ItalyStrap vCard Widget for Local Business (DEPRECATED)', 'italystrap' ), // 'desc' => __( 'Activate a widget for vCard Local Business with schema.org markup (DEPRECATED)', 'italystrap' ), // 'id' => 'vcardwidget', // 'type' => 'checkbox', // 'class' => 'vcardwidget', // 'default' => '', // // 'validate' => 'ctype_alpha', // 'sanitize' => 'sanitize_text_field', // ), // ), // array( // DEPRECATED // 'id' => 'post_widget', // 'title' => __( 'Posts Widget (DEPRECATED)', 'italystrap' ), // 'callback' => 'get_field_type', // // 'page' => 'italystrap_options_group', // 'section' => 'widget', // 'args' => array( // 'label' => __( 'Posts Widget for Custom Loop (DEPRECATED)', 'italystrap' ), // 'desc' => __( 'Activate posts widget and displays list of posts with an array of options', 'italystrap' ), // 'id' => 'post_widget', // 'type' => 'checkbox', // 'class' => 'post_widget', // 'default' => '', // // 'validate' => 'ctype_alpha', // 'sanitize' => 'sanitize_text_field', // ), // ), ), ), /** * This is the Lazy Load configuration */ 'shortcode' => array( 'tab_title' => __( 'Shortcodes', 'italystrap' ), 'id' => 'shortcode', 'title' => __( 'Options page for shortcodes', 'italystrap' ), 'desc' => __( 'Select the shortcodes you want to use.', 'italystrap' ), 'settings_fields' => array( array( 'id' => 'do_shortcode_widget_text', 'title' => __( 'Do ShortCode in Widget Text', 'italystrap' ), 'args' => array( 'label' => __( 'Do ShortCode in Widget Text', 'italystrap' ), 'desc' => __( 'This get you the possibility to insert any shortcode into a widget text.', 'italystrap' ), 'id' => 'do_shortcode_widget_text', 'type' => 'checkbox', 'class' => 'do_shortcode_widget_text easy', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), // array( // 'id' => 'shortcode_widget', // 'title' => __( 'Widget to ShortCode', 'italystrap' ), // 'callback' => 'get_field_type', // // 'page' => 'italystrap_options_group', // 'section' => 'shortcode', // 'args' => array( // 'label' => __( 'Render Widget to ShortCode', 'italystrap' ) . $beta, // 'desc' => __( 'You can add any widgets in a new shortcode [widget id=""] to show it in your content. (ALPHA VERSION)', 'italystrap' ), // 'id' => 'shortcode_widget', // 'type' => 'checkbox', // 'class' => 'shortcode_widget hard', // // 'default' => 1, // // 'validate' => 'ctype_alpha', // 'sanitize' => 'sanitize_text_field', // ), // 'show_on' => Core\is_beta(), // ), array( 'id' => 'media_carousel_shortcode', 'title' => __( 'Carousel Shortcode', 'italystrap' ), 'args' => array( 'label' => __( 'Shortcode for Media Carousel', 'italystrap' ), 'desc' => __( 'This will activate a Bootstrap media Carousel inside built-in WordPress gallery shortcode with a ton of options, make shure you have a Twitter Bootstrap CSS in your site.', 'italystrap' ), 'id' => 'media_carousel_shortcode', 'type' => 'checkbox', 'class' => 'media_carousel_shortcode medium', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), ), array( 'id' => 'shortcode_posts', 'title' => __( 'Posts Shortcode', 'italystrap' ), 'args' => array( 'label' => __( 'Shortcode for custom loop of posts , pages and custom post types', 'italystrap' ) . $beta, 'desc' => __( 'This shortcode allow you to create a custom loop of posts/page/CPT with a lot of options like "Recent Posts" or "Posts more comented" or "Related posts" ecc and place it in your sidebars. (This plugin does not provide any style, you have to add it in the style.css of your theme).', 'italystrap' ), 'id' => 'shortcode_posts', 'type' => 'checkbox', 'class' => 'shortcode_posts medium', // 'default' => '0', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), 'show_on' => Core\is_beta(), ), array( 'id' => 'shortcode_post_title', 'title' => __( 'Post Title Shortcode', 'italystrap' ), 'args' => array( 'label' => __( 'Shortcode for display post, page or CPT title', 'italystrap' ), 'desc' => __( 'This shortcode allow you to display the title of the post you want to display, If you want to display the title in a different page you have to insert the ID of the post you want to display.', 'italystrap' ), 'id' => 'shortcode_post_title', 'type' => 'checkbox', 'class' => 'shortcode_post_title medium', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', ), // 'show_on' => Core\is_beta(), ), // array( // 'id' => 'shortcode_button', // 'title' => __( 'Post Button Shortcode', 'italystrap' ), // 'callback' => 'get_field_type', // // 'page' => 'italystrap_options_group', // 'section' => 'shortcode', // 'args' => array( // 'label' => __( 'Shortcode for display post, page or CPT title', 'italystrap' ), // 'desc' => __( 'This shortcode allow you to display the title of the post you want to display, If you want to display the title in a different page you have to insert the ID of the post you want to display.', 'italystrap' ), // 'id' => 'shortcode_button', // 'type' => 'checkbox', // 'class' => 'shortcode_button medium', // // 'default' => '0', // // 'validate' => 'ctype_alpha', // 'sanitize' => 'sanitize_text_field', // ), // 'show_on' => \ItalyStrap\Core\is_dev(), // ), // array( // 'id' => 'shortcode_row', // 'title' => __( 'Row Shortcode', 'italystrap' ), // 'callback' => 'get_field_type', // // 'page' => 'italystrap_options_group', // 'section' => 'shortcode', // 'args' => array( // 'label' => __( 'Shortcode for a row html container', 'italystrap' ) . $beta, // 'desc' => __( 'This shortcode is meant to use with the column shortcode, this is an HTML container, the shortcode renders a div elements and you can add CSS ID, class and style in the shortcode parameters. If you use Twitter Bootstrap you can use row. By default this shortcode doesn\' add any css, use yours theme style.css.', 'italystrap' ), // 'id' => 'shortcode_row', // 'type' => 'checkbox', // 'class' => 'shortcode_row medium', // 'default' => '0', // // 'validate' => 'ctype_alpha', // 'sanitize' => 'sanitize_text_field', // ), // 'show_on' => Core\is_beta(), // ), // array( // 'id' => 'shortcode_column', // 'title' => __( 'Column Shortcode', 'italystrap' ), // 'callback' => 'get_field_type', // // 'page' => 'italystrap_options_group', // 'section' => 'shortcode', // 'args' => array( // 'label' => __( 'Shortcode for html columns', 'italystrap' ) . $beta, // 'desc' => __( 'With this shortcode you can insert as many column as you want, the limits it\'s what you have in your style.css. If you use Twitter Bootstrap you can use col-lg-* col-md-* col-sm-* col-xs-*. By default this shortcode doesn\' add any css, use yours theme style.css.', 'italystrap' ), // 'id' => 'shortcode_column', // 'type' => 'checkbox', // 'class' => 'shortcode_column medium', // 'default' => '0', // // 'validate' => 'ctype_alpha', // 'sanitize' => 'sanitize_text_field', // ), // 'show_on' => Core\is_beta(), // ), ), ), /** * This is the CSS configuration */ 'style' => array( 'tab_title' => __( 'Style', 'italystrap' ), 'id' => 'style', 'title' => __( 'Options page for style purpose', 'italystrap' ), 'desc' => __( 'This is the tab for changing the style of your site. Code entered here will be included in every page of the front-end of your site.', 'italystrap' ), 'settings_fields' => array( array( 'id' => 'activate_custom_css', 'title' => __( 'Activate Custom CSS', 'italystrap' ), 'args' => array( 'label' => __( 'Activate Custom CSS', 'italystrap' ), 'desc' => __( 'This will add new fields in the wp editor for adding custom CSS, ID and class attribute to post/page and also it let you use the new functionality below.', 'italystrap' ), 'id' => 'activate_custom_css', 'type' => 'checkbox', 'class' => 'activate_custom_css medium', 'default' => '', // 'validate' => 'ctype_alpha', 'sanitize' => 'sanitize_text_field', 'option_type' => 'theme_mod', ), ), array( 'id' => 'custom_css', 'title' => __( 'Custom CSS', 'italystrap' ), 'args' => array( 'desc' => __( 'Enter your custom CSS, this styles will be included verbatim in