AMP for WP – Accelerated Mobile Pages - Version 0.9.1.2

Version Description

[20th December 2016] = * Proper Details at http://ampforwp.com/new/ * DoubleClick Support * Custom Post Type Support * Ratings Support * Comments Gaping fix * Custom Excerpt code * Better Compatibility with Yoast SEO plugin * AMP Validation error in Design 1 Fixed * Proper Homepage title & Description with Yoast SEO plugin issue fixed * Design -1 Excerpt too big for mobile devices, Fixed * Advertisement support on Design 1 * Link to Tags & Categories were having some issues. * AMP looking bad on big devices * AMP validation Improvement: Lightbox plugins compatibility * Huge Progress in AMP Validation Errors: Strip unwanted codes and tags from wp_footer for better compatibility with Plugins * Page Performance: Removed default Google font loading * Page Performance: DNS Prefetch tag added for faster DNS Handshake

Download this release

Release Info

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

Code changes from version 0.9.1.1 to 0.9.1.2

README.md CHANGED
@@ -7,7 +7,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
7
  Donate link: https://www.paypal.me/Kaludi/5
8
  Requires at least: 3.0
9
  Tested up to: 4.7
10
- Stable tag: 0.9.1
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -21,14 +21,16 @@ Automatically add Accelerated Mobile Pages (Google AMP Project) functionality on
21
  [youtube https://www.youtube.com/watch?v=zzRy6Q_VGGc]
22
 
23
  **Features:**
24
-
 
 
25
  * NEW - Drag & Drop Page builder Added
26
  * NEW - 2 Designs Added
27
  * NEW - 100% Yoast SEO support on AMP pages
28
- * NEW - AMP WooCommerce Support
29
- * NEW - Switch on/off Support for Pages on AMP
30
- * NEW - Translation Panel & RTL
31
- * NEW - Internal AMP linking - You can browse AMP pages internally
32
  * Related posts below the post
33
  * Recent Comments list
34
  * Automatically integrate AMP to your website.
@@ -124,6 +126,26 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F
124
 
125
 
126
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  = 0.9.1 [16th December 2016] =
128
  * Proper Details at http://ampforwp.com/new/
129
  * PHP7 Compatibility
7
  Donate link: https://www.paypal.me/Kaludi/5
8
  Requires at least: 3.0
9
  Tested up to: 4.7
10
+ Stable tag: 0.9.1.2
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
21
  [youtube https://www.youtube.com/watch?v=zzRy6Q_VGGc]
22
 
23
  **Features:**
24
+ * NEW - DoubleClick Support
25
+ * NEW - Custom Post Type Support
26
+ * NEW - Star Ratings
27
  * NEW - Drag & Drop Page builder Added
28
  * NEW - 2 Designs Added
29
  * NEW - 100% Yoast SEO support on AMP pages
30
+ * AMP WooCommerce Support
31
+ * Switch on/off Support for Pages on AMP
32
+ * Translation Panel & RTL
33
+ * Internal AMP linking - You can browse AMP pages internally
34
  * Related posts below the post
35
  * Recent Comments list
36
  * Automatically integrate AMP to your website.
126
 
127
 
128
  == Changelog ==
129
+
130
+ = 0.9.1.2 [20th December 2016] =
131
+ * Proper Details at http://ampforwp.com/new/
132
+ * DoubleClick Support
133
+ * Custom Post Type Support
134
+ * Ratings Support
135
+ * Comments Gaping fix
136
+ * Custom Excerpt code
137
+ * Better Compatibility with Yoast SEO plugin
138
+ * AMP Validation error in Design 1 Fixed
139
+ * Proper Homepage title & Description with Yoast SEO plugin issue fixed
140
+ * Design -1 Excerpt too big for mobile devices, Fixed
141
+ * Advertisement support on Design 1
142
+ * Link to Tags & Categories were having some issues.
143
+ * AMP looking bad on big devices
144
+ * AMP validation Improvement: Lightbox plugins compatibility
145
+ * Huge Progress in AMP Validation Errors: Strip unwanted codes and tags from wp_footer for better compatibility with Plugins
146
+ * Page Performance: Removed default Google font loading
147
+ * Page Performance: DNS Prefetch tag added for faster DNS Handshake
148
+
149
  = 0.9.1 [16th December 2016] =
150
  * Proper Details at http://ampforwp.com/new/
151
  * PHP7 Compatibility
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: 0.9.1.1
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: http://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/5
@@ -26,7 +26,7 @@ add_action( 'init', 'ampforwp_add_custom_post_support',11);
26
 
27
  define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
28
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
29
- define('AMPFORWP_VERSION','0.9.1');
30
 
31
  /*
32
  * Load Files only in the backend
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
+ Version: 0.9.1.2
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: http://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/5
26
 
27
  define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
28
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
29
+ define('AMPFORWP_VERSION','0.9.1.2');
30
 
31
  /*
32
  * Load Files only in the backend
images/amp-DoubleClick-extensions.png ADDED
Binary file
images/amp-custom-post-type-extension.png ADDED
Binary file
images/amp-rating-extension.png ADDED
Binary file
includes/options/options-init.php CHANGED
@@ -288,9 +288,9 @@
288
  // 'default' => 'Navigate'
289
  // ),
290
  array(
291
- 'id' => 'ampforwp-amp-on-off-catgs-tags',
292
  'type' => 'switch',
293
- 'title' => __('Hide AMP on Archive Pages', 'redux-framework-demo'),
294
  'subtitle' => __('Enable / Disable AMP in the categories and tags pages', 'redux-framework-demo'),
295
  'true' => 'true',
296
  'false' => 'false'
@@ -300,7 +300,7 @@
300
  'type' => 'switch',
301
  'title' => __('AMP on Pages', 'redux-framework-demo'),
302
  'subtitle' => __('Enable or Disable AMP on all Pages', 'redux-framework-demo'),
303
- 'default' => 1,
304
  ),
305
  array(
306
  'id' =>'amp-on-off-support-for-non-amp-home-page',
@@ -309,17 +309,18 @@
309
  'subtitle' => __('If you want users in header to go to non-AMP website from the Header, then you can enable this option', 'redux-framework-demo'),
310
  'default' => 0,
311
  ),
312
- // array(
313
- // 'id' => 'amp-design-selector',
314
- // 'type' => 'select',
315
- // 'title' => __( 'Design Selector', 'redux-framework-demo' ),
316
- // 'subtitle' => __( 'Select your design.', 'redux-framework-demo' ),
317
- // 'options' => array(
318
- // '1' => __('Design One', 'redux-framework-demo' ),
319
- // '2' => __('Design two', 'redux-framework-demo' )
320
- // ),
321
- // 'default' => '2'
322
- // ),
 
323
 
324
  )
325
  ) );//END
@@ -664,10 +665,6 @@ if(!is_plugin_active( 'amp-incontent-ads/amptoolkit-incontent-ads.php' ) ){
664
  '1' => 'Tags',
665
  '2' => 'Categories'
666
  ),
667
- 'args' => array(
668
- 'post_type' => 'page',
669
- 'posts_per_page' => 500
670
- ),
671
  'default' => '2',
672
  ),
673
  ),
@@ -970,17 +967,39 @@ if(!is_plugin_active( 'amp-incontent-ads/amptoolkit-incontent-ads.php' ) ){
970
  // )
971
  // ) );
972
  //
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
973
  // Extension Section
974
  Redux::setSection( $opt_name, array(
975
  'title' => __( 'Extensions', 'redux-framework-demo' ),
976
  // 'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . '<a href="http://docs.reduxframework.com/core/fields/textarea/" target="_blank">http://docs.reduxframework.com/core/fields/textarea/</a>',
977
  'id' => 'opt-go-premium',
978
  'subsection' => false,
979
- 'desc' => '<a href=" http://ampforwp.com/advanced-amp-ads/#utm_source=options-panel&utm_medium=extension-tab&utm_campaign=AMP%20Plugin " target="_blank"><img class="ampforwp-extension-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/amp-ads-extension.png" width="345" height="500" /></a>
 
 
 
 
 
 
980
 
981
- <img class="ampforwp-extension-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/extension-coming-soon.png" width="345" height="500" /> ',
 
982
  'icon' => 'el el-info-circle',
983
  ) );
984
  /*
985
  * <--- END SECTIONS
986
- */
288
  // 'default' => 'Navigate'
289
  // ),
290
  array(
291
+ 'id' => 'ampforwp-amp-archive-pages-on-off',
292
  'type' => 'switch',
293
+ 'title' => __('AMP on Archive Pages', 'redux-framework-demo'),
294
  'subtitle' => __('Enable / Disable AMP in the categories and tags pages', 'redux-framework-demo'),
295
  'true' => 'true',
296
  'false' => 'false'
300
  'type' => 'switch',
301
  'title' => __('AMP on Pages', 'redux-framework-demo'),
302
  'subtitle' => __('Enable or Disable AMP on all Pages', 'redux-framework-demo'),
303
+ 'default' => 0,
304
  ),
305
  array(
306
  'id' =>'amp-on-off-support-for-non-amp-home-page',
309
  'subtitle' => __('If you want users in header to go to non-AMP website from the Header, then you can enable this option', 'redux-framework-demo'),
310
  'default' => 0,
311
  ),
312
+ // array(
313
+ // 'id' => 'amp-ad-places',
314
+ // 'type' => 'select',
315
+ // 'title' => __( 'Ads on Page', 'redux-framework-demo' ),
316
+ // 'subtitle' => __( 'select your preferece for Ads on Post Types', 'redux-framework-demo' ),
317
+ // 'options' => array(
318
+ // '1' => __('Only on Posts', 'redux-framework-demo' ),
319
+ // '2' => __('Only on Pages', 'redux-framework-demo' ),
320
+ // '3' => __('on Both', 'redux-framework-demo' ),
321
+ // ),
322
+ // 'default' => '3'
323
+ // ),
324
 
325
  )
326
  ) );//END
