: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
array('amp-design-selector', '=' , '3'),
array('enable-single-telegram-profile', '=' , '1')
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Date', 'accelerated-mobile-pages' ),
'id' => 'ampforwp-date-section',
'title' => esc_html__('General', 'accelerated-mobile-pages'),
'layout_type' => 'accordion',
// Date on Single Design 3
'id' => 'amp-design-3-date-feature',
'title' => esc_html__( 'Date in Posts', 'accelerated-mobile-pages' ),
array('amp-design-selector', '=' , '3')
'tooltip-subtitle' => esc_html__('Display date along with author and category in posts', 'accelerated-mobile-pages' ),
'id' => 'ampforwp-post-date-global',
'title' => esc_html__( 'Show Date As', 'accelerated-mobile-pages' ),
'id' =>'ampforwp-post-date-format',
'title' =>esc_html__('Date Format','accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Select the Date Format of Posts', 'accelerated-mobile-pages'),
'2' => 'Traditional view'
'id' =>'ampforwp-post-date-format-text',
'title' =>esc_html__('Text for the Date Format','accelerated-mobile-pages'),
'desc' =>esc_html__('Example: English - % days ago, Spain - ago % days','accelerated-mobile-pages'),
'required' => array( array('ampforwp-post-date-format', '=', '1') ),
'default' =>'% days ago',
'id' =>'ampforwp-post-time',
'title' => esc_html__('Time','accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable or Disable Time In Posts', 'accelerated-mobile-pages'),
'required' => array( array('ampforwp-post-date-format', '=', '2') ),
'id' => 'post-modified-date',
'title' => esc_html__('Date Notice', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Show Modified date of an article at the end of the post.', 'accelerated-mobile-pages'),
'id' =>'ampforwp-post-date-notice-type',
'class' => 'child_opt child_opt_arrow',
'title' =>esc_html__('Notice Type','accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Select Date Format of Posts', 'accelerated-mobile-pages'),
'modified' => 'Modified Date Notice',
'published' => 'Published Date Notice'
'required' => array( array('post-modified-date', '=', '1') ),
'id' => 'ampforwp-post-date-notice-time',
'class' => 'child_opt child_opt_arrow',
'title' => esc_html__('Time', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Show Modified date of an article at the end of the post.', 'accelerated-mobile-pages'),
'required' => array( array('ampforwp-post-date-notice-type', '!=', ''),array('post-modified-date', '=', '1') ),
if ( 4 == ampforwp_get_setting('amp-design-selector')) {
$post_builder = '<br /><a href="' . esc_url(admin_url('customize.php?autofocus[section]=amp_design&customize_amp=1')) .'" target="_blank"><img class="ampforwp-post-builder-img" src="'.AMPFORWP_IMAGE_DIR . '/amp-post-builder.png" width="489" height="72" /></a>';
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Misc', 'accelerated-mobile-pages' ),
'title' => esc_html__('General', 'accelerated-mobile-pages'),
'layout_type' => 'accordion',
'id' =>'amp-rtl-select-option',
'title' => esc_html__('RTL Support', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Enable Right to Left language support', 'accelerated-mobile-pages'),
'id' => 'ampforwp-sub-categories-support',
'title' => esc_html__('Sub-Categories under Category', 'accelerated-mobile-pages'),
'tooltip-subtitle' => esc_html__('Display sub-categories on category pages', 'accelerated-mobile-pages'),
$selectedOption = get_option('redux_builder_amp',true);
if (isset($selectedOption['amp-license']) && $selectedOption['amp-license']) {
$value = is_array($selectedOption['amp-license'])? array_values($selectedOption['amp-license']): array();
if (empty($value[0]["license"]) && ampforwp_check_extensions()){
$selected = '<span class="exclamation">!</span>';
Redux::setSection( $opt_name, array(
'title' => __( "Extensions$selected" , 'accelerated-mobile-pages' ),
'id' => 'opt-go-premium',
'desc' => $extension_listing,
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Extensions', 'accelerated-mobile-pages' ),
'id' => 'opt-go-premium',
'desc' => $extension_listing,
'icon' => 'el el-puzzle',
if(!ampforwp_check_extensions()){
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Upgrade to Pro', 'accelerated-mobile-pages' ),
'desc' => $freepro_listing,
'icon' => 'el el-download',
if(function_exists('ampforwp_plugin_supporter_activator')){
if(!function_exists('ampforwp_create_controls_for_plugin_manager')){
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Plugins Manager', 'accelerated-mobile-pages' ),
'id' => 'opt-plugins-manager',
'desc' => sprintf('%s <a href="http://ampforwp.com/plugins-manager" target="_blank"> %s</a>',
esc_html__('You can Disable Plugins only in AMP which are causing AMP validation errors.','accelerated-mobile-pages'),
esc_html__('More Information.','accelerated-mobile-pages')
'id' => 'ampforwp-plugin-manager-core',
'title' => esc_html__('Enable Plugin Manager', 'accelerated-mobile-pages'),
'required' => array('ampforwp-plugin-manager-core', '=' , '1'),
'desc' =>sprintf('<div style="background: #FFF9C4;padding: 12px;line-height: 1.6;margin:-45px -14px -18px -17px;"><b>%s</b> %s <a href="https://ampforwp.com/plugins-manager" target="_blank">%s</a>.<br /><div style="margin-top:4px;">(<a href="https://ampforwp.com/plugins-manager" target="_blank">%s</a>)</div></div>',
esc_html__('ONE LAST STEP REQUIRED:','accelerated-mobile-pages'),
esc_html__('This feature requires','accelerated-mobile-pages'),
esc_html__('AMP Plugin Manager','accelerated-mobile-pages'),
esc_html__('Click here for more info','accelerated-mobile-pages')
Redux::setExtensions( $opt_name, AMPFORWP_PLUGIN_DIR.'includes/options/extensions/demolink_image_select' );
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Documentation', 'accelerated-mobile-pages' ),
'desc' => '<div class="fp-cnt doc-cnt"><h1>'.esc_html__('Documentation','accelerated-mobile-pages').'</h1><p>'.esc_html__('Without documentation, software is just a black box that aren’t anywhere near as useful as they could be because their inner workings are hidden from those who need them. Documentation turns your software into a glass box by explaining to users as well as developers how it operates.','accelerated-mobile-pages').'</p><a class="buy" href="https://ampforwp.com/tutorials/" target="_blank">'.esc_html__('View Documentation','accelerated-mobile-pages').'</a></div>',