AMP for WP – Accelerated Mobile Pages - Version 0.8.1

Version Description

  • Warning: Cannot modify header information error fixed
  • Validation issue fixed. KK Star Plugin compatible.
  • Gaping in the smaller screens fixed
Download this release

Release Info

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

Code changes from version 0.8 to 0.8.1

README.md CHANGED
@@ -7,7 +7,7 @@ Contributors: mohammed_kaludi, ahmedkaludi
7
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google
8
  Requires at least: 3.0
9
  Tested up to: 4.6.1
10
- Stable tag: 0.8
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -108,6 +108,11 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F
108
 
109
 
110
  == Changelog ==
 
 
 
 
 
111
  = 0.8 =
112
  * Proper Details at http://ampforwp.com/blog/the-change/
113
  * Plugin was re-written from scratch and is now built on top of default AMP plugin by Automattic but giving you the same features of the original plugin.
7
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google
8
  Requires at least: 3.0
9
  Tested up to: 4.6.1
10
+ Stable tag: 0.8.1
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
108
 
109
 
110
  == Changelog ==
111
+ = 0.8.1 =
112
+ * Warning: Cannot modify header information error fixed
113
+ * Validation issue fixed. KK Star Plugin compatible.
114
+ * Gaping in the smaller screens fixed
115
+
116
  = 0.8 =
117
  * Proper Details at http://ampforwp.com/blog/the-change/
118
  * Plugin was re-written from scratch and is now built on top of default AMP plugin by Automattic but giving you the same features of the original plugin.
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: Accelerated Mobile Pages for WordPress
6
- Version: 0.8
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: http://ampforwp.com/
9
  License: GPL2
@@ -55,4 +55,14 @@ function ampforwp_plugin_init() {
55
  new Ampforwp_Init;
56
  }
57
  }
58
- add_action('init','ampforwp_plugin_init',9);
 
 
 
 
 
 
 
 
 
 
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: Accelerated Mobile Pages for WordPress
6
+ Version: 0.8.1
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: http://ampforwp.com/
9
  License: GPL2
55
  new Ampforwp_Init;
56
  }
57
  }
58
+ add_action('init','ampforwp_plugin_init',9);
59
+
60
+ /**/
61
+
62
+ // Strip the styles
63
+ add_filter( 'the_content', 'the_content_filter', 20 );
64
+ function the_content_filter( $content ) {
65
+ $content = preg_replace('/property[^>]*/', '', $content);
66
+ $content = preg_replace('/vocab[^>]*/', '', $content);
67
+ return $content;
68
+ }
classes/class-init.php CHANGED
@@ -16,5 +16,4 @@ if ( ! class_exists( 'Ampforwp_Loader', false ) ) {
16
  }
17
  }
18
  }
19
-
20
  ?>
16
  }
17
  }
18
  }
 
19
  ?>
includes/options/admin-init.php CHANGED
@@ -18,4 +18,4 @@
18
  // Load Redux extensions
19
  if ( file_exists( dirname( __FILE__ ) . '/redux-extensions/extensions-init.php' ) ) {
20
  require_once dirname( __FILE__ ) . '/redux-extensions/extensions-init.php';
21
- }
18
  // Load Redux extensions
19
  if ( file_exists( dirname( __FILE__ ) . '/redux-extensions/extensions-init.php' ) ) {
20
  require_once dirname( __FILE__ ) . '/redux-extensions/extensions-init.php';
21
+ }
includes/options/options-init.php CHANGED
@@ -562,7 +562,6 @@
562
  ),
563
  )
564
  ) );
565
-
566
- /*
567
- * <--- END SECTIONS
568
- */
562
  ),
563
  )
564
  ) );
565
+ /*
566
+ * <--- END SECTIONS
567
+ */
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mohammed_kaludi, ahmedkaludi
3
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google
4
  Requires at least: 3.0
5
  Tested up to: 4.6.1
6
- Stable tag: 0.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -103,6 +103,11 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F
103
 
104
 
105
  == Changelog ==
 
 
 
 
 
106
  = 0.8 =
107
  * Proper Details at http://ampforwp.com/blog/the-change/