665
  '1' => 'Tags',
666
  '2' => 'Categories'
667
  ),
 
 
 
 
668
  'default' => '2',
669
  ),
670
  ),
967
  // )
968
  // ) );
969
  //
970
+
971
+
972
+ // // Advance Settings SECTION
973
+ // Redux::setSection( $opt_name, array(
974
+ // 'title' => __( 'Advance Settings', 'redux-framework-demo' ),
975
+ // 'desc' => __( 'This section has Advance settings'),
976
+ // 'id' => 'amp-advance',
977
+ // 'subsection' => true,
978
+ // 'fields' => array(
979
+ //
980
+ // ),
981
+ //
982
+ // ) );
983
+ //
984
+
985
  // Extension Section
986
  Redux::setSection( $opt_name, array(
987
  'title' => __( 'Extensions', 'redux-framework-demo' ),
988
  // 'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . '<a href="http://docs.reduxframework.com/core/fields/textarea/" target="_blank">http://docs.reduxframework.com/core/fields/textarea/</a>',
989
  'id' => 'opt-go-premium',
990
  'subsection' => false,
991
+ 'desc' => '<a href="http://ampforwp.com/advanced-amp-ads/#utm_source=options-panel&utm_medium=extension-tab_advanced-amp-ads&utm_campaign=AMP%20Plugin" target="_blank"><img class="ampforwp-extension-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/amp-ads-extension.png" width="345" height="500" /></a>
992
+
993
+ <a href="http://ampforwp.com/custom-post-type/#utm_source=options-panel&utm_medium=extension-tab_custom-post-type&utm_campaign=AMP%20Plugin" target="_blank"><img class="ampforwp-extension-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/amp-custom-post-type-extension.png" width="345" height="500" /></a>
994
+
995
+ <a href="http://ampforwp.com/doubleclick-for-publishers/#utm_source=options-panel&utm_medium=extension-tab_doubleclick&utm_campaign=AMP%20Plugin" target="_blank"><img class="ampforwp-extension-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/amp-DoubleClick-extensions.png" width="345" height="500" /></a>
996
+
997
+ <a href="http://ampforwp.com/amp-ratings/#utm_source=options-panel&utm_medium=extension-tab_amp-ratings&utm_campaign=AMP%20Plugin" target="_blank"><img class="ampforwp-extension-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/amp-rating-extension.png" width="345" height="500" /></a>
998
 
999
+
1000
+ <a href="http://ampforwp.com/extensions/#utm_source=options-panel&utm_medium=extension-tab_coming-soon&utm_campaign=AMP%20Plugin" target="_blank"><img class="ampforwp-extension-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/extension-coming-soon.png" width="345" height="500" /></a>',
1001
  'icon' => 'el el-info-circle',
1002
  ) );
