AMP for WP – Accelerated Mobile Pages - Version 0.4

Version Description

  • Support of Custom menu added for AMP enabled sites
Download this release

Release Info

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

Code changes from version 0.3 to 0.4

accelerated-moblie-pages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: http://theskin.io/amp/
5
  Description: Accelerated Mobile Pages for WordPress
6
- Version: 0.3
7
  Author: Mohammed Kaludi, Ahmed Kaludi
8
  Author URI: http://theskin.io/amp/
9
  License: GPL2
@@ -39,4 +39,19 @@ function add_rel_info() { ?>
39
  <link rel="amphtml" href="<?php the_permalink(); ?>/?amp" />
40
  <?php }
41
  add_action( 'wp_head', 'add_rel_info' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  ?>
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: http://theskin.io/amp/
5
  Description: Accelerated Mobile Pages for WordPress
6
+ Version: 0.4
7
  Author: Mohammed Kaludi, Ahmed Kaludi
8
  Author URI: http://theskin.io/amp/
9
  License: GPL2
39
  <link rel="amphtml" href="<?php the_permalink(); ?>/?amp" />
40
  <?php }
41
  add_action( 'wp_head', 'add_rel_info' );
42
+
43
+
44
+ // Registering Custom AMP menu for this plugin
45
+ if (! function_exists( 'register_amp_menu') ) {
46
+ function register_amp_menu() {
47
+ register_nav_menus(
48
+ array(
49
+ 'amp-menu' => __( 'AMP Menu' ),
50
+ )
51
+ );
52
+ }
53
+ add_action( 'init', 'register_amp_menu' );
54
+ }
55
+
56
+
57
  ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mohammed_kaludi, ahmedkaludi
3
  Tags: accelerated mobile pages, amp, mobile, amp project, google amp, amp wp
4
  Requires at least: 3.0
5
  Tested up to: 4.4.2
6
- Stable tag: 0.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -47,3 +47,6 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F
47
  = 0.3 =
48
  * Support of amp-img added in single posts
49
  * minor css bug fixed
 
 
 
3
  Tags: accelerated mobile pages, amp, mobile, amp project, google amp, amp wp
4
  Requires at least: 3.0
5
  Tested up to: 4.4.2
6
+ Stable tag: 0.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
47
  = 0.3 =
48
  * Support of amp-img added in single posts
49
  * minor css bug fixed
50
+
51
+ = 0.4 =
52
+ * Support of Custom menu added for AMP enabled sites
themes/default/functions.php CHANGED
@@ -282,6 +282,7 @@ function amp_image_tag($content) {
282
  return $content;
283
  }
284
 
285
- add_filter('the_content','amp_image_tag')
 
286
 
287
  ?>
282
  return $content;
283
  }
284
 
285
+ add_filter('the_content','amp_image_tag');
286
+
287
 
288
  ?>