AMP for WP – Accelerated Mobile Pages - Version 1.0.77.15

Version Description

(27th July 2021) = * Improvements: Added Yoast custom breadcrumbs title support #5100 * Fixed: Author name only showing for the first post on homepage #5099 * Fixed: Youtube videos does not appear on the AMP page with the Video Yoast plugin * Fixed: The parent tag of tag picture must be noscript validation error #5097

Download this release

Release Info

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

Code changes from version 1.0.77.14 to 1.0.77.15

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.8
7
- Stable tag: 1.0.77.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -197,6 +197,12 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
197
 
198
  == Changelog ==
199
 
 
 
 
 
 
 
200
  = 1.0.77.14 (20th July 2021) =
201
  * Fixed: AMP page not showing with query string from 1.0.66 version #5096
202
  * Fixed: Related posts title and excerpt not appearing properly #5095
@@ -208,8 +214,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
208
  * Fixed: Exclude Categories is not working #5088
209
  * Fixed: Long word post title not breaking in mobile view #5092
210
 
211
- = 1.0.77.12 (12th July 2021) =
212
- * Fixed: Exclude categories loop not working #5088
213
- * Fixed: Endpoint '?amp' not working with plain permalink #5087
214
-
215
  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.8
7
+ Stable tag: 1.0.77.15
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
197
 
198
  == Changelog ==
199
 
200
+ = 1.0.77.15 (27th July 2021) =
201
+ * Improvements: Added Yoast custom breadcrumbs title support #5100
202
+ * Fixed: Author name only showing for the first post on homepage #5099
203
+ * Fixed: Youtube videos does not appear on the AMP page with the Video Yoast plugin
204
+ * Fixed: The parent tag of tag ‘picture’ must be noscript validation error #5097
205
+
206
  = 1.0.77.14 (20th July 2021) =
207
  * Fixed: AMP page not showing with query string from 1.0.66 version #5096
208
  * Fixed: Related posts title and excerpt not appearing properly #5095
214
  * Fixed: Exclude Categories is not working #5088
215
  * Fixed: Long word post title not breaking in mobile view #5092
216
 
 
 
 
 
217
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
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.77.14
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.77.14');
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.77.15
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.77.15');
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,11 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
3
  = 1.0.77.14 (20th July 2021) =
4
  * Fixed: AMP page not showing with query string from 1.0.66 version #5096
5
  * Fixed: Related posts title and excerpt not appearing properly #5095
1
  == Changelog ==
2
 
3
+ = 1.0.77.15 (27th July 2021) =
4
+ * Improvements: Added Yoast custom breadcrumbs title support #5100
5
+ * Fixed: Author name only showing for the first post on homepage #5099
6
+ * Fixed: Youtube videos does not appear on the AMP page with the Video Yoast plugin
7
+ * Fixed: The parent tag of tag ‘picture’ must be noscript validation error #5097
8
+
9
  = 1.0.77.14 (20th July 2021) =
10
  * Fixed: AMP page not showing with query string from 1.0.66 version #5096
11
  * Fixed: Related posts title and excerpt not appearing properly #5095
components/breadcrumb/breadcrumb.php CHANGED
@@ -106,7 +106,12 @@ function amp_breadcrumb_output(){
106
  $tags_breadcrumbs .= '<li class="item-tag item-tag-' . esc_attr($tag_id) . ' item-tag-' . esc_attr($tag_name) . '"><a class="bread-tag bread-tag-' . esc_attr($tag_id) . ' bread-tag-' . esc_attr($tag_name) . '" href="' . esc_url($tag_link) . '" title="' . esc_attr($tag_name) . '">' . esc_html($tag_name) . '</a></li>';
107
  }
108
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
109
- $tags_breadcrumbs .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( get_the_title(ampforwp_get_the_ID()) ). '</span></li>';
 
 
 
 
 
110
  }
111
  echo $tags_breadcrumbs; // Escaped above
112
  }
@@ -146,7 +151,12 @@ function amp_breadcrumb_output(){
146
  $cat_display .= '<li class="item-cat item-cat-' . esc_attr($cat_id) . '"><a class="bread-cat bread-cat-' . esc_attr($cat_id) . ' bread-cat-' . esc_attr($parents). '" href="'. esc_url($cat_link).'" title="' . esc_attr($parents) . '">' . esc_html($parents) . '</a></li>';
147
  }