1003
  /*
1004
  * <--- END SECTIONS
1005
+ */
includes/options/redux-framework/assets/css/redux-admin.css CHANGED
@@ -148,4 +148,5 @@
148
  width: 345px;
149
  height: 450px !important;
150
  margin-right:20px;
 
151
  }
148
  width: 345px;
149
  height: 450px !important;
150
  margin-right:20px;
151
+ margin-bottom:20px;
152
  }
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/5
5
  Requires at least: 3.0
6
  Tested up to: 4.7
7
- Stable tag: 0.9.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -18,14 +18,16 @@ Automatically add Accelerated Mobile Pages (Google AMP Project) functionality on
18
  [youtube https://www.youtube.com/watch?v=zzRy6Q_VGGc]
19
 
20
  **Features:**
21
-
 
 
22
  * NEW - Drag & Drop Page builder Added
23
  * NEW - 2 Designs Added
24
  * NEW - 100% Yoast SEO support on AMP pages
25
- * NEW - AMP WooCommerce Support
26
- * NEW - Switch on/off Support for Pages on AMP
27
- * NEW - Translation Panel & RTL
28
- * NEW - Internal AMP linking - You can browse AMP pages internally
29
  * Related posts below the post
30
  * Recent Comments list
31
  * Automatically integrate AMP to your website.
@@ -121,6 +123,26 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F
121
 
122
 
123
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  = 0.9.1 [16th December 2016] =
125
  * Proper Details at http://ampforwp.com/new/
126
  * PHP7 Compatibility
4
  Donate link: https://www.paypal.me/Kaludi/5
5
  Requires at least: 3.0
6
  Tested up to: 4.7
7
+ Stable tag: 0.9.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
18
  [youtube https://www.youtube.com/watch?v=zzRy6Q_VGGc]
19
 
20
  **Features:**
21
+ * NEW - DoubleClick Support
22
+ * NEW - Custom Post Type Support
23
+ * NEW - Star Ratings
24
  * NEW - Drag & Drop Page builder Added
25
  * NEW - 2 Designs Added
26
  * NEW - 100% Yoast SEO support on AMP pages
27
+ * AMP WooCommerce Support
28
+ * Switch on/off Support for Pages on AMP
29
+ * Translation Panel & RTL
30
+ * Internal AMP linking - You can browse AMP pages internally
31
  * Related posts below the post
32
  * Recent Comments list
33
  * Automatically integrate AMP to your website.
123
 
124
 
125
  == Changelog ==
126
+
127
+ = 0.9.1.2 [20th December 2016] =
128
+ * Proper Details at http://ampforwp.com/new/
129
+ * DoubleClick Support
130
+ * Custom Post Type Support
131
+ * Ratings Support
132
+ * Comments Gaping fix
133
+ * Custom Excerpt code
134
+ * Better Compatibility with Yoast SEO plugin
135
+ * AMP Validation error in Design 1 Fixed
136
+ * Proper Homepage title & Description with Yoast SEO plugin issue fixed
137
+ * Design -1 Excerpt too big for mobile devices, Fixed
138
+ * Advertisement support on Design 1
139
+ * Link to Tags & Categories were having some issues.
140
+ * AMP looking bad on big devices
141
+ * AMP validation Improvement: Lightbox plugins compatibility
142
+ * Huge Progress in AMP Validation Errors: Strip unwanted codes and tags from wp_footer for better compatibility with Plugins
143
+ * Page Performance: Removed default Google font loading
144
+ * Page Performance: DNS Prefetch tag added for faster DNS Handshake
145
+
146
  = 0.9.1 [16th December 2016] =
147
  * Proper Details at http://ampforwp.com/new/
148
  * PHP7 Compatibility
templates/design-manager/design-1/elements/meta-taxonomy.php CHANGED
@@ -7,11 +7,7 @@
7
  <div class="amp-wp-meta amp-wp-tax-category">
8
  <span><?php global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-categories-text'] .' ', 'amp' )); ?></span>
9
  <?php foreach ($ampforwp_categories as $cat ) {
10
- if($redux_builder_amp['ampforwp-amp-on-off-catgs-tags']){
11
- echo (' <a href="'.get_category_link($cat->term_taxonomy_id).'" > '. $cat->name .'</a>');
12
- } else {
13
  echo (' <a href="'.trailingslashit(get_category_link($cat->term_taxonomy_id)).'?'. AMP_QUERY_VAR .'" > '. $cat->name .'</a>');
14
- }
15
  } ?>
16
  </div>
17
  <?php endif; ?>
@@ -24,11 +20,7 @@
24
  global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-tags-text'] .' ', 'amp' ));
25
  }
26
  foreach ($ampforwp_tags as $tag) {
27
- if($redux_builder_amp['ampforwp-amp-on-off-catgs-tags']){
28
- echo ('<a href="'.trailingslashit(get_tag_link($tag->term_taxonomy_id)).'">'.$tag->name .'</a>');
29
- } else {
30
- echo ('<a href="'.trailingslashit(get_tag_link($tag->term_taxonomy_id)).'?amp" >'.$tag->name .'</a>');
31
- }
32
  }
33
  if($redux_builder_amp['amp-rtl-select-option']) {
34
  global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-tags-text'] .' ', 'amp' ));
7
  <div class="amp-wp-meta amp-wp-tax-category">
8
  <span><?php global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-categories-text'] .' ', 'amp' )); ?></span>
9
  <?php foreach ($ampforwp_categories as $cat ) {
 
 
 
10
  echo (' <a href="'.trailingslashit(get_category_link($cat->term_taxonomy_id)).'?'. AMP_QUERY_VAR .'" > '. $cat->name .'</a>');
 
11
  } ?>
12
  </div>
13
  <?php endif; ?>
20
  global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-tags-text'] .' ', 'amp' ));
21
  }
22
  foreach ($ampforwp_tags as $tag) {
23
+ echo ('<a href="'.trailingslashit(get_tag_link($tag->term_taxonomy_id)).'?amp" >'.$tag->name .'</a>');
 
 
 
 
24
  }
25
  if($redux_builder_amp['amp-rtl-select-option']) {
26
  global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-tags-text'] .' ', 'amp' ));
templates/design-manager/design-1/elements/related-posts.php CHANGED
@@ -22,7 +22,7 @@
22
  $tag_ids = array();
23
  foreach($ampforwp_tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
24
  $args=array(
25
- 'tag__and' => $tag_ids,
26
  'post__not_in' => array($post->ID),
27
  'posts_per_page'=> 3,
28
  'caller_get_posts'=>1
@@ -50,7 +50,7 @@
50
  <a href="<?php trailingslashit(the_permalink()); ?><?php echo AMP_QUERY_VAR ;?>"><?php the_title(); ?></a>
51
  <?php
52
  if(has_excerpt()){
53
- $content = the_excerpt();
54
  }else{
55
  $content = get_the_content();
56
  }
22
  $tag_ids = array();
23
  foreach($ampforwp_tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
24
  $args=array(
25
+ 'tag__in' => $tag_ids,
26
  'post__not_in' => array($post->ID),
27
  'posts_per_page'=> 3,
28
  'caller_get_posts'=>1
50
  <a href="<?php trailingslashit(the_permalink()); ?><?php echo AMP_QUERY_VAR ;?>"><?php the_title(); ?></a>
51
  <?php
52
  if(has_excerpt()){
53
+ $content = get_the_excerpt();
54
  }else{
55
  $content = get_the_content();
56
  }
templates/design-manager/design-1/frontpage.php CHANGED
@@ -14,7 +14,9 @@
14
  <body class="single-post amp-wp-frontpage">
15
  <?php $this->load_parts( array( 'header-bar' ) ); ?>
16
 
17
- <?php do_action( 'ampforwp_after_header', $this ); ?>
 
 
18
 
19
 
20
  <div class="amp-wp-content the_content">
14
  <body class="single-post amp-wp-frontpage">
15
  <?php $this->load_parts( array( 'header-bar' ) ); ?>
16
 
17
+ <?php
18
+ // do_action( 'ampforwp_after_header', $this );
19
+ ?>
20
 
21
 
22
  <div class="amp-wp-content the_content">
templates/design-manager/design-1/header-bar.php CHANGED
@@ -51,3 +51,7 @@
51
  <?php wp_nav_menu( array( 'theme_location' => 'amp-menu' ) ); ?>
52
  </div>
53
  </amp-sidebar>
 
 
 
 
51
  <?php wp_nav_menu( array( 'theme_location' => 'amp-menu' ) ); ?>
52
  </div>
53
  </amp-sidebar>
54
+
55
+ <?php
56
+
57
+ do_action('ampforwp_design_1_after_header');
templates/design-manager/design-1/index.php CHANGED
@@ -3,6 +3,7 @@
3
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
4
  <head>
5
  <meta charset="utf-8">
 
6
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
7
  <?php do_action( 'amp_post_template_head', $this ); ?>
8
  <style amp-custom>
@@ -13,10 +14,10 @@
13
 
14
  <body class="<?php echo esc_attr( $this->get( 'body_class' ) ); ?>">
15
 
16
- <article class="amp-wp-article ampforwp-custom-index amp-wp-home">
17
-
18
  <?php $this->load_parts( array( 'header-bar' ) ); ?>
19
 
 
 
20
  <?php do_action('ampforwp_post_before_design_elements') ?>
21
 
22
  <?php
@@ -57,7 +58,7 @@
57
  $content = get_the_content();
58
  }
59
  ?>
60
- <p><?php echo wp_trim_words( $content , '50'); ?></p>
61
 
62
  </div>
63
 
@@ -80,7 +81,7 @@
80
 
81
  </article>
82
 
83
-
84
 
85
  <?php $this->load_parts( array( 'footer' ) ); ?>
86
 
3
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
4
  <head>
5
  <meta charset="utf-8">
6
+ <link rel="dns-prefetch" href="https://cdn.ampproject.org">
7
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
8
  <?php do_action( 'amp_post_template_head', $this ); ?>
9
  <style amp-custom>
14
 
15
  <body class="<?php echo esc_attr( $this->get( 'body_class' ) ); ?>">
16
 
 
 
17
  <?php $this->load_parts( array( 'header-bar' ) ); ?>
18
 
19
+ <article class="amp-wp-article ampforwp-custom-index amp-wp-home">
20
+
21
  <?php do_action('ampforwp_post_before_design_elements') ?>
22
 
23
  <?php
58
  $content = get_the_content();
59
  }
60
  ?>
61
+ <p><?php echo wp_trim_words( $content , '20'); ?></p>
62
 
63
  </div>
64
 
81
 
82
  </article>
83
 
84
+
85
 
86
  <?php $this->load_parts( array( 'footer' ) ); ?>
87
 
templates/design-manager/design-1/single.php CHANGED
@@ -2,6 +2,7 @@
2
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
3
  <head>
4
  <meta charset="utf-8">
 
5
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
6
  <?php do_action( 'amp_post_template_head', $this ); ?>
7
  <style amp-custom>
2
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
3
  <head>
4
  <meta charset="utf-8">
5
+ <link rel="dns-prefetch" href="https://cdn.ampproject.org">
6
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
7
  <?php do_action( 'amp_post_template_head', $this ); ?>
8
  <style amp-custom>
templates/design-manager/design-1/style.php CHANGED
@@ -774,13 +774,17 @@ amp-carousel > amp-img > img {
774
  pre {
775
  white-space: pre-wrap;
776
  }
777
-
778
  <?php if($redux_builder_amp['enable-single-social-icons']){ ?>
779
- footer {
780
- padding-bottom: 50px;
781
  }
782
  <?php } ?>
783
 
 
 
 
 
784
  /* Custom Style Code */
785
  <?php echo $redux_builder_amp['css_editor'];
786
  } ?>
774
  pre {
775
  white-space: pre-wrap;
776
  }
777
+
778
  <?php if($redux_builder_amp['enable-single-social-icons']){ ?>
779
+ .amp-wp-footer {
780
+ padding-bottom: 60px;
781
  }
782
  <?php } ?>
783
 
784
+ .amp-ad-wrapper.amp_ad_1 {
785
+ padding-top : 20px;
786
+ }
787
+
788
  /* Custom Style Code */
789
  <?php echo $redux_builder_amp['css_editor'];
790
  } ?>
templates/design-manager/design-2/elements/meta-info.php CHANGED
@@ -29,11 +29,7 @@
29
  ?>
30
  </span>
31
  <?php foreach ($ampforwp_categories as $cat ) {
32
- if($redux_builder_amp['ampforwp-amp-on-off-catgs-tags']){
33
- echo ('<a href="'.get_category_link($cat->term_taxonomy_id).'" >'.$cat->name .'</a>');
34
- } else {
35
  echo ('<a href="'.trailingslashit(get_category_link($cat->term_taxonomy_id)).'?amp" >'.$cat->name .'</a>');
36
- }
37
  }
38
 
39
  //if RTL is ON
29
  ?>
30
  </span>
31
  <?php foreach ($ampforwp_categories as $cat ) {
 
 
 
32
  echo ('<a href="'.trailingslashit(get_category_link($cat->term_taxonomy_id)).'?amp" >'.$cat->name .'</a>');
 
33
  }
34
 
35
  //if RTL is ON
templates/design-manager/design-2/elements/meta-taxonomy.php CHANGED
@@ -10,11 +10,7 @@
10
  }
11
 
12
  foreach ($ampforwp_tags as $tag) {
13
- if($redux_builder_amp['ampforwp-amp-on-off-catgs-tags']){
14
- echo ('<a href="'.trailingslashit(get_tag_link($tag->term_taxonomy_id)).'">'.$tag->name .'</a>');
15
- } else {
16
- echo ('<a href="'.trailingslashit(get_tag_link($tag->term_taxonomy_id)).'?amp" >'.$tag->name .'</a>');
17
- }
18
  }
19
 
20
  //if RTL is ON
10
  }
11
 
12
  foreach ($ampforwp_tags as $tag) {
13
+ echo ('<a href="'.trailingslashit(get_tag_link($tag->term_taxonomy_id)).'?amp" >'.$tag->name .'</a>');
 
 
 
 
14
  }
15
 
16
  //if RTL is ON
templates/design-manager/design-2/elements/related-posts.php CHANGED
@@ -22,10 +22,10 @@
22
  $tag_ids = array();
23
  foreach($ampforwp_tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
24
  $args=array(
25
- 'tag__and' => $tag_ids,
26
  'post__not_in' => array($post->ID),
27
  'posts_per_page'=> 3,
28
- 'caller_get_posts'=>1
29
  );
30
  }
31
  }//end of block for tags
