AMP for WP – Accelerated Mobile Pages - Version 1.0.54

Version Description

(25th June 2020) = * Fixed: Odnoklassniki sharing not working properly #4525 * Fixed: Post title is not appearing when a post is shared through Whatsapp #4513 * Fixed: Even after activating amp page builder compatibility we are getting this message this feature requires Page Builder For AMP extension. #4530 * Fixed: RedGIFs embeds break site #4422 * Fixed: Show notice when user is enabling option "sort related item randomly". #4535 * Fixed: The mandatory tag 'link rel=canonical' is missing or incorrect due to Yoast SEO premium plugin #4569 * Fixed: AMP homepage has a wrong canonical link. #4564 * Fixed: Yoast not working in rare scenario #4562 * Fixed: Meta title not pulled from YOAST in version 1.0.53.2 #4574 * Fixed: yoast breadcrumb links not redirecting to amp pages. #4566 * Fixed: Need to make comatibility with the wordpress embed block in guntenburg editor #4506 * Fixed: Custom Javascript added with orbital theme and it is showing a validation error on the AMP Pages #4539 * Fixed: robots.txt file is not generating when AMP takeover beta option is enabled. #4541 * Fixed: Need to add compatibility of the "Brightcove Video Connect" plugin. #4517 * Fixed: Debug Warning #4568 * Fixed: Comments are not displaying on Homepage (only in swift theme) #4571 * Fixed: The button CSS not appearing in the AMP added with the Gutenberg button module #4572

Download this release

Release Info

Developer mohammed_kaludi
Plugin Icon 128x128 AMP for WP – Accelerated Mobile Pages
Version 1.0.54
Comparing to
See all releases

Code changes from version 1.0.53.2 to 1.0.54

README.md CHANGED
@@ -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.4.2
7
- Stable tag: 1.0.53.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -193,6 +193,25 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  = 1.0.53.2 (21st June 2020) =
197
  * Fixed: Minor Bug
198
 
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.4.2
7
+ Stable tag: 1.0.54
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
193
 
194
  == Changelog ==
195
 
196
+ = 1.0.54 (25th June 2020) =
197
+ * Fixed: Odnoklassniki sharing not working properly #4525
198
+ * Fixed: Post title is not appearing when a post is shared through Whatsapp #4513
199
+ * Fixed: Even after activating amp page builder compatibility we are getting this message this feature requires Page Builder For AMP extension. #4530
200
+ * Fixed: RedGIFs embeds break site #4422
201
+ * Fixed: Show notice when user is enabling option "sort related item randomly". #4535
202
+ * Fixed: The mandatory tag 'link rel=canonical' is missing or incorrect due to Yoast SEO premium plugin #4569
203
+ * Fixed: AMP homepage has a wrong canonical link. #4564
204
+ * Fixed: Yoast not working in rare scenario #4562
205
+ * Fixed: Meta title not pulled from YOAST in version 1.0.53.2 #4574
206
+ * Fixed: yoast breadcrumb links not redirecting to amp pages. #4566
207
+ * Fixed: Need to make comatibility with the wordpress embed block in guntenburg editor #4506
208
+ * Fixed: Custom Javascript added with orbital theme and it is showing a validation error on the AMP Pages #4539
209
+ * Fixed: robots.txt file is not generating when AMP takeover beta option is enabled. #4541
210
+ * Fixed: Need to add compatibility of the "Brightcove Video Connect" plugin. #4517
211
+ * Fixed: Debug Warning #4568
212
+ * Fixed: Comments are not displaying on Homepage (only in swift theme) #4571
213
+ * Fixed: The button CSS not appearing in the AMP added with the Gutenberg button module #4572
214
+
215
  = 1.0.53.2 (21st June 2020) =
216
  * Fixed: Minor Bug
217
 
accelerated-moblie-pages.php CHANGED
@@ -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: 1.0.53.2
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','1.0.53.2');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
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: 1.0.54
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','1.0.54');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
changelog.txt CHANGED
@@ -1,5 +1,24 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 1.0.53.2 (21st June 2020) =
4
  * Fixed: Minor Bug
5
 
1
  == Changelog ==
2
 
3
+ = 1.0.54 (25th June 2020) =
4
+ * Fixed: Odnoklassniki sharing not working properly #4525
5
+ * Fixed: Post title is not appearing when a post is shared through Whatsapp #4513
6
+ * Fixed: Even after activating amp page builder compatibility we are getting this message this feature requires Page Builder For AMP extension. #4530
7
+ * Fixed: RedGIFs embeds break site #4422
8
+ * Fixed: Show notice when user is enabling option "sort related item randomly". #4535
9
+ * Fixed: The mandatory tag 'link rel=canonical' is missing or incorrect due to Yoast SEO premium plugin #4569
10
+ * Fixed: AMP homepage has a wrong canonical link. #4564
11
+ * Fixed: Yoast not working in rare scenario #4562
12
+ * Fixed: Meta title not pulled from YOAST in version 1.0.53.2 #4574
13
+ * Fixed: yoast breadcrumb links not redirecting to amp pages. #4566
14
+ * Fixed: Need to make comatibility with the wordpress embed block in guntenburg editor #4506
15
+ * Fixed: Custom Javascript added with orbital theme and it is showing a validation error on the AMP Pages #4539
16
+ * Fixed: robots.txt file is not generating when AMP takeover beta option is enabled. #4541
17
+ * Fixed: Need to add compatibility of the "Brightcove Video Connect" plugin. #4517
18
+ * Fixed: Debug Warning #4568
19
+ * Fixed: Comments are not displaying on Homepage (only in swift theme) #4571
20
+ * Fixed: The button CSS not appearing in the AMP added with the Gutenberg button module #4572
21
+
22
  = 1.0.53.2 (21st June 2020) =
23
  * Fixed: Minor Bug
24
 
includes/features/pagebuilders-support/pagebuilders_support.php CHANGED
@@ -4,7 +4,8 @@ if ( ! defined( 'ABSPATH' ) ) {
4
  exit;
5
  }
6
  function ampforwp_page_builders_support_options($opt_name){
7
- $divi_pb_for_ampchecker = $elemntr_pb_for_ampchecker = array();
 
8
  $divi_pb_for_ampchecker = array(
9
  'id' => 'divi_pb_for_amp_info_normal',
10
  'type' => 'info',
@@ -41,7 +42,7 @@ function ampforwp_page_builders_support_options($opt_name){
41
  ),
42
  'desc' => sprintf('<div style="background: #FFF9C4;padding: 12px;line-height: 1.6;margin: -45px -14px -18px -17px;"><b>%s</b> %s <a href="https://ampforwp.com/page-builder-compatibility-for-amp/" target="_blank">%s</a> extension.<br /> <div style="margin-top:4px;">(<a href="https://ampforwp.com/page-builder-compatibility-for-amp/" target="_blank">%s</a>)</div></div>',esc_html__( 'ONE LAST STEP REQUIRED:','accelerated-mobile-pages'),esc_html__( 'This feature requires', 'accelerated-mobile-pages' ),esc_html__( 'Page Builder compatibility For AMP', 'accelerated-mobile-pages'),esc_html__( 'Click here for more info', 'accelerated-mobile-pages' )),
43
  );
44
-
45
  $pb_for_amp[] = array(
46
  'id' => 'ampforwp-pagebuilder-accor',
47
  'type' => 'section',
4
  exit;
5
  }
6
  function ampforwp_page_builders_support_options($opt_name){
7
+ $divi_pb_for_ampchecker = $elemntr_pb_for_ampchecker = $avada_pb_for_ampchecker = $avia_pb_for_ampchecker = array();
8
+ if(!function_exists('amp_pagebuilder_compatibility_init')){
9
  $divi_pb_for_ampchecker = array(
10
  'id' => 'divi_pb_for_amp_info_normal',
11
  'type' => 'info',
42
  ),
43
  'desc' => sprintf('<div style="background: #FFF9C4;padding: 12px;line-height: 1.6;margin: -45px -14px -18px -17px;"><b>%s</b> %s <a href="https://ampforwp.com/page-builder-compatibility-for-amp/" target="_blank">%s</a> extension.<br /> <div style="margin-top:4px;">(<a href="https://ampforwp.com/page-builder-compatibility-for-amp/" target="_blank">%s</a>)</div></div>',esc_html__( 'ONE LAST STEP REQUIRED:','accelerated-mobile-pages'),esc_html__( 'This feature requires', 'accelerated-mobile-pages' ),esc_html__( 'Page Builder compatibility For AMP', 'accelerated-mobile-pages'),esc_html__( 'Click here for more info', 'accelerated-mobile-pages' )),
44
  );
45
+ }
46
  $pb_for_amp[] = array(
47
  'id' => 'ampforwp-pagebuilder-accor',
48
  'type' => 'section',
includes/options/admin-config.php CHANGED
@@ -6081,6 +6081,13 @@ $single_page_options = array(
6081
  array('ampforwp-single-related-posts-switch', '=' , '1'),
6082
  ),
6083
  ),
 
 
 
 
 
 
 
6084
  array(
6085
  'id' => 'ampforwp-number-of-related-posts',
6086
  'type' => 'text',
6081
  array('ampforwp-single-related-posts-switch', '=' , '1'),
6082
  ),
6083
  ),