148
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
149
- $cat_display .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( get_the_title(ampforwp_get_the_ID()) ). '</span></li>';
 
 
 
 
 
150
  }
151
  }
152
  }
106
  $tags_breadcrumbs .= '<li class="item-tag item-tag-' . esc_attr($tag_id) . ' item-tag-' . esc_attr($tag_name) . '"><a class="bread-tag bread-tag-' . esc_attr($tag_id) . ' bread-tag-' . esc_attr($tag_name) . '" href="' . esc_url($tag_link) . '" title="' . esc_attr($tag_name) . '">' . esc_html($tag_name) . '</a></li>';
107
  }
108
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
109
+ if (function_exists('wpseo_premium_run_upgrade') && !empty(WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID()))) {
110
+ $bc_title = WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID() );
111
+ }else{
112
+ $bc_title = get_the_title(ampforwp_get_the_ID());
113
+ }
114
+ $tags_breadcrumbs .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( $bc_title ). '</span></li>';
115
  }
116
  echo $tags_breadcrumbs; // Escaped above
117
  }
151
  $cat_display .= '<li class="item-cat item-cat-' . esc_attr($cat_id) . '"><a class="bread-cat bread-cat-' . esc_attr($cat_id) . ' bread-cat-' . esc_attr($parents). '" href="'. esc_url($cat_link).'" title="' . esc_attr($parents) . '">' . esc_html($parents) . '</a></li>';
152
  }
153
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
154
+ if (function_exists('wpseo_premium_run_upgrade') && !empty(WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID()))) {
155
+ $bc_title = WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID() );
156
+ }else{
157
+ $bc_title = get_the_title(ampforwp_get_the_ID());
158
+ }
159
+ $cat_display .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( $bc_title ). '</span></li>';
160
  }
161
  }
162
  }
includes/features/performance/performance-functions.php CHANGED
@@ -79,6 +79,9 @@ function ampforwp_minify_html_output($content_buffer){
79
  $content_buffer = preg_replace('/ga\(\'create\',(.*?),\s{\s\'cookieDomain\':\s\'(.*?)\'\s}\s\);/', '', $content_buffer);
80
  $content_buffer = preg_replace('/ga\(\'(.*?)\',(.*?)\'(.*?)\'\);/', '', $content_buffer);
81
  }
 
 
 
82
  global $redux_builder_amp;
83
  if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
84
  return $content_buffer;
79
  $content_buffer = preg_replace('/ga\(\'create\',(.*?),\s{\s\'cookieDomain\':\s\'(.*?)\'\s}\s\);/', '', $content_buffer);
80
  $content_buffer = preg_replace('/ga\(\'(.*?)\',(.*?)\'(.*?)\'\);/', '', $content_buffer);
81
  }
82
+ if(preg_match('/<picture(.*?)<\/picture>/s', $content_buffer)){
83
+ $content_buffer = preg_replace('/<picture(.*?)<\/picture>/s', '<noscript><picture$1</picture></noscript>', $content_buffer);
84
+ }
85
  global $redux_builder_amp;
86
  if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
87
  return $content_buffer;
includes/options/admin-config.php CHANGED
@@ -5903,6 +5903,13 @@ Redux::setSection( $opt_name, array(
5903
  'default' => 1,
5904
  'tooltip-subtitle' => esc_html__('Enabel this option to show data below each post of Home page loop'),
5905
  ),
 
 
 
 
 
 
 
5906
  )
5907
  ));
5908
  $yoast_primary_cat = '';
5903
  'default' => 1,
5904
  'tooltip-subtitle' => esc_html__('Enabel this option to show data below each post of Home page loop'),
5905
  ),
5906
+ array(
5907
+ 'id' => 'amforwp-homepage-author-switch',
5908
+ 'type' => 'switch',
5909
+ 'title' => esc_html__('Author Name in Loop', 'accelerated-mobile-pages'),
5910
+ 'default' => 0,
5911
+ 'tooltip-subtitle' => esc_html__('Enabel this option to show author name below each post of Home page loop'),
5912
+ ),
5913
  )
5914
  ));
