SET ARGUMENTS * All the possible arguments for Redux. * For full documentation on arguments, please refer to: https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments * */ $theme = wp_get_theme(); // For use with some settings. Not necessary. $args = array( 'opt_name' => 'redux_builder_amp', 'display_name' => 'Accelerated Mobile Pages Options', //'display_version' => '0.7.1', 'page_slug' => 'amp_options', 'page_title' => 'Accelerated Mobile Pages Options', 'update_notice' => false, 'intro_text' => 'Need Help? Support Forum | FAQ | Change Log | Reviews| Donate', 'footer_text' => '', 'admin_bar' => TRUE, 'menu_type' => 'menu', 'menu_title' => 'AMP', 'allow_sub_menu' => TRUE, 'page_parent_post_type' => 'your_post_type', 'default_mark' => '', 'class' => 'amp_options_class', 'hints' => array( 'icon' => 'el el-adjust-alt', 'icon_position' => 'left', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'light', ), 'tip_position' => array( 'my' => 'top left', 'at' => 'bottom right', ), 'tip_effect' => array( 'show' => array( 'duration' => '500', 'event' => 'mouseover', ), 'hide' => array( 'duration' => '500', 'event' => 'mouseleave unfocus', ), ), ), 'output' => TRUE, 'output_tag' => TRUE, 'settings_api' => TRUE, 'cdn_check_time' => '1440', 'compiler' => TRUE, 'page_permissions' => 'manage_options', 'save_defaults' => TRUE, 'show_import_export' => TRUE, 'database' => 'options', 'transient_time' => '3600', 'network_sites' => TRUE, ); // SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons. $args['share_icons'][] = array( 'url' => 'https://github.com/ahmedkaludi/Accelerated-Mobile-Pages', 'title' => 'Visit us on GitHub', 'icon' => 'el el-github' //'img' => '', // You can use icon OR img. IMG needs to be a full URL. ); Redux::setArgs( $opt_name, $args ); /* * ---> END ARGUMENTS */ /* * ---> START HELP TABS */ $tabs = array( array( 'id' => 'redux-help-tab-1', 'title' => __( 'Theme Information 1', 'admin_folder' ), 'content' => __( '

This is the tab content, HTML is allowed.

', 'admin_folder' ) ), array( 'id' => 'redux-help-tab-2', 'title' => __( 'Theme Information 2', 'admin_folder' ), 'content' => __( '

This is the tab content, HTML is allowed.

', 'admin_folder' ) ) ); Redux::setHelpTab( $opt_name, $tabs ); // Set the help sidebar $content = __( '

This is the sidebar content, HTML is allowed.

', 'admin_folder' ); Redux::setHelpSidebar( $opt_name, $content ); /* * <--- END HELP TABS */ /* * * ---> START SECTIONS * */ Redux::setSection( $opt_name, array( 'title' => __( 'Basic Field', 'redux-framework-demo' ), 'id' => 'basic', 'desc' => __( 'Basic field with no subsections.', 'redux-framework-demo' ), 'icon' => 'el el-home', 'fields' => array( array( 'id' => 'opt-blank', 'title' => __( 'Example Text', 'redux-framework-demo' ), 'desc' => __( 'Example description.', 'redux-framework-demo' ), 'subtitle' => __( 'Example subtitle.', 'redux-framework-demo' ), ) ) ) ); Redux::setSection( $opt_name, array( 'title' => __( 'Welcome', 'redux-framework-demo' ), 'id' => 'basic', 'desc' => __( '
Thank you for using Accelerated Mobile Pages plugin. What\'s New in this Version?'. '

' . sprintf( __( 'We are actively working on updating the plugin. We have built user friendly options which allows you to make changes on your AMP version. I have put togeather some frequently asked questions below.', 'redux-framework-demo' ), 'redux-framework-demo' ) . '

' . '

' . __( 'Frequently Asked Questions', 'redux-framework-demo' ) . '

' . '

' . __( 'How to Setup Navigation Menu?', 'redux-framework-demo' ) . '
' . __( 'We have created a Seperate Navigation menu for AMP version which you can setup from the WordPress Menus, then navigate to Menu Locations, their you will notice AMP Menu. You can assign existing menus to this locations.', 'redux-framework-demo' ) . '

