Version Description
(19th July 2019) = * Improvements: Option to remove date from Homepage and also in Recent posts #3363 * Improvements: Option for amp-youtube Embed video attributes in row module of AMP Pagebuilder #3373 * Improvements: Menu sidebar background and elements color changing option for Design 1, 2 #3402 * Improvements: MGID Ad support in AMP FOR WP #3431 * Improvements: Sizes of featured image option for single 1 #3433 * Improvements: Addthis floating share button feature in amp #3424 * Improvements: Wistia Plugin Compatibility integrated #3386 * Improvements: Squirrly SEO Compatibility integrated #3421 * Improvements: image-slider compatibility added in AMP sanitizer #3422 * Improvements: Compatability issue with ShortPixel Image Optimizer #3439 * Improvements: Improve the Search form (Sidebar) design #3425 * Improvements: AMP footer widget in design three #3411 * Improvements: Extension list added for AMP Email Extension #3144 * Improvements: Extension list added for Pinterest for AMP Extension #3195 * Improvements: Extension list added for Liveblog For AMP Extension #3194 * Fixed: Close menu button is not showing when a user comes from Google search #3401 * Fixed: When High-resolution Images option is enabled images link should be generated from higher-order to lower-order in schema markup #3442 * Fixed: Sticky Social Icons setting should be moved to Social Tab and some changes #3426 * Fixed: Fall back the header type code in the backend if a user has not selected any header type #3419 * Fixed: Revolution Slider not working perfectly when a user is inserting video #3311 * Fixed: Call to action option should be automatically enabled if the user selected header type-2 #3420 * Fixed: Double quotes on the author area #3441 * Fixed: Twitter URL is displaying instead of an icon when Zox news theme is active #3409 * Fixed: Extension code array issue #3438 * Fixed: Validation error due to amp-facebook-like #3427 * Fixed: Fatal error cannot redeclare is_amp_endpoint() (previously declared) #3415 * Fixed: Sticky Social Icons and cookies banner style issue #3452 * Fixed: Validation error the extension 'amp-next-page' was found on this page, but is unused please remove this extension #3463 * Fixed: gallery/slider module is not working when Convert AMP to WP theme (Beta) option is enabled #2771
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.9.98 |
Comparing to | |
See all releases |
Code changes from version 0.9.97.65 to 0.9.98
- README.md +32 -1
- accelerated-moblie-pages.php +5 -3
- changelog.txt +31 -0
- classes/class-ampforwp-rev-slider.php +60 -17
- components/components-core.php +23 -4
- images/amp-icon.png +0 -0
- includes/features/advertisement/ads-functions.php +30 -18
- includes/features/advertisement/ads-options.php +642 -24
- includes/features/advertisement/mgid-ads-functions.php +181 -0
- includes/features/functions.php +142 -2
- includes/features/structure-data/structured-data-functions.php +1 -1
- includes/options/admin-config.php +679 -75
- includes/thirdparty-compatibility.php +21 -1
- includes/vendor/amp/includes/amp-post-template-actions.php +1 -1
- includes/vendor/amp/includes/class-amp-content.php +2 -0
- includes/vendor/amp/includes/embeds/class-amp-wistia-embed.php +1 -1
- includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php +40 -0
- includes/vendor/vendor-changelog.txt +4 -1
- pagebuilder/config/moduleTemplate.php +340 -55
- pagebuilder/inc/admin-amp-page-builder.js +18 -5
- pagebuilder/inc/viewShowFrontData.php +1 -1
- readme.txt +32 -27
- templates/design-manager/design-1/elements/meta-taxonomy.php +3 -3
- templates/design-manager/design-1/elements/social-icons.php +1 -1
- templates/design-manager/design-1/footer.php +16 -1
- templates/design-manager/design-1/style.php +163 -36
- templates/design-manager/design-2/elements/meta-taxonomy.php +3 -3
- templates/design-manager/design-2/elements/social-icons.php +1 -1
- templates/design-manager/design-2/footer.php +14 -0
- templates/design-manager/design-2/style.php +152 -41
- templates/design-manager/design-3/elements/meta-taxonomy.php +2 -2
- templates/design-manager/design-3/elements/social-icons.php +1 -1
- templates/design-manager/design-3/footer.php +15 -1
- templates/design-manager/design-3/style.php +103 -8
- templates/design-manager/swift/header.php +9 -3
- templates/design-manager/swift/index.php +7 -2
- templates/design-manager/swift/loop.php +2 -1
- templates/design-manager/swift/single.php +21 -8
- templates/design-manager/swift/style.php +77 -9
- templates/features.php +44 -23
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.2.2
|
7 |
-
Stable tag: 0.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -188,6 +188,37 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
188 |
|
189 |
== Changelog ==
|
190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
= 0.9.97.65 (16th July 2019) =
|
192 |
* Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
|
193 |
* Fixed: Disqus comment is not working after version 0.9.97.63 #3446
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.2.2
|
7 |
+
Stable tag: 0.9.98
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
188 |
|
189 |
== Changelog ==
|
190 |
|
191 |
+
= 0.9.98 (19th July 2019) =
|
192 |
+
* Improvements: Option to remove date from Homepage and also in Recent posts #3363
|
193 |
+
* Improvements: Option for amp-youtube Embed video attributes in row module of AMP Pagebuilder #3373
|
194 |
+
* Improvements: Menu sidebar background and elements color changing option for Design 1, 2 #3402
|
195 |
+
* Improvements: MGID Ad support in AMP FOR WP #3431
|
196 |
+
* Improvements: Sizes of featured image option for single 1 #3433
|
197 |
+
* Improvements: Addthis floating share button feature in amp #3424
|
198 |
+
* Improvements: Wistia Plugin Compatibility integrated #3386
|
199 |
+
* Improvements: Squirrly SEO Compatibility integrated #3421
|
200 |
+
* Improvements: image-slider compatibility added in AMP sanitizer #3422
|
201 |
+
* Improvements: Compatability issue with ShortPixel Image Optimizer #3439
|
202 |
+
* Improvements: Improve the Search form (Sidebar) design #3425
|
203 |
+
* Improvements: AMP footer widget in design three #3411
|
204 |
+
* Improvements: Extension list added for AMP Email Extension #3144
|
205 |
+
* Improvements: Extension list added for Pinterest for AMP Extension #3195
|
206 |
+
* Improvements: Extension list added for Liveblog For AMP Extension #3194
|
207 |
+
* Fixed: Close menu button is not showing when a user comes from Google search #3401
|
208 |
+
* Fixed: When High-resolution Images option is enabled images link should be generated from higher-order to lower-order in schema markup #3442
|
209 |
+
* Fixed: Sticky Social Icons setting should be moved to Social Tab and some changes #3426
|
210 |
+
* Fixed: Fall back the header type code in the backend if a user has not selected any header type #3419
|
211 |
+
* Fixed: Revolution Slider not working perfectly when a user is inserting video #3311
|
212 |
+
* Fixed: Call to action option should be automatically enabled if the user selected header type-2 #3420
|
213 |
+
* Fixed: Double quotes on the author area #3441
|
214 |
+
* Fixed: Twitter URL is displaying instead of an icon when Zox news theme is active #3409
|
215 |
+
* Fixed: Extension code array issue #3438
|
216 |
+
* Fixed: Validation error due to amp-facebook-like #3427
|
217 |
+
* Fixed: Fatal error cannot redeclare is_amp_endpoint() (previously declared) #3415
|
218 |
+
* Fixed: Sticky Social Icons and cookies banner style issue #3452
|
219 |
+
* Fixed: Validation error the extension 'amp-next-page' was found on this page, but is unused please remove this extension #3463
|
220 |
+
* Fixed: gallery/slider module is not working when Convert AMP to WP theme (Beta) option is enabled #2771
|
221 |
+
|
222 |
= 0.9.97.65 (16th July 2019) =
|
223 |
* Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
|
224 |
* Fixed: Disqus comment is not working after version 0.9.97.63 #3446
|
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
-
Version: 0.9.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
@@ -20,7 +20,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
|
|
20 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
21 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
22 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
23 |
-
define('AMPFORWP_VERSION','0.9.
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
// any changes to AMP_QUERY_VAR should be refelected here
|
26 |
function ampforwp_generate_endpoint(){
|
@@ -596,6 +596,7 @@ if ( ! class_exists( 'Ampforwp_Init', false ) ) {
|
|
596 |
}
|
597 |
//Other Features
|
598 |
require_once AMPFORWP_PLUGIN_DIR."includes/features/advertisement/ads-functions.php";
|
|
|
599 |
require_once AMPFORWP_PLUGIN_DIR."includes/features/performance/performance-functions.php";
|
600 |
require_once AMPFORWP_PLUGIN_DIR."includes/features/analytics/analytics-functions.php";
|
601 |
require_once AMPFORWP_PLUGIN_DIR."includes/features/structure-data/structured-data-functions.php";
|
@@ -1108,7 +1109,8 @@ function ampforwp_sanitizers_loader(){
|
|
1108 |
// is_amp_endpoint Fallback #2287 #3055
|
1109 |
add_action('parse_query','ampforwp_vendor_is_amp_endpoint');
|
1110 |
function ampforwp_vendor_is_amp_endpoint(){
|
1111 |
-
|
|
|
1112 |
function is_amp_endpoint(){
|
1113 |
return false !== get_query_var( AMP_QUERY_VAR, false );
|
1114 |
}
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
+
Version: 0.9.98
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
20 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
21 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
22 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
23 |
+
define('AMPFORWP_VERSION','0.9.98');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
// any changes to AMP_QUERY_VAR should be refelected here
|
26 |
function ampforwp_generate_endpoint(){
|
596 |
}
|
597 |
//Other Features
|
598 |
require_once AMPFORWP_PLUGIN_DIR."includes/features/advertisement/ads-functions.php";
|
599 |
+
require_once AMPFORWP_PLUGIN_DIR."includes/features/advertisement/mgid-ads-functions.php";
|
600 |
require_once AMPFORWP_PLUGIN_DIR."includes/features/performance/performance-functions.php";
|
601 |
require_once AMPFORWP_PLUGIN_DIR."includes/features/analytics/analytics-functions.php";
|
602 |
require_once AMPFORWP_PLUGIN_DIR."includes/features/structure-data/structured-data-functions.php";
|
1109 |
// is_amp_endpoint Fallback #2287 #3055
|
1110 |
add_action('parse_query','ampforwp_vendor_is_amp_endpoint');
|
1111 |
function ampforwp_vendor_is_amp_endpoint(){
|
1112 |
+
global $pagenow;
|
1113 |
+
if ( ! function_exists('amp_activate') && ! function_exists('is_amp_endpoint' ) && 'plugins.php' !== $pagenow ) {
|
1114 |
function is_amp_endpoint(){
|
1115 |
return false !== get_query_var( AMP_QUERY_VAR, false );
|
1116 |
}
|
@@ -1,5 +1,36 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 0.9.97.65 (16th July 2019) =
|
4 |
* Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
|
5 |
* Fixed: Disqus comment is not working after version 0.9.97.63 #3446
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 0.9.98 (19th July 2019) =
|
4 |
+
* Improvements: Option to remove date from Homepage and also in Recent posts #3363
|
5 |
+
* Improvements: Option for amp-youtube Embed video attributes in row module of AMP Pagebuilder #3373
|
6 |
+
* Improvements: Menu sidebar background and elements color changing option for Design 1, 2 #3402
|
7 |
+
* Improvements: MGID Ad support in AMP FOR WP #3431
|
8 |
+
* Improvements: Sizes of featured image option for single 1 #3433
|
9 |
+
* Improvements: Addthis floating share button feature in amp #3424
|
10 |
+
* Improvements: Wistia Plugin Compatibility integrated #3386
|
11 |
+
* Improvements: Squirrly SEO Compatibility integrated #3421
|
12 |
+
* Improvements: image-slider compatibility added in AMP sanitizer #3422
|
13 |
+
* Improvements: Compatability issue with ShortPixel Image Optimizer #3439
|
14 |
+
* Improvements: Improve the Search form (Sidebar) design #3425
|
15 |
+
* Improvements: AMP footer widget in design three #3411
|
16 |
+
* Improvements: Extension list added for AMP Email Extension #3144
|
17 |
+
* Improvements: Extension list added for Pinterest for AMP Extension #3195
|
18 |
+
* Improvements: Extension list added for Liveblog For AMP Extension #3194
|
19 |
+
* Fixed: Close menu button is not showing when a user comes from Google search #3401
|
20 |
+
* Fixed: When High-resolution Images option is enabled images link should be generated from higher-order to lower-order in schema markup #3442
|
21 |
+
* Fixed: Sticky Social Icons setting should be moved to Social Tab and some changes #3426
|
22 |
+
* Fixed: Fall back the header type code in the backend if a user has not selected any header type #3419
|
23 |
+
* Fixed: Revolution Slider not working perfectly when a user is inserting video #3311
|
24 |
+
* Fixed: Call to action option should be automatically enabled if the user selected header type-2 #3420
|
25 |
+
* Fixed: Double quotes on the author area #3441
|
26 |
+
* Fixed: Twitter URL is displaying instead of an icon when Zox news theme is active #3409
|
27 |
+
* Fixed: Extension code array issue #3438
|
28 |
+
* Fixed: Validation error due to amp-facebook-like #3427
|
29 |
+
* Fixed: Fatal error cannot redeclare is_amp_endpoint() (previously declared) #3415
|
30 |
+
* Fixed: Sticky Social Icons and cookies banner style issue #3452
|
31 |
+
* Fixed: Validation error the extension 'amp-next-page' was found on this page, but is unused please remove this extension #3463
|
32 |
+
* Fixed: gallery/slider module is not working when Convert AMP to WP theme (Beta) option is enabled #2771
|
33 |
+
|
34 |
= 0.9.97.65 (16th July 2019) =
|
35 |
* Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
|
36 |
* Fixed: Disqus comment is not working after version 0.9.97.63 #3446
|
@@ -35,7 +35,9 @@ class AMP_Rev_Slider_Embed_Handler extends AMPforWP\AMPVendor\AMP_Base_Embed_Han
|
|
35 |
if($order !== '') $order = explode(',', $order);
|
36 |
|
37 |
$sliderAlias = ($alias != '') ? $alias : RevSliderFunctions::getVal($args,0);
|
38 |
-
|
|
|
|
|
39 |
$gal_ids = RevSliderFunctionsWP::check_for_shortcodes($mid_content);
|
40 |
ob_start();
|
41 |
if(!empty($gal_ids)){ //add a gallery based slider
|
@@ -49,10 +51,10 @@ class AMP_Rev_Slider_Embed_Handler extends AMPforWP\AMPVendor\AMP_Base_Embed_Han
|
|
49 |
$ids = array();
|
50 |
$slides = $slider->getSlidesForOutput(true,'',$gal_ids);
|
51 |
foreach ($slides as $slide) {
|
52 |
-
$
|
53 |
$img_data = wp_get_attachment_metadata( $slide->getImageID() );
|
54 |
|
55 |
-
if($
|
56 |
$url = esc_url($slide->getParam('slide_bg_external', ''));
|
57 |
$imgalt = esc_attr($slide->getParam('alt_attr', ''));
|
58 |
$img_title = esc_attr($slide->getParam('title_attr', ''));
|
@@ -62,8 +64,9 @@ class AMP_Rev_Slider_Embed_Handler extends AMPforWP\AMPVendor\AMP_Base_Embed_Han
|
|
62 |
'url' => $url,
|
63 |
'width' => $img_w,
|
64 |
'height' => $img_h,
|
|
|
65 |
),$attachment_id);
|
66 |
-
}elseif( $
|
67 |
$img_data = wp_get_attachment_metadata( $slide->getImageID() );
|
68 |
$url = $slide->getImageUrl();
|
69 |
$attachment_id = $slide->getImageID();
|
@@ -71,6 +74,17 @@ class AMP_Rev_Slider_Embed_Handler extends AMPforWP\AMPVendor\AMP_Base_Embed_Han
|
|
71 |
'url' => $url,
|
72 |
'width' => $img_data['width'],
|
73 |
'height' => $img_data['height'],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
),$attachment_id);
|
75 |
}
|
76 |
}
|
@@ -146,14 +160,29 @@ class AMP_Rev_Slider_Embed_Handler extends AMPforWP\AMPVendor\AMP_Base_Embed_Han
|
|
146 |
}
|
147 |
|
148 |
$amp_images = array();
|
|
|
149 |
foreach ( $args['images'] as $key => $image ) {
|
150 |
-
$
|
|
|
151 |
'src' => $image['url'],
|
152 |
'width' => $image['width'],
|
153 |
'height' => $image['height'],
|
154 |
'layout' => 'fill',
|
155 |
'class' => 'amp-carousel-img',
|
156 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
if( 3 == ampforwp_get_setting('ampforwp-gallery-design-type') || true == ampforwp_get_setting('ampforwp-gallery-lightbox') ){
|
158 |
$design3_additional_attr = array('on'=> 'tap:gallery-lightbox', 'role'=>'button',
|
159 |
'tabindex'=>$key);
|
@@ -167,21 +196,35 @@ class AMP_Rev_Slider_Embed_Handler extends AMPforWP\AMPVendor\AMP_Base_Embed_Han
|
|
167 |
</amp-image-lightbox>';
|
168 |
}
|
169 |
$amp_images[$key] = AMP_HTML_Utils::build_tag(
|
170 |
-
|
171 |
$amp_img_arr
|
172 |
);
|
173 |
|
174 |
-
|
175 |
-
$
|
176 |
-
|
177 |
-
|
178 |
-
$
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
|
186 |
$amp_images_small[$key] = AMP_HTML_Utils::build_tag(
|
187 |
'amp-img',
|
35 |
if($order !== '') $order = explode(',', $order);
|
36 |
|
37 |
$sliderAlias = ($alias != '') ? $alias : RevSliderFunctions::getVal($args,0);
|
38 |
+
if( ! method_exists('RevSliderFunctionsWP', 'check_for_shortcodes') ) {
|
39 |
+
return;
|
40 |
+
}
|
41 |
$gal_ids = RevSliderFunctionsWP::check_for_shortcodes($mid_content);
|
42 |
ob_start();
|
43 |
if(!empty($gal_ids)){ //add a gallery based slider
|
51 |
$ids = array();
|
52 |
$slides = $slider->getSlidesForOutput(true,'',$gal_ids);
|
53 |
foreach ($slides as $slide) {
|
54 |
+
$bgtype = $slide->getParam('background_type', 'image');
|
55 |
$img_data = wp_get_attachment_metadata( $slide->getImageID() );
|
56 |
|
57 |
+
if($bgtype == 'external'){
|
58 |
$url = esc_url($slide->getParam('slide_bg_external', ''));
|
59 |
$imgalt = esc_attr($slide->getParam('alt_attr', ''));
|
60 |
$img_title = esc_attr($slide->getParam('title_attr', ''));
|
64 |
'url' => $url,
|
65 |
'width' => $img_w,
|
66 |
'height' => $img_h,
|
67 |
+
'bgtype' => $bgtype
|
68 |
),$attachment_id);
|
69 |
+
}elseif( $bgtype == 'image'){
|
70 |
$img_data = wp_get_attachment_metadata( $slide->getImageID() );
|
71 |
$url = $slide->getImageUrl();
|
72 |
$attachment_id = $slide->getImageID();
|
74 |
'url' => $url,
|
75 |
'width' => $img_data['width'],
|
76 |
'height' => $img_data['height'],
|
77 |
+
'bgtype' => $bgtype
|
78 |
+
),$attachment_id);
|
79 |
+
}elseif( $bgtype == 'youtube' ){
|
80 |
+
$youtube_id = $slide->getParam('slide_bg_youtube', '');
|
81 |
+
$cover_img = $slide->getImageUrl();
|
82 |
+
$urls[] = apply_filters('amp_gallery_image_params', array(
|
83 |
+
'url' => $youtube_id,
|
84 |
+
'width' => '480',
|
85 |
+
'height' => '270',
|
86 |
+
'bgtype' => $bgtype,
|
87 |
+
'cover_img' => $cover_img
|
88 |
),$attachment_id);
|
89 |
}
|
90 |
}
|
160 |
}
|
161 |
|
162 |
$amp_images = array();
|
163 |
+
$tag_type = '';
|
164 |
foreach ( $args['images'] as $key => $image ) {
|
165 |
+
if($image['bgtype'] =="image" || $image['bgtype'] =="external" ){
|
166 |
+
$amp_img_arr = array(
|
167 |
'src' => $image['url'],
|
168 |
'width' => $image['width'],
|
169 |
'height' => $image['height'],
|
170 |
'layout' => 'fill',
|
171 |
'class' => 'amp-carousel-img',
|
172 |
);
|
173 |
+
$tag_type = 'amp-img';
|
174 |
+
}elseif( $image['bgtype'] =="youtube"){
|
175 |
+
$amp_img_arr = array(
|
176 |
+
'data-videoid'=> $image['url'],
|
177 |
+
'width' => $image['width'],
|
178 |
+
'height' => $image['height'],
|
179 |
+
'layout'=>'responsive',
|
180 |
+
'class' => 'amp-carousel-img',
|
181 |
+
'data-param-playlist'=> $image['url'],
|
182 |
+
'data-param-modestbranding'=> '1'
|
183 |
+
);
|
184 |
+
$tag_type = 'amp-youtube';
|
185 |
+
}
|
186 |
if( 3 == ampforwp_get_setting('ampforwp-gallery-design-type') || true == ampforwp_get_setting('ampforwp-gallery-lightbox') ){
|
187 |
$design3_additional_attr = array('on'=> 'tap:gallery-lightbox', 'role'=>'button',
|
188 |
'tabindex'=>$key);
|
196 |
</amp-image-lightbox>';
|
197 |
}
|
198 |
$amp_images[$key] = AMP_HTML_Utils::build_tag(
|
199 |
+
$tag_type,
|
200 |
$amp_img_arr
|
201 |
);
|
202 |
|
203 |
+
$upload_dir = wp_upload_dir();
|
204 |
+
$upload_url = $upload_dir['baseurl'];
|
205 |
+
if( $tag_type == 'amp-img'){
|
206 |
+
if ( false === strpos( $image['url'], $upload_url ) ) {
|
207 |
+
$smallimage = $image['url'];
|
208 |
+
$smallwidth = 120;
|
209 |
+
$smallheight = 60;
|
210 |
+
}else{
|
211 |
+
//Small Thumbnail Images
|
212 |
+
$thumb_url = ampforwp_aq_resize( $image['url'], 120, 60, true, false ); //resize & crop the image
|
213 |
+
if($thumb_url!=false){
|
214 |
+
$smallimage = $thumb_url[0];
|
215 |
+
$smallwidth = $thumb_url[1];
|
216 |
+
$smallheight = $thumb_url[2];
|
217 |
+
}else{
|
218 |
+
$smallimage = $image['url'];
|
219 |
+
$smallwidth = $image['width'];
|
220 |
+
$smallheight = $image['height'];
|
221 |
+
}
|
222 |
+
}
|
223 |
+
}elseif( $tag_type == 'amp-youtube'){
|
224 |
+
$smallimage = $image['cover_img'];
|
225 |
+
$smallwidth = 120;
|
226 |
+
$smallheight = 60;
|
227 |
+
}
|
228 |
|
229 |
$amp_images_small[$key] = AMP_HTML_Utils::build_tag(
|
230 |
'amp-img',
|
@@ -709,17 +709,36 @@ if ( !function_exists('amp_call_now') ) {
|
|
709 |
function ampforwp_addThis_support(){
|
710 |
$data_pub_id = ampforwp_get_setting('add-this-pub-id');
|
711 |
$data_widget_id = ampforwp_get_setting('add-this-widget-id');
|
|
|
|
|
712 |
if ( ( is_single() || (is_page() && ampforwp_get_setting('ampforwp-page-social')) ) && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) {
|
713 |
if( ampforwp_get_setting('enable-add-this-option') ) {
|
714 |
if( 4 == ampforwp_get_setting('amp-design-selector') && 'default' == ampforwp_get_setting('swift-add-this-position') ){
|
715 |
-
$
|
716 |
}
|
717 |
else{
|
718 |
-
$
|
719 |
-
}
|
|
|
|
|
|
|
|
|
720 |
do_action('ampforwp_before_social_icons_hook');
|
721 |
return $amp_addthis;
|
722 |
do_action('ampforwp_after_social_icons_hook');
|
723 |
}
|
724 |
}
|
725 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
709 |
function ampforwp_addThis_support(){
|
710 |
$data_pub_id = ampforwp_get_setting('add-this-pub-id');
|
711 |
$data_widget_id = ampforwp_get_setting('add-this-widget-id');
|
712 |
+
$addthisWidth = '';
|
713 |
+
$amp_addthis = '';
|
714 |
if ( ( is_single() || (is_page() && ampforwp_get_setting('ampforwp-page-social')) ) && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) {
|
715 |
if( ampforwp_get_setting('enable-add-this-option') ) {
|
716 |
if( 4 == ampforwp_get_setting('amp-design-selector') && 'default' == ampforwp_get_setting('swift-add-this-position') ){
|
717 |
+
$addthisWidth = 290;
|
718 |
}
|
719 |
else{
|
720 |
+
$addthisWidth = 320;
|
721 |
+
}
|
722 |
+
if( ampforwp_get_setting('addthis-inline-share') == true){
|
723 |
+
$amp_addthis .= '<amp-addthis width="'.$addthisWidth.'" height="92" data-pub-id="'.esc_attr($data_pub_id).'" data-widget-id="'. esc_attr($data_widget_id).'"></amp-addthis>';
|
724 |
+
}
|
725 |
+
|
726 |
do_action('ampforwp_before_social_icons_hook');
|
727 |
return $amp_addthis;
|
728 |
do_action('ampforwp_after_social_icons_hook');
|
729 |
}
|
730 |
}
|
731 |
+
}
|
732 |
+
|
733 |
+
add_action('amp_post_template_footer','ampforwp_addthis_floating_social_share');
|
734 |
+
function ampforwp_addthis_floating_social_share(){
|
735 |
+
$data_pub_id = ampforwp_get_setting('add-this-pub-id');
|
736 |
+
$data_widget_id = ampforwp_get_setting('add-this-widget-id');
|
737 |
+
if ( ( is_single() || (is_page() && ampforwp_get_setting('ampforwp-page-social')) ) && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) {
|
738 |
+
if( ampforwp_get_setting('enable-add-this-option') ) {
|
739 |
+
if( ampforwp_get_setting('addthis-floating-share') == true ){
|
740 |
+
echo '<amp-addthis width="320" height="92" data-pub-id="'.esc_attr($data_pub_id).'" data-widget-id="'. esc_attr($data_widget_id).'" data-widget-type="floating"></amp-addthis>';
|
741 |
+
}
|
742 |
+
}
|
743 |
+
}
|
744 |
+
}
|
Binary file
|
@@ -17,6 +17,7 @@ function ampforwp_header_advert() {
|
|
17 |
$redux_builder_amp = get_option('redux_builder_amp',true);
|
18 |
}
|
19 |
$is_dboc = '';
|
|
|
20 |
$is_dboc = ampforwp_get_data_consent();
|
21 |
$post_id = get_the_ID();
|
22 |
if ( ampforwp_is_front_page() ) {
|
@@ -32,7 +33,7 @@ function ampforwp_header_advert() {
|
|
32 |
}
|
33 |
$client_id = $redux_builder_amp['enable-amp-ads-text-feild-client-1'];
|
34 |
$data_slot = $redux_builder_amp['enable-amp-ads-text-feild-slot-1'];
|
35 |
-
if (
|
36 |
if ( 1 == $redux_builder_amp['enable-amp-ads-select-1'] ) {
|
37 |
$advert_width = '300';
|
38 |
$advert_height = '250';
|
@@ -77,9 +78,10 @@ function ampforwp_header_advert() {
|
|
77 |
$output .= '></amp-ad>';
|
78 |
$output .= ampforwp_ads_sponsorship();
|
79 |
$output .= ' </div>';
|
80 |
-
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
81 |
-
echo $output;
|
82 |
}
|
|
|
|
|
|
|
83 |
}
|
84 |
|
85 |
// Above Footer Global
|
@@ -90,6 +92,7 @@ function ampforwp_footer_advert() {
|
|
90 |
}
|
91 |
$optimize = '';
|
92 |
$is_dboc = '';
|
|
|
93 |
$is_dboc = ampforwp_get_data_consent();
|
94 |
$post_id = get_the_ID();
|
95 |
if ( ampforwp_is_front_page() ) {
|
@@ -106,7 +109,7 @@ function ampforwp_footer_advert() {
|
|
106 |
$client_id = $redux_builder_amp['enable-amp-ads-text-feild-client-2'];
|
107 |
$data_slot = $redux_builder_amp['enable-amp-ads-text-feild-slot-2'];
|
108 |
$optimize = ampforwp_ad_optimize();
|
109 |
-
if (
|
110 |
if($redux_builder_amp['enable-amp-ads-select-2'] == 1) {
|
111 |
$advert_width = '300';
|
112 |
$advert_height = '250';
|
@@ -151,9 +154,10 @@ function ampforwp_footer_advert() {
|
|
151 |
$output .= '></amp-ad>';
|
152 |
$output .= ampforwp_ads_sponsorship();
|
153 |
$output .= ' </div>';
|
154 |
-
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
155 |
-
echo $output;
|
156 |
}
|
|
|
|
|
|
|
157 |
}
|
158 |
|
159 |
// Above Post Content
|
@@ -165,6 +169,7 @@ function ampforwp_before_post_content_advert() {
|
|
165 |
$is_global = '';
|
166 |
$display_on = '';
|
167 |
$is_dboc = '';
|
|
|
168 |
$is_dboc = ampforwp_get_data_consent();
|
169 |
$post_id = get_the_ID();
|
170 |
// If page builder is enabled then 'Return' and show no ads
|
@@ -199,7 +204,7 @@ function ampforwp_before_post_content_advert() {
|
|
199 |
$display_on = is_singular();
|
200 |
}
|
201 |
|
202 |
-
if (
|
203 |
if($redux_builder_amp['enable-amp-ads-select-3'] == 1) {
|
204 |
$advert_width = '300';
|
205 |
$advert_height = '250';
|
@@ -244,9 +249,10 @@ function ampforwp_before_post_content_advert() {
|
|
244 |
$output .= '></amp-ad>';
|
245 |
$output .= ampforwp_ads_sponsorship();
|
246 |
$output .= ' </div>';
|
247 |
-
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
248 |
-
echo $output;
|
249 |
}
|
|
|
|
|
|
|
250 |
}
|
251 |
}
|
252 |
}
|
@@ -262,6 +268,7 @@ function ampforwp_after_post_content_advert() {
|
|
262 |
$optimize = '';
|
263 |
$post_id = get_the_ID();
|
264 |
$is_dboc = '';
|
|
|
265 |
$is_dboc = ampforwp_get_data_consent();
|
266 |
// If page builder is enabled then 'Return' and show no ads
|
267 |
if ( checkAMPforPageBuilderStatus( $post_id ) ) {
|
@@ -274,7 +281,7 @@ function ampforwp_after_post_content_advert() {
|
|
274 |
$client_id = $redux_builder_amp['enable-amp-ads-text-feild-client-4'];
|
275 |
$data_slot = $redux_builder_amp['enable-amp-ads-text-feild-slot-4'];
|
276 |
$optimize = ampforwp_ad_optimize();
|
277 |
-
if (
|
278 |
if($redux_builder_amp['enable-amp-ads-select-4'] == 1) {
|
279 |
$advert_width = '300';
|
280 |
$advert_height = '250';
|
@@ -319,9 +326,10 @@ function ampforwp_after_post_content_advert() {
|
|
319 |
$output .= '></amp-ad>';
|
320 |
$output .= ampforwp_ads_sponsorship();
|
321 |
$output .= ' </div>';
|
322 |
-
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
323 |
-
echo $output;
|
324 |
}
|
|
|
|
|
|
|
325 |
}
|
326 |
|
327 |
// Below The Title
|
@@ -331,6 +339,7 @@ function ampforwp_below_the_title_advert() {
|
|
331 |
$redux_builder_amp = get_option('redux_builder_amp',true);
|
332 |
}
|
333 |
$is_dboc = '';
|
|
|
334 |
$is_dboc = ampforwp_get_data_consent();
|
335 |
$post_id = get_the_ID();
|
336 |
// If page builder is enabled then 'Return' and show no ads
|
@@ -343,7 +352,7 @@ function ampforwp_below_the_title_advert() {
|
|
343 |
}
|
344 |
$client_id = $redux_builder_amp['enable-amp-ads-text-feild-client-5'];
|
345 |
$data_slot = $redux_builder_amp['enable-amp-ads-text-feild-slot-5'];
|
346 |
-
if (
|
347 |
if($redux_builder_amp['enable-amp-ads-select-5'] == 1) {
|
348 |
$advert_width = '300';
|
349 |
$advert_height = '250';
|
@@ -388,9 +397,10 @@ function ampforwp_below_the_title_advert() {
|
|
388 |
$output .= '></amp-ad>';
|
389 |
$output .= ampforwp_ads_sponsorship();
|
390 |
$output .= ' </div>';
|
391 |
-
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
392 |
-
echo $output;
|
393 |
}
|
|
|
|
|
|
|
394 |
}
|
395 |
|
396 |
|
@@ -402,6 +412,7 @@ function ampforwp_above_related_post_advert() {
|
|
402 |
}
|
403 |
$optimize = '';
|
404 |
$is_dboc = '';
|
|
|
405 |
$is_dboc = ampforwp_get_data_consent();
|
406 |
$post_id = get_the_ID();
|
407 |
// If page builder is enabled then 'Return' and show no ads
|
@@ -415,7 +426,7 @@ function ampforwp_above_related_post_advert() {
|
|
415 |
$client_id = $redux_builder_amp['enable-amp-ads-text-feild-client-6'];
|
416 |
$data_slot = $redux_builder_amp['enable-amp-ads-text-feild-slot-6'];
|
417 |
$optimize = ampforwp_ad_optimize();
|
418 |
-
if(
|
419 |
if($redux_builder_amp['enable-amp-ads-select-6'] == 1) {
|
420 |
$advert_width = '300';
|
421 |
$advert_height = '250';
|
@@ -460,9 +471,10 @@ function ampforwp_above_related_post_advert() {
|
|
460 |
$output .= '></amp-ad>';
|
461 |
$output .= ampforwp_ads_sponsorship();
|
462 |
$output .= ' </div>';
|
463 |
-
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
464 |
-
echo $output;
|
465 |
}
|
|
|
|
|
|
|
466 |
}
|
467 |
// Ads Sponsorship output
|
468 |
function ampforwp_ads_sponsorship(){
|
17 |
$redux_builder_amp = get_option('redux_builder_amp',true);
|
18 |
}
|
19 |
$is_dboc = '';
|
20 |
+
$output = $advert_width = $advert_height = $client_id = $data_slot = '';
|
21 |
$is_dboc = ampforwp_get_data_consent();
|
22 |
$post_id = get_the_ID();
|
23 |
if ( ampforwp_is_front_page() ) {
|
33 |
}
|
34 |
$client_id = $redux_builder_amp['enable-amp-ads-text-feild-client-1'];
|
35 |
$data_slot = $redux_builder_amp['enable-amp-ads-text-feild-slot-1'];
|
36 |
+
if ( ampforwp_get_setting('enable-amp-ads-1') && ampforwp_get_setting('enable-amp-ads-type-1') == 'adsense' ) {
|
37 |
if ( 1 == $redux_builder_amp['enable-amp-ads-select-1'] ) {
|
38 |
$advert_width = '300';
|
39 |
$advert_height = '250';
|
78 |
$output .= '></amp-ad>';
|
79 |
$output .= ampforwp_ads_sponsorship();
|
80 |
$output .= ' </div>';
|
|
|
|
|
81 |
}
|
82 |
+
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
83 |
+
$output = apply_filters('ampforwp_modify_ad_1',$output );
|
84 |
+
echo $output;
|
85 |
}
|
86 |
|
87 |
// Above Footer Global
|
92 |
}
|
93 |
$optimize = '';
|
94 |
$is_dboc = '';
|
95 |
+
$output = $advert_width = $advert_height = $client_id = $data_slot = '';
|
96 |
$is_dboc = ampforwp_get_data_consent();
|
97 |
$post_id = get_the_ID();
|
98 |
if ( ampforwp_is_front_page() ) {
|
109 |
$client_id = $redux_builder_amp['enable-amp-ads-text-feild-client-2'];
|
110 |
$data_slot = $redux_builder_amp['enable-amp-ads-text-feild-slot-2'];
|
111 |
$optimize = ampforwp_ad_optimize();
|
112 |
+
if ( ampforwp_get_setting('enable-amp-ads-2') && ampforwp_get_setting('enable-amp-ads-type-1') == 'adsense' ) {
|
113 |
if($redux_builder_amp['enable-amp-ads-select-2'] == 1) {
|
114 |
$advert_width = '300';
|
115 |
$advert_height = '250';
|
154 |
$output .= '></amp-ad>';
|
155 |
$output .= ampforwp_ads_sponsorship();
|
156 |
$output .= ' </div>';
|
|
|
|
|
157 |
}
|
158 |
+
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
159 |
+
$output = apply_filters('ampforwp_modify_ad_2',$output );
|
160 |
+
echo $output;
|
161 |
}
|
162 |
|
163 |
// Above Post Content
|
169 |
$is_global = '';
|
170 |
$display_on = '';
|
171 |
$is_dboc = '';
|
172 |
+
$output = $advert_width = $advert_height = $client_id = $data_slot = '';
|
173 |
$is_dboc = ampforwp_get_data_consent();
|
174 |
$post_id = get_the_ID();
|
175 |
// If page builder is enabled then 'Return' and show no ads
|
204 |
$display_on = is_singular();
|
205 |
}
|
206 |
|
207 |
+
if ( ampforwp_get_setting('enable-amp-ads-3') && ampforwp_get_setting('enable-amp-ads-type-1') == 'adsense' && $display_on ) {
|
208 |
if($redux_builder_amp['enable-amp-ads-select-3'] == 1) {
|
209 |
$advert_width = '300';
|
210 |
$advert_height = '250';
|
249 |
$output .= '></amp-ad>';
|
250 |
$output .= ampforwp_ads_sponsorship();
|
251 |
$output .= ' </div>';
|
|
|
|
|
252 |
}
|
253 |
+
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
254 |
+
$output = apply_filters('ampforwp_modify_ad_3',$output );
|
255 |
+
echo $output;
|
256 |
}
|
257 |
}
|
258 |
}
|
268 |
$optimize = '';
|
269 |
$post_id = get_the_ID();
|
270 |
$is_dboc = '';
|
271 |
+
$output = $advert_width = $advert_height = $client_id = $data_slot = '';
|
272 |
$is_dboc = ampforwp_get_data_consent();
|
273 |
// If page builder is enabled then 'Return' and show no ads
|
274 |
if ( checkAMPforPageBuilderStatus( $post_id ) ) {
|
281 |
$client_id = $redux_builder_amp['enable-amp-ads-text-feild-client-4'];
|
282 |
$data_slot = $redux_builder_amp['enable-amp-ads-text-feild-slot-4'];
|
283 |
$optimize = ampforwp_ad_optimize();
|
284 |
+
if ( ampforwp_get_setting('enable-amp-ads-4') && ampforwp_get_setting('enable-amp-ads-type-4') == 'adsense' && is_single() ) {
|
285 |
if($redux_builder_amp['enable-amp-ads-select-4'] == 1) {
|
286 |
$advert_width = '300';
|
287 |
$advert_height = '250';
|
326 |
$output .= '></amp-ad>';
|
327 |
$output .= ampforwp_ads_sponsorship();
|
328 |
$output .= ' </div>';
|
|
|
|
|
329 |
}
|
330 |
+
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
331 |
+
$output = apply_filters('ampforwp_modify_ad_4',$output );
|
332 |
+
echo $output;
|
333 |
}
|
334 |
|
335 |
// Below The Title
|
339 |
$redux_builder_amp = get_option('redux_builder_amp',true);
|
340 |
}
|
341 |
$is_dboc = '';
|
342 |
+
$output = $advert_width = $advert_height = $client_id = $data_slot = '';
|
343 |
$is_dboc = ampforwp_get_data_consent();
|
344 |
$post_id = get_the_ID();
|
345 |
// If page builder is enabled then 'Return' and show no ads
|
352 |
}
|
353 |
$client_id = $redux_builder_amp['enable-amp-ads-text-feild-client-5'];
|
354 |
$data_slot = $redux_builder_amp['enable-amp-ads-text-feild-slot-5'];
|
355 |
+
if ( ampforwp_get_setting('enable-amp-ads-5') && ampforwp_get_setting('enable-amp-ads-type-5') == 'adsense' && is_single() ) {
|
356 |
if($redux_builder_amp['enable-amp-ads-select-5'] == 1) {
|
357 |
$advert_width = '300';
|
358 |
$advert_height = '250';
|
397 |
$output .= '></amp-ad>';
|
398 |
$output .= ampforwp_ads_sponsorship();
|
399 |
$output .= ' </div>';
|
|
|
|
|
400 |
}
|
401 |
+
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
402 |
+
$output = apply_filters('ampforwp_modify_ad_5',$output );
|
403 |
+
echo $output;
|
404 |
}
|
405 |
|
406 |
|
412 |
}
|
413 |
$optimize = '';
|
414 |
$is_dboc = '';
|
415 |
+
$output = $advert_width = $advert_height = $client_id = $data_slot = '';
|
416 |
$is_dboc = ampforwp_get_data_consent();
|
417 |
$post_id = get_the_ID();
|
418 |
// If page builder is enabled then 'Return' and show no ads
|
426 |
$client_id = $redux_builder_amp['enable-amp-ads-text-feild-client-6'];
|
427 |
$data_slot = $redux_builder_amp['enable-amp-ads-text-feild-slot-6'];
|
428 |
$optimize = ampforwp_ad_optimize();
|
429 |
+
if ( ampforwp_get_setting('enable-amp-ads-6') && ampforwp_get_setting('enable-amp-ads-type-6') == 'adsense' ) {
|
430 |
if($redux_builder_amp['enable-amp-ads-select-6'] == 1) {
|
431 |
$advert_width = '300';
|
432 |
$advert_height = '250';
|
471 |
$output .= '></amp-ad>';
|
472 |
$output .= ampforwp_ads_sponsorship();
|
473 |
$output .= ' </div>';
|
|
|
|
|
474 |
}
|
475 |
+
$output = apply_filters('ampforwp_modify_ads',$output,$advert_width,$advert_height, $client_id, $data_slot);
|
476 |
+
$output = apply_filters('ampforwp_modify_ad_6',$output );
|
477 |
+
echo $output;
|
478 |
}
|
479 |
// Ads Sponsorship output
|
480 |
function ampforwp_ads_sponsorship(){
|
@@ -41,12 +41,28 @@
|
|
41 |
'true' => 'Enabled',
|
42 |
'false' => 'Disabled',
|
43 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
$fields[] = array(
|
45 |
'class' => 'child_opt child_opt_arrow',
|
46 |
'id' => 'enable-amp-ads-select-1',
|
47 |
'type' => 'select',
|
48 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
49 |
-
'required' => array(
|
|
|
|
|
|
|
50 |
// Must provide key => value pairs for select options
|
51 |
'options' => array(
|
52 |
'1' => esc_html__('300x250','accelerated-mobile-pages'),
|
@@ -62,7 +78,10 @@
|
|
62 |
'class' => 'child_opt',
|
63 |
'id' =>'enable-amp-ads-text-feild-client-1',
|
64 |
'type' => 'text',
|
65 |
-
'required'
|
|
|
|
|
|
|
66 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
67 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
68 |
'default' => '',
|
@@ -75,7 +94,10 @@
|
|
75 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
76 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
|
77 |
'default' => '',
|
78 |
-
'required' => array(
|
|
|
|
|
|
|
79 |
'placeholder'=> '70XXXXXX12'
|
80 |
);
|
81 |
$fields[] = array(
|
@@ -84,8 +106,89 @@
|
|
84 |
'type' => 'switch',
|
85 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
86 |
'default' => 0,
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
// Ad 1 ends
|
90 |
|
91 |
// Ad 2 Starts
|
@@ -98,12 +201,28 @@
|
|
98 |
'true' => 'Enabled',
|
99 |
'false' => 'Disabled',
|
100 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
$fields[] = array(
|
102 |
'class' => 'child_opt child_opt_arrow',
|
103 |
'id' => 'enable-amp-ads-select-2',
|
104 |
'type' => 'select',
|
105 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
106 |
-
'required' => array(
|
|
|
|
|
|
|
107 |
// Must provide key => value pairs for select options
|
108 |
'options' => array(
|
109 |
'1' => '300x250',
|
@@ -120,7 +239,10 @@
|
|
120 |
'class' => 'child_opt',
|
121 |
'id' =>'enable-amp-ads-text-feild-client-2',
|
122 |
'type' => 'text',
|
123 |
-
'required' => array(
|
|
|
|
|
|
|
124 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
125 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
126 |
'default' => '',
|
@@ -133,7 +255,10 @@
|
|
133 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
134 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
|
135 |
'default' => '',
|
136 |
-
'required' => array(
|
|
|
|
|
|
|
137 |
'placeholder'=> '70XXXXXX12'
|
138 |
);
|
139 |
$fields[] = array(
|
@@ -142,7 +267,88 @@
|
|
142 |
'type' => 'switch',
|
143 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
144 |
'default' => 0,
|
145 |
-
'required' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
);
|
147 |
// Ad 2 ends
|
148 |
|
@@ -156,6 +362,19 @@
|
|
156 |
'true' => 'Enabled',
|
157 |
'false' => 'Disabled',
|
158 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
$fields[] = array(
|
160 |
'class' => 'child_opt child_opt_arrow',
|
161 |
'id' => 'made-amp-ad-3-global',
|
@@ -177,7 +396,10 @@
|
|
177 |
'id' => 'enable-amp-ads-select-3',
|
178 |
'type' => 'select',
|
179 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
180 |
-
'required'
|
|
|
|
|
|
|
181 |
// Must provide key => value pairs for select options
|
182 |
'options' => array(
|
183 |
'1' => '300x250',
|
@@ -194,7 +416,10 @@
|
|
194 |
'class' => 'child_opt',
|
195 |
'id' =>'enable-amp-ads-text-feild-client-3',
|
196 |
'type' => 'text',
|
197 |
-
'required'
|
|
|
|
|
|
|
198 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
199 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
200 |
'default' => '',
|
@@ -207,7 +432,10 @@
|
|
207 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
208 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
|
209 |
'default' => '',
|
210 |
-
'required'
|
|
|
|
|
|
|
211 |
'placeholder'=> '70XXXXXX12'
|
212 |
);
|
213 |
$fields[] = array(
|
@@ -216,7 +444,88 @@
|
|
216 |
'type' => 'switch',
|
217 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
218 |
'default' => 0,
|
219 |
-
'required' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
);
|
221 |
// Ad 3 ends
|
222 |
|
@@ -230,12 +539,28 @@
|
|
230 |
'true' => 'Enabled',
|
231 |
'false' => 'Disabled',
|
232 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
$fields[] = array(
|
234 |
'class' => 'child_opt child_opt_arrow',
|
235 |
'id' => 'enable-amp-ads-select-4',
|
236 |
'type' => 'select',
|
237 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
238 |
-
|
|
|
|
|
|
|
239 |
// Must provide key => value pairs for select options
|
240 |
'options' => array(
|
241 |
'1' => esc_html__('300x250','accelerated-mobile-pages'),
|
@@ -252,7 +577,10 @@
|
|
252 |
'class' => 'child_opt',
|
253 |
'id' =>'enable-amp-ads-text-feild-client-4',
|
254 |
'type' => 'text',
|
255 |
-
|
|
|
|
|
|
|
256 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
257 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
258 |
'default' => '',
|
@@ -265,7 +593,10 @@
|
|
265 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
266 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
|
267 |
'default' => '',
|
268 |
-
'required'
|
|
|
|
|
|
|
269 |
'placeholder'=> '70XXXXXX12'
|
270 |
);
|
271 |
$fields[] = array(
|
@@ -274,7 +605,88 @@
|
|
274 |
'type' => 'switch',
|
275 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
276 |
'default' => 0,
|
277 |
-
'required' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
);
|
279 |
// Ad 4 ends
|
280 |
|
@@ -288,12 +700,28 @@
|
|
288 |
'true' => 'Enabled',
|
289 |
'false' => 'Disabled',
|
290 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
$fields[] = array(
|
292 |
'class' => 'child_opt child_opt_arrow',
|
293 |
'id' => 'enable-amp-ads-select-5',
|
294 |
'type' => 'select',
|
295 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
296 |
-
'required' => array(
|
|
|
|
|
|
|
297 |
// Must provide key => value pairs for select options
|
298 |
'options' => array(
|
299 |
'1' => esc_html__('300x250','accelerated-mobile-pages'),
|
@@ -310,7 +738,10 @@
|
|
310 |
'class' => 'child_opt',
|
311 |
'id' =>'enable-amp-ads-text-feild-client-5',
|
312 |
'type' => 'text',
|
313 |
-
'required'
|
|
|
|
|
|
|
314 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
315 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
316 |
'default' => '',
|
@@ -323,7 +754,10 @@
|
|
323 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
324 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
|
325 |
'default' => '',
|
326 |
-
'required'
|
|
|
|
|
|
|
327 |
'placeholder'=> '70XXXXXX12'
|
328 |
);
|
329 |
$fields[] = array(
|
@@ -332,7 +766,88 @@
|
|
332 |
'type' => 'switch',
|
333 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
334 |
'default' => 0,
|
335 |
-
'required' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
336 |
);
|
337 |
|
338 |
//Ad 6 Starts
|
@@ -346,12 +861,28 @@
|
|
346 |
'true' => 'Enabled',
|
347 |
'false' => 'Disabled',
|
348 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
$fields[] = array(
|
350 |
'class' => 'child_opt child_opt_arrow',
|
351 |
'id' => 'enable-amp-ads-select-6',
|
352 |
'type' => 'select',
|
353 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
354 |
-
|
|
|
|
|
|
|
355 |
// Must provide key => value pairs for select options
|
356 |
'options' => array(
|
357 |
'1' => esc_html__('300x250','accelerated-mobile-pages'),
|
@@ -368,7 +899,10 @@
|
|
368 |
'class' => 'child_opt',
|
369 |
'id' =>'enable-amp-ads-text-feild-client-6',
|
370 |
'type' => 'text',
|
371 |
-
'required'
|
|
|
|
|
|
|
372 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
373 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
374 |
'default' => '',
|
@@ -381,7 +915,10 @@
|
|
381 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
382 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
|
383 |
'default' => '',
|
384 |
-
'required'
|
|
|
|
|
|
|
385 |
'placeholder'=> '70XXXXXX12'
|
386 |
);
|
387 |
$fields[] = array(
|
@@ -390,7 +927,88 @@
|
|
390 |
'type' => 'switch',
|
391 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
392 |
'default' => 0,
|
393 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
);
|
395 |
}
|
396 |
}
|
41 |
'true' => 'Enabled',
|
42 |
'false' => 'Disabled',
|
43 |
);
|
44 |
+
$fields[] = array(
|
45 |
+
'class' => 'child_opt child_opt_arrow',
|
46 |
+
'id' => 'enable-amp-ads-type-1',
|
47 |
+
'type' => 'select',
|
48 |
+
'title' => esc_html__('AD Type', 'accelerated-mobile-pages'),
|
49 |
+
'required' => array('enable-amp-ads-1', '=' , '1'),
|
50 |
+
// Must provide key => value pairs for select options
|
51 |
+
'options' => array(
|
52 |
+
'adsense' => esc_html__('Adsense', 'accelerated-mobile-pages'),
|
53 |
+
'mgid' => esc_html__('MGID','accelerated-mobile-pages'),
|
54 |
+
),
|
55 |
+
'default' => 'adsense',
|
56 |
+
);
|
57 |
$fields[] = array(
|
58 |
'class' => 'child_opt child_opt_arrow',
|
59 |
'id' => 'enable-amp-ads-select-1',
|
60 |
'type' => 'select',
|
61 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
62 |
+
'required' => array(
|
63 |
+
array('enable-amp-ads-1', '=' , '1'),
|
64 |
+
array('enable-amp-ads-type-1', '=' , 'adsense'),
|
65 |
+
),
|
66 |
// Must provide key => value pairs for select options
|
67 |
'options' => array(
|
68 |
'1' => esc_html__('300x250','accelerated-mobile-pages'),
|
78 |
'class' => 'child_opt',
|
79 |
'id' =>'enable-amp-ads-text-feild-client-1',
|
80 |
'type' => 'text',
|
81 |
+
'required' => array(
|
82 |
+
array('enable-amp-ads-1', '=' , '1'),
|
83 |
+
array('enable-amp-ads-type-1', '=' , 'adsense'),
|
84 |
+
),
|
85 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
86 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
87 |
'default' => '',
|
94 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
95 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
|
96 |
'default' => '',
|
97 |
+
'required' => array(
|
98 |
+
array('enable-amp-ads-1', '=' , '1'),
|
99 |
+
array('enable-amp-ads-type-1', '=' , 'adsense'),
|
100 |
+
),
|
101 |
'placeholder'=> '70XXXXXX12'
|
102 |
);
|
103 |
$fields[] = array(
|
106 |
'type' => 'switch',
|
107 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
108 |
'default' => 0,
|
109 |
+
'required' => array(
|
110 |
+
array('enable-amp-ads-1', '=' , '1'),
|
111 |
+
array('enable-amp-ads-type-1', '=' , 'adsense'),
|
112 |
+
),
|
113 |
+
);
|
114 |
+
// MGID fields
|
115 |
+
$fields[] = array(
|
116 |
+
'class' => 'child_opt',
|
117 |
+
'id' =>'enable-amp-ads-mgid-width',
|
118 |
+
'type' => 'text',
|
119 |
+
'required' => array(
|
120 |
+
array('enable-amp-ads-1', '=' , '1'),
|
121 |
+
array('enable-amp-ads-type-1', '=' , 'mgid'),
|
122 |
+
array('enable-amp-ads-mgid-flexible', '=' , '0'),
|
123 |
+
),
|
124 |
+
'title' => esc_html__('Width', 'accelerated-mobile-pages'),
|
125 |
+
'default' => '',
|
126 |
+
'placeholder'=> '600'
|
127 |
+
);
|
128 |
+
$fields[] = array(
|
129 |
+
'class' => 'child_opt',
|
130 |
+
'id' =>'enable-amp-ads-mgid-height',
|
131 |
+
'type' => 'text',
|
132 |
+
'required' => array(
|
133 |
+
array('enable-amp-ads-1', '=' , '1'),
|
134 |
+
array('enable-amp-ads-type-1', '=' , 'mgid'),
|
135 |
+
array('enable-amp-ads-mgid-flexible', '=' , '0'),
|
136 |
+
),
|
137 |
+
'title' => esc_html__('Height', 'accelerated-mobile-pages'),
|
138 |
+
'default' => '',
|
139 |
+
'placeholder'=> '600'
|
140 |
+
);
|
141 |
+
$fields[] = array(
|
142 |
+
'class' => 'child_opt',
|
143 |
+
'id' =>'enable-amp-ads-mgid-field-data-pub',
|
144 |
+
'type' => 'text',
|
145 |
+
'required' => array(
|
146 |
+
array('enable-amp-ads-1', '=' , '1'),
|
147 |
+
array('enable-amp-ads-type-1', '=' , 'mgid'),
|
148 |
+
),
|
149 |
+
'title' => esc_html__('Data Publisher', 'accelerated-mobile-pages'),
|
150 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Publisher (data-publisher) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
151 |
+
'default' => '',
|
152 |
+
'placeholder'=> 'site.com'
|
153 |
+
);
|
154 |
+
$fields[] = array(
|
155 |
+
'class' => 'child_opt',
|
156 |
+
'id' => 'enable-amp-ads-mgid-field-data-widget',
|
157 |
+
'type' => 'text',
|
158 |
+
'title' => esc_html__('Data Widget', 'accelerated-mobile-pages'),
|
159 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Widget (data-widget) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
160 |
+
'default' => '',
|
161 |
+
'required' => array(
|
162 |
+
array('enable-amp-ads-1', '=' , '1'),
|
163 |
+
array('enable-amp-ads-type-1', '=' , 'mgid'),
|
164 |
+
),
|
165 |
+
'placeholder'=> '3XXXXX'
|
166 |
);
|
167 |
+
$fields[] = array(
|
168 |
+
'class' => 'child_opt',
|
169 |
+
'id' => 'enable-amp-ads-mgid-field-data-con',
|
170 |
+
'type' => 'text',
|
171 |
+
'title' => esc_html__('Data Container', 'accelerated-mobile-pages'),
|
172 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Container (data-container) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
173 |
+
'default' => '',
|
174 |
+
'required' => array(
|
175 |
+
array('enable-amp-ads-1', '=' , '1'),
|
176 |
+
array('enable-amp-ads-type-1', '=' , 'mgid'),
|
177 |
+
),
|
178 |
+
'placeholder'=> 'MXXScriptRootCXXXXXX'
|
179 |
+
);
|
180 |
+
$fields[] = array(
|
181 |
+
'class' => 'child_opt',
|
182 |
+
'id' => 'enable-amp-ads-mgid-flexible',
|
183 |
+
'type' => 'switch',
|
184 |
+
'title' => esc_html__('Flexible AMP widget', 'accelerated-mobile-pages'),
|
185 |
+
'tooltip-subtitle' => esc_html__('It will look like usual "fixed size AMP widget", without any specific width-and-height values.', 'accelerated-mobile-pages'),
|
186 |
+
'default' => 0,
|
187 |
+
'required' => array(
|
188 |
+
array('enable-amp-ads-1', '=' , '1'),
|
189 |
+
array('enable-amp-ads-type-1', '=' , 'mgid'),
|
190 |
+
),
|
191 |
+
);
|
192 |
// Ad 1 ends
|
193 |
|
194 |
// Ad 2 Starts
|
201 |
'true' => 'Enabled',
|
202 |
'false' => 'Disabled',
|
203 |
);
|
204 |
+
$fields[] = array(
|
205 |
+
'class' => 'child_opt child_opt_arrow',
|
206 |
+
'id' => 'enable-amp-ads-type-2',
|
207 |
+
'type' => 'select',
|
208 |
+
'title' => esc_html__('AD Type', 'accelerated-mobile-pages'),
|
209 |
+
'required' => array('enable-amp-ads-2', '=' , '1'),
|
210 |
+
// Must provide key => value pairs for select options
|
211 |
+
'options' => array(
|
212 |
+
'adsense' => esc_html__('Adsense', 'accelerated-mobile-pages'),
|
213 |
+
'mgid' => esc_html__('MGID','accelerated-mobile-pages'),
|
214 |
+
),
|
215 |
+
'default' => 'adsense',
|
216 |
+
);
|
217 |
$fields[] = array(
|
218 |
'class' => 'child_opt child_opt_arrow',
|
219 |
'id' => 'enable-amp-ads-select-2',
|
220 |
'type' => 'select',
|
221 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
222 |
+
'required' => array(
|
223 |
+
array('enable-amp-ads-2', '=' , '1'),
|
224 |
+
array('enable-amp-ads-type-2', '=' , 'adsense'),
|
225 |
+
),
|
226 |
// Must provide key => value pairs for select options
|
227 |
'options' => array(
|
228 |
'1' => '300x250',
|
239 |
'class' => 'child_opt',
|
240 |
'id' =>'enable-amp-ads-text-feild-client-2',
|
241 |
'type' => 'text',
|
242 |
+
'required' => array(
|
243 |
+
array('enable-amp-ads-2', '=' , '1'),
|
244 |
+
array('enable-amp-ads-type-2', '=' , 'adsense'),
|
245 |
+
),
|
246 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
247 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
248 |
'default' => '',
|
255 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
256 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
|
257 |
'default' => '',
|
258 |
+
'required' => array(
|
259 |
+
array('enable-amp-ads-2', '=' , '1'),
|
260 |
+
array('enable-amp-ads-type-2', '=' , 'adsense'),
|
261 |
+
),
|
262 |
'placeholder'=> '70XXXXXX12'
|
263 |
);
|
264 |
$fields[] = array(
|
267 |
'type' => 'switch',
|
268 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
269 |
'default' => 0,
|
270 |
+
'required' => array(
|
271 |
+
array('enable-amp-ads-2', '=' , '1'),
|
272 |
+
array('enable-amp-ads-type-2', '=' , 'adsense'),
|
273 |
+
),
|
274 |
+
);
|
275 |
+
// MGID fields
|
276 |
+
$fields[] = array(
|
277 |
+
'class' => 'child_opt',
|
278 |
+
'id' =>'enable-amp-ads-mgid-width-2',
|
279 |
+
'type' => 'text',
|
280 |
+
'required' => array(
|
281 |
+
array('enable-amp-ads-2', '=' , '1'),
|
282 |
+
array('enable-amp-ads-type-2', '=' , 'mgid'),
|
283 |
+
array('enable-amp-ads-mgid-flexible-2', '=' , '0'),
|
284 |
+
),
|
285 |
+
'title' => esc_html__('Width', 'accelerated-mobile-pages'),
|
286 |
+
'default' => '',
|
287 |
+
'placeholder'=> '600'
|
288 |
+
);
|
289 |
+
$fields[] = array(
|
290 |
+
'class' => 'child_opt',
|
291 |
+
'id' =>'enable-amp-ads-mgid-height-2',
|
292 |
+
'type' => 'text',
|
293 |
+
'required' => array(
|
294 |
+
array('enable-amp-ads-2', '=' , '1'),
|
295 |
+
array('enable-amp-ads-type-2', '=' , 'mgid'),
|
296 |
+
array('enable-amp-ads-mgid-flexible-2', '=' , '0'),
|
297 |
+
),
|
298 |
+
'title' => esc_html__('Height', 'accelerated-mobile-pages'),
|
299 |
+
'default' => '',
|
300 |
+
'placeholder'=> '600'
|
301 |
+
);
|
302 |
+
$fields[] = array(
|
303 |
+
'class' => 'child_opt',
|
304 |
+
'id' =>'enable-amp-ads-mgid-field-data-pub-2',
|
305 |
+
'type' => 'text',
|
306 |
+
'required' => array(
|
307 |
+
array('enable-amp-ads-2', '=' , '1'),
|
308 |
+
array('enable-amp-ads-type-2', '=' , 'mgid'),
|
309 |
+
),
|
310 |
+
'title' => esc_html__('Data Publisher', 'accelerated-mobile-pages'),
|
311 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Publisher (data-publisher) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
312 |
+
'default' => '',
|
313 |
+
'placeholder'=> 'site.com'
|
314 |
+
);
|
315 |
+
$fields[] = array(
|
316 |
+
'class' => 'child_opt',
|
317 |
+
'id' => 'enable-amp-ads-mgid-field-data-widget-2',
|
318 |
+
'type' => 'text',
|
319 |
+
'title' => esc_html__('Data Widget', 'accelerated-mobile-pages'),
|
320 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Widget (data-widget) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
321 |
+
'default' => '',
|
322 |
+
'required' => array(
|
323 |
+
array('enable-amp-ads-2', '=' , '1'),
|
324 |
+
array('enable-amp-ads-type-2', '=' , 'mgid'),
|
325 |
+
),
|
326 |
+
'placeholder'=> '3XXXXX'
|
327 |
+
);
|
328 |
+
$fields[] = array(
|
329 |
+
'class' => 'child_opt',
|
330 |
+
'id' => 'enable-amp-ads-mgid-field-data-con-2',
|
331 |
+
'type' => 'text',
|
332 |
+
'title' => esc_html__('Data Container', 'accelerated-mobile-pages'),
|
333 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Container (data-container) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
334 |
+
'default' => '',
|
335 |
+
'required' => array(
|
336 |
+
array('enable-amp-ads-2', '=' , '1'),
|
337 |
+
array('enable-amp-ads-type-2', '=' , 'mgid'),
|
338 |
+
),
|
339 |
+
'placeholder'=> 'MXXScriptRootCXXXXXX'
|
340 |
+
);
|
341 |
+
$fields[] = array(
|
342 |
+
'class' => 'child_opt',
|
343 |
+
'id' => 'enable-amp-ads-mgid-flexible-2',
|
344 |
+
'type' => 'switch',
|
345 |
+
'title' => esc_html__('Flexible AMP widget', 'accelerated-mobile-pages'),
|
346 |
+
'tooltip-subtitle' => esc_html__('It will look like usual "fixed size AMP widget", without any specific width-and-height values.', 'accelerated-mobile-pages'),
|
347 |
+
'default' => 0,
|
348 |
+
'required' => array(
|
349 |
+
array('enable-amp-ads-2', '=' , '1'),
|
350 |
+
array('enable-amp-ads-type-2', '=' , 'mgid'),
|
351 |
+
),
|
352 |
);
|
353 |
// Ad 2 ends
|
354 |
|
362 |
'true' => 'Enabled',
|
363 |
'false' => 'Disabled',
|
364 |
);
|
365 |
+
$fields[] = array(
|
366 |
+
'class' => 'child_opt child_opt_arrow',
|
367 |
+
'id' => 'enable-amp-ads-type-3',
|
368 |
+
'type' => 'select',
|
369 |
+
'title' => esc_html__('AD Type', 'accelerated-mobile-pages'),
|
370 |
+
'required' => array('enable-amp-ads-3', '=' , '1'),
|
371 |
+
// Must provide key => value pairs for select options
|
372 |
+
'options' => array(
|
373 |
+
'adsense' => esc_html__('Adsense', 'accelerated-mobile-pages'),
|
374 |
+
'mgid' => esc_html__('MGID','accelerated-mobile-pages'),
|
375 |
+
),
|
376 |
+
'default' => 'adsense',
|
377 |
+
);
|
378 |
$fields[] = array(
|
379 |
'class' => 'child_opt child_opt_arrow',
|
380 |
'id' => 'made-amp-ad-3-global',
|
396 |
'id' => 'enable-amp-ads-select-3',
|
397 |
'type' => 'select',
|
398 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
399 |
+
'required' => array(
|
400 |
+
array('enable-amp-ads-3', '=' , '1'),
|
401 |
+
array('enable-amp-ads-type-3', '=' , 'adsense'),
|
402 |
+
),
|
403 |
// Must provide key => value pairs for select options
|
404 |
'options' => array(
|
405 |
'1' => '300x250',
|
416 |
'class' => 'child_opt',
|
417 |
'id' =>'enable-amp-ads-text-feild-client-3',
|
418 |
'type' => 'text',
|
419 |
+
'required' => array(
|
420 |
+
array('enable-amp-ads-3', '=' , '1'),
|
421 |
+
array('enable-amp-ads-type-3', '=' , 'adsense'),
|
422 |
+
),
|
423 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
424 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
425 |
'default' => '',
|
432 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
433 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code.', 'accelerated-mobile-pages'),
|
434 |
'default' => '',
|
435 |
+
'required' => array(
|
436 |
+
array('enable-amp-ads-3', '=' , '1'),
|
437 |
+
array('enable-amp-ads-type-3', '=' , 'adsense'),
|
438 |
+
),
|
439 |
'placeholder'=> '70XXXXXX12'
|
440 |
);
|
441 |
$fields[] = array(
|
444 |
'type' => 'switch',
|
445 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
446 |
'default' => 0,
|
447 |
+
'required' => array(
|
448 |
+
array('enable-amp-ads-3', '=' , '1'),
|
449 |
+
array('enable-amp-ads-type-3', '=' , 'adsense'),
|
450 |
+
),
|
451 |
+
);
|
452 |
+
// MGID fields
|
453 |
+
$fields[] = array(
|
454 |
+
'class' => 'child_opt',
|
455 |
+
'id' =>'enable-amp-ads-mgid-width-3',
|
456 |
+
'type' => 'text',
|
457 |
+
'required' => array(
|
458 |
+
array('enable-amp-ads-3', '=' , '1'),
|
459 |
+
array('enable-amp-ads-type-3', '=' , 'mgid'),
|
460 |
+
array('enable-amp-ads-mgid-flexible-3', '=' , '0'),
|
461 |
+
),
|
462 |
+
'title' => esc_html__('Width', 'accelerated-mobile-pages'),
|
463 |
+
'default' => '',
|
464 |
+
'placeholder'=> '600'
|
465 |
+
);
|
466 |
+
$fields[] = array(
|
467 |
+
'class' => 'child_opt',
|
468 |
+
'id' =>'enable-amp-ads-mgid-height-3',
|
469 |
+
'type' => 'text',
|
470 |
+
'required' => array(
|
471 |
+
array('enable-amp-ads-3', '=' , '1'),
|
472 |
+
array('enable-amp-ads-type-3', '=' , 'mgid'),
|
473 |
+
array('enable-amp-ads-mgid-flexible-3', '=' , '0'),
|
474 |
+
),
|
475 |
+
'title' => esc_html__('Height', 'accelerated-mobile-pages'),
|
476 |
+
'default' => '',
|
477 |
+
'placeholder'=> '600'
|
478 |
+
);
|
479 |
+
$fields[] = array(
|
480 |
+
'class' => 'child_opt',
|
481 |
+
'id' =>'enable-amp-ads-mgid-field-data-pub-3',
|
482 |
+
'type' => 'text',
|
483 |
+
'required' => array(
|
484 |
+
array('enable-amp-ads-3', '=' , '1'),
|
485 |
+
array('enable-amp-ads-type-3', '=' , 'mgid'),
|
486 |
+
),
|
487 |
+
'title' => esc_html__('Data Publisher', 'accelerated-mobile-pages'),
|
488 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Publisher (data-publisher) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
489 |
+
'default' => '',
|
490 |
+
'placeholder'=> 'site.com'
|
491 |
+
);
|
492 |
+
$fields[] = array(
|
493 |
+
'class' => 'child_opt',
|
494 |
+
'id' => 'enable-amp-ads-mgid-field-data-widget-3',
|
495 |
+
'type' => 'text',
|
496 |
+
'title' => esc_html__('Data Widget', 'accelerated-mobile-pages'),
|
497 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Widget (data-widget) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
498 |
+
'default' => '',
|
499 |
+
'required' => array(
|
500 |
+
array('enable-amp-ads-3', '=' , '1'),
|
501 |
+
array('enable-amp-ads-type-3', '=' , 'mgid'),
|
502 |
+
),
|
503 |
+
'placeholder'=> '3XXXXX'
|
504 |
+
);
|
505 |
+
$fields[] = array(
|
506 |
+
'class' => 'child_opt',
|
507 |
+
'id' => 'enable-amp-ads-mgid-field-data-con-3',
|
508 |
+
'type' => 'text',
|
509 |
+
'title' => esc_html__('Data Container', 'accelerated-mobile-pages'),
|
510 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Container (data-container) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
511 |
+
'default' => '',
|
512 |
+
'required' => array(
|
513 |
+
array('enable-amp-ads-3', '=' , '1'),
|
514 |
+
array('enable-amp-ads-type-3', '=' , 'mgid'),
|
515 |
+
),
|
516 |
+
'placeholder'=> 'MXXScriptRootCXXXXXX'
|
517 |
+
);
|
518 |
+
$fields[] = array(
|
519 |
+
'class' => 'child_opt',
|
520 |
+
'id' => 'enable-amp-ads-mgid-flexible-3',
|
521 |
+
'type' => 'switch',
|
522 |
+
'title' => esc_html__('Flexible AMP widget', 'accelerated-mobile-pages'),
|
523 |
+
'tooltip-subtitle' => esc_html__('It will look like usual "fixed size AMP widget", without any specific width-and-height values.', 'accelerated-mobile-pages'),
|
524 |
+
'default' => 0,
|
525 |
+
'required' => array(
|
526 |
+
array('enable-amp-ads-3', '=' , '1'),
|
527 |
+
array('enable-amp-ads-type-3', '=' , 'mgid'),
|
528 |
+
),
|
529 |
);
|
530 |
// Ad 3 ends
|
531 |
|
539 |
'true' => 'Enabled',
|
540 |
'false' => 'Disabled',
|
541 |
);
|
542 |
+
$fields[] = array(
|
543 |
+
'class' => 'child_opt child_opt_arrow',
|
544 |
+
'id' => 'enable-amp-ads-type-4',
|
545 |
+
'type' => 'select',
|
546 |
+
'title' => esc_html__('AD Type', 'accelerated-mobile-pages'),
|
547 |
+
'required' => array('enable-amp-ads-4', '=' , '1'),
|
548 |
+
// Must provide key => value pairs for select options
|
549 |
+
'options' => array(
|
550 |
+
'adsense' => esc_html__('Adsense', 'accelerated-mobile-pages'),
|
551 |
+
'mgid' => esc_html__('MGID','accelerated-mobile-pages'),
|
552 |
+
),
|
553 |
+
'default' => 'adsense',
|
554 |
+
);
|
555 |
$fields[] = array(
|
556 |
'class' => 'child_opt child_opt_arrow',
|
557 |
'id' => 'enable-amp-ads-select-4',
|
558 |
'type' => 'select',
|
559 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
560 |
+
'required' => array(
|
561 |
+
array('enable-amp-ads-4', '=' , '1'),
|
562 |
+
array('enable-amp-ads-type-4', '=' , 'adsense'),
|
563 |
+
),
|
564 |
// Must provide key => value pairs for select options
|
565 |
'options' => array(
|
566 |
'1' => esc_html__('300x250','accelerated-mobile-pages'),
|
577 |
'class' => 'child_opt',
|
578 |
'id' =>'enable-amp-ads-text-feild-client-4',
|
579 |
'type' => 'text',
|
580 |
+
'required' => array(
|
581 |
+
array('enable-amp-ads-4', '=' , '1'),
|
582 |
+
array('enable-amp-ads-type-4', '=' , 'adsense'),
|
583 |
+
),
|
584 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
585 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
586 |
'default' => '',
|
593 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
594 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
|
595 |
'default' => '',
|
596 |
+
'required' => array(
|
597 |
+
array('enable-amp-ads-4', '=' , '1'),
|
598 |
+
array('enable-amp-ads-type-4', '=' , 'adsense'),
|
599 |
+
),
|
600 |
'placeholder'=> '70XXXXXX12'
|
601 |
);
|
602 |
$fields[] = array(
|
605 |
'type' => 'switch',
|
606 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
607 |
'default' => 0,
|
608 |
+
'required' => array(
|
609 |
+
array('enable-amp-ads-4', '=' , '1'),
|
610 |
+
array('enable-amp-ads-type-4', '=' , 'adsense'),
|
611 |
+
),
|
612 |
+
);
|
613 |
+
// MGID fields
|
614 |
+
$fields[] = array(
|
615 |
+
'class' => 'child_opt',
|
616 |
+
'id' =>'enable-amp-ads-mgid-width-4',
|
617 |
+
'type' => 'text',
|
618 |
+
'required' => array(
|
619 |
+
array('enable-amp-ads-4', '=' , '1'),
|
620 |
+
array('enable-amp-ads-type-4', '=' , 'mgid'),
|
621 |
+
array('enable-amp-ads-mgid-flexible-4', '=' , '0'),
|
622 |
+
),
|
623 |
+
'title' => esc_html__('Width', 'accelerated-mobile-pages'),
|
624 |
+
'default' => '',
|
625 |
+
'placeholder'=> '600'
|
626 |
+
);
|
627 |
+
$fields[] = array(
|
628 |
+
'class' => 'child_opt',
|
629 |
+
'id' =>'enable-amp-ads-mgid-height-4',
|
630 |
+
'type' => 'text',
|
631 |
+
'required' => array(
|
632 |
+
array('enable-amp-ads-4', '=' , '1'),
|
633 |
+
array('enable-amp-ads-type-4', '=' , 'mgid'),
|
634 |
+
array('enable-amp-ads-mgid-flexible-4', '=' , '0'),
|
635 |
+
),
|
636 |
+
'title' => esc_html__('Height', 'accelerated-mobile-pages'),
|
637 |
+
'default' => '',
|
638 |
+
'placeholder'=> '600'
|
639 |
+
);
|
640 |
+
$fields[] = array(
|
641 |
+
'class' => 'child_opt',
|
642 |
+
'id' =>'enable-amp-ads-mgid-field-data-pub-4',
|
643 |
+
'type' => 'text',
|
644 |
+
'required' => array(
|
645 |
+
array('enable-amp-ads-4', '=' , '1'),
|
646 |
+
array('enable-amp-ads-type-4', '=' , 'mgid'),
|
647 |
+
),
|
648 |
+
'title' => esc_html__('Data Publisher', 'accelerated-mobile-pages'),
|
649 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Publisher (data-publisher) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
650 |
+
'default' => '',
|
651 |
+
'placeholder'=> 'site.com'
|
652 |
+
);
|
653 |
+
$fields[] = array(
|
654 |
+
'class' => 'child_opt',
|
655 |
+
'id' => 'enable-amp-ads-mgid-field-data-widget-4',
|
656 |
+
'type' => 'text',
|
657 |
+
'title' => esc_html__('Data Widget', 'accelerated-mobile-pages'),
|
658 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Widget (data-widget) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
659 |
+
'default' => '',
|
660 |
+
'required' => array(
|
661 |
+
array('enable-amp-ads-4', '=' , '1'),
|
662 |
+
array('enable-amp-ads-type-4', '=' , 'mgid'),
|
663 |
+
),
|
664 |
+
'placeholder'=> '3XXXXX'
|
665 |
+
);
|
666 |
+
$fields[] = array(
|
667 |
+
'class' => 'child_opt',
|
668 |
+
'id' => 'enable-amp-ads-mgid-field-data-con-4',
|
669 |
+
'type' => 'text',
|
670 |
+
'title' => esc_html__('Data Container', 'accelerated-mobile-pages'),
|
671 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Container (data-container) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
672 |
+
'default' => '',
|
673 |
+
'required' => array(
|
674 |
+
array('enable-amp-ads-4', '=' , '1'),
|
675 |
+
array('enable-amp-ads-type-4', '=' , 'mgid'),
|
676 |
+
),
|
677 |
+
'placeholder'=> 'MXXScriptRootCXXXXXX'
|
678 |
+
);
|
679 |
+
$fields[] = array(
|
680 |
+
'class' => 'child_opt',
|
681 |
+
'id' => 'enable-amp-ads-mgid-flexible-4',
|
682 |
+
'type' => 'switch',
|
683 |
+
'title' => esc_html__('Flexible AMP widget', 'accelerated-mobile-pages'),
|
684 |
+
'tooltip-subtitle' => esc_html__('It will look like usual "fixed size AMP widget", without any specific width-and-height values.', 'accelerated-mobile-pages'),
|
685 |
+
'default' => 0,
|
686 |
+
'required' => array(
|
687 |
+
array('enable-amp-ads-4', '=' , '1'),
|
688 |
+
array('enable-amp-ads-type-4', '=' , 'mgid'),
|
689 |
+
),
|
690 |
);
|
691 |
// Ad 4 ends
|
692 |
|
700 |
'true' => 'Enabled',
|
701 |
'false' => 'Disabled',
|
702 |
);
|
703 |
+
$fields[] = array(
|
704 |
+
'class' => 'child_opt child_opt_arrow',
|
705 |
+
'id' => 'enable-amp-ads-type-5',
|
706 |
+
'type' => 'select',
|
707 |
+
'title' => esc_html__('AD Type', 'accelerated-mobile-pages'),
|
708 |
+
'required' => array('enable-amp-ads-5', '=' , '1'),
|
709 |
+
// Must provide key => value pairs for select options
|
710 |
+
'options' => array(
|
711 |
+
'adsense' => esc_html__('Adsense', 'accelerated-mobile-pages'),
|
712 |
+
'mgid' => esc_html__('MGID','accelerated-mobile-pages'),
|
713 |
+
),
|
714 |
+
'default' => 'adsense',
|
715 |
+
);
|
716 |
$fields[] = array(
|
717 |
'class' => 'child_opt child_opt_arrow',
|
718 |
'id' => 'enable-amp-ads-select-5',
|
719 |
'type' => 'select',
|
720 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
721 |
+
'required' => array(
|
722 |
+
array('enable-amp-ads-5', '=' , '1'),
|
723 |
+
array('enable-amp-ads-type-5', '=' , 'adsense'),
|
724 |
+
),
|
725 |
// Must provide key => value pairs for select options
|
726 |
'options' => array(
|
727 |
'1' => esc_html__('300x250','accelerated-mobile-pages'),
|
738 |
'class' => 'child_opt',
|
739 |
'id' =>'enable-amp-ads-text-feild-client-5',
|
740 |
'type' => 'text',
|
741 |
+
'required' => array(
|
742 |
+
array('enable-amp-ads-5', '=' , '1'),
|
743 |
+
array('enable-amp-ads-type-5', '=' , 'adsense'),
|
744 |
+
),
|
745 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
746 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
747 |
'default' => '',
|
754 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
755 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
|
756 |
'default' => '',
|
757 |
+
'required' => array(
|
758 |
+
array('enable-amp-ads-5', '=' , '1'),
|
759 |
+
array('enable-amp-ads-type-5', '=' , 'adsense'),
|
760 |
+
),
|
761 |
'placeholder'=> '70XXXXXX12'
|
762 |
);
|
763 |
$fields[] = array(
|
766 |
'type' => 'switch',
|
767 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
768 |
'default' => 0,
|
769 |
+
'required' => array(
|
770 |
+
array('enable-amp-ads-5', '=' , '1'),
|
771 |
+
array('enable-amp-ads-type-5', '=' , 'adsense'),
|
772 |
+
),
|
773 |
+
);
|
774 |
+
// MGID fields
|
775 |
+
$fields[] = array(
|
776 |
+
'class' => 'child_opt',
|
777 |
+
'id' =>'enable-amp-ads-mgid-width-5',
|
778 |
+
'type' => 'text',
|
779 |
+
'required' => array(
|
780 |
+
array('enable-amp-ads-5', '=' , '1'),
|
781 |
+
array('enable-amp-ads-type-5', '=' , 'mgid'),
|
782 |
+
array('enable-amp-ads-mgid-flexible-5', '=' , '0'),
|
783 |
+
),
|
784 |
+
'title' => esc_html__('Width', 'accelerated-mobile-pages'),
|
785 |
+
'default' => '',
|
786 |
+
'placeholder'=> '600'
|
787 |
+
);
|
788 |
+
$fields[] = array(
|
789 |
+
'class' => 'child_opt',
|
790 |
+
'id' =>'enable-amp-ads-mgid-height-5',
|
791 |
+
'type' => 'text',
|
792 |
+
'required' => array(
|
793 |
+
array('enable-amp-ads-5', '=' , '1'),
|
794 |
+
array('enable-amp-ads-type-5', '=' , 'mgid'),
|
795 |
+
array('enable-amp-ads-mgid-flexible-5', '=' , '0'),
|
796 |
+
),
|
797 |
+
'title' => esc_html__('Height', 'accelerated-mobile-pages'),
|
798 |
+
'default' => '',
|
799 |
+
'placeholder'=> '600'
|
800 |
+
);
|
801 |
+
$fields[] = array(
|
802 |
+
'class' => 'child_opt',
|
803 |
+
'id' =>'enable-amp-ads-mgid-field-data-pub-5',
|
804 |
+
'type' => 'text',
|
805 |
+
'required' => array(
|
806 |
+
array('enable-amp-ads-5', '=' , '1'),
|
807 |
+
array('enable-amp-ads-type-5', '=' , 'mgid'),
|
808 |
+
),
|
809 |
+
'title' => esc_html__('Data Publisher', 'accelerated-mobile-pages'),
|
810 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Publisher (data-publisher) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
811 |
+
'default' => '',
|
812 |
+
'placeholder'=> 'site.com'
|
813 |
+
);
|
814 |
+
$fields[] = array(
|
815 |
+
'class' => 'child_opt',
|
816 |
+
'id' => 'enable-amp-ads-mgid-field-data-widget-5',
|
817 |
+
'type' => 'text',
|
818 |
+
'title' => esc_html__('Data Widget', 'accelerated-mobile-pages'),
|
819 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Widget (data-widget) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
820 |
+
'default' => '',
|
821 |
+
'required' => array(
|
822 |
+
array('enable-amp-ads-5', '=' , '1'),
|
823 |
+
array('enable-amp-ads-type-5', '=' , 'mgid'),
|
824 |
+
),
|
825 |
+
'placeholder'=> '3XXXXX'
|
826 |
+
);
|
827 |
+
$fields[] = array(
|
828 |
+
'class' => 'child_opt',
|
829 |
+
'id' => 'enable-amp-ads-mgid-field-data-con-5',
|
830 |
+
'type' => 'text',
|
831 |
+
'title' => esc_html__('Data Container', 'accelerated-mobile-pages'),
|
832 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Container (data-container) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
833 |
+
'default' => '',
|
834 |
+
'required' => array(
|
835 |
+
array('enable-amp-ads-5', '=' , '1'),
|
836 |
+
array('enable-amp-ads-type-5', '=' , 'mgid'),
|
837 |
+
),
|
838 |
+
'placeholder'=> 'MXXScriptRootCXXXXXX'
|
839 |
+
);
|
840 |
+
$fields[] = array(
|
841 |
+
'class' => 'child_opt',
|
842 |
+
'id' => 'enable-amp-ads-mgid-flexible-5',
|
843 |
+
'type' => 'switch',
|
844 |
+
'title' => esc_html__('Flexible AMP widget', 'accelerated-mobile-pages'),
|
845 |
+
'tooltip-subtitle' => esc_html__('It will look like usual "fixed size AMP widget", without any specific width-and-height values.', 'accelerated-mobile-pages'),
|
846 |
+
'default' => 0,
|
847 |
+
'required' => array(
|
848 |
+
array('enable-amp-ads-5', '=' , '1'),
|
849 |
+
array('enable-amp-ads-type-5', '=' , 'mgid'),
|
850 |
+
),
|
851 |
);
|
852 |
|
853 |
//Ad 6 Starts
|
861 |
'true' => 'Enabled',
|
862 |
'false' => 'Disabled',
|
863 |
);
|
864 |
+
$fields[] = array(
|
865 |
+
'class' => 'child_opt child_opt_arrow',
|
866 |
+
'id' => 'enable-amp-ads-type-6',
|
867 |
+
'type' => 'select',
|
868 |
+
'title' => esc_html__('AD Type', 'accelerated-mobile-pages'),
|
869 |
+
'required' => array('enable-amp-ads-6', '=' , '1'),
|
870 |
+
// Must provide key => value pairs for select options
|
871 |
+
'options' => array(
|
872 |
+
'adsense' => esc_html__('Adsense', 'accelerated-mobile-pages'),
|
873 |
+
'mgid' => esc_html__('MGID','accelerated-mobile-pages'),
|
874 |
+
),
|
875 |
+
'default' => 'adsense',
|
876 |
+
);
|
877 |
$fields[] = array(
|
878 |
'class' => 'child_opt child_opt_arrow',
|
879 |
'id' => 'enable-amp-ads-select-6',
|
880 |
'type' => 'select',
|
881 |
'title' => esc_html__('AD Size', 'accelerated-mobile-pages'),
|
882 |
+
'required' => array(
|
883 |
+
array('enable-amp-ads-6', '=' , '1'),
|
884 |
+
array('enable-amp-ads-type-6', '=' , 'adsense'),
|
885 |
+
),
|
886 |
// Must provide key => value pairs for select options
|
887 |
'options' => array(
|
888 |
'1' => esc_html__('300x250','accelerated-mobile-pages'),
|
899 |
'class' => 'child_opt',
|
900 |
'id' =>'enable-amp-ads-text-feild-client-6',
|
901 |
'type' => 'text',
|
902 |
+
'required' => array(
|
903 |
+
array('enable-amp-ads-6', '=' , '1'),
|
904 |
+
array('enable-amp-ads-type-6', '=' , 'adsense'),
|
905 |
+
),
|
906 |
'title' => esc_html__('Data AD Client', 'accelerated-mobile-pages'),
|
907 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Client (data-ad-client) from the adsense ad code.', 'accelerated-mobile-pages'),
|
908 |
'default' => '',
|
915 |
'title' => esc_html__('Data AD Slot', 'accelerated-mobile-pages'),
|
916 |
'tooltip-subtitle' => esc_html__('Enter the Data Ad Slot (data-ad-slot) from the adsense ad code. ', 'accelerated-mobile-pages'),
|
917 |
'default' => '',
|
918 |
+
'required' => array(
|
919 |
+
array('enable-amp-ads-6', '=' , '1'),
|
920 |
+
array('enable-amp-ads-type-6', '=' , 'adsense'),
|
921 |
+
),
|
922 |
'placeholder'=> '70XXXXXX12'
|
923 |
);
|
924 |
$fields[] = array(
|
927 |
'type' => 'switch',
|
928 |
'title' => esc_html__('Responsive Ad unit', 'accelerated-mobile-pages'),
|
929 |
'default' => 0,
|
930 |
+
'required' => array(
|
931 |
+
array('enable-amp-ads-6', '=' , '1'),
|
932 |
+
array('enable-amp-ads-type-6', '=' , 'adsense'),
|
933 |
+
),
|
934 |
+
);
|
935 |
+
// MGID fields
|
936 |
+
$fields[] = array(
|
937 |
+
'class' => 'child_opt',
|
938 |
+
'id' =>'enable-amp-ads-mgid-width-6',
|
939 |
+
'type' => 'text',
|
940 |
+
'required' => array(
|
941 |
+
array('enable-amp-ads-6', '=' , '1'),
|
942 |
+
array('enable-amp-ads-type-6', '=' , 'mgid'),
|
943 |
+
array('enable-amp-ads-mgid-flexible-6', '=' , '0'),
|
944 |
+
),
|
945 |
+
'title' => esc_html__('Width', 'accelerated-mobile-pages'),
|
946 |
+
'default' => '',
|
947 |
+
'placeholder'=> '600'
|
948 |
+
);
|
949 |
+
$fields[] = array(
|
950 |
+
'class' => 'child_opt',
|
951 |
+
'id' =>'enable-amp-ads-mgid-height-6',
|
952 |
+
'type' => 'text',
|
953 |
+
'required' => array(
|
954 |
+
array('enable-amp-ads-6', '=' , '1'),
|
955 |
+
array('enable-amp-ads-type-6', '=' , 'mgid'),
|
956 |
+
array('enable-amp-ads-mgid-flexible-6', '=' , '0'),
|
957 |
+
),
|
958 |
+
'title' => esc_html__('Height', 'accelerated-mobile-pages'),
|
959 |
+
'default' => '',
|
960 |
+
'placeholder'=> '600'
|
961 |
+
);
|
962 |
+
$fields[] = array(
|
963 |
+
'class' => 'child_opt',
|
964 |
+
'id' =>'enable-amp-ads-mgid-field-data-pub-6',
|
965 |
+
'type' => 'text',
|
966 |
+
'required' => array(
|
967 |
+
array('enable-amp-ads-6', '=' , '1'),
|
968 |
+
array('enable-amp-ads-type-6', '=' , 'mgid'),
|
969 |
+
),
|
970 |
+
'title' => esc_html__('Data Publisher', 'accelerated-mobile-pages'),
|
971 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Publisher (data-publisher) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
972 |
+
'default' => '',
|
973 |
+
'placeholder'=> 'site.com'
|
974 |
+
);
|
975 |
+
$fields[] = array(
|
976 |
+
'class' => 'child_opt',
|
977 |
+
'id' => 'enable-amp-ads-mgid-field-data-widget-6',
|
978 |
+
'type' => 'text',
|
979 |
+
'title' => esc_html__('Data Widget', 'accelerated-mobile-pages'),
|
980 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Widget (data-widget) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
981 |
+
'default' => '',
|
982 |
+
'required' => array(
|
983 |
+
array('enable-amp-ads-6', '=' , '1'),
|
984 |
+
array('enable-amp-ads-type-6', '=' , 'mgid'),
|
985 |
+
),
|
986 |
+
'placeholder'=> '3XXXXX'
|
987 |
+
);
|
988 |
+
$fields[] = array(
|
989 |
+
'class' => 'child_opt',
|
990 |
+
'id' => 'enable-amp-ads-mgid-field-data-con-6',
|
991 |
+
'type' => 'text',
|
992 |
+
'title' => esc_html__('Data Container', 'accelerated-mobile-pages'),
|
993 |
+
'tooltip-subtitle' => esc_html__('Enter the Data Container (data-container) from the MGID AD AMP code.', 'accelerated-mobile-pages'),
|
994 |
+
'default' => '',
|
995 |
+
'required' => array(
|
996 |
+
array('enable-amp-ads-6', '=' , '1'),
|
997 |
+
array('enable-amp-ads-type-6', '=' , 'mgid'),
|
998 |
+
),
|
999 |
+
'placeholder'=> 'MXXScriptRootCXXXXXX'
|
1000 |
+
);
|
1001 |
+
$fields[] = array(
|
1002 |
+
'class' => 'child_opt',
|
1003 |
+
'id' => 'enable-amp-ads-mgid-flexible-6',
|
1004 |
+
'type' => 'switch',
|
1005 |
+
'title' => esc_html__('Flexible AMP widget', 'accelerated-mobile-pages'),
|
1006 |
+
'tooltip-subtitle' => esc_html__('It will look like usual "fixed size AMP widget", without any specific width-and-height values.', 'accelerated-mobile-pages'),
|
1007 |
+
'default' => 0,
|
1008 |
+
'required' => array(
|
1009 |
+
array('enable-amp-ads-6', '=' , '1'),
|
1010 |
+
array('enable-amp-ads-type-6', '=' , 'mgid'),
|
1011 |
+
),
|
1012 |
);
|
1013 |
}
|
1014 |
}
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// MGID
|
3 |
+
if( !class_exists('adsforwp_output_functions') ){
|
4 |
+
add_filter('ampforwp_modify_ad_1','ampforwp_mgid_markup_ad_1',10,1);
|
5 |
+
add_filter('ampforwp_modify_ad_2','ampforwp_mgid_markup_ad_2',10,1);
|
6 |
+
add_filter('ampforwp_modify_ad_3','ampforwp_mgid_markup_ad_3',10,1);
|
7 |
+
add_filter('ampforwp_modify_ad_4','ampforwp_mgid_markup_ad_4',10,1);
|
8 |
+
add_filter('ampforwp_modify_ad_5','ampforwp_mgid_markup_ad_5',10,1);
|
9 |
+
add_filter('ampforwp_modify_ad_6','ampforwp_mgid_markup_ad_6',10,1);
|
10 |
+
add_filter('ampforwp_modify_ad_7','ampforwp_mgid_markup_ad_7',10,1);
|
11 |
+
add_filter('ampforwp_modify_ad_8','ampforwp_mgid_markup_ad_8',10,1);
|
12 |
+
}
|
13 |
+
|
14 |
+
function ampforwp_mgid_markup_ad_1($output){
|
15 |
+
$wh_value = '';
|
16 |
+
if( ampforwp_get_setting('enable-amp-ads-1') && 'mgid' == ampforwp_get_setting('enable-amp-ads-type-1') ) {
|
17 |
+
$width = ampforwp_get_setting('enable-amp-ads-mgid-width');
|
18 |
+
$height = ampforwp_get_setting('enable-amp-ads-mgid-height');
|
19 |
+
$data_pub = ampforwp_get_setting('enable-amp-ads-mgid-field-data-pub');
|
20 |
+
$data_wid = ampforwp_get_setting('enable-amp-ads-mgid-field-data-widget');
|
21 |
+
$data_cont = ampforwp_get_setting('enable-amp-ads-mgid-field-data-con');
|
22 |
+
$output = '<div class="amp-ad-wrapper amp_ad_1">
|
23 |
+
<amp-ad class="amp-ad-1"
|
24 |
+
'.(!ampforwp_get_setting('enable-amp-ads-mgid-flexible')? 'width="'.esc_attr( $width ).'" height="'.esc_attr( $height ).'"' : '' ).'
|
25 |
+
type="mgid"
|
26 |
+
data-publisher="'.esc_attr( $data_pub ).'"
|
27 |
+
data-widget="'.esc_attr( $data_wid ).'"
|
28 |
+
data-container="'.esc_attr( $data_cont ).'">
|
29 |
+
</amp-ad>
|
30 |
+
'.ampforwp_ads_sponsorship().'
|
31 |
+
</div>';
|
32 |
+
}
|
33 |
+
return $output;
|
34 |
+
}
|
35 |
+
|
36 |
+
function ampforwp_mgid_markup_ad_2($output){
|
37 |
+
if( ampforwp_get_setting('enable-amp-ads-2') && 'mgid' == ampforwp_get_setting('enable-amp-ads-type-2') ) {
|
38 |
+
$width = ampforwp_get_setting('enable-amp-ads-mgid-width-2');
|
39 |
+
$height = ampforwp_get_setting('enable-amp-ads-mgid-height-2');
|
40 |
+
$data_pub = ampforwp_get_setting('enable-amp-ads-mgid-field-data-pub-2');
|
41 |
+
$data_wid = ampforwp_get_setting('enable-amp-ads-mgid-field-data-widget-2');
|
42 |
+
$data_cont = ampforwp_get_setting('enable-amp-ads-mgid-field-data-con-2');
|
43 |
+
$output = '<div class="amp-ad-wrapper amp_ad_2">
|
44 |
+
<amp-ad class="amp-ad-2"
|
45 |
+
'.(!ampforwp_get_setting('enable-amp-ads-mgid-flexible-2')? 'width="'.esc_attr( $width ).'" height="'.esc_attr( $height ).'"' : '' ).'
|
46 |
+
type="mgid"
|
47 |
+
data-publisher="'.esc_attr( $data_pub ).'"
|
48 |
+
data-widget="'.esc_attr( $data_wid ).'"
|
49 |
+
data-container="'.esc_attr( $data_cont ).'">
|
50 |
+
</amp-ad>
|
51 |
+
'.ampforwp_ads_sponsorship().'
|
52 |
+
</div>';
|
53 |
+
}
|
54 |
+
return $output;
|
55 |
+
}
|
56 |
+
|
57 |
+
function ampforwp_mgid_markup_ad_3($output){
|
58 |
+
if( ampforwp_get_setting('enable-amp-ads-3') && 'mgid' == ampforwp_get_setting('enable-amp-ads-type-3') ) {
|
59 |
+
$width = ampforwp_get_setting('enable-amp-ads-mgid-width-3');
|
60 |
+
$height = ampforwp_get_setting('enable-amp-ads-mgid-height-3');
|
61 |
+
$data_pub = ampforwp_get_setting('enable-amp-ads-mgid-field-data-pub-3');
|
62 |
+
$data_wid = ampforwp_get_setting('enable-amp-ads-mgid-field-data-widget-3');
|
63 |
+
$data_cont = ampforwp_get_setting('enable-amp-ads-mgid-field-data-con-3');
|
64 |
+
$output = '<div class="amp-ad-wrapper amp_ad_3">
|
65 |
+
<amp-ad class="amp-ad-3"
|
66 |
+
'.(!ampforwp_get_setting('enable-amp-ads-mgid-flexible-3')? 'width="'.esc_attr( $width ).'" height="'.esc_attr( $height ).'"' : '' ).'
|
67 |
+
type="mgid"
|
68 |
+
data-publisher="'.esc_attr( $data_pub ).'"
|
69 |
+
data-widget="'.esc_attr( $data_wid ).'"
|
70 |
+
data-container="'.esc_attr( $data_cont ).'">
|
71 |
+
</amp-ad>
|
72 |
+
'.ampforwp_ads_sponsorship().'
|
73 |
+
</div>';
|
74 |
+
}
|
75 |
+
return $output;
|
76 |
+
}
|
77 |
+
|
78 |
+
function ampforwp_mgid_markup_ad_4($output){
|
79 |
+
if( ampforwp_get_setting('enable-amp-ads-4') && 'mgid' == ampforwp_get_setting('enable-amp-ads-type-4') ) {
|
80 |
+
$width = ampforwp_get_setting('enable-amp-ads-mgid-width-4');
|
81 |
+
$height = ampforwp_get_setting('enable-amp-ads-mgid-height-4');
|
82 |
+
$data_pub = ampforwp_get_setting('enable-amp-ads-mgid-field-data-pub-4');
|
83 |
+
$data_wid = ampforwp_get_setting('enable-amp-ads-mgid-field-data-widget-4');
|
84 |
+
$data_cont = ampforwp_get_setting('enable-amp-ads-mgid-field-data-con-4');
|
85 |
+
$output = '<div class="amp-ad-wrapper amp_ad_4">
|
86 |
+
<amp-ad class="amp-ad-4"
|
87 |
+
'.(!ampforwp_get_setting('enable-amp-ads-mgid-flexible-4')? 'width="'.esc_attr( $width ).'" height="'.esc_attr( $height ).'"' : '' ).'
|
88 |
+
type="mgid"
|
89 |
+
data-publisher="'.esc_attr( $data_pub ).'"
|
90 |
+
data-widget="'.esc_attr( $data_wid ).'"
|
91 |
+
data-container="'.esc_attr( $data_cont ).'">
|
92 |
+
</amp-ad>
|
93 |
+
'.ampforwp_ads_sponsorship().'
|
94 |
+
</div>';
|
95 |
+
}
|
96 |
+
return $output;
|
97 |
+
}
|
98 |
+
|
99 |
+
function ampforwp_mgid_markup_ad_5($output){
|
100 |
+
if( ampforwp_get_setting('enable-amp-ads-5') && 'mgid' == ampforwp_get_setting('enable-amp-ads-type-5') ) {
|
101 |
+
$width = ampforwp_get_setting('enable-amp-ads-mgid-width-5');
|
102 |
+
$height = ampforwp_get_setting('enable-amp-ads-mgid-height-5');
|
103 |
+
$data_pub = ampforwp_get_setting('enable-amp-ads-mgid-field-data-pub-5');
|
104 |
+
$data_wid = ampforwp_get_setting('enable-amp-ads-mgid-field-data-widget-5');
|
105 |
+
$data_cont = ampforwp_get_setting('enable-amp-ads-mgid-field-data-con-5');
|
106 |
+
$output = '<div class="amp-ad-wrapper amp_ad_5">
|
107 |
+
<amp-ad class="amp-ad-5"
|
108 |
+
'.(!ampforwp_get_setting('enable-amp-ads-mgid-flexible-5')? 'width="'.esc_attr( $width ).'" height="'.esc_attr( $height ).'"' : '' ).'
|
109 |
+
type="mgid"
|
110 |
+
data-publisher="'.esc_attr( $data_pub ).'"
|
111 |
+
data-widget="'.esc_attr( $data_wid ).'"
|
112 |
+
data-container="'.esc_attr( $data_cont ).'">
|
113 |
+
</amp-ad>
|
114 |
+
'.ampforwp_ads_sponsorship().'
|
115 |
+
</div>';
|
116 |
+
}
|
117 |
+
return $output;
|
118 |
+
}
|
119 |
+
|
120 |
+
function ampforwp_mgid_markup_ad_6($output){
|
121 |
+
if( ampforwp_get_setting('enable-amp-ads-6') && 'mgid' == ampforwp_get_setting('enable-amp-ads-type-6') ) {
|
122 |
+
$width = ampforwp_get_setting('enable-amp-ads-mgid-width-6');
|
123 |
+
$height = ampforwp_get_setting('enable-amp-ads-mgid-height-6');
|
124 |
+
$data_pub = ampforwp_get_setting('enable-amp-ads-mgid-field-data-pub-6');
|
125 |
+
$data_wid = ampforwp_get_setting('enable-amp-ads-mgid-field-data-widget-6');
|
126 |
+
$data_cont = ampforwp_get_setting('enable-amp-ads-mgid-field-data-con-6');
|
127 |
+
$output = '<div class="amp-ad-wrapper amp_ad_6">
|
128 |
+
<amp-ad class="amp-ad-6"
|
129 |
+
'.(!ampforwp_get_setting('enable-amp-ads-mgid-flexible-6')? 'width="'.esc_attr( $width ).'" height="'.esc_attr( $height ).'"' : '' ).'
|
130 |
+
type="mgid"
|
131 |
+
data-publisher="'.esc_attr( $data_pub ).'"
|
132 |
+
data-widget="'.esc_attr( $data_wid ).'"
|
133 |
+
data-container="'.esc_attr( $data_cont ).'">
|
134 |
+
</amp-ad>
|
135 |
+
'.ampforwp_ads_sponsorship().'
|
136 |
+
</div>';
|
137 |
+
}
|
138 |
+
return $output;
|
139 |
+
}
|
140 |
+
|
141 |
+
function ampforwp_mgid_markup_ad_7($output){
|
142 |
+
if( ampforwp_get_setting('enable-amp-ads-7') && 'mgid' == ampforwp_get_setting('enable-amp-ads-type-7') ) {
|
143 |
+
$width = ampforwp_get_setting('enable-amp-ads-mgid-width-7');
|
144 |
+
$height = ampforwp_get_setting('enable-amp-ads-mgid-height-7');
|
145 |
+
$data_pub = ampforwp_get_setting('enable-amp-ads-mgid-field-data-pub-7');
|
146 |
+
$data_wid = ampforwp_get_setting('enable-amp-ads-mgid-field-data-widget-7');
|
147 |
+
$data_cont = ampforwp_get_setting('enable-amp-ads-mgid-field-data-con-7');
|
148 |
+
$output = '<div class="amp-ad-wrapper amp_ad_7">
|
149 |
+
<amp-ad class="amp-ad-7"
|
150 |
+
'.(!ampforwp_get_setting('enable-amp-ads-mgid-flexible-7')? 'width="'.esc_attr( $width ).'" height="'.esc_attr( $height ).'"' : '' ).'
|
151 |
+
type="mgid"
|
152 |
+
data-publisher="'.esc_attr( $data_pub ).'"
|
153 |
+
data-widget="'.esc_attr( $data_wid ).'"
|
154 |
+
data-container="'.esc_attr( $data_cont ).'">
|
155 |
+
</amp-ad>
|
156 |
+
'.ampforwp_ads_sponsorship().'
|
157 |
+
</div>';
|
158 |
+
}
|
159 |
+
return $output;
|
160 |
+
}
|
161 |
+
|
162 |
+
function ampforwp_mgid_markup_ad_8($output){
|
163 |
+
if( ampforwp_get_setting('enable-amp-ads-8') && 'mgid' == ampforwp_get_setting('enable-amp-ads-type-8') ) {
|
164 |
+
$width = ampforwp_get_setting('enable-amp-ads-mgid-width-8');
|
165 |
+
$height = ampforwp_get_setting('enable-amp-ads-mgid-height-8');
|
166 |
+
$data_pub = ampforwp_get_setting('enable-amp-ads-mgid-field-data-pub-8');
|
167 |
+
$data_wid = ampforwp_get_setting('enable-amp-ads-mgid-field-data-widget-8');
|
168 |
+
$data_cont = ampforwp_get_setting('enable-amp-ads-mgid-field-data-con-8');
|
169 |
+
$output = '<div class="amp-ad-wrapper amp_ad_8">
|
170 |
+
<amp-ad class="amp-ad-8"
|
171 |
+
'.(!ampforwp_get_setting('enable-amp-ads-mgid-flexible-8')? 'width="'.esc_attr( $width ).'" height="'.esc_attr( $height ).'"' : '' ).'
|
172 |
+
type="mgid"
|
173 |
+
data-publisher="'.esc_attr( $data_pub ).'"
|
174 |
+
data-widget="'.esc_attr( $data_wid ).'"
|
175 |
+
data-container="'.esc_attr( $data_cont ).'">
|
176 |
+
</amp-ad>
|
177 |
+
'.ampforwp_ads_sponsorship().'
|
178 |
+
</div>';
|
179 |
+
}
|
180 |
+
return $output;
|
181 |
+
}
|
@@ -733,17 +733,152 @@ if(!function_exists('ampforwp_amp_nonamp_convert')){
|
|
733 |
'onClick="ampforwp_gdrp_set()"',
|
734 |
)
|
735 |
, $ampData);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
736 |
|
737 |
$nonampCss = '
|
738 |
-
.cntr img{height:auto !important;}
|
739 |
img{height:auto;}
|
|
|
740 |
.amp-featured-image img{width:100%;height:auto;}
|
741 |
.content-wrapper, .header, .header-2, .header-3{width:100% !important;}
|
742 |
.image-mod img{width:100%;}
|
743 |
|
744 |
';
|
745 |
$re = '/<style\s*type="text\/css">(.*?)<\/style>/si';
|
746 |
-
$subst = "<style type=\"text/css\">$1 ".$nonampCss."</style>";
|
747 |
$returnData = preg_replace($re, $subst, $returnData);
|
748 |
$returnData = preg_replace(
|
749 |
'/<amp-youtube\sdata-videoid="(.*?)"(.*?)><\/amp-youtube>/',
|
@@ -753,6 +888,11 @@ if(!function_exists('ampforwp_amp_nonamp_convert')){
|
|
753 |
function($matches){
|
754 |
return '<iframe src="'.esc_url($matches[2]).'" style="width:100%;height:400px;" ></iframe>';
|
755 |
}, $returnData);
|
|
|
|
|
|
|
|
|
|
|
756 |
break;
|
757 |
}
|
758 |
return $returnData;
|
733 |
'onClick="ampforwp_gdrp_set()"',
|
734 |
)
|
735 |
, $ampData);
|
736 |
+
// CSS
|
737 |
+
|
738 |
+
if( false !== strpos($returnData, 'amp-carousel') ) {
|
739 |
+
$galleryCss = '* {box-sizing: border-box}.mySlides{display: none}
|
740 |
+
/* Slideshow container */
|
741 |
+
.slideshow-container {
|
742 |
+
max-width: 1000px;
|
743 |
+
position: relative;
|
744 |
+
margin: auto;
|
745 |
+
}
|
746 |
+
/* Next & previous buttons */
|
747 |
+
.nonamp-prev, .nonamp-next {
|
748 |
+
cursor: pointer;
|
749 |
+
position: absolute;
|
750 |
+
top: 50%;
|
751 |
+
width: auto;
|
752 |
+
padding: 10px 15px 10px 15px;
|
753 |
+
margin-top: 0;
|
754 |
+
color: white;
|
755 |
+
font-weight: bold;
|
756 |
+
font-size: 16px;
|
757 |
+
transition: 0.6s ease;
|
758 |
+
border-radius: 0 3px 3px 0;
|
759 |
+
user-select: none;
|
760 |
+
background-color: rgba(0,0,0,0.5);
|
761 |
+
}
|
762 |
+
/* Position the "next button" to the right */
|
763 |
+
.nonamp-next {
|
764 |
+
right: 0;
|
765 |
+
border-radius: 3px 0 0 3px;
|
766 |
+
}
|
767 |
+
.nonamp-prev{
|
768 |
+
left:0;
|
769 |
+
border-radius: 3px 0 0 3px;
|
770 |
+
}
|
771 |
+
/* On hover, add a black background color with a little bit see-through */
|
772 |
+
.nonamp-prev:hover, .nonamp-next:hover {
|
773 |
+
color:#fff;
|
774 |
+
}
|
775 |
+
/* Caption text */
|
776 |
+
.text {
|
777 |
+
color: #f2f2f2;
|
778 |
+
font-size: 15px;
|
779 |
+
padding: 8px 12px;
|
780 |
+
position: absolute;
|
781 |
+
bottom: 8px;
|
782 |
+
width: 100%;
|
783 |
+
text-align: center;
|
784 |
+
}
|
785 |
+
/* Number text (1/3 etc) */
|
786 |
+
.numbertext {
|
787 |
+
color: #f2f2f2;
|
788 |
+
font-size: 12px;
|
789 |
+
padding: 8px 12px;
|
790 |
+
position: absolute;
|
791 |
+
top: 0;
|
792 |
+
}
|
793 |
+
/* The dots/bullets/indicators */
|
794 |
+
.dot {
|
795 |
+
cursor: pointer;
|
796 |
+
height: 15px;
|
797 |
+
width: 15px;
|
798 |
+
margin: 0 2px;
|
799 |
+
background-color: #bbb;
|
800 |
+
border-radius: 50%;
|
801 |
+
display: inline-block;
|
802 |
+
transition: background-color 0.6s ease;
|
803 |
+
}
|
804 |
+
.active, .dot:hover {
|
805 |
+
background-color: #717171;
|
806 |
+
}
|
807 |
+
/* Fading animation */
|
808 |
+
.fade {
|
809 |
+
-webkit-animation-name: fade;
|
810 |
+
-webkit-animation-duration: 1.5s;
|
811 |
+
animation-name: fade;
|
812 |
+
animation-duration: 1.5s;
|
813 |
+
}
|
814 |
+
@-webkit-keyframes fade {
|
815 |
+
from {opacity: .4}
|
816 |
+
to {opacity: 1}
|
817 |
+
}
|
818 |
+
@keyframes fade {
|
819 |
+
from {opacity: .4}
|
820 |
+
to {opacity: 1}
|
821 |
+
}
|
822 |
+
/* On smaller screens, decrease text size */
|
823 |
+
@media only screen and (max-width: 300px) {
|
824 |
+
.nonamp-prev, .nonamp-next,.text {font-size: 11px}
|
825 |
+
}';
|
826 |
+
$galleryJs = '<script>
|
827 |
+
var slideIndex = 0;
|
828 |
+
showSlides(slideIndex);
|
829 |
+
function plusSlides(n) {
|
830 |
+
showSlides(slideIndex += n);
|
831 |
+
}
|
832 |
+
function currentSlide(n) {
|
833 |
+
showSlides(slideIndex = n);
|
834 |
+
}
|
835 |
+
function showSlides(n) {
|
836 |
+
var i;
|
837 |
+
var slides = document.getElementsByClassName("mySlides");
|
838 |
+
var dots = document.getElementsByClassName("dot");
|
839 |
+
var heads = document.getElementsByClassName("heads");
|
840 |
+
if (n >= slides.length) {slideIndex = 0}
|
841 |
+
if (n < 0) {slideIndex = slides.length-1}
|
842 |
+
for (i = 0; i < slides.length; i++) {
|
843 |
+
slides[i].style.display = "none";
|
844 |
+
}
|
845 |
+
for (i = 0; i < dots.length; i++) {
|
846 |
+
dots[i].className = dots[i].className.replace(" how-current", "");
|
847 |
+
}
|
848 |
+
for (i = 0; i < heads.length; i++) {
|
849 |
+
heads[i].className = heads[i].className.replace(" how-current", "");
|
850 |
+
}
|
851 |
+
slides[slideIndex].style.display = "block";
|
852 |
+
dots[slideIndex].className += " how-current";
|
853 |
+
heads[slideIndex].className += " how-current";
|
854 |
+
}
|
855 |
+
function currentDiv(n) {
|
856 |
+
showDivs(slideIndex = n);
|
857 |
+
}
|
858 |
+
function showDivs(n) {
|
859 |
+
var i;
|
860 |
+
var x = document.getElementsByClassName("mySlides");
|
861 |
+
if (n > x.length) {slideIndex = 1}
|
862 |
+
if (n < 0) {slideIndex = x.length}
|
863 |
+
for (i = 0; i < x.length; i++) {
|
864 |
+
x[i].style.display = "none";
|
865 |
+
}
|
866 |
+
x[slideIndex].style.display = "block";
|
867 |
+
}
|
868 |
+
</script>';
|
869 |
+
}
|
870 |
|
871 |
$nonampCss = '
|
872 |
+
.cntr img{width:100%;height:auto !important;}
|
873 |
img{height:auto;}
|
874 |
+
.slid-prv{width:100%;text-align: center;margin-top: 10px;display: inline-block;}
|
875 |
.amp-featured-image img{width:100%;height:auto;}
|
876 |
.content-wrapper, .header, .header-2, .header-3{width:100% !important;}
|
877 |
.image-mod img{width:100%;}
|
878 |
|
879 |
';
|
880 |
$re = '/<style\s*type="text\/css">(.*?)<\/style>/si';
|
881 |
+
$subst = "<style type=\"text/css\">$1 ".$nonampCss.$galleryCss."</style>";
|
882 |
$returnData = preg_replace($re, $subst, $returnData);
|
883 |
$returnData = preg_replace(
|
884 |
'/<amp-youtube\sdata-videoid="(.*?)"(.*?)><\/amp-youtube>/',
|
888 |
function($matches){
|
889 |
return '<iframe src="'.esc_url($matches[2]).'" style="width:100%;height:400px;" ></iframe>';
|
890 |
}, $returnData);
|
891 |
+
$returnData = preg_replace_callback('/<amp-carousel\s(.*?)>(.*?)<\/amp-carousel>/s', 'ampforwp_non_amp_gallery', $returnData );
|
892 |
+
$returnData = preg_replace('/on="tap(.*?).goToSlide(.*?)"/', 'onclick="currentDiv$2"', $returnData);
|
893 |
+
$returnData = preg_replace('/<span on="tap:AMP\.setState\((.*?)\s:\showSectionSelected\.howSlide - 1(.*?)\)(.*?)/', '<span onclick="plusSlides(-1)$3"', $returnData);
|
894 |
+
$returnData = preg_replace('/<span on="tap:AMP\.setState\((.*?)\s:\showSectionSelected\.howSlide \+ 1(.*?)\)(.*?)>/', '<span onclick="plusSlides(+1)$3">', $returnData);
|
895 |
+
$returnData = str_replace('</footer>', '</footer>'.$galleryJs, $returnData);
|
896 |
break;
|
897 |
}
|
898 |
return $returnData;
|
@@ -391,7 +391,7 @@ if ( ! function_exists('ampforwp_sd_multiple_images') ) {
|
|
391 |
$image3_height = 300;
|
392 |
$image3 = ampforwp_aq_resize( $metadata['image']['url'], $image3_width, $image3_height, true, false, true );
|
393 |
$image3_url = $image3[0];
|
394 |
-
$metadata['image'] = array($
|
395 |
}
|
396 |
}
|
397 |
return $metadata;
|
391 |
$image3_height = 300;
|
392 |
$image3 = ampforwp_aq_resize( $metadata['image']['url'], $image3_width, $image3_height, true, false, true );
|
393 |
$image3_url = $image3[0];
|
394 |
+
$metadata['image'] = array($image1_url, $image2_url, $image3_url);
|
395 |
}
|
396 |
}
|
397 |
return $metadata;
|
@@ -165,6 +165,19 @@ $extension_listing_array = array(
|
|
165 |
'is_activated'=>(is_plugin_active('amp-gravity-forms/amp-gravity-forms.php')? 1 : 2),
|
166 |
'settingUrl'=>'{ampforwp-gf-subsection}',
|
167 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
array(
|
169 |
'name'=>'bbPress For AMP',
|
170 |
'desc'=>'Add bbPress Forum Compatibility to your AMP version',
|
@@ -188,6 +201,18 @@ $extension_listing_array = array(
|
|
188 |
'is_activated'=>(is_plugin_active('amp-ninja-forms/amp-ninja-forms.php')? 1 : 2),
|
189 |
'settingUrl'=>'{ampforwp-nf-subsection}',
|
190 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
array(
|
192 |
'name'=>'WP Forms for AMP',
|
193 |
'desc'=>'Add WP Forms Support in AMP.',
|
@@ -342,6 +367,19 @@ $extension_listing_array = array(
|
|
342 |
'is_activated'=>(is_plugin_active('amp-newspaper-theme/ampforwp-custom-theme.php')? 1 : 2),
|
343 |
'settingUrl'=>'{ampforwp-theme-subsection}',
|
344 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
|
346 |
array(
|
347 |
'name'=>'ACF for AMP',
|
@@ -476,13 +514,13 @@ $extension_listing_array = array(
|
|
476 |
'settingUrl'=>'{ampforwp-teaser-subsection}',
|
477 |
),
|
478 |
array(
|
479 |
-
'name'=>'
|
480 |
'desc'=>'This is an extension of The Events Calendar For Amp',
|
481 |
'img_src'=>AMPFORWP_IMAGE_DIR . '/amp-SU.png',
|
482 |
'price'=>'$19',
|
483 |
-
'url_link'=>'https://ampforwp.com/the-
|
484 |
'plugin_active_path'=> 'the-events-calendar-for-amp/the-events-calendar-for-amp.php',
|
485 |
-
'item_name'=>'The
|
486 |
'store_url'=>'https://accounts.ampforwp.com',
|
487 |
'is_activated'=>(is_plugin_active('the-events-calendar-for-amp/the-events-calendar-for-amp.php')? 1 : 2),
|
488 |
),
|
@@ -1574,6 +1612,9 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
1574 |
elseif ( function_exists( 'the_seo_framework' ) ) {
|
1575 |
$default = 'seo_framework';
|
1576 |
}
|
|
|
|
|
|
|
1577 |
return $default;
|
1578 |
}
|
1579 |
}
|
@@ -1626,6 +1667,7 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
1626 |
'seopress' => 'SEOPress',
|
1627 |
'bridge' => 'Bridge Qode SEO',
|
1628 |
'seo_framework' => 'The SEO Framework',
|
|
|
1629 |
),
|
1630 |
'default' => ampforwp_seo_default(),
|
1631 |
),
|
@@ -2909,11 +2951,18 @@ $e_commerce_support[] = array(
|
|
2909 |
'id' => 'ampforwp-search-placeholder',
|
2910 |
'type' => 'text',
|
2911 |
'title' => esc_html__('Type Here', 'accelerated-mobile-pages'),
|
2912 |
-
'default' => 'Type Here','accelerated-mobile-pages'),
|
2913 |
'desc' => esc_html__('This is the text that gets shown in for Search Box','accelerated-mobile-pages'),
|
2914 |
'placeholder'=>esc_html__('write here','accelerated-mobile-pages'),
|
2915 |
'required' => array( 'amp-use-pot', '=' , 0 )
|
2916 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2917 |
),
|
2918 |
array(
|
2919 |
'id' => 'ampforwp-search-label',
|
@@ -2925,7 +2974,7 @@ $e_commerce_support[] = array(
|
|
2925 |
'required' => array( 'amp-use-pot', '=' , 0 )
|
2926 |
|
2927 |
)
|
2928 |
-
) );
|
2929 |
|
2930 |
|
2931 |
// Appearance Section
|
@@ -3672,7 +3721,7 @@ Redux::setSection( $opt_name, array(
|
|
3672 |
'title' => esc_html__('Call To Action', 'accelerated-mobile-pages'),
|
3673 |
'tooltip-subtitle' => esc_html__('You can do the customization here ','accelerated-mobile-pages'),
|
3674 |
'type' => 'switch',
|
3675 |
-
'default' => '
|
3676 |
'required' => array(
|
3677 |
array('header-type','=',2)
|
3678 |
)
|
@@ -3783,6 +3832,323 @@ Redux::setSection( $opt_name, array(
|
|
3783 |
'required' => array(array('amp-design-selector', '!=' , '4')),
|
3784 |
|
3785 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3786 |
array(
|
3787 |
'id' => 'header_section_3',
|
3788 |
'type' => 'section',
|
@@ -3879,99 +4245,80 @@ Redux::setSection( $opt_name, array(
|
|
3879 |
)
|
3880 |
),
|
3881 |
array(
|
3882 |
-
|
3883 |
-
|
3884 |
-
|
3885 |
-
|
3886 |
-
|
3887 |
-
|
3888 |
-
|
3889 |
-
|
3890 |
-
|
3891 |
),
|
3892 |
-
|
3893 |
-
|
|
|
3894 |
'type' => 'color_rgba',
|
3895 |
'title' => esc_html__('Header Background','accelerated-mobile-pages'),
|
3896 |
'default' => array(
|
3897 |
-
'color' => '#
|
3898 |
-
),
|
3899 |
-
'required' => array(
|
3900 |
-
array('amp-design-selector', '=' , '3')
|
3901 |
-
)
|
3902 |
-
),
|
3903 |
-
array(
|
3904 |
-
'id' => 'amp-opt-color-rgba-headerelements',
|
3905 |
-
'type' => 'color_rgba',
|
3906 |
-
'title' => esc_html__('Header Elements','accelerated-mobile-pages'),
|
3907 |
-
'default' => array(
|
3908 |
-
'color' => ampforwp_get_element_default_color(),
|
3909 |
),
|
3910 |
'required' => array(
|
3911 |
-
array('amp-design-selector', '=' , '
|
3912 |
)
|
3913 |
),
|
3914 |
array(
|
3915 |
-
'id' => 'amp-
|
3916 |
-
'type' => 'color_rgba',
|
3917 |
-
'title' => esc_html__('Menu Background','accelerated-mobile-pages'),
|
3918 |
-
'default' => array(
|
3919 |
-
'color' => '#131313',
|
3920 |
-
),
|
3921 |
-
'required' => array(
|
3922 |
-
array('amp-design-selector', '=' , '3')
|
3923 |
-
)
|
3924 |
-
),
|
3925 |
-
array(
|
3926 |
-
'id' => 'amp-opt-color-rgba-menu-elements-color',
|
3927 |
'type' => 'color_rgba',
|
3928 |
-
'title' => esc_html__('
|
3929 |
'default' => array(
|
3930 |
-
'color'
|
3931 |
),
|
3932 |
'required' => array(
|
3933 |
-
array('amp-design-selector', '=' , '
|
3934 |
)
|
3935 |
),
|
|
|
3936 |
array(
|
3937 |
-
'id' => 'amp-
|
3938 |
'type' => 'color_rgba',
|
3939 |
-
'title' => esc_html__('
|
3940 |
'default' => array(
|
3941 |
-
'color' => '#
|
3942 |
),
|
3943 |
'required' => array(
|
3944 |
-
array('amp-design-selector', '=' , '
|
3945 |
)
|
3946 |
),
|
3947 |
-
|
3948 |
-
'id' => 'amp-
|
3949 |
'type' => 'color_rgba',
|
3950 |
-
'title' => esc_html__('
|
3951 |
'default' => array(
|
3952 |
-
'color'
|
3953 |
),
|
3954 |
'required' => array(
|
3955 |
-
array('amp-design-selector', '=' , '
|
3956 |
)
|
3957 |
-
),
|
3958 |
-
|
3959 |
-
|
|
|
3960 |
'type' => 'color_rgba',
|
3961 |
-
'title' => esc_html__('
|
3962 |
'default' => array(
|
3963 |
-
'color' => '#
|
3964 |
),
|
3965 |
'required' => array(
|
3966 |
array('amp-design-selector', '=' , '3')
|
3967 |
)
|
3968 |
),
|
3969 |
-
|
3970 |
-
'id' => 'amp-opt-color-rgba-
|
3971 |
'type' => 'color_rgba',
|
3972 |
-
'title' => esc_html__('
|
3973 |
'default' => array(
|
3974 |
-
'color' =>
|
3975 |
),
|
3976 |
'required' => array(
|
3977 |
array('amp-design-selector', '=' , '3')
|
@@ -4557,8 +4904,13 @@ Redux::setSection( $opt_name, array(
|
|
4557 |
array('ampforwp-homepage-posts-image-modify-size','=',1)
|
4558 |
)
|
4559 |
),
|
4560 |
-
|
4561 |
-
|
|
|
|
|
|
|
|
|
|
|
4562 |
)
|
4563 |
));
|
4564 |
$yoast_breadcrumbs = '';
|
@@ -4618,6 +4970,23 @@ $single_page_options = array(
|
|
4618 |
'default' => 1,
|
4619 |
'required' => array( array('amp-design-selector', '=' , '4') ),
|
4620 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4621 |
array(
|
4622 |
'id' => 'swift-featued-image-size',
|
4623 |
'class' => 'child_opt child_opt_arrow',
|
@@ -4697,13 +5066,7 @@ $single_page_options = array(
|
|
4697 |
'default' => '1',
|
4698 |
'title' => esc_html__('Categories & Tags Links', 'accelerated-mobile-pages'),
|
4699 |
),
|
4700 |
-
|
4701 |
-
array(
|
4702 |
-
'id' => 'enable-single-social-icons',
|
4703 |
-
'type' => 'switch',
|
4704 |
-
'title' => esc_html__('Sticky Social Icons', 'accelerated-mobile-pages'),
|
4705 |
-
'default' => 1,
|
4706 |
-
),
|
4707 |
// Excerpt ON/OFF
|
4708 |
array(
|
4709 |
'id' => 'enable-excerpt-single',
|
@@ -4796,6 +5159,15 @@ $single_page_options = array(
|
|
4796 |
'tooltip-subtitle' => esc_html__('To enable & disable recent posts', 'accelerated-mobile-pages'),
|
4797 |
'default' => 1,
|
4798 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4799 |
array(
|
4800 |
'id' => 'ampforwp-single_section_3',
|
4801 |
'type' => 'section',
|
@@ -5360,6 +5732,20 @@ else{
|
|
5360 |
'title' => esc_html__('Make "View Non-AMP" link nofollow', 'accelerated-mobile-pages'),
|
5361 |
'default' => 0
|
5362 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5363 |
array(
|
5364 |
'id' => 'ampforwp-footer-background-color-1',
|
5365 |
'type' => 'color_rgba',
|
@@ -5371,6 +5757,73 @@ else{
|
|
5371 |
array('amp-design-selector', '=' , '1')
|
5372 |
)
|
5373 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5374 |
array(
|
5375 |
'id' => 'ampforwp-footer-background-color-2',
|
5376 |
'type' => 'color_rgba',
|
@@ -5382,6 +5835,51 @@ else{
|
|
5382 |
array('amp-design-selector', '=' , '2')
|
5383 |
)
|
5384 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5385 |
array(
|
5386 |
'id' => 'ampforwp-footer-background-color-3',
|
5387 |
'type' => 'color_rgba',
|
@@ -5393,6 +5891,72 @@ else{
|
|
5393 |
array('amp-design-selector', '=' , '3')
|
5394 |
)
|
5395 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5396 |
array(
|
5397 |
'id' => 'footer-tab-2',
|
5398 |
'type' => 'section',
|
@@ -5636,7 +6200,7 @@ else{
|
|
5636 |
|
5637 |
// Social Section
|
5638 |
Redux::setSection( $opt_name, array(
|
5639 |
-
'title' => esc_html__( 'Social', 'accelerated-mobile-pages' ),
|
5640 |
'id' => 'amp-social',
|
5641 |
'desc' => esc_html__('All the Social sharing and the social profile related settings are here','accelerated-mobile-pages'),
|
5642 |
'subsection' => true,
|
@@ -5693,9 +6257,26 @@ else{
|
|
5693 |
'tooltip-subtitle' => sprintf('%s <a href="https://www.addthis.com/register" target="_blank">%s</a>, %s <a href="https://www.addthis.com/academy/how-to-customize-your-share-buttons-on-the-amp-for-wp-plugin" target="_blank">%s</a>',esc_html__('You are using the default AddThis share buttons. To customize your share buttons, create a free account at','accelerated-mobile-pages'),esc_html__('AddThis.com','accelerated-mobile-pages'),esc_html__('then activate the Inline Share Buttons. Once your buttons are activated, replace the default Pub ID and Tool ID with your personalized IDs. For instructions, visit','accelerated-mobile-pages'),esc_html__('here','accelerated-mobile-pages')),
|
5694 |
'default' => true,
|
5695 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5696 |
array(
|
5697 |
'id' => 'swift-add-this-position',
|
5698 |
'type' => 'select',
|
|
|
5699 |
'title' => esc_html__( 'Position', 'accelerated-mobile-pages' ),
|
5700 |
'options' => array(
|
5701 |
'default' => 'Single Sidebar (left side)',
|
@@ -5707,11 +6288,13 @@ else{
|
|
5707 |
array('amp-design-selector', '=', '4'),
|
5708 |
array('enable-add-this-option', '=', '1'),
|
5709 |
array('single-design-type', '=', '1'),
|
|
|
5710 |
)
|
5711 |
),
|
5712 |
array(
|
5713 |
'id' => 'swift-layout-addthis-pos',
|
5714 |
'type' => 'select',
|
|
|
5715 |
'title' => esc_html__( 'Position', 'accelerated-mobile-pages' ),
|
5716 |
'options' => array(
|
5717 |
'above-content' => 'Above Content',
|
@@ -5723,11 +6306,13 @@ else{
|
|
5723 |
array('enable-add-this-option', '=', '1'),
|
5724 |
array('single-design-type', '!=', '1'),
|
5725 |
array('single-design-type', '!=', '6'),
|
|
|
5726 |
)
|
5727 |
),
|
5728 |
array(
|
5729 |
'id' => 'swift-layout-6-addthis-pos',
|
5730 |
'type' => 'select',
|
|
|
5731 |
'title' => esc_html__( 'Position', 'accelerated-mobile-pages' ),
|
5732 |
'options' => array(
|
5733 |
'above-content' => 'Above Content',
|
@@ -5738,12 +6323,14 @@ else{
|
|
5738 |
array('amp-design-selector', '=', '4'),
|
5739 |
array('enable-add-this-option', '=', '1'),
|
5740 |
array('single-design-type', '=', '6'),
|
|
|
5741 |
)
|
5742 |
),
|
5743 |
array(
|
5744 |
'id' => 'add-this-pub-id',
|
5745 |
'title' => esc_html__('Pub ID', 'accelerated-mobile-pages'),
|
5746 |
'type' => 'text',
|
|
|
5747 |
'required' => array('enable-add-this-option', '=' , '1'),
|
5748 |
'default' => esc_html__('ra-5cc8551aa4f16f5c','accelerated-mobile-pages'),
|
5749 |
),
|
@@ -5751,11 +6338,28 @@ else{
|
|
5751 |
'id' => 'add-this-widget-id',
|
5752 |
'title' => esc_html__('Tool ID', 'accelerated-mobile-pages'),
|
5753 |
'type' => 'text',
|
|
|
5754 |
'required' => array('enable-add-this-option', '=' , '1'),
|
5755 |
'default' => esc_html__('cwgj','accelerated-mobile-pages'),
|
5756 |
),
|
5757 |
//End AddThis Support
|
5758 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5759 |
array(
|
5760 |
'id' => 'social-shre',
|
5761 |
'type' => 'section',
|
165 |
'is_activated'=>(is_plugin_active('amp-gravity-forms/amp-gravity-forms.php')? 1 : 2),
|
166 |
'settingUrl'=>'{ampforwp-gf-subsection}',
|
167 |
),
|
168 |
+
array(
|
169 |
+
'name'=>'Liveblog For AMP',
|
170 |
+
'label' => 'Liveblog For AMP',
|
171 |
+
'desc'=>'Add Liveblog Support in AMP.',
|
172 |
+
'img_src'=>AMPFORWP_IMAGE_DIR . '/amp-icon.png',
|
173 |
+
'price'=>'$79',
|
174 |
+
'url_link'=>'https://ampforwp.com/addons/liveblog-for-amp/#utm_source=options-panel&utm_medium=extension-tab_gf&utm_campaign=AMP%20Plugin',
|
175 |
+
'plugin_active_path'=> 'liveblog-for-amp/liveblog-for-amp.php',
|
176 |
+
'item_name'=>'Liveblog For AMP',
|
177 |
+
'store_url'=>'https://accounts.ampforwp.com',
|
178 |
+
'is_activated'=>(is_plugin_active('liveblog-for-amp/liveblog-for-amp.php')? 1 : 2),
|
179 |
+
'settingUrl'=>'',
|
180 |
+
),
|
181 |
array(
|
182 |
'name'=>'bbPress For AMP',
|
183 |
'desc'=>'Add bbPress Forum Compatibility to your AMP version',
|
201 |
'is_activated'=>(is_plugin_active('amp-ninja-forms/amp-ninja-forms.php')? 1 : 2),
|
202 |
'settingUrl'=>'{ampforwp-nf-subsection}',
|
203 |
),
|
204 |
+
array(
|
205 |
+
'name'=>'Pinterest for AMP',
|
206 |
+
'label' => 'Pinterest for AMP',
|
207 |
+
'desc'=>'Pinterest compatibility with AMP',
|
208 |
+
'img_src'=>AMPFORWP_IMAGE_DIR . '/amp-icon.png',
|
209 |
+
'price'=>'$19',
|
210 |
+
'url_link'=>'https://ampforwp.com/addons/pinterest-for-amp/#utm_source=options-panel&utm_medium=extension-tab_polylang-for-amp&utm_campaign=AMP%20Plugin',
|
211 |
+
'plugin_active_path'=> 'pinterest-for-amp/pinterest-for-amp.php',
|
212 |
+
'item_name'=>'Pinterest for AMP',
|
213 |
+
'store_url'=>'https://accounts.ampforwp.com',
|
214 |
+
'is_activated'=>(is_plugin_active('pinterest-for-amp/pinterest-for-amp.php')? 1: 2),
|
215 |
+
),
|
216 |
array(
|
217 |
'name'=>'WP Forms for AMP',
|
218 |
'desc'=>'Add WP Forms Support in AMP.',
|
367 |
'is_activated'=>(is_plugin_active('amp-newspaper-theme/ampforwp-custom-theme.php')? 1 : 2),
|
368 |
'settingUrl'=>'{ampforwp-theme-subsection}',
|
369 |
),
|
370 |
+
array(
|
371 |
+
'name'=>'AMP Email',
|
372 |
+
'label' => 'AMP Email',
|
373 |
+
'desc'=>'You can send emails with AMP features(AMP4Email).',
|
374 |
+
'img_src'=>AMPFORWP_IMAGE_DIR . '/email.png',
|
375 |
+
'price'=>'$29.99',
|
376 |
+
'url_link'=>'https://ampforwp.com/addons/amp-email/#utm_source=options-panel&utm_medium=extension-tab_amp-comments&utm_campaign=AMP%20Plugin',
|
377 |
+
'plugin_active_path'=> 'amp-email/amp-email.php',
|
378 |
+
'item_name'=>'AMP Email',
|
379 |
+
'store_url'=>'https://accounts.ampforwp.com',
|
380 |
+
'is_activated'=>(is_plugin_active('amp-email/amp-email.php')? 1: 2),
|
381 |
+
'settingUrl'=>'',
|
382 |
+
),
|
383 |
|
384 |
array(
|
385 |
'name'=>'ACF for AMP',
|
514 |
'settingUrl'=>'{ampforwp-teaser-subsection}',
|
515 |
),
|
516 |
array(
|
517 |
+
'name'=>'The Event Calendar for AMP',
|
518 |
'desc'=>'This is an extension of The Events Calendar For Amp',
|
519 |
'img_src'=>AMPFORWP_IMAGE_DIR . '/amp-SU.png',
|
520 |
'price'=>'$19',
|
521 |
+
'url_link'=>'https://ampforwp.com/addons/the-event-calender-for-amp/#utm_source=options-panel&utm_medium=extension-tab_shortcodes_ultimate&utm_campaign=AMP%20Plugin',
|
522 |
'plugin_active_path'=> 'the-events-calendar-for-amp/the-events-calendar-for-amp.php',
|
523 |
+
'item_name'=>'The Event Calender for AMP',
|
524 |
'store_url'=>'https://accounts.ampforwp.com',
|
525 |
'is_activated'=>(is_plugin_active('the-events-calendar-for-amp/the-events-calendar-for-amp.php')? 1 : 2),
|
526 |
),
|
1612 |
elseif ( function_exists( 'the_seo_framework' ) ) {
|
1613 |
$default = 'seo_framework';
|
1614 |
}
|
1615 |
+
elseif ( class_exists('SQ_Classes_ObjController') ) {
|
1616 |
+
$default = 'squirrly';
|
1617 |
+
}
|
1618 |
return $default;
|
1619 |
}
|
1620 |
}
|
1667 |
'seopress' => 'SEOPress',
|
1668 |
'bridge' => 'Bridge Qode SEO',
|
1669 |
'seo_framework' => 'The SEO Framework',
|
1670 |
+
'squirrly' => 'Squirrly SEO'
|
1671 |
),
|
1672 |
'default' => ampforwp_seo_default(),
|
1673 |
),
|
2951 |
'id' => 'ampforwp-search-placeholder',
|
2952 |
'type' => 'text',
|
2953 |
'title' => esc_html__('Type Here', 'accelerated-mobile-pages'),
|
2954 |
+
'default' => esc_html__('Type Here','accelerated-mobile-pages'),
|
2955 |
'desc' => esc_html__('This is the text that gets shown in for Search Box','accelerated-mobile-pages'),
|
2956 |
'placeholder'=>esc_html__('write here','accelerated-mobile-pages'),
|
2957 |
'required' => array( 'amp-use-pot', '=' , 0 )
|
2958 |
+
),
|
2959 |
+
array(
|
2960 |
+
'id' => 'ampforwp-search-widget-label',
|
2961 |
+
'type' => 'text',
|
2962 |
+
'title' => esc_html__('Search Widget Label', 'accelerated-mobile-pages'),
|
2963 |
+
'default' => esc_html__('Search for:','accelerated-mobile-pages'),
|
2964 |
+
'desc' => esc_html__('This is the text that gets shown as Search Box Label','accelerated-mobile-pages'),
|
2965 |
+
'required' => array( 'amp-use-pot', '=' , 0 )
|
2966 |
),
|
2967 |
array(
|
2968 |
'id' => 'ampforwp-search-label',
|
2974 |
'required' => array( 'amp-use-pot', '=' , 0 )
|
2975 |
|
2976 |
)
|
2977 |
+
) ));
|
2978 |
|
2979 |
|
2980 |
// Appearance Section
|
3721 |
'title' => esc_html__('Call To Action', 'accelerated-mobile-pages'),
|
3722 |
'tooltip-subtitle' => esc_html__('You can do the customization here ','accelerated-mobile-pages'),
|
3723 |
'type' => 'switch',
|
3724 |
+
'default' => '1',
|
3725 |
'required' => array(
|
3726 |
array('header-type','=',2)
|
3727 |
)
|
3832 |
'required' => array(array('amp-design-selector', '!=' , '4')),
|
3833 |
|
3834 |
),
|
3835 |
+
// Design1 Menu Options
|
3836 |
+
array(
|
3837 |
+
'id' => 'amp-d1-sidebar-color',
|
3838 |
+
'type' => 'color_rgba',
|
3839 |
+
'class' => 'child_opt',
|
3840 |
+
'title' => esc_html__('Menu Background','accelerated-mobile-pages'),
|
3841 |
+
'default' => array(
|
3842 |
+
'color' => '#efefef',
|
3843 |
+
),
|
3844 |
+
'required' => array(
|
3845 |
+
array('amp-design-selector', '=' , '1'),
|
3846 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3847 |
+
)
|
3848 |
+
),
|
3849 |
+
array(
|
3850 |
+
'id' => 'amp-d1-menu-bg-color',
|
3851 |
+
'type' => 'color_rgba',
|
3852 |
+
'class' => 'child_opt',
|
3853 |
+
'title' => esc_html__('Menu Elements Background','accelerated-mobile-pages'),
|
3854 |
+
'default' => array(
|
3855 |
+
'color' => '#fafafa',
|
3856 |
+
),
|
3857 |
+
'required' => array(
|
3858 |
+
array('amp-design-selector', '=' , '1'),
|
3859 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3860 |
+
)
|
3861 |
+
),
|
3862 |
+
array(
|
3863 |
+
'id' => 'amp-d1-menu-color',
|
3864 |
+
'type' => 'color_rgba',
|
3865 |
+
'class' => 'child_opt',
|
3866 |
+
'title' => esc_html__('Menu Elements Color','accelerated-mobile-pages'),
|
3867 |
+
'default' => array(
|
3868 |
+
'color' => '#0a89c0',
|
3869 |
+
),
|
3870 |
+
'required' => array(
|
3871 |
+
array('amp-design-selector', '=' , '1'),
|
3872 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3873 |
+
)
|
3874 |
+
),
|
3875 |
+
array(
|
3876 |
+
'id' => 'amp-d1-submenu-bg-color',
|
3877 |
+
'type' => 'color_rgba',
|
3878 |
+
'class' => 'child_opt',
|
3879 |
+
'title' => esc_html__('Sub Menu Background','accelerated-mobile-pages'),
|
3880 |
+
'default' => array(
|
3881 |
+
'color' => '#ffffff',
|
3882 |
+
),
|
3883 |
+
'required' => array(
|
3884 |
+
array('amp-design-selector', '=' , '1'),
|
3885 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3886 |
+
)
|
3887 |
+
),
|
3888 |
+
array(
|
3889 |
+
'id' => 'amp-d1-menu-brdr-color',
|
3890 |
+
'type' => 'color_rgba',
|
3891 |
+
'class' => 'child_opt',
|
3892 |
+
'title' => esc_html__('Menu Border Color','accelerated-mobile-pages'),
|
3893 |
+
'default' => array(
|
3894 |
+
'color' => '#efefef',
|
3895 |
+
),
|
3896 |
+
'required' => array(
|
3897 |
+
array('amp-design-selector', '=' , '1'),
|
3898 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3899 |
+
)
|
3900 |
+
),
|
3901 |
+
array(
|
3902 |
+
'id' => 'amp-d1-menu-icon-color',
|
3903 |
+
'type' => 'color_rgba',
|
3904 |
+
'class' => 'child_opt',
|
3905 |
+
'title' => esc_html__('Menu Arrow Color','accelerated-mobile-pages'),
|
3906 |
+
'default' => array(
|
3907 |
+
'color' => '#ccc',
|
3908 |
+
),
|
3909 |
+
'required' => array(
|
3910 |
+
array('amp-design-selector', '=' , '1'),
|
3911 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3912 |
+
)
|
3913 |
+
),
|
3914 |
+
array(
|
3915 |
+
'id' => 'amp-d1-cross-btn-color',
|
3916 |
+
'type' => 'color_rgba',
|
3917 |
+
'class' => 'child_opt',
|
3918 |
+
'title' => esc_html__('Close Button Color','accelerated-mobile-pages'),
|
3919 |
+
'default' => array(
|
3920 |
+
'color' => '#ffffff',
|
3921 |
+
),
|
3922 |
+
'required' => array(
|
3923 |
+
array('amp-design-selector', '=' , '1'),
|
3924 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3925 |
+
)
|
3926 |
+
),
|
3927 |
+
array(
|
3928 |
+
'id' => 'amp-d1-cross-bg-color',
|
3929 |
+
'type' => 'color_rgba',
|
3930 |
+
'class' => 'child_opt',
|
3931 |
+
'title' => esc_html__('Close Button Background','accelerated-mobile-pages'),
|
3932 |
+
'default' => array(
|
3933 |
+
'rgba' => 'rgba(0, 0, 0, 0.25)',
|
3934 |
+
),
|
3935 |
+
'required' => array(
|
3936 |
+
array('amp-design-selector', '=' , '1'),
|
3937 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3938 |
+
)
|
3939 |
+
),
|
3940 |
+
array(
|
3941 |
+
'id' => 'amp-d1-cross-hover-color',
|
3942 |
+
'type' => 'color_rgba',
|
3943 |
+
'class' => 'child_opt',
|
3944 |
+
'title' => esc_html__('Close Button Hover color','accelerated-mobile-pages'),
|
3945 |
+
'default' => array(
|
3946 |
+
'rgba' => 'rgba(0, 0, 0, 0.45)',
|
3947 |
+
),
|
3948 |
+
'required' => array(
|
3949 |
+
array('amp-design-selector', '=' , '1'),
|
3950 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3951 |
+
)
|
3952 |
+
),
|
3953 |
+
// Design 2 Menu Options
|
3954 |
+
array(
|
3955 |
+
'id' => 'amp-d2-sidebar-color',
|
3956 |
+
'type' => 'color_rgba',
|
3957 |
+
'class' => 'child_opt',
|
3958 |
+
'title' => esc_html__('Menu Background','accelerated-mobile-pages'),
|
3959 |
+
'default' => array(
|
3960 |
+
'color' => '#efefef',
|
3961 |
+
),
|
3962 |
+
'required' => array(
|
3963 |
+
array('amp-design-selector', '=' , '2'),
|
3964 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3965 |
+
)
|
3966 |
+
),
|
3967 |
+
array(
|
3968 |
+
'id' => 'amp-d2-menu-bg-color',
|
3969 |
+
'type' => 'color_rgba',
|
3970 |
+
'class' => 'child_opt',
|
3971 |
+
'title' => esc_html__('Menu Elements Background','accelerated-mobile-pages'),
|
3972 |
+
'default' => array(
|
3973 |
+
'color' => '#fafafa',
|
3974 |
+
),
|
3975 |
+
'required' => array(
|
3976 |
+
array('amp-design-selector', '=' , '2'),
|
3977 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3978 |
+
)
|
3979 |
+
),
|
3980 |
+
array(
|
3981 |
+
'id' => 'amp-d2-menu-color',
|
3982 |
+
'type' => 'color_rgba',
|
3983 |
+
'class' => 'child_opt',
|
3984 |
+
'title' => esc_html__('Menu Elements Color','accelerated-mobile-pages'),
|
3985 |
+
'default' => array(
|
3986 |
+
'color' => '#0a89c0',
|
3987 |
+
),
|
3988 |
+
'required' => array(
|
3989 |
+
array('amp-design-selector', '=' , '2'),
|
3990 |
+
array('ampforwp-amp-menu', '=' , '1')
|
3991 |
+
)
|
3992 |
+
),
|
3993 |
+
array(
|
3994 |
+
'id' => 'amp-d2-submenu-bg-color',
|
3995 |
+
'type' => 'color_rgba',
|
3996 |
+
'class' => 'child_opt',
|
3997 |
+
'title' => esc_html__('Sub Menu Background','accelerated-mobile-pages'),
|
3998 |
+
'default' => array(
|
3999 |
+
'color' => '#ffffff',
|
4000 |
+
),
|
4001 |
+
'required' => array(
|
4002 |
+
array('amp-design-selector', '=' , '2'),
|
4003 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4004 |
+
)
|
4005 |
+
),
|
4006 |
+
array(
|
4007 |
+
'id' => 'amp-d2-menu-brdr-color',
|
4008 |
+
'type' => 'color_rgba',
|
4009 |
+
'class' => 'child_opt',
|
4010 |
+
'title' => esc_html__('Menu Border Color','accelerated-mobile-pages'),
|
4011 |
+
'default' => array(
|
4012 |
+
'color' => '#efefef',
|
4013 |
+
),
|
4014 |
+
'required' => array(
|
4015 |
+
array('amp-design-selector', '=' , '2'),
|
4016 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4017 |
+
)
|
4018 |
+
),
|
4019 |
+
array(
|
4020 |
+
'id' => 'amp-d2-menu-icon-color',
|
4021 |
+
'type' => 'color_rgba',
|
4022 |
+
'class' => 'child_opt',
|
4023 |
+
'title' => esc_html__('Menu Arrow Color','accelerated-mobile-pages'),
|
4024 |
+
'default' => array(
|
4025 |
+
'color' => '#ccc',
|
4026 |
+
),
|
4027 |
+
'required' => array(
|
4028 |
+
array('amp-design-selector', '=' , '2'),
|
4029 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4030 |
+
)
|
4031 |
+
),
|
4032 |
+
array(
|
4033 |
+
'id' => 'amp-d2-cross-btn-color',
|
4034 |
+
'type' => 'color_rgba',
|
4035 |
+
'class' => 'child_opt',
|
4036 |
+
'title' => esc_html__('Close Button Color','accelerated-mobile-pages'),
|
4037 |
+
'default' => array(
|
4038 |
+
'color' => '#ffffff',
|
4039 |
+
),
|
4040 |
+
'required' => array(
|
4041 |
+
array('amp-design-selector', '=' , '2'),
|
4042 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4043 |
+
)
|
4044 |
+
),
|
4045 |
+
array(
|
4046 |
+
'id' => 'amp-d2-cross-bg-color',
|
4047 |
+
'type' => 'color_rgba',
|
4048 |
+
'class' => 'child_opt',
|
4049 |
+
'title' => esc_html__('Close Button Background','accelerated-mobile-pages'),
|
4050 |
+
'default' => array(
|
4051 |
+
'rgba' => 'rgba(0, 0, 0, 0.25)',
|
4052 |
+
),
|
4053 |
+
'required' => array(
|
4054 |
+
array('amp-design-selector', '=' , '2'),
|
4055 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4056 |
+
)
|
4057 |
+
),
|
4058 |
+
array(
|
4059 |
+
'id' => 'amp-d2-cross-hover-color',
|
4060 |
+
'type' => 'color_rgba',
|
4061 |
+
'class' => 'child_opt',
|
4062 |
+
'title' => esc_html__('Close Button Hover color','accelerated-mobile-pages'),
|
4063 |
+
'default' => array(
|
4064 |
+
'rgba' => 'rgba(0, 0, 0, 0.45)',
|
4065 |
+
),
|
4066 |
+
'required' => array(
|
4067 |
+
array('amp-design-selector', '=' , '2'),
|
4068 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4069 |
+
)
|
4070 |
+
),
|
4071 |
+
// Design 3 Menu Options
|
4072 |
+
array(
|
4073 |
+
'id' => 'amp-opt-color-rgba-menu-bg-color',
|
4074 |
+
'type' => 'color_rgba',
|
4075 |
+
'class' => 'child_opt',
|
4076 |
+
'title' => esc_html__('Menu Background','accelerated-mobile-pages'),
|
4077 |
+
'default' => array(
|
4078 |
+
'color' => '#131313',
|
4079 |
+
),
|
4080 |
+
'required' => array(
|
4081 |
+
array('amp-design-selector', '=' , '3'),
|
4082 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4083 |
+
)
|
4084 |
+
),
|
4085 |
+
array(
|
4086 |
+
'id' => 'amp-opt-color-rgba-menu-elements-color',
|
4087 |
+
'type' => 'color_rgba',
|
4088 |
+
'class' => 'child_opt',
|
4089 |
+
'title' => esc_html__('Menu Elements Color','accelerated-mobile-pages'),
|
4090 |
+
'default' => array(
|
4091 |
+
'color' => '#eeeeee',
|
4092 |
+
),
|
4093 |
+
'required' => array(
|
4094 |
+
array('amp-design-selector', '=' , '3'),
|
4095 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4096 |
+
)
|
4097 |
+
),
|
4098 |
+
array(
|
4099 |
+
'id' => 'amp-opt-color-rgba-submenu-bgcolor',
|
4100 |
+
'type' => 'color_rgba',
|
4101 |
+
'class' => 'child_opt',
|
4102 |
+
'title' => esc_html__('Sub Menu Background Color','accelerated-mobile-pages'),
|
4103 |
+
'default' => array(
|
4104 |
+
'color' => '#666666',
|
4105 |
+
),
|
4106 |
+
'required' => array(
|
4107 |
+
array('amp-design-selector', '=' , '3'),
|
4108 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4109 |
+
)
|
4110 |
+
),
|
4111 |
+
array(
|
4112 |
+
'id' => 'amp-opt-color-rgba-submenu-hover-bgcolor',
|
4113 |
+
'type' => 'color_rgba',
|
4114 |
+
'class' => 'child_opt',
|
4115 |
+
'title' => esc_html__('Sub Menu Hover Background Color','accelerated-mobile-pages'),
|
4116 |
+
'default' => array(
|
4117 |
+
'color' => '#666666',
|
4118 |
+
),
|
4119 |
+
'required' => array(
|
4120 |
+
array('amp-design-selector', '=' , '3'),
|
4121 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4122 |
+
)
|
4123 |
+
),
|
4124 |
+
array(
|
4125 |
+
'id' => 'amp-opt-color-rgba-menu-label-color',
|
4126 |
+
'type' => 'color_rgba',
|
4127 |
+
'class' => 'child_opt',
|
4128 |
+
'title' => esc_html__('Menu Label Color','accelerated-mobile-pages'),
|
4129 |
+
'default' => array(
|
4130 |
+
'color' => '#aaa',
|
4131 |
+
),
|
4132 |
+
'required' => array(
|
4133 |
+
array('amp-design-selector', '=' , '3'),
|
4134 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4135 |
+
)
|
4136 |
+
),
|
4137 |
+
array(
|
4138 |
+
'id' => 'amp-opt-color-rgba-menu-brdr-color',
|
4139 |
+
'type' => 'color_rgba',
|
4140 |
+
'class' => 'child_opt',
|
4141 |
+
'title' => esc_html__('Menu Border Color','accelerated-mobile-pages'),
|
4142 |
+
'default' => array(
|
4143 |
+
'color' => '#555555',
|
4144 |
+
),
|
4145 |
+
'required' => array(
|
4146 |
+
array('amp-design-selector', '=' , '3'),
|
4147 |
+
array('ampforwp-amp-menu', '=' , '1')
|
4148 |
+
)
|
4149 |
+
),
|
4150 |
+
|
4151 |
+
|
4152 |
array(
|
4153 |
'id' => 'header_section_3',
|
4154 |
'type' => 'section',
|
4245 |
)
|
4246 |
),
|
4247 |
array(
|
4248 |
+
'id' => 'header_design_section',
|
4249 |
+
'type' => 'section',
|
4250 |
+
'title' => __('Header Designs Options', 'accelerated-mobile-pages'),
|
4251 |
+
'indent' => true,
|
4252 |
+
'layout_type' => 'accordion',
|
4253 |
+
'accordion-open'=> 1,
|
4254 |
+
'required' => array(
|
4255 |
+
array('amp-design-selector', '!=' , '4')
|
4256 |
+
)
|
4257 |
),
|
4258 |
+
// Design 1 Fields
|
4259 |
+
array(
|
4260 |
+
'id' => 'amp-d1-background-color',
|
4261 |
'type' => 'color_rgba',
|
4262 |
'title' => esc_html__('Header Background','accelerated-mobile-pages'),
|
4263 |
'default' => array(
|
4264 |
+
'color' => '#0a89c0',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4265 |
),
|
4266 |
'required' => array(
|
4267 |
+
array('amp-design-selector', '=' , '1')
|
4268 |
)
|
4269 |
),
|
4270 |
array(
|
4271 |
+
'id' => 'amp-d1-elements-color',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4272 |
'type' => 'color_rgba',
|
4273 |
+
'title' => esc_html__('Header Elements Color','accelerated-mobile-pages'),
|
4274 |
'default' => array(
|
4275 |
+
'color' => '#ffffff',
|
4276 |
),
|
4277 |
'required' => array(
|
4278 |
+
array('amp-design-selector', '=' , '1')
|
4279 |
)
|
4280 |
),
|
4281 |
+
// Design 2 Fields
|
4282 |
array(
|
4283 |
+
'id' => 'amp-d2-background-color',
|
4284 |
'type' => 'color_rgba',
|
4285 |
+
'title' => esc_html__('Header Background','accelerated-mobile-pages'),
|
4286 |
'default' => array(
|
4287 |
+
'color' => '#0a89c0',
|
4288 |
),
|
4289 |
'required' => array(
|
4290 |
+
array('amp-design-selector', '=' , '2')
|
4291 |
)
|
4292 |
),
|
4293 |
+
array(
|
4294 |
+
'id' => 'amp-d2-elements-color',
|
4295 |
'type' => 'color_rgba',
|
4296 |
+
'title' => esc_html__('Header Elements Color','accelerated-mobile-pages'),
|
4297 |
'default' => array(
|
4298 |
+
'color' => '#ffffff',
|
4299 |
),
|
4300 |
'required' => array(
|
4301 |
+
array('amp-design-selector', '=' , '2')
|
4302 |
)
|
4303 |
+
),
|
4304 |
+
// Design 3 Fields
|
4305 |
+
array(
|
4306 |
+
'id' => 'amp-opt-color-rgba-headercolor',
|
4307 |
'type' => 'color_rgba',
|
4308 |
+
'title' => esc_html__('Header Background','accelerated-mobile-pages'),
|
4309 |
'default' => array(
|
4310 |
+
'color' => '#FFFFFF',
|
4311 |
),
|
4312 |
'required' => array(
|
4313 |
array('amp-design-selector', '=' , '3')
|
4314 |
)
|
4315 |
),
|
4316 |
+
array(
|
4317 |
+
'id' => 'amp-opt-color-rgba-headerelements',
|
4318 |
'type' => 'color_rgba',
|
4319 |
+
'title' => esc_html__('Header Elements','accelerated-mobile-pages'),
|
4320 |
'default' => array(
|
4321 |
+
'color' => ampforwp_get_element_default_color(),
|
4322 |
),
|
4323 |
'required' => array(
|
4324 |
array('amp-design-selector', '=' , '3')
|
4904 |
array('ampforwp-homepage-posts-image-modify-size','=',1)
|
4905 |
)
|
4906 |
),
|
4907 |
+
array(
|
4908 |
+
'id' => 'amforwp-homepage-date-switch',
|
4909 |
+
'type' => 'switch',
|
4910 |
+
'title' => esc_html__('Date in Loop', 'accelerated-mobile-pages'),
|
4911 |
+
'default' => 1,
|
4912 |
+
'tooltip-subtitle' => esc_html__('Enabel this option to show data below each post of Home page loop'),
|
4913 |
+
),
|
4914 |
)
|
4915 |
));
|
4916 |
$yoast_breadcrumbs = '';
|
4970 |
'default' => 1,
|
4971 |
'required' => array( array('amp-design-selector', '=' , '4') ),
|
4972 |
),
|
4973 |
+
array(
|
4974 |
+
'id' => 'swift-featued-image-type',
|
4975 |
+
'class' => 'child_opt child_opt_arrow',
|
4976 |
+
'type' => 'select',
|
4977 |
+
'title' => esc_html__('Featured Image Type', 'accelerated-mobile-pages'),
|
4978 |
+
'tooltip-subtitle' => esc_html__('Select Featured Image Size','accelerated-mobile-pages'),
|
4979 |
+
'options' => array(
|
4980 |
+
'1' => 'Full Screen Image',
|
4981 |
+
'2' => 'Image Fit above the Content',
|
4982 |
+
),
|
4983 |
+
'default' => '1',
|
4984 |
+
'required' => array(
|
4985 |
+
array('amp-design-selector', '=' , '4'),
|
4986 |
+
array('swift-featued-image', '=' , '1'),
|
4987 |
+
array('rp_design_type', '=' , '1')
|
4988 |
+
),
|
4989 |
+
),
|
4990 |
array(
|
4991 |
'id' => 'swift-featued-image-size',
|
4992 |
'class' => 'child_opt child_opt_arrow',
|
5066 |
'default' => '1',
|
5067 |
'title' => esc_html__('Categories & Tags Links', 'accelerated-mobile-pages'),
|
5068 |
),
|
5069 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
5070 |
// Excerpt ON/OFF
|
5071 |
array(
|
5072 |
'id' => 'enable-excerpt-single',
|
5159 |
'tooltip-subtitle' => esc_html__('To enable & disable recent posts', 'accelerated-mobile-pages'),
|
5160 |
'default' => 1,
|
5161 |
),
|
5162 |
+
array(
|
5163 |
+
'id' => 'amforwp-recentpost-date-switch',
|
5164 |
+
'type' => 'switch',
|
5165 |
+
'class' => 'child_opt child_opt_arrow',
|
5166 |
+
'title' => esc_html__('Recent Posts Date', 'accelerated-mobile-pages'),
|
5167 |
+
'default' => 1,
|
5168 |
+
'tooltip-subtitle' => esc_html__('Enable this option to show data below each post of Recent post loop'),
|
5169 |
+
'required' => array('ampforwp-swift-recent-posts' , '=' , '1'),
|
5170 |
+
),
|
5171 |
array(
|
5172 |
'id' => 'ampforwp-single_section_3',
|
5173 |
'type' => 'section',
|
5732 |
'title' => esc_html__('Make "View Non-AMP" link nofollow', 'accelerated-mobile-pages'),
|
5733 |
'default' => 0
|
5734 |
),
|
5735 |
+
array(
|
5736 |
+
'id' => 'amp-footer-design-options',
|
5737 |
+
'type' => 'section',
|
5738 |
+
'title' => __('Footer Design Options', 'accelerated-mobile-pages'),
|
5739 |
+
'indent' => true,
|
5740 |
+
//'start' => true,
|
5741 |
+
//'label' => 'Tab 2',
|
5742 |
+
'required' => array(
|
5743 |
+
array('amp-design-selector', '!=' , '4')
|
5744 |
+
),
|
5745 |
+
'layout_type' => 'accordion',
|
5746 |
+
'accordion-open'=> 1,
|
5747 |
+
),
|
5748 |
+
// Design 1
|
5749 |
array(
|
5750 |
'id' => 'ampforwp-footer-background-color-1',
|
5751 |
'type' => 'color_rgba',
|
5757 |
array('amp-design-selector', '=' , '1')
|
5758 |
)
|
5759 |
),
|
5760 |
+
array(
|
5761 |
+
'id' => 'd1-footer-hdng-color',
|
5762 |
+
'type' => 'color_rgba',
|
5763 |
+
'title' => esc_html__('Footer Heading Color', 'accelerated-mobile-pages'),
|
5764 |
+
'default' => array(
|
5765 |
+
'color' => '#353535'
|
5766 |
+
),
|
5767 |
+
'required' => array(
|
5768 |
+
array('amp-design-selector', '=' , '1')
|
5769 |
+
)
|
5770 |
+
),
|
5771 |
+
array(
|
5772 |
+
'id' => 'd1-footer-txt-color',
|
5773 |
+
'type' => 'color_rgba',
|
5774 |
+
'title' => esc_html__('Footer Text Color', 'accelerated-mobile-pages'),
|
5775 |
+
'default' => array(
|
5776 |
+
'color' => '#353535'
|
5777 |
+
),
|
5778 |
+
'required' => array(
|
5779 |
+
array('amp-design-selector', '=' , '1')
|
5780 |
+
)
|
5781 |
+
),
|
5782 |
+
array(
|
5783 |
+
'id' => 'd1-footer-link-color',
|
5784 |
+
'type' => 'color_rgba',
|
5785 |
+
'title' => esc_html__('Footer Link Color', 'accelerated-mobile-pages'),
|
5786 |
+
'default' => array(
|
5787 |
+
'color' => '#0a89c0'
|
5788 |
+
),
|
5789 |
+
'required' => array(
|
5790 |
+
array('amp-design-selector', '=' , '1')
|
5791 |
+
)
|
5792 |
+
),
|
5793 |
+
array(
|
5794 |
+
'id' => 'd1-footer-link-hvr-color',
|
5795 |
+
'type' => 'color_rgba',
|
5796 |
+
'title' => esc_html__('Footer Link Hover Color', 'accelerated-mobile-pages'),
|
5797 |
+
'default' => array(
|
5798 |
+
'color' => '#353535'
|
5799 |
+
),
|
5800 |
+
'required' => array(
|
5801 |
+
array('amp-design-selector', '=' , '1')
|
5802 |
+
)
|
5803 |
+
),
|
5804 |
+
array(
|
5805 |
+
'id' => 'd1-footer-brdr-color',
|
5806 |
+
'type' => 'color_rgba',
|
5807 |
+
'title' => esc_html__('Footer Border Color', 'accelerated-mobile-pages'),
|
5808 |
+
'default' => array(
|
5809 |
+
'color' => '#c2c2c2'
|
5810 |
+
),
|
5811 |
+
'required' => array(
|
5812 |
+
array('amp-design-selector', '=' , '1')
|
5813 |
+
)
|
5814 |
+
),
|
5815 |
+
array(
|
5816 |
+
'id' => 'd1-footer-cpr-color',
|
5817 |
+
'type' => 'color_rgba',
|
5818 |
+
'title' => esc_html__('Footer Copyrights Color', 'accelerated-mobile-pages'),
|
5819 |
+
'default' => array(
|
5820 |
+
'color' => '#696969'
|
5821 |
+
),
|
5822 |
+
'required' => array(
|
5823 |
+
array('amp-design-selector', '=' , '1')
|
5824 |
+
)
|
5825 |
+
),
|
5826 |
+
// Design 2
|
5827 |
array(
|
5828 |
'id' => 'ampforwp-footer-background-color-2',
|
5829 |
'type' => 'color_rgba',
|
5835 |
array('amp-design-selector', '=' , '2')
|
5836 |
)
|
5837 |
),
|
5838 |
+
array(
|
5839 |
+
'id' => 'd2-footer-hdng-color',
|
5840 |
+
'type' => 'color_rgba',
|
5841 |
+
'title' => esc_html__('Footer Heading Color', 'accelerated-mobile-pages'),
|
5842 |
+
'default' => array(
|
5843 |
+
'color' => '#222222'
|
5844 |
+
),
|
5845 |
+
'required' => array(
|
5846 |
+
array('amp-design-selector', '=' , '2')
|
5847 |
+
)
|
5848 |
+
),
|
5849 |
+
array(
|
5850 |
+
'id' => 'd2-footer-txt-color',
|
5851 |
+
'type' => 'color_rgba',
|
5852 |
+
'title' => esc_html__('Footer Text Color', 'accelerated-mobile-pages'),
|
5853 |
+
'default' => array(
|
5854 |
+
'color' => '#222222'
|
5855 |
+
),
|
5856 |
+
'required' => array(
|
5857 |
+
array('amp-design-selector', '=' , '2')
|
5858 |
+
)
|
5859 |
+
),
|
5860 |
+
array(
|
5861 |
+
'id' => 'd2-footer-link-color',
|
5862 |
+
'type' => 'color_rgba',
|
5863 |
+
'title' => esc_html__('Footer Link Color', 'accelerated-mobile-pages'),
|
5864 |
+
'default' => array(
|
5865 |
+
'color' => '#0a89c0'
|
5866 |
+
),
|
5867 |
+
'required' => array(
|
5868 |
+
array('amp-design-selector', '=' , '2')
|
5869 |
+
)
|
5870 |
+
),
|
5871 |
+
array(
|
5872 |
+
'id' => 'd2-footer-brdr-color',
|
5873 |
+
'type' => 'color_rgba',
|
5874 |
+
'title' => esc_html__('Footer Border Color', 'accelerated-mobile-pages'),
|
5875 |
+
'default' => array(
|
5876 |
+
'color' => '#eeeeee'
|
5877 |
+
),
|
5878 |
+
'required' => array(
|
5879 |
+
array('amp-design-selector', '=' , '2')
|
5880 |
+
)
|
5881 |
+
),
|
5882 |
+
// Design 3
|
5883 |
array(
|
5884 |
'id' => 'ampforwp-footer-background-color-3',
|
5885 |
'type' => 'color_rgba',
|
5891 |
array('amp-design-selector', '=' , '3')
|
5892 |
)
|
5893 |
),
|
5894 |
+
array(
|
5895 |
+
'id' => 'd3-footer-hdng-color',
|
5896 |
+
'type' => 'color_rgba',
|
5897 |
+
'title' => esc_html__('Footer Heading Color', 'accelerated-mobile-pages'),
|
5898 |
+
'default' => array(
|
5899 |
+
'color' => '#aaaaaa'
|
5900 |
+
),
|
5901 |
+
'required' => array(
|
5902 |
+
array('amp-design-selector', '=' , '3')
|
5903 |
+
)
|
5904 |
+
),
|
5905 |
+
array(
|
5906 |
+
'id' => 'd3-footer-txt-color',
|
5907 |
+
'type' => 'color_rgba',
|
5908 |
+
'title' => esc_html__('Footer Text Color', 'accelerated-mobile-pages'),
|
5909 |
+
'default' => array(
|
5910 |
+
'color' => '#eeeeee'
|
5911 |
+
),
|
5912 |
+
'required' => array(
|
5913 |
+
array('amp-design-selector', '=' , '3')
|
5914 |
+
)
|
5915 |
+
),
|
5916 |
+
array(
|
5917 |
+
'id' => 'd3-footer-link-color',
|
5918 |
+
'type' => 'color_rgba',
|
5919 |
+
'title' => esc_html__('Footer Link Color', 'accelerated-mobile-pages'),
|
5920 |
+
'default' => array(
|
5921 |
+
'color' => '#ffffff'
|
5922 |
+
),
|
5923 |
+
'required' => array(
|
5924 |
+
array('amp-design-selector', '=' , '3')
|
5925 |
+
)
|
5926 |
+
),
|
5927 |
+
array(
|
5928 |
+
'id' => 'd3-footer-brdr-color',
|
5929 |
+
'type' => 'color_rgba',
|
5930 |
+
'title' => esc_html__('Footer Border Color', 'accelerated-mobile-pages'),
|
5931 |
+
'default' => array(
|
5932 |
+
'color' => '#3c3c3c'
|
5933 |
+
),
|
5934 |
+
'required' => array(
|
5935 |
+
array('amp-design-selector', '=' , '3')
|
5936 |
+
)
|
5937 |
+
),
|
5938 |
+
array(
|
5939 |
+
'id' => 'd3-footer-cpr-color',
|
5940 |
+
'type' => 'color_rgba',
|
5941 |
+
'title' => esc_html__('Footer Copyrights Color', 'accelerated-mobile-pages'),
|
5942 |
+
'default' => array(
|
5943 |
+
'color' => '#ffffff'
|
5944 |
+
),
|
5945 |
+
'required' => array(
|
5946 |
+
array('amp-design-selector', '=' , '3')
|
5947 |
+
)
|
5948 |
+
),
|
5949 |
+
array(
|
5950 |
+
'id' => 'd3-footer-pwrd-color',
|
5951 |
+
'type' => 'color_rgba',
|
5952 |
+
'title' => esc_html__('Footer Powered by Color', 'accelerated-mobile-pages'),
|
5953 |
+
'default' => array(
|
5954 |
+
'color' => '#666666'
|
5955 |
+
),
|
5956 |
+
'required' => array(
|
5957 |
+
array('amp-design-selector', '=' , '3')
|
5958 |
+
)
|
5959 |
+
),
|
5960 |
array(
|
5961 |
'id' => 'footer-tab-2',
|
5962 |
'type' => 'section',
|
6200 |
|
6201 |
// Social Section
|
6202 |
Redux::setSection( $opt_name, array(
|
6203 |
+
'title' => esc_html__( 'Social Sharing', 'accelerated-mobile-pages' ),
|
6204 |
'id' => 'amp-social',
|
6205 |
'desc' => esc_html__('All the Social sharing and the social profile related settings are here','accelerated-mobile-pages'),
|
6206 |
'subsection' => true,
|
6257 |
'tooltip-subtitle' => sprintf('%s <a href="https://www.addthis.com/register" target="_blank">%s</a>, %s <a href="https://www.addthis.com/academy/how-to-customize-your-share-buttons-on-the-amp-for-wp-plugin" target="_blank">%s</a>',esc_html__('You are using the default AddThis share buttons. To customize your share buttons, create a free account at','accelerated-mobile-pages'),esc_html__('AddThis.com','accelerated-mobile-pages'),esc_html__('then activate the Inline Share Buttons. Once your buttons are activated, replace the default Pub ID and Tool ID with your personalized IDs. For instructions, visit','accelerated-mobile-pages'),esc_html__('here','accelerated-mobile-pages')),
|
6258 |
'default' => true,
|
6259 |
),
|
6260 |
+
array(
|
6261 |
+
'id' => 'addthis-floating-share',
|
6262 |
+
'type' => 'switch',
|
6263 |
+
'class' => 'child_opt child_opt_arrow',
|
6264 |
+
'title' => esc_html__('Addthis Floating Share', 'accelerated-mobile-pages'),
|
6265 |
+
'default' => '0',
|
6266 |
+
'required' => array(array('enable-add-this-option', '=', '1'))
|
6267 |
+
),
|
6268 |
+
array(
|
6269 |
+
'id' => 'addthis-inline-share',
|
6270 |
+
'type' => 'switch',
|
6271 |
+
'class' => 'child_opt child_opt_arrow',
|
6272 |
+
'title' => esc_html__('Addthis Inline Share', 'accelerated-mobile-pages'),
|
6273 |
+
'default' => '1',
|
6274 |
+
'required' => array(array('enable-add-this-option', '=', '1'))
|
6275 |
+
),
|
6276 |
array(
|
6277 |
'id' => 'swift-add-this-position',
|
6278 |
'type' => 'select',
|
6279 |
+
'class' => 'child_opt child_opt_arrow',
|
6280 |
'title' => esc_html__( 'Position', 'accelerated-mobile-pages' ),
|
6281 |
'options' => array(
|
6282 |
'default' => 'Single Sidebar (left side)',
|
6288 |
array('amp-design-selector', '=', '4'),
|
6289 |
array('enable-add-this-option', '=', '1'),
|
6290 |
array('single-design-type', '=', '1'),
|
6291 |
+
array('addthis-inline-share', '=', '1'),
|
6292 |
)
|
6293 |
),
|
6294 |
array(
|
6295 |
'id' => 'swift-layout-addthis-pos',
|
6296 |
'type' => 'select',
|
6297 |
+
'class' => 'child_opt child_opt_arrow',
|
6298 |
'title' => esc_html__( 'Position', 'accelerated-mobile-pages' ),
|
6299 |
'options' => array(
|
6300 |
'above-content' => 'Above Content',
|
6306 |
array('enable-add-this-option', '=', '1'),
|
6307 |
array('single-design-type', '!=', '1'),
|
6308 |
array('single-design-type', '!=', '6'),
|
6309 |
+
array('addthis-inline-share', '=', '1'),
|
6310 |
)
|
6311 |
),
|
6312 |
array(
|
6313 |
'id' => 'swift-layout-6-addthis-pos',
|
6314 |
'type' => 'select',
|
6315 |
+
'class' => 'child_opt child_opt_arrow',
|
6316 |
'title' => esc_html__( 'Position', 'accelerated-mobile-pages' ),
|
6317 |
'options' => array(
|
6318 |
'above-content' => 'Above Content',
|
6323 |
array('amp-design-selector', '=', '4'),
|
6324 |
array('enable-add-this-option', '=', '1'),
|
6325 |
array('single-design-type', '=', '6'),
|
6326 |
+
array('addthis-inline-share', '=', '1'),
|
6327 |
)
|
6328 |
),
|
6329 |
array(
|
6330 |
'id' => 'add-this-pub-id',
|
6331 |
'title' => esc_html__('Pub ID', 'accelerated-mobile-pages'),
|
6332 |
'type' => 'text',
|
6333 |
+
'class' => 'child_opt child_opt_arrow',
|
6334 |
'required' => array('enable-add-this-option', '=' , '1'),
|
6335 |
'default' => esc_html__('ra-5cc8551aa4f16f5c','accelerated-mobile-pages'),
|
6336 |
),
|
6338 |
'id' => 'add-this-widget-id',
|
6339 |
'title' => esc_html__('Tool ID', 'accelerated-mobile-pages'),
|
6340 |
'type' => 'text',
|
6341 |
+
'class' => 'child_opt child_opt_arrow',
|
6342 |
'required' => array('enable-add-this-option', '=' , '1'),
|
6343 |
'default' => esc_html__('cwgj','accelerated-mobile-pages'),
|
6344 |
),
|
6345 |
//End AddThis Support
|
6346 |
+
//Start Social Sticky Icon
|
6347 |
+
array(
|
6348 |
+
'id' => 'sticky-social-settings',
|
6349 |
+
'type' => 'section',
|
6350 |
+
'title' => esc_html__('Sticky Social', 'accelerated-mobile-pages'),
|
6351 |
+
'indent' => true,
|
6352 |
+
'layout_type' => 'accordion',
|
6353 |
+
'accordion-open'=> 1,
|
6354 |
+
),
|
6355 |
+
// Social Sticky Icons ON/OFF
|
6356 |
+
array(
|
6357 |
+
'id' => 'enable-single-social-icons',
|
6358 |
+
'type' => 'switch',
|
6359 |
+
'default' => '1',
|
6360 |
+
'title' => esc_html__('Sticky Social Sharing bar', 'accelerated-mobile-pages'),
|
6361 |
+
),
|
6362 |
+
//End Social Sticky Icon
|
6363 |
array(
|
6364 |
'id' => 'social-shre',
|
6365 |
'type' => 'section',
|
@@ -40,6 +40,10 @@ function ampforwp_thirdparty_compatibility(){
|
|
40 |
add_filter('the_content','ampforwp_remove_enfold_theme_shortcodes_tags');
|
41 |
// AMP is not working due to JCH Optimize Pro plugin #3185
|
42 |
remove_action('shutdown', 'jch_buffer_end', -1);
|
|
|
|
|
|
|
|
|
43 |
}
|
44 |
|
45 |
//Updater to check license
|
@@ -965,7 +969,12 @@ if ( ! function_exists('ampforwp_yoast_twitter_handle') ) {
|
|
965 |
$twitter = get_the_author_meta( 'twitter', $post->post_author );
|
966 |
}
|
967 |
if($twitter){
|
968 |
-
|
|
|
|
|
|
|
|
|
|
|
969 |
}
|
970 |
return '';
|
971 |
}
|
@@ -1026,4 +1035,15 @@ function ampforwp_woocommerce_conditional_check(){
|
|
1026 |
}
|
1027 |
}
|
1028 |
return apply_filters('ampforwp_woocommerce_conditional_check', $showSingleCss);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1029 |
}
|
40 |
add_filter('the_content','ampforwp_remove_enfold_theme_shortcodes_tags');
|
41 |
// AMP is not working due to JCH Optimize Pro plugin #3185
|
42 |
remove_action('shutdown', 'jch_buffer_end', -1);
|
43 |
+
//ShortPixel Plugin Compatibility to remove picture tag in amp #3439
|
44 |
+
remove_filter( 'the_content', 'shortPixelConvertImgToPictureAddWebp', 10000 );
|
45 |
+
remove_filter( 'the_excerpt', 'shortPixelConvertImgToPictureAddWebp', 10000 );
|
46 |
+
remove_filter( 'post_thumbnail_html', 'shortPixelConvertImgToPictureAddWebp');
|
47 |
}
|
48 |
|
49 |
//Updater to check license
|
969 |
$twitter = get_the_author_meta( 'twitter', $post->post_author );
|
970 |
}
|
971 |
if($twitter){
|
972 |
+
if ( function_exists('mvp_setup') ) {
|
973 |
+
return ' <span><a class="zox_tw" href="https://twitter.com/'.esc_attr($twitter).'" target="_blank"></a></span>';
|
974 |
+
}else{
|
975 |
+
return ' <span><a href="https://twitter.com/'.esc_attr($twitter).'" target="_blank">@'.esc_html($twitter).'</a></span>';
|
976 |
+
}
|
977 |
+
|
978 |
}
|
979 |
return '';
|
980 |
}
|
1035 |
}
|
1036 |
}
|
1037 |
return apply_filters('ampforwp_woocommerce_conditional_check', $showSingleCss);
|
1038 |
+
}
|
1039 |
+
|
1040 |
+
// Gallery Images
|
1041 |
+
function ampforwp_non_amp_gallery($matches){
|
1042 |
+
$images = $matches[2];
|
1043 |
+
$images = preg_replace_callback("/<img(.*?)>/", function($m){
|
1044 |
+
return '<li class="mySlides fade">'.$m[0]. /* $m[0] is already sanitized, XSS OK */'</li>';
|
1045 |
+
}, $images);
|
1046 |
+
$imagesHTML = '<ul class="slideshow-container">'.$images. /* $images is already sanitized, XSS OK */'<a class="nonamp-prev" onclick="plusSlides(-1)">❮</a>
|
1047 |
+
<a class="nonamp-next" onclick="plusSlides(1)">❯</a></ul>';
|
1048 |
+
return $imagesHTML;
|
1049 |
}
|
@@ -47,7 +47,7 @@ function amp_post_template_add_boilerplate_css( $amp_template ) {
|
|
47 |
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
|
48 |
<?php
|
49 |
}
|
50 |
-
if(!function_exists('ampforwp_with_scheme_app_output') && !function_exists('saswp_schema_markup_output') && ( ampforwp_get_setting('ampforwp-seo-selection') != "rank_math" || ! ampforwp_get_setting('ampforwp-seo-rank_math-schema'))):
|
51 |
add_action( 'amp_post_template_footer', 'AMPforWP\\AMPVendor\\amp_post_template_add_schemaorg_metadata' );
|
52 |
function amp_post_template_add_schemaorg_metadata( $amp_template ) {
|
53 |
$metadata = $amp_template->get( 'metadata' );
|
47 |
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
|
48 |
<?php
|
49 |
}
|
50 |
+
if(!function_exists('ampforwp_with_scheme_app_output') && !function_exists('saswp_schema_markup_output') && ( ampforwp_get_setting('ampforwp-seo-selection') != "rank_math" || ! ampforwp_get_setting('ampforwp-seo-rank_math-schema')) && ! class_exists('SQ_Classes_ObjController') ):
|
51 |
add_action( 'amp_post_template_footer', 'AMPforWP\\AMPVendor\\amp_post_template_add_schemaorg_metadata' );
|
52 |
function amp_post_template_add_schemaorg_metadata( $amp_template ) {
|
53 |
$metadata = $amp_template->get( 'metadata' );
|
@@ -37,6 +37,8 @@ class AMP_Content {
|
|
37 |
|
38 |
private function transform() {
|
39 |
$content = $this->content;
|
|
|
|
|
40 |
// First, embeds + the_content filter
|
41 |
$embed_handlers = $this->register_embed_handlers();
|
42 |
if( (!empty($this->args)) && (!empty($this->args['non-content'])) ){
|
37 |
|
38 |
private function transform() {
|
39 |
$content = $this->content;
|
40 |
+
// Check for AMP Components #3422
|
41 |
+
AMP_Content_Sanitizer::sanitize($content, array('AMP_Tag_And_Attribute_Sanitizer'=> array() ) );
|
42 |
// First, embeds + the_content filter
|
43 |
$embed_handlers = $this->register_embed_handlers();
|
44 |
if( (!empty($this->args)) && (!empty($this->args['non-content'])) ){
|
@@ -4,7 +4,7 @@ require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handle
|
|
4 |
|
5 |
class AMP_Wistia_Embed_Handler extends AMP_Base_Embed_Handler {
|
6 |
const SHORT_URL_HOST = 'wistia.com';
|
7 |
-
const URL_PATTERN = '#https?:\/\/(?:www|support|fast)\.wistia\.com/(?:v/|embed/|medias/)(?:medias/)?#i';
|
8 |
const RATIO = 0.5625;
|
9 |
|
10 |
protected $DEFAULT_WIDTH = 512;
|
4 |
|
5 |
class AMP_Wistia_Embed_Handler extends AMP_Base_Embed_Handler {
|
6 |
const SHORT_URL_HOST = 'wistia.com';
|
7 |
+
const URL_PATTERN = '#https?:\/\/(?:www|support|fast|(.*?))\.wistia\.com/(?:v/|embed/|medias/)(?:medias/)?#i';
|
8 |
const RATIO = 0.5625;
|
9 |
|
10 |
protected $DEFAULT_WIDTH = 512;
|
@@ -1477,6 +1477,46 @@ class AMP_Allowed_Tags_Generated {
|
|
1477 |
),
|
1478 |
),
|
1479 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1480 |
'amp-img' => array(
|
1481 |
array(
|
1482 |
'attr_spec_list' => array(
|
1477 |
),
|
1478 |
),
|
1479 |
),
|
1480 |
+
'amp-image-slider' => array(
|
1481 |
+
array(
|
1482 |
+
'attr_spec_list' => array(
|
1483 |
+
'disable-hint-reappear' => array(),
|
1484 |
+
'initial-slider-position' => array(
|
1485 |
+
'value_regex' => '0(\\.[0-9]+)?|1(\\.0+)?',
|
1486 |
+
),
|
1487 |
+
'media' => array(),
|
1488 |
+
'noloading' => array(
|
1489 |
+
'value' => array(
|
1490 |
+
'',
|
1491 |
+
),
|
1492 |
+
),
|
1493 |
+
'step-size' => array(
|
1494 |
+
'value_regex' => '0(\\.[0-9]+)?|1(\\.0+)?',
|
1495 |
+
),
|
1496 |
+
),
|
1497 |
+
'tag_spec' => array(
|
1498 |
+
'amp_layout' => array(
|
1499 |
+
'supported_layouts' => array(
|
1500 |
+
2,
|
1501 |
+
9,
|
1502 |
+
1,
|
1503 |
+
4,
|
1504 |
+
),
|
1505 |
+
),
|
1506 |
+
'child_tags' => array(
|
1507 |
+
'child_tag_name_oneof' => array(
|
1508 |
+
'amp-img',
|
1509 |
+
'div',
|
1510 |
+
),
|
1511 |
+
'mandatory_min_num_child_tags' => 2,
|
1512 |
+
),
|
1513 |
+
'requires_extension' => array(
|
1514 |
+
'amp-image-slider',
|
1515 |
+
),
|
1516 |
+
'spec_url' => 'https://amp.dev/documentation/components/amp-image-slider',
|
1517 |
+
),
|
1518 |
+
),
|
1519 |
+
),
|
1520 |
'amp-img' => array(
|
1521 |
array(
|
1522 |
'attr_spec_list' => array(
|
@@ -79,4 +79,7 @@ Reason: To extend the functionality of sidebars and Pagebuilder
|
|
79 |
49. class-amp-blacklist-sanitizer.php updated #3276
|
80 |
50. Added id atttribute allowed in amp-video sanitizer #3406
|
81 |
51. amp_get_permalink() function updated for the post id zero #3381
|
82 |
-
52. Added code for Image is not loading when source of it starting from ../wp-content issue in class-amp-wistia-embed.php #3403
|
|
|
|
|
|
79 |
49. class-amp-blacklist-sanitizer.php updated #3276
|
80 |
50. Added id atttribute allowed in amp-video sanitizer #3406
|
81 |
51. amp_get_permalink() function updated for the post id zero #3381
|
82 |
+
52. Added code for Image is not loading when source of it starting from ../wp-content issue in class-amp-wistia-embed.php #3403
|
83 |
+
53. Updated class-amp-wistia-embed.php #3386
|
84 |
+
54. Added class_exists('SQ_Classes_ObjController') condition to amp_post_template_add_schemaorg_metadata for Squirrly SEO Compatibility #3421
|
85 |
+
55. class-amp-content.php updated #3422
|
@@ -73,6 +73,45 @@ $output = '<section {{if_row_id}}id={{row_id}}{{ifend_row_id}} class="ap_m {{row
|
|
73 |
{{ifend_condition_check_for_overlay_1}}
|
74 |
</div>
|
75 |
{{ifend_condition_background_type_video}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
';
|
77 |
$outputEnd = '<div class="cb"></div> </section>';
|
78 |
$front_css = '
|
@@ -102,7 +141,6 @@ $front_css = '
|
|
102 |
{{ifend_condition_check_for_brdr_1}}
|
103 |
color: {{font_color_picker}};
|
104 |
background-color: {{color_picker}};
|
105 |
-
{{if_selected_gradient}}{{selected_gradient}};{{ifend_selected_gradient}}
|
106 |
margin: {{margin_css}};
|
107 |
padding:{{padding_css}};
|
108 |
|
@@ -194,6 +232,97 @@ $front_css = '
|
|
194 |
{{ifend_condition_check_for_overlay_1}}
|
195 |
{{ifend_condition_background_type_video}}
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
@media(max-width:768px){
|
198 |
{{row-class}}.amppb-fluid{width:100%;}
|
199 |
{{row-class}}.amppb-fluid .col, {{row-class}}.amppb-fluid .col-2-wrap{max-width:90%;}
|
@@ -318,14 +447,16 @@ $containerCommonSettings = array(
|
|
318 |
array(
|
319 |
'type' =>'select',
|
320 |
'name' =>"background_type",
|
321 |
-
'label' =>"Background Type",
|
322 |
'tab' =>'customizer',
|
323 |
'default' =>'color',
|
324 |
'options_details'=>array(
|
325 |
'color'=>'Color',
|
326 |
'gradient'=>'Gradient',
|
327 |
'image'=>'Background Image',
|
328 |
-
'video'=>'Background Video'
|
|
|
|
|
329 |
),
|
330 |
'content_type'=>'html',
|
331 |
'output_format'=>''
|
@@ -338,6 +469,22 @@ $containerCommonSettings = array(
|
|
338 |
'content_type'=>'js',
|
339 |
'required' => array('background_type'=>'video'),
|
340 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
array(
|
342 |
'type' =>'select',
|
343 |
'name' =>'align_type',
|
@@ -363,44 +510,172 @@ $containerCommonSettings = array(
|
|
363 |
array(
|
364 |
'type' =>'text',
|
365 |
'name' =>"row_background_video",
|
366 |
-
'label' => esc_html__( '
|
367 |
'tab' =>'customizer',
|
368 |
'default' =>'',
|
369 |
-
'helpmessage' => esc_html__('Your video should be 600px away from the top or not within the first 75% of the viewport and it should be added like - https://
|
370 |
'content_type'=>'html',
|
371 |
'required' => array('background_type'=>'video')
|
372 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
array(
|
374 |
'type' =>'text',
|
375 |
'name' =>"title",
|
376 |
-
'label' =>'
|
377 |
'tab' =>'customizer',
|
378 |
-
'default' =>'
|
379 |
'content_type'=>'html',
|
380 |
-
'
|
|
|
381 |
),
|
382 |
array(
|
383 |
'type' =>'text-editor',
|
384 |
'name' =>"content_title",
|
385 |
-
'label' =>'
|
386 |
'tab' =>'customizer',
|
387 |
-
'default' =>'
|
388 |
'content_type'=>'html',
|
389 |
-
'
|
|
|
390 |
),
|
391 |
array(
|
392 |
'type' =>'text',
|
393 |
'name' =>"tlt_size",
|
394 |
-
'label' =>'Heading Font Size',
|
395 |
'tab' =>'design',
|
396 |
'default' =>'35px',
|
397 |
'content_type'=>'css',
|
398 |
-
'
|
|
|
399 |
),
|
400 |
array(
|
401 |
'type' =>'select',
|
402 |
'name' =>'tlt_wgt',
|
403 |
-
'label' =>"Heading Font Weight",
|
404 |
'tab' =>'design',
|
405 |
'default' =>'600',
|
406 |
'options_details'=>array(
|
@@ -411,48 +686,53 @@ $containerCommonSettings = array(
|
|
411 |
'700' =>'Bold',
|
412 |
),
|
413 |
'content_type'=>'css',
|
414 |
-
'
|
|
|
415 |
),
|
416 |
array(
|
417 |
'type' =>'text',
|
418 |
'name' =>"letter_spacing",
|
419 |
-
'label' =>'Heading Letter Spacing',
|
420 |
'tab' =>'design',
|
421 |
'default' =>'1px',
|
422 |
'content_type'=>'css',
|
423 |
-
'
|
|
|
424 |
),
|
425 |
array(
|
426 |
'type' =>'text',
|
427 |
'name' =>"tlt_ln_hgt",
|
428 |
-
'label' =>'Heading Line Height',
|
429 |
'tab' =>'design',
|
430 |
'default' =>'1.7',
|
431 |
'content_type'=>'css',
|
432 |
-
'
|
|
|
433 |
),
|
434 |
array(
|
435 |
'type' =>'color-picker',
|
436 |
'name' =>"tlt_color",
|
437 |
-
'label' =>'Heading Color',
|
438 |
'tab' =>'design',
|
439 |
'default' =>'#333',
|
440 |
'content_type'=>'css',
|
441 |
-
'
|
|
|
442 |
),
|
443 |
array(
|
444 |
'type' =>'text',
|
445 |
'name' =>"cnt_size",
|
446 |
-
'label' =>'Content Font Size',
|
447 |
'tab' =>'design',
|
448 |
'default' =>'18px',
|
449 |
'content_type'=>'css',
|
450 |
-
'
|
|
|
451 |
),
|
452 |
array(
|
453 |
'type' =>'select',
|
454 |
'name' =>'cnt_font_type',
|
455 |
-
'label' =>"Content Font Weight",
|
456 |
'tab' =>'design',
|
457 |
'default' =>'400',
|
458 |
'options_details'=>array(
|
@@ -463,30 +743,33 @@ $containerCommonSettings = array(
|
|
463 |
'700' =>'Bold',
|
464 |
),
|
465 |
'content_type'=>'css',
|
466 |
-
'
|
|
|
467 |
),
|
468 |
array(
|
469 |
'type' =>'text',
|
470 |
'name' =>"cnt_ln_hgt",
|
471 |
-
'label' =>'Content Line Height',
|
472 |
'tab' =>'design',
|
473 |
'default' =>'1.7',
|
474 |
'content_type'=>'css',
|
475 |
-
'
|
|
|
476 |
),
|
477 |
array(
|
478 |
'type' =>'color-picker',
|
479 |
'name' =>"cnt_color",
|
480 |
-
'label' =>'Content Color',
|
481 |
'tab' =>'design',
|
482 |
'default' =>'#333',
|
483 |
'content_type'=>'css',
|
484 |
-
'
|
|
|
485 |
),
|
486 |
array(
|
487 |
'type' =>'checkbox_bool',
|
488 |
'name' =>"check_for_overlay",
|
489 |
-
'label' => 'Background Video Overlay',
|
490 |
'tab' =>'design',
|
491 |
'default' =>0,
|
492 |
'options' =>array(
|
@@ -496,21 +779,23 @@ $containerCommonSettings = array(
|
|
496 |
)
|
497 |
),
|
498 |
'content_type'=>'html',
|
499 |
-
'
|
|
|
500 |
),
|
501 |
array(
|
502 |
'type' =>'color-picker',
|
503 |
'name' =>"overlay_cnt_color",
|
504 |
-
'label' =>'Background Video Content Color',
|
505 |
'tab' =>'design',
|
506 |
'default' =>'#fff',
|
507 |
'content_type'=>'css',
|
508 |
-
'
|
|
|
509 |
),
|
510 |
array(
|
511 |
'type' =>'checkbox_bool',
|
512 |
'name' =>"check_for_parallax",
|
513 |
-
'label' => 'Parallax Effect',
|
514 |
'tab' =>'design',
|
515 |
'default' =>0,
|
516 |
'options' =>array(
|
@@ -525,7 +810,7 @@ $containerCommonSettings = array(
|
|
525 |
array(
|
526 |
'type' =>'checkbox_bool',
|
527 |
'name' =>"check_for_slant",
|
528 |
-
'label' => 'Slant Background',
|
529 |
'tab' =>'design',
|
530 |
'default' =>0,
|
531 |
'options' =>array(
|
@@ -540,7 +825,7 @@ $containerCommonSettings = array(
|
|
540 |
array(
|
541 |
'type' =>'checkbox_bool',
|
542 |
'name' =>"check_for_enbtp",
|
543 |
-
'label' => 'Enable Top',
|
544 |
'tab' =>'design',
|
545 |
'default' =>0,
|
546 |
'options' =>array(
|
@@ -555,7 +840,7 @@ $containerCommonSettings = array(
|
|
555 |
array(
|
556 |
'type' =>'select',
|
557 |
'name' =>'align_type_slant',
|
558 |
-
'label' =>"Slant Position",
|
559 |
'tab' =>'design',
|
560 |
'default' =>'left',
|
561 |
'options_details'=>array(
|
@@ -563,11 +848,11 @@ $containerCommonSettings = array(
|
|
563 |
'right' =>'Right', ),
|
564 |
'content_type'=>'css',
|
565 |
'required' => array('check_for_slant'=>1, 'check_for_enbtp'=>1)
|
566 |
-
|
567 |
array(
|
568 |
'type' =>'checkbox_bool',
|
569 |
'name' =>"check_for_enbbt",
|
570 |
-
'label' => 'Enable Bottom',
|
571 |
'tab' =>'design',
|
572 |
'default' =>0,
|
573 |
'options' =>array(
|
@@ -582,7 +867,7 @@ $containerCommonSettings = array(
|
|
582 |
array(
|
583 |
'type' =>'select',
|
584 |
'name' =>'align_type_slate_btn',
|
585 |
-
'label' =>"Slant Position",
|
586 |
'tab' =>'design',
|
587 |
'default' =>'lft',
|
588 |
'options_details'=>array(
|
@@ -602,14 +887,14 @@ $containerCommonSettings = array(
|
|
602 |
'required' => array('background_type'=>'color')
|
603 |
),
|
604 |
array(
|
605 |
-
'type' =>'
|
606 |
-
'name' =>"
|
607 |
-
'label' =>'Background
|
608 |
'tab' =>'customizer',
|
609 |
'default' =>'',
|
610 |
'content_type'=>'css',
|
611 |
-
'output_format'=>"%default%",
|
612 |
-
'required' => array('background_type'=>'
|
613 |
),
|
614 |
|
615 |
/*array(
|
@@ -668,7 +953,7 @@ $containerCommonSettings = array(
|
|
668 |
array(
|
669 |
'type' =>'checkbox',
|
670 |
'name' =>"shadow",
|
671 |
-
'label' =>'Background Shadow',
|
672 |
'tab' =>'design',
|
673 |
'default' =>array(),
|
674 |
'options' =>array(
|
@@ -683,7 +968,7 @@ $containerCommonSettings = array(
|
|
683 |
array(
|
684 |
'type' =>'spacing',
|
685 |
'name' =>"margin_css",
|
686 |
-
'label' =>'Set Margin',
|
687 |
'tab' =>'container_css',
|
688 |
'default' =>
|
689 |
array(
|
@@ -697,7 +982,7 @@ $containerCommonSettings = array(
|
|
697 |
array(
|
698 |
'type' =>'spacing',
|
699 |
'name' =>"padding_css",
|
700 |
-
'label' =>'Set Padding',
|
701 |
'tab' =>'container_css',
|
702 |
'default' =>array(
|
703 |
'top'=>'20px',
|
@@ -711,7 +996,7 @@ $containerCommonSettings = array(
|
|
711 |
array(
|
712 |
'type' =>'checkbox_bool',
|
713 |
'name' =>"check_for_brdr",
|
714 |
-
'label' => 'Border',
|
715 |
'tab' =>'container_css',
|
716 |
'default' =>0,
|
717 |
'options' =>array(
|
@@ -725,7 +1010,7 @@ $containerCommonSettings = array(
|
|
725 |
array(
|
726 |
'type' =>'spacing',
|
727 |
'name' =>"border_sz",
|
728 |
-
'label' =>'Border width',
|
729 |
'tab' =>'container_css',
|
730 |
'default' =>array(
|
731 |
'top'=>'0px',
|
@@ -739,7 +1024,7 @@ $containerCommonSettings = array(
|
|
739 |
array(
|
740 |
'type' =>'color-picker',
|
741 |
'name' =>"border_clr_pkr",
|
742 |
-
'label' =>'Border Color',
|
743 |
'tab' =>'container_css',
|
744 |
'default' =>'#ccc',
|
745 |
'required' => array('check_for_brdr'=>1),
|
@@ -749,7 +1034,7 @@ $containerCommonSettings = array(
|
|
749 |
array(
|
750 |
'type' =>'checkbox_bool',
|
751 |
'name' =>"check_for_pdng",
|
752 |
-
'label' => 'Responsive Padding',
|
753 |
'tab' =>'container_css',
|
754 |
'default' =>0,
|
755 |
'options' =>array(
|
@@ -763,7 +1048,7 @@ $containerCommonSettings = array(
|
|
763 |
array(
|
764 |
'type' =>'spacing',
|
765 |
'name' =>"res_pdng",
|
766 |
-
'label' =>'Set Padding',
|
767 |
'tab' =>'container_css',
|
768 |
'default' =>array(
|
769 |
'top'=>'0px',
|
@@ -778,7 +1063,7 @@ $containerCommonSettings = array(
|
|
778 |
array(
|
779 |
'type' =>'checkbox_bool',
|
780 |
'name' =>"check_for_mrgn",
|
781 |
-
'label' => 'Responsive Margin',
|
782 |
'tab' =>'container_css',
|
783 |
'default' =>0,
|
784 |
'options' =>array(
|
@@ -792,7 +1077,7 @@ $containerCommonSettings = array(
|
|
792 |
array(
|
793 |
'type' =>'spacing',
|
794 |
'name' =>"res_mrgn",
|
795 |
-
'label' =>'Set Margin',
|
796 |
'tab' =>'container_css',
|
797 |
'default' =>
|
798 |
array(
|
73 |
{{ifend_condition_check_for_overlay_1}}
|
74 |
</div>
|
75 |
{{ifend_condition_background_type_video}}
|
76 |
+
{{if_condition_background_type==mp4video}}
|
77 |
+
<div class="amp_video">
|
78 |
+
<div class="amp-txt">
|
79 |
+
<h1>{{title}}</h1>
|
80 |
+
{{content_title}}
|
81 |
+
</div>
|
82 |
+
<amp-video class="vdo" width="720" height="405"
|
83 |
+
{{if_condition_enable_mp4video_autoplay==1}}autoplay{{ifend_condition_enable_mp4video_autoplay_1}}
|
84 |
+
src="{{row_background_mp4video}}"
|
85 |
+
layout="responsive"
|
86 |
+
{{if_condition_enable_mp4video_controls==1}}controls{{ifend_condition_enable_mp4video_controls_1}}>
|
87 |
+
</amp-video>
|
88 |
+
{{if_condition_check_for_overlay==1}}
|
89 |
+
<div class="overlay"></div>
|
90 |
+
{{ifend_condition_check_for_overlay_1}}
|
91 |
+
</div>
|
92 |
+
{{ifend_condition_background_type_mp4video}}
|
93 |
+
{{if_condition_background_type==youtubevideo}}
|
94 |
+
<div class="amp_video">
|
95 |
+
<div class="amp-txt">
|
96 |
+
<h1>{{title}}</h1>
|
97 |
+
{{content_title}}
|
98 |
+
</div>
|
99 |
+
<amp-youtube class="vdo" width="480" height="270"
|
100 |
+
layout="responsive"
|
101 |
+
{{if_condition_enable_youtube_controls==1}}data-param-controls=1{{ifend_condition_enable_youtube_controls_1}}
|
102 |
+
{{if_condition_enable_youtube_controls==0}}data-param-controls=0{{ifend_condition_enable_youtube_controls_0}}
|
103 |
+
{{if_condition_enable_modestbranding==1}}data-param-modestbranding="1"{{ifend_condition_enable_modestbranding_1}}
|
104 |
+
{{if_condition_enable_youtube_rel==1}}data-param-rel="1"{{ifend_condition_enable_youtube_rel_1}}
|
105 |
+
{{if_condition_enable_youtube_rel==0}}data-param-rel="0"{{ifend_condition_enable_youtube_rel_0}}
|
106 |
+
{{if_condition_enable_youtube_loop==1}}data-param-playlist="{{row_background_youtubevideo}}"{{ifend_condition_enable_youtube_loop_1}}
|
107 |
+
data-videoid="{{row_background_youtubevideo}}"
|
108 |
+
{{if_condition_enable_youtube_autoplay==1}}autoplay{{ifend_condition_enable_youtube_autoplay_1}}>
|
109 |
+
</amp-youtube>
|
110 |
+
{{if_condition_check_for_overlay==1}}
|
111 |
+
<div class="overlay"></div>
|
112 |
+
{{ifend_condition_check_for_overlay_1}}
|
113 |
+
</div>
|
114 |
+
{{ifend_condition_background_type_youtubevideo}}
|
115 |
';
|
116 |
$outputEnd = '<div class="cb"></div> </section>';
|
117 |
$front_css = '
|
141 |
{{ifend_condition_check_for_brdr_1}}
|
142 |
color: {{font_color_picker}};
|
143 |
background-color: {{color_picker}};
|
|
|
144 |
margin: {{margin_css}};
|
145 |
padding:{{padding_css}};
|
146 |
|
232 |
{{ifend_condition_check_for_overlay_1}}
|
233 |
{{ifend_condition_background_type_video}}
|
234 |
|
235 |
+
{{if_condition_background_type==mp4video}}
|
236 |
+
{{row-class}} .amp_video{
|
237 |
+
position: relative;
|
238 |
+
}
|
239 |
+
{{row-class}} .amp_video .amp-txt{
|
240 |
+
font-size: {{cnt_size}};
|
241 |
+
line-height: {{cnt_ln_hgt}};
|
242 |
+
font-weight: {{cnt_font_type}};
|
243 |
+
{{if_condition_check_for_overlay==0}}
|
244 |
+
color:{{cnt_color}};
|
245 |
+
{{ifend_condition_check_for_overlay_0}}
|
246 |
+
position: absolute;
|
247 |
+
top: 10%;
|
248 |
+
bottom: auto;
|
249 |
+
left: 20%;
|
250 |
+
right: 20%;
|
251 |
+
margin: 0 auto;
|
252 |
+
text-align: center;
|
253 |
+
z-index: 9;
|
254 |
+
}
|
255 |
+
{{row-class}} .amp-txt h1{
|
256 |
+
font-size: {{tlt_size}};
|
257 |
+
font-weight: {{tlt_wgt}};
|
258 |
+
letter-spacing: {{letter_spacing}};
|
259 |
+
line-height: {{tlt_ln_hgt}};
|
260 |
+
{{if_condition_check_for_overlay==0}}
|
261 |
+
color:{{tlt_color}};
|
262 |
+
{{ifend_condition_check_for_overlay_0}}
|
263 |
+
margin-bottom:20px;
|
264 |
+
}
|
265 |
+
{{if_condition_check_for_overlay==1}}
|
266 |
+
{{row-class}} .overlay{
|
267 |
+
background: #000;
|
268 |
+
bottom: 0;
|
269 |
+
left: 0;
|
270 |
+
position: absolute;
|
271 |
+
right: 0;
|
272 |
+
top: 0;
|
273 |
+
opacity: 0.4;
|
274 |
+
}
|
275 |
+
{{row-class}} .amp-txt{
|
276 |
+
color:{{overlay_cnt_color}};
|
277 |
+
}
|
278 |
+
{{ifend_condition_check_for_overlay_1}}
|
279 |
+
{{ifend_condition_background_type_mp4video}}
|
280 |
+
{{if_condition_background_type==youtubevideo}}
|
281 |
+
{{row-class}} .amp_video{
|
282 |
+
position: relative;
|
283 |
+
}
|
284 |
+
{{row-class}} .amp_video .amp-txt{
|
285 |
+
font-size: {{cnt_size}};
|
286 |
+
line-height: {{cnt_ln_hgt}};
|
287 |
+
font-weight: {{cnt_font_type}};
|
288 |
+
{{if_condition_check_for_overlay==0}}
|
289 |
+
color:{{cnt_color}};
|
290 |
+
{{ifend_condition_check_for_overlay_0}}
|
291 |
+
position: absolute;
|
292 |
+
top: 10%;
|
293 |
+
bottom: auto;
|
294 |
+
left: 20%;
|
295 |
+
right: 20%;
|
296 |
+
margin: 0 auto;
|
297 |
+
text-align: center;
|
298 |
+
z-index: 9;
|
299 |
+
}
|
300 |
+
{{row-class}} .amp-txt h1{
|
301 |
+
font-size: {{tlt_size}};
|
302 |
+
font-weight: {{tlt_wgt}};
|
303 |
+
letter-spacing: {{letter_spacing}};
|
304 |
+
line-height: {{tlt_ln_hgt}};
|
305 |
+
{{if_condition_check_for_overlay==0}}
|
306 |
+
color:{{tlt_color}};
|
307 |
+
{{ifend_condition_check_for_overlay_0}}
|
308 |
+
margin-bottom:20px;
|
309 |
+
}
|
310 |
+
{{if_condition_check_for_overlay==1}}
|
311 |
+
{{row-class}} .overlay{
|
312 |
+
background: #000;
|
313 |
+
bottom: 0;
|
314 |
+
left: 0;
|
315 |
+
position: absolute;
|
316 |
+
right: 0;
|
317 |
+
top: 0;
|
318 |
+
opacity: 0.4;
|
319 |
+
}
|
320 |
+
{{row-class}} .amp-txt{
|
321 |
+
color:{{overlay_cnt_color}};
|
322 |
+
}
|
323 |
+
{{ifend_condition_check_for_overlay_1}}
|
324 |
+
{{ifend_condition_background_type_youtubevideo}}
|
325 |
+
|
326 |
@media(max-width:768px){
|
327 |
{{row-class}}.amppb-fluid{width:100%;}
|
328 |
{{row-class}}.amppb-fluid .col, {{row-class}}.amppb-fluid .col-2-wrap{max-width:90%;}
|
447 |
array(
|
448 |
'type' =>'select',
|
449 |
'name' =>"background_type",
|
450 |
+
'label' => esc_html__("Background Type", 'accelerated-mobile-pages' ),
|
451 |
'tab' =>'customizer',
|
452 |
'default' =>'color',
|
453 |
'options_details'=>array(
|
454 |
'color'=>'Color',
|
455 |
'gradient'=>'Gradient',
|
456 |
'image'=>'Background Image',
|
457 |
+
'video'=>'Background Video (Third Party Embed)',
|
458 |
+
'mp4video'=>'Background Video (MP4)',
|
459 |
+
'youtubevideo'=>'Background Video (Youtube)',
|
460 |
),
|
461 |
'content_type'=>'html',
|
462 |
'output_format'=>''
|
469 |
'content_type'=>'js',
|
470 |
'required' => array('background_type'=>'video'),
|
471 |
),
|
472 |
+
array(
|
473 |
+
'type' =>'require_script',
|
474 |
+
'name' =>"embeded_script",
|
475 |
+
'label' =>'amp-iframe',
|
476 |
+
'default' =>'https://cdn.ampproject.org/v0/amp-video-0.1.js',
|
477 |
+
'content_type'=>'js',
|
478 |
+
'required' => array('background_type'=>'mp4video'),
|
479 |
+
),
|
480 |
+
array(
|
481 |
+
'type' =>'require_script',
|
482 |
+
'name' =>"embeded_script",
|
483 |
+
'label' =>'amp-iframe',
|
484 |
+
'default' =>'https://cdn.ampproject.org/v0/amp-youtube-0.1.js',
|
485 |
+
'content_type'=>'js',
|
486 |
+
'required' => array('background_type'=>'youtubevideo'),
|
487 |
+
),
|
488 |
array(
|
489 |
'type' =>'select',
|
490 |
'name' =>'align_type',
|
510 |
array(
|
511 |
'type' =>'text',
|
512 |
'name' =>"row_background_video",
|
513 |
+
'label' => esc_html__( 'Third Party Embed URL', 'accelerated-mobile-pages' ),
|
514 |
'tab' =>'customizer',
|
515 |
'default' =>'',
|
516 |
+
'helpmessage' => esc_html__('Your video should be 600px away from the top or not within the first 75% of the viewport and it should be added like - https://player.vimeo.com/video/140261016', 'accelerated-mobile-pages'),
|
517 |
'content_type'=>'html',
|
518 |
'required' => array('background_type'=>'video')
|
519 |
),
|
520 |
+
array(
|
521 |
+
'type' =>'text',
|
522 |
+
'name' =>"row_background_mp4video",
|
523 |
+
'label' => esc_html__( 'MP4 Video URL', 'accelerated-mobile-pages' ),
|
524 |
+
'tab' =>'customizer',
|
525 |
+
'default' =>'',
|
526 |
+
'helpmessage' => esc_html__('Please add you mp4 video source url', 'accelerated-mobile-pages'),
|
527 |
+
'content_type'=>'html',
|
528 |
+
'required' => array('background_type'=>'mp4video')
|
529 |
+
),
|
530 |
+
array(
|
531 |
+
'type' =>'checkbox_bool',
|
532 |
+
'name' =>"enable_mp4video_controls",
|
533 |
+
'label' => esc_html__('Controls', 'accelerated-mobile-pages'),
|
534 |
+
'tab' =>'customizer',
|
535 |
+
'default' =>0,
|
536 |
+
'options' =>array(
|
537 |
+
array(
|
538 |
+
'label'=>'Yes',
|
539 |
+
'value'=>1,
|
540 |
+
)
|
541 |
+
),
|
542 |
+
'content_type'=>'html',
|
543 |
+
'required' => array('background_type'=> 'mp4video')
|
544 |
+
),
|
545 |
+
array(
|
546 |
+
'type' =>'checkbox_bool',
|
547 |
+
'name' =>"enable_mp4video_autoplay",
|
548 |
+
'label' =>'Autoplay',
|
549 |
+
'tab' =>'customizer',
|
550 |
+
'default' =>0,
|
551 |
+
'options' =>array(
|
552 |
+
array(
|
553 |
+
'label'=>'Yes',
|
554 |
+
'value'=>1,
|
555 |
+
)
|
556 |
+
),
|
557 |
+
'content_type'=>'html',
|
558 |
+
'required' => array('background_type'=> 'mp4video')
|
559 |
+
),
|
560 |
+
array(
|
561 |
+
'type' =>'text',
|
562 |
+
'name' =>"row_background_youtubevideo",
|
563 |
+
'label' => esc_html__( 'Youtube Video ID', 'accelerated-mobile-pages' ),
|
564 |
+
'tab' =>'customizer',
|
565 |
+
'default' =>'',
|
566 |
+
'helpmessage' => esc_html__('Please add you youtube video ID', 'accelerated-mobile-pages'),
|
567 |
+
'content_type'=>'html',
|
568 |
+
'required' => array('background_type'=>'youtubevideo')
|
569 |
+
),
|
570 |
+
array(
|
571 |
+
'type' =>'checkbox_bool',
|
572 |
+
'name' =>"enable_youtube_controls",
|
573 |
+
'label' => esc_html__('Controls', 'accelerated-mobile-pages'),
|
574 |
+
'tab' =>'customizer',
|
575 |
+
'default' =>0,
|
576 |
+
'options' =>array(
|
577 |
+
array(
|
578 |
+
'label'=>'Yes',
|
579 |
+
'value'=>1,
|
580 |
+
)
|
581 |
+
),
|
582 |
+
'content_type'=>'html',
|
583 |
+
'required' => array('background_type'=> 'youtubevideo')
|
584 |
+
),
|
585 |
+
array(
|
586 |
+
'type' =>'checkbox_bool',
|
587 |
+
'name' =>"enable_modestbranding",
|
588 |
+
'label' => esc_html__('Hide Youtube Logo','accelerated-mobile-pages'),
|
589 |
+
'tab' =>'customizer',
|
590 |
+
'default' =>0,
|
591 |
+
'options' =>array(
|
592 |
+
array(
|
593 |
+
'label'=>'Yes',
|
594 |
+
'value'=>1,
|
595 |
+
)
|
596 |
+
),
|
597 |
+
'content_type'=>'html',
|
598 |
+
'required' => array('background_type'=> 'youtubevideo')
|
599 |
+
),
|
600 |
+
array(
|
601 |
+
'type' =>'checkbox_bool',
|
602 |
+
'name' =>"enable_youtube_loop",
|
603 |
+
'label' => esc_html__('Video Loop','accelerated-mobile-pages'),
|
604 |
+
'tab' =>'customizer',
|
605 |
+
'default' =>0,
|
606 |
+
'options' =>array(
|
607 |
+
array(
|
608 |
+
'label'=>'Yes',
|
609 |
+
'value'=>1,
|
610 |
+
)
|
611 |
+
),
|
612 |
+
'content_type'=>'html',
|
613 |
+
'required' => array('background_type'=> 'youtubevideo')
|
614 |
+
),
|
615 |
+
array(
|
616 |
+
'type' =>'checkbox_bool',
|
617 |
+
'name' =>"enable_youtube_rel",
|
618 |
+
'label' => esc_html__('Related Videos','accelerated-mobile-pages'),
|
619 |
+
'tab' =>'customizer',
|
620 |
+
'default' =>0,
|
621 |
+
'options' =>array(
|
622 |
+
array(
|
623 |
+
'label'=>'Yes',
|
624 |
+
'value'=>1,
|
625 |
+
)
|
626 |
+
),
|
627 |
+
'content_type'=>'html',
|
628 |
+
'required' => array('background_type'=> 'youtubevideo')
|
629 |
+
),
|
630 |
+
array(
|
631 |
+
'type' =>'checkbox_bool',
|
632 |
+
'name' =>"enable_youtube_autoplay",
|
633 |
+
'label' => esc_html__('Autoplay','accelerated-mobile-pages'),
|
634 |
+
'tab' =>'customizer',
|
635 |
+
'default' =>0,
|
636 |
+
'options' =>array(
|
637 |
+
array(
|
638 |
+
'label'=>'Yes',
|
639 |
+
'value'=>1,
|
640 |
+
)
|
641 |
+
),
|
642 |
+
'content_type'=>'html',
|
643 |
+
'required' => array('background_type'=> 'youtubevideo')
|
644 |
+
),
|
645 |
array(
|
646 |
'type' =>'text',
|
647 |
'name' =>"title",
|
648 |
+
'label' => esc_html__('Video Heading','accelerated-mobile-pages'),
|
649 |
'tab' =>'customizer',
|
650 |
+
'default' =>'',
|
651 |
'content_type'=>'html',
|
652 |
+
'required_type' => 'or',
|
653 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
654 |
),
|
655 |
array(
|
656 |
'type' =>'text-editor',
|
657 |
'name' =>"content_title",
|
658 |
+
'label' => esc_html__('Video Content','accelerated-mobile-pages'),
|
659 |
'tab' =>'customizer',
|
660 |
+
'default' =>'',
|
661 |
'content_type'=>'html',
|
662 |
+
'required_type' => 'or',
|
663 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
664 |
),
|
665 |
array(
|
666 |
'type' =>'text',
|
667 |
'name' =>"tlt_size",
|
668 |
+
'label' => esc_html__('Heading Font Size','accelerated-mobile-pages'),
|
669 |
'tab' =>'design',
|
670 |
'default' =>'35px',
|
671 |
'content_type'=>'css',
|
672 |
+
'required_type' => 'or',
|
673 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
674 |
),
|
675 |
array(
|
676 |
'type' =>'select',
|
677 |
'name' =>'tlt_wgt',
|
678 |
+
'label' => esc_html__("Heading Font Weight",'accelerated-mobile-pages'),
|
679 |
'tab' =>'design',
|
680 |
'default' =>'600',
|
681 |
'options_details'=>array(
|
686 |
'700' =>'Bold',
|
687 |
),
|
688 |
'content_type'=>'css',
|
689 |
+
'required_type' => 'or',
|
690 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
691 |
),
|
692 |
array(
|
693 |
'type' =>'text',
|
694 |
'name' =>"letter_spacing",
|
695 |
+
'label' => esc_html__('Heading Letter Spacing','accelerated-mobile-pages'),
|
696 |
'tab' =>'design',
|
697 |
'default' =>'1px',
|
698 |
'content_type'=>'css',
|
699 |
+
'required_type' => 'or',
|
700 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
701 |
),
|
702 |
array(
|
703 |
'type' =>'text',
|
704 |
'name' =>"tlt_ln_hgt",
|
705 |
+
'label' => esc_html__('Heading Line Height','accelerated-mobile-pages'),
|
706 |
'tab' =>'design',
|
707 |
'default' =>'1.7',
|
708 |
'content_type'=>'css',
|
709 |
+
'required_type' => 'or',
|
710 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
711 |
),
|
712 |
array(
|
713 |
'type' =>'color-picker',
|
714 |
'name' =>"tlt_color",
|
715 |
+
'label' => esc_html__('Heading Color','accelerated-mobile-pages'),
|
716 |
'tab' =>'design',
|
717 |
'default' =>'#333',
|
718 |
'content_type'=>'css',
|
719 |
+
'required_type' => 'or',
|
720 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
721 |
),
|
722 |
array(
|
723 |
'type' =>'text',
|
724 |
'name' =>"cnt_size",
|
725 |
+
'label' => esc_html__('Content Font Size','accelerated-mobile-pages'),
|
726 |
'tab' =>'design',
|
727 |
'default' =>'18px',
|
728 |
'content_type'=>'css',
|
729 |
+
'required_type' => 'or',
|
730 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
731 |
),
|
732 |
array(
|
733 |
'type' =>'select',
|
734 |
'name' =>'cnt_font_type',
|
735 |
+
'label' => esc_html__("Content Font Weight",'accelerated-mobile-pages'),
|
736 |
'tab' =>'design',
|
737 |
'default' =>'400',
|
738 |
'options_details'=>array(
|
743 |
'700' =>'Bold',
|
744 |
),
|
745 |
'content_type'=>'css',
|
746 |
+
'required_type' => 'or',
|
747 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
748 |
),
|
749 |
array(
|
750 |
'type' =>'text',
|
751 |
'name' =>"cnt_ln_hgt",
|
752 |
+
'label' => esc_html__('Content Line Height','accelerated-mobile-pages'),
|
753 |
'tab' =>'design',
|
754 |
'default' =>'1.7',
|
755 |
'content_type'=>'css',
|
756 |
+
'required_type' => 'or',
|
757 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
758 |
),
|
759 |
array(
|
760 |
'type' =>'color-picker',
|
761 |
'name' =>"cnt_color",
|
762 |
+
'label' => esc_html__('Content Color','accelerated-mobile-pages'),
|
763 |
'tab' =>'design',
|
764 |
'default' =>'#333',
|
765 |
'content_type'=>'css',
|
766 |
+
'required_type' => 'or',
|
767 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
768 |
),
|
769 |
array(
|
770 |
'type' =>'checkbox_bool',
|
771 |
'name' =>"check_for_overlay",
|
772 |
+
'label' => esc_html__('Background Video Overlay','accelerated-mobile-pages'),
|
773 |
'tab' =>'design',
|
774 |
'default' =>0,
|
775 |
'options' =>array(
|
779 |
)
|
780 |
),
|
781 |
'content_type'=>'html',
|
782 |
+
'required_type' => 'or',
|
783 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
|
784 |
),
|
785 |
array(
|
786 |
'type' =>'color-picker',
|
787 |
'name' =>"overlay_cnt_color",
|
788 |
+
'label' => esc_html__('Background Video Content Color','accelerated-mobile-pages'),
|
789 |
'tab' =>'design',
|
790 |
'default' =>'#fff',
|
791 |
'content_type'=>'css',
|
792 |
+
'required_type' => 'or',
|
793 |
+
'required' => array('background_type'=> array('video','mp4video','youtubevideo'), 'check_for_overlay'=>1)
|
794 |
),
|
795 |
array(
|
796 |
'type' =>'checkbox_bool',
|
797 |
'name' =>"check_for_parallax",
|
798 |
+
'label' => esc_html__('Parallax Effect','accelerated-mobile-pages'),
|
799 |
'tab' =>'design',
|
800 |
'default' =>0,
|
801 |
'options' =>array(
|
810 |
array(
|
811 |
'type' =>'checkbox_bool',
|
812 |
'name' =>"check_for_slant",
|
813 |
+
'label' => esc_html__('Slant Background','accelerated-mobile-pages'),
|
814 |
'tab' =>'design',
|
815 |
'default' =>0,
|
816 |
'options' =>array(
|
825 |
array(
|
826 |
'type' =>'checkbox_bool',
|
827 |
'name' =>"check_for_enbtp",
|
828 |
+
'label' => esc_html__('Enable Top','accelerated-mobile-pages'),
|
829 |
'tab' =>'design',
|
830 |
'default' =>0,
|
831 |
'options' =>array(
|
840 |
array(
|
841 |
'type' =>'select',
|
842 |
'name' =>'align_type_slant',
|
843 |
+
'label' => esc_html__("Slant Position",'accelerated-mobile-pages'),
|
844 |
'tab' =>'design',
|
845 |
'default' =>'left',
|
846 |
'options_details'=>array(
|
848 |
'right' =>'Right', ),
|
849 |
'content_type'=>'css',
|
850 |
'required' => array('check_for_slant'=>1, 'check_for_enbtp'=>1)
|
851 |
+
),
|
852 |
array(
|
853 |
'type' =>'checkbox_bool',
|
854 |
'name' =>"check_for_enbbt",
|
855 |
+
'label' => esc_html__('Enable Bottom','accelerated-mobile-pages'),
|
856 |
'tab' =>'design',
|
857 |
'default' =>0,
|
858 |
'options' =>array(
|
867 |
array(
|
868 |
'type' =>'select',
|
869 |
'name' =>'align_type_slate_btn',
|
870 |
+
'label' => esc_html__("Slant Position",'accelerated-mobile-pages'),
|
871 |
'tab' =>'design',
|
872 |
'default' =>'lft',
|
873 |
'options_details'=>array(
|
887 |
'required' => array('background_type'=>'color')
|
888 |
),
|
889 |
array(
|
890 |
+
'type' =>'color-picker',
|
891 |
+
'name' =>"color_picker",
|
892 |
+
'label' => esc_html__('Background Color','accelerated-mobile-pages'),
|
893 |
'tab' =>'customizer',
|
894 |
'default' =>'',
|
895 |
'content_type'=>'css',
|
896 |
+
'output_format'=>"background: %default%",
|
897 |
+
'required' => array('background_type'=>'color')
|
898 |
),
|
899 |
|
900 |
/*array(
|
953 |
array(
|
954 |
'type' =>'checkbox',
|
955 |
'name' =>"shadow",
|
956 |
+
'label' =>esc_html__('Background Shadow','accelerated-mobile-pages'),
|
957 |
'tab' =>'design',
|
958 |
'default' =>array(),
|
959 |
'options' =>array(
|
968 |
array(
|
969 |
'type' =>'spacing',
|
970 |
'name' =>"margin_css",
|
971 |
+
'label' =>esc_html__('Set Margin','accelerated-mobile-pages'),
|
972 |
'tab' =>'container_css',
|
973 |
'default' =>
|
974 |
array(
|
982 |
array(
|
983 |
'type' =>'spacing',
|
984 |
'name' =>"padding_css",
|
985 |
+
'label' => esc_html__('Set Padding','accelerated-mobile-pages'),
|
986 |
'tab' =>'container_css',
|
987 |
'default' =>array(
|
988 |
'top'=>'20px',
|
996 |
array(
|
997 |
'type' =>'checkbox_bool',
|
998 |
'name' =>"check_for_brdr",
|
999 |
+
'label' => esc_html__('Border','accelerated-mobile-pages'),
|
1000 |
'tab' =>'container_css',
|
1001 |
'default' =>0,
|
1002 |
'options' =>array(
|
1010 |
array(
|
1011 |
'type' =>'spacing',
|
1012 |
'name' =>"border_sz",
|
1013 |
+
'label' => esc_html__('Border width','accelerated-mobile-pages'),
|
1014 |
'tab' =>'container_css',
|
1015 |
'default' =>array(
|
1016 |
'top'=>'0px',
|
1024 |
array(
|
1025 |
'type' =>'color-picker',
|
1026 |
'name' =>"border_clr_pkr",
|
1027 |
+
'label' => esc_html__('Border Color','accelerated-mobile-pages'),
|
1028 |
'tab' =>'container_css',
|
1029 |
'default' =>'#ccc',
|
1030 |
'required' => array('check_for_brdr'=>1),
|
1034 |
array(
|
1035 |
'type' =>'checkbox_bool',
|
1036 |
'name' =>"check_for_pdng",
|
1037 |
+
'label' => esc_html__('Responsive Padding','accelerated-mobile-pages'),
|
1038 |
'tab' =>'container_css',
|
1039 |
'default' =>0,
|
1040 |
'options' =>array(
|
1048 |
array(
|
1049 |
'type' =>'spacing',
|
1050 |
'name' =>"res_pdng",
|
1051 |
+
'label' => esc_html__('Set Padding','accelerated-mobile-pages'),
|
1052 |
'tab' =>'container_css',
|
1053 |
'default' =>array(
|
1054 |
'top'=>'0px',
|
1063 |
array(
|
1064 |
'type' =>'checkbox_bool',
|
1065 |
'name' =>"check_for_mrgn",
|
1066 |
+
'label' => esc_html__('Responsive Margin','accelerated-mobile-pages'),
|
1067 |
'tab' =>'container_css',
|
1068 |
'default' =>0,
|
1069 |
'options' =>array(
|
1077 |
array(
|
1078 |
'type' =>'spacing',
|
1079 |
'name' =>"res_mrgn",
|
1080 |
+
'label' => esc_html__('Set Margin','accelerated-mobile-pages'),
|
1081 |
'tab' =>'container_css',
|
1082 |
'default' =>
|
1083 |
array(
|
@@ -655,7 +655,9 @@ Vue.component('fields-data',{
|
|
655 |
},
|
656 |
fieldShowHideCheck: function(field){
|
657 |
var returnOpt = [];
|
658 |
-
|
|
|
|
|
659 |
if(field.required){
|
660 |
var requiredCondition = field.required;
|
661 |
|
@@ -667,7 +669,9 @@ Vue.component('fields-data',{
|
|
667 |
for(var i = 0; i < length; i++) {
|
668 |
if(requiredCondition[maindata.name][i] == maindata.default){
|
669 |
checkingInArray = true;
|
670 |
-
|
|
|
|
|
671 |
}
|
672 |
}
|
673 |
if(checkingInArray){
|
@@ -688,10 +692,19 @@ Vue.component('fields-data',{
|
|
688 |
return self.indexOf(value) === index;
|
689 |
});
|
690 |
|
691 |
-
if(
|
692 |
-
|
|
|
|
|
|
|
|
|
|
|
693 |
}else{
|
694 |
-
|
|
|
|
|
|
|
|
|
695 |
}
|
696 |
return false;
|
697 |
},
|
655 |
},
|
656 |
fieldShowHideCheck: function(field){
|
657 |
var returnOpt = [];
|
658 |
+
if( !field.required_type){
|
659 |
+
returnOpt.push(true);
|
660 |
+
}
|
661 |
if(field.required){
|
662 |
var requiredCondition = field.required;
|
663 |
|
669 |
for(var i = 0; i < length; i++) {
|
670 |
if(requiredCondition[maindata.name][i] == maindata.default){
|
671 |
checkingInArray = true;
|
672 |
+
if( !field.required_type){
|
673 |
+
return false;
|
674 |
+
}
|
675 |
}
|
676 |
}
|
677 |
if(checkingInArray){
|
692 |
return self.indexOf(value) === index;
|
693 |
});
|
694 |
|
695 |
+
if(field.required_type == 'or'){
|
696 |
+
var reqOpt = returnOpt.indexOf(true);
|
697 |
+
if( reqOpt!= -1){
|
698 |
+
return true;
|
699 |
+
}else{
|
700 |
+
return false;
|
701 |
+
}
|
702 |
}else{
|
703 |
+
if(returnOpt.length==1 && returnOpt[0]==true){
|
704 |
+
return true;
|
705 |
+
}else{
|
706 |
+
return false;
|
707 |
+
}
|
708 |
}
|
709 |
return false;
|
710 |
},
|
@@ -740,7 +740,7 @@ function ampforwp_rowData($container,$col,$moduleTemplate){
|
|
740 |
$repeaterFrontTemplate
|
741 |
);
|
742 |
if(strpos($repeaterFrontTemplate, '{{'.$moduleField['name'].'-thumbnail}}')!==false){
|
743 |
-
$imageDetails = ampforwp_get_attachment_id( $replace, 'thumbnail');
|
744 |
$imageUrl = isset($imageDetails[0])? $imageDetails[0] : '';
|
745 |
$repeaterFrontTemplate = str_replace(
|
746 |
'{{'.$moduleField['name'].'-thumbnail}}',
|
740 |
$repeaterFrontTemplate
|
741 |
);
|
742 |
if(strpos($repeaterFrontTemplate, '{{'.$moduleField['name'].'-thumbnail}}')!==false){
|
743 |
+
$imageDetails = ampforwp_get_attachment_id( $replace[0], 'thumbnail');
|
744 |
$imageUrl = isset($imageDetails[0])? $imageDetails[0] : '';
|
745 |
$repeaterFrontTemplate = str_replace(
|
746 |
'{{'.$moduleField['name'].'-thumbnail}}',
|
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.2.2
|
7 |
-
Stable tag: 0.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,37 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
= 0.9.97.65 (16th July 2019) =
|
194 |
* Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
|
195 |
* Fixed: Disqus comment is not working after version 0.9.97.63 #3446
|
@@ -197,30 +228,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
197 |
* Fixed: Message: when Leverage Browser Caching is not supported #3449
|
198 |
* Fixed: Added the missing parameter $depth in filter 'nav_menu_item_id' #3454
|
199 |
|
200 |
-
= 0.9.97.64 (15th July 2019) =
|
201 |
-
* Improvements: Performance improvement -- Meta Value Queries #3392
|
202 |
-
* Improvements: h1 tag on the archive, search and author pages #3323
|
203 |
-
* Improvements: Flipboard as a social sharing option in AMP added #3348
|
204 |
-
* Improvements: Comscore new variable for AMP in Analytics #3378
|
205 |
-
* Improvements: Option for Leverage Browser Caching in the performance settings #3298
|
206 |
-
* Fixed: Auto Add AMP in Menu URL option is not working for the product category #3319
|
207 |
-
* Fixed: Horizontal scrolling issue on the homepage #3217
|
208 |
-
* Fixed: Vuukle comments Toggle UX bug #3399
|
209 |
-
* Fixed: Basic amp components to work in the content #2713
|
210 |
-
* Fixed: Unnecessary CSS is loading in single amp product pages and also on cart pages. #3038
|
211 |
-
* Fixed: Improper amphtml is getting created in the ngg_tag Url when NextGEN Gallery is used #3381
|
212 |
-
* Fixed: Tutorial link for Disqus comments section #3362
|
213 |
-
* Fixed: Empty Display property in menu.php #3387
|
214 |
-
* Fixed: Images and text does not Zoom in & out with mobile devices in amp version #3233
|
215 |
-
* Fixed: Custom CSS code got optimized after 0.9.97.61 update #3410
|
216 |
-
* Fixed: Breadcrumbs icons are not connected to icons font family #3418
|
217 |
-
* Fixed: In swift Single Design 2 sidebar CSS are not loading in Search page #3430
|
218 |
-
* Fixed: Notice to be removed after dismissing it after installing AMP #3053
|
219 |
-
* Fixed: Plugins manager showing twice in options panel #3328
|
220 |
-
* Fixed: Amp scripts not appending in the head in Search pages when added in sidebar #3404
|
221 |
-
* Fixed: Conflict issue with Themify Builder #3376
|
222 |
-
* Fixed: Remove the Gap between Header and AMP Pagebuilder module #2534
|
223 |
-
* Fixed: Image is not loading when the source of it starting from ../wp-content #3403
|
224 |
-
* Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
|
225 |
-
|
226 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.2.2
|
7 |
+
Stable tag: 0.9.98
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
190 |
|
191 |
== Changelog ==
|
192 |
|
193 |
+
= 0.9.98 (19th July 2019) =
|
194 |
+
* Improvements: Option to remove date from Homepage and also in Recent posts #3363
|
195 |
+
* Improvements: Option for amp-youtube Embed video attributes in row module of AMP Pagebuilder #3373
|
196 |
+
* Improvements: Menu sidebar background and elements color changing option for Design 1, 2 #3402
|
197 |
+
* Improvements: MGID Ad support in AMP FOR WP #3431
|
198 |
+
* Improvements: Sizes of featured image option for single 1 #3433
|
199 |
+
* Improvements: Addthis floating share button feature in amp #3424
|
200 |
+
* Improvements: Wistia Plugin Compatibility integrated #3386
|
201 |
+
* Improvements: Squirrly SEO Compatibility integrated #3421
|
202 |
+
* Improvements: image-slider compatibility added in AMP sanitizer #3422
|
203 |
+
* Improvements: Compatability issue with ShortPixel Image Optimizer #3439
|
204 |
+
* Improvements: Improve the Search form (Sidebar) design #3425
|
205 |
+
* Improvements: AMP footer widget in design three #3411
|
206 |
+
* Improvements: Extension list added for AMP Email Extension #3144
|
207 |
+
* Improvements: Extension list added for Pinterest for AMP Extension #3195
|
208 |
+
* Improvements: Extension list added for Liveblog For AMP Extension #3194
|
209 |
+
* Fixed: Close menu button is not showing when a user comes from Google search #3401
|
210 |
+
* Fixed: When High-resolution Images option is enabled images link should be generated from higher-order to lower-order in schema markup #3442
|
211 |
+
* Fixed: Sticky Social Icons setting should be moved to Social Tab and some changes #3426
|
212 |
+
* Fixed: Fall back the header type code in the backend if a user has not selected any header type #3419
|
213 |
+
* Fixed: Revolution Slider not working perfectly when a user is inserting video #3311
|
214 |
+
* Fixed: Call to action option should be automatically enabled if the user selected header type-2 #3420
|
215 |
+
* Fixed: Double quotes on the author area #3441
|
216 |
+
* Fixed: Twitter URL is displaying instead of an icon when Zox news theme is active #3409
|
217 |
+
* Fixed: Extension code array issue #3438
|
218 |
+
* Fixed: Validation error due to amp-facebook-like #3427
|
219 |
+
* Fixed: Fatal error cannot redeclare is_amp_endpoint() (previously declared) #3415
|
220 |
+
* Fixed: Sticky Social Icons and cookies banner style issue #3452
|
221 |
+
* Fixed: Validation error the extension 'amp-next-page' was found on this page, but is unused please remove this extension #3463
|
222 |
+
* Fixed: gallery/slider module is not working when Convert AMP to WP theme (Beta) option is enabled #2771
|
223 |
+
|
224 |
= 0.9.97.65 (16th July 2019) =
|
225 |
* Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
|
226 |
* Fixed: Disqus comment is not working after version 0.9.97.63 #3446
|
228 |
* Fixed: Message: when Leverage Browser Caching is not supported #3449
|
229 |
* Fixed: Added the missing parameter $depth in filter 'nav_menu_item_id' #3454
|
230 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
@@ -71,9 +71,9 @@ if( array_key_exists( 'amp-author-description' , $redux_builder_amp ) && is_sing
|
|
71 |
<amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
|
72 |
<?php
|
73 |
}
|
74 |
-
echo
|
75 |
-
echo ampforwp_yoast_twitter_handle()
|
76 |
-
echo $post_author->description
|
77 |
} ?>
|
78 |
</div>
|
79 |
</div> <?php
|
71 |
<amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
|
72 |
<?php
|
73 |
}
|
74 |
+
echo ampforwp_get_author_details( $post_author , 'meta-taxonomy' );
|
75 |
+
echo ampforwp_yoast_twitter_handle();
|
76 |
+
echo $post_author->description;
|
77 |
} ?>
|
78 |
</div>
|
79 |
</div> <?php
|
@@ -18,7 +18,7 @@ if ( is_single() || (is_page() && isset($redux_builder_amp['ampforwp-page-social
|
|
18 |
?>
|
19 |
<?php do_action('ampforwp_before_social_icons_hook',$this); ?>
|
20 |
<div class="ampforwp-social-icons">
|
21 |
-
<?php if( true ==
|
22 |
$facebook_like_url = '';
|
23 |
$facebook_like_url = $amp_permalink;
|
24 |
if( $facebook_like_url ){ ?>
|
18 |
?>
|
19 |
<?php do_action('ampforwp_before_social_icons_hook',$this); ?>
|
20 |
<div class="ampforwp-social-icons">
|
21 |
+
<?php if( true == ampforwp_get_setting('ampforwp-facebook-like-button') ) {
|
22 |
$facebook_like_url = '';
|
23 |
$facebook_like_url = $amp_permalink;
|
24 |
if( $facebook_like_url ){ ?>
|
@@ -3,6 +3,20 @@ global $redux_builder_amp;
|
|
3 |
wp_reset_postdata(); ?>
|
4 |
<footer class="amp-wp-footer">
|
5 |
<div id="footer">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
<?php if ( has_nav_menu( 'amp-footer-menu' ) ) { ?>
|
7 |
<div class="footer_menu">
|
8 |
<nav>
|
@@ -18,6 +32,7 @@ wp_reset_postdata(); ?>
|
|
18 |
</div>
|
19 |
<?php } ?>
|
20 |
<h2><?php echo esc_attr( $this->get( 'blog_name' ) ); ?></h2>
|
|
|
21 |
<p class="copyright_txt"><?php
|
22 |
$allowed_tags = '<p><a><b><strong><i><u><ul><ol><li><h1><h2><h3><h4><h5><h6><table><tr><th><td><em><span>';
|
23 |
echo strip_tags( ampforwp_translation($redux_builder_amp['amp-translator-footer-text'], 'All Rights Reserved') ,$allowed_tags );
|
@@ -30,7 +45,7 @@ wp_reset_postdata(); ?>
|
|
30 |
}
|
31 |
echo "</p>";
|
32 |
};
|
33 |
-
|
34 |
</div>
|
35 |
</footer><?php do_action('amp_footer_link'); ?>
|
36 |
<?php do_action('ampforwp_global_after_footer'); ?>
|
3 |
wp_reset_postdata(); ?>
|
4 |
<footer class="amp-wp-footer">
|
5 |
<div id="footer">
|
6 |
+
<?php if ( is_active_sidebar( 'swift-footer-widget-area' ) ) : ?>
|
7 |
+
<div class="f-w-blk">
|
8 |
+
<div class="d3f-w">
|
9 |
+
<?php
|
10 |
+
$sanitized_sidebar = ampforwp_sidebar_content_sanitizer('swift-footer-widget-area');
|
11 |
+
if ( $sanitized_sidebar) {
|
12 |
+
$sidebar_output = $sanitized_sidebar->get_amp_content();
|
13 |
+
$sidebar_output = apply_filters('ampforwp_modify_sidebars_content',$sidebar_output);
|
14 |
+
}
|
15 |
+
echo do_shortcode($sidebar_output);
|
16 |
+
?>
|
17 |
+
</div>
|
18 |
+
</div>
|
19 |
+
<?php endif; ?>
|
20 |
<?php if ( has_nav_menu( 'amp-footer-menu' ) ) { ?>
|
21 |
<div class="footer_menu">
|
22 |
<nav>
|
32 |
</div>
|
33 |
<?php } ?>
|
34 |
<h2><?php echo esc_attr( $this->get( 'blog_name' ) ); ?></h2>
|
35 |
+
<div class="cpr-links">
|
36 |
<p class="copyright_txt"><?php
|
37 |
$allowed_tags = '<p><a><b><strong><i><u><ul><ol><li><h1><h2><h3><h4><h5><h6><table><tr><th><td><em><span>';
|
38 |
echo strip_tags( ampforwp_translation($redux_builder_amp['amp-translator-footer-text'], 'All Rights Reserved') ,$allowed_tags );
|
45 |
}
|
46 |
echo "</p>";
|
47 |
};
|
48 |
+
?></div>
|
49 |
</div>
|
50 |
</footer><?php do_action('amp_footer_link'); ?>
|
51 |
<?php do_action('ampforwp_global_after_footer'); ?>
|
@@ -16,7 +16,52 @@ use AMPforWP\AMPVendor\AMP_Post_Template;
|
|
16 |
$header_background_color = $get_customizer->get_customizer_setting( 'header_background_color' );
|
17 |
$header_color = $get_customizer->get_customizer_setting( 'header_color' );
|
18 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
#statcounter{width: 1px;height:1px;}
|
21 |
.amp-wp-article amp-addthis{bottom: -38px;margin-left: 6px;}
|
22 |
<?php if ( true == ampforwp_get_setting('ampforwp-d1-font') ): ?>
|
@@ -64,7 +109,7 @@ ol, ul {list-style-position: inside;}
|
|
64 |
p,ol,ul,figure {margin: 0 0 1em;padding: 0;} a,a:visited {color:<?php echo ampforwp_sanitize_color($redux_builder_amp['amp-opt-color-rgba-link-design1']['color']); ?>;}a:hover,a:active,a:focus {color: <?php echo sanitize_hex_color( $text_color ); ?>;} .wp-caption amp-img{max-width: 100%}
|
65 |
blockquote {color: <?php echo sanitize_hex_color( $text_color ); ?>;background: rgba(127,127,127,.125);border-left: 2px solid <?php echo sanitize_hex_color( $link_color ); ?>;margin: 8px 0 24px 0;padding: 16px;} blockquote p:last-child {margin-bottom: 0;}
|
66 |
.amp-wp-meta,.amp-wp-header .ampforwp-logo-area,.amp-wp-title,.wp-caption-text,.amp-wp-tax-category,.amp-wp-tax-tag,.amp-wp-comments-link,.amp-wp-footer p,.back-to-top {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;}
|
67 |
-
.amp-wp-header {background-color: <?php echo
|
68 |
.amp-wp-header .ampforwp-logo-area {color: <?php echo sanitize_hex_color( $header_color ); ?>;font-size: 1em;font-weight: 400;margin: 0 auto;max-width: calc(840px - 32px);padding: .875em 16px;position: relative;} .amp-wp-header .amp-wp-site-icon {background-color: <?php echo sanitize_hex_color( $header_color ); ?>;border: 1px solid <?php echo sanitize_hex_color( $header_color ); ?>;border-radius: 50%;position: absolute;right: 18px;top: 10px;}
|
69 |
|
70 |
<?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
@@ -79,10 +124,13 @@ blockquote {color: <?php echo sanitize_hex_color( $text_color ); ?>;background:
|
|
79 |
.wp-caption {padding: 0;}.wp-caption.alignleft {margin-right: 16px;}.wp-caption.alignright { margin-left: 16px;}.wp-caption-text {border-bottom: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 0;padding: .66em 10px .75em;text-align: center;} amp-carousel {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em;} amp-iframe,amp-youtube,amp-instagram,amp-vine {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em; } .amp-wp-article-content amp-carousel amp-img {border: none;} amp-carousel > amp-img > img {object-fit: contain; } .amp-wp-iframe-placeholder { background: <?php echo sanitize_hex_color( $border_color ); ?> url( <?php echo esc_url( $get_customizer->get( 'placeholder_image_url' ) ); ?> ) no-repeat center 40%;background-size: 48px 48px;min-height: 48px;} .amp-wp-article-footer .amp-wp-meta {display: block;} .amp-wp-tags{ list-style-type: none; padding: 0; margin: 0 0 9px 0; display: inline-flex; } .amp-wp-tags li{display:inline; padding-left: 5px; } .amp-wp-tax-category span{margin-right:5px;} .amp-wp-tax-category, .amp-wp-tax-tag { color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 1.5em 16px;}.ampforwp-comment-button {margin-bottom:20px;} .amp-wp-comments-link {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;text-align: center;margin: 2.25em 0 1.5em;} .amp-wp-comments-link a { border-style: solid;border-color: <?php echo sanitize_hex_color( $border_color ); ?>;border-width: 1px 1px 2px;border-radius: 4px;background-color: transparent;color: <?php echo sanitize_hex_color( $link_color ); ?>;cursor: pointer; display: block;font-size: 14px;font-weight: 600;line-height: 18px;margin: 0 auto;max-width: 200px;padding: 11px 16px;text-decoration: none;width: 50%;-webkit-transition: background-color 0.2s ease;transition: background-color 0.2s ease;} .page-title {margin: 0 15px; font-size: 1.17em; }.amp-sub-archives li{width: 50%;} .amp-sub-archives ul{padding: 0;list-style: none;display: flex;font-size: 12px;line-height: 1.2;margin: 5px 1.5em 10px 1.5em;} .author-archive amp-img{border-radius: 50%;margin: 0px 8px 10px;display: block;}.author-archive{float: left;} .amp-wp-content.taxonomy-description{margin: 0 15px;}
|
80 |
<?php } // AMP Woocommerce CSS Ends ?>
|
81 |
|
82 |
-
|
83 |
-
.amp-wp-footer
|
84 |
-
.amp-wp-footer
|
85 |
-
.amp-wp-footer
|
|
|
|
|
|
|
86 |
|
87 |
<?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
88 |
.amp-wp-home .amp-wp-meta{margin:5px 0}
|
@@ -153,7 +201,10 @@ amp-social-share[type="facebookmessenger"] {
|
|
153 |
<?php } // AMP Woocommerce CSS Ends ?>
|
154 |
|
155 |
/** Menu CSS **/
|
156 |
-
amp-sidebar{width:250px}
|
|
|
|
|
|
|
157 |
body {padding-bottom: 43px;}
|
158 |
.body.single-post .sticky_social{z-index:99999;}
|
159 |
.body.single-post .adsforwp-stick-ad, .body.single-post amp-sticky-ad{padding-top:4px;padding-bottom:52px;}
|
@@ -182,16 +233,49 @@ figure.aligncenter amp-img {
|
|
182 |
<?php } // AMP Woocommerce CSS Ends ?>
|
183 |
|
184 |
/* Footer */
|
185 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
if (empty($footer_back_color)) {
|
187 |
$footer_back_color = '#FFFFFF';
|
188 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
.amp-wp-footer{ background: <?php echo ampforwp_sanitize_color($footer_back_color);?>; }
|
190 |
.footer_menu ul{ list-style-type: none; padding: 0; text-align: center; margin: 0px 20px 25px 20px; line-height: 27px; font-size: 13px }
|
191 |
.footer_menu ul li{ display:inline; margin:0 10px; }
|
192 |
.footer_menu ul li:first-child{ margin-left:0 }
|
193 |
.footer_menu ul li:last-child{ margin-right:0 }
|
194 |
.footer_menu ul ul{ display:none }
|
|
|
|
|
195 |
a.btt:hover {
|
196 |
cursor: pointer;
|
197 |
}
|
@@ -244,6 +328,7 @@ table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, le
|
|
244 |
[class*=icono-]:after, [class*=icono-]:before{ content: ''; pointer-events: none; }
|
245 |
.icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
|
246 |
[class*=icono-]{ display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
|
|
|
247 |
.icono-search{ -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%) }
|
248 |
.icono-search{ border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
|
249 |
.searchform label{ color: #f7f7f7; display: block; font-size: 10px; line-height: 0; opacity:0.6 }
|
@@ -251,12 +336,13 @@ table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, le
|
|
251 |
.searchform input{ background: transparent; border: 1px solid #666; color: #f7f7f7; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: 0.3px; text-transform: capitalize; padding: 20px 0px 20px 30px; margin-top: 15px; width: 100%; }
|
252 |
#searchsubmit{opacity:0}
|
253 |
.hide{display:none}
|
|
|
254 |
.amp-wp-header .ampforwp-search-nav-wrapper{ padding: 0; }
|
255 |
.ampforwp-search-nav-wrapper .searchmenu{ margin-top: 20px; }
|
256 |
.headerlogo a, [class*=icono-]{ top:0; }
|
257 |
.amp-logo <?php if(is_single()){ ?> h2 <?php } else{?>h1<?php }?>{font-size: 1em; font-weight: 400; line-height: 1.75em; margin: 0;}
|
258 |
.amp-logo{display:inline-block}
|
259 |
-
.amp-wp-header a, .headerlogo a, [class*=icono-] {color: <?php echo sanitize_hex_color( $
|
260 |
@media screen and (min-width: 650px) { table {display: inline-table;} }
|
261 |
<?php if($redux_builder_amp['enable-single-social-icons'] && is_socialshare_or_socialsticky_enabled_in_ampforwp() ){ ?> .amp-wp-footer{padding-bottom: 20px;}<?php } ?>
|
262 |
|
@@ -320,7 +406,7 @@ if( !is_home() && ( (is_single() && true == ampforwp_get_setting('ampforwp-bread
|
|
320 |
.amp-menu li.menu-item-has-children ul ul{background:#444}
|
321 |
.amp-menu input{display:none;}
|
322 |
.amp-menu [id^=drop]:checked + label + ul{ display: block;}
|
323 |
-
.amp-menu .toggle:after{content:'\25be';position:absolute;padding: 10px 15px 10px 30px;right:0;font-size:18px;color
|
324 |
.amp-ad-wrapper span { display: inherit; font-size: 12px; line-height: 1;}
|
325 |
<?php // Ads (sitewide)
|
326 |
if( ( isset($redux_builder_amp['enable-amp-ads-1'] ) && $redux_builder_amp['enable-amp-ads-1'] ) || ( isset($redux_builder_amp['enable-amp-ads-2'] ) && $redux_builder_amp['enable-amp-ads-2'] ) ){ ?> .amp-ad-wrapper {text-align: center} .amp-ad-wrapper.amp_ad_1{padding-top:20px} .amp-ad-wrapper,.amp-wp-article amp-ad{ direction: ltr; } <?php }
|
@@ -417,31 +503,8 @@ if ( is_active_sidebar( 'ampforwp-above-footer' ) || is_active_sidebar( 'ampfor
|
|
417 |
display: inline-block;
|
418 |
opacity: 0;
|
419 |
}
|
420 |
-
.
|
421 |
-
|
422 |
-
width: 10px;
|
423 |
-
height: 10px;
|
424 |
-
border-radius: 50%;
|
425 |
-
-webkit-transform: rotate(45deg);
|
426 |
-
-ms-transform: rotate(45deg);
|
427 |
-
transform: rotate(45deg);
|
428 |
-
margin: 4px 4px 8px 8px;
|
429 |
-
position: relative;
|
430 |
-
cursor: pointer;
|
431 |
-
}
|
432 |
-
.w-bl .search-button:after{
|
433 |
-
content: "";
|
434 |
-
position: absolute;
|
435 |
-
left: 50%;
|
436 |
-
-webkit-transform: rotate(270deg);
|
437 |
-
-ms-transform: rotate(270deg);
|
438 |
-
transform: rotate(270deg);
|
439 |
-
width: 2px;
|
440 |
-
height: 9px;
|
441 |
-
box-shadow: inset 0 0 0 32px;
|
442 |
-
top: 0px;
|
443 |
-
border-radius: 0 0 1px 1px;
|
444 |
-
left: 14px;
|
445 |
}
|
446 |
.w-bl .search-field{
|
447 |
border: 1px solid #ccc;
|
@@ -552,4 +615,68 @@ if(class_exists('MCI_Footnotes')){ ?>
|
|
552 |
.footnote_container_prepare p span:last-child {
|
553 |
display:none;
|
554 |
}
|
555 |
-
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
$header_background_color = $get_customizer->get_customizer_setting( 'header_background_color' );
|
17 |
$header_color = $get_customizer->get_customizer_setting( 'header_color' );
|
18 |
?>
|
19 |
+
<?php // Design 1 Menu elemensts colors
|
20 |
+
$header_bg_clr = ampforwp_get_setting('amp-d1-background-color','color');
|
21 |
+
$header_elements_clr = ampforwp_get_setting('amp-d1-elements-color','color');
|
22 |
+
$menu_sidebar_clr = ampforwp_get_setting('amp-d1-sidebar-color','color');
|
23 |
+
$menu_bg_clr = ampforwp_get_setting('amp-d1-menu-bg-color','color');
|
24 |
+
$menu_elements_clr = ampforwp_get_setting('amp-d1-menu-color','color');
|
25 |
+
$submenu_bg_clr = ampforwp_get_setting('amp-d1-submenu-bg-color','color');
|
26 |
+
$menu_bdr_clr = ampforwp_get_setting('amp-d1-menu-brdr-color','color');
|
27 |
+
$menu_icon_clr = ampforwp_get_setting('amp-d1-menu-icon-color','color');
|
28 |
+
$cross_btn_clr = ampforwp_get_setting('amp-d1-cross-btn-color','color');
|
29 |
+
$cross_btn_bg_clr = ampforwp_get_setting('amp-d1-cross-bg-color','rgba');
|
30 |
+
$cross_btn_hvr_clr = ampforwp_get_setting('amp-d1-cross-hover-color','rgba');
|
31 |
|
32 |
+
if(empty($header_bg_clr)){
|
33 |
+
$header_bg_clr ='#0a89c0';
|
34 |
+
}
|
35 |
+
if(empty($header_elements_clr)){
|
36 |
+
$header_elements_clr ='#ffffff';
|
37 |
+
}
|
38 |
+
if(empty($menu_sidebar_clr)){
|
39 |
+
$menu_sidebar_clr ='#efefef';
|
40 |
+
}
|
41 |
+
if(empty($menu_bg_clr)){
|
42 |
+
$menu_bg_clr ='#fafafa';
|
43 |
+
}
|
44 |
+
if(empty($menu_elements_clr)){
|
45 |
+
$menu_elements_clr ='#0a89c0';
|
46 |
+
}
|
47 |
+
if(empty($submenu_bg_clr)){
|
48 |
+
$submenu_bg_clr ='#ffffff';
|
49 |
+
}
|
50 |
+
if(empty($menu_bdr_clr)){
|
51 |
+
$menu_bdr_clr ='#efefef';
|
52 |
+
}
|
53 |
+
if(empty($menu_icon_clr)){
|
54 |
+
$menu_icon_clr ='#ccc';
|
55 |
+
}
|
56 |
+
if(empty($cross_btn_clr)){
|
57 |
+
$cross_btn_clr ='#ffffff';
|
58 |
+
}
|
59 |
+
if(empty($cross_btn_bg_clr)){
|
60 |
+
$cross_btn_bg_clr ='rgba(0, 0, 0, 0.25)';
|
61 |
+
}
|
62 |
+
if(empty($cross_btn_hvr_clr)){
|
63 |
+
$cross_btn_hvr_clr ='rgba(0, 0, 0, 0.45)';
|
64 |
+
} ?>
|
65 |
#statcounter{width: 1px;height:1px;}
|
66 |
.amp-wp-article amp-addthis{bottom: -38px;margin-left: 6px;}
|
67 |
<?php if ( true == ampforwp_get_setting('ampforwp-d1-font') ): ?>
|
109 |
p,ol,ul,figure {margin: 0 0 1em;padding: 0;} a,a:visited {color:<?php echo ampforwp_sanitize_color($redux_builder_amp['amp-opt-color-rgba-link-design1']['color']); ?>;}a:hover,a:active,a:focus {color: <?php echo sanitize_hex_color( $text_color ); ?>;} .wp-caption amp-img{max-width: 100%}
|
110 |
blockquote {color: <?php echo sanitize_hex_color( $text_color ); ?>;background: rgba(127,127,127,.125);border-left: 2px solid <?php echo sanitize_hex_color( $link_color ); ?>;margin: 8px 0 24px 0;padding: 16px;} blockquote p:last-child {margin-bottom: 0;}
|
111 |
.amp-wp-meta,.amp-wp-header .ampforwp-logo-area,.amp-wp-title,.wp-caption-text,.amp-wp-tax-category,.amp-wp-tax-tag,.amp-wp-comments-link,.amp-wp-footer p,.back-to-top {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;}
|
112 |
+
.amp-wp-header {background-color: <?php echo ampforwp_sanitize_color( $header_bg_clr ); ?>;}
|
113 |
.amp-wp-header .ampforwp-logo-area {color: <?php echo sanitize_hex_color( $header_color ); ?>;font-size: 1em;font-weight: 400;margin: 0 auto;max-width: calc(840px - 32px);padding: .875em 16px;position: relative;} .amp-wp-header .amp-wp-site-icon {background-color: <?php echo sanitize_hex_color( $header_color ); ?>;border: 1px solid <?php echo sanitize_hex_color( $header_color ); ?>;border-radius: 50%;position: absolute;right: 18px;top: 10px;}
|
114 |
|
115 |
<?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
124 |
.wp-caption {padding: 0;}.wp-caption.alignleft {margin-right: 16px;}.wp-caption.alignright { margin-left: 16px;}.wp-caption-text {border-bottom: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 0;padding: .66em 10px .75em;text-align: center;} amp-carousel {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em;} amp-iframe,amp-youtube,amp-instagram,amp-vine {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em; } .amp-wp-article-content amp-carousel amp-img {border: none;} amp-carousel > amp-img > img {object-fit: contain; } .amp-wp-iframe-placeholder { background: <?php echo sanitize_hex_color( $border_color ); ?> url( <?php echo esc_url( $get_customizer->get( 'placeholder_image_url' ) ); ?> ) no-repeat center 40%;background-size: 48px 48px;min-height: 48px;} .amp-wp-article-footer .amp-wp-meta {display: block;} .amp-wp-tags{ list-style-type: none; padding: 0; margin: 0 0 9px 0; display: inline-flex; } .amp-wp-tags li{display:inline; padding-left: 5px; } .amp-wp-tax-category span{margin-right:5px;} .amp-wp-tax-category, .amp-wp-tax-tag { color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 1.5em 16px;}.ampforwp-comment-button {margin-bottom:20px;} .amp-wp-comments-link {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;text-align: center;margin: 2.25em 0 1.5em;} .amp-wp-comments-link a { border-style: solid;border-color: <?php echo sanitize_hex_color( $border_color ); ?>;border-width: 1px 1px 2px;border-radius: 4px;background-color: transparent;color: <?php echo sanitize_hex_color( $link_color ); ?>;cursor: pointer; display: block;font-size: 14px;font-weight: 600;line-height: 18px;margin: 0 auto;max-width: 200px;padding: 11px 16px;text-decoration: none;width: 50%;-webkit-transition: background-color 0.2s ease;transition: background-color 0.2s ease;} .page-title {margin: 0 15px; font-size: 1.17em; }.amp-sub-archives li{width: 50%;} .amp-sub-archives ul{padding: 0;list-style: none;display: flex;font-size: 12px;line-height: 1.2;margin: 5px 1.5em 10px 1.5em;} .author-archive amp-img{border-radius: 50%;margin: 0px 8px 10px;display: block;}.author-archive{float: left;} .amp-wp-content.taxonomy-description{margin: 0 15px;}
|
125 |
<?php } // AMP Woocommerce CSS Ends ?>
|
126 |
|
127 |
+
/** Footer CSS **/
|
128 |
+
.amp-wp-footer {margin: calc(1.5em - 1px) 0 0;padding-bottom:25px;}
|
129 |
+
.amp-wp-footer div{margin:0 auto;max-width:calc(840px - 32px);position:relative}
|
130 |
+
.amp-wp-footer .footer_menu{padding:1.25em 16px;}
|
131 |
+
.amp-wp-footer h2{font-size:1em;line-height:1.375em;margin:0 0 .5em}
|
132 |
+
.amp-wp-footer p {font-size: .8em;line-height: 1.5em;margin: 0 15px 0 0;}
|
133 |
+
.amp-wp-footer a{text-decoration:none}.copyright_txt{float:left}.back-to-top{float:right}.amp-wp-header .nav_container{float: right;top: 16px;line-height: 1; right: 65px; position: absolute}.toggle-text{position:absolute;right:0;height:22px;width:28px}.toggle-text span{display:block;position:absolute;height:2px;width:25px;background:<?php echo ampforwp_sanitize_color($header_elements_clr); ?>;border-radius:19px;opacity:1;left:0}.toggle-text span:nth-child(2){top:9px}.toggle-text span:nth-child(3){top:18px}
|
134 |
|
135 |
<?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
136 |
.amp-wp-home .amp-wp-meta{margin:5px 0}
|
201 |
<?php } // AMP Woocommerce CSS Ends ?>
|
202 |
|
203 |
/** Menu CSS **/
|
204 |
+
amp-sidebar{width:250px}
|
205 |
+
amp-sidebar{background:<?php echo ampforwp_sanitize_color($menu_sidebar_clr); ?>;}
|
206 |
+
.amp-sidebar-image{line-height:100px;vertical-align:middle}.amp-close-image{top:15px;left:225px;cursor:pointer}.toggle-navigationv2 ul{list-style-type:none;margin:0;font-family:sans-serif;padding:0}.toggle-navigationv2 ul ul li a{padding-left:35px;background:<?php echo ampforwp_sanitize_color($submenu_bg_clr); ?>;display:inline-block}.toggle-navigationv2 ul li a{padding:10px 15px 10px 25px;width:100%;text-decoration:none;background: <?php echo ampforwp_sanitize_color($menu_bg_clr); ?>;font-size:13px;border-bottom:1px solid <?php echo ampforwp_sanitize_color($menu_bdr_clr); ?>;display:inline-block;color: <?php echo ampforwp_sanitize_color($menu_elements_clr); ?>;}
|
207 |
+
.close-nav{font-size:12px;font-family:sans-serif;background: <?php echo ampforwp_sanitize_color($cross_btn_bg_clr); ?>;letter-spacing:1px;padding:10px;border-radius:100px;line-height:8px;margin:14px;left:191px;color: <?php echo ampforwp_sanitize_color($cross_btn_clr); ?>;display:inline-block;}.close-nav:hover{ background: <?php echo ampforwp_sanitize_color($cross_btn_hvr_clr); ?>;}.toggle-navigation ul{list-style-type:none;margin:0;padding:0;width:100%}.menu-all-pages-container:after{content:"";clear:both}.toggle-navigation ul li{font-size:13px;border-bottom:1px solid rgba(0,0,0,.11);padding:11px 0;width:25%;float:left;text-align:center;margin-top:6px}.toggle-navigation ul ul{display:none}.toggle-navigation ul li a{color:#eee;padding:15px}.toggle-navigation{display:none;background:#444}.nav_container:hover+.toggle-navigation,.toggle-navigation:active,.toggle-navigation:focus,.toggle-navigation:hover{display:inline-block;width:100%}#amp-user-notification1 p{display:inline-block}amp-user-notification{padding:5px;text-align:center;background:#fff;border-top:1px solid} amp-user-notification button {padding: 8px 10px;background: <?php echo sanitize_hex_color( $header_background_color ); ?>;color: <?php echo sanitize_hex_color( $header_color ); ?>;margin-left: 5px;border: 0;}.amp-not-privacy{color:<?php echo sanitize_hex_color( $header_background_color ); ?>;text-decoration: none;font-size: 15px;}amp-user-notification button:hover {cursor: pointer} .amp-ad-wrapper {text-align: center} <?php if( ampforwp_get_setting('enable-single-social-icons') == true && is_single() ) { ?>
|
208 |
body {padding-bottom: 43px;}
|
209 |
.body.single-post .sticky_social{z-index:99999;}
|
210 |
.body.single-post .adsforwp-stick-ad, .body.single-post amp-sticky-ad{padding-top:4px;padding-bottom:52px;}
|
233 |
<?php } // AMP Woocommerce CSS Ends ?>
|
234 |
|
235 |
/* Footer */
|
236 |
+
<?php
|
237 |
+
$footer_back_color = ampforwp_get_setting('ampforwp-footer-background-color-1','color');
|
238 |
+
$footer_hdng_color = ampforwp_get_setting('d1-footer-hdng-color','color');
|
239 |
+
$footer_txt_color = ampforwp_get_setting('d1-footer-txt-color','color');
|
240 |
+
$footer_link_color = ampforwp_get_setting('d1-footer-link-color','color');
|
241 |
+
$footer_lnk_hvr_color = ampforwp_get_setting('d1-footer-link-hvr-color','color');
|
242 |
+
$footer_brdr_color = ampforwp_get_setting('d1-footer-brdr-color','color');
|
243 |
+
$footer_cpr_color = ampforwp_get_setting('d1-footer-cpr-color','color');
|
244 |
+
|
245 |
if (empty($footer_back_color)) {
|
246 |
$footer_back_color = '#FFFFFF';
|
247 |
+
}
|
248 |
+
if (empty($footer_hdng_color)) {
|
249 |
+
$footer_hdng_color = '#353535';
|
250 |
+
}
|
251 |
+
if (empty($footer_txt_color)) {
|
252 |
+
$footer_txt_color = '#353535';
|
253 |
+
}
|
254 |
+
if (empty($footer_link_color)) {
|
255 |
+
$footer_link_color = '#0a89c0';
|
256 |
+
}
|
257 |
+
if (empty($footer_lnk_hvr_color)) {
|
258 |
+
$footer_lnk_hvr_color = '#353535';
|
259 |
+
}
|
260 |
+
if (empty($footer_brdr_color)) {
|
261 |
+
$footer_brdr_color = '#c2c2c2';
|
262 |
+
}
|
263 |
+
if (empty($footer_cpr_color)) {
|
264 |
+
$footer_cpr_color = '#696969';
|
265 |
+
}
|
266 |
+
?>
|
267 |
+
.amp-wp-footer{ border-top: 1px solid <?php echo ampforwp_sanitize_color($footer_brdr_color);?>;background: <?php echo ampforwp_sanitize_color($footer_back_color);?>; color:<?php echo ampforwp_sanitize_color($footer_txt_color);?>; }
|
268 |
+
.amp-wp-footer a{color:<?php echo ampforwp_sanitize_color($footer_link_color);?>;}
|
269 |
+
.amp-wp-footer a:hover{color:<?php echo ampforwp_sanitize_color($footer_lnk_hvr_color);?>;}
|
270 |
+
.amp-wp-footer p {color: <?php echo ampforwp_sanitize_color( $footer_cpr_color ); ?>;}
|
271 |
.amp-wp-footer{ background: <?php echo ampforwp_sanitize_color($footer_back_color);?>; }
|
272 |
.footer_menu ul{ list-style-type: none; padding: 0; text-align: center; margin: 0px 20px 25px 20px; line-height: 27px; font-size: 13px }
|
273 |
.footer_menu ul li{ display:inline; margin:0 10px; }
|
274 |
.footer_menu ul li:first-child{ margin-left:0 }
|
275 |
.footer_menu ul li:last-child{ margin-right:0 }
|
276 |
.footer_menu ul ul{ display:none }
|
277 |
+
#footer{padding:20px 0px 0px 0px}
|
278 |
+
#footer h2, .cpr-links{padding:0px 16px;}
|
279 |
a.btt:hover {
|
280 |
cursor: pointer;
|
281 |
}
|
328 |
[class*=icono-]:after, [class*=icono-]:before{ content: ''; pointer-events: none; }
|
329 |
.icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
|
330 |
[class*=icono-]{ display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
|
331 |
+
<?php if( true == ampforwp_get_setting('amp-design-1-search-feature') ) { ?>
|
332 |
.icono-search{ -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%) }
|
333 |
.icono-search{ border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
|
334 |
.searchform label{ color: #f7f7f7; display: block; font-size: 10px; line-height: 0; opacity:0.6 }
|
336 |
.searchform input{ background: transparent; border: 1px solid #666; color: #f7f7f7; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: 0.3px; text-transform: capitalize; padding: 20px 0px 20px 30px; margin-top: 15px; width: 100%; }
|
337 |
#searchsubmit{opacity:0}
|
338 |
.hide{display:none}
|
339 |
+
<?php } // search condition ends ?>
|
340 |
.amp-wp-header .ampforwp-search-nav-wrapper{ padding: 0; }
|
341 |
.ampforwp-search-nav-wrapper .searchmenu{ margin-top: 20px; }
|
342 |
.headerlogo a, [class*=icono-]{ top:0; }
|
343 |
.amp-logo <?php if(is_single()){ ?> h2 <?php } else{?>h1<?php }?>{font-size: 1em; font-weight: 400; line-height: 1.75em; margin: 0;}
|
344 |
.amp-logo{display:inline-block}
|
345 |
+
.amp-wp-header a, .headerlogo a, [class*=icono-] {color: <?php echo sanitize_hex_color( $header_elements_clr ); ?>;text-decoration: none;}
|
346 |
@media screen and (min-width: 650px) { table {display: inline-table;} }
|
347 |
<?php if($redux_builder_amp['enable-single-social-icons'] && is_socialshare_or_socialsticky_enabled_in_ampforwp() ){ ?> .amp-wp-footer{padding-bottom: 20px;}<?php } ?>
|
348 |
|
406 |
.amp-menu li.menu-item-has-children ul ul{background:#444}
|
407 |
.amp-menu input{display:none;}
|
408 |
.amp-menu [id^=drop]:checked + label + ul{ display: block;}
|
409 |
+
.amp-menu .toggle:after{content:'\25be';position:absolute;padding: 10px 15px 10px 30px;right:0;font-size:18px;color:<?php echo ampforwp_sanitize_color($menu_icon_clr); ?>;top:5px;z-index:10000;line-height:1}
|
410 |
.amp-ad-wrapper span { display: inherit; font-size: 12px; line-height: 1;}
|
411 |
<?php // Ads (sitewide)
|
412 |
if( ( isset($redux_builder_amp['enable-amp-ads-1'] ) && $redux_builder_amp['enable-amp-ads-1'] ) || ( isset($redux_builder_amp['enable-amp-ads-2'] ) && $redux_builder_amp['enable-amp-ads-2'] ) ){ ?> .amp-ad-wrapper {text-align: center} .amp-ad-wrapper.amp_ad_1{padding-top:20px} .amp-ad-wrapper,.amp-wp-article amp-ad{ direction: ltr; } <?php }
|
503 |
display: inline-block;
|
504 |
opacity: 0;
|
505 |
}
|
506 |
+
.hide {
|
507 |
+
display: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
}
|
509 |
.w-bl .search-field{
|
510 |
border: 1px solid #ccc;
|
615 |
.footnote_container_prepare p span:last-child {
|
616 |
display:none;
|
617 |
}
|
618 |
+
<?php } ?>
|
619 |
+
<?php // Footer Widget Satyling
|
620 |
+
if ( is_active_sidebar( 'swift-footer-widget-area' ) ) : ?>
|
621 |
+
.f-w-blk {
|
622 |
+
padding:40px 0px 0px 0px;
|
623 |
+
border-bottom: 1px solid <?php echo ampforwp_sanitize_color($footer_brdr_color);?>;
|
624 |
+
}
|
625 |
+
.d3f-w .w-bl h4 {
|
626 |
+
font-size: 12px;
|
627 |
+
font-weight: 500;
|
628 |
+
margin:0px 0px 20px;
|
629 |
+
text-transform: uppercase;
|
630 |
+
letter-spacing: 1px;
|
631 |
+
padding-bottom: 4px;
|
632 |
+
color:<?php echo ampforwp_sanitize_color( $footer_hdng_color ); ?>
|
633 |
+
}
|
634 |
+
.d3f-w .w-bl ul{
|
635 |
+
margin:0;
|
636 |
+
padding:0;
|
637 |
+
}
|
638 |
+
.d3f-w .w-bl ul li {
|
639 |
+
list-style-type: none;
|
640 |
+
margin-bottom: 15px;
|
641 |
+
}
|
642 |
+
.d3f-w {
|
643 |
+
display: inline-flex;
|
644 |
+
width: 100%;
|
645 |
+
flex-wrap: wrap;
|
646 |
+
text-align: left;
|
647 |
+
}
|
648 |
+
.d3f-w .w-bl {
|
649 |
+
display: flex;
|
650 |
+
flex-direction: column;
|
651 |
+
position: relative;
|
652 |
+
flex: 1 0 22%;
|
653 |
+
margin: 0 15px 30px;
|
654 |
+
line-height: 1.5;
|
655 |
+
font-size: 14px;
|
656 |
+
padding:0;
|
657 |
+
}
|
658 |
+
@media (max-width: 1000px){
|
659 |
+
.d3f-w .f-w {
|
660 |
+
margin: 0;
|
661 |
+
}
|
662 |
+
.d3f-w .w-bl{
|
663 |
+
flex: 1 0 18%;
|
664 |
+
margin:0px 10px 20px;
|
665 |
+
}
|
666 |
+
}
|
667 |
+
@media (max-width: 480px){
|
668 |
+
.d3f-w .w-bl {
|
669 |
+
flex: 100%;
|
670 |
+
}
|
671 |
+
.f-w-blk {
|
672 |
+
padding: 20px 10px 0px 10px;
|
673 |
+
}
|
674 |
+
}
|
675 |
+
<?php endif; ?>
|
676 |
+
<?php // Notification CSS
|
677 |
+
if( ampforwp_get_setting('amp-enable-notifications') && ampforwp_get_setting('enable-single-social-icons') && is_single() ) { ?>
|
678 |
+
amp-user-notification{
|
679 |
+
bottom:42px;
|
680 |
+
z-index: 999999;
|
681 |
+
}
|
682 |
+
<?php } //amp-enable-notifications Condition Ends Here ?>
|
@@ -47,9 +47,9 @@ if( array_key_exists( 'amp-author-description' , $redux_builder_amp ) && is_sing
|
|
47 |
<amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
|
48 |
<?php
|
49 |
}
|
50 |
-
echo
|
51 |
-
echo ampforwp_yoast_twitter_handle()
|
52 |
-
echo $post_author->description
|
53 |
} ?>
|
54 |
</div>
|
55 |
</div> <?php
|
47 |
<amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
|
48 |
<?php
|
49 |
}
|
50 |
+
echo ampforwp_get_author_details( $post_author , 'meta-taxonomy' );
|
51 |
+
echo ampforwp_yoast_twitter_handle();
|
52 |
+
echo $post_author->description;
|
53 |
} ?>
|
54 |
</div>
|
55 |
</div> <?php
|
@@ -18,7 +18,7 @@ if ( is_single() || (is_page() && isset($redux_builder_amp['ampforwp-page-social
|
|
18 |
?>
|
19 |
<?php do_action('ampforwp_before_social_icons_hook',$this); ?>
|
20 |
<div class="amp-wp-content post-pagination-meta ampforwp-social-icons-wrapper ampforwp-social-icons">
|
21 |
-
<?php if( true ==
|
22 |
$facebook_like_url = '';
|
23 |
$facebook_like_url = $amp_permalink;
|
24 |
if( $facebook_like_url ){ ?>
|
18 |
?>
|
19 |
<?php do_action('ampforwp_before_social_icons_hook',$this); ?>
|
20 |
<div class="amp-wp-content post-pagination-meta ampforwp-social-icons-wrapper ampforwp-social-icons">
|
21 |
+
<?php if( true == ampforwp_get_setting('ampforwp-facebook-like-button') ) {
|
22 |
$facebook_like_url = '';
|
23 |
$facebook_like_url = $amp_permalink;
|
24 |
if( $facebook_like_url ){ ?>
|
@@ -2,6 +2,20 @@
|
|
2 |
wp_reset_postdata();?>
|
3 |
<footer class="container">
|
4 |
<div id="footer">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
<?php if ( has_nav_menu( 'amp-footer-menu' ) ) { ?>
|
6 |
<div class="footer_menu">
|
7 |
<nav>
|
2 |
wp_reset_postdata();?>
|
3 |
<footer class="container">
|
4 |
<div id="footer">
|
5 |
+
<?php if ( is_active_sidebar( 'swift-footer-widget-area' ) ) : ?>
|
6 |
+
<div class="f-w-blk">
|
7 |
+
<div class="d3f-w">
|
8 |
+
<?php
|
9 |
+
$sanitized_sidebar = ampforwp_sidebar_content_sanitizer('swift-footer-widget-area');
|
10 |
+
if ( $sanitized_sidebar) {
|
11 |
+
$sidebar_output = $sanitized_sidebar->get_amp_content();
|
12 |
+
$sidebar_output = apply_filters('ampforwp_modify_sidebars_content',$sidebar_output);
|
13 |
+
}
|
14 |
+
echo do_shortcode($sidebar_output);
|
15 |
+
?>
|
16 |
+
</div>
|
17 |
+
</div>
|
18 |
+
<?php endif; ?>
|
19 |
<?php if ( has_nav_menu( 'amp-footer-menu' ) ) { ?>
|
20 |
<div class="footer_menu">
|
21 |
<nav>
|
@@ -22,12 +22,56 @@ global $redux_builder_amp;
|
|
22 |
$link_color = $get_customizer->get_customizer_setting( 'link_color' );
|
23 |
$header_background_color = $get_customizer->get_customizer_setting( 'header_background_color' );
|
24 |
$header_color = $get_customizer->get_customizer_setting( 'header_color' );
|
25 |
-
$header_bg_clr = ampforwp_get_setting('amp-d2-background-color','color');
|
26 |
-
if(empty($header_bg_clr)){
|
27 |
-
$header_bg_clr ='#0a89c0';
|
28 |
-
}
|
29 |
?>
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
/* Global Styling */
|
32 |
body{ background: #f1f1f1; font: 16px/1.4 Sans-serif; }
|
33 |
a { color: #312C7E; text-decoration: none }
|
@@ -54,13 +98,14 @@ figure.aligncenter amp-img {
|
|
54 |
/* Slide Navigation code */
|
55 |
.nav_container{ padding: 18px 15px; background: #312C7E; color: #fff; text-align: center }
|
56 |
amp-sidebar{ width: 250px; }
|
|
|
57 |
.amp-sidebar-image{ line-height: 100px; vertical-align:middle; }
|
58 |
.amp-close-image{ top: 15px; left: 225px; cursor: pointer; }
|
59 |
.toggle-navigationv2 ul{ list-style-type: none; margin: 0; padding: 0; }
|
60 |
-
.toggle-navigationv2 ul ul li a{ padding-left: 35px; background
|
61 |
-
.toggle-navigationv2 ul li a{ padding: 15px 25px; width: 100%; display: inline-block; background:
|
62 |
-
.close-nav{ font-size: 12px; background:
|
63 |
-
.close-nav:hover{ background:
|
64 |
.toggle-navigation ul{ list-style-type: none; margin: 0; padding: 0; display: inline-block; width: 100% }
|
65 |
.menu-all-pages-container:after{ content: ""; clear: both }
|
66 |
.toggle-navigation ul li{ font-size: 13px; border-bottom: 1px solid rgba(0, 0, 0, 0.11); padding: 11px 0px; width: 25%; float: left; text-align: center; margin-top: 6px }
|
@@ -91,6 +136,7 @@ amp-lightbox{ background: rgba(0, 0, 0,0.85); }
|
|
91 |
[class*=icono-]:after, [class*=icono-]:before { content: ''; pointer-events: none; }
|
92 |
.icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
|
93 |
[class*=icono-] { display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
|
|
|
94 |
.icono-search { -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%) }
|
95 |
.icono-search { border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
|
96 |
.searchform label{ color: #f7f7f7; display: block; font-size: 10px; letter-spacing: 0.3px; line-height: 0; opacity:0.6 }
|
@@ -98,6 +144,7 @@ amp-lightbox{ background: rgba(0, 0, 0,0.85); }
|
|
98 |
.searchform input{ background: transparent; border: 1px solid #666; color: #f7f7f7; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: 0.3px; text-transform: capitalize; padding: 20px 0px 20px 30px; margin-top: 15px; width: 100%; }
|
99 |
#searchsubmit{opacity:0}
|
100 |
.hide{display:none}
|
|
|
101 |
.headerlogo a, [class*=icono-]{ color: #F42F42 }
|
102 |
<?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
103 |
/* Pagination */
|
@@ -194,11 +241,33 @@ main .amp-archive-heading{ background : none; box-shadow: none; padding: 5px; }
|
|
194 |
<?php if(is_author()){ ?> .author-archive amp-img{border-radius: 50%;margin: 0px 8px 10px;display: block;}.author-archive{float: left;} .amp-wp-content .taxonomy-description{background: #f1f1f1; padding:0px} .page-title{padding:0} <?php } ?>
|
195 |
|
196 |
/* Footer */
|
197 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
if (empty($footer_back_color)) {
|
199 |
$footer_back_color = '#FFFFFF';
|
200 |
-
}
|
201 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
#footer p:first-child{ margin-bottom: 12px; }
|
203 |
#footer p{ margin: 0 }
|
204 |
.footer_menu ul{ list-style-type: none; padding: 0; text-align: center; margin: 0px 20px 25px 20px; line-height: 27px; font-size: 13px }
|
@@ -213,7 +282,7 @@ a.btt:hover {
|
|
213 |
background: <?php echo ampforwp_sanitize_color($header_bg_clr); ?>
|
214 |
}
|
215 |
.nav_container a, .nav_container a:hover, .nav_container a:focus{
|
216 |
-
color:<?php echo sanitize_hex_color( $
|
217 |
}
|
218 |
<?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
219 |
<?php if(is_singular() || is_home() && true == ampforwp_get_setting('amp-frontpage-select-option') && ampforwp_get_blog_details() == false && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ){ ?>
|
@@ -370,7 +439,6 @@ amp-carousel{direction: ltr;} .tt-lb{float:right;margin-left:5px;}
|
|
370 |
body a {color: <?php echo ampforwp_sanitize_color($redux_builder_amp['amp-opt-color-rgba-link-design2']['color']);?> }
|
371 |
.amp-wp-content blockquote{ border-color:<?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
372 |
.comment-button-wrapper a { background: <?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
373 |
-
.nav_container a{ color:<?php echo sanitize_hex_color( $header_color ); ?> }
|
374 |
amp-user-notification { border-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
375 |
amp-user-notification button { background-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
376 |
<?php if( ampforwp_get_setting('enable-single-social-icons') == true && is_socialshare_or_socialsticky_enabled_in_ampforwp() && is_single() ) { ?>
|
@@ -436,7 +504,7 @@ if( ampforwp_get_setting('ampforwp-advertisement-sticky-type') == 3) {?>
|
|
436 |
.amp-menu li.menu-item-has-children ul ul{background:#444}
|
437 |
.amp-menu input{display:none}
|
438 |
.amp-menu [id^=drop]:checked + label + ul{ display: block;}
|
439 |
-
.amp-menu .toggle:after{content:'\25be';position:absolute;padding: 10px 15px 10px 30px;right:0;font-size:18px;color
|
440 |
.amp-ad-wrapper span { display: inherit; font-size: 12px; line-height: 1;}
|
441 |
<?php // Ads (sitewide)
|
442 |
if( ( isset($redux_builder_amp['enable-amp-ads-1'] ) && $redux_builder_amp['enable-amp-ads-1'] ) || ( isset($redux_builder_amp['enable-amp-ads-2'] ) && $redux_builder_amp['enable-amp-ads-2'] ) ){ ?> .amp-ad-wrapper{ text-align: center } .amp-ad-wrapper{ text-align: center; margin-left: -13px; } .amp-ad-wrapper, .amp-wp-article amp-ad{ direction: ltr; } .amp-ad-2{ margin-bottom: 50px; } .amp_home_body .amp_ad_1{ margin-top: 10px; margin-bottom: -20px; }<?php }
|
@@ -526,7 +594,7 @@ if ( is_active_sidebar( 'ampforwp-above-footer' ) || is_active_sidebar( 'ampfor
|
|
526 |
align-items: center;
|
527 |
}
|
528 |
.w-bl .search-submit{
|
529 |
-
|
530 |
padding: 0;
|
531 |
margin: 0;
|
532 |
background: transparent;
|
@@ -534,31 +602,8 @@ if ( is_active_sidebar( 'ampforwp-above-footer' ) || is_active_sidebar( 'ampfor
|
|
534 |
display: inline-block;
|
535 |
opacity: 0;
|
536 |
}
|
537 |
-
.
|
538 |
-
|
539 |
-
width: 10px;
|
540 |
-
height: 10px;
|
541 |
-
border-radius: 50%;
|
542 |
-
-webkit-transform: rotate(45deg);
|
543 |
-
-ms-transform: rotate(45deg);
|
544 |
-
transform: rotate(45deg);
|
545 |
-
margin: 4px 4px 8px 8px;
|
546 |
-
position: relative;
|
547 |
-
cursor: pointer;
|
548 |
-
}
|
549 |
-
.w-bl .search-button:after{
|
550 |
-
content: "";
|
551 |
-
position: absolute;
|
552 |
-
left: 50%;
|
553 |
-
-webkit-transform: rotate(270deg);
|
554 |
-
-ms-transform: rotate(270deg);
|
555 |
-
transform: rotate(270deg);
|
556 |
-
width: 2px;
|
557 |
-
height: 9px;
|
558 |
-
box-shadow: inset 0 0 0 32px;
|
559 |
-
top: 0px;
|
560 |
-
border-radius: 0 0 1px 1px;
|
561 |
-
left: 14px;
|
562 |
}
|
563 |
.w-bl .search-field{
|
564 |
border: 1px solid #ccc;
|
@@ -679,4 +724,70 @@ if(class_exists('MCI_Footnotes')){ ?>
|
|
679 |
.footnote_container_prepare p span:last-child {
|
680 |
display:none;
|
681 |
}
|
682 |
-
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
$link_color = $get_customizer->get_customizer_setting( 'link_color' );
|
23 |
$header_background_color = $get_customizer->get_customizer_setting( 'header_background_color' );
|
24 |
$header_color = $get_customizer->get_customizer_setting( 'header_color' );
|
|
|
|
|
|
|
|
|
25 |
?>
|
26 |
|
27 |
+
<?php // Menu elemensts colors
|
28 |
+
$header_bg_clr = ampforwp_get_setting('amp-d2-background-color','color');
|
29 |
+
$header_elements_clr = ampforwp_get_setting('amp-d2-elements-color','color');
|
30 |
+
$menu_sidebar_clr = ampforwp_get_setting('amp-d2-sidebar-color','color');
|
31 |
+
$menu_bg_clr = ampforwp_get_setting('amp-d2-menu-bg-color','color');
|
32 |
+
$menu_elements_clr = ampforwp_get_setting('amp-d2-menu-color','color');
|
33 |
+
$submenu_bg_clr = ampforwp_get_setting('amp-d2-submenu-bg-color','color');
|
34 |
+
$menu_bdr_clr = ampforwp_get_setting('amp-d2-menu-brdr-color','color');
|
35 |
+
$menu_icon_clr = ampforwp_get_setting('amp-d2-menu-icon-color','color');
|
36 |
+
$cross_btn_clr = ampforwp_get_setting('amp-d2-cross-btn-color','color');
|
37 |
+
$cross_btn_bg_clr = ampforwp_get_setting('amp-d2-cross-bg-color','rgba');
|
38 |
+
$cross_btn_hvr_clr = ampforwp_get_setting('amp-d2-cross-hover-color','rgba');
|
39 |
+
|
40 |
+
if(empty($header_bg_clr)){
|
41 |
+
$header_bg_clr ='#0a89c0';
|
42 |
+
}
|
43 |
+
if(empty($header_elements_clr)){
|
44 |
+
$header_elements_clr ='#ffffff';
|
45 |
+
}
|
46 |
+
if(empty($menu_sidebar_clr)){
|
47 |
+
$menu_sidebar_clr ='#efefef';
|
48 |
+
}
|
49 |
+
if(empty($menu_bg_clr)){
|
50 |
+
$menu_bg_clr ='#fafafa';
|
51 |
+
}
|
52 |
+
if(empty($menu_elements_clr)){
|
53 |
+
$menu_elements_clr ='#0a89c0';
|
54 |
+
}
|
55 |
+
if(empty($submenu_bg_clr)){
|
56 |
+
$submenu_bg_clr ='#ffffff';
|
57 |
+
}
|
58 |
+
if(empty($menu_bdr_clr)){
|
59 |
+
$menu_bdr_clr ='#efefef';
|
60 |
+
}
|
61 |
+
if(empty($menu_icon_clr)){
|
62 |
+
$menu_icon_clr ='#ccc';
|
63 |
+
}
|
64 |
+
if(empty($cross_btn_clr)){
|
65 |
+
$cross_btn_clr ='#ffffff';
|
66 |
+
}
|
67 |
+
if(empty($cross_btn_bg_clr)){
|
68 |
+
$cross_btn_bg_clr ='rgba(0, 0, 0, 0.25)';
|
69 |
+
}
|
70 |
+
if(empty($cross_btn_hvr_clr)){
|
71 |
+
$cross_btn_hvr_clr ='rgba(0, 0, 0, 0.45)';
|
72 |
+
}
|
73 |
+
|
74 |
+
?>
|
75 |
/* Global Styling */
|
76 |
body{ background: #f1f1f1; font: 16px/1.4 Sans-serif; }
|
77 |
a { color: #312C7E; text-decoration: none }
|
98 |
/* Slide Navigation code */
|
99 |
.nav_container{ padding: 18px 15px; background: #312C7E; color: #fff; text-align: center }
|
100 |
amp-sidebar{ width: 250px; }
|
101 |
+
amp-sidebar{background:<?php echo ampforwp_sanitize_color($menu_sidebar_clr); ?>;}
|
102 |
.amp-sidebar-image{ line-height: 100px; vertical-align:middle; }
|
103 |
.amp-close-image{ top: 15px; left: 225px; cursor: pointer; }
|
104 |
.toggle-navigationv2 ul{ list-style-type: none; margin: 0; padding: 0; }
|
105 |
+
.toggle-navigationv2 ul ul li a{ padding-left: 35px; background:<?php echo ampforwp_sanitize_color($submenu_bg_clr); ?>; display: inline-block }
|
106 |
+
.toggle-navigationv2 ul li a{ padding: 15px 25px; width: 100%; display: inline-block; background: <?php echo ampforwp_sanitize_color($menu_bg_clr); ?>; font-size: 14px; border-bottom: 1px solid <?php echo ampforwp_sanitize_color($menu_bdr_clr); ?>;color:<?php echo ampforwp_sanitize_color($menu_elements_clr); ?>;}
|
107 |
+
.close-nav{ font-size: 12px; background: <?php echo ampforwp_sanitize_color($cross_btn_bg_clr); ?>; letter-spacing: 1px; display: inline-block; padding: 10px; border-radius: 100px; line-height: 8px; margin: 14px; left: 191px; color: <?php echo ampforwp_sanitize_color($cross_btn_clr); ?>; }
|
108 |
+
.close-nav:hover{ background: <?php echo ampforwp_sanitize_color($cross_btn_hvr_clr); ?>;}
|
109 |
.toggle-navigation ul{ list-style-type: none; margin: 0; padding: 0; display: inline-block; width: 100% }
|
110 |
.menu-all-pages-container:after{ content: ""; clear: both }
|
111 |
.toggle-navigation ul li{ font-size: 13px; border-bottom: 1px solid rgba(0, 0, 0, 0.11); padding: 11px 0px; width: 25%; float: left; text-align: center; margin-top: 6px }
|
136 |
[class*=icono-]:after, [class*=icono-]:before { content: ''; pointer-events: none; }
|
137 |
.icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
|
138 |
[class*=icono-] { display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
|
139 |
+
<?php if( true == ampforwp_get_setting('amp-design-1-search-feature') ) { ?>
|
140 |
.icono-search { -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%) }
|
141 |
.icono-search { border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
|
142 |
.searchform label{ color: #f7f7f7; display: block; font-size: 10px; letter-spacing: 0.3px; line-height: 0; opacity:0.6 }
|
144 |
.searchform input{ background: transparent; border: 1px solid #666; color: #f7f7f7; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: 0.3px; text-transform: capitalize; padding: 20px 0px 20px 30px; margin-top: 15px; width: 100%; }
|
145 |
#searchsubmit{opacity:0}
|
146 |
.hide{display:none}
|
147 |
+
<?php } // search condition ends ?>
|
148 |
.headerlogo a, [class*=icono-]{ color: #F42F42 }
|
149 |
<?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
150 |
/* Pagination */
|
241 |
<?php if(is_author()){ ?> .author-archive amp-img{border-radius: 50%;margin: 0px 8px 10px;display: block;}.author-archive{float: left;} .amp-wp-content .taxonomy-description{background: #f1f1f1; padding:0px} .page-title{padding:0} <?php } ?>
|
242 |
|
243 |
/* Footer */
|
244 |
+
<?php
|
245 |
+
$footer_back_color = ampforwp_get_setting('ampforwp-footer-background-color-2','color');
|
246 |
+
$footer_hdng_color = ampforwp_get_setting('d2-footer-hdng-color','color');
|
247 |
+
$footer_txt_color = ampforwp_get_setting('d2-footer-txt-color','color');
|
248 |
+
$footer_link_color = ampforwp_get_setting('d2-footer-link-color','color');
|
249 |
+
$footer_brdr_color = ampforwp_get_setting('d2-footer-brdr-color','color');
|
250 |
+
|
251 |
if (empty($footer_back_color)) {
|
252 |
$footer_back_color = '#FFFFFF';
|
253 |
+
}
|
254 |
+
if (empty($footer_hdng_color)) {
|
255 |
+
$footer_hdng_color = '#222222';
|
256 |
+
}
|
257 |
+
if (empty($footer_txt_color)) {
|
258 |
+
$footer_txt_color = '#222222';
|
259 |
+
}
|
260 |
+
if (empty($footer_link_color)) {
|
261 |
+
$footer_link_color = '#0a89c0';
|
262 |
+
}
|
263 |
+
if (empty($footer_brdr_color)) {
|
264 |
+
$footer_brdr_color = '#eeeeee';
|
265 |
+
}
|
266 |
+
|
267 |
+
|
268 |
+
?>
|
269 |
+
#footer{ background: <?php echo ampforwp_sanitize_color($footer_back_color);?>; font-size: 13px; text-align: center; letter-spacing: 0.2px; padding: 20px 0;color: <?php echo ampforwp_sanitize_color($footer_txt_color);?>;}
|
270 |
+
#footer a{color:<?php echo ampforwp_sanitize_color($footer_link_color);?>;}
|
271 |
#footer p:first-child{ margin-bottom: 12px; }
|
272 |
#footer p{ margin: 0 }
|
273 |
.footer_menu ul{ list-style-type: none; padding: 0; text-align: center; margin: 0px 20px 25px 20px; line-height: 27px; font-size: 13px }
|
282 |
background: <?php echo ampforwp_sanitize_color($header_bg_clr); ?>
|
283 |
}
|
284 |
.nav_container a, .nav_container a:hover, .nav_container a:focus{
|
285 |
+
color:<?php echo sanitize_hex_color( $header_elements_clr ); ?>
|
286 |
}
|
287 |
<?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
288 |
<?php if(is_singular() || is_home() && true == ampforwp_get_setting('amp-frontpage-select-option') && ampforwp_get_blog_details() == false && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ){ ?>
|
439 |
body a {color: <?php echo ampforwp_sanitize_color($redux_builder_amp['amp-opt-color-rgba-link-design2']['color']);?> }
|
440 |
.amp-wp-content blockquote{ border-color:<?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
441 |
.comment-button-wrapper a { background: <?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
|
|
442 |
amp-user-notification { border-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
443 |
amp-user-notification button { background-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
444 |
<?php if( ampforwp_get_setting('enable-single-social-icons') == true && is_socialshare_or_socialsticky_enabled_in_ampforwp() && is_single() ) { ?>
|
504 |
.amp-menu li.menu-item-has-children ul ul{background:#444}
|
505 |
.amp-menu input{display:none}
|
506 |
.amp-menu [id^=drop]:checked + label + ul{ display: block;}
|
507 |
+
.amp-menu .toggle:after{content:'\25be';position:absolute;padding: 10px 15px 10px 30px;right:0;font-size:18px;color:<?php echo ampforwp_sanitize_color($menu_icon_clr); ?>;top:5px;z-index:10000;line-height:1}
|
508 |
.amp-ad-wrapper span { display: inherit; font-size: 12px; line-height: 1;}
|
509 |
<?php // Ads (sitewide)
|
510 |
if( ( isset($redux_builder_amp['enable-amp-ads-1'] ) && $redux_builder_amp['enable-amp-ads-1'] ) || ( isset($redux_builder_amp['enable-amp-ads-2'] ) && $redux_builder_amp['enable-amp-ads-2'] ) ){ ?> .amp-ad-wrapper{ text-align: center } .amp-ad-wrapper{ text-align: center; margin-left: -13px; } .amp-ad-wrapper, .amp-wp-article amp-ad{ direction: ltr; } .amp-ad-2{ margin-bottom: 50px; } .amp_home_body .amp_ad_1{ margin-top: 10px; margin-bottom: -20px; }<?php }
|
594 |
align-items: center;
|
595 |
}
|
596 |
.w-bl .search-submit{
|
597 |
+
text-indent: -9999px;
|
598 |
padding: 0;
|
599 |
margin: 0;
|
600 |
background: transparent;
|
602 |
display: inline-block;
|
603 |
opacity: 0;
|
604 |
}
|
605 |
+
.hide{
|
606 |
+
display: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
607 |
}
|
608 |
.w-bl .search-field{
|
609 |
border: 1px solid #ccc;
|
724 |
.footnote_container_prepare p span:last-child {
|
725 |
display:none;
|
726 |
}
|
727 |
+
<?php } ?>
|
728 |
+
<?php // Footer Widget Satyling
|
729 |
+
if ( is_active_sidebar( 'swift-footer-widget-area' ) ) : ?>
|
730 |
+
.f-w-blk {
|
731 |
+
max-width: 1000px;
|
732 |
+
margin: 0 auto 20px auto;
|
733 |
+
padding:20px 0px 0px 0px;
|
734 |
+
border-bottom: 1px solid <?php echo ampforwp_sanitize_color($footer_brdr_color);?>;
|
735 |
+
}
|
736 |
+
.d3f-w .w-bl h4 {
|
737 |
+
font-size: 12px;
|
738 |
+
font-weight: 500;
|
739 |
+
margin:0px 0px 20px;
|
740 |
+
text-transform: uppercase;
|
741 |
+
letter-spacing: 1px;
|
742 |
+
padding-bottom: 4px;
|
743 |
+
color:<?php echo ampforwp_sanitize_color( $footer_hdng_color ); ?>
|
744 |
+
}
|
745 |
+
.d3f-w .w-bl ul{
|
746 |
+
margin:0;
|
747 |
+
padding:0;
|
748 |
+
}
|
749 |
+
.d3f-w .w-bl ul li {
|
750 |
+
list-style-type: none;
|
751 |
+
margin-bottom: 15px;
|
752 |
+
}
|
753 |
+
.d3f-w {
|
754 |
+
display: inline-flex;
|
755 |
+
width: 100%;
|
756 |
+
flex-wrap: wrap;
|
757 |
+
text-align: left;
|
758 |
+
}
|
759 |
+
.d3f-w .w-bl {
|
760 |
+
display: flex;
|
761 |
+
flex-direction: column;
|
762 |
+
position: relative;
|
763 |
+
flex: 1 0 22%;
|
764 |
+
margin: 0 15px 30px;
|
765 |
+
line-height: 1.5;
|
766 |
+
font-size: 14px;
|
767 |
+
padding:0;
|
768 |
+
}
|
769 |
+
@media (max-width: 1000px){
|
770 |
+
.d3f-w .f-w {
|
771 |
+
margin: 0;
|
772 |
+
}
|
773 |
+
.d3f-w .w-bl{
|
774 |
+
flex: 1 0 18%;
|
775 |
+
margin:0px 10px 20px;
|
776 |
+
}
|
777 |
+
}
|
778 |
+
@media (max-width: 480px){
|
779 |
+
.d3f-w .w-bl {
|
780 |
+
flex: 100%;
|
781 |
+
}
|
782 |
+
.f-w-blk {
|
783 |
+
padding: 20px 10px 0px 10px;
|
784 |
+
}
|
785 |
+
}
|
786 |
+
<?php endif; ?>
|
787 |
+
<?php // Notification CSS
|
788 |
+
if( ampforwp_get_setting('amp-enable-notifications') && ampforwp_get_setting('enable-single-social-icons') && is_single() ) { ?>
|
789 |
+
amp-user-notification{
|
790 |
+
bottom:41px;
|
791 |
+
z-index: 999999;
|
792 |
+
}
|
793 |
+
<?php } //amp-enable-notifications Condition Ends Here ?>
|
@@ -35,9 +35,9 @@ if( array_key_exists( 'amp-author-description' , $redux_builder_amp ) && is_sing
|
|
35 |
<amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
|
36 |
<?php
|
37 |
}
|
38 |
-
echo
|
39 |
echo ampforwp_yoast_twitter_handle().' ';
|
40 |
-
echo $post_author->description
|
41 |
} ?>
|
42 |
</div>
|
43 |
</div> <?php
|
35 |
<amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
|
36 |
<?php
|
37 |
}
|
38 |
+
echo ampforwp_get_author_details( $post_author , 'meta-taxonomy' );
|
39 |
echo ampforwp_yoast_twitter_handle().' ';
|
40 |
+
echo $post_author->description;
|
41 |
} ?>
|
42 |
</div>
|
43 |
</div> <?php
|
@@ -25,7 +25,7 @@ if ( is_single() || (is_page() && isset($redux_builder_amp['ampforwp-page-social
|
|
25 |
<?php do_action('ampforwp_before_social_icons_hook',$this); ?>
|
26 |
<div class="amp-wp-content ampforwp-social-icons-wrapper ampforwp-social-icons">
|
27 |
<i class="icono-share"></i>
|
28 |
-
<?php if ( true ==
|
29 |
$facebook_like_url = '';
|
30 |
$facebook_like_url = $amp_permalink;
|
31 |
if ( $facebook_like_url ) { ?>
|
25 |
<?php do_action('ampforwp_before_social_icons_hook',$this); ?>
|
26 |
<div class="amp-wp-content ampforwp-social-icons-wrapper ampforwp-social-icons">
|
27 |
<i class="icono-share"></i>
|
28 |
+
<?php if ( true == ampforwp_get_setting('ampforwp-facebook-like-button') ) {
|
29 |
$facebook_like_url = '';
|
30 |
$facebook_like_url = $amp_permalink;
|
31 |
if ( $facebook_like_url ) { ?>
|
@@ -1,7 +1,21 @@
|
|
1 |
<?php global $redux_builder_amp;
|
2 |
wp_reset_postdata();?>
|
3 |
<footer class="footer_wrapper container">
|
4 |
-
<div id="footer">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
<?php if ( has_nav_menu( 'amp-footer-menu' ) ) { ?>
|
6 |
<div class="footer_menu">
|
7 |
<nav>
|
1 |
<?php global $redux_builder_amp;
|
2 |
wp_reset_postdata();?>
|
3 |
<footer class="footer_wrapper container">
|
4 |
+
<div id="footer">
|
5 |
+
<?php if ( is_active_sidebar( 'swift-footer-widget-area' ) ) : ?>
|
6 |
+
<div class="f-w-blk">
|
7 |
+
<div class="d3f-w">
|
8 |
+
<?php
|
9 |
+
$sanitized_sidebar = ampforwp_sidebar_content_sanitizer('swift-footer-widget-area');
|
10 |
+
if ( $sanitized_sidebar) {
|
11 |
+
$sidebar_output = $sanitized_sidebar->get_amp_content();
|
12 |
+
$sidebar_output = apply_filters('ampforwp_modify_sidebars_content',$sidebar_output);
|
13 |
+
}
|
14 |
+
echo do_shortcode($sidebar_output);
|
15 |
+
?>
|
16 |
+
</div>
|
17 |
+
</div>
|
18 |
+
<?php endif; ?>
|
19 |
<?php if ( has_nav_menu( 'amp-footer-menu' ) ) { ?>
|
20 |
<div class="footer_menu">
|
21 |
<nav>
|
@@ -215,19 +215,46 @@ body .amp-loop-list-noimg .amp-wp-post-content{ width:100% }
|
|
215 |
<?php } ?>
|
216 |
<?php } // AMP Woocommerce CSS ends ?>
|
217 |
/* Footer */
|
218 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
if (empty($footer_back_color)) {
|
220 |
$footer_back_color = '#151515';
|
221 |
-
}
|
222 |
-
|
223 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
#footer p:first-child{ margin-bottom: 12px; }
|
225 |
-
#footer .social_icons{ margin: 0px 20px 25px 20px; border-bottom: 1px solid
|
226 |
#footer p{ margin: 0 }
|
227 |
.back-to-top{padding-bottom: 8px;}
|
228 |
-
.rightslink, #footer .rightslink a{ font-size:13px; color
|
229 |
.poweredby{ padding-top:10px; font-size:10px; }
|
230 |
-
#footer .poweredby a{ color
|
231 |
.footer_menu ul{ list-style-type: none; padding: 0; text-align: center; margin: 0px 20px 25px 20px; line-height: 27px; font-size: 13px }
|
232 |
.footer_menu ul li{ display:inline; margin:0 10px; }
|
233 |
.footer_menu ul li:first-child{ margin-left:0 }
|
@@ -442,6 +469,7 @@ pre{ white-space: pre-wrap; }
|
|
442 |
.icono-share:after, .icono-share:before{ position: absolute; width: 24px; height: 1px; box-shadow: inset 0 0 0 32px; left: 0; }
|
443 |
.icono-share:before{ top: 0px; -webkit-transform: rotate(-25deg); -ms-transform: rotate(-25deg); transform: rotate(-25deg); }
|
444 |
.icono-share:after{ top: 8px; -webkit-transform: rotate(25deg); -ms-transform: rotate(25deg); transform: rotate(25deg); }
|
|
|
445 |
.icono-search{ border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
|
446 |
.icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
|
447 |
.closebutton{ background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 30px; width: 32px; height: 32px; font-size: 12px; text-align: center; position: absolute; top: 12px; right: 20px; outline:none }
|
@@ -450,6 +478,7 @@ amp-lightbox{ background: rgba(0, 0, 0,0.85); }
|
|
450 |
.searchform{ background: transparent; left: 20%; position: absolute; top: 35%; width: 60%; max-width: 100%; transition-delay: 0.5s; }
|
451 |
.searchform input{ background: transparent; border: 1px solid #666; color: #f7f7f7; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: 0.3px; text-transform: capitalize; padding: 20px 0px 20px 30px; margin-top: 15px; width: 100%; }
|
452 |
#searchsubmit{opacity:0}
|
|
|
453 |
.featured_time{ font-size: 12px; color: #fff; opacity: 0.8; padding-left: 20px; }
|
454 |
.archives_body main{ margin-top:20px }
|
455 |
.taxonomy-description p{margin-top: 5px;font-size: 14px;line-height: 1.5;}
|
@@ -893,4 +922,70 @@ if(class_exists('MCI_Footnotes')){ ?>
|
|
893 |
.footnote_container_prepare p span:last-child {
|
894 |
display:none;
|
895 |
}
|
896 |
-
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
<?php } ?>
|
216 |
<?php } // AMP Woocommerce CSS ends ?>
|
217 |
/* Footer */
|
218 |
+
<?php
|
219 |
+
$footer_back_color = ampforwp_get_setting('ampforwp-footer-background-color-3','color');
|
220 |
+
$footer_hdbg_color = ampforwp_get_setting('d3-footer-hdng-color','color');
|
221 |
+
$footer_text_color = ampforwp_get_setting('d3-footer-txt-color','color');
|
222 |
+
$footer_link_color = ampforwp_get_setting('d3-footer-link-color','color');
|
223 |
+
$footer_brdr_color = ampforwp_get_setting('d3-footer-brdr-color','color');
|
224 |
+
$footer_cpr_color = ampforwp_get_setting('d3-footer-cpr-color','color');
|
225 |
+
$footer_pwrd_color = ampforwp_get_setting('d3-footer-pwrd-color','color');
|
226 |
+
|
227 |
if (empty($footer_back_color)) {
|
228 |
$footer_back_color = '#151515';
|
229 |
+
}
|
230 |
+
if (empty($footer_hdbg_color)) {
|
231 |
+
$footer_hdbg_color = '#aaaaaa';
|
232 |
+
}
|
233 |
+
if (empty($footer_text_color)) {
|
234 |
+
$footer_text_color = '#eeeeee';
|
235 |
+
}
|
236 |
+
if (empty($footer_link_color)) {
|
237 |
+
$footer_link_color = '#ffffff';
|
238 |
+
}
|
239 |
+
if (empty($footer_brdr_color)) {
|
240 |
+
$footer_brdr_color = '#3c3c3c';
|
241 |
+
}
|
242 |
+
if (empty($footer_cpr_color)) {
|
243 |
+
$footer_cpr_color = '#ffffff';
|
244 |
+
}
|
245 |
+
if (empty($footer_pwrd_color)) {
|
246 |
+
$footer_pwrd_color = '#666666';
|
247 |
+
}
|
248 |
+
?>
|
249 |
+
#footer{ background: <?php echo ampforwp_sanitize_color($footer_back_color);?>; color: <?php echo ampforwp_sanitize_color($footer_text_color);?>; font-size: 13px; text-align: center; letter-spacing: 0.2px; padding: 35px 0 35px 0; margin-top: 30px; }
|
250 |
+
#footer a{ color:<?php echo ampforwp_sanitize_color( $footer_link_color ); ?>; }
|
251 |
#footer p:first-child{ margin-bottom: 12px; }
|
252 |
+
#footer .social_icons{ margin: 0px 20px 25px 20px; border-bottom: 1px solid <?php echo ampforwp_sanitize_color($footer_brdr_color);?>; padding-bottom: 25px; }
|
253 |
#footer p{ margin: 0 }
|
254 |
.back-to-top{padding-bottom: 8px;}
|
255 |
+
.rightslink, #footer .rightslink a{ font-size:13px; color: <?php echo ampforwp_sanitize_color($footer_cpr_color);?>; }
|
256 |
.poweredby{ padding-top:10px; font-size:10px; }
|
257 |
+
#footer .poweredby a{ color:<?php echo ampforwp_sanitize_color( $footer_pwrd_color ); ?>; }
|
258 |
.footer_menu ul{ list-style-type: none; padding: 0; text-align: center; margin: 0px 20px 25px 20px; line-height: 27px; font-size: 13px }
|
259 |
.footer_menu ul li{ display:inline; margin:0 10px; }
|
260 |
.footer_menu ul li:first-child{ margin-left:0 }
|
469 |
.icono-share:after, .icono-share:before{ position: absolute; width: 24px; height: 1px; box-shadow: inset 0 0 0 32px; left: 0; }
|
470 |
.icono-share:before{ top: 0px; -webkit-transform: rotate(-25deg); -ms-transform: rotate(-25deg); transform: rotate(-25deg); }
|
471 |
.icono-share:after{ top: 8px; -webkit-transform: rotate(25deg); -ms-transform: rotate(25deg); transform: rotate(25deg); }
|
472 |
+
<?php if( true == ampforwp_get_setting('amp-design-1-search-feature') ) { ?>
|
473 |
.icono-search{ border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
|
474 |
.icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
|
475 |
.closebutton{ background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 30px; width: 32px; height: 32px; font-size: 12px; text-align: center; position: absolute; top: 12px; right: 20px; outline:none }
|
478 |
.searchform{ background: transparent; left: 20%; position: absolute; top: 35%; width: 60%; max-width: 100%; transition-delay: 0.5s; }
|
479 |
.searchform input{ background: transparent; border: 1px solid #666; color: #f7f7f7; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: 0.3px; text-transform: capitalize; padding: 20px 0px 20px 30px; margin-top: 15px; width: 100%; }
|
480 |
#searchsubmit{opacity:0}
|
481 |
+
<?php } // search condition ends ?>
|
482 |
.featured_time{ font-size: 12px; color: #fff; opacity: 0.8; padding-left: 20px; }
|
483 |
.archives_body main{ margin-top:20px }
|
484 |
.taxonomy-description p{margin-top: 5px;font-size: 14px;line-height: 1.5;}
|
922 |
.footnote_container_prepare p span:last-child {
|
923 |
display:none;
|
924 |
}
|
925 |
+
<?php } ?>
|
926 |
+
<?php // Footer Widget Satyling
|
927 |
+
if ( is_active_sidebar( 'swift-footer-widget-area' ) ) : ?>
|
928 |
+
.f-w-blk {
|
929 |
+
max-width: 1100px;
|
930 |
+
margin:0 auto;
|
931 |
+
border-bottom: 1px solid <?php echo ampforwp_sanitize_color($footer_brdr_color);?>;
|
932 |
+
margin-bottom: 30px;
|
933 |
+
}
|
934 |
+
.d3f-w .w-bl h4 {
|
935 |
+
font-size: 12px;
|
936 |
+
font-weight: 500;
|
937 |
+
margin:0px 0px 20px;
|
938 |
+
text-transform: uppercase;
|
939 |
+
letter-spacing: 1px;
|
940 |
+
padding-bottom: 4px;
|
941 |
+
color:<?php echo ampforwp_sanitize_color( $footer_hdbg_color ); ?>
|
942 |
+
}
|
943 |
+
.d3f-w .w-bl ul{
|
944 |
+
margin:0;
|
945 |
+
padding:0;
|
946 |
+
}
|
947 |
+
.d3f-w .w-bl ul li {
|
948 |
+
list-style-type: none;
|
949 |
+
margin-bottom: 15px;
|
950 |
+
}
|
951 |
+
.d3f-w {
|
952 |
+
display: inline-flex;
|
953 |
+
width: 100%;
|
954 |
+
flex-wrap: wrap;
|
955 |
+
text-align: left;
|
956 |
+
}
|
957 |
+
.d3f-w .w-bl {
|
958 |
+
display: flex;
|
959 |
+
flex-direction: column;
|
960 |
+
position: relative;
|
961 |
+
flex: 1 0 22%;
|
962 |
+
margin: 0 15px 30px;
|
963 |
+
line-height: 1.5;
|
964 |
+
font-size: 14px;
|
965 |
+
}
|
966 |
+
@media (max-width: 1000px){
|
967 |
+
.f-w-blk{
|
968 |
+
max-width:100%;
|
969 |
+
padding:0px 10px;
|
970 |
+
}
|
971 |
+
.d3f-w .f-w {
|
972 |
+
margin: 0;
|
973 |
+
}
|
974 |
+
.d3f-w .w-bl{
|
975 |
+
flex: 1 0 18%;
|
976 |
+
margin:0px 10px 20px;
|
977 |
+
}
|
978 |
+
}
|
979 |
+
@media (max-width: 480px){
|
980 |
+
.d3f-w .w-bl {
|
981 |
+
flex: 100%;
|
982 |
+
}
|
983 |
+
}
|
984 |
+
<?php endif; ?>
|
985 |
+
<?php // Notification CSS
|
986 |
+
if( ampforwp_get_setting('amp-enable-notifications') && ampforwp_get_setting('enable-single-social-icons') && is_single() ) { ?>
|
987 |
+
amp-user-notification{
|
988 |
+
bottom:41px;
|
989 |
+
z-index: 999999;
|
990 |
+
}
|
991 |
+
<?php } //amp-enable-notifications Condition Ends Here ?>
|
@@ -3,8 +3,14 @@
|
|
3 |
<?php
|
4 |
do_action( 'levelup_head');
|
5 |
if( !ampforwp_levelup_compatibility('hf_builder_head') ){
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
?>
|
7 |
-
<?php if($
|
8 |
<header class="header h_m h_m_1">
|
9 |
<?php do_action('ampforwp_header_top_design4'); ?>
|
10 |
<input type="checkbox" id="offcanvas-menu" class="tg" />
|
@@ -132,7 +138,7 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
|
|
132 |
<?php do_action('ampforwp_header_bottom_design4'); ?>
|
133 |
</header>
|
134 |
<?php } ?>
|
135 |
-
<?php if($
|
136 |
<header class="header-2 h_m h_m_1">
|
137 |
<?php do_action('ampforwp_header_top_design4'); ?>
|
138 |
<input type="checkbox" id="offcanvas-menu" class="tg" />
|
@@ -252,7 +258,7 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
|
|
252 |
<?php do_action('ampforwp_header_bottom_design4'); ?>
|
253 |
</header>
|
254 |
<?php } ?>
|
255 |
-
<?php if($
|
256 |
<header class="header-3 h_m h_m_1">
|
257 |
<?php do_action('ampforwp_header_top_design4'); ?>
|
258 |
<input type="checkbox" id="offcanvas-menu" class="tg" />
|
3 |
<?php
|
4 |
do_action( 'levelup_head');
|
5 |
if( !ampforwp_levelup_compatibility('hf_builder_head') ){
|
6 |
+
$header_type = ampforwp_get_setting('header-type');
|
7 |
+
if(!defined('AMPFORWP_LAYOUTS_FILE')){
|
8 |
+
if( !in_array($header_type,array(1,2,3,10)) ) {
|
9 |
+
$header_type = 1;
|
10 |
+
}
|
11 |
+
}
|
12 |
?>
|
13 |
+
<?php if($header_type == '1'){?>
|
14 |
<header class="header h_m h_m_1">
|
15 |
<?php do_action('ampforwp_header_top_design4'); ?>
|
16 |
<input type="checkbox" id="offcanvas-menu" class="tg" />
|
138 |
<?php do_action('ampforwp_header_bottom_design4'); ?>
|
139 |
</header>
|
140 |
<?php } ?>
|
141 |
+
<?php if($header_type == '2'){?>
|
142 |
<header class="header-2 h_m h_m_1">
|
143 |
<?php do_action('ampforwp_header_top_design4'); ?>
|
144 |
<input type="checkbox" id="offcanvas-menu" class="tg" />
|
258 |
<?php do_action('ampforwp_header_bottom_design4'); ?>
|
259 |
</header>
|
260 |
<?php } ?>
|
261 |
+
<?php if($header_type == '3'){?>
|
262 |
<header class="header-3 h_m h_m_1">
|
263 |
<?php do_action('ampforwp_header_top_design4'); ?>
|
264 |
<input type="checkbox" id="offcanvas-menu" class="tg" />
|
@@ -28,8 +28,11 @@
|
|
28 |
<?php amp_loop_category(); ?>
|
29 |
<?php amp_loop_title(); ?>
|
30 |
<div class="at-dt">
|
31 |
-
<?php
|
32 |
-
|
|
|
|
|
|
|
33 |
array('author_pub_name'=>true,)
|
34 |
); ?>
|
35 |
</div>
|
@@ -58,9 +61,11 @@
|
|
58 |
<?php if( ampforwp_check_excerpt() ) {
|
59 |
amp_loop_excerpt(ampforwp_get_setting('amp-swift-excerpt-len'));
|
60 |
} ?>
|
|
|
61 |
<div class="pt-dt">
|
62 |
<?php amp_loop_date(); ?>
|
63 |
</div>
|
|
|
64 |
</div>
|
65 |
</div>
|
66 |
<?php } $i++; ?>
|
28 |
<?php amp_loop_category(); ?>
|
29 |
<?php amp_loop_title(); ?>
|
30 |
<div class="at-dt">
|
31 |
+
<?php
|
32 |
+
if( true == ampforwp_get_setting('amforwp-homepage-date-switch')){ amp_loop_date();
|
33 |
+
}
|
34 |
+
?>
|
35 |
+
<?php amp_author_box(
|
36 |
array('author_pub_name'=>true,)
|
37 |
); ?>
|
38 |
</div>
|
61 |
<?php if( ampforwp_check_excerpt() ) {
|
62 |
amp_loop_excerpt(ampforwp_get_setting('amp-swift-excerpt-len'));
|
63 |
} ?>
|
64 |
+
<?php if( true == ampforwp_get_setting('amforwp-homepage-date-switch')){?>
|
65 |
<div class="pt-dt">
|
66 |
<?php amp_loop_date(); ?>
|
67 |
</div>
|
68 |
+
<?php }?>
|
69 |
</div>
|
70 |
</div>
|
71 |
<?php } $i++; ?>
|
@@ -21,4 +21,5 @@ $search_found = true; ?>
|
|
21 |
</div>
|
22 |
</div>
|
23 |
</div>
|
24 |
-
<?php endwhile; amp_loop('end'); ?>
|
|
21 |
</div>
|
22 |
</div>
|
23 |
</div>
|
24 |
+
<?php endwhile; amp_loop('end'); ?>
|
25 |
+
<?php do_action('ampforwp_loop_before_pagination') ?>
|
@@ -16,10 +16,12 @@
|
|
16 |
<?php } ?>
|
17 |
</div>
|
18 |
<?php if ( ampforwp_get_setting('swift-featued-image') && ampforwp_has_post_thumbnail() ) { ?>
|
|
|
19 |
<div class="sf-img">
|
20 |
<?php amp_featured_image();?>
|
21 |
</div>
|
22 |
-
|
|
|
23 |
} ?>
|
24 |
<div class="sp-cnt">
|
25 |
<div class="cntr">
|
@@ -32,6 +34,13 @@
|
|
32 |
echo ampforwp_addThis_support();
|
33 |
} ?>
|
34 |
<div class="cntn-wrp artl-cnt">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
<?php amp_content(); ?>
|
36 |
</div>
|
37 |
<?php if (isset($redux_builder_amp['swift-social-position']) && 'below-content' == $redux_builder_amp['swift-social-position']){
|
@@ -226,9 +235,11 @@ do_action("ampforwp_single_design_type_handle_d1");
|
|
226 |
<?php amp_loop_category(); ?>
|
227 |
<?php amp_loop_title(); ?>
|
228 |
<?php amp_loop_excerpt(20); ?>
|
229 |
-
|
230 |
-
|
231 |
-
|
|
|
|
|
232 |
</div>
|
233 |
</div>
|
234 |
<?php endwhile; amp_loop('end'); ?>
|
@@ -393,7 +404,7 @@ do_action("ampforwp_single_design_type_handle_d1");
|
|
393 |
<a class="s_ym" target="_blank" href="http://www.yummly.com/urb/verify?url=<?php the_permalink(); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&yumtype=button"></a>
|
394 |
</li>
|
395 |
<?php } ?>
|
396 |
-
<?php if(
|
397 |
<li>
|
398 |
<amp-facebook-like width=90 height=28
|
399 |
layout="fixed"
|
@@ -494,9 +505,11 @@ do_action("ampforwp_single_design_type_handle_d1");
|
|
494 |
<?php amp_loop_category(); ?>
|
495 |
<?php amp_loop_title(); ?>
|
496 |
<?php amp_loop_excerpt(20); ?>
|
497 |
-
|
498 |
-
|
499 |
-
|
|
|
|
|
500 |
</div>
|
501 |
</div>
|
502 |
<?php endwhile; amp_loop('end'); ?>
|
16 |
<?php } ?>
|
17 |
</div>
|
18 |
<?php if ( ampforwp_get_setting('swift-featued-image') && ampforwp_has_post_thumbnail() ) { ?>
|
19 |
+
<?php if ( ampforwp_get_setting('swift-featued-image-type') == 1) { ?>
|
20 |
<div class="sf-img">
|
21 |
<?php amp_featured_image();?>
|
22 |
</div>
|
23 |
+
<?php } // Swift Featured Image Type 1
|
24 |
+
}
|
25 |
} ?>
|
26 |
<div class="sp-cnt">
|
27 |
<div class="cntr">
|
34 |
echo ampforwp_addThis_support();
|
35 |
} ?>
|
36 |
<div class="cntn-wrp artl-cnt">
|
37 |
+
<?php if ( ampforwp_get_setting('swift-featued-image') && ampforwp_has_post_thumbnail() ) { ?>
|
38 |
+
<?php if ( ampforwp_get_setting('swift-featued-image-type') == 2) { ?>
|
39 |
+
<div class="sf-img">
|
40 |
+
<?php amp_featured_image();?>
|
41 |
+
</div>
|
42 |
+
<?php } // Swift Featured Image Type 2
|
43 |
+
} // Swift Featured Image ?>
|
44 |
<?php amp_content(); ?>
|
45 |
</div>
|
46 |
<?php if (isset($redux_builder_amp['swift-social-position']) && 'below-content' == $redux_builder_amp['swift-social-position']){
|
235 |
<?php amp_loop_category(); ?>
|
236 |
<?php amp_loop_title(); ?>
|
237 |
<?php amp_loop_excerpt(20); ?>
|
238 |
+
<?php if( true == ampforwp_get_setting('amforwp-recentpost-date-switch')){?>
|
239 |
+
<div class="pt-dt">
|
240 |
+
<?php amp_loop_date(); ?>
|
241 |
+
</div>
|
242 |
+
<?php }?>
|
243 |
</div>
|
244 |
</div>
|
245 |
<?php endwhile; amp_loop('end'); ?>
|
404 |
<a class="s_ym" target="_blank" href="http://www.yummly.com/urb/verify?url=<?php the_permalink(); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&yumtype=button"></a>
|
405 |
</li>
|
406 |
<?php } ?>
|
407 |
+
<?php if(ampforwp_get_setting('ampforwp-facebook-like-button')){ s?>
|
408 |
<li>
|
409 |
<amp-facebook-like width=90 height=28
|
410 |
layout="fixed"
|
505 |
<?php amp_loop_category(); ?>
|
506 |
<?php amp_loop_title(); ?>
|
507 |
<?php amp_loop_excerpt(20); ?>
|
508 |
+
<?php if( true == ampforwp_get_setting('amforwp-recentpost-date-switch')){?>
|
509 |
+
<div class="pt-dt">
|
510 |
+
<?php amp_loop_date(); ?>
|
511 |
+
</div>
|
512 |
+
<?php }?>
|
513 |
</div>
|
514 |
</div>
|
515 |
<?php endwhile; amp_loop('end'); ?>
|
@@ -1,6 +1,14 @@
|
|
1 |
<?php global $redux_builder_amp;
|
2 |
$font_content = '';
|
3 |
$font_content = ampforwp_get_setting('amp_font_selector_content_single');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
$ampforwp_font_icon = ampforwp_get_setting('ampforwp_font_icon');
|
5 |
if ( empty($ampforwp_font_icon) ) {
|
6 |
$ampforwp_font_icon = 'swift-icons';
|
@@ -80,7 +88,7 @@ header .cntr{
|
|
80 |
}
|
81 |
<?php if($redux_builder_amp['amp-sticky-header'] == '1'){?>
|
82 |
.h_m{position:fixed;z-index:999;top:0px;width: 100vw;display:inline-block;
|
83 |
-
<?php if($
|
84 |
<?php if(ampforwp_get_setting('swift-border-line-control')){?>border-bottom: <?php echo esc_html(ampforwp_get_setting('swift-border-line-control')) ?>px solid;<?php } ?>
|
85 |
<?php if($redux_builder_amp['swift-border-color-control']['rgba']){?>border-color:<?php echo ampforwp_sanitize_color($redux_builder_amp['swift-border-color-control'] ['rgba']) ?>;<?php } ?>
|
86 |
<?php if($redux_builder_amp['swift-boxshadow-checkbox-control']){?>box-shadow:0px 0px 2px 2px #ccc;<?php }?>
|
@@ -91,7 +99,7 @@ header .cntr{
|
|
91 |
<?php } else{ ?>
|
92 |
.h_m{
|
93 |
position: static;
|
94 |
-
<?php if($
|
95 |
<?php if($redux_builder_amp['swift-border-line-control']){?>border-bottom: <?php echo esc_html($redux_builder_amp['swift-border-line-control']) ?>px solid;<?php } ?>
|
96 |
<?php if($redux_builder_amp['swift-border-color-control']['rgba']){?>border-color:<?php echo ampforwp_sanitize_color($redux_builder_amp['swift-border-color-control'] ['rgba']) ?>;<?php } ?>
|
97 |
<?php if($redux_builder_amp['swift-boxshadow-checkbox-control']){?>box-shadow:0px 0px 2px 2px #ccc;<?php }?>
|
@@ -148,7 +156,7 @@ $callnowcolor = ampforwp_get_setting('amp-opt-color-rgba-colorscheme-call');
|
|
148 |
<?php //header-type-1
|
149 |
|
150 |
|
151 |
-
if($
|
152 |
.logo{z-index: 2;flex-grow: 1;align-self: center;text-align:center;line-height:0;}
|
153 |
.h-1{display:flex;order:1;}
|
154 |
.h-nav{order: -1;align-self: center;}
|
@@ -156,7 +164,7 @@ if($redux_builder_amp['header-type'] == '1'){?>
|
|
156 |
<?php } ?>
|
157 |
<?php //hyder-type-2
|
158 |
|
159 |
-
if($
|
160 |
.h-logo{order:-1;align-self: center;flex-grow:1;text-align:center;}
|
161 |
.h-2{order: 1;justify-content: flex-end;display: flex;}
|
162 |
.h-nav{order: -1;align-self: center;}
|
@@ -167,7 +175,7 @@ if($redux_builder_amp['header-type'] == '2'){?>
|
|
167 |
<?php } ?>
|
168 |
<?php //header-type-3
|
169 |
|
170 |
-
if($
|
171 |
.h-logo{order:-1;align-self: center;z-index:2;}
|
172 |
.h-nav{order:0;align-self: center;margin:0px 0px 0px 10px;}
|
173 |
.h-srch a:after{position:relative;left:5px;}
|
@@ -425,6 +433,7 @@ echo $fontFamily;
|
|
425 |
.fsp-cnt{width:100%;float:none;padding: 0px 15px 0px 14px;}
|
426 |
.fsp{border:none; padding:0;}
|
427 |
.fbp-cnt{margin:0;padding:12px;}
|
|
|
428 |
}
|
429 |
@media(max-width:425px){
|
430 |
.hmp .loop-wrapper {margin: 0;}
|
@@ -546,9 +555,23 @@ p.nocomments {padding: 10px;color: #fff;}
|
|
546 |
.amp-category span:last-child:after{display:none;}
|
547 |
.sp{width:100%;margin-top:20px;display:inline-block;}
|
548 |
.amp-post-title{font-size:48px;line-height:58px;color: #333;margin:0;padding-top:15px;}
|
549 |
-
.sf-img {width: 100%;display: inline-block;height: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
550 |
.sf-img figure{margin:0;}
|
551 |
-
.sf-img .wp-caption-text{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
552 |
.sf-img .wp-caption-text:before{
|
553 |
<?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
|
554 |
content:"\e412";font-family: 'icomoon';font-size:24px;
|
@@ -862,7 +885,13 @@ if ( true == ampforwp_get_setting('ampforwp-disqus-comments-support') ) {?>
|
|
862 |
.rlp-cnt {width: 100%;float: none;}
|
863 |
.amp-post-title {font-size: 32px;line-height: 44px;}
|
864 |
.amp-category span a {font-size: 12px;}
|
865 |
-
.sf-img{
|
|
|
|
|
|
|
|
|
|
|
|
|
866 |
.sp{margin-top: 20px;}
|
867 |
.menu-btn a{padding:10px 20px;font-size:14px;}
|
868 |
.next, .prev{float: none;width: 100%;}
|
@@ -1261,6 +1290,27 @@ if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
|
1261 |
.amp-sidebar ul li a:hover, .calendar_wrap a:hover{
|
1262 |
box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 <?php echo ampforwp_sanitize_color($swift_cs_color) ?>;
|
1263 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1264 |
.sgl .calendar_wrap td{
|
1265 |
padding:10px;
|
1266 |
}
|
@@ -1600,6 +1650,18 @@ if(ampforwp_get_setting('enable-single-facebook-share-messenger')){?>
|
|
1600 |
.s_fb_ms:after{content: "\e935";}
|
1601 |
<?php }
|
1602 |
if($redux_builder_amp['enable-single-twitter-share'] || $redux_builder_amp['enbl-tw']){?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1603 |
.s_tw{background:#1da1f2;}
|
1604 |
.s_tw:after{
|
1605 |
<?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
|
@@ -2107,4 +2169,10 @@ if(class_exists('MCI_Footnotes')){ ?>
|
|
2107 |
.footnote_container_prepare p span:last-child {
|
2108 |
display:none;
|
2109 |
}
|
2110 |
-
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php global $redux_builder_amp;
|
2 |
$font_content = '';
|
3 |
$font_content = ampforwp_get_setting('amp_font_selector_content_single');
|
4 |
+
$header_type = ampforwp_get_setting('header-type');
|
5 |
+
$header_bg_color = ampforwp_get_setting('swift-background-scheme','color');
|
6 |
+
if(!defined('AMPFORWP_LAYOUTS_FILE')){
|
7 |
+
if( !in_array($header_type, array(1,2,3,10)) ){
|
8 |
+
$header_type = 1;
|
9 |
+
$header_bg_color = 'rgba(255,255,255,1)';
|
10 |
+
}
|
11 |
+
}
|
12 |
$ampforwp_font_icon = ampforwp_get_setting('ampforwp_font_icon');
|
13 |
if ( empty($ampforwp_font_icon) ) {
|
14 |
$ampforwp_font_icon = 'swift-icons';
|
88 |
}
|
89 |
<?php if($redux_builder_amp['amp-sticky-header'] == '1'){?>
|
90 |
.h_m{position:fixed;z-index:999;top:0px;width: 100vw;display:inline-block;
|
91 |
+
<?php if($header_bg_color){?>background: <?php echo ampforwp_sanitize_color($header_bg_color); ?>;<?php }?>
|
92 |
<?php if(ampforwp_get_setting('swift-border-line-control')){?>border-bottom: <?php echo esc_html(ampforwp_get_setting('swift-border-line-control')) ?>px solid;<?php } ?>
|
93 |
<?php if($redux_builder_amp['swift-border-color-control']['rgba']){?>border-color:<?php echo ampforwp_sanitize_color($redux_builder_amp['swift-border-color-control'] ['rgba']) ?>;<?php } ?>
|
94 |
<?php if($redux_builder_amp['swift-boxshadow-checkbox-control']){?>box-shadow:0px 0px 2px 2px #ccc;<?php }?>
|
99 |
<?php } else{ ?>
|
100 |
.h_m{
|
101 |
position: static;
|
102 |
+
<?php if($header_bg_color){?>background: <?php echo ampforwp_sanitize_color($header_bg_color); ?>;<?php }?>
|
103 |
<?php if($redux_builder_amp['swift-border-line-control']){?>border-bottom: <?php echo esc_html($redux_builder_amp['swift-border-line-control']) ?>px solid;<?php } ?>
|
104 |
<?php if($redux_builder_amp['swift-border-color-control']['rgba']){?>border-color:<?php echo ampforwp_sanitize_color($redux_builder_amp['swift-border-color-control'] ['rgba']) ?>;<?php } ?>
|
105 |
<?php if($redux_builder_amp['swift-boxshadow-checkbox-control']){?>box-shadow:0px 0px 2px 2px #ccc;<?php }?>
|
156 |
<?php //header-type-1
|
157 |
|
158 |
|
159 |
+
if($header_type == '1'){?>
|
160 |
.logo{z-index: 2;flex-grow: 1;align-self: center;text-align:center;line-height:0;}
|
161 |
.h-1{display:flex;order:1;}
|
162 |
.h-nav{order: -1;align-self: center;}
|
164 |
<?php } ?>
|
165 |
<?php //hyder-type-2
|
166 |
|
167 |
+
if($header_type == '2'){?>
|
168 |
.h-logo{order:-1;align-self: center;flex-grow:1;text-align:center;}
|
169 |
.h-2{order: 1;justify-content: flex-end;display: flex;}
|
170 |
.h-nav{order: -1;align-self: center;}
|
175 |
<?php } ?>
|
176 |
<?php //header-type-3
|
177 |
|
178 |
+
if($header_type == '3'){?>
|
179 |
.h-logo{order:-1;align-self: center;z-index:2;}
|
180 |
.h-nav{order:0;align-self: center;margin:0px 0px 0px 10px;}
|
181 |
.h-srch a:after{position:relative;left:5px;}
|
433 |
.fsp-cnt{width:100%;float:none;padding: 0px 15px 0px 14px;}
|
434 |
.fsp{border:none; padding:0;}
|
435 |
.fbp-cnt{margin:0;padding:12px;}
|
436 |
+
.tg:checked + .hamb-mnu > .m-ctr .c-btn{ position:fixed; right:5px; top:35px; }
|
437 |
}
|
438 |
@media(max-width:425px){
|
439 |
.hmp .loop-wrapper {margin: 0;}
|
555 |
.amp-category span:last-child:after{display:none;}
|
556 |
.sp{width:100%;margin-top:20px;display:inline-block;}
|
557 |
.amp-post-title{font-size:48px;line-height:58px;color: #333;margin:0;padding-top:15px;}
|
558 |
+
.sf-img {width: 100%;display: inline-block;height: auto;
|
559 |
+
<?php if ( ampforwp_get_setting('swift-featued-image-type') == 1) { ?>
|
560 |
+
margin-top: 33px;
|
561 |
+
<?php }
|
562 |
+
if ( ampforwp_get_setting('swift-featued-image-type') == 2) { ?>
|
563 |
+
margin-bottom: 33px;
|
564 |
+
<?php } ?>
|
565 |
+
}
|
566 |
.sf-img figure{margin:0;}
|
567 |
+
.sf-img .wp-caption-text{
|
568 |
+
<?php if ( ampforwp_get_setting('swift-featued-image-type') == 1) { ?>
|
569 |
+
width: 1100px;
|
570 |
+
<?php }
|
571 |
+
if ( ampforwp_get_setting('swift-featued-image-type') == 2) { ?>
|
572 |
+
width:100%;
|
573 |
+
<?php } ?>
|
574 |
+
text-align: left;margin: 0 auto;color: #a1a1a1;font-size: 14px;line-height:20px;font-weight: 500;border-bottom: 1px solid #ccc;padding: 15px 0px;}
|
575 |
.sf-img .wp-caption-text:before{
|
576 |
<?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
|
577 |
content:"\e412";font-family: 'icomoon';font-size:24px;
|
885 |
.rlp-cnt {width: 100%;float: none;}
|
886 |
.amp-post-title {font-size: 32px;line-height: 44px;}
|
887 |
.amp-category span a {font-size: 12px;}
|
888 |
+
.sf-img{
|
889 |
+
<?php if ( ampforwp_get_setting('swift-featued-image-type') == 1 ) { ?>
|
890 |
+
margin-top:20px;
|
891 |
+
<?php }
|
892 |
+
if ( ampforwp_get_setting('swift-featued-image-type') == 2 ) { ?>
|
893 |
+
margin-bottom:20px;
|
894 |
+
<?php } ?>}
|
895 |
.sp{margin-top: 20px;}
|
896 |
.menu-btn a{padding:10px 20px;font-size:14px;}
|
897 |
.next, .prev{float: none;width: 100%;}
|
1290 |
.amp-sidebar ul li a:hover, .calendar_wrap a:hover{
|
1291 |
box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 <?php echo ampforwp_sanitize_color($swift_cs_color) ?>;
|
1292 |
}
|
1293 |
+
.amp-sidebar form{
|
1294 |
+
display:inline-flex;
|
1295 |
+
flex-wrap:wrap;
|
1296 |
+
align-items: center;
|
1297 |
+
}
|
1298 |
+
.amp-sidebar .search-submit{
|
1299 |
+
text-indent: -9999px;
|
1300 |
+
padding: 0;
|
1301 |
+
margin: 0;
|
1302 |
+
background: transparent;
|
1303 |
+
line-height: 0;
|
1304 |
+
display: inline-block;
|
1305 |
+
opacity: 0;
|
1306 |
+
}
|
1307 |
+
.amp-sidebar .hide{
|
1308 |
+
display: none;
|
1309 |
+
}
|
1310 |
+
.amp-sidebar .search-field{
|
1311 |
+
border: 1px solid #ccc;
|
1312 |
+
padding: 6px 10px;
|
1313 |
+
}
|
1314 |
.sgl .calendar_wrap td{
|
1315 |
padding:10px;
|
1316 |
}
|
1650 |
.s_fb_ms:after{content: "\e935";}
|
1651 |
<?php }
|
1652 |
if($redux_builder_amp['enable-single-twitter-share'] || $redux_builder_amp['enbl-tw']){?>
|
1653 |
+
<?php if(function_exists('mvp_setup')){?>
|
1654 |
+
.zox_tw:after{ <?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
|
1655 |
+
content: "\e942";
|
1656 |
+
font-family: 'icomoon';
|
1657 |
+
<?php }?>
|
1658 |
+
<?php if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
|
1659 |
+
content:"\f099";
|
1660 |
+
font-family:"Font Awesome 5 Brands";
|
1661 |
+
<?php } ?>
|
1662 |
+
color: #1da1f2;
|
1663 |
+
}
|
1664 |
+
<?php } ?>
|
1665 |
.s_tw{background:#1da1f2;}
|
1666 |
.s_tw:after{
|
1667 |
<?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
|
2169 |
.footnote_container_prepare p span:last-child {
|
2170 |
display:none;
|
2171 |
}
|
2172 |
+
<?php } ?>
|
2173 |
+
<?php // Notification CSS
|
2174 |
+
if( ampforwp_get_setting('amp-enable-notifications') && ampforwp_get_setting('enable-single-social-icons') && is_single() ) { ?>
|
2175 |
+
amp-user-notification{
|
2176 |
+
bottom:40px;
|
2177 |
+
}
|
2178 |
+
<?php } //amp-enable-notifications Condition Ends Here ?>
|
@@ -588,7 +588,7 @@ function ampforwp_new_dir( $dir ) {
|
|
588 |
if ( is_page() && isset($redux_builder_amp['ampforwp-page-social']) && $redux_builder_amp['ampforwp-page-social'] ) {
|
589 |
$social_check_page = true;
|
590 |
}
|
591 |
-
if (
|
592 |
$social_check = true;
|
593 |
}
|
594 |
if ( '4' !== ampforwp_get_setting('amp-design-selector') && defined('AMPFORWP_DM_SOCIAL_CHECK') && 'true' === AMPFORWP_DM_SOCIAL_CHECK ) {
|
@@ -606,7 +606,7 @@ function ampforwp_new_dir( $dir ) {
|
|
606 |
$fb_like = false;
|
607 |
$isBBPress = (function_exists('is_bbpress') ? is_bbpress() : false );
|
608 |
if ( true == ampforwp_get_setting('ampforwp-facebook-like-button') ){
|
609 |
-
if ( is_single() && (true == ampforwp_get_setting('enable-single-social-icons') ||
|
610 |
$fb_like = true;
|
611 |
}
|
612 |
if ( is_page() && ( true == ampforwp_get_setting('ampforwp-page-sticky-social') || ( $social_check_page && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) ) ) {
|
@@ -1181,6 +1181,11 @@ function ampforwp_remove_schema_data() {
|
|
1181 |
//remove filter for Impreza theme lazyload feature
|
1182 |
remove_filter( 'the_content', 'us_filter_content_for_lazy_load', 99, 1 );
|
1183 |
|
|
|
|
|
|
|
|
|
|
|
1184 |
// Publisher theme lazy load #3063
|
1185 |
if( class_exists('Publisher') ){
|
1186 |
remove_filter( 'post_thumbnail_html', 'publisher_lazy_loading_img_tags', 6 );
|
@@ -1989,6 +1994,14 @@ function ampforwp_seopress_title_sanitize($title){
|
|
1989 |
$seopress_titles_title_template = str_replace($seopress_titles_template_variables_array, $seopress_titles_template_replace_array, $title);
|
1990 |
return $seopress_titles_title_template;
|
1991 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1992 |
function ampforwp_modify_archive_title( $title ) {
|
1993 |
if ( is_category() ) {
|
1994 |
$title = single_cat_title( '', false );
|
@@ -2644,20 +2657,26 @@ function ampforwp_modified_search_sidebar( $content ) {
|
|
2644 |
$amp_query_variable = 'amp';
|
2645 |
$amp_query_variable_val = '1';
|
2646 |
}
|
2647 |
-
$input = $dom->createElement('input');
|
2648 |
-
$input->setAttribute('type', 'text');
|
2649 |
-
$input->setAttribute('placeholder', 'AMP');
|
2650 |
-
$input->setAttribute('value', $amp_query_variable_val);
|
2651 |
-
$input->setAttribute('name', $amp_query_variable);
|
2652 |
-
$input->setAttribute('class', 'hide');
|
2653 |
-
$input->setAttribute('id', 'ampforwp_search_query_item');
|
2654 |
-
$element->appendChild($input);
|
2655 |
if ( ! $element->hasAttribute('action-xhr') ){
|
2656 |
$action_url = $element->getAttribute('action');
|
2657 |
$action_url = preg_replace('#^http?:#', '', $action_url);
|
2658 |
$element->setAttribute('action', $action_url);
|
2659 |
}
|
2660 |
$element->setAttribute('target', '_top');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2661 |
}
|
2662 |
}
|
2663 |
// Remove http/https from Audio and Video URLs #1400
|
@@ -4792,10 +4811,10 @@ if( ! function_exists( 'ampforwp_get_author_details' ) ){
|
|
4792 |
if ( function_exists('coauthors_posts_links') ) {
|
4793 |
return $post_author_url;
|
4794 |
}
|
4795 |
-
return '<a href="' . esc_url($post_author_url) . ' "><strong>' . esc_html( $post_author_name ) . '
|
4796 |
}
|
4797 |
else{
|
4798 |
-
return '<strong> ' . esc_html( $post_author_name) . '
|
4799 |
}
|
4800 |
break;
|
4801 |
}
|
@@ -5385,11 +5404,11 @@ function swifttheme_footer_widgets_init() {
|
|
5385 |
'before_title' => '<h4>',
|
5386 |
'after_title' => '</h4>',
|
5387 |
) );
|
5388 |
-
if(ampforwp_design_selector()==4){
|
5389 |
register_sidebar( array(
|
5390 |
'name' => esc_html__( 'AMP Footer', 'accelerated-mobile-pages' ),
|
5391 |
'id' => 'swift-footer-widget-area',
|
5392 |
-
'description' => esc_html__( '
|
5393 |
'class'=>'w-bl',
|
5394 |
'before_widget' => '<div class="w-bl">',
|
5395 |
'after_widget' => '</div>',
|
@@ -6395,7 +6414,7 @@ function ampforwp_add_global_scripts($data){
|
|
6395 |
}
|
6396 |
}
|
6397 |
// AddThis Support #3068
|
6398 |
-
if ( ampforwp_get_setting('enable-add-this-option') && ( is_single() || (is_page() && ampforwp_get_setting('ampforwp-page-social') ) ) && !ampforwp_woocommerce_conditional_check() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) {
|
6399 |
if ( empty( $data['amp_component_scripts']['amp-addthis'] ) ) {
|
6400 |
$data['amp_component_scripts']['amp-addthis'] = 'https://cdn.ampproject.org/v0/amp-addthis-0.1.js';
|
6401 |
}
|
@@ -6768,14 +6787,16 @@ function ampforwp_webp_featured_image() {
|
|
6768 |
add_filter('get_search_form', 'ampforwp_search_form');
|
6769 |
if ( ! function_exists('ampforwp_search_form') ) {
|
6770 |
function ampforwp_search_form($form){
|
6771 |
-
if ( ampforwp_is_amp_endpoint() ) {
|
6772 |
-
|
6773 |
-
|
6774 |
-
|
6775 |
-
|
6776 |
-
</
|
6777 |
-
<input type="
|
6778 |
-
</
|
|
|
|
|
6779 |
}
|
6780 |
return $form;
|
6781 |
}
|
588 |
if ( is_page() && isset($redux_builder_amp['ampforwp-page-social']) && $redux_builder_amp['ampforwp-page-social'] ) {
|
589 |
$social_check_page = true;
|
590 |
}
|
591 |
+
if ( 4 == ampforwp_get_setting('amp-design-selector') ) {
|
592 |
$social_check = true;
|
593 |
}
|
594 |
if ( '4' !== ampforwp_get_setting('amp-design-selector') && defined('AMPFORWP_DM_SOCIAL_CHECK') && 'true' === AMPFORWP_DM_SOCIAL_CHECK ) {
|
606 |
$fb_like = false;
|
607 |
$isBBPress = (function_exists('is_bbpress') ? is_bbpress() : false );
|
608 |
if ( true == ampforwp_get_setting('ampforwp-facebook-like-button') ){
|
609 |
+
if ( is_single() && ( true == ampforwp_get_setting('enable-single-social-icons') || $social_check ) && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && !$isBBPress) {
|
610 |
$fb_like = true;
|
611 |
}
|
612 |
if ( is_page() && ( true == ampforwp_get_setting('ampforwp-page-sticky-social') || ( $social_check_page && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) ) ) {
|
1181 |
//remove filter for Impreza theme lazyload feature
|
1182 |
remove_filter( 'the_content', 'us_filter_content_for_lazy_load', 99, 1 );
|
1183 |
|
1184 |
+
if( function_exists('rehub_framework_register_scripts')){
|
1185 |
+
remove_filter("ampforwp_template_locate", "rhampforwp_update_template_folder");
|
1186 |
+
remove_filter('amp_post_template_file', 'rehub_amp_delete_custom_title_section',11,3);
|
1187 |
+
}
|
1188 |
+
|
1189 |
// Publisher theme lazy load #3063
|
1190 |
if( class_exists('Publisher') ){
|
1191 |
remove_filter( 'post_thumbnail_html', 'publisher_lazy_loading_img_tags', 6 );
|
1994 |
$seopress_titles_title_template = str_replace($seopress_titles_template_variables_array, $seopress_titles_template_replace_array, $title);
|
1995 |
return $seopress_titles_title_template;
|
1996 |
}
|
1997 |
+
// Squirrly SEO Compatibility #3421
|
1998 |
+
add_filter('sq_current_post', 'ampforwp_sq_current_post');
|
1999 |
+
function ampforwp_sq_current_post($post){
|
2000 |
+
if ( 'squirrly' == ampforwp_get_setting('ampforwp-seo-selection') && ampforwp_is_amp_endpoint() && ( ampforwp_is_front_page() || ampforwp_is_blog() ) ){
|
2001 |
+
$post = get_post(ampforwp_get_the_ID());
|
2002 |
+
}
|
2003 |
+
return $post;
|
2004 |
+
}
|
2005 |
function ampforwp_modify_archive_title( $title ) {
|
2006 |
if ( is_category() ) {
|
2007 |
$title = single_cat_title( '', false );
|
2657 |
$amp_query_variable = 'amp';
|
2658 |
$amp_query_variable_val = '1';
|
2659 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2660 |
if ( ! $element->hasAttribute('action-xhr') ){
|
2661 |
$action_url = $element->getAttribute('action');
|
2662 |
$action_url = preg_replace('#^http?:#', '', $action_url);
|
2663 |
$element->setAttribute('action', $action_url);
|
2664 |
}
|
2665 |
$element->setAttribute('target', '_top');
|
2666 |
+
$input_nodes = $element->getElementsByTagName('input');
|
2667 |
+
if ( 0 !== $input_nodes->length ) {
|
2668 |
+
for ( $i = 0; $i < $input_nodes->length; ++$i ) {
|
2669 |
+
$input_node = $input_nodes->item( $i );
|
2670 |
+
if ( 'submit' !== $input_node->getAttribute('type') ) {
|
2671 |
+
$input_submit = $dom->createElement('input');
|
2672 |
+
$input_submit->setAttribute('type', 'submit');
|
2673 |
+
$input_submit->setAttribute('class', 'search-submit');
|
2674 |
+
}
|
2675 |
+
}
|
2676 |
+
if ( $input_submit ) {
|
2677 |
+
$element->appendChild($input_submit);
|
2678 |
+
}
|
2679 |
+
}
|
2680 |
}
|
2681 |
}
|
2682 |
// Remove http/https from Audio and Video URLs #1400
|
4811 |
if ( function_exists('coauthors_posts_links') ) {
|
4812 |
return $post_author_url;
|
4813 |
}
|
4814 |
+
return '<a href="' . esc_url($post_author_url) . ' "><strong>' . esc_html( $post_author_name ) . '</strong></a>: ';
|
4815 |
}
|
4816 |
else{
|
4817 |
+
return '<strong> ' . esc_html( $post_author_name) . '</strong>: ';
|
4818 |
}
|
4819 |
break;
|
4820 |
}
|
5404 |
'before_title' => '<h4>',
|
5405 |
'after_title' => '</h4>',
|
5406 |
) );
|
5407 |
+
if(ampforwp_design_selector()==4 || ampforwp_design_selector()==3 || ampforwp_design_selector()==2 || ampforwp_design_selector()==1){
|
5408 |
register_sidebar( array(
|
5409 |
'name' => esc_html__( 'AMP Footer', 'accelerated-mobile-pages' ),
|
5410 |
'id' => 'swift-footer-widget-area',
|
5411 |
+
'description' => esc_html__( 'The Footer widget area', 'accelerated-mobile-pages' ),
|
5412 |
'class'=>'w-bl',
|
5413 |
'before_widget' => '<div class="w-bl">',
|
5414 |
'after_widget' => '</div>',
|
6414 |
}
|
6415 |
}
|
6416 |
// AddThis Support #3068
|
6417 |
+
if ( ampforwp_get_setting('enable-add-this-option') && ( is_single() || (is_page() && ampforwp_get_setting('ampforwp-page-social') ) ) && !ampforwp_woocommerce_conditional_check() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && ( ampforwp_get_setting('addthis-floating-share') == true || ampforwp_get_setting('addthis-inline-share') == true)) {
|
6418 |
if ( empty( $data['amp_component_scripts']['amp-addthis'] ) ) {
|
6419 |
$data['amp_component_scripts']['amp-addthis'] = 'https://cdn.ampproject.org/v0/amp-addthis-0.1.js';
|
6420 |
}
|
6787 |
add_filter('get_search_form', 'ampforwp_search_form');
|
6788 |
if ( ! function_exists('ampforwp_search_form') ) {
|
6789 |
function ampforwp_search_form($form){
|
6790 |
+
if ( ampforwp_is_amp_endpoint() ) {
|
6791 |
+
$placeholder = ampforwp_translation(ampforwp_get_setting('ampforwp-search-placeholder'), 'Type Here' );
|
6792 |
+
$widgetlabel = ampforwp_translation(ampforwp_get_setting('ampforwp-search-widget-label'), 'Search for:' );
|
6793 |
+
$form = '<form role="search" method="get" id="searchform" class="search-form" action="' . esc_url( home_url( '/' ) ) . '" target="_top">
|
6794 |
+
<label>
|
6795 |
+
<span class="screen-reader-text">' . esc_html__( $widgetlabel, 'accelerated-mobile-pages' ) . '</span>
|
6796 |
+
<input type="text" value="" placeholder="' . esc_html__( $placeholder, 'accelerated-mobile-pages' ) . '" name="s" class="search-field">
|
6797 |
+
</label>
|
6798 |
+
<input type="text" placeholder="' . esc_html__( $placeholder, 'accelerated-mobile-pages' ) . '" value="1" name="amp" class="hide" id="ampforwp_search_query_item">
|
6799 |
+
</form>';
|
6800 |
}
|
6801 |
return $form;
|
6802 |
}
|