Version Description
(31th January 2020) = * Fixed: Need to add nofollow feature in notification option #3612 * Fixed: Cache Should auto clear when any plugin is activated/deactivated #4046 * Fixed: Pages won't save apostophies in AMP page builder text module. #4074 * Fixed: Modifying the location of the theme files. #4091 * Fixed: Warring in console : [DOM] Found 2 elements with non-unique id #amp-search #3946
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.20 |
Comparing to | |
See all releases |
Code changes from version 1.0.19 to 1.0.20
- README.md +8 -26
- accelerated-moblie-pages.php +2 -2
- changelog.txt +7 -0
- components/search/search.php +2 -2
- components/theme-loader.php +28 -9
- includes/features/notice-bar/notice-bar-functions.php +1 -1
- includes/features/notice-bar/notice-bar-options.php +9 -1
- includes/features/performance/performance-functions.php +5 -7
- pagebuilder/functions.php +0 -3
- pagebuilder/inc/viewShowFrontData.php +0 -4
- readme.txt +8 -26
- templates/design-manager/swift/style.php +5 -5
- templates/features.php +7 -0
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.3.2
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -194,6 +194,13 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
= 1.0.19 (29th January 2020) =
|
198 |
* Improvement: EWWW Image Optimizer plugin Compatibility #3984
|
199 |
* Fixed: WP Admin toolbar CSS is not loading when user is logged in #4076
|
@@ -210,29 +217,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
210 |
= 1.0.18 (27th January 2020) =
|
211 |
* Fixed: Debug warnings with Imagify plugin #3908
|
212 |
|
213 |
-
= 1.0.17 (27th January 2020) =
|
214 |
-
* Improvement: Compatibility with the Imagify plugin #3908
|
215 |
-
* Improvement: EWWW Image Optimizer plugin Compatibility #3984
|
216 |
-
* Improvement: Accessibility score of Amp Layouts improved in Lighthouse test #4078
|
217 |
-
* Fixed: Admin toolbar is not showing on custom amp page #3718
|
218 |
-
* Fixed: Bug in Instant article's Single option #3891
|
219 |
-
* Fixed: If the user adds the social share link in the users section then we need to show social share icon #3976
|
220 |
-
* Fixed: Treeshaking is enabled then " Content sneak to peek " button is showing below the content. #4069
|
221 |
-
* Fixed: AMP take over is not working on home page when user have no posts. #4056
|
222 |
-
|
223 |
-
= 1.0.16 (24th January 2020) =
|
224 |
-
* Improvement: Need to built compatibility with "Mistape" plugin. #3974
|
225 |
-
* Improvement: Need to make compatibility with "Transposh WordPress Translation" plugin #3895
|
226 |
-
* Fixed: A Table is created trough Gutenberg then CSS of that Table is failing to load in AMP. #3902
|
227 |
-
* Fixed: When user search from the AMP site then results page should be in non-AMP. #3977
|
228 |
-
* Fixed: Add 'wp-color-picker' as dependency while registering the script #4061
|
229 |
-
* Fixed: The "for" attribute is removing in AMP #4054
|
230 |
-
* Fixed: Table heading style is not working properly #4050
|
231 |
-
* Fixed: Need to change the description of AMP page builder compatibility options when plugin is activated. #3899
|
232 |
-
* Fixed: Thumbnail image of homepage should show properly after changing the image size #3882
|
233 |
-
* Fixed: Need to remove the default AMP functionality from the User's theme as it is breaking the layout. #4068
|
234 |
-
* Fixed: YOAST SEO Analysis is not working properly with AMP Page Builder. #4030
|
235 |
-
* Fixed: When AMP is disabled on pages,give an option of hide/unhide AMP on Blog page when in edit mode. #4066
|
236 |
-
* Fixed: The tag 'template' requires including the 'amp-mustache' extension JavaScript. #4079
|
237 |
-
|
238 |
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.3.2
|
7 |
+
Stable tag: 1.0.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
194 |
|
195 |
== Changelog ==
|
196 |
|
197 |
+
= 1.0.20 (31th January 2020) =
|
198 |
+
* Fixed: Need to add nofollow feature in notification option #3612
|
199 |
+
* Fixed: Cache Should auto clear when any plugin is activated/deactivated #4046
|
200 |
+
* Fixed: Pages won't save apostophies in AMP page builder text module. #4074
|
201 |
+
* Fixed: Modifying the location of the theme files. #4091
|
202 |
+
* Fixed: Warring in console : [DOM] Found 2 elements with non-unique id #amp-search #3946
|
203 |
+
|
204 |
= 1.0.19 (29th January 2020) =
|
205 |
* Improvement: EWWW Image Optimizer plugin Compatibility #3984
|
206 |
* Fixed: WP Admin toolbar CSS is not loading when user is logged in #4076
|
217 |
= 1.0.18 (27th January 2020) =
|
218 |
* Fixed: Debug warnings with Imagify plugin #3908
|
219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
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');
|
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.20
|
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.20');
|
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,12 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.19 (29th January 2020) =
|
4 |
* Improvement: EWWW Image Optimizer plugin Compatibility #3984
|
5 |
* Fixed: WP Admin toolbar CSS is not loading when user is logged in #4076
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.20 (31th January 2020) =
|
4 |
+
* Fixed: Need to add nofollow feature in notification option #3612
|
5 |
+
* Fixed: Cache Should auto clear when any plugin is activated/deactivated #4046
|
6 |
+
* Fixed: Pages won't save apostophies in AMP page builder text module. #4074
|
7 |
+
* Fixed: Modifying the location of the theme files. #4091
|
8 |
+
* Fixed: Warring in console : [DOM] Found 2 elements with non-unique id #amp-search #3946
|
9 |
+
|
10 |
= 1.0.19 (29th January 2020) =
|
11 |
* Improvement: EWWW Image Optimizer plugin Compatibility #3984
|
12 |
* Fixed: WP Admin toolbar CSS is not loading when user is logged in #4076
|
components/search/search.php
CHANGED
@@ -20,9 +20,9 @@ function ampforwp_framework_get_search_form() {
|
|
20 |
<div class="amp-search-wrapper">
|
21 |
<label aria-label="Type your query" class="screen-reader-text" for="s">' . esc_html__($label,'accelerated-mobile-pages') . '</label>
|
22 |
<input type="text" placeholder="AMP" value="'.esc_attr($amp_query_variable_val).'" name="'.esc_attr($amp_query_variable).'" class="hidden"/>
|
23 |
-
<input type="text" placeholder="'.esc_attr($placeholder).'" value="' . esc_attr(get_search_query()) . '" name="s"
|
24 |
<label aria-label="Submit amp search" for="amp-search-submit" >
|
25 |
-
<input type="submit" class="icon-search"
|
26 |
</label>
|
27 |
<div class="overlay-search">
|
28 |
</div>
|
20 |
<div class="amp-search-wrapper">
|
21 |
<label aria-label="Type your query" class="screen-reader-text" for="s">' . esc_html__($label,'accelerated-mobile-pages') . '</label>
|
22 |
<input type="text" placeholder="AMP" value="'.esc_attr($amp_query_variable_val).'" name="'.esc_attr($amp_query_variable).'" class="hidden"/>
|
23 |
+
<input type="text" placeholder="'.esc_attr($placeholder).'" value="' . esc_attr(get_search_query()) . '" name="s" class="s" />
|
24 |
<label aria-label="Submit amp search" for="amp-search-submit" >
|
25 |
+
<input type="submit" class="icon-search" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />
|
26 |
</label>
|
27 |
<div class="overlay-search">
|
28 |
</div>
|
components/theme-loader.php
CHANGED
@@ -1,15 +1,25 @@
|
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
-
}
|
5 |
-
if ( 4 == $ampforwp_design_selector ) {
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
//Filter the Template files to override previous ones
|
14 |
add_filter( 'amp_post_template_file', 'ampforwp_designing_custom_template', 10, 3 );
|
15 |
|
@@ -246,5 +256,14 @@ elseif ( ! defined('AMPFORWP_CUSTOM_THEME') ) {
|
|
246 |
if ( 'single' === $type && ampforwp_polylang_front_page() && true == $redux_builder_amp['amp-frontpage-select-option'] ) {
|
247 |
$file = AMPFORWP_CUSTOM_THEME . '/page.php';
|
248 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
return $file;
|
250 |
}
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
+
}
|
5 |
+
if ( 4 == $ampforwp_design_selector ) {
|
6 |
+
|
7 |
+
$amp_main_dir = AMPFORWP_PLUGIN_DIR . 'templates/design-manager/swift';
|
8 |
+
|
9 |
+
$amp_theme_dir = apply_filters('ampforwp_theme_dir', $amp_main_dir);
|
10 |
+
|
11 |
+
if ( ! is_dir($amp_theme_dir)) {
|
12 |
+
$amp_theme_dir = $amp_main_dir;
|
13 |
+
}
|
14 |
+
define('AMPFORWP_CUSTOM_THEME', $amp_theme_dir );
|
15 |
+
}
|
16 |
+
|
17 |
+
// Include functions.php
|
18 |
+
$function_file = AMPFORWP_CUSTOM_THEME . '/functions.php';
|
19 |
+
if ( ! file_exists($function_file)) {
|
20 |
+
$function_file = $amp_main_dir .'/functions.php';
|
21 |
+
}
|
22 |
+
require_once( $function_file );
|
23 |
//Filter the Template files to override previous ones
|
24 |
add_filter( 'amp_post_template_file', 'ampforwp_designing_custom_template', 10, 3 );
|
25 |
|
256 |
if ( 'single' === $type && ampforwp_polylang_front_page() && true == $redux_builder_amp['amp-frontpage-select-option'] ) {
|
257 |
$file = AMPFORWP_CUSTOM_THEME . '/page.php';
|
258 |
}
|
259 |
+
if ( ! file_exists($file)) {
|
260 |
+
|
261 |
+
$exploded_path = explode('/', $file);
|
262 |
+
$file_name = end($exploded_path);
|
263 |
+
|
264 |
+
$amp_fallback_theme_dir = AMPFORWP_PLUGIN_DIR . 'templates/design-manager/swift';
|
265 |
+
|
266 |
+
$file = $amp_fallback_theme_dir .'/'. $file_name;
|
267 |
+
}
|
268 |
return $file;
|
269 |
}
|
includes/features/notice-bar/notice-bar-functions.php
CHANGED
@@ -30,7 +30,7 @@ function ampforwp_footer() {
|
|
30 |
<amp-user-notification layout=nodisplay id="amp-user-notification1">
|
31 |
<p><?php $cookie_message = ampforwp_get_setting('amp-notification-text'); echo strip_tags($cookie_message, '<span><a><b><i><br>');?></p>
|
32 |
<?php if ( ampforwp_get_setting('amp-enable-links') ){ ?>
|
33 |
-
<a class="amp-not-privacy amp-not-page-link" href="<?php echo esc_url( ampforwp_get_setting('amp-notice-bar-select-privacy-page')); ?>" target="_blank"><?php echo esc_attr(ampforwp_get_setting('amp-notice-bar-privacy-page-button-text')); ?>
|
34 |
</a>
|
35 |
<?php } ?>
|
36 |
<button on="tap:amp-user-notification1.dismiss"><?php echo esc_html__(ampforwp_get_setting('amp-accept-button-text'),'accelerated-mobile-pages'); ?></button>
|
30 |
<amp-user-notification layout=nodisplay id="amp-user-notification1">
|
31 |
<p><?php $cookie_message = ampforwp_get_setting('amp-notification-text'); echo strip_tags($cookie_message, '<span><a><b><i><br>');?></p>
|
32 |
<?php if ( ampforwp_get_setting('amp-enable-links') ){ ?>
|
33 |
+
<a class="amp-not-privacy amp-not-page-link" href="<?php echo esc_url( ampforwp_get_setting('amp-notice-bar-select-privacy-page')); ?>" <?php ampforwp_nofollow_notification(); ?> target="_blank"><?php echo esc_attr(ampforwp_get_setting('amp-notice-bar-privacy-page-button-text')); ?>
|
34 |
</a>
|
35 |
<?php } ?>
|
36 |
<button on="tap:amp-user-notification1.dismiss"><?php echo esc_html__(ampforwp_get_setting('amp-accept-button-text'),'accelerated-mobile-pages'); ?></button>
|
includes/features/notice-bar/notice-bar-options.php
CHANGED
@@ -85,7 +85,15 @@ function ampforwp_notice_bar_options($opt_name){
|
|
85 |
'default' => 'Read More',
|
86 |
'required' => array('amp-enable-links', '=' , '1'),
|
87 |
),
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
array(
|
90 |
'id' => 'ampforwp-notice_1',
|
91 |
'type' => 'section',
|
85 |
'default' => 'Read More',
|
86 |
'required' => array('amp-enable-links', '=' , '1'),
|
87 |
),
|
88 |
+
array(
|
89 |
+
'class' => 'child_opt',
|
90 |
+
'id' =>'ampforwp-notifications-nofollow',
|
91 |
+
'type' => 'switch',
|
92 |
+
'title' => esc_html__('No Follow link', 'accelerated-mobile-pages'),
|
93 |
+
'default' => 0,
|
94 |
+
'tooltip-subtitle' => esc_html__('Add nofollow to the notification link.', 'accelerated-mobile-pages'),
|
95 |
+
'required' => array('amp-enable-links', '=' , '1'),
|
96 |
+
),
|
97 |
array(
|
98 |
'id' => 'ampforwp-notice_1',
|
99 |
'type' => 'section',
|
includes/features/performance/performance-functions.php
CHANGED
@@ -318,14 +318,12 @@ if( !function_exists("ampforwp_clear_tree_shaking") ) {
|
|
318 |
}
|
319 |
}
|
320 |
}
|
321 |
-
if
|
322 |
-
|
323 |
-
|
324 |
-
register_activation_hook( 'amp-layouts/amp-layouts.php', 'ampforwp_clear_tree_shaking_on_activity' );
|
325 |
-
register_deactivation_hook( 'amp-layouts/amp-layouts.php', 'ampforwp_clear_tree_shaking_on_activity' );
|
326 |
}
|
327 |
-
function ampforwp_clear_tree_shaking_on_activity(){
|
328 |
-
if (
|
329 |
$upload_dir = wp_upload_dir();
|
330 |
$user_dirname = $upload_dir['basedir'] . '/' . 'ampforwp-tree-shaking';
|
331 |
if ( file_exists( $user_dirname ) ) {
|
318 |
}
|
319 |
}
|
320 |
}
|
321 |
+
if((current_user_can('activate_plugins') || current_user_can('deactivate_plugins')) && ampforwp_get_setting( 'ampforwp_css_tree_shaking' ) ){
|
322 |
+
add_action('activate_plugin','ampforwp_clear_tree_shaking_on_activity');
|
323 |
+
add_action('deactivate_plugin','ampforwp_clear_tree_shaking_on_activity');
|
|
|
|
|
324 |
}
|
325 |
+
function ampforwp_clear_tree_shaking_on_activity($plugin='', $network=''){
|
326 |
+
if ( (current_user_can('activate_plugins') || current_user_can('deactivate_plugins')) && ampforwp_get_setting( 'ampforwp_css_tree_shaking' ) ){
|
327 |
$upload_dir = wp_upload_dir();
|
328 |
$user_dirname = $upload_dir['basedir'] . '/' . 'ampforwp-tree-shaking';
|
329 |
if ( file_exists( $user_dirname ) ) {
|
pagebuilder/functions.php
CHANGED
@@ -56,9 +56,6 @@ function amppbbase_admin_scripts( $hook_suffix ){
|
|
56 |
$previousData = get_post_meta($postId,'amp-page-builder');
|
57 |
$ampforwp_pagebuilder_enable = get_post_meta($postId,'ampforwp_page_builder_enable', true);
|
58 |
$previousData = isset($previousData[0])? $previousData[0]: null;
|
59 |
-
|
60 |
-
$previousData = (str_replace("'", "", $previousData));
|
61 |
-
|
62 |
$totalRows = 1;
|
63 |
$totalmodules = 1;
|
64 |
if(!empty($previousData)){
|
56 |
$previousData = get_post_meta($postId,'amp-page-builder');
|
57 |
$ampforwp_pagebuilder_enable = get_post_meta($postId,'ampforwp_page_builder_enable', true);
|
58 |
$previousData = isset($previousData[0])? $previousData[0]: null;
|
|
|
|
|
|
|
59 |
$totalRows = 1;
|
60 |
$totalmodules = 1;
|
61 |
if(!empty($previousData)){
|
pagebuilder/inc/viewShowFrontData.php
CHANGED
@@ -51,7 +51,6 @@ function ampforwp_pagebuilder_header_html_output(){
|
|
51 |
$previousData = isset($previousData[0])? $previousData[0]: null;
|
52 |
$ampforwp_pagebuilder_enable = get_post_meta($postId,'ampforwp_page_builder_enable', true);
|
53 |
if($previousData!="" && $ampforwp_pagebuilder_enable=='yes'){
|
54 |
-
$previousData = (str_replace("'", "", $previousData));
|
55 |
$previousData = json_decode($previousData,true);
|
56 |
if(isset($previousData['settingdata']['scripts_data']) && $previousData['settingdata']['scripts_data']!=""){
|
57 |
echo $previousData['settingdata']['scripts_data']; // nothing to escaped
|
@@ -71,7 +70,6 @@ function amp_pagebuilder_script_loader($scriptData){
|
|
71 |
$previousData = isset($previousData[0])? $previousData[0]: null;
|
72 |
$ampforwp_pagebuilder_enable = get_post_meta($postId,'ampforwp_page_builder_enable', true);
|
73 |
if($previousData!="" && $ampforwp_pagebuilder_enable=='yes'){
|
74 |
-
$previousData = (str_replace("'", "", $previousData));
|
75 |
$previousData = json_decode($previousData,true);
|
76 |
if(count($previousData['rows'])>0){
|
77 |
foreach ($previousData['rows'] as $key => $rowsData) {
|
@@ -166,7 +164,6 @@ function amp_pagebuilder_content_styles(){
|
|
166 |
';
|
167 |
|
168 |
add_filter('ampforwp_body_class', 'bodyClassForAMPPagebuilder',10,2);
|
169 |
-
$previousData = (str_replace("'", "", $previousData));
|
170 |
$previousData = json_decode($previousData,true);
|
171 |
if(count($previousData['rows'])>0){
|
172 |
|
@@ -586,7 +583,6 @@ function amppb_post_content($content){
|
|
586 |
|
587 |
|
588 |
$html ="";
|
589 |
-
$previousData = (str_replace("'", "", $previousData));
|
590 |
$previousData = json_decode($previousData,true);
|
591 |
//Call Sorting for rows
|
592 |
if(count($previousData['rows'])>0){
|
51 |
$previousData = isset($previousData[0])? $previousData[0]: null;
|
52 |
$ampforwp_pagebuilder_enable = get_post_meta($postId,'ampforwp_page_builder_enable', true);
|
53 |
if($previousData!="" && $ampforwp_pagebuilder_enable=='yes'){
|
|
|
54 |
$previousData = json_decode($previousData,true);
|
55 |
if(isset($previousData['settingdata']['scripts_data']) && $previousData['settingdata']['scripts_data']!=""){
|
56 |
echo $previousData['settingdata']['scripts_data']; // nothing to escaped
|
70 |
$previousData = isset($previousData[0])? $previousData[0]: null;
|
71 |
$ampforwp_pagebuilder_enable = get_post_meta($postId,'ampforwp_page_builder_enable', true);
|
72 |
if($previousData!="" && $ampforwp_pagebuilder_enable=='yes'){
|
|
|
73 |
$previousData = json_decode($previousData,true);
|
74 |
if(count($previousData['rows'])>0){
|
75 |
foreach ($previousData['rows'] as $key => $rowsData) {
|
164 |
';
|
165 |
|
166 |
add_filter('ampforwp_body_class', 'bodyClassForAMPPagebuilder',10,2);
|
|
|
167 |
$previousData = json_decode($previousData,true);
|
168 |
if(count($previousData['rows'])>0){
|
169 |
|
583 |
|
584 |
|
585 |
$html ="";
|
|
|
586 |
$previousData = json_decode($previousData,true);
|
587 |
//Call Sorting for rows
|
588 |
if(count($previousData['rows'])>0){
|
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.3.2
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,6 +191,13 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
= 1.0.19 (29th January 2020) =
|
195 |
* Improvement: EWWW Image Optimizer plugin Compatibility #3984
|
196 |
* Fixed: WP Admin toolbar CSS is not loading when user is logged in #4076
|
@@ -207,29 +214,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
207 |
= 1.0.18 (27th January 2020) =
|
208 |
* Fixed: Debug warnings with Imagify plugin #3908
|
209 |
|
210 |
-
= 1.0.17 (27th January 2020) =
|
211 |
-
* Improvement: Compatibility with the Imagify plugin #3908
|
212 |
-
* Improvement: EWWW Image Optimizer plugin Compatibility #3984
|
213 |
-
* Improvement: Accessibility score of Amp Layouts improved in Lighthouse test #4078
|
214 |
-
* Fixed: Admin toolbar is not showing on custom amp page #3718
|
215 |
-
* Fixed: Bug in Instant article's Single option #3891
|
216 |
-
* Fixed: If the user adds the social share link in the users section then we need to show social share icon #3976
|
217 |
-
* Fixed: Treeshaking is enabled then " Content sneak to peek " button is showing below the content. #4069
|
218 |
-
* Fixed: AMP take over is not working on home page when user have no posts. #4056
|
219 |
-
|
220 |
-
= 1.0.16 (24th January 2020) =
|
221 |
-
* Improvement: Need to built compatibility with "Mistape" plugin. #3974
|
222 |
-
* Improvement: Need to make compatibility with "Transposh WordPress Translation" plugin #3895
|
223 |
-
* Fixed: A Table is created trough Gutenberg then CSS of that Table is failing to load in AMP. #3902
|
224 |
-
* Fixed: When user search from the AMP site then results page should be in non-AMP. #3977
|
225 |
-
* Fixed: Add 'wp-color-picker' as dependency while registering the script #4061
|
226 |
-
* Fixed: The "for" attribute is removing in AMP #4054
|
227 |
-
* Fixed: Table heading style is not working properly #4050
|
228 |
-
* Fixed: Need to change the description of AMP page builder compatibility options when plugin is activated. #3899
|
229 |
-
* Fixed: Thumbnail image of homepage should show properly after changing the image size #3882
|
230 |
-
* Fixed: Need to remove the default AMP functionality from the User's theme as it is breaking the layout. #4068
|
231 |
-
* Fixed: YOAST SEO Analysis is not working properly with AMP Page Builder. #4030
|
232 |
-
* Fixed: When AMP is disabled on pages,give an option of hide/unhide AMP on Blog page when in edit mode. #4066
|
233 |
-
* Fixed: The tag 'template' requires including the 'amp-mustache' extension JavaScript. #4079
|
234 |
-
|
235 |
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.3.2
|
7 |
+
Stable tag: 1.0.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 1.0.20 (31th January 2020) =
|
195 |
+
* Fixed: Need to add nofollow feature in notification option #3612
|
196 |
+
* Fixed: Cache Should auto clear when any plugin is activated/deactivated #4046
|
197 |
+
* Fixed: Pages won't save apostophies in AMP page builder text module. #4074
|
198 |
+
* Fixed: Modifying the location of the theme files. #4091
|
199 |
+
* Fixed: Warring in console : [DOM] Found 2 elements with non-unique id #amp-search #3946
|
200 |
+
|
201 |
= 1.0.19 (29th January 2020) =
|
202 |
* Improvement: EWWW Image Optimizer plugin Compatibility #3984
|
203 |
* Fixed: WP Admin toolbar CSS is not loading when user is logged in #4076
|
214 |
= 1.0.18 (27th January 2020) =
|
215 |
* Fixed: Debug warnings with Imagify plugin #3908
|
216 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
templates/design-manager/swift/style.php
CHANGED
@@ -222,8 +222,8 @@ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
|
|
222 |
.lb-t:target a.lb-x {top: 25px;}
|
223 |
.lb img{cursor:pointer;}
|
224 |
.lb-btn form{position: absolute;top: 200px;left: 0;right: 0;margin: 0 auto;text-align: center;}
|
225 |
-
.lb-btn
|
226 |
-
.lb-btn
|
227 |
.amp-search-wrapper{width: 80%;margin: 0 auto;position: relative;}
|
228 |
.overlay-search:before {
|
229 |
<?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
|
@@ -234,8 +234,8 @@ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
|
|
234 |
<?php } ?>
|
235 |
position: absolute;right:0;cursor: pointer;top:4px;
|
236 |
<?php if($redux_builder_amp['swift-element-overlay-color-control']['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?>}
|
237 |
-
.
|
238 |
-
.lb-btn
|
239 |
color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;}
|
240 |
<?php } ?>
|
241 |
<?php //menu type-1
|
@@ -1021,7 +1021,7 @@ if ( isset($redux_builder_amp['menu-search']) && $redux_builder_amp['menu-search
|
|
1021 |
width:100%;
|
1022 |
border-radius:60px;
|
1023 |
}
|
1024 |
-
.m-srch
|
1025 |
padding:10px 15px;
|
1026 |
border:none;
|
1027 |
width:100%;
|
222 |
.lb-t:target a.lb-x {top: 25px;}
|
223 |
.lb img{cursor:pointer;}
|
224 |
.lb-btn form{position: absolute;top: 200px;left: 0;right: 0;margin: 0 auto;text-align: center;}
|
225 |
+
.lb-btn .s{padding:10px;}
|
226 |
+
.lb-btn .icon-search{padding:10px;cursor:pointer;}
|
227 |
.amp-search-wrapper{width: 80%;margin: 0 auto;position: relative;}
|
228 |
.overlay-search:before {
|
229 |
<?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
|
234 |
<?php } ?>
|
235 |
position: absolute;right:0;cursor: pointer;top:4px;
|
236 |
<?php if($redux_builder_amp['swift-element-overlay-color-control']['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?>}
|
237 |
+
.amp-search-wrapper .icon-search {cursor: pointer;background:transparent;border: none;display: inline-block;width: 30px;height: 30px;opacity: 0;position: absolute;z-index:100;right: 0;top: 0;}
|
238 |
+
.lb-btn .s {padding: 10px;background: transparent;border: none;border-bottom: 1px solid #504c4c;width:100%;
|
239 |
color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;}
|
240 |
<?php } ?>
|
241 |
<?php //menu type-1
|
1021 |
width:100%;
|
1022 |
border-radius:60px;
|
1023 |
}
|
1024 |
+
.m-srch .s{
|
1025 |
padding:10px 15px;
|
1026 |
border:none;
|
1027 |
width:100%;
|
templates/features.php
CHANGED
@@ -7045,6 +7045,13 @@ function ampforwp_nofollow_social_links(){
|
|
7045 |
}
|
7046 |
return false;
|
7047 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7048 |
// Featured Video SmartMag theme Compatibility CSS #2559
|
7049 |
add_action('amp_post_template_css', 'ampforwp_featured_video_plus_css');
|
7050 |
function ampforwp_featured_video_plus_css(){
|
7045 |
}
|
7046 |
return false;
|
7047 |
}
|
7048 |
+
function ampforwp_nofollow_notification(){
|
7049 |
+
if(true == ampforwp_get_setting('ampforwp-notifications-nofollow')){
|
7050 |
+
echo 'rel=nofollow';
|
7051 |
+
return;
|
7052 |
+
}
|
7053 |
+
return false;
|
7054 |
+
}
|
7055 |
// Featured Video SmartMag theme Compatibility CSS #2559
|
7056 |
add_action('amp_post_template_css', 'ampforwp_featured_video_plus_css');
|
7057 |
function ampforwp_featured_video_plus_css(){
|