'.esc_html__('Go to WP QUADS Settings', 'accelerated-mobile-pages').' ';
}else{
$quads_download = '
'.(!is_plugin_active('ads-for-wp/ads-for-wp.php')? esc_html__('A Revolutionary new Ad plugin from our team which is dedicated to make the #1 Ad solution in the world.','accelerated-mobile-pages'): esc_html__('Thank you for upgrading the Ads for WP','accelerated-mobile-pages')).'
'.(!is_plugin_active('ads-for-wp/ads-for-wp.php')? '
'. esc_html__('Add Unlimited Incontent Ads','accelerated-mobile-pages') .'
'. esc_html__('Group Ads','accelerated-mobile-pages') .'
'. esc_html__('Display type','accelerated-mobile-pages') .'
' : '')
.'
'
);
if ( !is_plugin_active('ads-for-wp/ads-for-wp.php') ) {
$fields[] = array(
'id' => 'amp-ads_2',
'type' => 'section',
'title' => esc_html__('Ad Performance', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
);
$fields[] = array(
'id' =>'ampforwp-ads-data-loading-strategy',
'type' => 'switch',
'title' => esc_html__('Optimize For Viewability', 'accelerated-mobile-pages'),
'default' => 0,
'tooltip-subtitle' => esc_html__('This will increase the loading speed of the Ads', 'accelerated-mobile-pages'),
'true' => 'Enabled',
'false' => 'Disabled',
);
$fields[] = array(
'id' => 'amp-ads_3',
'type' => 'section',
'title' => esc_html__('General', 'accelerated-mobile-pages'),
'indent' => true,
'layout_type' => 'accordion',
'accordion-open'=> 1,
);
$fields[] = array(
'id' =>'ampforwp-ads-sponsorship',
'type' => 'switch',
'title' => esc_html__('Sponsorship Label', 'accelerated-mobile-pages'),
'default' => 0,
'true' => 'Enabled',
'false' => 'Disabled',
);
$fields[] = array(
'id' =>'ampforwp-ads-sponsorship-label',
'type' => 'text',
'required' => array('ampforwp-ads-sponsorship', '=' , '1'),
'title' => esc_html__('Sponsorship Label Text', 'accelerated-mobile-pages'),
'class' => 'child_opt child_opt_arrow',
'default' => '',
'placeholder'=> 'Sponsored'
);
$fields[] = array(
'id' => 'ampforwp-ads-sponsorship-position',
'class' => 'child_opt child_opt_arrow',
'type' => 'select',
'title' => esc_html__( 'Position', 'accelerated-mobile-pages' ),
'tooltip-subtitle' => esc_html__( 'Select Sponsorship Position you want to show.', 'accelerated-mobile-pages' ),
'options' => array(
'1' => 'Above the Ads',
'2' => 'Below the Ads',
),
'default' => '2',
'required' => array('ampforwp-ads-sponsorship','=','1'),
);
}
return $fields;
}