22
  $tag_ids = array();
23
  foreach($ampforwp_tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
24
  $args=array(
25
+ 'tag__in' => $tag_ids,
26
  'post__not_in' => array($post->ID),
27
  'posts_per_page'=> 3,
28
+ 'caller_get_posts'=>1,
29
  );
30
  }
31
  }//end of block for tags
templates/design-manager/design-2/index.php CHANGED
@@ -3,6 +3,7 @@
3
  <html amp>
4
  <head>
5
  <meta charset="utf-8">
 
6
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
7
  <?php do_action( 'amp_post_template_head', $this ); ?>
8
 
@@ -42,7 +43,7 @@
42
  <?php
43
 
44
  if(has_excerpt()){
45
- $content = the_excerpt();
46
  }else{
47
  $content = get_the_content();
48
  }
3
  <html amp>
4
  <head>
5
  <meta charset="utf-8">
6
+ <link rel="dns-prefetch" href="https://cdn.ampproject.org">
7
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
8
  <?php do_action( 'amp_post_template_head', $this ); ?>
9
 
43
  <?php
44
 
45
  if(has_excerpt()){
46
+ $content = get_the_excerpt();
47
  }else{
48
  $content = get_the_content();
49
  }
templates/design-manager/design-2/single.php CHANGED
@@ -3,6 +3,7 @@
3
  <html amp>