6084
+ array(
6085
+ 'id' => 'ampforwp-sort-related-posts-randomly-notice',
6086
+ 'type' => 'info',
6087
+ 'style' => 'info',
6088
+ 'desc' => esc_html__('Enabling this might have some performance effects for sites who have large number of posts. Please use this with caution.', 'accelerated-mobile-pages'),
6089
+ 'required' => array('ampforwp-single-order-of-related-posts', '=', 1)
6090
+ ),
6091
  array(
6092
  'id' => 'ampforwp-number-of-related-posts',
6093
  'type' => 'text',
includes/redirect.php CHANGED
@@ -146,6 +146,12 @@ if(is_search() && 0 == ampforwp_get_setting('amp-redirection-search')){
146
  * If certain conditions does not match then return early and exit from redirection
147
  */
148
 
 
 
 
 
 
 
149
  // return if the current page is Feed page, as we don't need anything on feedpaged
150
  if ( is_feed() ) {
151
  return;
146
  * If certain conditions does not match then return early and exit from redirection
147
  */
148
 
149
+ // #4541
150
+ $this_url = home_url(add_query_arg(array($_GET), $wp->request));
151
+ if(preg_match('/robots\.txt/', $this_url)){
152
+ return;
153
+ }
154
+
155
  // return if the current page is Feed page, as we don't need anything on feedpaged
156
  if ( is_feed() ) {
157
  return;
includes/thirdparty-compatibility.php CHANGED
@@ -1137,4 +1137,29 @@ function ampforwp_wp_optimize_iframe($content){
1137
  unset($content['the_content']);
1138
  }
1139
  return $content;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1140
  }
1137
  unset($content['the_content']);
1138
  }
1139
  return $content;
1140
+ }
1141
+ add_action('init','ampforwp_include_required_yoast_files');
1142
+ function ampforwp_include_required_yoast_files(){
1143
+ // Yoast SEO 14+ support helper class #4574
1144
+ $include_file = $include_yoast_files = $include_yoast_premium_files= '';
1145
+ $include_yoast_files = WP_PLUGIN_DIR . '/wordpress-seo/admin/class-meta-columns.php';
1146
+ $include_yoast_premium_files = WP_PLUGIN_DIR . '/wordpress-seo-premium/admin/class-meta-columns.php';
1147
+ if ( file_exists($include_yoast_files) && function_exists('wpseo_init') ) {
1148
+ $include_file = $include_yoast_files;
1149
+ }
1150
+ if ( file_exists($include_yoast_premium_files) && class_exists('WPSEO_Premium')) {
1151
+ $include_file = $include_yoast_premium_files;
1152
+ }
1153
+ if ( file_exists($include_file) ){
1154
+ require_once($include_file);
1155
+ class Ampforwp_Yoast_Data extends WPSEO_Meta_Columns {
1156
+
1157
+ public function get_context_for_post_id($id) {
1158
+ if ( method_exists('WPSEO_Meta_Columns', 'get_context_for_post_id')) {
1159
+ return parent::get_context_for_post_id($id);
1160
+ }
1161
+ return false;
1162
+ }
1163
+ }
1164
+ }
1165
  }
includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php CHANGED
@@ -558,6 +558,10 @@ class AMP_Allowed_Tags_Generated {
558
  array(
559
  'attr_spec_list' => array(
560
  'autoplay' => array(),
 
 
 
 
561
  'data-outstream' => array(
562
  'value_regex' => '[0-9]+',
563
  ),
@@ -604,6 +608,10 @@ class AMP_Allowed_Tags_Generated {
604
  'noloading' => array(
605
  'value' => '',
606
  ),
 
 
 
 
607
  ),
608
  'tag_spec' => array(
609
  'requires_extension' => array(
558
  array(
559
  'attr_spec_list' => array(
560
  'autoplay' => array(),
561
+ '[dock]' => array(),
562
+ 'dock' => array(
563
+ 'value' => '#dock-slot',
564
+ ),
565
  'data-outstream' => array(
566
  'value_regex' => '[0-9]+',
567
  ),
608
  'noloading' => array(
609
  'value' => '',
610
  ),
611
+ '[dock]' => array(),
612
+ 'dock' => array(
613
+ 'value' => '#dock-slot',
614
+ ),
615
  ),
616
  'tag_spec' => array(
617
  'requires_extension' => array(
readme.txt CHANGED
@@ -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.4.2
7
- Stable tag: 1.0.53.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,25 @@ You can contact us from [here](https://ampforwp.com/contact/)
190
 
191
  == Changelog ==
192
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  = 1.0.53.2 (21st June 2020) =
194
  * Fixed: Minor Bug
195
 
@@ -214,21 +233,5 @@ You can contact us from [here](https://ampforwp.com/contact/)
214
  * Fixed: Date styling not looking good in Design 3 archive pages #4557
215
  * Fixed: Debug warning #4555
216
 
217
- = 1.0.52 (27th May 2020) =
218
- * Fixed: Reverted the CDN code of WP Rocket plugin which was causing the malformed url issue #4342
219
-
220
- = 1.0.51 (27th May 2020) =
221
- * Improvement: Added option to show instant article post according to updated date #4389
222
- * Improvement: Added Transposh for AMP Extension #4481
223
- * Fixed: Malformed url issue with WPRocket CDN #4342
224
- * Fixed: Call to undefined method WPSEO_Options::get() #4494
225
- * Fixed: Meta description is not working on homepage with yoast #4486
226
- * Fixed: Home Page Meta Description Not Showing in Rankmath SEO #4491
227
- * Fixed: DNS prefetch is disappearing after saving in safari #4470
228
- * Fixed: Robots txt is not working when AMP takeover is enabled #4475
229
- * Fixed: Canonical tag is missing when yoast is activated #4490
230
- * Fixed: Custom taxonomy archive not working LSVR Knowledge Base #4478
231
- * Fixed: Debug Notice trying to access array offset on value of type bool #4469
232
-
233
 
234
  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.4.2
7
+ Stable tag: 1.0.54
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
190
 
191
  == Changelog ==
192
 
193
+ = 1.0.54 (25th June 2020) =
194
+ * Fixed: Odnoklassniki sharing not working properly #4525
195
+ * Fixed: Post title is not appearing when a post is shared through Whatsapp #4513
196
+ * Fixed: Even after activating amp page builder compatibility we are getting this message this feature requires Page Builder For AMP extension. #4530
197
+ * Fixed: RedGIFs embeds break site #4422
198
+ * Fixed: Show notice when user is enabling option "sort related item randomly". #4535
199
+ * Fixed: The mandatory tag 'link rel=canonical' is missing or incorrect due to Yoast SEO premium plugin #4569
200
+ * Fixed: AMP homepage has a wrong canonical link. #4564
201
+ * Fixed: Yoast not working in rare scenario #4562
202
+ * Fixed: Meta title not pulled from YOAST in version 1.0.53.2 #4574
203
+ * Fixed: yoast breadcrumb links not redirecting to amp pages. #4566
204
+ * Fixed: Need to make comatibility with the wordpress embed block in guntenburg editor #4506
205
+ * Fixed: Custom Javascript added with orbital theme and it is showing a validation error on the AMP Pages #4539
206
+ * Fixed: robots.txt file is not generating when AMP takeover beta option is enabled. #4541
207
+ * Fixed: Need to add compatibility of the "Brightcove Video Connect" plugin. #4517
208
+ * Fixed: Debug Warning #4568
209
+ * Fixed: Comments are not displaying on Homepage (only in swift theme) #4571
210
+ * Fixed: The button CSS not appearing in the AMP added with the Gutenberg button module #4572
211
+
212
  = 1.0.53.2 (21st June 2020) =
213
  * Fixed: Minor Bug
214
 
233
  * Fixed: Date styling not looking good in Design 3 archive pages #4557
234
  * Fixed: Debug warning #4555
235
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
 
237
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/design-1/elements/social-icons.php CHANGED
@@ -79,7 +79,7 @@ if(true == ampforwp_get_setting('ampforwp-social-share')){ ?>
79
  <amp-social-share type="linkedin" width="50" height="28" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
80
  <?php } ?>
81
  <?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
82
- <a title="whatsapp share" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_url($amp_permalink); ?>" aria-label="whatsapp share">
83
  <div class="a-so-i">
84
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0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PC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" />
85
  </div>
@@ -99,8 +99,13 @@ if(true == ampforwp_get_setting('ampforwp-social-share')){ ?>
99
  </div>
100
  </a>
101
  <?php } ?>
102
- <?php if($redux_builder_amp['enable-single-odnoklassniki-share'] == true) { ?>
103
- <a title="odnoklassniki share" <?php ampforwp_nofollow_social_links(); ?> href="https://ok.ru/dk?st.cmd=addShare&st._surl=<?php echo esc_url($amp_permalink); ?>" target="_blank" aria-label="odnoklassniki share">
 
 
 
 
 
104
  <div class="a-so-i a-so-odnoklassniki">
105
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjY0cHgiIGhlaWdodD0iNjRweCIgdmlld0JveD0iMCAwIDk1LjQ4MSA5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width="50" height="20" />
106
  </div>
79
  <amp-social-share type="linkedin" width="50" height="28" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
80
  <?php } ?>
81
  <?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
82
+ <a title="whatsapp share" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_attr(htmlspecialchars(get_the_title()))."\n".esc_url($amp_permalink); ?>" aria-label="whatsapp share">
83
  <div class="a-so-i">
84
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4IiB2aWV3Qm94PSIwIDAgOTAgOTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDkwIDkwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggaWQ9IldoYXRzQXBwIiBkPSJNOTAsNDMuODQxYzAsMjQuMjEzLTE5Ljc3OSw0My44NDEtNDQuMTgyLDQzLjg0MWMtNy43NDcsMC0xNS4wMjUtMS45OC0yMS4zNT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Yy0wLjkwMi0yLjE1LTEuODAzLTEuNzkyLTIuNDM2LTEuNzkyYy0wLjYzMSwwLTEuMzU0LTAuMDktMi4wNzYtMC4wOWMtMC43MjIsMC0xLjg5NiwwLjI2OS0yLjg4OSwxLjM0NCAgIGMtMC45OTIsMS4wNzYtMy43ODksMy42NzYtMy43ODksOC45NjNjMCw1LjI4OCwzLjg3OSwxMC4zOTcsNC40MjIsMTEuMTEzYzAuNTQxLDAuNzE2LDcuNDksMTEuOTIsMTguNSwxNi4yMjMgICBDNTguMiw2NS43NzEsNTguMiw2NC4zMzYsNjAuMTg2LDY0LjE1NmMxLjk4NC0wLjE3OSw2LjQwNi0yLjU5OSw3LjMxMi01LjEwN0M2OC4zOTgsNTYuNTM3LDY4LjM5OCw1NC4zODYsNjguMTI5LDUzLjkzOHoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" />
85
  </div>
99
  </div>
100
  </a>
101
  <?php } ?>
102
+ <?php if(ampforwp_get_setting('enable-single-odnoklassniki-share')){
103
+ $feature_img = '';
104
+ if (ampforwp_has_post_thumbnail() ){
105
+ $feature_img = ampforwp_get_post_thumbnail( 'url', 'medium' );
106
+ }
107
+ ?>
108
+ <a title="odnoklassniki share" <?php esc_html(ampforwp_nofollow_social_links()); ?> href="https://connect.ok.ru/offer?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&imageUrl=<?php echo esc_url($feature_img); ?>" target="_blank" aria-label="odnoklassniki share">
109
  <div class="a-so-i a-so-odnoklassniki">
110
  <amp-img src="data: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DEwLjk2NywyNC4wMiwyNC40NzhDNzEuNzkyLDM3LjY3Nyw2MC44ODksNDguMzc1LDQ3LjU1LDQ4LjMyOXogTTU5LjU1MSwyNC4xNDMgICAgYy0wLjAyMy02LjU2Ny01LjI1My0xMS43OTUtMTEuODA3LTExLjgwMWMtNi42MDktMC4wMDctMTEuODg2LDUuMzE2LTExLjgzNSwxMS45NDNjMC4wNDksNi41NDIsNS4zMjQsMTEuNzMzLDExLjg5NiwxMS43MDkgICAgQzU0LjM1NywzNS45NzEsNTkuNTczLDMwLjcwOSw1OS41NTEsMjQuMTQzeiIgZmlsbD0iI0ZGRkZGRiIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="50" height="20" />
111
  </div>
templates/design-manager/design-2/elements/social-icons.php CHANGED
@@ -80,7 +80,7 @@ if(true == ampforwp_get_setting('ampforwp-social-share')){ ?>
80
  <amp-social-share type="linkedin" width="50" height="28" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
81
  <?php } ?>
82
  <?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
83
- <a title="whatsapp share" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_url($amp_permalink); ?>" aria-label="whatsapp share">
84
  <div class="a-so-i">
85
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4w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YiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" />
86
  </div>
@@ -100,8 +100,13 @@ if(true == ampforwp_get_setting('ampforwp-social-share')){ ?>
100
  </div>
101
  </a>
102
  <?php } ?>
103
- <?php if($redux_builder_amp['enable-single-odnoklassniki-share'] == true) { ?>
104
- <a title="odnoklassniki share" <?php ampforwp_nofollow_social_links(); ?> href="https://ok.ru/dk?st.cmd=addShare&st._surl=<?php echo esc_url($amp_permalink); ?>" target="_blank" aria-label="odnoklassniki share">
 
 
 
 
 
105
  <div class="a-so-i a-so-odnoklassniki">
106
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjY0cHgiIGhlaWdodD0iNjRweCIgdmlld0JveD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L2c+Cjwvc3ZnPgo=" width="50" height="20" />
107
  </div>
80
  <amp-social-share type="linkedin" width="50" height="28" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
81
  <?php } ?>
82
  <?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
83
+ <a title="whatsapp share" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_attr(htmlspecialchars(get_the_title()))."\n".esc_url($amp_permalink); ?>" aria-label="whatsapp share">
84
  <div class="a-so-i">
85
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4IiB2aWV3Qm94PSIwIDAgOTAgOTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDkwIDkwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggaWQ9IldoYXRzQXBwIiBkPSJNOTAsNDMuODQxYzAsMjQuMjEzLTE5Ljc3OSw0My44NDEtNDQuMTgyLDQzLjg0MWMtNy43NDcsMC0xNS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S0zLjM0LTcuOTc3ICAgYy0wLjkwMi0yLjE1LTEuODAzLTEuNzkyLTIuNDM2LTEuNzkyYy0wLjYzMSwwLTEuMzU0LTAuMDktMi4wNzYtMC4wOWMtMC43MjIsMC0xLjg5NiwwLjI2OS0yLjg4OSwxLjM0NCAgIGMtMC45OTIsMS4wNzYtMy43ODksMy42NzYtMy43ODksOC45NjNjMCw1LjI4OCwzLjg3OSwxMC4zOTcsNC40MjIsMTEuMTEzYzAuNTQxLDAuNzE2LDcuNDksMTEuOTIsMTguNSwxNi4yMjMgICBDNTguMiw2NS43NzEsNTguMiw2NC4zMzYsNjAuMTg2LDY0LjE1NmMxLjk4NC0wLjE3OSw2LjQwNi0yLjU5OSw3LjMxMi01LjEwN0M2OC4zOTgsNTYuNTM3LDY4LjM5OCw1NC4zODYsNjguMTI5LDUzLjkzOHoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" />
86
  </div>
100
  </div>
101
  </a>
102
  <?php } ?>
103
+ <?php if(ampforwp_get_setting('enable-single-odnoklassniki-share')){
104
+ $feature_img = '';
105
+ if (ampforwp_has_post_thumbnail() ){
106
+ $feature_img = ampforwp_get_post_thumbnail( 'url', 'medium' );
107
+ }
108
+ ?>
109
+ <a title="odnoklassniki share" <?php esc_html(ampforwp_nofollow_social_links()); ?> href="https://connect.ok.ru/offer?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&imageUrl=<?php echo esc_url($feature_img); ?>" target="_blank" aria-label="odnoklassniki share">
110
  <div class="a-so-i a-so-odn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IsMC4wMzYsMjQuMDg3LDEwLjk2NywyNC4wMiwyNC40NzhDNzEuNzkyLDM3LjY3Nyw2MC44ODksNDguMzc1LDQ3LjU1LDQ4LjMyOXogTTU5LjU1MSwyNC4xNDMgICAgYy0wLjAyMy02LjU2Ny01LjI1My0xMS43OTUtMTEuODA3LTExLjgwMWMtNi42MDktMC4wMDctMTEuODg2LDUuMzE2LTExLjgzNSwxMS45NDNjMC4wNDksNi41NDIsNS4zMjQsMTEuNzMzLDExLjg5NiwxMS43MDkgICAgQzU0LjM1NywzNS45NzEsNTkuNTczLDMwLjcwOSw1OS41NTEsMjQuMTQzeiIgZmlsbD0iI0ZGRkZGRiIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="50" height="20" />
112
  </div>
templates/design-manager/design-3/elements/social-icons.php CHANGED
@@ -101,7 +101,7 @@ if(true == ampforwp_get_setting('ampforwp-social-share') && false == ampforwp_ge
101
  <?php } ?>
102
  <?php if ( true == $redux_builder_amp['enable-single-whatsapp-share'] ) { ?>
103
  <div class="ampforwp-custom-social">
104
- <a title="whatsapp share" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_url($amp_permalink);?>" class="a-so-i-rounded a-so-whatsapp" aria-label="whatsapp share">
105
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCB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z4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" />
106
  </a>
107
  </div>
@@ -120,9 +120,14 @@ if(true == ampforwp_get_setting('ampforwp-social-share') && false == ampforwp_ge
120
  </a>
121
  </div>
122
  <?php } ?>
123
- <?php if ( true == $redux_builder_amp['enable-single-odnoklassniki-share'] ) { ?>
 
 
 
 
 
124
  <div class="ampforwp-custom-social">
125
- <a title="odnoklassniki share" <?php ampforwp_nofollow_social_links(); ?> href="https://ok.ru/dk?st.cmd=addShare&st._surl=<?php echo esc_url($amp_permalink); ?>" target="_blank" class="a-so-i-rounded a-so-odnoklassniki" aria-label="odnoklassniki share">
126
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjY0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xnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="16" height="16" />
127
  </a>
128
  </div>
101
  <?php } ?>
102
  <?php if ( true == $redux_builder_amp['enable-single-whatsapp-share'] ) { ?>
103
  <div class="ampforwp-custom-social">
104
+ <a title="whatsapp share" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_attr(htmlspecialchars(get_the_title()))."\n".esc_url($amp_permalink);?>" class="a-so-i-rounded a-so-whatsapp" aria-label="whatsapp share">
105
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4IiB2aWV3Qm94PSIwIDAgOTAgOTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDkwIDkwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggaWQ9IldoYXRzQXBwIiBkPSJNOTAsNDMuODQxYzAsMjQuMjEzLTE5Ljc3OSw0My44NDEtNDQuMTgyLDQzLjg0MWMtNy43N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zOC01LjgyNS0zLjM0LTcuOTc3ICAgYy0wLjkwMi0yLjE1LTEuODAzLTEuNzkyLTIuNDM2LTEuNzkyYy0wLjYzMSwwLTEuMzU0LTAuMDktMi4wNzYtMC4wOWMtMC43MjIsMC0xLjg5NiwwLjI2OS0yLjg4OSwxLjM0NCAgIGMtMC45OTIsMS4wNzYtMy43ODksMy42NzYtMy43ODksOC45NjNjMCw1LjI4OCwzLjg3OSwxMC4zOTcsNC40MjIsMTEuMTEzYzAuNTQxLDAuNzE2LDcuNDksMTEuOTIsMTguNSwxNi4yMjMgICBDNTguMiw2NS43NzEsNTguMiw2NC4zMzYsNjAuMTg2LDY0LjE1NmMxLjk4NC0wLjE3OSw2LjQwNi0yLjU5OSw3LjMxMi01LjEwN0M2OC4zOTgsNTYuNTM3LDY4LjM5OCw1NC4zODYsNjguMTI5LDUzLjkzOHoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" />
106
  </a>
107
  </div>
120
  </a>
121
  </div>
122
  <?php } ?>
123
+ <?php if(ampforwp_get_setting('enable-single-odnoklassniki-share')){
124
+ $feature_img = '';
125
+ if (ampforwp_has_post_thumbnail() ){
126
+ $feature_img = ampforwp_get_post_thumbnail( 'url', 'medium' );
127
+ }
128
+ ?>
129
  <div class="ampforwp-custom-social">
130
+ <a title="odnoklassniki share" <?php esc_html(ampforwp_nofollow_social_links()); ?> href="https://connect.ok.ru/offer?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&imageUrl=<?php echo esc_url($feature_img); ?>" target="_bl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NS0wLjAzNyw0Ny44NCwwICAgIGMxMy4zNjIsMC4wMzYsMjQuMDg3LDEwLjk2NywyNC4wMiwyNC40NzhDNzEuNzkyLDM3LjY3Nyw2MC44ODksNDguMzc1LDQ3LjU1LDQ4LjMyOXogTTU5LjU1MSwyNC4xNDMgICAgYy0wLjAyMy02LjU2Ny01LjI1My0xMS43OTUtMTEuODA3LTExLjgwMWMtNi42MDktMC4wMDctMTEuODg2LDUuMzE2LTExLjgzNSwxMS45NDNjMC4wNDksNi41NDIsNS4zMjQsMTEuNzMzLDExLjg5NiwxMS43MDkgICAgQzU0LjM1NywzNS45NzEsNTkuNTczLDMwLjcwOSw1OS41NTEsMjQuMTQzeiIgZmlsbD0iI0ZGRkZGRiIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="16" height="16" />
132
  </a>
133
  </div>
templates/design-manager/swift/footer.php CHANGED
@@ -189,7 +189,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
189
  }
190
  ?>
191
  <li>
192
- <a title="whatsapp share" class="s_wp" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_url($amp_permalink); ?>" data-action="share/whatsapp/share"><?php echo $whatsapp_icon; ?></a>
193
  </li>
194
  <?php } ?>
195
  <?php if(ampforwp_get_setting('enable-single-line-share') == true){
@@ -220,7 +220,12 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
220
  }
221
  ?>
222
  <li>
223
- <a title="odnoklassniki share" class="s_od" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://ok.ru/dk?st.cmd=addShare&st._surl=<?php echo esc_url($amp_permalink); ?>"><?php echo $odnoklassniki_icon; ?></a>
 
 
 
 
 
224
  </li>
225
  <?php } ?>
226
  <?php if(ampforwp_get_setting('enable-single-reddit-share')){
189
  }
190
  ?>
191
  <li>
192
+ <a title="whatsapp share" class="s_wp" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_attr(htmlspecialchars(get_the_title()))."\n".esc_url($amp_permalink); ?>" data-action="share/whatsapp/share"><?php echo $whatsapp_icon; ?></a>
193
  </li>
194
  <?php } ?>
195
  <?php if(ampforwp_get_setting('enable-single-line-share') == true){
220
  }
221
  ?>
222
  <li>
223
+ <?php $feature_img = '';
224
+ if (ampforwp_has_post_thumbnail() ){
225
+ $feature_img = ampforwp_get_post_thumbnail( 'url', 'medium' );
226
+ }
227
+ ?>
228
+ <a title="odnoklassniki share" class="s_od" target="_blank" <?php esc_html(ampforwp_nofollow_social_links()); ?> href="https://connect.ok.ru/offer?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&imageUrl=<?php echo esc_url($feature_img); ?>"><?php echo $odnoklassniki_icon; ?></a>
229
  </li>
230
  <?php } ?>
231
  <?php if(ampforwp_get_setting('enable-single-reddit-share')){
templates/design-manager/swift/functions.php CHANGED
@@ -181,7 +181,7 @@ function ampforwp_swift_social_icons(){
181
 
182
  ?>
183
  <li>
184
- <a class="s_wp" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_url($amp_permalink); ?>" data-action="share/whatsapp/share" aria-label="whatsapp share"><?php echo $whatsapp_icon; ?></a>
185
  </li>
186
  <?php } ?>
187
  <?php if(ampforwp_get_setting('enable-single-line-share') == true) {
@@ -214,7 +214,12 @@ function ampforwp_swift_social_icons(){
214
 
215
  ?>
216
  <li>
217
- <a class="s_od" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://ok.ru/dk?st.cmd=addShare&st._surl=<?php echo esc_url($amp_permalink); ?>" aria-label="odnoklassniki share"><?php echo $odnoklassniki_icon; ?></a>
 
 
 
 
 
218
  </li>
219
  <?php } ?>
220
  <?php if(ampforwp_get_setting('enable-single-reddit-share')){
181
 
182
  ?>
183
  <li>
184
+ <a class="s_wp" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_attr(htmlspecialchars(get_the_title()))."\n".esc_url($amp_permalink); ?>" data-action="share/whatsapp/share" aria-label="whatsapp share"><?php echo $whatsapp_icon; ?></a>
185
  </li>
186
  <?php } ?>
187
  <?php if(ampforwp_get_setting('enable-single-line-share') == true) {
214
 
215
  ?>
216
  <li>
217
+ <?php $feature_img = '';
218
+ if (ampforwp_has_post_thumbnail() ){
219
+ $feature_img = ampforwp_get_post_thumbnail( 'url', 'medium' );
220
+ }
221
+ ?>
222
+ <a class="s_od" target="_blank" <?php esc_html(ampforwp_nofollow_social_links()); ?> href="https://connect.ok.ru/offer?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&imageUrl=<?php echo esc_url($feature_img); ?>" aria-label="odnoklassniki share"><?php echo $odnoklassniki_icon; ?></a>
223
  </li>
224
  <?php } ?>
225
  <?php if(ampforwp_get_setting('enable-single-reddit-share')){
templates/design-manager/swift/page.php CHANGED
@@ -44,7 +44,7 @@ amp_header(); ?>
44
  if( !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && is_page() && true == ampforwp_get_setting('ampforwp-page-social') && 'above-content' != ampforwp_get_setting('swift-social-position') ) {
45
  echo ampforwp_swift_social_icons();
46
  } ?>
47
- <?php if( !ampforwp_levelup_compatibility('levelup_elementor') && !ampforwp_is_front_page() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ // Level up Condition starts ?>
48
  <div class="cmts">
49
  <?php amp_comments();?>
50
  </div>
44
  if( !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && is_page() && true == ampforwp_get_setting('ampforwp-page-social') && 'above-content' != ampforwp_get_setting('swift-social-position') ) {
45
  echo ampforwp_swift_social_icons();
46
  } ?>
47
+ <?php if( !ampforwp_levelup_compatibility('levelup_elementor') && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ // Level up Condition starts ?>
48
  <div class="cmts">
49
  <?php amp_comments();?>
50
  </div>
templates/design-manager/swift/style.php CHANGED
@@ -694,6 +694,25 @@ if($redux_builder_amp['swift-social-position'] == 'below-content'){?>
694
  .cntn-wrp small{font-size:11px;line-height:1.2;color:#111;}
695
  .cntn-wrp p, .cntn-wrp ul, .cntn-wrp ol{margin:0px 0px 30px 0px;word-break: break-word;}
696
  .cntn-wrp .wp-block-image,.wp-block-embed{margin:15px 0px;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
697
  .artl-cnt ul li, .artl-cnt ol li{list-style-type: none;position: relative;
698
  <?php if( true == ampforwp_get_setting('amp-rtl-select-option') ) {?>
699
  padding-right:20px;
694
  .cntn-wrp small{font-size:11px;line-height:1.2;color:#111;}
695
  .cntn-wrp p, .cntn-wrp ul, .cntn-wrp ol{margin:0px 0px 30px 0px;word-break: break-word;}
696
  .cntn-wrp .wp-block-image,.wp-block-embed{margin:15px 0px;}
697
+
698
+ .wp-block-embed{margin-top:45px;}
699
+ .wp-block-embed blockquote a{
700
+ position: absolute;
701
+ height: 285px;
702
+ z-index: 9;
703
+ margin-top: -40px;
704
+ }
705
+ @media(max-width:768px){
706
+ .wp-block-embed blockquote a{
707
+ width: 90%;
708
+ height: 209px;
709
+ margin-top: -95px;
710
+ }
711
+ .wp-block-embed{
712
+ margin-top: 95px;
713
+ }
714
+ }
715
+
716
  .artl-cnt ul li, .artl-cnt ol li{list-style-type: none;position: relative;
717
  <?php if( true == ampforwp_get_setting('amp-rtl-select-option') ) {?>
718
  padding-right:20px;
templates/features.php CHANGED
@@ -707,6 +707,10 @@ function ampforwp_new_dir( $dir ) {
707
  $content = preg_replace('/<stream[^>]* src="(.*?)"><\/stream>/', '<amp-iframe width="175" height="100" sandbox="allow-scripts allow-same-origin" layout="responsive" allowfullscreen src="https://iframe.cloudflarestream.com/$1"></amp-iframe>', $content);
708
  //Compatibility with amp-connatix-player #3524
709
  $content = preg_replace('/<script id="(.*?)">(.*?)playerId:\s\'(.*?)\'(.*?)mediaId:\s\'(.*?)\'(.*?)<\/script>/s', '<amp-connatix-player data-player-id="$3" data-media-id = "$5" layout="responsive" width="16" height="9"></amp-connatix-player>', $content);
 
 
 
 
710
 
711
  return $content;
712
  }
@@ -748,7 +752,7 @@ function ampforwp_title_custom_meta() {
748
  continue;
749
  }
750
  // Posts
751
- if( $redux_builder_amp['amp-on-off-for-all-posts'] && $post_type == 'post' ) {
752
  add_meta_box( 'ampforwp_title_meta', esc_html__( 'Show AMP for Current Page?','accelerated-mobile-pages' ), 'ampforwp_title_callback', 'post','side' );
753
  }
754
  // Pages
@@ -871,20 +875,20 @@ function ampforwp_mobile_redirection() {
871
  continue;
872
  }
873
  // Posts
874
- if( $redux_builder_amp['amp-on-off-for-all-posts'] && $post_type == 'post' ) {
875
- if ( $redux_builder_amp['amp-mobile-redirection'] ) {
876
  add_meta_box( 'ampforwp_title_meta_redir', esc_html__( 'Mobile Redirection for Current Page?','accelerated-mobile-pages' ), 'ampforwp_title_callback_redirection', 'post','side' );
877
  }
878
  }
879
  // Pages
880
- if( $redux_builder_amp['amp-on-off-for-all-pages'] && $post_type == 'page' ) {
881
- if ( $redux_builder_amp['amp-mobile-redirection'] ) {
882
  add_meta_box( 'ampforwp_title_meta_redir', esc_html__( 'Mobile Redirection for Current Page?' ,'accelerated-mobile-pages'), 'ampforwp_title_callback_redirection','page','side' );
883
  }
884
  }
885
  // Custom Post Types
886
  if( $post_type !== 'page' && $post_type !== 'post' ) {
887
- if ( $redux_builder_amp['amp-mobile-redirection'] ) {
888
  add_meta_box( 'ampforwp_title_meta_redir', esc_html__( 'Mobile Redirection for Current Page?','accelerated-mobile-pages' ), 'ampforwp_title_callback_redirection', $post_type,'side' );
889
  }
890
  }
@@ -1300,7 +1304,7 @@ function ampforwp_sticky_social_icons(){
1300
  <amp-social-share type="linkedin" width="50" height="28" aria-label="linkedin" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
1301
  <?php } ?>
1302
  <?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
1303
- <a title="whatsapp share" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_url($amp_permalink);?>">
1304
  <div class="a-so-i">
1305
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4IiB2aWV3Qm94PSIwIDAgOTAgOTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDkwIDkwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggaWQ9IldoYXRzQXBwIiBkPSJNOTAsNDMuODQxYzAsMjQuMjEzLTE5Ljc3OSw0My44NDEtNDQuMTgyLDQzLjg0MWMt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yLjQzOC01LjgyNS0zLjM0LTcuOTc3ICAgYy0wLjkwMi0yLjE1LTEuODAzLTEuNzkyLTIuNDM2LTEuNzkyYy0wLjYzMSwwLTEuMzU0LTAuMDktMi4wNzYtMC4wOWMtMC43MjIsMC0xLjg5NiwwLjI2OS0yLjg4OSwxLjM0NCAgIGMtMC45OTIsMS4wNzYtMy43ODksMy42NzYtMy43ODksOC45NjNjMCw1LjI4OCwzLjg3OSwxMC4zOTcsNC40MjIsMTEuMTEzYzAuNTQxLDAuNzE2LDcuNDksMTEuOTIsMTguNSwxNi4yMjMgICBDNTguMiw2NS43NzEsNTguMiw2NC4zMzYsNjAuMTg2LDY0LjE1NmMxLjk4NC0wLjE3OSw2LjQwNi0yLjU5OSw3LjMxMi01LjEwN0M2OC4zOTgsNTYuNTM3LDY4LjM5OCw1NC4zODYsNjguMTI5LDUzLjkzOHoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" alt="whatsapp" />
1306
  </div>
@@ -1323,8 +1327,13 @@ function ampforwp_sticky_social_icons(){
1323
  </div>
1324
  </a>
1325
  <?php } ?>
1326
- <?php if($redux_builder_amp['enable-single-odnoklassniki-share'] == true) { ?>
1327
- <a title="odnoklassniki share" <?php ampforwp_nofollow_social_links(); ?> href="https://ok.ru/dk?st.cmd=addShare&st._surl=<?php echo esc_url($amp_permalink); ?>" target="_blank">
 
 
 
 
 
1328
  <div class="a-so-i a-so-odnoklassniki">
1329
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvL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1LDQ3LjU1LDQ4LjMyOXogTTU5LjU1MSwyNC4xNDMgICAgYy0wLjAyMy02LjU2Ny01LjI1My0xMS43OTUtMTEuODA3LTExLjgwMWMtNi42MDktMC4wMDctMTEuODg2LDUuMzE2LTExLjgzNSwxMS45NDNjMC4wNDksNi41NDIsNS4zMjQsMTEuNzMzLDExLjg5NiwxMS43MDkgICAgQzU0LjM1NywzNS45NzEsNTkuNTczLDMwLjcwOSw1OS41NTEsMjQuMTQzeiIgZmlsbD0iI0ZGRkZGRiIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="50" height="20" />
1330
  </div>
@@ -1483,7 +1492,7 @@ function ampforwp_yoast_twitter_title($title){
1483
  function ampforwp_yoast_social_title($type) {
1484
  //Added the opengraph for frontpage in AMP #2454
1485
  if(ampforwp_is_front_page() || ampforwp_is_blog() ){
1486
- $title = $page_id = '';
1487
  $page_id = ampforwp_get_the_ID();
1488
  if( 'og' == $type ) {
1489
  $title = WPSEO_Meta::get_value( 'opengraph-title', $page_id );
@@ -1626,6 +1635,16 @@ function ampforwp_replace_title_tags() {
1626
  add_filter( 'pre_get_document_title', 'ampforwp_add_custom_title_tag', 20 );
1627
  add_filter( 'wp_title', 'ampforwp_add_custom_title_tag', 10, 3 );
1628
 
 
 
 
 
 
 
 
 
 
 
1629
  function ampforwp_add_custom_title_tag( $title = '', $sep = '', $seplocation = '' ) {
1630
  global $redux_builder_amp, $post;
1631
  $site_title = '';
@@ -1646,7 +1665,13 @@ function ampforwp_replace_title_tags() {
1646
  //* We can filter this later if needed:
1647
  $sep = ' | ';
1648
  if( class_exists('WPSEO_Options') && method_exists('WPSEO_Options', 'get') && 'yoast' == ampforwp_get_setting('ampforwp-seo-selection') && !class_exists('Yoast\\WP\\SEO\\Integrations\\Front_End_Integration')) {
1649
- $sep = WPSEO_Options::get( 'separator' );
 
 
 
 
 
 
1650
  }
1651
  if( defined( 'RANK_MATH_FILE' ) && class_exists('RankMath\\Helper') && 'rank_math' == ampforwp_get_setting('ampforwp-seo-selection') ) {
1652
  $sep = RankMath\Helper::get_settings( 'titles.title_separator' );
@@ -1674,13 +1699,13 @@ function ampforwp_replace_title_tags() {
1674
  else {
1675
  $ID = ampforwp_get_frontpage_id();
1676
  }
1677
- $site_title = get_the_title( $ID ) . $sep . get_option( 'blogname' );
1678
- }
1679
- // Blog page
1680
- if ( ampforwp_is_blog() ) {
1681
- $ID = ampforwp_get_blog_details('id');
1682
- $site_title = get_the_title( $ID ) . $sep . get_option( 'blogname' );
1683
  }
 
 
 
 
 
1684
  }
1685
 
1686
  if ( is_search() ) {
@@ -1701,11 +1726,23 @@ function ampforwp_replace_title_tags() {
1701
  if ( ampforwp_is_home() ) {
1702
  $yoast_title = $WPSEO_Frontend->get_title_from_options( 'title-home-wpseo' );
1703
  }
 
 
 
 
1704
  }
1705
  // Custom Front Page Title From Yoast SEO #1163
1706
- if ( ampforwp_is_front_page() || ampforwp_is_blog() ) {
1707
  $yoast_title = get_post_meta(ampforwp_get_the_ID(), '_yoast_wpseo_title', true);
1708
  $yoast_title = wpseo_replace_vars( $yoast_title,$post );
 
 
 
 
 
 
 
 
1709
  }
1710
  if ( $yoast_title ) {
1711
  $site_title = apply_filters( 'wpseo_title', $yoast_title, $yoast_instance );
@@ -3465,7 +3502,7 @@ function ampforwp_frontpage_comments() {
3465
 
3466
  $post_id = ampforwp_get_frontpage_id();
3467
 
3468
- if ($data['elements'] == '') {
3469
  $data['elements'] = "meta_info:1,title:1,featured_image:1,content:1,meta_taxonomy:1,social_icons:1,comments:1,related_posts:1";
3470
  }
3471
  if( isset( $data['elements'] ) || ! empty( $data['elements'] ) ){
@@ -4127,6 +4164,40 @@ function ampforwp_rel_canonical_paginated_post(){
4127
  }
4128
  add_action('ampforwp_after_post_content','ampforwp_post_pagination');
4129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4130
 
4131
  // 70. Hide AMP by specific Categories & Tags #872
4132
  function ampforwp_posts_to_remove () {
@@ -5218,7 +5289,7 @@ if( ! function_exists( 'ampforwp_view_amp_admin_bar' ) ) {
5218
  // Check if current post type is AMPed or not
5219
  if( $supported_amp_post_types && in_array($post->post_type, $supported_amp_post_types) ){
5220
  // If AMP on Posts or Pages is off then do nothing
5221
- if($post->post_type == 'post' && !$redux_builder_amp['amp-on-off-for-all-posts'] || $post->post_type == 'page' && !$redux_builder_amp['amp-on-off-for-all-pages']) {
5222
  return;
5223
  }
5224
  if( is_archive() && is_category() ){
@@ -5854,19 +5925,19 @@ function ampforwp_is_non_amp( $type="" ) {
5854
 
5855
 
5856
  // Check for Posts
5857
- if ( is_single() && false == $redux_builder_amp['amp-on-off-for-all-posts'] ) {
5858
  return false;
5859
  }
5860
  // Archives
5861
- if ( is_archive() && false == $redux_builder_amp['ampforwp-archive-support'] ) {
5862
  return false;
5863
  }
5864
  // Pages
5865
- if ( is_page() && false == $redux_builder_amp['amp-on-off-for-all-pages'] ) {
5866
  return false;
5867
  }
5868
  // Homepage
5869
- if ( is_home() && false == $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
5870
  return false;
5871
  }
5872
  // Search #2681
@@ -6774,9 +6845,14 @@ add_action('amp_post_template_css', 'ampforwp_gutenberg_css');
6774
  }
6775
  if ( ! function_exists('ampforwp_gutenberg_css') ) {
6776
  function ampforwp_gutenberg_css(){
6777
- $color_data = get_theme_support('editor-color-palette');?>
 
 
 
 
 
6778
  .wp-block-button { color: #fff}
6779
- .wp-block-button a {background-color: #32373c;border-radius: 28px;color: inherit;display: inline-block;padding: 12px 24px;}
6780
  .wp-block-cover{position:relative;background-color: #000;background-size: cover;background-position: center center;min-height: 430px;width: 100%;margin: 1.5em 0 1.5em 0;display: flex;justify-content: center;align-items: center;overflow: hidden;}
6781
  .wp-block-cover-text{color: #fff;font-size: 2em;line-height: 1.25;z-index: 1;}
6782
  .wp-block-cover-image.has-background-dim::before, .wp-block-cover.has-background-dim::before {content: "";position: absolute;top: 0;left: 0;bottom: 0;right: 0;background-color: inherit;opacity: .5;z-index: 1;} <?php
@@ -7214,9 +7290,9 @@ function ampforwp_yoast_breadcrumbs_output(){
7214
  $breadcrumb = '';
7215
  if ( true == ampforwp_get_setting('ampforwp-yoast-bread-crumb') && true === WPSEO_Options::get( 'breadcrumbs-enable' ) && function_exists('yoast_breadcrumb')) {
7216
  $breadcrumb = yoast_breadcrumb('','', false);
7217
- if(true == ampforwp_get_setting('ampforwp-archive-support')){
7218
- $breadcrumb = preg_replace('/<div class="breadcrumbs">(.*?)<a href="(.*?)">(.*?)<\/a>(.*?)<a href="(.*?)"(.*?)<\/span><\/div>/', '<div class="breadcrumbs">$1<a href="$2amp">$3</a>$4<a href="$5amp"$6</span></div>', $breadcrumb);
7219
- }
7220
  return $breadcrumb;
7221
  }
7222
  }
@@ -7783,6 +7859,18 @@ function ampforwp_nofollow_cta_header_link(){
7783
  return false;
7784
  }
7785
 
 
 
 
 
 
 
 
 
 
 
 
 
7786
  // Font Selector
7787
  if( ! function_exists('ampforwp_font_selector') ) {
7788
  function ampforwp_font_selector( $container ) {
@@ -8009,6 +8097,12 @@ function ampforwp_remove_unwanted_code($content){
8009
  $content = preg_replace('/<form class="mv-create-print-form">(.*?)<\/form>/s', '', $content);
8010
  }
8011
  // close #4206
 
 
 
 
 
 
8012
  return $content;
8013
  }
8014
  add_filter('ampforwp_the_content_last_filter','ampforwp_include_required_scripts',12);
@@ -8175,6 +8269,43 @@ function ampforwp_include_required_scripts($content){
8175
  }
8176
  }
8177
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8178
  // Scripts added from Options panel should have higher priority #4064
8179
  if( ampforwp_get_setting('amp-header-text-area-for-html') && ampforwp_get_setting('amp-header-text-area-for-html')!="") {
8180
  $allscripts = ampforwp_get_setting('amp-header-text-area-for-html');
707
  $content = preg_replace('/<stream[^>]* src="(.*?)"><\/stream>/', '<amp-iframe width="175" height="100" sandbox="allow-scripts allow-same-origin" layout="responsive" allowfullscreen src="https://iframe.cloudflarestream.com/$1"></amp-iframe>', $content);
708
  //Compatibility with amp-connatix-player #3524
709
  $content = preg_replace('/<script id="(.*?)">(.*?)playerId:\s\'(.*?)\'(.*?)mediaId:\s\'(.*?)\'(.*?)<\/script>/s', '<amp-connatix-player data-player-id="$3" data-media-id = "$5" layout="responsive" width="16" height="9"></amp-connatix-player>', $content);
710
+ // Fixed CSS syntax error when redgifs iframe is embedded # 4422
711
+ if(preg_match("/<div\s+style='(.*?)\)'><iframe(.*?)redgifs\.com(.*?)<\/iframe>/", $content)){
712
+ $content = preg_replace("/<div\s+style='(.*?)\)'><iframe(.*?)redgifs\.com(.*?)<\/iframe>/", "<div style='$1'><iframe$2redgifs.com$3</iframe>", $content);
713
+ }
714
 
715
  return $content;
716
  }
752
  continue;
753
  }
754
  // Posts
755
+ if( ampforwp_get_setting('amp-on-off-for-all-posts') && $post_type == 'post' ) {
756
  add_meta_box( 'ampforwp_title_meta', esc_html__( 'Show AMP for Current Page?','accelerated-mobile-pages' ), 'ampforwp_title_callback', 'post','side' );
757
  }
758
  // Pages
875
  continue;
876
  }
877
  // Posts
878
+ if( ampforwp_get_setting('amp-on-off-for-all-posts') && $post_type == 'post' ) {
879
+ if ( ampforwp_get_setting('amp-mobile-redirection') ) {
880
  add_meta_box( 'ampforwp_title_meta_redir', esc_html__( 'Mobile Redirection for Current Page?','accelerated-mobile-pages' ), 'ampforwp_title_callback_redirection', 'post','side' );
881
  }
882
  }
883
  // Pages
884
+ if( ampforwp_get_setting('amp-on-off-for-all-pages') && $post_type == 'page' ) {
885
+ if ( ampforwp_get_setting('amp-mobile-redirection') ) {
886
  add_meta_box( 'ampforwp_title_meta_redir', esc_html__( 'Mobile Redirection for Current Page?' ,'accelerated-mobile-pages'), 'ampforwp_title_callback_redirection','page','side' );
887
  }
888
  }
889
  // Custom Post Types
890
  if( $post_type !== 'page' && $post_type !== 'post' ) {
891
+ if (ampforwp_get_setting('amp-mobile-redirection') ) {
892
  add_meta_box( 'ampforwp_title_meta_redir', esc_html__( 'Mobile Redirection for Current Page?','accelerated-mobile-pages' ), 'ampforwp_title_callback_redirection', $post_type,'side' );
893
  }
894
  }
1304
  <amp-social-share type="linkedin" width="50" height="28" aria-label="linkedin" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
1305
  <?php } ?>
1306
  <?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
1307
+ <a title="whatsapp share" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_attr(htmlspecialchars(get_the_title()))."\n".esc_url($amp_permalink);?>">
1308
  <div class="a-so-i">
1309
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PS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wp_get_setting('enable-single-odnoklassniki-share')){
1331
+ $feature_img = '';
1332
+ if (ampforwp_has_post_thumbnail() ){
1333
+ $feature_img = ampforwp_get_post_thumbnail( 'url', 'medium' );
1334
+ }
1335
+ ?>
1336
+ <a title="odnoklassniki share" <?php esc_html(ampforwp_nofollow_social_links()); ?> href="https://connect.ok.ru/offer?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&imageUrl=<?php echo esc_url($feature_img); ?>" target="_blank">
1337
  <div class="a-so-i a-so-odnoklassniki">
1338
  <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjY0cHgiIGhlaWdodD0iNjRweCIgdmlld0JveD0iMCAwIDk1LjQ4MSA5NS40ODEiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDk1LjQ4MSA5NS40ODE7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8Zz4KCQk8cGF0aCBkPSJNNDMuMDQxLDY3LjI1NGMtNy40MDItMC43NzItMTQuMDc2LTIuNTk1L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C4wMTRjNS40NDEtNS40MzMsMTAuODY3LTEwLjg4LDE2LjI5NS0xNi4zMjIgICAgQzQyLjE4Myw2OC4xOTcsNDIuNTE4LDY3LjgxMyw0My4wNDEsNjcuMjU0eiIgZmlsbD0iI0ZGRkZGRiIvPgoJCTxwYXRoIGQ9Ik00Ny41NSw0OC4zMjljLTEzLjIwNS0wLjA0NS0yNC4wMzMtMTAuOTkyLTIzLjk1Ni0yNC4yMThDMjMuNjcsMTAuNzM5LDM0LjUwNS0wLjAzNyw0Ny44NCwwICAgIGMxMy4zNjIsMC4wMzYsMjQuMDg3LDEwLjk2NywyNC4wMiwyNC40NzhDNzEuNzkyLDM3LjY3Nyw2MC44ODksNDguMzc1LDQ3LjU1LDQ4LjMyOXogTTU5LjU1MSwyNC4xNDMgICAgYy0wLjAyMy02LjU2Ny01LjI1My0xMS43OTUtMTEuODA3LTExLjgwMWMtNi42MDktMC4wMDctMTEuODg2LDUuMzE2LTExLjgzNSwxMS45NDNjMC4wNDksNi41NDIsNS4zMjQsMTEuNzMzLDExLjg5NiwxMS43MDkgICAgQzU0LjM1NywzNS45NzEsNTkuNTczLDMwLjcwOSw1OS41NTEsMjQuMTQzeiIgZmlsbD0iI0ZGRkZGRiIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="50" height="20" />
1339
  </div>
1492
  function ampforwp_yoast_social_title($type) {
1493
  //Added the opengraph for frontpage in AMP #2454
1494
  if(ampforwp_is_front_page() || ampforwp_is_blog() ){
1495
+ $title = $page_id = $post = '';
1496
  $page_id = ampforwp_get_the_ID();
1497
  if( 'og' == $type ) {
1498
  $title = WPSEO_Meta::get_value( 'opengraph-title', $page_id );
1635
  add_filter( 'pre_get_document_title', 'ampforwp_add_custom_title_tag', 20 );
1636
  add_filter( 'wp_title', 'ampforwp_add_custom_title_tag', 10, 3 );
1637
 
1638
+ if(class_exists('Yoast\\WP\\SEO\\Integrations\\Front_End_Integration') && !ampforwp_is_home() && !ampforwp_is_front_page() && !ampforwp_is_blog() ){
1639
+ remove_filter( 'pre_get_document_title', 'ampforwp_add_custom_title_tag', 20 );
1640
+ remove_filter( 'wp_title', 'ampforwp_add_custom_title_tag', 10, 3 );
1641
+ }
1642
+ // For Custom homepage
1643
+ if(class_exists('Yoast\\WP\\SEO\\Integrations\\Front_End_Integration') && ampforwp_is_home() && !ampforwp_is_front_page() ){
1644
+ remove_filter( 'pre_get_document_title', 'ampforwp_add_custom_title_tag', 20 );
1645
+ remove_filter( 'wp_title', 'ampforwp_add_custom_title_tag', 10, 3 );
1646
+ }
1647
+
1648
  function ampforwp_add_custom_title_tag( $title = '', $sep = '', $seplocation = '' ) {
1649
  global $redux_builder_amp, $post;
1650
  $site_title = '';
1665
  //* We can filter this later if needed:
1666
  $sep = ' | ';
1667
  if( class_exists('WPSEO_Options') && method_exists('WPSEO_Options', 'get') && 'yoast' == ampforwp_get_setting('ampforwp-seo-selection') && !class_exists('Yoast\\WP\\SEO\\Integrations\\Front_End_Integration')) {
1668
+ $separator = WPSEO_Options::get( 'separator' );
1669
+ $seperator_options = WPSEO_Option_Titles::get_instance()->get_separator_options();
1670
+ // This should always be set, but just to be sure.
1671
+ if ( isset( $seperator_options[ $separator ] ) ) {
1672
+ // Set the new replacement.
1673
+ $sep = $seperator_options[ $separator ];
1674
+ }
1675
  }
1676
  if( defined( 'RANK_MATH_FILE' ) && class_exists('RankMath\\Helper') && 'rank_math' == ampforwp_get_setting('ampforwp-seo-selection') ) {
1677
  $sep = RankMath\Helper::get_settings( 'titles.title_separator' );
1699
  else {
1700
  $ID = ampforwp_get_frontpage_id();
1701
  }
1702
+ $site_title = get_the_title( $ID ) .' '. $sep .' '. get_option( 'blogname' );
 
 
 
 
 
1703
  }
1704
+ // // Blog page
1705
+ // if ( ampforwp_is_blog() ) {
1706
+ // $ID = ampforwp_get_blog_details('id');
1707
+ // $site_title = get_the_title( $ID ) . $sep . get_option( 'blogname' );
1708
+ // }
1709
  }
1710
 
1711
  if ( is_search() ) {
1726
  if ( ampforwp_is_home() ) {
1727
  $yoast_title = $WPSEO_Frontend->get_title_from_options( 'title-home-wpseo' );
1728
  }
1729
+ // For Blog pages and with Blog sub pages for example: site.com/blog/amp/page/3/
1730
+ if (ampforwp_is_blog()) {
1731
+ $yoast_title = $WPSEO_Frontend->get_content_title();
1732
+ }
1733
  }
1734
  // Custom Front Page Title From Yoast SEO #1163
1735
+ if ( ampforwp_is_front_page() || ampforwp_is_blog() && class_exists('Yoast\WP\SEO\Presentations\Indexable_Presentation') ) {
1736
  $yoast_title = get_post_meta(ampforwp_get_the_ID(), '_yoast_wpseo_title', true);
1737
  $yoast_title = wpseo_replace_vars( $yoast_title,$post );
1738
+ // Get info for custom front page, blog page and blog post paginated pages for v14+ #4574
1739
+ if ( class_exists('Ampforwp_Yoast_Data') ){
1740
+ $yoast_data = new Ampforwp_Yoast_Data;
1741
+ $context = $yoast_data->get_context_for_post_id(ampforwp_get_the_ID());
1742
+ }
1743
+ if ( $context) {
1744
+ $yoast_title = $context->title;
1745
+ }
1746
  }
1747
  if ( $yoast_title ) {
1748
  $site_title = apply_filters( 'wpseo_title', $yoast_title, $yoast_instance );
3502
 
3503
  $post_id = ampforwp_get_frontpage_id();
3504
 
3505
+ if (empty($data)) {
3506
  $data['elements'] = "meta_info:1,title:1,featured_image:1,content:1,meta_taxonomy:1,social_icons:1,comments:1,related_posts:1";
3507
  }
3508
  if( isset( $data['elements'] ) || ! empty( $data['elements'] ) ){
4164
  }
4165
  add_action('ampforwp_after_post_content','ampforwp_post_pagination');
4166
 
4167
+ // Generating Canonical Url for Yoast no index pages.
4168
+ add_filter( 'wpseo_robots_array', 'ampforwp_yoast_no_index_condition_check',20,2);
4169
+ function ampforwp_yoast_no_index_condition_check($robots,$object){
4170
+ global $yoast_data;
4171
+ if($robots['index'] == 'noindex'){
4172
+ $yoast_data['canonical'] = $object->model->permalink;
4173
+ add_action( 'amp_post_template_head', 'ampforwp_generate_yoast_no_index_canonical_url' );
4174
+ }
4175
+ return $robots;
4176
+ }
4177
+
4178
+ function ampforwp_generate_yoast_no_index_canonical_url(){
4179
+ global $yoast_data;
4180
+ if(isset($yoast_data['canonical'])){
4181
+ $canonical_url = $yoast_data['canonical'];
4182
+ if(ampforwp_is_home() || ampforwp_is_front_page()){
4183
+ $canonical_url = user_trailingslashit(get_site_url());
4184
+ } ?>
4185
+ <link rel="canonical" href="<?php echo esc_url($canonical_url) ?>"/>
4186
+ <?php }
4187
+ }
4188
+
4189
+ // Modified Homepage wrong canonical url generated by yoast
4190
+ add_action('pre_amp_render_post','ampforwp_modify_yoast_amp_homepage_canonical');
4191
+ function ampforwp_modify_yoast_amp_homepage_canonical(){
4192
+ add_filter('wpseo_canonical','ampforwp_modify_yoast_homepage_canonical_url',20);
4193
+ }
4194
+
4195
+ function ampforwp_modify_yoast_homepage_canonical_url($canonical_url){
4196
+ if(ampforwp_is_home() || ampforwp_is_front_page()){
4197
+ $canonical_url = user_trailingslashit(get_site_url());
4198
+ }
4199
+ return esc_url($canonical_url);
4200
+ }
4201
 
4202
  // 70. Hide AMP by specific Categories & Tags #872
4203
  function ampforwp_posts_to_remove () {
5289
  // Check if current post type is AMPed or not
5290
  if( $supported_amp_post_types && in_array($post->post_type, $supported_amp_post_types) ){
5291
  // If AMP on Posts or Pages is off then do nothing
5292
+ if($post->post_type == 'post' && !ampforwp_get_setting('amp-on-off-for-all-posts') || $post->post_type == 'page' && !ampforwp_get_setting('amp-on-off-for-all-pages')) {
5293
  return;
5294
  }
5295
  if( is_archive() && is_category() ){
5925
 
5926
 
5927
  // Check for Posts
5928
+ if ( is_single() && false == ampforwp_get_setting('amp-on-off-for-all-posts') ) {
5929
  return false;
5930
  }
5931
  // Archives
5932
+ if ( is_archive() && false == ampforwp_get_setting('ampforwp-archive-support') ) {
5933
  return false;
5934
  }
5935
  // Pages
5936
+ if ( is_page() && false == ampforwp_get_setting('amp-on-off-for-all-pages') ) {
5937
  return false;
5938
  }
5939
  // Homepage
5940
+ if ( is_home() && false == ampforwp_get_setting('ampforwp-homepage-on-off-support') ) {
5941
  return false;
5942
  }
5943
  // Search #2681
6845
  }
6846
  if ( ! function_exists('ampforwp_gutenberg_css') ) {
6847
  function ampforwp_gutenberg_css(){
6848
+ $color_data = get_theme_support('editor-color-palette');
6849
+ $background = '#32373c';
6850
+ if(isset($color_data[0]) && isset($color_data[0][0]) && isset($color_data[0][0]['color'])){
6851
+ $background = $color_data[0][0]['color'];
6852
+ }
6853
+ ?>
6854
  .wp-block-button { color: #fff}
6855
+ .wp-block-button a {background-color: <?php echo ampforwp_sanitize_color($background);?>;border-radius: 28px;color: inherit;display: inline-block;padding: 12px 24px;}
6856
  .wp-block-cover{position:relative;background-color: #000;background-size: cover;background-position: center center;min-height: 430px;width: 100%;margin: 1.5em 0 1.5em 0;display: flex;justify-content: center;align-items: center;overflow: hidden;}
6857
  .wp-block-cover-text{color: #fff;font-size: 2em;line-height: 1.25;z-index: 1;}
6858
  .wp-block-cover-image.has-background-dim::before, .wp-block-cover.has-background-dim::before {content: "";position: absolute;top: 0;left: 0;bottom: 0;right: 0;background-color: inherit;opacity: .5;z-index: 1;} <?php
7290
  $breadcrumb = '';
7291
  if ( true == ampforwp_get_setting('ampforwp-yoast-bread-crumb') && true === WPSEO_Options::get( 'breadcrumbs-enable' ) && function_exists('yoast_breadcrumb')) {
7292
  $breadcrumb = yoast_breadcrumb('','', false);
7293
+ if( true == ampforwp_get_setting('convert-internal-nonamplinks-to-amp') && preg_match('/<a\s+href="(.*?)">(.*?)<\/a>/', $breadcrumb)){
7294
+ $breadcrumb = preg_replace('/<a\s+href="(.*?)\/">(.*?)<\/a>/', '<a href="'.ampforwp_url_controller("$1").'">$2</a>', $breadcrumb);
7295
+ }
7296
  return $breadcrumb;
7297
  }
7298
  }
7859
  return false;
7860
  }
7861
 
7862
+ // Generating canonical url when FlexMLS plugin is active.
7863
+ if(class_exists('flexmlsConnectPageSearchResults')){
7864
+ add_action('pre_amp_render_post','ampforwp_flexmls_canonical');
7865
+ }
7866
+ function ampforwp_flexmls_canonical(){
7867
+ add_filter('wpseo_canonical','ampforwp_flexmls_generate_canonical_url',99,2);
7868
+ }
7869
+
7870
+ function ampforwp_flexmls_generate_canonical_url($canonical,$object){
7871
+ $canonical = $object->model->permalink;
7872
+ return esc_url($canonical);
7873
+ }
7874
  // Font Selector
7875
  if( ! function_exists('ampforwp_font_selector') ) {
7876
  function ampforwp_font_selector( $container ) {
8097
  $content = preg_replace('/<form class="mv-create-print-form">(.*?)<\/form>/s', '', $content);
8098
  }
8099
  // close #4206
8100
+ // Ticket #4539
8101
+ if(function_exists('orbital_setup')){
8102
+ if(preg_match('/<script>function orbital_expand_navbar(.*?)<\/script>/', $content)){
8103
+ $content = preg_replace('/<script>function orbital_expand_navbar(.*?)<\/script>/', '', $content);
8104
+ }
8105
+ }
8106
  return $content;
8107
  }
8108
  add_filter('ampforwp_the_content_last_filter','ampforwp_include_required_scripts',12);
8269
  }
8270
  }
8271
 
8272
+ $amp_brid_player = $xpath->query("//amp-brid-player");
8273
+ foreach($amp_brid_player as $node) {
8274
+ if($node->hasAttribute('dock')){
8275
+ if(ampforwp_get_setting('ampforwp-amp-video-docking')){
8276
+ $celem = 'element';
8277
+ $ocomp = 'amp-video-docking';
8278
+ if(!preg_match('/<script(\s|\sasync\s)custom-'.esc_attr($celem).'="'.esc_attr($ocomp).'"(.*?)>(.*?)<\/script>/s', $content)){
8279
+ $o_comp_url = 'https://cdn.ampproject.org/v0/'.esc_attr($ocomp).'-'.esc_attr($script_ver).'.js';
8280
+ $script_tag = '<head><script custom-'.esc_attr($celem).'="'.esc_attr($ocomp).'" src="'.esc_url($o_comp_url).'" async></script>';
8281
+ $content = str_replace('<head>', $script_tag, $content);
8282
+ }
8283
+ }else{
8284
+ if(preg_match('/<amp-brid-player(.*?) dock|dock=">/', $content)){
8285
+ $content = preg_replace('/<amp-brid-player(.*?) dock|dock=">/','<amp-brid-player $1>', $content);
8286
+ }
8287
+ }
8288
+ }
8289
+ }
8290
+ $amp_brightcove = $xpath->query("//amp-brightcove");
8291
+ foreach($amp_brightcove as $node) {
8292
+ if($node->hasAttribute('dock')){
8293
+ if(ampforwp_get_setting('ampforwp-amp-video-docking')){
8294
+ $celem = 'element';
8295
+ $ocomp = 'amp-video-docking';
8296
+ if(!preg_match('/<script(\s|\sasync\s)custom-'.esc_attr($celem).'="'.esc_attr($ocomp).'"(.*?)>(.*?)<\/script>/s', $content)){
8297
+ $o_comp_url = 'https://cdn.ampproject.org/v0/'.esc_attr($ocomp).'-'.esc_attr($script_ver).'.js';
8298
+ $script_tag = '<head><script custom-'.esc_attr($celem).'="'.esc_attr($ocomp).'" src="'.esc_url($o_comp_url).'" async></script>';
8299
+ $content = str_replace('<head>', $script_tag, $content);
8300
+ }
8301
+ }else{
8302
+ if(preg_match('/<amp-brightcove(.*?) dock|dock=">/', $content)){
8303
+ $content = preg_replace('/<amp-brightcove(.*?) dock|dock=">/','<amp-brightcove $1>', $content);
8304
+ }
8305
+ }
8306
+ }
8307
+ }
8308
+
8309
  // Scripts added from Options panel should have higher priority #4064
8310
  if( ampforwp_get_setting('amp-header-text-area-for-html') && ampforwp_get_setting('amp-header-text-area-for-html')!="") {
8311
  $allscripts = ampforwp_get_setting('amp-header-text-area-for-html');