' . '

' . __( 'I added /?amp on the end of one of my URLs and a minimalist version of my page appeared. It looks just like on one of your screenshots, so I guess its installed properly. Okay what now? Is it just enough to install it and the plugin will do the rest?', 'redux-framework-demo' ) . '
' . __( 'After you see the minimalist view if you use the url with ?amp then it means that it has been installed properly. You dont need any extra steps to enable it.', 'redux-framework-demo' ) . '

' . '

' . __( 'The plugin supposed to redirect all mobile visitors to AMP version of site or not? ', 'redux-framework-demo' ) . '
' . __( 'When you view the website from the mobile, it is not supposed to redirect you to the amp version, amp version is always ready for google in the backend, if Google wants to serve to the people, then it will get the amp version and serve to the customers. ', 'redux-framework-demo' ) . '

' . '

' . __( 'I am worried that it will cause Duplicate content?', 'redux-framework-demo' ) . '
' . __( 'In the AMP version, we are using Canonical tag to solve this. I am 100% sure that using this plugin will not duplicate the content. ', 'redux-framework-demo' ) . '

' . '

' . __( 'How do I know that my site is AMP enabled? ', 'redux-framework-demo' ) . '
' . __( 'Add /?amp at the end of your website url and you will get amp version of your website.', 'redux-framework-demo' ) . '

' . '

' . sprintf( __( 'I have addded /?amp at the end of the url and still I am not able to see the AMP version of my site? ', 'redux-framework-demo' ), 'redux-framework-demo' ) . '
' . sprintf( __( 'Please check if you have "Pretty Permalinks" enabled. If not then activate it.', 'redux-framework-demo' ), '' ) . '

' . '

' . sprintf( __( 'How do I report Bug reports? ', 'redux-framework-demo' ), 'redux-framework-demo' ) . '
' . sprintf( __( 'Before you submit a new bug, please check if there already is an existing bug report for it. If so, it may be far more valuable to add to the existing one, than to create a new bug report. You can submit bug reports and feature requests at %1$sGitHub Issues Page%2$s. ', 'redux-framework-demo' ), '', '' ) . '

' . sprintf( __( '

%1$sLike this plugin? Support us by leaving a 5 Star Rating%2$s


', 'redux-framework-demo' ), '', '' ) . '