4
  <head>
5
  <meta charset="utf-8">
 
6
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
7
  <?php do_action( 'amp_post_template_head', $this ); ?>
8
  <style amp-custom>
3
  <html amp>
4
  <head>
5
  <meta charset="utf-8">
6
+ <link rel="dns-prefetch" href="https://cdn.ampproject.org">
7
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
8
  <?php do_action( 'amp_post_template_head', $this ); ?>
9
  <style amp-custom>
templates/design-manager/design-2/style.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php global $redux_builder_amp; ?>
2
  <?php
 
 
 
3
  add_action('amp_post_template_css', 'ampforwp_additional_style_input_2');
4
 
5
  function ampforwp_additional_style_input_2( $amp_template ) {
@@ -401,6 +404,18 @@ main .amp-wp-content.featured-image-content {
401
  margin-bottom: 0;
402
  box-shadow: none
403
  }
 
 
 
 
 
 
 
 
 
 
 
 
404
 
405
  /* Related Posts */
406
  main .amp-wp-content.relatedpost {
@@ -408,7 +423,7 @@ main .amp-wp-content.relatedpost {
408
  box-shadow: none;
409
  max-width: 1030px;
410
  padding:0px 0 0 0;
411
- margin:1.8em 0px 1.5em 0px
412
  }
413
  .related_posts h3, .comments_list h3{
414
  font-size: 14px;
@@ -752,7 +767,7 @@ amp-user-notification button {
752
  }
753
  <?php if( $redux_builder_amp['enable-single-social-icons'] == true ) { ?>
754
  .single-post footer {
755
- padding-bottom: 40px;
756
  }
757
  .amp-ad-2{ margin-bottom: 50px; }
758
  <?php } ?>
@@ -792,6 +807,7 @@ amp-user-notification button {
792
 
793
 
794
 
 
795
  /* Custom Style Code */
796
  <?php echo $redux_builder_amp['css_editor'];
797
  } ?>
1
  <?php global $redux_builder_amp; ?>
2
  <?php
3
+ add_action( 'amp_post_template_head', function() {
4
+ remove_action( 'amp_post_template_head', 'amp_post_template_add_fonts' );
5
+ }, 9 );
6
  add_action('amp_post_template_css', 'ampforwp_additional_style_input_2');
7
 
8
  function ampforwp_additional_style_input_2( $amp_template ) {
404
  margin-bottom: 0;
405
  box-shadow: none
406
  }
407
+ .amp-wp-content.post-pagination-meta{
408
+ max-width: 1030px;
409
+ }
410
+ .single-post .ampforwp-social-icons.ampforwp-social-icons-wrapper {
411
+ display: block;
412
+ margin: 2em auto 0.9em auto ;
413
+ max-width: 1030px;
414
+ }
415
+ .amp-wp-article-header.amp-wp-article-category.ampforwp-meta-taxonomy {
416
+ margin: 10px auto;
417
+ max-width: 1030px;
418
+ }
419
 
420
  /* Related Posts */
421
  main .amp-wp-content.relatedpost {
423
  box-shadow: none;
424
  max-width: 1030px;
425
  padding:0px 0 0 0;
426
+ margin:1.8em auto 1.5em auto
427
  }
428
  .related_posts h3, .comments_list h3{
429
  font-size: 14px;
767
  }
768
  <?php if( $redux_builder_amp['enable-single-social-icons'] == true ) { ?>
769
  .single-post footer {
770
+ padding-bottom: 60px;
771
  }
772
  .amp-ad-2{ margin-bottom: 50px; }
773
  <?php } ?>
807
 
808
 
809
 
810
+
811
  /* Custom Style Code */
812
  <?php echo $redux_builder_amp['css_editor'];
813
  } ?>
templates/features.php CHANGED
@@ -82,10 +82,10 @@
82
  }
83
 
84
  //checking if the user wants amp page for archives or not
85
- if( is_archive() && $redux_builder_amp['ampforwp-amp-on-off-catgs-tags']=='1') {
86
- // Dont do anything :)
87
- } else {
88
  printf( '<link rel="amphtml" href="%s" />', esc_url( $amp_url ) );
 
 
89
  }
90
  // end of checking if the user wants amp page for archives or not
91
  }