5915
  $yoast_primary_cat = '';
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.8
7
- Stable tag: 1.0.77.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -194,6 +194,12 @@ You can contact us from [here](https://ampforwp.com/contact/)
194
 
195
  == Changelog ==
196
 
 
 
 
 
 
 
197
  = 1.0.77.14 (20th July 2021) =
198
  * Fixed: AMP page not showing with query string from 1.0.66 version #5096
199
  * Fixed: Related posts title and excerpt not appearing properly #5095
@@ -205,8 +211,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
205
  * Fixed: Exclude Categories is not working #5088
206
  * Fixed: Long word post title not breaking in mobile view #5092
207
 
208
- = 1.0.77.12 (12th July 2021) =
209
- * Fixed: Exclude categories loop not working #5088
210
- * Fixed: Endpoint '?amp' not working with plain permalink #5087
211
-
212
  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.8
7
+ Stable tag: 1.0.77.15
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
194
 
195
  == Changelog ==
196
 
197
+ = 1.0.77.15 (27th July 2021) =
198
+ * Improvements: Added Yoast custom breadcrumbs title support #5100
199
+ * Fixed: Author name only showing for the first post on homepage #5099
200
+ * Fixed: Youtube videos does not appear on the AMP page with the Video Yoast plugin
201
+ * Fixed: The parent tag of tag ‘picture’ must be noscript validation error #5097
202
+
203
  = 1.0.77.14 (20th July 2021) =
204
  * Fixed: AMP page not showing with query string from 1.0.66 version #5096
205
  * Fixed: Related posts title and excerpt not appearing properly #5095
211
  * Fixed: Exclude Categories is not working #5088
212
  * Fixed: Long word post title not breaking in mobile view #5092
213
 
 
 
 
 
214
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/design-1/elements/bread-crumbs.php CHANGED
@@ -100,7 +100,12 @@ if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is
100
  $tags_breadcrumbs .= '<li class="item-tag item-tag-' . esc_attr($tag_id) . ' item-tag-' . esc_attr($tag_name) . '"><a class="bread-tag bread-tag-' . esc_attr($tag_id) . ' bread-tag-' . esc_attr($tag_name) . '" href="' . esc_url($tag_link) . '" title="' . esc_attr($tag_name) . '">' . esc_html($tag_name) . '</a></li>';
101
  }
102
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
103
- $tags_breadcrumbs .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( get_the_title(ampforwp_get_the_ID()) ). '</span></li>';
 
 
 
 
 
104
  }
105
  echo $tags_breadcrumbs; // escaped above
106
  }
@@ -141,7 +146,12 @@ if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is
141
  $cat_display .= '<li class="item-cat item-cat-' . $cat_id . '"><a class="bread-cat bread-cat-' . $cat_id . ' bread-cat-' . $parents. '" href="'. esc_url($cat_link).'" title="'.esc_attr($parents).'">'.esc_html($parents).'</a></li>';
142
  }
143
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
144
- $cat_display .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( get_the_title(ampforwp_get_the_ID()) ). '</span></li>';
 
 
 
 
 
145
  }
146
  }
147
  }
100
  $tags_breadcrumbs .= '<li class="item-tag item-tag-' . esc_attr($tag_id) . ' item-tag-' . esc_attr($tag_name) . '"><a class="bread-tag bread-tag-' . esc_attr($tag_id) . ' bread-tag-' . esc_attr($tag_name) . '" href="' . esc_url($tag_link) . '" title="' . esc_attr($tag_name) . '">' . esc_html($tag_name) . '</a></li>';
101
  }
102
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
103
+ if (function_exists('wpseo_premium_run_upgrade') && !empty(WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID()))) {
104
+ $bc_title = WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID() );
105
+ }else{
106
+ $bc_title = get_the_title(ampforwp_get_the_ID());
107
+ }
108
+ $tags_breadcrumbs .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( $bc_title ). '</span></li>';
109
  }
110
  echo $tags_breadcrumbs; // escaped above
111
  }
146
  $cat_display .= '<li class="item-cat item-cat-' . $cat_id . '"><a class="bread-cat bread-cat-' . $cat_id . ' bread-cat-' . $parents. '" href="'. esc_url($cat_link).'" title="'.esc_attr($parents).'">'.esc_html($parents).'</a></li>';
147
  }