' , 'redux-framework-demo' ), 'icon' => 'el el-home' ) ); Redux::setSection( $opt_name, array( 'title' => __( 'General', 'redux-framework-demo' ), // 'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . 'http://docs.reduxframework.com/core/fields/text/', 'id' => 'opt-text-subsection', 'subsection' => true, 'fields' => array( $fields = array( 'id' => 'opt-media', 'type' => 'media', 'url' => true, 'title' => __('Logo', 'redux-framework-demo'), //'desc' => __('', 'redux-framework-demo'), 'desc' => __('Upload a logo for the AMP version. Recommend logo size is: 190x36', 'redux-framework-demo'), // 'default' => array( // 'url'=>'http://s.wordpress.org/style/images/codeispoetry.png' // ), ), //$fields = array( // 'id' => 'opt-switch', // 'type' => 'switch', // 'title' => __('Switch On', 'redux-framework-demo'), // 'subtitle' => __('Look, it\'s on!', 'redux-framework-demo'), // 'default' => true //), array( 'id' => 'ga-feild', 'type' => 'text', 'title' => __( 'Google Analytics', 'redux-framework-demo' ), 'subtitle' => __( '', 'redux-framework-demo' ), 'desc' => __( 'Enter your Google Analytics ID. Example: UA-XXXXX-Y.', 'redux-framework-demo' ), 'default' => 'UA-XXXXX-Y', ), array( 'id' => 'opt-color-rgba', 'type' => 'color_rgba', 'title' => 'Color Scheme', 'subtitle' => 'Set color and alpha channel', 'desc' => 'Change the color scheme to your branding color', // See Notes below about these lines. //'output' => array('background-color' => '.site-header'), //'compiler' => array('color' => '.site-header, .site-footer', 'background-color' => '.nav-bar'), 'default' => array( 'color' => '#312C7E', 'alpha' => 1 ), // These options display a fully functional color palette. Omit this argument // for the minimal color picker, and change as desired. 'options' => array( 'show_input' => true, 'show_initial' => true, 'show_alpha' => true, 'show_palette' => true, 'show_palette_only' => false, 'show_selection_palette' => true, 'max_palette_size' => 10, 'allow_empty' => true, 'clickout_fires_change' => false, 'choose_text' => 'Choose', 'cancel_text' => 'Cancel', 'show_buttons' => true, 'use_extended_classes' => true, 'palette' => null, // show default 'input_text' => 'Select Color' ) ), array( 'id' =>'amp-frontpage-select-option', 'type' => 'switch', 'title' => __('Front Page', 'redux-framework-demo'), 'default' => 0, 'subtitle' => __('Custom AMP frontpage', 'redux-framework-demo'), 'true' => 'true', 'false' => 'false', ), array( 'id' => 'amp-frontpage-select-option-pages', 'type' => 'select', 'title' => __('Select Page as Frontpage', 'redux-framework-demo'), 'required' => array('amp-frontpage-select-option', '=' , '1'), // Must provide key => value pairs for select options 'data' => 'page', 'args' => array( 'post_type' => 'page', 'posts_per_page' => 500 ), 'default' => '2', ), array( 'id' => 'amp-footer-text', 'title' => __('Footer', 'redux-framework-demo'), 'type' => 'text', 'default' => 'Copyright © 2016' ), array( 'id' =>'amp-rtl-select-option', 'type' => 'switch', 'title' => __('RTL Support', 'redux-framework-demo'), 'default' => 0, 'subtitle' => __('Enable Right to Left language support?', 'redux-framework-demo'), 'true' => 'true', 'false' => 'false', ), array( 'id' => 'amp-navigation-text', 'title' => __('Navigation Text', 'redux-framework-demo'), 'type' => 'text', 'default' => 'Navigate' ), ) ) ); // Notifications SECTION Redux::setSection( $opt_name, array( 'title' => __( 'Notifications', 'redux-framework-demo' ), 'desc' => __( 'Add notifications to your AMP pages'), 'id' => 'amp-notifications', 'subsection' => true, 'fields' => array( array( 'id' =>'amp-enable-notifications', 'type' => 'switch', 'title' => __('Enable Notifications', 'redux-framework-demo'), 'default' => '', 'subtitle' => __('Show notifications on all of your AMP pages for cookie purposes, or anything else.', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), array( 'id' => 'amp-notification-text', 'title' => __('Notification text', 'redux-framework-demo'), 'type' => 'text', 'required' => array('amp-enable-notifications', '=' , '1'), 'default' => 'This website uses cookies.' ), array( 'id' => 'amp-accept-button-text', 'title' => __('Notification accept button text', 'redux-framework-demo'), 'type' => 'text', 'required' => array('amp-enable-notifications', '=' , '1'), 'default' => 'Accept' ), ), ) ); // ADS SECTION Redux::setSection( $opt_name, array( 'title' => __( 'Advertisement', 'redux-framework-demo' ), 'desc' => __( 'The First and Only plugin to be the Adsense AMP-AD compatible!'), 'id' => 'amp-ads', 'subsection' => true, 'fields' => array( // Ad 1 Starts array( 'id' =>'enable-amp-ads-1', 'type' => 'switch', 'title' => __('AD #1', 'redux-framework-demo'), 'default' => 0, 'subtitle' => __('Below the Header (SiteWide)', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), array( 'id' => 'enable-amp-ads-select-1', 'type' => 'select', 'title' => __('AD Size', 'redux-framework-demo'), 'required' => array('enable-amp-ads-1', '=' , '1'), // Must provide key => value pairs for select options 'options' => array( '1' => '300x250', '2' => '336x280', '3' => '728x90', '4' => '300x600', '5' => '320x100', '6' => '200x50', '7' => '320x50' ), 'default' => '2', ), array( 'id' =>'enable-amp-ads-text-feild-client-1', 'type' => 'text', 'required' => array('enable-amp-ads-1', '=' , '1'), 'title' => __('Data AD Client', 'redux-framework-demo'), 'desc' => __('Enter the Data Ad Client (data-ad-client) from the adsense ad code. e.g. ca-pub-2005XXXXXXXXX342', 'redux-framework-demo'), 'default' => '', 'placeholder'=> 'ca-pub-2005XXXXXXXXX342' ), array( 'id' => 'enable-amp-ads-text-feild-slot-1', 'type' => 'text', 'title' => __('Data AD Slot', 'redux-framework-demo'), 'desc' => __('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. e.g. 70XXXXXX12', 'redux-framework-demo'), 'default' => '', 'required' => array('enable-amp-ads-1', '=' , '1'), 'placeholder'=> '70XXXXXX12' ), // Ad 1 ends // Ad 2 Starts array( 'id'=>'enable-amp-ads-2', 'type' => 'switch', 'title' => __('AD #2', 'redux-framework-demo'), 'default' => 0, 'subtitle' => __('Below the Footer (SiteWide)', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), array( 'id' => 'enable-amp-ads-select-2', 'type' => 'select', 'title' => __('AD Size', 'redux-framework-demo'), 'required' => array('enable-amp-ads-2', '=' , '1'), // Must provide key => value pairs for select options 'options' => array( '1' => '300x250', '2' => '336x280', '3' => '728x90', '4' => '300x600', '5' => '320x100', '6' => '200x50', '7' => '320x50' ), 'default' => '2', ), array( 'id' =>'enable-amp-ads-text-feild-client-2', 'type' => 'text', 'required' => array('enable-amp-ads-2', '=' , '1'), 'title' => __('Data AD Client', 'redux-framework-demo'), 'desc' => __('Enter the Data Ad Client (data-ad-client) from the adsense ad code. e.g. ca-pub-2005XXXXXXXXX342', 'redux-framework-demo'), 'default' => '', 'placeholder'=> 'ca-pub-2005XXXXXXXXX342' ), array( 'id' => 'enable-amp-ads-text-feild-slot-2', 'type' => 'text', 'title' => __('Data AD Slot', 'redux-framework-demo'), 'desc' => __('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. e.g. 70XXXXXX12', 'redux-framework-demo'), 'default' => '', 'required' => array('enable-amp-ads-2', '=' , '1'), 'placeholder'=> '70XXXXXX12' ), // Ad 2 ends // Ad 3 starts array( 'id' => 'enable-amp-ads-3', 'type' => 'switch', 'title' => __('AD #3', 'redux-framework-demo'), 'default' => 0, 'subtitle' => __('Above the Post Content (Single Post)', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), array( 'id' => 'enable-amp-ads-select-3', 'type' => 'select', 'title' => __('AD Size', 'redux-framework-demo'), 'required' => array('enable-amp-ads-3', '=' , '1'), // Must provide key => value pairs for select options 'options' => array( '1' => '300x250', '2' => '336x280', '3' => '728x90', '4' => '300x600', '5' => '320x100', '6' => '200x50', '7' => '320x50' ), 'default' => '2', ), array( 'id' =>'enable-amp-ads-text-feild-client-3', 'type' => 'text', 'required' => array('enable-amp-ads-3', '=' , '1'), 'title' => __('Data AD Client', 'redux-framework-demo'), 'desc' => __('Enter the Data Ad Client (data-ad-client) from the adsense ad code. e.g. ca-pub-2005XXXXXXXXX342', 'redux-framework-demo'), 'default' => '', 'placeholder'=> 'ca-pub-2005XXXXXXXXX342' ), array( 'id' => 'enable-amp-ads-text-feild-slot-3', 'type' => 'text', 'title' => __('Data AD Slot', 'redux-framework-demo'), 'desc' => __('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. e.g. 70XXXXXX12', 'redux-framework-demo'), 'default' => '', 'required' => array('enable-amp-ads-3', '=' , '1'), 'placeholder'=> '70XXXXXX12' ), // Ad 3 ends // Ad 4 Starts array( 'id' => 'enable-amp-ads-4', 'type' => 'switch', 'title' => __('AD #4', 'redux-framework-demo'), 'default' => 0, 'subtitle' => __('Below the Post Content (Single Post)', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), array( 'id' => 'enable-amp-ads-select-4', 'type' => 'select', 'title' => __('AD Size', 'redux-framework-demo'), 'required' => array('enable-amp-ads-4', '=' , '1'), // Must provide key => value pairs for select options 'options' => array( '1' => '300x250', '2' => '336x280', '3' => '728x90', '4' => '300x600', '5' => '320x100', '6' => '200x50', '7' => '320x50' ), 'default' => '2', ), array( 'id' =>'enable-amp-ads-text-feild-client-4', 'type' => 'text', 'required' => array('enable-amp-ads-4', '=' , '1'), 'title' => __('Data AD Client', 'redux-framework-demo'), 'desc' => __('Enter the Data Ad Client (data-ad-client) from the adsense ad code. e.g. ca-pub-2005XXXXXXXXX342', 'redux-framework-demo'), 'default' => '', 'placeholder'=> 'ca-pub-2005XXXXXXXXX342' ), array( 'id' => 'enable-amp-ads-text-feild-slot-4', 'type' => 'text', 'title' => __('Data AD Slot', 'redux-framework-demo'), 'desc' => __('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. e.g. 70XXXXXX12', 'redux-framework-demo'), 'default' => '', 'required' => array('enable-amp-ads-4', '=' , '1'), 'placeholder'=> '70XXXXXX12' ) // Ad 4 ends ), ) ); // Single Section Redux::setSection( $opt_name, array( 'title' => __( 'Single', 'redux-framework-demo' ), 'desc' => __( 'Additional Options to control the look of Single', 'redux-framework-demo' ), 'id' => 'amp-single', 'subsection' => true, 'fields' => array( // Featured Image ON/OFF // array( // 'id' => 'enable-single-featured-image', // 'type' => 'switch', // 'title' => __('Featured Image Above Post Content', 'redux-framework-demo'), // 'default' => 0, // 'subtitle' => __('Enable Featured Image in the single post', 'redux-framework-demo'), // 'true' => 'Enabled', // 'false' => 'Disabled', // ), // Post Meta ON/OFF array( 'id' => 'enable-single-post-meta', 'type' => 'switch', 'title' => __('Post Meta Above Post Content', 'redux-framework-demo'), 'default' => 1, 'subtitle' => __('Enable Post Meta in the single post', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), // Single Featured ON/OFF array( 'id' => 'enable-single-featured-img', 'type' => 'switch', 'title' => __('Featured Image', 'redux-framework-demo'), 'default' => 1, 'subtitle' => __('Enabling this will automatically display the featured image', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), // Next/Previous Pagination ON/OFF array( 'id' => 'enable-next-previous-pagination', 'type' => 'switch', 'title' => __('Post Pagination', 'redux-framework-demo'), 'default' => 1, 'subtitle' => __('Enable Next / Previous in the single post', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), // Tags ON/OFF array( 'id' => 'ampforwp-single-tags-on-off', 'type' => 'switch', 'title' => __('Tags', 'redux-framework-demo'), 'default' => 1, 'subtitle' => __('Enable / Disable Tags in the single post', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), // Related Post array( 'id' => 'ampforwp-single-related-on-off', 'type' => 'switch', 'title' => __('Related Post', 'redux-framework-demo'), 'default' => 1, 'subtitle' => __('Enable / Disable Related Posts in the single post', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), // Comments Post array( 'id' => 'ampforwp-single-comments-on-off', 'type' => 'switch', 'title' => __('Comments', 'redux-framework-demo'), 'default' => 1, 'subtitle' => __('Enable / Disable Comments in the single post', 'redux-framework-demo'), 'true' => 'Enabled', 'false' => 'Disabled', ), // Social Icons ON/OFF array( 'id' => 'enable-single-social-icons', 'type' => 'switch', 'title' => __('Social Icons', 'redux-framework-demo'), 'default' => 1, 'subtitle' => __('Enable Social Icons in single', 'redux-framework-demo'), ), // Facebook ON/OFF array( 'id' => 'enable-single-facebook-share', 'type' => 'switch', 'required' => array('enable-single-social-icons', '=' , '1'), 'title' => __('Facebook', 'redux-framework-demo'), 'default' => 0, ), // Facebook app ID array( 'id' => 'amp-facebook-app-id', 'title' => __('Facebook App ID', 'redux-framework-demo'), 'subtitle' => __('In order to use Facebook share you need to register an app ID, you can register one here: https://developers.facebook.com/apps.', 'redux-framework-demo'), 'type' => 'text', 'required' => array('enable-single-facebook-share', '=' , '1'), 'placeholder' => 'Enter your facebook app id', 'default' => '' ), // Twitter ON/OFF array( 'id' => 'enable-single-twitter-share', 'type' => 'switch', 'required' => array('enable-single-social-icons', '=' , '1'), 'title' => __('Twitter', 'redux-framework-demo'), 'default' => 1, ), // GooglePlus ON/OFF array( 'id' => 'enable-single-gplus-share', 'type' => 'switch', 'required' => array('enable-single-social-icons', '=' , '1'), 'title' => __('GooglePlus', 'redux-framework-demo'), 'default' => 1, ), // Email ON/OFF array( 'id' => 'enable-single-email-share', 'type' => 'switch', 'required' => array('enable-single-social-icons', '=' , '1'), 'title' => __('Email', 'redux-framework-demo'), 'default' => 1, ), // Pinterest ON/OFF array( 'id' => 'enable-single-pinterest-share', 'type' => 'switch', 'required' => array('enable-single-social-icons', '=' , '1'), 'title' => __('Pinterest', 'redux-framework-demo'), 'default' => 1, ), // LinkedIn ON/OFF array( 'id' => 'enable-single-linkedin-share', 'type' => 'switch', 'required' => array('enable-single-social-icons', '=' , '1'), 'title' => __('LinkedIn', 'redux-framework-demo'), 'default' => 1, ), array( 'id' => 'enable-single-whatsapp-share', 'type' => 'switch', 'required' => array('enable-single-social-icons', '=' , '1'), 'title' => __('WhatsApp', 'redux-framework-demo'), 'default' => 1, ), ), ) ); // Structured Data Redux::setSection( $opt_name, array( 'title' => __( 'Structured Data', 'redux-framework-demo' ), // 'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . 'http://docs.reduxframework.com/core/fields/textarea/', 'id' => 'opt-structured-data', 'subsection' => true, 'fields' => array( array( 'id' => 'amp-structured-data-logo', 'type' => 'media', 'url' => true, 'title' => __('Default Structured Data Logo', 'redux-framework-demo'), 'desc' => __('Upload the logo you want to show in Google Structured Data. ', 'redux-framework-demo'), ), array( 'id' => 'amp-structured-data-placeholder-image', 'type' => 'media', 'url' => true, 'title' => __('Default Post Image', 'redux-framework-demo'), 'desc' => __('Upload the Image you want to show as Placeholder Image, when there is no featured image set in the post.', 'redux-framework-demo'), ), array( 'id' => 'amp-structured-data-placeholder-image-width', 'title' => __('Default Post Image Width', 'redux-framework-demo'), 'type' => 'text', 'placeholder' => '550', 'desc' => 'Please don\'t add "PX" in the image size.', 'default' => '' ), array( 'id' => 'amp-structured-data-placeholder-image-height', 'title' => __('Default Post Image Height', 'redux-framework-demo'), 'type' => 'text', 'placeholder' => '350', 'desc' => 'Please don\'t add "PX" in the image size.', 'default' => '' ), ) ) ); // CSS Redux::setSection( $opt_name, array( 'title' => __( 'Custom CSS Editor', 'redux-framework-demo' ), // 'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . 'http://docs.reduxframework.com/core/fields/textarea/', 'id' => 'opt-css-editor', 'subsection' => true, 'fields' => array( array( 'id' => 'css_editor', 'type' => 'ace_editor', 'title' => __('Custom CSS', 'redux-framework-demo'), 'subtitle' => __('You can customize the Stylesheet of the AMP version by using this option.', 'redux-framework-demo'), 'mode' => 'css', 'theme' => 'monokai', 'desc' => '', 'default' => "/******* Paste your Custom CSS in this Editor *******/" ), ) ) ); /* * <--- END SECTIONS */