@@ -173,30 +173,24 @@
173
  return 1000;
174
  }
175
 
176
- // 6. Add required Javascripts for extra AMP features
177
- add_action('amp_post_template_head','ampforwp_register_additional_scripts');
178
- function ampforwp_register_additional_scripts() {
179
- global $redux_builder_amp;
180
- ?>
181
- <script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
182
- <script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
183
- <script async custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script>
184
- <?php if($redux_builder_amp['amp-enable-notifications'] == true) { ?>
185
- <script async custom-element="amp-user-notification" src="https://cdn.ampproject.org/v0/amp-user-notification-0.1.js"></script>
186
- <?php } ?>
187
- <?php if( $redux_builder_amp['enable-single-social-icons'] == true || AMPFORWP_DM_SOCIAL_CHECK === 'true' ) {
188
-
189
-
190
- ?>
191
- <script async custom-element="amp-social-share" src="https://cdn.ampproject.org/v0/amp-social-share-0.1.js"></script>
192
- <?php } ?>
193
- <!-- AMP Advertisement Script -->
194
- <script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
195
-
196
- <?php }
197
-
198
-
199
- // 7. Footer for AMP Pages
200
  add_filter( 'amp_post_template_file', 'ampforwp_custom_footer', 10, 3 );
201
  function ampforwp_custom_footer( $file, $type, $post ) {
202
  if ( 'footer' === $type ) {
@@ -208,7 +202,7 @@
208
  add_action('ampforwp_global_after_footer','ampforwp_footer');
209
  function ampforwp_footer() {
210
  global $redux_builder_amp; ?>
211
- <!--Plugin Verion :<?php echo (AMPFORWP_VERSION); ?> -->
212
  <?php if($redux_builder_amp['amp-enable-notifications'] == true) { ?>
213
  <!-- Thanks to @nicholasgriffintn for Cookie Notification Code-->
214
  <amp-user-notification layout=nodisplay id="amp-user-notification1">
@@ -224,6 +218,7 @@
224
  // 9. Advertisement code
225
  // Below Header Global
226
  add_action('ampforwp_after_header','ampforwp_header_advert');
 
227
 
228
  function ampforwp_header_advert() {
229
  global $redux_builder_amp;
@@ -306,6 +301,7 @@
306
 
307
  // Below Title Single
308
  add_action('ampforwp_before_post_content','ampforwp_before_post_content_advert');
 
309
 
310
  function ampforwp_before_post_content_advert() {
311
  global $redux_builder_amp;
@@ -346,7 +342,8 @@
346
  }
347
 
348
  // Below Content Single
349
- add_action('ampforwp_after_post_content','ampforwp_after_post_content_advert');
 
350
  function ampforwp_after_post_content_advert() {
351
  global $redux_builder_amp;
352
 
@@ -434,7 +431,7 @@
434
  // 11. Strip unwanted codes and tags from the_content
435
  add_action( 'pre_amp_render_post','ampforwp_strip_invalid_content');
436
  function ampforwp_strip_invalid_content() {
437
- add_filter( 'the_content', 'ampforwp_the_content_filter', 20 );
438
  }
439
  function ampforwp_the_content_filter( $content ) {
440
  $content = preg_replace('/property=[^>]*/', '', $content);
@@ -447,7 +444,6 @@
447
  $content = preg_replace('/security=[^>]*/', '', $content);
448
  $content = preg_replace('/deposit=[^>]*/', '', $content);
449
  $content = preg_replace('/for=[^>]*/', '', $content);
450
- $content = preg_replace('/style=[^>]*/', '', $content);
451
  $content = preg_replace('/nowrap="nowrap"/', '', $content);
452
  $content = preg_replace('#<comments-count.*?>(.*?)</comments-count>#i', '', $content);
453
  $content = preg_replace('#<time.*?>(.*?)</time>#i', '', $content);
@@ -460,7 +456,9 @@
460
  $content = preg_replace('/<script[^>]*>.*?<\/script>/i', '', $content);
461
  //for removing attributes within html tags
462
  $content = preg_replace('/(<[^>]+) onclick=".*?"/', '$1', $content);
 
463
  $content = preg_replace('/(<[^>]+) rel=".*?"/', '$1', $content);
 
464
  $content = preg_replace('/(<[^>]+) date/', '$1', $content);
465
 
466
  //removing scripts and rel="nofollow" from Body and from divs
@@ -472,6 +470,17 @@
472
  return $content;
473
  }
474
 
 
 
 
 
 
 
 
 
 
 
 
475
  // 11.5 Strip unwanted codes the_content of Frontpage
476
  add_action( 'pre_amp_render_post','ampforwp_strip_invalid_content_frontpage');
477
  function ampforwp_strip_invalid_content_frontpage(){
@@ -836,8 +845,8 @@ function remove_this(){
836
  // title for a single post and single page
837
  if( is_single() || is_page() ){
838
  global $post;
839
- $titl = $post->post_title;
840
- echo $titl;
841
  }
842
  // title for archive pages
843
  if ( is_archive() ) {
@@ -847,12 +856,12 @@ function remove_this(){
847
  // title for Static front page
848
  if ( $redux_builder_amp['amp-frontpage-select-option']== 1 && ( is_front_page() ) ) {
849
  $ID = $redux_builder_amp['amp-frontpage-select-option-pages'];
850
- echo get_the_title( $ID );
851
 
852
  }
853
  // title for index page
854
  if ( is_front_page() && $redux_builder_amp['amp-frontpage-select-option']== 0 ) {
855
- echo bloginfo('name') ;
856
  }
857
  ?>
858
  </title>
82
  }
83
 
84
  //checking if the user wants amp page for archives or not
85
+ if( is_archive() && $redux_builder_amp['ampforwp-amp-archive-pages-on-off']=='1') {
 
 
86
  printf( '<link rel="amphtml" href="%s" />', esc_url( $amp_url ) );
87
+ } else {
88
+ // Dont do anything :)
89
  }
90
  // end of checking if the user wants amp page for archives or not
91
  }
173
  return 1000;
174
  }
175
 
176
+ // 6. Add required Javascripts for extra AMP features
177
+ add_action('amp_post_template_head','ampforwp_register_additional_scripts');
178
+ function ampforwp_register_additional_scripts() {
179
+ global $redux_builder_amp;
180
+ ?>
181
+ <script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
182
+ <script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
183
+ <script async custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script>
184
+ <?php if($redux_builder_amp['amp-enable-notifications'] == true) { ?>
185
+ <script async custom-element="amp-user-notification" src="https://cdn.ampproject.org/v0/amp-user-notification-0.1.js"></script>
186
+ <?php } ?>
187
+ <?php if( $redux_builder_amp['enable-single-social-icons'] == true || AMPFORWP_DM_SOCIAL_CHECK === 'true' ) { ?>
188
+ <script async custom-element="amp-social-share" src="https://cdn.ampproject.org/v0/amp-social-share-0.1.js"></script>
189
+ <?php } ?>
190
+ <script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
191
+ <?php }
192
+
193
+ // 7. Footer for AMP Pages
 
 
 
 
 
 
194
  add_filter( 'amp_post_template_file', 'ampforwp_custom_footer', 10, 3 );
195
  function ampforwp_custom_footer( $file, $type, $post ) {
196
  if ( 'footer' === $type ) {
202
  add_action('ampforwp_global_after_footer','ampforwp_footer');
203
  function ampforwp_footer() {
204
  global $redux_builder_amp; ?>
205
+ <!--Plugin Version :<?php echo (AMPFORWP_VERSION); ?> -->
206
  <?php if($redux_builder_amp['amp-enable-notifications'] == true) { ?>
207
  <!-- Thanks to @nicholasgriffintn for Cookie Notification Code-->
208
  <amp-user-notification layout=nodisplay id="amp-user-notification1">
218
  // 9. Advertisement code
219
  // Below Header Global
220
  add_action('ampforwp_after_header','ampforwp_header_advert');
221
+ add_action('ampforwp_design_1_after_header','ampforwp_header_advert');
222
 
223
  function ampforwp_header_advert() {
224
  global $redux_builder_amp;
301
 
302
  // Below Title Single
303
  add_action('ampforwp_before_post_content','ampforwp_before_post_content_advert');
304
+ add_action('ampforwp_inside_post_content_before','ampforwp_before_post_content_advert');
305
 
306
  function ampforwp_before_post_content_advert() {
307
  global $redux_builder_amp;
342
  }
343
 
344
  // Below Content Single
345
+ add_action('ampforwp_after_post_content','ampforwp_after_post_content_advert');
346
+ add_action('ampforwp_inside_post_content_after','ampforwp_after_post_content_advert');
347
  function ampforwp_after_post_content_advert() {
348
  global $redux_builder_amp;
349
 
431
  // 11. Strip unwanted codes and tags from the_content
432
  add_action( 'pre_amp_render_post','ampforwp_strip_invalid_content');
433
  function ampforwp_strip_invalid_content() {
434
+ add_filter( 'the_content', 'ampforwp_the_content_filter', 2 );
435
  }
436
  function ampforwp_the_content_filter( $content ) {
437
  $content = preg_replace('/property=[^>]*/', '', $content);
444
  $content = preg_replace('/security=[^>]*/', '', $content);
445
  $content = preg_replace('/deposit=[^>]*/', '', $content);
446
  $content = preg_replace('/for=[^>]*/', '', $content);
 
447
  $content = preg_replace('/nowrap="nowrap"/', '', $content);
448
  $content = preg_replace('#<comments-count.*?>(.*?)</comments-count>#i', '', $content);
449
  $content = preg_replace('#<time.*?>(.*?)</time>#i', '', $content);
456
  $content = preg_replace('/<script[^>]*>.*?<\/script>/i', '', $content);
457
  //for removing attributes within html tags
458
  $content = preg_replace('/(<[^>]+) onclick=".*?"/', '$1', $content);
459
+ $content = preg_replace('/(<[^>]+) style=".*?"/', '$1', $content);
460
  $content = preg_replace('/(<[^>]+) rel=".*?"/', '$1', $content);
461
+ $content = preg_replace('/(<[^>]+) ref=".*?"/', '$1', $content);
462
  $content = preg_replace('/(<[^>]+) date/', '$1', $content);
463
 
464
  //removing scripts and rel="nofollow" from Body and from divs
470
  return $content;
471
  }
472
 
473
+
474
+ // 11.1 Strip unwanted codes and tags from wp_footer for better compatibility with Plugins
475
+ add_action( 'pre_amp_render_post','ampforwp_strip_invalid_content_footer');
476
+ function ampforwp_strip_invalid_content_footer() {
477
+ add_filter( 'wp_footer', 'ampforwp_the_content_filter_footer', 1 );
478
+ }
479
+ function ampforwp_the_content_filter_footer( $content ) {
480
+ remove_all_actions('wp_footer');
481
+ return $content;
482
+ }
483
+
484
  // 11.5 Strip unwanted codes the_content of Frontpage
485
  add_action( 'pre_amp_render_post','ampforwp_strip_invalid_content_frontpage');
486
  function ampforwp_strip_invalid_content_frontpage(){
845
  // title for a single post and single page
846
  if( is_single() || is_page() ){
847
  global $post;
848
+ $title = $post->post_title;
849
+ echo $title . ' | ' . get_option( 'blogdescription' ) ;
850
  }
851
  // title for archive pages
852
  if ( is_archive() ) {
856
  // title for Static front page
857
  if ( $redux_builder_amp['amp-frontpage-select-option']== 1 && ( is_front_page() ) ) {
858
  $ID = $redux_builder_amp['amp-frontpage-select-option-pages'];
859
+ echo get_the_title( $ID ) . ' | ' . get_option('blogname');
860
 
861
  }
862
  // title for index page
863
  if ( is_front_page() && $redux_builder_amp['amp-frontpage-select-option']== 0 ) {
864
+ echo bloginfo('name') . ' | ' . get_option( 'blogdescription' ) ;
865
  }
866
  ?>
867
  </title>