148
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
149
+ if (function_exists('wpseo_premium_run_upgrade') && !empty(WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID()))) {
150
+ $bc_title = WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID() );
151
+ }else{
152
+ $bc_title = get_the_title(ampforwp_get_the_ID());
153
+ }
154
+ $cat_display .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( $bc_title ). '</span></li>';
155
  }
156
  }
157
  }
templates/design-manager/design-2/elements/bread-crumbs.php CHANGED
@@ -100,7 +100,12 @@ if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is
100
  $tags_breadcrumbs .= '<li class="item-tag item-tag-' . esc_attr($tag_id) . ' item-tag-' . esc_attr($tag_name) . '"><a class="bread-tag bread-tag-' . esc_attr($tag_id) . ' bread-tag-' . esc_attr($tag_name) . '" href="' . esc_url($tag_link) . '" title="' . esc_attr($tag_name) . '">' . esc_attr($tag_name) . '</a></li>';
101
  }
102
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
103
- $tags_breadcrumbs .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( get_the_title(ampforwp_get_the_ID()) ). '</span></li>';
 
 
 
 
 
104
  }
105
  echo $tags_breadcrumbs; // escaped above
106
  }
@@ -139,7 +144,12 @@ if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is
139
  $cat_display .= '<li class="item-cat item-cat-' . $cat_id . '"><a class="bread-cat bread-cat-' . $cat_id . ' bread-cat-' . $parents. '" href="'. esc_url($cat_link).'" title="'.esc_attr($parents).'">'.esc_html($parents).'</a></li>';
140
  }
141
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
142
- $cat_display .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( get_the_title(ampforwp_get_the_ID()) ). '</span></li>';
 
 
 
 
 
143
  }
144
  }
145
  }
100
  $tags_breadcrumbs .= '<li class="item-tag item-tag-' . esc_attr($tag_id) . ' item-tag-' . esc_attr($tag_name) . '"><a class="bread-tag bread-tag-' . esc_attr($tag_id) . ' bread-tag-' . esc_attr($tag_name) . '" href="' . esc_url($tag_link) . '" title="' . esc_attr($tag_name) . '">' . esc_attr($tag_name) . '</a></li>';
101
  }
102
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
103
+ if (function_exists('wpseo_premium_run_upgrade') && !empty(WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID()))) {
104
+ $bc_title = WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID() );
105
+ }else{
106
+ $bc_title = get_the_title(ampforwp_get_the_ID());
107
+ }
108
+ $tags_breadcrumbs .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( $bc_title ). '</span></li>';
109
  }
110
  echo $tags_breadcrumbs; // escaped above
111
  }
144
  $cat_display .= '<li class="item-cat item-cat-' . $cat_id . '"><a class="bread-cat bread-cat-' . $cat_id . ' bread-cat-' . $parents. '" href="'. esc_url($cat_link).'" title="'.esc_attr($parents).'">'.esc_html($parents).'</a></li>';
145
  }
146
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
147
+ if (function_exists('wpseo_premium_run_upgrade') && !empty(WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID()))) {
148
+ $bc_title = WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID() );
149
+ }else{
150
+ $bc_title = get_the_title(ampforwp_get_the_ID());
151
+ }
152
+ $cat_display .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( $bc_title ). '</span></li>';
153
  }
154
  }
155
  }
templates/design-manager/design-3/elements/bread-crumbs.php CHANGED
@@ -100,7 +100,12 @@ if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is
100
  $tags_breadcrumbs .= '<li class="item-tag item-tag-' . esc_attr($tag_id) . ' item-tag-' . esc_attr($tag_name) . '"><a class="bread-tag bread-tag-' . esc_attr($tag_id) . ' bread-tag-' . esc_attr($tag_name) . '" href="' . esc_url($tag_link) . '" title="'.esc_attr($tag_name).'">'.esc_html($tag_name).'</a></li>';
101
  }
102
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
103
- $tags_breadcrumbs .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( get_the_title(ampforwp_get_the_ID()) ). '</span></li>';
 
 
 
 
 
104
  }
105
  echo $tags_breadcrumbs; // escaped above
106
  }