108
  * Plugin was re-written from scratch and is now built on top of default AMP plugin by Automattic but giving you the same features of the original plugin.
3
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google
4
  Requires at least: 3.0
5
  Tested up to: 4.6.1
6
+ Stable tag: 0.8.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
103
 
104
 
105
  == Changelog ==
106
+ = 0.8.1 =
107
+ * Warning: Cannot modify header information error fixed
108
+ * Validation issue fixed. KK Star Plugin compatible.
109
+ * Gaping in the smaller screens fixed
110
+
111
  = 0.8 =
112
  * Proper Details at http://ampforwp.com/blog/the-change/
113
  * Plugin was re-written from scratch and is now built on top of default AMP plugin by Automattic but giving you the same features of the original plugin.
templates/features.php CHANGED
@@ -314,7 +314,4 @@ function ampforwp_google_analytics() { ?>
314
  }
315
  </script>
316
  </amp-analytics>
317
- <?php
318
- }
319
-
320
- ?>
314
  }
315
  </script>
316
  </amp-analytics>
317
+ <?php } ?>
 
 
 
templates/header.php CHANGED
@@ -31,4 +31,4 @@
31
  <div role="button" tabindex="0" on='tap:sidebar.close' class="close-nav">X</div>
32
  <?php wp_nav_menu( array( 'theme_location' => 'amp-menu' ) ); ?>
33
  </div>
34
- </amp-sidebar>
31
  <div role="button" tabindex="0" on='tap:sidebar.close' class="close-nav">X</div>
32
  <?php wp_nav_menu( array( 'theme_location' => 'amp-menu' ) ); ?>
33
  </div>
34
+ </amp-sidebar>
templates/index.php CHANGED
@@ -59,4 +59,4 @@
59
 
60
  <?php do_action( 'amp_post_template_footer', $this ); ?>
61
  </body>
62
- </html>
59
 
60
  <?php do_action( 'amp_post_template_footer', $this ); ?>
61
  </body>
62
+ </html>
templates/single.php CHANGED
@@ -76,4 +76,4 @@
76
 
77
  <?php do_action( 'amp_post_template_footer', $this ); ?>
78
  </body>
79
- </html>
76
 
77
  <?php do_action( 'amp_post_template_footer', $this ); ?>
78
  </body>
79
+ </html>
templates/style.php CHANGED
@@ -321,7 +321,7 @@ li.amp-wp-tax-category {
321
  /* Single */
322
  .single-post main{
323
  padding:12px 15% 10px 15%
324
- }
325
  .the_content p{
326
  margin-top: 5px;
327
  color: #333;
@@ -334,7 +334,27 @@ li.amp-wp-tax-category {
334
  }
335
 
336
  /* Responsive */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
 
 
 
 
 
 
 
338
  @media screen and (max-width: 767px) {
339
  .amp-wp-post-content p{
340
  display: block
@@ -375,5 +395,4 @@ a,
375
  <?php } ?>
376
 
377
  /* Custom Style Code */
378
- <?php echo $redux_builder_amp['css_editor']; ?>
379
-
321
  /* Single */
322
  .single-post main{
323
  padding:12px 15% 10px 15%
324
+ }
325
  .the_content p{
326
  margin-top: 5px;
327
  color: #333;
334
  }
335
 
336
  /* Responsive */
337
+ @media screen and (max-width: 800px) {
338
+ .single-post main{
339
+ padding: 12px 10px 10px 10px
340
+ }
341
+ }
342
+ @media screen and (max-width: 340px) {
343
+ .single-post main{
344
+ padding: 12px 0px 10px 0px
345
+ }
346
+ .the_content .amp-ad-wrapper{
347
+ text-align: center;
348
+ margin-left: -13px;
349
+ }
350
+ }
351
 
352
+ @media screen and (max-width: 400px) {
353
+ .amp-wp-title{
354
+ font-size: 19px;
355
+ margin: 21px 10px -1px 10px;
356
+ }
357
+ }
358
  @media screen and (max-width: 767px) {
359
  .amp-wp-post-content p{
360
  display: block
395
  <?php } ?>
396
 
397
  /* Custom Style Code */
398
+ <?php echo $redux_builder_amp['css_editor']; ?>