';
$cta_desc = '
';
$extension_listing = '
Take your AMP to the next level with these premium extensions which gives you advanced features.

Add Advertisement directly in the content

Capture Leads with Email Subscription.

Higher Visibility & More Conversions

Enable Custom Post type support in AMP.

Easily add ACF support in AMP.

Enable DFP Support for AMP.

Star Review Ratings for AMP.

Add WooCommerce in AMP in two clicks.

Remove Category Base Support in AMP

Improvements in progress.
Take your AMP to the next level with these premium extensions which gives you advanced features.

Add Advertisement directly in the content

Capture Leads with Email Subscription.

Higher Visibility & More Conversions

Enable Custom Post type support in AMP.

Easily add ACF support in AMP.

Enable DFP Support for AMP.

Star Review Ratings for AMP.

Add WooCommerce in AMP in two clicks.

Remove Category Base Support in AMP

Improvements in progress.
This is the tab content, HTML is allowed.
', 'accelerated-mobile-pages' ) ), array( 'id' => 'redux-help-tab-2', 'title' => __( 'Theme Information 2', 'accelerated-mobile-pages' ), 'content' => __( 'This is the tab content, HTML is allowed.
', 'accelerated-mobile-pages' ) ) ); 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 */ function ampforwp_plugin_activation_notice() { $output =''; include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_inactive( 'amp/amp.php' ) ) { $output = ''.__('Were bunch of passionate people that are dedicated towards helping our users. We will be happy to help you!').'
'; } return $output ; } /* * * ---> START SECTIONS * */ Redux::setSection( $opt_name, array( 'title' => __( 'Basic Field', 'accelerated-mobile-pages' ), 'id' => 'basic', 'desc' => __( 'Basic field with no subsections.', 'accelerated-mobile-pages' ), 'icon' => 'el el-home', 'fields' => array( array( 'id' => 'opt-blank', 'title' => __( 'Example Text', 'accelerated-mobile-pages' ), 'desc' => __( 'Example description.', 'accelerated-mobile-pages' ), 'subtitle' => __( 'Example subtitle.', 'accelerated-mobile-pages' ), ) ) ) ); Redux::setSection( $opt_name, array( 'title' => __( 'Getting Started', 'accelerated-mobile-pages' ), 'id' => 'basic', 'desc' => __( '' . __( '1. User Documentation: ', 'accelerated-mobile-pages' ) . '' . __( 'The AMP for WP plugin is easy to setup but we have some tutorials and guides prepared for you which will help you dive deep with the plugin.' ) . '
' . '' . __( '2. Tutorials: ', 'accelerated-mobile-pages' ) . '' . __( 'We’re bunch of passionate people that are dedicated towards helping our users. We have prepared bunch of tutorials for you' ) . '
' . '' . __( '3. Developer Docs: ', 'accelerated-mobile-pages' ) . '' . __( 'We have created special documentations for developers and semi technical users who are willing to modify the plugin according to their own needs.' ) . '
' . '' . __( '4. Fixing AMP Validation Errors: ', 'accelerated-mobile-pages' ) . '' . __( 'We will personally take care that your website’s AMP version is perfectly validated. We will make sure that your AMP version gets approved and indexed by Google Webmaster Tools properly and we will even keep an eye on AMP updates from Google and implement them into your website.' ) . '
' . '' . __( '5. Community Support Forum: ', 'accelerated-mobile-pages' ) . '' . __( 'We have a special community support forum where you can ask us questions and get help about your AMP related questions. Delivering a good user experience means alot to us and so we try our best to reply each and every question that gets asked.' ) . '
' . '' . __( '6. Hire Us / Other queries: ', 'accelerated-mobile-pages' ) . '' . __( 'We try to answer each and every email, so remember to give us some time. For any other queries, please use the contact form. Please be descriptive as possible.' ) . '
' . '' . __( '7. What\'s New in this Version?: ', 'accelerated-mobile-pages' ) . '' . __( 'If you want to know whats new in the latest version of the plugin, then please use this link. ') . '
' . '
',
'id' => 'amp-design',
'subsection' => true,
'fields' => array(
$fields = array(
'id' => 'amp-design-selector',
'type' => 'select',
'title' => __( 'Design Selector', 'accelerated-mobile-pages' ),
'subtitle' => __( 'Select your design.', 'accelerated-mobile-pages' ),
'options' => array(
'1' => __('Design One', 'accelerated-mobile-pages' ),
'2' => __('Design Two', 'accelerated-mobile-pages' ),
'3' => __('Design Three', 'accelerated-mobile-pages' )
),
'default' => '2'
),
array(
'id' => 'amp-opt-color-rgba-colorscheme',
'type' => 'color_rgba',
'title' => __('Color Scheme','accelerated-mobile-pages'),
'default' => array(
'color' => '#F42F42',
),
'required' => array(
array('amp-design-selector', '=' , '3')
)
),
array(
'id' => 'amp-opt-color-rgba-headercolor',
'type' => 'color_rgba',
'title' => __('Header Background Color','accelerated-mobile-pages'),
'default' => array(
'color' => '#FFFFFF',
),
'required' => array(
array('amp-design-selector', '=' , '3')
)
),
array(
'id' => 'amp-opt-color-rgba-font',
'type' => 'color_rgba',
'title' => __('Color Scheme Font Color','accelerated-mobile-pages'),
'default' => array(
'color' => '#fff',
),
'required' => array(
array('amp-design-selector', '=' , '3')
)
),
array(
'id' => 'amp-opt-color-rgba-headerelements',
'type' => 'color_rgba',
'title' => __('Header Elements Color','accelerated-mobile-pages'),
'default' => array(
'color' => ampforwp_get_element_default_color(),
),
'required' => array(
array('amp-design-selector', '=' , '3')
)
),
array(
'id' => 'amp-design-3-featured-slider',
'type' => 'switch',
'title' => __( 'Featured Slider', 'accelerated-mobile-pages' ),
'required' => array(
array('amp-design-selector', '=' , '3')
),
'default' => '1'
),
array(
'id' => 'amp-design-3-category-selector',
'type' => 'select',
'title' => __( 'Featured Slider Category', 'accelerated-mobile-pages' ),
'options' => $categories_array,
'required' => array(
array('amp-design-selector', '=' , '3'),
array('amp-design-3-featured-slider', '=' , '1')
),
),
array(
'id' => 'amp-design-3-search-feature',
'type' => 'switch',
'subtitle' => __('HTTPS is mandatory for Search', 'accelerated-mobile-pages'),
'title' => __( 'Search', 'accelerated-mobile-pages' ),
'required' => array(
array('amp-design-selector', '=' , '3')
),
'desc' => __('HTTPS is required for search to work on AMP pages.', 'accelerated-mobile-pages' ),
'default' => '0'
),
array(
'id' => 'amp-design-2-search-feature',
'subtitle' => __('HTTPS is mandatory for Search', 'accelerated-mobile-pages'),
'type' => 'switch',
'title' => __( 'Search', 'accelerated-mobile-pages' ),
'required' => array(
array('amp-design-selector', '=' , '2')
),
'desc' => __('HTTPS is required for search to work on AMP pages.', 'accelerated-mobile-pages' ),
'default' => '0'
),
array(
'id' => 'amp-design-1-search-feature',
'subtitle' => __('HTTPS is mandatory for Search', 'accelerated-mobile-pages'),
'type' => 'switch',
'title' => __( 'Search', 'accelerated-mobile-pages' ),
'required' => array(
array('amp-design-selector', '=' , '1')
),
'desc' => __('HTTPS is required for search to work on AMP pages.', 'accelerated-mobile-pages' ),
'default' => '0'
),
// Call Now button
array(
'id' => 'ampforwp-callnow-button',
'type' => 'switch',
'title' => __('Call Now Button', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 0
),
array(
'id' =>'enable-amp-call-numberfield',
'type' => 'text',
'required' => array('ampforwp-callnow-button', '=' , '1'),
'title' => __('Enter Phone Number', 'accelerated-mobile-pages'),
'default' => '',
),
array(
'id' => 'amp-opt-color-rgba-colorscheme-call',
'type' => 'color_rgba',
'title' => __('Call Button Color','accelerated-mobile-pages'),
'default' => array(
'color' => '#0a89c0',
),
'required' => array(
array('ampforwp-callnow-button', '=' , '1')
)
),
array(
'id' => 'amp-design-3-credit-link',
'type' => 'switch',
'title' => __( 'Credit link', 'accelerated-mobile-pages' ),
'required' => array(
array('amp-design-selector', '=' , '3')
),
'default' => '1'
),
array(
'id' => 'amp-design-3-author-description',
'type' => 'switch',
'title' => __( 'Author Bio in Single', 'accelerated-mobile-pages' ),
'required' => array(
array('amp-design-selector', '=' , '3')
),
'default' => '1'
),
array(
'id' => 'amp-design-3-date-feature',
'type' => 'switch',
'title' => __( 'Display Date on Single', 'accelerated-mobile-pages' ),
'required' => array(
array('amp-design-selector', '=' , '3')
),
'desc' => __('Display date along with author and category', 'accelerated-mobile-pages' ),
'default' => '0'
),
array(
'id' => 'css_editor',
'type' => 'ace_editor',
'title' => __('Custom CSS', 'accelerated-mobile-pages'),
'subtitle' => __('You can customize the Stylesheet of the AMP version by using this option.', 'accelerated-mobile-pages'),
'mode' => 'css',
'theme' => 'monokai',
'desc' => '',
'default' => __('/******* Paste your Custom CSS in this Editor *******/','accelerated-mobile-pages')
),
)
)
);
// SEO SECTION
Redux::setSection( $opt_name, array(
'title' => __( 'SEO', 'accelerated-mobile-pages' ),
'id' => 'amp-seo',
'subsection' => true,
'fields' => array(
array(
'id' => 'ampforwp-seo-meta-description',
'type' => 'switch',
'title' => __('Meta Description', 'accelerated-mobile-pages'),
'subtitle' => __('The meta tag that displays in head', 'accelerated-mobile-pages'),
'default' => 0
),
array(
'id' => 'ampforwp-seo-custom-additional-meta',
'type' => 'textarea',
'title' => __('Additional tags for Head section AMP page', 'accelerated-mobile-pages'),
'subtitle' => __('Adds additional Meta to the head section', 'accelerated-mobile-pages', 'accelerated-mobile-pages'),
'desc' => __('Only link and meta tags allowed', 'accelerated-mobile-pages'),
'placeholder' => __('','accelerated-mobile-pages')
),
array(
'id' => 'ampforwp-yoast-seo-sub-section',
'type' => 'section',
'title' => __('Yoast SEO Options', 'accelerated-mobile-pages'),
'indent' => true
),
array(
'id' => 'ampforwp-seo-yoast-meta',
'type' => 'switch',
'subtitle' => __('Adds Social and Open Graph Meta Tags from Yoast', 'accelerated-mobile-pages'),
'title' => __( 'Meta Tags from Yoast', 'accelerated-mobile-pages' ),
'default' => '1'
),
array(
'id' => 'ampforwp-seo-yoast-description',
'type' => 'switch',
'subtitle' => __('Adds Yoast Custom description to ld+json for AMP page', 'accelerated-mobile-pages'),
'title' => __( 'Yoast Description in ld+json', 'accelerated-mobile-pages' ),
'default' => 0
),
array(
'id' => 'ampforwp-seo-index-noindex-sub-section',
'type' => 'section',
'title' => __('Advanced Index & No Index Options', 'accelerated-mobile-pages'),
'indent' => true
),
array(
'id' => 'ampforwp-robots-archive-sub-pages-sitewide',
'type' => 'switch',
'title' => __('Archive subpages (sitewide)', 'accelerated-mobile-pages'),
'desc' => __("Such as /page/2 so on and so forth",'accelerated-mobile-pages'),
'default' => 0,
'on' => 'index',
'off' => 'noindex'
),
array(
'id' => 'ampforwp-robots-archive-author-pages',
'type' => 'switch',
'title' => __('Author Archive pages', 'accelerated-mobile-pages'),
'default' => 1,
'on' => 'index',
'off' => 'noindex'
),
array(
'id' => 'ampforwp-robots-archive-date-pages',
'type' => 'switch',
'title' => __('Date Archive pages', 'accelerated-mobile-pages'),
'default' => 1,
'on' => 'index',
'off' => 'noindex'
),
array(
'id' => 'ampforwp-robots-archive-category-pages',
'type' => 'switch',
'title' => __('Categories', 'accelerated-mobile-pages'),
'default' => 1,
'on' => 'index',
'off' => 'noindex'
),
array(
'id' => 'ampforwp-robots-archive-tag-pages',
'type' => 'switch',
'title' => __('Tags', 'accelerated-mobile-pages'),
'default' => 1,
'on' => 'index',
'off' => 'noindex'
),
)
)
);
// AMP Menu SECTION
Redux::setSection( $opt_name, array(
'title' => __( 'Menu', 'accelerated-mobile-pages' ),
'desc' => __( 'Add Menus to your AMP pages by clicking on this link' , 'accelerated-mobile-pages'),
'id' => 'amp-menus',
'subsection' => true,
'fields' => array(
array(
'id' => 'ampforwp-auto-amp-menu-link',
'type' => 'switch',
'title' => __('Auto Add AMP in Menu URL', 'accelerated-mobile-pages'),
'subtitle' => __('Automatically add AMP at the end of menu url', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 0
),
)
)
) ;
$AD_URL = "http://ampforwp.com/advanced-amp-ads/#utm_source=options-panel&utm_medium=advertisement-tab&utm_campaign=AMP%20Plugin";
$desc = '';
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if(!is_plugin_active( 'amp-incontent-ads/amptoolkit-incontent-ads.php' ) ){
$desc = '
';
}
// ADS SECTION
Redux::setSection( $opt_name, array(
'title' => __( 'Advertisement', 'accelerated-mobile-pages' ),
'desc' => $desc,
'id' => 'amp-ads',
'subsection' => true,
'fields' => array(
// Ad 1 Starts
array(
'id' =>'enable-amp-ads-1',
'type' => 'switch',
'title' => __('AD #1', 'accelerated-mobile-pages'),
'default' => 0,
'subtitle' => __('Below the Header (SiteWide)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
),
array(
'id' => 'enable-amp-ads-select-1',
'type' => 'select',
'title' => __('AD Size', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-1', '=' , '1'),
// Must provide key => value pairs for select options
'options' => array(
'1' => __('300x250','accelerated-mobile-pages'),
'2' => __('336x280','accelerated-mobile-pages'),
'3' => __('728x90','accelerated-mobile-pages'),
'4' => __('300x600','accelerated-mobile-pages'),
'5' => __('320x100','accelerated-mobile-pages'),
'6' => __('200x50','accelerated-mobile-pages'),
'7' => __('320x50','accelerated-mobile-pages'), ),
'default' => '2',
),
array(
'id' =>'enable-amp-ads-text-feild-client-1',
'type' => 'text',
'required' => array('enable-amp-ads-1', '=' , '1'),
'title' => __('Data AD Client', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
),
array(
'id' => 'enable-amp-ads-text-feild-slot-1',
'type' => 'text',
'title' => __('Data AD Slot', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
'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', 'accelerated-mobile-pages'),
'default' => 0,
'subtitle' => __('Below the Footer (SiteWide)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
),
array(
'id' => 'enable-amp-ads-select-2',
'type' => 'select',
'title' => __('AD Size', 'accelerated-mobile-pages'),
'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', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
),
array(
'id' => 'enable-amp-ads-text-feild-slot-2',
'type' => 'text',
'title' => __('Data AD Slot', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
'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', 'accelerated-mobile-pages'),
'default' => 0,
'subtitle' => __('Above the Post Content (Single Post)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
),
array(
'id' => 'enable-amp-ads-select-3',
'type' => 'select',
'title' => __('AD Size', 'accelerated-mobile-pages'),
'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', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
),
array(
'id' => 'enable-amp-ads-text-feild-slot-3',
'type' => 'text',
'title' => __('Data AD Slot', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
'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', 'accelerated-mobile-pages'),
'default' => 0,
'subtitle' => __('Below the Post Content (Single Post)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
),
array(
'id' => 'enable-amp-ads-select-4',
'type' => 'select',
'title' => __('AD Size', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-4', '=' , '1'),
// Must provide key => value pairs for select options
'options' => array(
'1' => __('300x250','accelerated-mobile-pages'),
'2' => __('336x280','accelerated-mobile-pages'),
'3' => __('728x90','accelerated-mobile-pages'),
'4' => __('300x600','accelerated-mobile-pages'),
'5' => __('320x100','accelerated-mobile-pages'),
'6' => __('200x50','accelerated-mobile-pages'),
'7' => __('320x50','accelerated-mobile-pages')
),
'default' => '2',
),
array(
'id' =>'enable-amp-ads-text-feild-client-4',
'type' => 'text',
'required' => array('enable-amp-ads-4', '=' , '1'),
'title' => __('Data AD Client', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
),
array(
'id' => 'enable-amp-ads-text-feild-slot-4',
'type' => 'text',
'title' => __('Data AD Slot', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('enable-amp-ads-4', '=' , '1'),
'placeholder'=> '70XXXXXX12'
),
// Ad 4 ends
//Ad 5 Starts
array(
'id' => 'enable-amp-ads-5',
'type' => 'switch',
'title' => __('AD #5', 'accelerated-mobile-pages'),
'default' => 0,
'subtitle' => __('Below The Title (Single Post)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
),
array(
'id' => 'enable-amp-ads-select-5',
'type' => 'select',
'title' => __('AD Size', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-5', '=' , '1'),
// Must provide key => value pairs for select options
'options' => array(
'1' => __('300x250','accelerated-mobile-pages'),
'2' => __('336x280','accelerated-mobile-pages'),
'3' => __('728x90','accelerated-mobile-pages'),
'4' => __('300x600','accelerated-mobile-pages'),
'5' => __('320x100','accelerated-mobile-pages'),
'6' => __('200x50','accelerated-mobile-pages'),
'7' => __('320x50','accelerated-mobile-pages')
),
'default' => '2',
),
array(
'id' =>'enable-amp-ads-text-feild-client-5',
'type' => 'text',
'required' => array('enable-amp-ads-5', '=' , '1'),
'title' => __('Data AD Client', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
),
array(
'id' => 'enable-amp-ads-text-feild-slot-5',
'type' => 'text',
'title' => __('Data AD Slot', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('enable-amp-ads-5', '=' , '1'),
'placeholder'=> '70XXXXXX12'
),
//Ad 6 Starts
array(
'id' => 'enable-amp-ads-6',
'type' => 'switch',
'title' => __('AD #6', 'accelerated-mobile-pages'),
'default' => 0,
'subtitle' => __('Above the Related Posts (Single Post)', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
),
array(
'id' => 'enable-amp-ads-select-6',
'type' => 'select',
'title' => __('AD Size', 'accelerated-mobile-pages'),
'required' => array('enable-amp-ads-6', '=' , '1'),
// Must provide key => value pairs for select options
'options' => array(
'1' => __('300x250','accelerated-mobile-pages'),
'2' => __('336x280','accelerated-mobile-pages'),
'3' => __('728x90','accelerated-mobile-pages'),
'4' => __('300x600','accelerated-mobile-pages'),
'5' => __('320x100','accelerated-mobile-pages'),
'6' => __('200x50','accelerated-mobile-pages'),
'7' => __('320x50','accelerated-mobile-pages')
),
'default' => '2',
),
array(
'id' =>'enable-amp-ads-text-feild-client-6',
'type' => 'text',
'required' => array('enable-amp-ads-6', '=' , '1'),
'title' => __('Data AD Client', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
'default' => '',
'placeholder'=> 'ca-pub-2005XXXXXXXXX342'
),
array(
'id' => 'enable-amp-ads-text-feild-slot-6',
'type' => 'text',
'title' => __('Data AD Slot', 'accelerated-mobile-pages'),
'subtitle' => __('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
'default' => '',
'required' => array('enable-amp-ads-6', '=' , '1'),
'placeholder'=> '70XXXXXX12'
)
),
) );
// Single Section
Redux::setSection( $opt_name, array(
'title' => __( 'Single', 'accelerated-mobile-pages' ),
// 'desc' => __( 'Additional Options to control the look of Single Click here ', 'accelerated-mobile-pages' ),
'id' => 'amp-single',
'subsection' => true,
'fields' => array(
// Social Icons ON/OFF
array(
'id' => 'enable-single-social-icons',
'type' => 'switch',
'title' => __('Sticky Social Icons', 'accelerated-mobile-pages'),
'default' => 1,
'subtitle' => __('Enable Social Icons in single', 'accelerated-mobile-pages'),
),
//deselectable next previous links
array(
'id' => 'enable-single-next-prev',
'type' => 'switch',
'title' => __('Next-Previous Links', 'accelerated-mobile-pages'),
'default' => 1,
'subtitle' => __('Enable Next-Previous links in single', 'accelerated-mobile-pages'),
),
// Post Modified Date
array(
'id' => 'post-modified-date',
'type' => 'switch',
'title' => __('Show Post Modified Date', 'accelerated-mobile-pages'),
'default' => 0,
'subtitle' => __('Show Modified date of an article at the end of the post.', 'accelerated-mobile-pages'),
),
// Related Post
array(
'id' => 'ampforwp-single-select-type-of-related',
'type' => 'select',
'title' => __('Show Related Post from', 'accelerated-mobile-pages'),
'data' => 'page',
'subtitle' => __('select the type of related posts', 'accelerated-mobile-pages'),
'options' => array(
'1' => 'Tags',
'2' => 'Categories'
),
'default' => '2',
),
array(
'id' => 'ampforwp-number-of-related-posts',
'type' => 'text',
'title' => __('Number of Related Post', 'accelerated-mobile-pages'),
'subtitle' => __('Type the number of related posts you need, Eg : 2', 'accelerated-mobile-pages'),
'validate' => 'numeric',
'default' => '3',
),
// array(
// 'id' => 'ampforwp-comments-banner',
// 'type' => 'select',
// 'desc' => $comment_desc,
// 'title' => __(' df', 'accelerated-mobile-pages'),
// 'class' => 'new-class',
//
// // 'desc' => '
',
// ),
//
$fields = array(
'id' => 'info_normal',
'type' => 'info',
'class' => 'extension_banner_bg',
'desc' => $single_extension_listing )
),
) );
// Social Section
Redux::setSection( $opt_name, array(
'title' => __( 'Social Share', 'accelerated-mobile-pages' ),
'id' => 'amp-social',
'desc' => __('enable social share and your social profiels here','accelerated-mobile-pages'),
'subsection' => true,
'fields' => array(
// Facebook ON/OFF
array(
'id' => 'enable-single-facebook-share',
'type' => 'switch',
//'required' => array('enable-single-social-icons', '=' , '1'),
'title' => __('Facebook', 'accelerated-mobile-pages'),
'default' => 0,
),
// Facebook app ID
array(
'id' => 'amp-facebook-app-id',
'title' => __('Facebook App ID', 'accelerated-mobile-pages'),
'subtitle' => __('In order to use Facebook share you need to register an app ID, you can register one here: https://developers.facebook.com/apps.', 'accelerated-mobile-pages'),
'type' => 'text',
'required' => array('enable-single-facebook-share', '=' , '1'),
'placeholder' => __('Enter your facebook app id','accelerated-mobile-pages'),
'default' => ''
),
// Twitter ON/OFF
array(
'id' => 'enable-single-twitter-share',
'type' => 'switch',
'title' => __('Twitter', 'accelerated-mobile-pages'),
'default' => 1,
),
array(
'id' => 'enable-single-twitter-share-handle',
'type' => 'text',
'title' => __('Twitter Handle', 'accelerated-mobile-pages'),
'required' => array('enable-single-twitter-share', '=' , '1'),
'placeholder' => __('Eg: @xyx','accelerated-mobile-pages'),
'default' => '',
),
// GooglePlus ON/OFF
array(
'id' => 'enable-single-gplus-share',
'type' => 'switch',
'title' => __('GooglePlus', 'accelerated-mobile-pages'),
'default' => 1,
),
// Email ON/OFF
array(
'id' => 'enable-single-email-share',
'type' => 'switch',
'title' => __('Email', 'accelerated-mobile-pages'),
'default' => 1,
),
// Pinterest ON/OFF
array(
'id' => 'enable-single-pinterest-share',
'type' => 'switch',
'title' => __('Pinterest', 'accelerated-mobile-pages'),
'default' => 1,
),
// LinkedIn ON/OFF
array(
'id' => 'enable-single-linkedin-share',
'type' => 'switch',
'title' => __('LinkedIn', 'accelerated-mobile-pages'),
'default' => 1,
),
// WhatsApp
array(
'id' => 'enable-single-whatsapp-share',
'type' => 'switch',
'title' => __('WhatsApp', 'accelerated-mobile-pages'),
'default' => 1,
),
array(
'id' => 'social-media-profiles-subsection',
'type' => 'section',
'title' => __('Social Media Profiles (Design #3)', 'accelerated-mobile-pages'),
'subtitle' => __('Please enter your personal/organizational social media profiles here', 'accelerated-mobile-pages'),
'indent' => true,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
//#1
array(
'id' => 'enable-single-twittter-profile',
'type' => 'switch',
'title' => __('Twittter ', 'accelerated-mobile-pages'),
'default' => 1,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-twittter-profile-url',
'type' => 'text',
'title' => __('Twittter URL', 'accelerated-mobile-pages'),
'default' => '#',
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-twittter-profile', '=' , '1')
),
),
//#2
array(
'id' => 'enable-single-facebook-profile',
'type' => 'switch',
'title' => __('Facebook ', 'accelerated-mobile-pages'),
'default' => 1,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-facebook-profile-url',
'type' => 'text',
'title' => __('Facebook URL', 'accelerated-mobile-pages'),
'default' => '#',
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-facebook-profile', '=' , '1')
),
),
//#3
array(
'id' => 'enable-single-pintrest-profile',
'type' => 'switch',
'title' => __('Pintrest ', 'accelerated-mobile-pages'),
'default' => 1,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-pintrest-profile-url',
'type' => 'text',
'title' => __('Pintrest URL', 'accelerated-mobile-pages'),
'default' => '#',
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-pintrest-profile', '=' , '1')
),
),
//#4
array(
'id' => 'enable-single-google-plus-profile',
'type' => 'switch',
'title' => __('Google Plus ', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-google-plus-profile-url',
'type' => 'text',
'title' => __('Google Plus URL', 'accelerated-mobile-pages'),
'default' => '',
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-google-plus-profile', '=' , '1')
),
),
//#5
array(
'id' => 'enable-single-linkdin-profile',
'type' => 'switch',
'title' => __('Linkdin ', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-linkdin-profile-url',
'type' => 'text',
'title' => __('Linkdin URL', 'accelerated-mobile-pages'),
'default' => '',
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-linkdin-profile', '=' , '1')
),
),
//#6
array(
'id' => 'enable-single-youtube-profile',
'type' => 'switch',
'title' => __('Youtube ', 'accelerated-mobile-pages'),
'default' => 1,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-youtube-profile-url',
'type' => 'text',
'default' => '#',
'title' => __('Youtube URL', 'accelerated-mobile-pages'),
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-youtube-profile', '=' , '1')
),
),
//#7
array(
'id' => 'enable-single-instagram-profile',
'type' => 'switch',
'title' => __('Instagram ', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-instagram-profile-url',
'type' => 'text',
'default' => '',
'title' => __('Instagram URL', 'accelerated-mobile-pages'),
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-instagram-profile', '=' , '1')
),
),
//#8
array(
'id' => 'enable-single-VKontakte-profile',
'type' => 'switch',
'title' => __('VKontakte ', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-VKontakte-profile-url',
'type' => 'text',
'default' => '',
'title' => __('VKontakte URL', 'accelerated-mobile-pages'),
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-VKontakte-profile', '=' , '1')
),
),
//#9
//removed whatsapp
//#10
array(
'id' => 'enable-single-reddit-profile',
'type' => 'switch',
'title' => __('Reddit', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-reddit-profile-url',
'type' => 'text',
'title' => __('Reddit URL', 'accelerated-mobile-pages'),
'default' => '',
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-reddit-profile', '=' , '1')
),
),
//#11
array(
'id' => 'enable-single-snapchat-profile',
'type' => 'switch',
'title' => __('Snapchat ', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-snapchat-profile-url',
'type' => 'text',
'title' => __('Snapchat URL', 'accelerated-mobile-pages'),
'default' => '',
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-snapchat-profile', '=' , '1')
),
),
//#12
array(
'id' => 'enable-single-Tumblr-profile',
'type' => 'switch',
'title' => __('Tumblr', 'accelerated-mobile-pages'),
'default' => 0,
'required' => array(
array('amp-design-selector', '=' , '3')
),
),
array(
'id' => 'enable-single-Tumblr-profile-url',
'type' => 'text',
'title' => __('Tumblr URL', 'accelerated-mobile-pages'),
'default' => '',
'required' => array(
array('amp-design-selector', '=' , '3'),
array('enable-single-Tumblr-profile', '=' , '1')
),
),
)
) );
// Structured Data
Redux::setSection( $opt_name, array(
'title' => __( 'Structured Data', 'accelerated-mobile-pages' ),
'id' => 'opt-structured-data',
'subsection' => true,
'fields' => array(
array(
'id' => 'amp-structured-data-logo',
'type' => 'media',
'url' => true,
'title' => __('Default Structured Data Logo', 'accelerated-mobile-pages'),
'subtitle' => __('Upload the logo you want to show in Google Structured Data. ', 'accelerated-mobile-pages'),
),
array(
'id' => 'amp-structured-data-placeholder-image',
'type' => 'media',
'url' => true,
'title' => __('Default Post Image', 'accelerated-mobile-pages'),
'subtitle' => __('Upload the Image you want to show as Placeholder Image.', 'accelerated-mobile-pages'),
'placeholder' => __('when there is no featured image set in the post','accelerated-mobile-pages'),
),
array(
'id' => 'amp-structured-data-placeholder-image-width',
'title' => __('Default Post Image Width', 'accelerated-mobile-pages'),
'type' => 'text',
'placeholder' => '550',
'subtitle' => __('Please don\'t add "PX" in the image size.','accelerated-mobile-pages'),
'default' => '700'
),
array(
'id' => 'amp-structured-data-placeholder-image-height',
'title' => __('Default Post Image Height', 'accelerated-mobile-pages'),
'type' => 'text',
'placeholder' => '350',
'subtitle' => __('Please don\'t add "PX" in the image size.','accelerated-mobile-pages'),
'default' => '550'
),
)
) );
// Notifications SECTION
Redux::setSection( $opt_name, array(
'title' => __( 'Notifications', 'accelerated-mobile-pages' ),
'desc' => $cta_desc ,
'id' => 'amp-notifications',
'subsection' => true,
'fields' => array(
array(
'id' =>'amp-enable-notifications',
'type' => 'switch',
'title' => __('Enable Notifications', 'accelerated-mobile-pages'),
'default' => '',
'subtitle' => __('Show notifications on all of your AMP pages for cookie purposes, or anything else.', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
),
array(
'id' => 'amp-notification-text',
'title' => __('Notification text', 'accelerated-mobile-pages'),
'type' => 'text',
'required' => array('amp-enable-notifications', '=' , '1'),
'default' => __('This website uses cookies.','accelerated-mobile-pages'),
'placeholder' => __('Enter Text here','accelerated-mobile-pages'),
),
array(
'id' => 'amp-accept-button-text',
'title' => __('Notification accept button text', 'accelerated-mobile-pages'),
'type' => 'text',
'required' => array('amp-enable-notifications', '=' , '1'),
'default' => __('Accept','accelerated-mobile-pages'),
'placeholder' => __('Enter Text here','accelerated-mobile-pages'),
),
),
) );
// Translation Panel
Redux::setSection( $opt_name, array(
'title' => __( 'Translation Panel', 'accelerated-mobile-pages' ),
'desc' => __( 'Please translate the following words of page accordingly else default content is in English Language', 'accelerated-mobile-pages' ),
'id' => 'amp-translator',
'subsection' => true,
'fields' => array(
array(
'id' => 'amp-use-pot',
'type' => 'switch',
'title' => __('Use POT file method of Translation', 'accelerated-mobile-pages'),
'subtitle' => __('Else you can use normal translation method', 'accelerated-mobile-pages'),
'desc' => __('Use this if you want Multilingual Translations', 'accelerated-mobile-pages'),
'default' => 0
),
array(
'id' => 'amp-translator-show-more-posts-text',
'type' => 'text',
'title' => __('Show more Posts', 'accelerated-mobile-pages'),
'default' => __('Show more Posts','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-show-previous-posts-text',
'type' => 'text',
'title' => __('Show previous Posts', 'accelerated-mobile-pages'),
'default' => __('Show previous Posts','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-top-text',
'type' => 'text',
'title' => __('Top', 'accelerated-mobile-pages'),
'default' => __('Top','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-non-amp-page-text',
'type' => 'text',
'title' => __('View Non-AMP Version', 'accelerated-mobile-pages'),
'default' => __('View Non-AMP Version','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-related-text',
'type' => 'text',
'title' => __('Related Post', 'accelerated-mobile-pages'),
'default' => __('Related Post','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-navigate-text',
'type' => 'text',
'title' => __('Navigate', 'accelerated-mobile-pages'),
'default' => __('Navigate','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-on-text',
'type' => 'text',
'title' => __('On', 'accelerated-mobile-pages'),
'default' => __('On','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-next-text',
'type' => 'text',
'title' => __('Next', 'accelerated-mobile-pages'),
'default' => __('Next','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-previous-text',
'type' => 'text',
'title' => __('Previous', 'accelerated-mobile-pages'),
'default' => __('Previous','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-footer-text',
'type' => 'textarea',
'title' => __('Footer', 'accelerated-mobile-pages'),
'default' => __('All Rights Reserved','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-categories-text',
'type' => 'text',
'title' => __('Categories', 'accelerated-mobile-pages'),
'default' => __('Categories: ','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-tags-text',
'type' => 'text',
'title' => __('Tags', 'accelerated-mobile-pages'),
'default' => __('Tags: ','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-by-text',
'type' => 'text',
'title' => __('By', 'accelerated-mobile-pages'),
'default' => __('By','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-published-by',
'type' => 'text',
'title' => __('Published by', 'accelerated-mobile-pages'),
'default' => __('Published by','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-in-designthree',
'type' => 'text',
'title' => __('in', 'accelerated-mobile-pages'),
'default' =>__( 'in','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-view-comments-text',
'type' => 'text',
'title' => __('View Comments', 'accelerated-mobile-pages'),
'default' => __('View Comments','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-leave-a-comment-text',
'type' => 'text',
'title' => __('Leave a Comment', 'accelerated-mobile-pages'),
'default' => __('Leave a Comment','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-at-text',
'type' => 'text',
'title' => __('at', 'accelerated-mobile-pages'),
'default' => __('at','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-says-text',
'type' => 'text',
'title' => __('says', 'accelerated-mobile-pages'),
'default' =>__( 'says','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-Edit-text',
'type' => 'text',
'title' => __('Edit', 'accelerated-mobile-pages'),
'default' => __('Edit','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-ago-date-text',
'type' => 'text',
'title' => __('ago', 'accelerated-mobile-pages'),
'default' => __('ago','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-modified-date-text',
'type' => 'text',
'title' => __('This post was last modified on ', 'accelerated-mobile-pages'),
'default' => __('This post was last modified on ','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-archive-cat-text',
'type' => 'text',
'title' => __('Category (archive title)', 'accelerated-mobile-pages'),
'default' => __('Category: ','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-archive-tag-text',
'type' => 'text',
'title' => __('Tag (archive title)', 'accelerated-mobile-pages'),
'default' => __('Tag: ','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-show-more-text',
'type' => 'text',
'title' => __('View More Posts (Widget Button)', 'accelerated-mobile-pages'),
'default' => __('View More Posts','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-next-read-text',
'type' => 'text',
'title' => __('Next Read', 'accelerated-mobile-pages'),
'default' => __('Next Read: ','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-search-text',
'type' => 'text',
'title' => __(' You searched for: ', 'accelerated-mobile-pages'),
'default' => __(' You searched for: ','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'amp-translator-search-no-found',
'type' => 'text',
'title' => __(' It seems we can\'t find what you\'re looking for. ', 'accelerated-mobile-pages'),
'default' => __(' It seems we can\'t find what you\'re looking for. ','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'design-3-search-subsection',
'type' => 'section',
'title' => __('Search bar Translation Text', 'accelerated-mobile-pages'),
'indent' => true,
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'ampforwp-search-placeholder',
'type' => 'text',
'title' => __('Type Here', 'accelerated-mobile-pages'),
'default' => 'Type Here','accelerated-mobile-pages'),
'desc' => __('This is the text that gets shown in for Search Box','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
),
array(
'id' => 'ampforwp-search-label',
'type' => 'text',
'title' => __('Type your search query and hit enter', 'accelerated-mobile-pages'),
'desc' => __('This is the text that gets shown above Search Box','accelerated-mobile-pages'),
'default' => __('Type your search query and hit enter: ','accelerated-mobile-pages'),
'placeholder'=>__('write here','accelerated-mobile-pages'),
'required' => array( 'amp-use-pot', '=' , 0 )
)
) );
// // CSS
// Redux::setSection( $opt_name, array(
// 'title' => __( 'Custom CSS Editor', 'accelerated-mobile-pages' ),
// // 'desc' => __( 'For full documentation on this field, visit: ', 'accelerated-mobile-pages' ) . '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', 'accelerated-mobile-pages'),
// 'subtitle' => __('You can customize the Stylesheet of the AMP version by using this option.', 'accelerated-mobile-pages'),
// 'mode' => 'css',
// 'theme' => 'monokai',
// 'desc' => '',
// 'default' => "/******* Paste your Custom CSS in this Editor *******/"
// ),
// )
// ) );
//
// Comments
Redux::setSection( $opt_name, array(
'title' => __( 'Comments', 'accelerated-mobile-pages' ),
'desc' => $comment_desc,
'id' => 'disqus-comments',
'subsection' => true,
'fields' => array(
array(
'id' => 'ampforwp-disqus-comments-support',
'type' => 'switch',
'title' => __('Disqus comments Support', 'accelerated-mobile-pages'),
'subtitle' => __('Enable/Disable Disqus comments using this switch.', 'accelerated-mobile-pages'),
'default' => 0
),
array(
'id' => 'ampforwp-disqus-comments-name',
'type' => 'text',
'title' => __('Disqus Name', 'accelerated-mobile-pages'),
'subtitle' => __('Eg: https://xyz.disqus.com', 'accelerated-mobile-pages'),
'required' => array('ampforwp-disqus-comments-support', '=' , '1'),
'default' => ''
),
array(
'id' => 'ampforwp-disqus-host-position',
'type' => 'switch',
'title' => __('Host Disqus Comments through AMPforWP Servers', 'accelerated-mobile-pages'),
'subtitle' => __('Use AMPforWP secure servers to serve Comments file. Recommended if your site is non HTTPS', 'accelerated-mobile-pages'),
'default' => 1,
'required' => array('ampforwp-disqus-comments-support', '=' , '1'),
),
array(
'id' => 'ampforwp-disqus-host-file',
'type' => 'text',
'title' => __('Disqus Host File', 'accelerated-mobile-pages'),
'subtitle' => __(' Click here to know, How to Setup Disqus Host file on your servers ', 'accelerated-mobile-pages'),
'placeholder' => 'https://comments.example.com/disqus.php',
'required' => array('ampforwp-disqus-host-position', '=' , '0'),
),
array(
'id' => 'ampforwp-number-of-comments',
'type' => 'text',
'desc' => __('This refers to the normal comments','accelerated-mobile-pages'),
'title' => __('No of Comments', 'accelerated-mobile-pages'),
'default' => 10,
'required' => array('ampforwp-disqus-comments-support' , '=' , 0)
),
)
) );
// Advance Settings SECTION
Redux::setSection( $opt_name, array(
'title' => __( 'Advance Settings', 'accelerated-mobile-pages' ),
'desc' => __( 'This section has Advance settings','accelerated-mobile-pages'),
'id' => 'amp-advance',
'subsection' => true,
'fields' => array(
/* array(
'id' => 'ampforwp-homepage-on-off-support',
'type' => 'switch',
'title' => __('Homepage Support', 'accelerated-mobile-pages'),
'subtitle' => __('Enable/Disable Home page using this switch.', 'accelerated-mobile-pages'),
'default' => '1'
),*/
array(
'id' => 'ampforwp-archive-support',
'type' => 'switch',
'title' => __('Archive page Support', 'accelerated-mobile-pages'),
'subtitle' => __('Enable/Disable Archive pages using this switch.', 'accelerated-mobile-pages'),
'default' => '0'
),
array(
'id' => 'amp-mobile-redirection',
'type' => 'switch',
'title' => __('Mobile Redirection', 'accelerated-mobile-pages'),
'subtitle' => __('
Enable AMP for your mobile users. Give your visitors a Faster mobile User Experience.','accelerated-mobile-pages'),
'default' => 0,
),
array(
'id' =>'amp-rtl-select-option',
'type' => 'switch',
'title' => __('RTL Support', 'accelerated-mobile-pages'),
'default' => 0,
'subtitle' => __('Enable Right to Left language support', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
),
array(
'id' => 'amp-footer-link-non-amp-page',
'type' => 'switch',
'title' => __('Link to Non-AMP page in Footer', 'accelerated-mobile-pages'),
'subtitle' => __('Enable / Disable Link to Non-AMP page in the footer', 'accelerated-mobile-pages'),
'true' => 'true',
'false' => 'false',
'default' => 1
),
array(
'id' => 'amp-header-text-area-for-html',
'type' => 'textarea',
'title' => __('Enter HTML in Header', 'accelerated-mobile-pages'),
'subtitle' => __('please enter markup that is AMP validated', 'accelerated-mobile-pages'),
'desc' => __('check your markup here (enter markup between HEAD tag) : https://validator.ampproject.org/', 'accelerated-mobile-pages'),
'default' => ''
),
array(
'id' => 'amp-footer-text-area-for-html',
'type' => 'textarea',
'title' => __('Enter HTML in Footer', 'accelerated-mobile-pages'),
'subtitle' => __('please enter markup that is AMP validated', 'accelerated-mobile-pages'),
'desc' => __('check your markup here (enter markup between BODY tag) : https://validator.ampproject.org/',
'accelerated-mobile-pages'),
'default' => ''
),
),
) );
// Extension Section
Redux::setSection( $opt_name, array(
'title' => __( 'Extensions', 'accelerated-mobile-pages' ),
// 'desc' => __( 'For full documentation on this field, visit: ', 'accelerated-mobile-pages' ) . 'http://docs.reduxframework.com/core/fields/textarea/',
'id' => 'opt-go-premium',
'subsection' => false,
'desc' => $extension_listing,
// 'desc' => '
//
//
//
//
//
//
//
//
//
',
// 'icon' => 'el el-puzzle',
) );
// Priority Support
Redux::setSection( $opt_name, array(
'title' => __( 'Fix AMP Errors', 'accelerated-mobile-pages' ),
// 'desc' => __( 'For full documentation on this field, visit: ', 'accelerated-mobile-pages' ) . 'http://docs.reduxframework.com/core/fields/textarea/',
'id' => 'opt-go-premium-support',
'subsection' => false,
'desc' => '
',
'icon' => 'el el-hand-right',
) );
/*
* <--- END SECTIONS
*/