@@ -138,7 +143,12 @@ if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is
138
  $cat_display .= '<li class="item-cat item-cat-' . $cat_id . '"><a class="bread-cat bread-cat-' . $cat_id . ' bread-cat-' . $parents. '" href="'. esc_url($cat_link).'" title="'.esc_attr($parents).'">'.esc_html($parents).'</a></li>';
139
  }
140
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
141
- $cat_display .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( get_the_title(ampforwp_get_the_ID()) ). '</span></li>';
 
 
 
 
 
142
  }
143
  }
144
  }
100
  $tags_breadcrumbs .= '<li class="item-tag item-tag-' . esc_attr($tag_id) . ' item-tag-' . esc_attr($tag_name) . '"><a class="bread-tag bread-tag-' . esc_attr($tag_id) . ' bread-tag-' . esc_attr($tag_name) . '" href="' . esc_url($tag_link) . '" title="'.esc_attr($tag_name).'">'.esc_html($tag_name).'</a></li>';
101
  }
102
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
103
+ if (function_exists('wpseo_premium_run_upgrade') && !empty(WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID()))) {
104
+ $bc_title = WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID() );
105
+ }else{
106
+ $bc_title = get_the_title(ampforwp_get_the_ID());
107
+ }
108
+ $tags_breadcrumbs .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( $bc_title ). '</span></li>';
109
  }
110
  echo $tags_breadcrumbs; // escaped above
111
  }
143
  $cat_display .= '<li class="item-cat item-cat-' . $cat_id . '"><a class="bread-cat bread-cat-' . $cat_id . ' bread-cat-' . $parents. '" href="'. esc_url($cat_link).'" title="'.esc_attr($parents).'">'.esc_html($parents).'</a></li>';
144
  }
145
  if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
146
+ if (function_exists('wpseo_premium_run_upgrade') && !empty(WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID()))) {
147
+ $bc_title = WPSEO_Meta::get_value( 'bctitle', ampforwp_get_the_ID() );
148
+ }else{
149
+ $bc_title = get_the_title(ampforwp_get_the_ID());
150
+ }
151
+ $cat_display .='<li class="item-post item-post-' . esc_attr(ampforwp_get_the_ID()) . '"><span class="bread-post">'.wp_kses_data( $bc_title ). '</span></li>';
152
  }
153
  }
154
  }
templates/design-manager/swift/index.php CHANGED
@@ -78,6 +78,11 @@ global $redux_builder_amp; ?>
78
  <?php amp_loop_date(); ?>
79
  </div>
80
  <?php }?>
 
 
 
 
 
81
  </div>
82
  </div>
83
  <?php } $i++; ?>
78
  <?php amp_loop_date(); ?>
79
  </div>
80
  <?php }?>
81
+ <?php if( true == ampforwp_get_setting('amforwp-homepage-author-switch')){?>
82
+ <div class="pt-author" >
83
+ <?php amp_author_box( array('author_pub_name'=>true,)); ?>
84
+ </div>
85
+ <?php } ?>
86
  </div>
87
  </div>
88
  <?php } $i++; ?>
templates/design-manager/swift/style.php CHANGED
@@ -95,7 +95,7 @@ amp-carousel > amp-img > img {object-fit: contain;}
95
  .amp-carousel-img img {object-fit: contain;}
96
  amp-instagram{box-sizing: initial;}
97
  figure.aligncenter amp-img {margin: 0 auto;}
