AMP for WP – Accelerated Mobile Pages - Version 0.9.72.1

Version Description

Download this release

Release Info

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

Code changes from version 0.9.72 to 0.9.72.1

Files changed (4) hide show
  1. README.md +4 -3
  2. accelerated-moblie-pages.php +2 -2
  3. install/index.php +13 -8
  4. readme.txt +3 -3
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: 4.9.1
7
- Stable tag: 0.9.72
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -31,6 +31,7 @@ Bug reports for AMP for WP are [welcomed on GitHub](https://github.com/ahmedkalu
31
 
32
  = Features: =
33
 
 
34
  * NEW - OneSignal Push Notifications integration
35
  * NEW - Structured Data Options
36
  * NEW - Page Builder 2.0 for AMP! [Learn More & Video](https://ampforwp.com/tutorials/article/amp-page-builder-installation/)
@@ -138,7 +139,7 @@ Yes, you easily can. In fact, we have support for 12 Analytics companies. Includ
138
 
139
  = Can I add Ads in my AMP pages? =
140
 
141
- Yes, you can. We have 6 ad placement slots that are built in and strategically placed to get maximum views. Also, we have [an extension] (https://ampforwp.com/advanced-amp-ads/) from which you can insert ads between the content, will get more ad slots and also add custom banners to all the available slots.
142
 
143
 
144
  = Can I extend/Change the AMP design, so it suits my needs? =
@@ -167,7 +168,7 @@ Yes, Absolutely! We would suggest you send your feature request by creating an i
167
 
168
  = How do I get in touch? =
169
 
170
- You can contact me using this URL: http://ampforwp.com/contact/
171
 
172
 
173
  == Screenshots ==
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 4.9.1
7
+ Stable tag: 0.9.72.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
31
 
32
  = Features: =
33
 
34
+ * NEW - Alexa Metrics Compatibility added
35
  * NEW - OneSignal Push Notifications integration
36
  * NEW - Structured Data Options
37
  * NEW - Page Builder 2.0 for AMP! [Learn More & Video](https://ampforwp.com/tutorials/article/amp-page-builder-installation/)
139
 
140
  = Can I add Ads in my AMP pages? =
141
 
142
+ Yes, you can. We have 6 ad placement slots that are built in and strategically placed to get maximum views. Also, we have [an extension](https://ampforwp.com/advanced-amp-ads/) from which you can insert ads between the content, will get more ad slots and also add custom banners to all the available slots.
143
 
144
 
145
  = Can I extend/Change the AMP design, so it suits my needs? =
168
 
169
  = How do I get in touch? =
170
 
171
+ You can contact us from [here](http://ampforwp.com/contact/)
172
 
173
 
174
  == Screenshots ==
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.72
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
@@ -19,7 +19,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
19
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
20
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
21
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
22
- define('AMPFORWP_VERSION','0.9.72');
23
 
24
  // any changes to AMP_QUERY_VAR should be refelected here
25
  function ampforwp_generate_endpoint(){
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.72.1
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
19
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
20
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
21
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
22
+ define('AMPFORWP_VERSION','0.9.72.1');
23
 
24
  // any changes to AMP_QUERY_VAR should be refelected here
25
  function ampforwp_generate_endpoint(){
install/index.php CHANGED
@@ -114,20 +114,25 @@ if(isset($redux_builder_amp['opt-media']['url']) && $redux_builder_amp['opt-medi
114
  global $ampforwp_install_config;
115
  ampforwp_installer_init();
116
  }
 
117
  function ampforwp_installer_init(){
 
 
 
 
 
118
  global $ampforwp_install_config;
119
- instller_admin_init();
120
  }
121
- function instller_admin_init(){
 
122
  if(isset($_GET['ampforwp_install']) && $_GET['ampforwp_install']=='1' && is_admin()){
123
- steps_call();
124
 
125
  }
126
  }
127
 
128
-
129
-
130
- function steps_call(){
131
  global $ampforwp_install_config;
132
  if ( empty( $_GET['page'] ) || $ampforwp_install_config['installerpage'] !== $_GET['page'] ) {
133
  return;
@@ -169,7 +174,7 @@ if(isset($redux_builder_amp['opt-media']['url']) && $redux_builder_amp['opt-medi
169
  }
170
 
171
  if ( $show_content ) {
172
- show_ampforwp_steps_body();
173
  } ?>
174
 
175
  <?php step_output_bottom_dots(); ?>
@@ -184,7 +189,7 @@ if(isset($redux_builder_amp['opt-media']['url']) && $redux_builder_amp['opt-medi
184
  exit;
185
  }
186
 
187
- function show_ampforwp_steps_body(){
188
  global $ampforwp_install_config;
189
  if($ampforwp_install_config['total_steps']==$ampforwp_install_config['current_step']['step_id']){
190
  call_user_func('ampforwp_finish_page');
114
  global $ampforwp_install_config;
115
  ampforwp_installer_init();
116
  }
117
+
118
  function ampforwp_installer_init(){
119
+ // Exit if the user does not have proper permissions
120
+ if(! current_user_can( 'manage_options' ) ) {
121
+ return ;
122
+ }
123
+
124
  global $ampforwp_install_config;
125
+ ampforwp_instller_admin_init();
126
  }
127
+
128
+ function ampforwp_instller_admin_init(){
129
  if(isset($_GET['ampforwp_install']) && $_GET['ampforwp_install']=='1' && is_admin()){
130
+ ampforwp_steps_call();
131
 
132
  }
133
  }
134
 
135
+ function ampforwp_steps_call(){
 
 
136
  global $ampforwp_install_config;
137
  if ( empty( $_GET['page'] ) || $ampforwp_install_config['installerpage'] !== $_GET['page'] ) {
138
  return;
174
  }
175
 
176
  if ( $show_content ) {
177
+ ampforwp_show_steps_body();
178
  } ?>
179
 
180
  <?php step_output_bottom_dots(); ?>
189
  exit;
190
  }
191
 
192
+ function ampforwp_show_steps_body(){
193
  global $ampforwp_install_config;
194
  if($ampforwp_install_config['total_steps']==$ampforwp_install_config['current_step']['step_id']){
195
  call_user_func('ampforwp_finish_page');
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: 4.9.1
7
- Stable tag: 0.9.72
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,7 +139,7 @@ Yes, you easily can. In fact, we have support for 12 Analytics companies. Includ
139
 
140
  = Can I add Ads in my AMP pages? =
141
 
142
- Yes, you can. We have 6 ad placement slots that are built in and strategically placed to get maximum views. Also, we have [an extension] (https://ampforwp.com/advanced-amp-ads/) from which you can insert ads between the content, will get more ad slots and also add custom banners to all the available slots.
143
 
144
 
145
  = Can I extend/Change the AMP design, so it suits my needs? =
@@ -168,7 +168,7 @@ Yes, Absolutely! We would suggest you send your feature request by creating an i
168
 
169
  = How do I get in touch? =
170
 
171
- You can contact me using this URL: http://ampforwp.com/contact/
172
 
173
 
174
  == Screenshots ==
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 4.9.1
7
+ Stable tag: 0.9.72.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
139
 
140
  = Can I add Ads in my AMP pages? =
141
 
142
+ Yes, you can. We have 6 ad placement slots that are built in and strategically placed to get maximum views. Also, we have [an extension](https://ampforwp.com/advanced-amp-ads/) from which you can insert ads between the content, will get more ad slots and also add custom banners to all the available slots.
143
 
144
 
145
  = Can I extend/Change the AMP design, so it suits my needs? =
168
 
169
  = How do I get in touch? =
170
 
171
+ You can contact us from [here](http://ampforwp.com/contact/)
172
 
173
 
174
  == Screenshots ==