Version Description
(23rd January 2021) = * Fixed: Imgur embed code not working in AMP #4899 * Fixed: Srcset not loading in category module of AMP page builder #4900 * Fixed: Advertising section displaying blank when AdsforWP plugin is active #4889 * Fixed: AMP Page Builder not working on the pages and posts except the homepage #4890 * Fixed: Swift 2nd header menu aligned towards right with polylang plugin #4893 * Fixed: Post Pagination not working after 1.0.69 version #4902 * Fixed: Debug warnings #4896
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.75 |
Comparing to | |
See all releases |
Code changes from version 1.0.74 to 1.0.75
- README.md +10 -11
- accelerated-moblie-pages.php +3 -3
- changelog.txt +9 -0
- components/author-box/author-box.php +3 -0
- components/gdpr/gdpr.php +1 -1
- includes/features/advertisement/ads-options.php +2 -0
- includes/features/performance/performance-functions.php +3 -0
- pagebuilder/modules/contents-module.php +1 -1
- readme.txt +10 -1
- templates/design-manager/swift/style.php +12 -0
- templates/features.php +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: 5.6
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -193,6 +193,15 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
= 1.0.74 (30th December 2020) =
|
197 |
* Improvement: Added Oxygen Pagebuilder Compatibility for AMP Pagebuilder Extension #4868
|
198 |
* Improvement: Added disable right click option on AMP for copy protection #4877
|
@@ -209,14 +218,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
209 |
* Fixed: Validation error when 'area' tag is added in post content #4882
|
210 |
* Fixed: Validation error "Custom JS is not allowed" with ALL in one SEO pro #4883
|
211 |
|
212 |
-
= 1.0.72 (17th December 2020) =
|
213 |
-
* Improvement: Added i2Pros and cons plugin compatibility #4837
|
214 |
-
* Improvement: Added WP-PageNavi plugin compatibility #4831
|
215 |
-
* Improvement: Added Categories Images plugin compatibility #3973
|
216 |
-
* Improvement: Added webp images on the homepage and Archives with Imagify plugin #4725
|
217 |
-
* Improvement: Added Recipe Compatibility for AMP Extension #4868
|
218 |
-
* Fixed: Amp option panel breaks when AECC Global Theme is activated. #4863
|
219 |
-
* Fixed: Facebook page embed fails #4871
|
220 |
-
* Fixed: Referenced AMP URL is self-canonical AMP while using All in One Seo #4873
|
221 |
-
|
222 |
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.6
|
7 |
+
Stable tag: 1.0.75
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
193 |
|
194 |
== Changelog ==
|
195 |
|
196 |
+
= 1.0.75 (23rd January 2021) =
|
197 |
+
* Fixed: Imgur embed code not working in AMP #4899
|
198 |
+
* Fixed: Srcset not loading in category module of AMP page builder #4900
|
199 |
+
* Fixed: Advertising section displaying blank when AdsforWP plugin is active #4889
|
200 |
+
* Fixed: AMP Page Builder not working on the pages and posts except the homepage #4890
|
201 |
+
* Fixed: Swift 2nd header menu aligned towards right with polylang plugin #4893
|
202 |
+
* Fixed: Post Pagination not working after 1.0.69 version #4902
|
203 |
+
* Fixed: Debug warnings #4896
|
204 |
+
|
205 |
= 1.0.74 (30th December 2020) =
|
206 |
* Improvement: Added Oxygen Pagebuilder Compatibility for AMP Pagebuilder Extension #4868
|
207 |
* Improvement: Added disable right click option on AMP for copy protection #4877
|
218 |
* Fixed: Validation error when 'area' tag is added in post content #4882
|
219 |
* Fixed: Validation error "Custom JS is not allowed" with ALL in one SEO pro #4883
|
220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
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.
|
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.
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
@@ -301,7 +301,7 @@ function ampforwp_add_custom_rewrite_rules() {
|
|
301 |
}
|
302 |
}
|
303 |
}
|
304 |
-
if (ampforwp_get_setting('ampforwp-pagination-link-type')
|
305 |
add_rewrite_rule(
|
306 |
'(.+?)-[0-9]+\/([0-9]{1,})\/amp$',
|
307 |
'index.php?amp=1&name=$matches[1]&paged=$matches[2]',
|
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.75
|
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.75');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
301 |
}
|
302 |
}
|
303 |
}
|
304 |
+
if (ampforwp_get_setting('ampforwp-pagination-link-type')) {
|
305 |
add_rewrite_rule(
|
306 |
'(.+?)-[0-9]+\/([0-9]{1,})\/amp$',
|
307 |
'index.php?amp=1&name=$matches[1]&paged=$matches[2]',
|
changelog.txt
CHANGED
@@ -1,5 +1,14 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.74 (30th December 2020) =
|
4 |
* Improvement: Added Oxygen Pagebuilder Compatibility for AMP Pagebuilder Extension #4868
|
5 |
* Improvement: Added disable right click option on AMP for copy protection #4877
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.75 (23rd January 2021) =
|
4 |
+
* Fixed: Imgur embed code not working in AMP #4899
|
5 |
+
* Fixed: Srcset not loading in category module of AMP page builder #4900
|
6 |
+
* Fixed: Advertising section displaying blank when AdsforWP plugin is active #4889
|
7 |
+
* Fixed: AMP Page Builder not working on the pages and posts except the homepage #4890
|
8 |
+
* Fixed: Swift 2nd header menu aligned towards right with polylang plugin #4893
|
9 |
+
* Fixed: Post Pagination not working after 1.0.69 version #4902
|
10 |
+
* Fixed: Debug warnings #4896
|
11 |
+
|
12 |
= 1.0.74 (30th December 2020) =
|
13 |
* Improvement: Added Oxygen Pagebuilder Compatibility for AMP Pagebuilder Extension #4868
|
14 |
* Improvement: Added disable right click option on AMP for copy protection #4877
|
components/author-box/author-box.php
CHANGED
@@ -9,6 +9,9 @@ if( class_exists('Simple_Author_Box') && !isset($args['author_info']) ){
|
|
9 |
}
|
10 |
global $post, $redux_builder_amp;
|
11 |
$post_author = get_userdata($post->post_author);
|
|
|
|
|
|
|
12 |
if ( ! is_array($args) ) {
|
13 |
$args = array();
|
14 |
}
|
9 |
}
|
10 |
global $post, $redux_builder_amp;
|
11 |
$post_author = get_userdata($post->post_author);
|
12 |
+
if(empty($post_author)){
|
13 |
+
return;
|
14 |
+
}
|
15 |
if ( ! is_array($args) ) {
|
16 |
$args = array();
|
17 |
}
|
components/gdpr/gdpr.php
CHANGED
@@ -30,7 +30,7 @@ function amp_gdpr_output(){
|
|
30 |
$accept = $gdpr_text['accept'];
|
31 |
$reject = $gdpr_text['reject'];
|
32 |
$settings = $gdpr_text['settings'];
|
33 |
-
$more_info = $gdpr_text['more_info'];
|
34 |
$privacy_button_text = $gdpr_text['privacy_button_text'];
|
35 |
?>
|
36 |
<amp-geo layout="nodisplay">
|
30 |
$accept = $gdpr_text['accept'];
|
31 |
$reject = $gdpr_text['reject'];
|
32 |
$settings = $gdpr_text['settings'];
|
33 |
+
$more_info = isset($gdpr_text['more_info']) ? $gdpr_text['more_info'] : "";
|
34 |
$privacy_button_text = $gdpr_text['privacy_button_text'];
|
35 |
?>
|
36 |
<amp-geo layout="nodisplay">
|
includes/features/advertisement/ads-options.php
CHANGED
@@ -76,6 +76,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
76 |
</div>
|
77 |
</div>';
|
78 |
}
|
|
|
79 |
// ADS SECTION
|
80 |
Redux::setSection( $opt_name, array(
|
81 |
'title' => esc_html__( 'Advertisement', 'accelerated-mobile-pages' ),
|
@@ -85,6 +86,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
85 |
'subsection' => true,
|
86 |
'fields' => apply_filters('ampforwp_ads_option_fields', $fields = array() ),
|
87 |
) );
|
|
|
88 |
}
|
89 |
|
90 |
//
|
76 |
</div>
|
77 |
</div>';
|
78 |
}
|
79 |
+
if (!function_exists('adsforwp_admin_notice')) {
|
80 |
// ADS SECTION
|
81 |
Redux::setSection( $opt_name, array(
|
82 |
'title' => esc_html__( 'Advertisement', 'accelerated-mobile-pages' ),
|
86 |
'subsection' => true,
|
87 |
'fields' => apply_filters('ampforwp_ads_option_fields', $fields = array() ),
|
88 |
) );
|
89 |
+
}
|
90 |
}
|
91 |
|
92 |
//
|
includes/features/performance/performance-functions.php
CHANGED
@@ -52,6 +52,9 @@ function ampforwp_minify_html_output($content_buffer){
|
|
52 |
if(preg_match('/<script(.*?)src="https:\/\/www.google-analytics.com\/analytics.js"><\/script>/', $content_buffer)){
|
53 |
$content_buffer = preg_replace('/<script(.*?)src="https:\/\/www.google-analytics.com\/analytics.js"><\/script>/', '', $content_buffer);
|
54 |
}
|
|
|
|
|
|
|
55 |
global $redux_builder_amp;
|
56 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
57 |
return $content_buffer;
|
52 |
if(preg_match('/<script(.*?)src="https:\/\/www.google-analytics.com\/analytics.js"><\/script>/', $content_buffer)){
|
53 |
$content_buffer = preg_replace('/<script(.*?)src="https:\/\/www.google-analytics.com\/analytics.js"><\/script>/', '', $content_buffer);
|
54 |
}
|
55 |
+
if(preg_match('/<blockquote class="imgur-embed(.*?)"(.*?)data-id="(.*?)"(.*?)<\/blockquote>/', $content_buffer)){
|
56 |
+
$content_buffer = preg_replace('/<blockquote class="imgur-embed(.*?)"(.*?)data-id="(.*?)"(.*?)<\/blockquote>/', '<amp-imgur data-imgur-id="$3" layout="responsive" width="500" height="600"></amp-imgur>', $content_buffer);
|
57 |
+
}
|
58 |
global $redux_builder_amp;
|
59 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
60 |
return $content_buffer;
|
pagebuilder/modules/contents-module.php
CHANGED
@@ -367,7 +367,7 @@ if ( is_admin() ) {
|
|
367 |
|
368 |
<div class="cml">
|
369 |
<a href="{{ampforwp_post_url}}">
|
370 |
-
{{if_image}}<amp-img class="ampforwp_wc_shortcode_img" src="{{image}}" width="{{width}}" height="{{height}}" layout="responsive" alt="{{image_alt}}"> </amp-img>{{ifend_image}}</a>
|
371 |
</div>
|
372 |
<div class="cmr">
|
373 |
<a href="{{ampforwp_post_url}}">{{title}}</a>
|
367 |
|
368 |
<div class="cml">
|
369 |
<a href="{{ampforwp_post_url}}">
|
370 |
+
{{if_image}}<amp-img class="ampforwp_wc_shortcode_img" src="{{image}}" width="{{width}}" height="{{height}}" srcset="{{image}}" layout="responsive" alt="{{image_alt}}"> </amp-img>{{ifend_image}}</a>
|
371 |
</div>
|
372 |
<div class="cmr">
|
373 |
<a href="{{ampforwp_post_url}}">{{title}}</a>
|
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.6
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,15 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
= 1.0.74 (30th December 2020) =
|
194 |
* Improvement: Added Oxygen Pagebuilder Compatibility for AMP Pagebuilder Extension #4868
|
195 |
* Improvement: Added disable right click option on AMP for copy protection #4877
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.6
|
7 |
+
Stable tag: 1.0.75
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
190 |
|
191 |
== Changelog ==
|
192 |
|
193 |
+
= 1.0.75 (23rd January 2021) =
|
194 |
+
* Fixed: Imgur embed code not working in AMP #4899
|
195 |
+
* Fixed: Srcset not loading in category module of AMP page builder #4900
|
196 |
+
* Fixed: Advertising section displaying blank when AdsforWP plugin is active #4889
|
197 |
+
* Fixed: AMP Page Builder not working on the pages and posts except the homepage #4890
|
198 |
+
* Fixed: Swift 2nd header menu aligned towards right with polylang plugin #4893
|
199 |
+
* Fixed: Post Pagination not working after 1.0.69 version #4902
|
200 |
+
* Fixed: Debug warnings #4896
|
201 |
+
|
202 |
= 1.0.74 (30th December 2020) =
|
203 |
* Improvement: Added Oxygen Pagebuilder Compatibility for AMP Pagebuilder Extension #4868
|
204 |
* Improvement: Added disable right click option on AMP for copy protection #4877
|
templates/design-manager/swift/style.php
CHANGED
@@ -2541,4 +2541,16 @@ if(true == ampforwp_get_setting('ampforwp-cats-single-primary')){?>
|
|
2541 |
.amp-category span.amp-cat.primary {
|
2542 |
display: block;
|
2543 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2544 |
<?php }
|
2541 |
.amp-category span.amp-cat.primary {
|
2542 |
display: block;
|
2543 |
}
|
2544 |
+
<?php }
|
2545 |
+
if(function_exists('pll__') && ampforwp_get_setting('header-type') == '2'){?>
|
2546 |
+
.t-btn:after {
|
2547 |
+
position: absolute;
|
2548 |
+
left: 280px;
|
2549 |
+
top: 25px;
|
2550 |
+
}
|
2551 |
+
@media only screen and (max-width: 1024px) {
|
2552 |
+
.t-btn:after {
|
2553 |
+
left: 20px;
|
2554 |
+
}
|
2555 |
+
}
|
2556 |
<?php }
|
templates/features.php
CHANGED
@@ -3973,7 +3973,7 @@ function ampforwp_post_pagination( $args = '' ) {
|
|
3973 |
}
|
3974 |
$numpages = count($ampforwp_new_content);
|
3975 |
}
|
3976 |
-
}else if(ampforwp_get_setting('ampforwp-pagination-link-type')==true && is_singular()){
|
3977 |
$id = ampforwp_get_the_ID();
|
3978 |
$content = get_post_field( 'post_content', $id);
|
3979 |
if ($content) {
|
@@ -4145,7 +4145,7 @@ function ampforwp_post_paginated_link_generator( $i ) {
|
|
4145 |
|
4146 |
}
|
4147 |
if ( false == ampforwp_get_setting('ampforwp-amp-takeover') ) {
|
4148 |
-
if(ampforwp_get_setting('ampforwp-pagination-link-type')==true && is_singular()){
|
4149 |
$url = ampforwp_url_controller($url);
|
4150 |
}else{
|
4151 |
$url = add_query_arg(AMPFORWP_AMP_QUERY_VAR,'1',$url);
|
@@ -4163,7 +4163,7 @@ function ampforwp_post_paginated_content($content){
|
|
4163 |
if ( is_singular() || ampforwp_is_front_page() ){
|
4164 |
global $redux_builder_amp, $page, $multipage;
|
4165 |
$ampforwp_new_content = $ampforwp_the_content = $checker = '';
|
4166 |
-
if(ampforwp_get_setting('ampforwp-pagination-link-type')==true && is_singular()){
|
4167 |
$id = ampforwp_get_the_ID();
|
4168 |
$content = get_post_field( 'post_content', $id);
|
4169 |
if ($content) {
|
3973 |
}
|
3974 |
$numpages = count($ampforwp_new_content);
|
3975 |
}
|
3976 |
+
}else if(ampforwp_get_setting('ampforwp-pagination-link-type')==true && is_singular() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){
|
3977 |
$id = ampforwp_get_the_ID();
|
3978 |
$content = get_post_field( 'post_content', $id);
|
3979 |
if ($content) {
|
4145 |
|
4146 |
}
|
4147 |
if ( false == ampforwp_get_setting('ampforwp-amp-takeover') ) {
|
4148 |
+
if(ampforwp_get_setting('ampforwp-pagination-link-type')==true && is_singular() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){
|
4149 |
$url = ampforwp_url_controller($url);
|
4150 |
}else{
|
4151 |
$url = add_query_arg(AMPFORWP_AMP_QUERY_VAR,'1',$url);
|
4163 |
if ( is_singular() || ampforwp_is_front_page() ){
|
4164 |
global $redux_builder_amp, $page, $multipage;
|
4165 |
$ampforwp_new_content = $ampforwp_the_content = $checker = '';
|
4166 |
+
if(ampforwp_get_setting('ampforwp-pagination-link-type')==true && is_singular() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){
|
4167 |
$id = ampforwp_get_the_ID();
|
4168 |
$content = get_post_field( 'post_content', $id);
|
4169 |
if ($content) {
|