98
- .rr span,.loop-date,.fbp-cnt .amp-author,.display-name{color:#191919;}
99
  .fsp-cnt .loop-category li {padding: 8px 0px;}
100
  .fbp-cnt h2.loop-title {padding: 8px 0px;}
101
  <?php global $post;
@@ -473,7 +473,7 @@ height:<?php echo esc_html($fimg_height).'px';?>;width:<?php echo esc_html($fimg
473
  .fsp-img {margin-bottom:10px;}
474
  .fsp h2, .fsp h3{margin:0px 0px 5px 0px;font-size:20px;line-height:1.4;font-weight:500;}
475
  .at-dt{font-size:11px;color:#757575;margin:12px 0px 9px 0px; display: inline-flex;}
476
- .pt-dt{font-size:11px;color:#757575;margin: 8px 0px 0px 0px;display: inline-flex;}
477
  .arch-tlt{margin:30px 0px 30px;display:inline-block;width:100%;}
478
  .amp-archive-title, .amp-loop-label{font-weight:600;}
479
  .amp-archive-desc , .amp-archive-image{font-size: 14px;margin:8px 0px 0px 0px;color: #333;line-height:20px;}
@@ -954,7 +954,7 @@ letter-spacing: 0.10px;margin-top: 5px;font-weight: 400;}
954
  .fsp h2, .fsp h3{margin:0px 0px 5px 0px;font-size:20px;line-height:25px;font-weight:500;}
955
  .fsp-cnt .loop-category{margin-bottom:20px;}
956
  .fsp-cnt .loop-category li {font-weight: 500;}
957
- .pt-dt{font-size:11px;color:#808080;margin: 8px 0px 0px 0px;display: inline-flex;}
958
  blockquote{margin-bottom:20px;}
959
  blockquote p {font-size: 34px; line-height: 1.4; font-weight: 700; position: relative; padding: 30px 0 0 0; }
960
  blockquote p:before {content: "";border-top: 8px solid #000;width: 115px;line-height: 40px;display: inline-block;position: absolute;top: 0;}
95
  .amp-carousel-img img {object-fit: contain;}
96
  amp-instagram{box-sizing: initial;}
97
  figure.aligncenter amp-img {margin: 0 auto;}
98
+ .rr span,.loop-date,.fbp-cnt .amp-author,.display-name,.author-name{color:#191919;}
99
  .fsp-cnt .loop-category li {padding: 8px 0px;}
100
  .fbp-cnt h2.loop-title {padding: 8px 0px;}
101
  <?php global $post;
473
  .fsp-img {margin-bottom:10px;}
474
  .fsp h2, .fsp h3{margin:0px 0px 5px 0px;font-size:20px;line-height:1.4;font-weight:500;}
475
  .at-dt{font-size:11px;color:#757575;margin:12px 0px 9px 0px; display: inline-flex;}
476
+ .pt-dt,.pt-author{font-size:11px;color:#757575;margin: 8px 0px 0px 0px;display: inline-flex;}
477
  .arch-tlt{margin:30px 0px 30px;display:inline-block;width:100%;}
478
  .amp-archive-title, .amp-loop-label{font-weight:600;}
479
  .amp-archive-desc , .amp-archive-image{font-size: 14px;margin:8px 0px 0px 0px;color: #333;line-height:20px;}
954
  .fsp h2, .fsp h3{margin:0px 0px 5px 0px;font-size:20px;line-height:25px;font-weight:500;}
955
  .fsp-cnt .loop-category{margin-bottom:20px;}
956
  .fsp-cnt .loop-category li {font-weight: 500;}
957
+ .pt-dt,.pt-author{font-size:11px;color:#808080;margin: 8px 0px 0px 0px;display: inline-flex;}
958
  blockquote{margin-bottom:20px;}
959
  blockquote p {font-size: 34px; line-height: 1.4; font-weight: 700; position: relative; padding: 30px 0 0 0; }
960
  blockquote p:before {content: "";border-top: 8px solid #000;width: 115px;line-height: 40px;display: inline-block;position: absolute;top: 0;}
templates/features.php CHANGED
@@ -1157,6 +1157,9 @@ function ampforwp_remove_schema_data() {
1157
  remove_action('amp_post_template_css', array('Wppr_Public', 'amp_styles'));
1158
  remove_action('wppr_review_option_rating_css', array('Wppr_Public', 'amp_width_support'));
1159
  }
 
 
 
1160
  }
1161
  //Removing the WPTouch Pro social share links from AMP
1162
  remove_filter( 'the_content', 'foundation_handle_share_links_bottom', 100 );
1157
  remove_action('amp_post_template_css', array('Wppr_Public', 'amp_styles'));
1158
  remove_action('wppr_review_option_rating_css', array('Wppr_Public', 'amp_width_support'));
1159
  }
1160
+ if (class_exists('WPSEO_Video_Embed')) {
1161
+ ampforwp_remove_filters_for_class( 'render_block', 'WPSEO_Video_Embed', 'replace_youtube_block_html', 10 );
1162
+ }
1163
  }
1164
  //Removing the WPTouch Pro social share links from AMP
1165
  remove_filter( 'the_content', 'foundation_handle_share_links_bottom', 100 );