Version Description
(20th February 2021) = * Improvements: Added UX Builder compatibility #4933 * Fixed: Second paginated post not working #4892 * Fixed: Jetpack hosted videos not working on AMP #4931 * Fixed: AMP Pagebuilder module getting narrowed with All in One SEO plugin #4930
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.76.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.76.4 to 1.0.76.5
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.76.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -193,6 +193,12 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
= 1.0.76.4 (19th February 2021) =
|
197 |
* Fixed: AMP front page not working after update #4892
|
198 |
|
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.76.5
|
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.76.5 (20th February 2021) =
|
197 |
+
* Improvements: Added UX Builder compatibility #4933
|
198 |
+
* Fixed: Second paginated post not working #4892
|
199 |
+
* Fixed: Jetpack hosted videos not working on AMP #4931
|
200 |
+
* Fixed: AMP Pagebuilder module getting narrowed with All in One SEO plugin #4930
|
201 |
+
|
202 |
= 1.0.76.4 (19th February 2021) =
|
203 |
* Fixed: AMP front page not working after update #4892
|
204 |
|
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.76.
|
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.76.
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
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.76.5
|
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.76.5');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
changelog.txt
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.76.4 (19th February 2021) =
|
4 |
* Fixed: AMP front page not working after update #4892
|
5 |
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.76.5 (20th February 2021) =
|
4 |
+
* Improvements: Added UX Builder compatibility #4933
|
5 |
+
* Fixed: Second paginated post not working #4892
|
6 |
+
* Fixed: Jetpack hosted videos not working on AMP #4931
|
7 |
+
* Fixed: AMP Pagebuilder module getting narrowed with All in One SEO plugin #4930
|
8 |
+
|
9 |
= 1.0.76.4 (19th February 2021) =
|
10 |
* Fixed: AMP front page not working after update #4892
|
11 |
|
includes/features/pagebuilders-support/pagebuilders_support.php
CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
4 |
exit;
|
5 |
}
|
6 |
function ampforwp_page_builders_support_options($opt_name){
|
7 |
-
$divi_pb_for_ampchecker = $elemntr_pb_for_ampchecker = $avada_pb_for_ampchecker = $avia_pb_for_ampchecker = $oxygen_pb_for_ampchecker = array();
|
8 |
if(!function_exists('amp_pagebuilder_compatibility_init')){
|
9 |
$divi_pb_for_ampchecker = array(
|
10 |
'id' => 'divi_pb_for_amp_info_normal',
|
@@ -50,6 +50,14 @@ if(!function_exists('amp_pagebuilder_compatibility_init')){
|
|
50 |
),
|
51 |
'desc' => sprintf('<div style="background: #FFF9C4;padding: 12px;line-height: 1.6;margin: -45px -14px -18px -17px;"><b>%s</b> %s <a href="https://ampforwp.com/page-builder-compatibility-for-amp/" target="_blank">%s</a> extension.<br /> <div style="margin-top:4px;">(<a href="https://ampforwp.com/page-builder-compatibility-for-amp/" target="_blank">%s</a>)</div></div>',esc_html__( 'ONE LAST STEP REQUIRED:','accelerated-mobile-pages'),esc_html__( 'This feature requires', 'accelerated-mobile-pages' ),esc_html__( 'Page Builder compatibility For AMP', 'accelerated-mobile-pages'),esc_html__( 'Click here for more info', 'accelerated-mobile-pages' )),
|
52 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
}
|
54 |
$pb_for_amp[] = array(
|
55 |
'id' => 'ampforwp-pagebuilder-accor',
|
@@ -156,6 +164,25 @@ if(!function_exists('amp_pagebuilder_compatibility_init')){
|
|
156 |
);
|
157 |
}
|
158 |
$pb_for_amp[] = $oxygen_pb_for_ampchecker;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
$pb_title = 'Page Builder';
|
160 |
$theme = wp_get_theme(); // gets the current theme
|
161 |
if( class_exists('ET_Builder_Plugin') || 'Divi' == $theme->name || 'Divi' == $theme->parent_theme ){
|
@@ -170,6 +197,9 @@ if(!function_exists('amp_pagebuilder_compatibility_init')){
|
|
170 |
if(function_exists('avia_lang_setup')){
|
171 |
$pb_title = 'Avia Builder Support';
|
172 |
}
|
|
|
|
|
|
|
173 |
Redux::setSection( $opt_name, array(
|
174 |
'title' => esc_html__( $pb_title, 'accelerated-mobile-pages' ),
|
175 |
'id' => 'amp-content-builder',
|
4 |
exit;
|
5 |
}
|
6 |
function ampforwp_page_builders_support_options($opt_name){
|
7 |
+
$divi_pb_for_ampchecker = $elemntr_pb_for_ampchecker = $avada_pb_for_ampchecker = $avia_pb_for_ampchecker = $oxygen_pb_for_ampchecker = $ux_pb_for_ampchecker = array();
|
8 |
if(!function_exists('amp_pagebuilder_compatibility_init')){
|
9 |
$divi_pb_for_ampchecker = array(
|
10 |
'id' => 'divi_pb_for_amp_info_normal',
|
50 |
),
|
51 |
'desc' => sprintf('<div style="background: #FFF9C4;padding: 12px;line-height: 1.6;margin: -45px -14px -18px -17px;"><b>%s</b> %s <a href="https://ampforwp.com/page-builder-compatibility-for-amp/" target="_blank">%s</a> extension.<br /> <div style="margin-top:4px;">(<a href="https://ampforwp.com/page-builder-compatibility-for-amp/" target="_blank">%s</a>)</div></div>',esc_html__( 'ONE LAST STEP REQUIRED:','accelerated-mobile-pages'),esc_html__( 'This feature requires', 'accelerated-mobile-pages' ),esc_html__( 'Page Builder compatibility For AMP', 'accelerated-mobile-pages'),esc_html__( 'Click here for more info', 'accelerated-mobile-pages' )),
|
52 |
);
|
53 |
+
$ux_pb_for_ampchecker = array(
|
54 |
+
'id' => 'ux_pb_for_amp_info_normal',
|
55 |
+
'type' => 'info',
|
56 |
+
'required' => array(
|
57 |
+
array('ampforwp-ux-pb-for-amp', '=' , true),
|
58 |
+
),
|
59 |
+
'desc' => sprintf('<div style="background: #FFF9C4;padding: 12px;line-height: 1.6;margin: -45px -14px -18px -17px;"><b>%s</b> %s <a href="https://ampforwp.com/page-builder-compatibility-for-amp/" target="_blank">%s</a> extension.<br /> <div style="margin-top:4px;">(<a href="https://ampforwp.com/page-builder-compatibility-for-amp/" target="_blank">%s</a>)</div></div>',esc_html__( 'ONE LAST STEP REQUIRED:','accelerated-mobile-pages'),esc_html__( 'This feature requires', 'accelerated-mobile-pages' ),esc_html__( 'Page Builder compatibility For AMP', 'accelerated-mobile-pages'),esc_html__( 'Click here for more info', 'accelerated-mobile-pages' )),
|
60 |
+
);
|
61 |
}
|
62 |
$pb_for_amp[] = array(
|
63 |
'id' => 'ampforwp-pagebuilder-accor',
|
164 |
);
|
165 |
}
|
166 |
$pb_for_amp[] = $oxygen_pb_for_ampchecker;
|
167 |
+
if(function_exists('flatsome_setup')){
|
168 |
+
$pb_for_amp[] = array(
|
169 |
+
'id' => 'ampforwp-uxpb-for-amp-accordion-section',
|
170 |
+
'type' => 'section',
|
171 |
+
'title' => esc_html__('UX Builder Compatibility', 'accelerated-mobile-pages'),
|
172 |
+
'indent' => true,
|
173 |
+
'layout_type' => 'accordion',
|
174 |
+
'accordion-open'=> 1,
|
175 |
+
);
|
176 |
+
$pb_for_amp[] = array(
|
177 |
+
'id' => 'ampforwp-ux-pb-for-amp',
|
178 |
+
'type' => 'switch',
|
179 |
+
'title' => esc_html__('UX Builder Support','accelerated-mobile-pages'),
|
180 |
+
'tooltip-subtitle' => esc_html__('Enable or Disable the UX Builder support for AMP', 'accelerated-mobile-pages'),
|
181 |
+
'default' => false
|
182 |
+
);
|
183 |
+
}
|
184 |
+
|
185 |
+
$pb_for_amp[] = $ux_pb_for_ampchecker;
|
186 |
$pb_title = 'Page Builder';
|
187 |
$theme = wp_get_theme(); // gets the current theme
|
188 |
if( class_exists('ET_Builder_Plugin') || 'Divi' == $theme->name || 'Divi' == $theme->parent_theme ){
|
197 |
if(function_exists('avia_lang_setup')){
|
198 |
$pb_title = 'Avia Builder Support';
|
199 |
}
|
200 |
+
if(function_exists('flatsome_setup')){
|
201 |
+
$pb_title = 'UX Builder Support';
|
202 |
+
}
|
203 |
Redux::setSection( $opt_name, array(
|
204 |
'title' => esc_html__( $pb_title, 'accelerated-mobile-pages' ),
|
205 |
'id' => 'amp-content-builder',
|
includes/features/performance/performance-functions.php
CHANGED
@@ -55,6 +55,9 @@ function ampforwp_minify_html_output($content_buffer){
|
|
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;
|
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 |
+
if ( class_exists( 'Jetpack' ) && preg_match('/<div(.*?)id="v-(.*?)-(.*?)"(.*?)class="video-player">(.*?)<\/div>/', $content_buffer)) {
|
59 |
+
$content_buffer = preg_replace('/<div(.*?)id="v-(.*?)-(.*?)"(.*?)class="video-player">(.*?)<\/div>/', '<div$1id="v-$2-$3"$4class="video-player"><amp-iframe width="300" height="150" sandbox="allow-scripts allow-same-origin" layout="responsive" src="https://videopress.com/embed/$2"></amp-iframe></div>', $content_buffer);
|
60 |
+
}
|
61 |
global $redux_builder_amp;
|
62 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
63 |
return $content_buffer;
|
pagebuilder/inc/admin-amp-page-builder.css
CHANGED
@@ -668,15 +668,16 @@ position: fixed;
|
|
668 |
display: table-cell;
|
669 |
vertical-align: middle;
|
670 |
}
|
671 |
-
.modal-header{
|
672 |
background: #fff;
|
673 |
width: 100%;
|
674 |
z-index: 100;
|
675 |
border-bottom: 1px solid #D8D8D8;
|
676 |
position: relative;
|
677 |
padding-left: 20px;
|
|
|
678 |
}
|
679 |
-
.modal-container {position: fixed;overflow: hidden;top:30px;left: 30px;right: 30px;bottom: 30px;z-index: 160000;overflow: hidden;min-height: 300px;box-shadow: 0 5px 15px rgba(0,0,0,.7);background: #fcfcfc;-webkit-font-smoothing: subpixel-antialiased;}
|
680 |
|
681 |
.modal-header h3 {
|
682 |
font-weight: normal;
|
668 |
display: table-cell;
|
669 |
vertical-align: middle;
|
670 |
}
|
671 |
+
#amp-page-builder .modal-header{
|
672 |
background: #fff;
|
673 |
width: 100%;
|
674 |
z-index: 100;
|
675 |
border-bottom: 1px solid #D8D8D8;
|
676 |
position: relative;
|
677 |
padding-left: 20px;
|
678 |
+
padding-top: 0px;
|
679 |
}
|
680 |
+
#amp-page-builder .modal-container {position: fixed;overflow: hidden;top:30px;left: 30px;right: 30px;bottom: 30px;z-index: 160000;overflow: hidden;min-height: 300px;box-shadow: 0 5px 15px rgba(0,0,0,.7);background: #fcfcfc;-webkit-font-smoothing: subpixel-antialiased;max-width: 1200px;}
|
681 |
|
682 |
.modal-header h3 {
|
683 |
font-weight: normal;
|
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.76.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,12 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
= 1.0.76.4 (19th February 2021) =
|
194 |
* Fixed: AMP front page not working after update #4892
|
195 |
|
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.76.5
|
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.76.5 (20th February 2021) =
|
194 |
+
* Improvements: Added UX Builder compatibility #4933
|
195 |
+
* Fixed: Second paginated post not working #4892
|
196 |
+
* Fixed: Jetpack hosted videos not working on AMP #4931
|
197 |
+
* Fixed: AMP Pagebuilder module getting narrowed with All in One SEO plugin #4930
|
198 |
+
|
199 |
= 1.0.76.4 (19th February 2021) =
|
200 |
* Fixed: AMP front page not working after update #4892
|
201 |
|
templates/features.php
CHANGED
@@ -4164,6 +4164,10 @@ function ampforwp_post_paginated_content($content){
|
|
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 |
if ($content) {
|
4168 |
$sanitizer_obj = new AMPFORWP_Content( $content,
|
4169 |
apply_filters( 'amp_content_embed_handlers', array(
|
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 |
+
if (get_query_var('paged') > 1) {
|
4168 |
+
$id = ampforwp_get_the_ID();
|
4169 |
+
$content = get_post_field( 'post_content', $id);
|
4170 |
+
}
|
4171 |
if ($content) {
|
4172 |
$sanitizer_obj = new AMPFORWP_Content( $content,
|
4173 |
apply_filters( 'amp_content_embed_handlers', array(
|