Version Description
(18th December 2018) = * Fixed: Sub menu items and arrows are not functioning in publisher theme. #2672 * Fixed: Fatal error when Polylang(Core) is activated. #2657 * Fixed: Improve coding in amp-page-builder.php #2725 * Fixed: Escaping not done properly #2723 * Fixed: Serialization problem with AMP settings data. #2717 * Fixed: Whenever Convert AMP to WP theme (Beta) option is enabled Logo Image is being stretched. #2726
Full changelog available in changelog.txt
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.9.97.23 |
Comparing to | |
See all releases |
Code changes from version 0.9.97.22 to 0.9.97.23
- README.md +10 -2
- accelerated-moblie-pages.php +2 -2
- changelog.txt +9 -1
- includes/options/admin-config.php +1 -1
- includes/thirdparty-compatibility.php +1 -1
- pagebuilder/amp-page-builder.php +13 -43
- readme.txt +8 -34
- templates/features.php +6 -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.0
|
7 |
-
Stable tag: 0.9.97.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -184,6 +184,14 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
184 |
|
185 |
== Changelog ==
|
186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
= 0.9.97.22 (6th December 2018) =
|
188 |
* Added: Total Plus theme compatibility #2511
|
189 |
* Added: Allow SVG format Logo in AMP #2431
|
@@ -231,7 +239,7 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
231 |
= 0.9.97.19 (4th October 2018) =
|
232 |
* Fixed: Tables overflow not working in swift theme #2392
|
233 |
* Fixed: Null check added to fix null reference exception #2526
|
234 |
-
* Fixed: Minor Bug related with menu
|
235 |
|
236 |
= 0.9.97.18 (29th September 2018) =
|
237 |
* Fixed: Minor Bug related with menu
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 0.9.97.23
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
184 |
|
185 |
== Changelog ==
|
186 |
|
187 |
+
= 0.9.97.23 (18th December 2018) =
|
188 |
+
* Fixed: Sub menu items and arrows are not functioning in publisher theme. #2672
|
189 |
+
* Fixed: Fatal error when Polylang(Core) is activated. #2657
|
190 |
+
* Fixed: Improve coding in amp-page-builder.php #2725
|
191 |
+
* Fixed: Escaping not done properly #2723
|
192 |
+
* Fixed: Serialization problem with AMP settings data. #2717
|
193 |
+
* Fixed: Whenever Convert AMP to WP theme (Beta) option is enabled Logo Image is being stretched. #2726
|
194 |
+
|
195 |
= 0.9.97.22 (6th December 2018) =
|
196 |
* Added: Total Plus theme compatibility #2511
|
197 |
* Added: Allow SVG format Logo in AMP #2431
|
239 |
= 0.9.97.19 (4th October 2018) =
|
240 |
* Fixed: Tables overflow not working in swift theme #2392
|
241 |
* Fixed: Null check added to fix null reference exception #2526
|
242 |
+
* Fixed: Minor Bug related with menu #2612
|
243 |
|
244 |
= 0.9.97.18 (29th September 2018) =
|
245 |
* Fixed: Minor Bug related with menu
|
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.97.
|
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','0.9.97.
|
24 |
// any changes to AMP_QUERY_VAR should be refelected here
|
25 |
function ampforwp_generate_endpoint(){
|
26 |
$ampforwp_slug = '';
|
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.97.23
|
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','0.9.97.23');
|
24 |
// any changes to AMP_QUERY_VAR should be refelected here
|
25 |
function ampforwp_generate_endpoint(){
|
26 |
$ampforwp_slug = '';
|
changelog.txt
CHANGED
@@ -1,5 +1,13 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 0.9.97.22 (6th December 2018) =
|
4 |
* Added: Total Plus theme compatibility #2511
|
5 |
* Added: Allow SVG format Logo in AMP #2431
|
@@ -47,7 +55,7 @@
|
|
47 |
= 0.9.97.19 (4th October 2018) =
|
48 |
* Fixed: Tables overflow not working in swift theme #2392
|
49 |
* Fixed: Null check added to fix null reference exception #2526
|
50 |
-
* Fixed: Minor Bug related with menu
|
51 |
|
52 |
= 0.9.97.18 (29th September 2018) =
|
53 |
* Fixed: Minor Bug related with menu
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 0.9.97.23 (18th December 2018) =
|
4 |
+
* Fixed: Sub menu items and arrows are not functioning in publisher theme. #2672
|
5 |
+
* Fixed: Fatal error when Polylang(Core) is activated. #2657
|
6 |
+
* Fixed: Improve coding in amp-page-builder.php #2725
|
7 |
+
* Fixed: Escaping not done properly #2723
|
8 |
+
* Fixed: Serialization problem with AMP settings data. #2717
|
9 |
+
* Fixed: Whenever Convert AMP to WP theme (Beta) option is enabled Logo Image is being stretched. #2726
|
10 |
+
|
11 |
= 0.9.97.22 (6th December 2018) =
|
12 |
* Added: Total Plus theme compatibility #2511
|
13 |
* Added: Allow SVG format Logo in AMP #2431
|
55 |
= 0.9.97.19 (4th October 2018) =
|
56 |
* Fixed: Tables overflow not working in swift theme #2392
|
57 |
* Fixed: Null check added to fix null reference exception #2526
|
58 |
+
* Fixed: Minor Bug related with menu #2612
|
59 |
|
60 |
= 0.9.97.18 (29th September 2018) =
|
61 |
* Fixed: Minor Bug related with menu
|
includes/options/admin-config.php
CHANGED
@@ -3870,7 +3870,7 @@ $e_commerce_support[] = array(
|
|
3870 |
'id' => 'amp-translator-fourohfour',
|
3871 |
'type' => 'text',
|
3872 |
'title' => esc_html__('404 Error', 'accelerated-mobile-pages'),
|
3873 |
-
'default' => esc_html__(
|
3874 |
'placeholder'=>esc_html__('write here','accelerated-mobile-pages'),
|
3875 |
'required' => array( 'amp-use-pot', '=' , 0 )
|
3876 |
),
|
3870 |
'id' => 'amp-translator-fourohfour',
|
3871 |
'type' => 'text',
|
3872 |
'title' => esc_html__('404 Error', 'accelerated-mobile-pages'),
|
3873 |
+
'default' => esc_html__("Oops! That page can't be found.","accelerated-mobile-pages"),
|
3874 |
'placeholder'=>esc_html__('write here','accelerated-mobile-pages'),
|
3875 |
'required' => array( 'amp-use-pot', '=' , 0 )
|
3876 |
),
|
includes/thirdparty-compatibility.php
CHANGED
@@ -60,7 +60,7 @@ if(!function_exists('ampforwp_amp_nonamp_convert')){
|
|
60 |
, $ampData);
|
61 |
|
62 |
$nonampCss = '
|
63 |
-
.cntr img{
|
64 |
img{height:auto;}
|
65 |
.amp-featured-image img{width:100%;height:auto;}
|
66 |
.content-wrapper, .header, .header-2, .header-3{width:100% !important;}
|
60 |
, $ampData);
|
61 |
|
62 |
$nonampCss = '
|
63 |
+
.cntr img{height:auto !important;}
|
64 |
img{height:auto;}
|
65 |
.amp-featured-image img{width:100%;height:auto;}
|
66 |
.content-wrapper, .header, .header-2, .header-3{width:100% !important;}
|
pagebuilder/amp-page-builder.php
CHANGED
@@ -46,7 +46,6 @@ function amp_content_pagebuilder_title_callback( $post ){
|
|
46 |
$content = get_post_meta ( $amp_current_post_id, 'ampforwp_custom_content_editor', true );
|
47 |
|
48 |
//previous data stored compatible
|
49 |
-
//echo get_post_meta( $amp_current_post_id, 'amp-page-builder', true );
|
50 |
if(get_post_meta($amp_current_post_id ,'use_ampforwp_page_builder',true)==null &&
|
51 |
get_post_meta( $amp_current_post_id, 'amp-page-builder', true ) != ''){
|
52 |
update_post_meta($amp_current_post_id, 'use_ampforwp_page_builder','yes');
|
@@ -64,14 +63,12 @@ function amp_content_pagebuilder_title_callback( $post ){
|
|
64 |
if(empty($content)){
|
65 |
echo " ";
|
66 |
}
|
67 |
-
|
68 |
|
69 |
}
|
70 |
|
71 |
-
|
72 |
-
|
73 |
/* Add page builder form after editor */
|
74 |
-
function
|
75 |
global $post, $moduleTemplate, $layoutTemplate, $containerCommonSettings;
|
76 |
if($post!=null){
|
77 |
$postId = $post->ID;
|
@@ -81,7 +78,6 @@ function call_page_builder(){
|
|
81 |
}
|
82 |
add_thickbox();
|
83 |
|
84 |
-
|
85 |
$previousData = get_post_meta($postId,'amp-page-builder');
|
86 |
$ampforwp_pagebuilder_enable = get_post_meta($postId,'ampforwp_page_builder_enable', true);
|
87 |
$previousData = isset($previousData[0])? $previousData[0]: null;
|
@@ -114,14 +110,14 @@ function call_page_builder(){
|
|
114 |
array(
|
115 |
'type' =>'text',
|
116 |
'name' =>"content_title",
|
117 |
-
'label' =>'Category Block Title',
|
118 |
'tab' =>'customizer',
|
119 |
'default' =>'Category',
|
120 |
),
|
121 |
array(
|
122 |
'type' =>'text',
|
123 |
'name' =>"content_title",
|
124 |
-
'label' =>'Category Block Title',
|
125 |
'tab' =>'container_css',
|
126 |
'default' =>'Category',
|
127 |
),
|
@@ -134,10 +130,9 @@ function call_page_builder(){
|
|
134 |
unset($backendRowSetting['front_css']);
|
135 |
unset($backendRowSetting['front_common_css']);
|
136 |
wp_nonce_field( basename( __FILE__) , 'amp_content_editor_nonce' );
|
137 |
-
//'.add_query_arg('use_amp_pagebuilder','1',$url).'
|
138 |
?>
|
139 |
<div id="ampForWpPageBuilder_container">
|
140 |
-
<div id="start_amp_pb_post" class="start_amp_pb" data-postId="<?php echo get_the_ID() ?>" v-if="startPagebuilder==0" @click="amppb_startFunction($event)"><?php echo esc_html__('Start the AMP Page Builder','accelerated-mobile-pages'); ?></div>
|
141 |
<div class="enable_ampforwp_page_builder" v-if="startPagebuilder==1">
|
142 |
<label><input type="checkbox" name="ampforwp_page_builder_enable" value="yes" v-model="checkedPageBuilder"><?php echo esc_html__('Use Builder','accelerated-mobile-pages'); ?></label>
|
143 |
<label @click="showModal = true;"><?php echo esc_html__('Pre-built AMP Layouts','accelerated-mobile-pages'); ?></label>
|
@@ -149,7 +144,7 @@ function call_page_builder(){
|
|
149 |
<div id="sorted_rows" class="amppb-rows drop" >
|
150 |
<drop class="drop" :class="{'row-dropping':rowOverDrop}" @drop="handleDrop" @dragover="rowOverDrop = true"
|
151 |
@dragleave="rowOverDrop = false">
|
152 |
-
<p class="
|
153 |
<draggable :element="'div'" class="dragrow"
|
154 |
v-model="mainContent.rows"
|
155 |
:options="{
|
@@ -289,7 +284,7 @@ function call_page_builder(){
|
|
289 |
</drag>
|
290 |
<div class="clearfix"></div>
|
291 |
</div><!-- .amppb-actions -->
|
292 |
-
<div class="amppb-module-actions" id="amppb-module-actions-container" data-recentid="<?php echo $totalmodules; ?>">
|
293 |
<?php
|
294 |
//fallback support Hide old modules
|
295 |
$oldModules = array(
|
@@ -317,7 +312,7 @@ function call_page_builder(){
|
|
317 |
$moduleJson = array('type'=> 'module','moduleDraggable'=>true ,'modulename'=>strtolower($module['name']),'moduleJson'=>$module);
|
318 |
echo '
|
319 |
<drag class="drag" :transfer-data=\''.json_encode($moduleJson).'\' :draggable="true" :effect-allowed="\'copy\'">
|
320 |
-
<span class="amppb-add-row button-primary button-large draggable module-'.strtolower($module['name']).'"
|
321 |
>
|
322 |
'.$module['label'].'
|
323 |
</span>
|
@@ -329,22 +324,6 @@ function call_page_builder(){
|
|
329 |
</div><!-- .amppb-module-actions -->
|
330 |
</div>
|
331 |
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
<?php /* This is where our action buttons to add rows
|
349 |
Modules
|
350 |
*/ ?>
|
@@ -363,28 +342,19 @@ function call_page_builder(){
|
|
363 |
default content
|
364 |
-->
|
365 |
|
366 |
-
</amp-pagebuilder-module-modal>
|
367 |
-
|
368 |
-
|
369 |
</div>
|
370 |
-
|
371 |
-
|
372 |
</div>
|
373 |
<?php
|
374 |
}
|
375 |
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
function create_posttype_amppb_layout(){
|
380 |
register_post_type( 'amppb_layout',
|
381 |
array(
|
382 |
'labels' => array(
|
383 |
-
'name' => esc_html__( 'AMP Layouts' ),
|
384 |
-
'singular_name' => esc_html__( 'AMP Layout' )
|
385 |
),
|
386 |
-
/*'public' => true,
|
387 |
-
'has_archive' => false,*/
|
388 |
'public' => false, // it's not public, it shouldn't have it's own permalink, and so on
|
389 |
'publicly_queriable' => false, // you should be able to query it
|
390 |
'show_ui' => false, // you should be able to edit it in wp-admin
|
@@ -396,5 +366,5 @@ function create_posttype_amppb_layout(){
|
|
396 |
)
|
397 |
);
|
398 |
}
|
399 |
-
add_action( 'init', '
|
400 |
require_once AMP_PAGE_BUILDER.'functions.php';
|
46 |
$content = get_post_meta ( $amp_current_post_id, 'ampforwp_custom_content_editor', true );
|
47 |
|
48 |
//previous data stored compatible
|
|
|
49 |
if(get_post_meta($amp_current_post_id ,'use_ampforwp_page_builder',true)==null &&
|
50 |
get_post_meta( $amp_current_post_id, 'amp-page-builder', true ) != ''){
|
51 |
update_post_meta($amp_current_post_id, 'use_ampforwp_page_builder','yes');
|
63 |
if(empty($content)){
|
64 |
echo " ";
|
65 |
}
|
66 |
+
ampforwp_call_page_builder();
|
67 |
|
68 |
}
|
69 |
|
|
|
|
|
70 |
/* Add page builder form after editor */
|
71 |
+
function ampforwp_call_page_builder(){
|
72 |
global $post, $moduleTemplate, $layoutTemplate, $containerCommonSettings;
|
73 |
if($post!=null){
|
74 |
$postId = $post->ID;
|
78 |
}
|
79 |
add_thickbox();
|
80 |
|
|
|
81 |
$previousData = get_post_meta($postId,'amp-page-builder');
|
82 |
$ampforwp_pagebuilder_enable = get_post_meta($postId,'ampforwp_page_builder_enable', true);
|
83 |
$previousData = isset($previousData[0])? $previousData[0]: null;
|
110 |
array(
|
111 |
'type' =>'text',
|
112 |
'name' =>"content_title",
|
113 |
+
'label' => esc_html__('Category Block Title','accelerated-mobile-pages'),
|
114 |
'tab' =>'customizer',
|
115 |
'default' =>'Category',
|
116 |
),
|
117 |
array(
|
118 |
'type' =>'text',
|
119 |
'name' =>"content_title",
|
120 |
+
'label' => esc_html__('Category Block Title','accelerated-mobile-pages'),
|
121 |
'tab' =>'container_css',
|
122 |
'default' =>'Category',
|
123 |
),
|
130 |
unset($backendRowSetting['front_css']);
|
131 |
unset($backendRowSetting['front_common_css']);
|
132 |
wp_nonce_field( basename( __FILE__) , 'amp_content_editor_nonce' );
|
|
|
133 |
?>
|
134 |
<div id="ampForWpPageBuilder_container">
|
135 |
+
<div id="start_amp_pb_post" class="start_amp_pb" data-postId="<?php echo esc_attr(get_the_ID()) ?>" v-if="startPagebuilder==0" @click="amppb_startFunction($event)"><?php echo esc_html__('Start the AMP Page Builder','accelerated-mobile-pages'); ?></div>
|
136 |
<div class="enable_ampforwp_page_builder" v-if="startPagebuilder==1">
|
137 |
<label><input type="checkbox" name="ampforwp_page_builder_enable" value="yes" v-model="checkedPageBuilder"><?php echo esc_html__('Use Builder','accelerated-mobile-pages'); ?></label>
|
138 |
<label @click="showModal = true;"><?php echo esc_html__('Pre-built AMP Layouts','accelerated-mobile-pages'); ?></label>
|
144 |
<div id="sorted_rows" class="amppb-rows drop" >
|
145 |
<drop class="drop" :class="{'row-dropping':rowOverDrop}" @drop="handleDrop" @dragover="rowOverDrop = true"
|
146 |
@dragleave="rowOverDrop = false">
|
147 |
+
<p class="amppb-rows-message" v-if="mainContent.rows && mainContent.rows.length==0"><?php echo esc_html__('Start by dragging a Column and then a Module','accelerated-mobile-pages'); ?>.</p>
|
148 |
<draggable :element="'div'" class="dragrow"
|
149 |
v-model="mainContent.rows"
|
150 |
:options="{
|
284 |
</drag>
|
285 |
<div class="clearfix"></div>
|
286 |
</div><!-- .amppb-actions -->
|
287 |
+
<div class="amppb-module-actions" id="amppb-module-actions-container" data-recentid="<?php echo esc_attr($totalmodules); ?>">
|
288 |
<?php
|
289 |
//fallback support Hide old modules
|
290 |
$oldModules = array(
|
312 |
$moduleJson = array('type'=> 'module','moduleDraggable'=>true ,'modulename'=>strtolower($module['name']),'moduleJson'=>$module);
|
313 |
echo '
|
314 |
<drag class="drag" :transfer-data=\''.json_encode($moduleJson).'\' :draggable="true" :effect-allowed="\'copy\'">
|
315 |
+
<span class="amppb-add-row button-primary button-large draggable module-'.esc_attr(strtolower($module['name'])).'"
|
316 |
>
|
317 |
'.$module['label'].'
|
318 |
</span>
|
324 |
</div><!-- .amppb-module-actions -->
|
325 |
</div>
|
326 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
327 |
<?php /* This is where our action buttons to add rows
|
328 |
Modules
|
329 |
*/ ?>
|
342 |
default content
|
343 |
-->
|
344 |
|
345 |
+
</amp-pagebuilder-module-modal>
|
|
|
|
|
346 |
</div>
|
|
|
|
|
347 |
</div>
|
348 |
<?php
|
349 |
}
|
350 |
|
351 |
+
function ampforwp_create_posttype_amppb_layout(){
|
|
|
|
|
|
|
352 |
register_post_type( 'amppb_layout',
|
353 |
array(
|
354 |
'labels' => array(
|
355 |
+
'name' => esc_html__( 'AMP Layouts','accelerated-mobile-pages' ),
|
356 |
+
'singular_name' => esc_html__( 'AMP Layout','accelerated-mobile-pages' )
|
357 |
),
|
|
|
|
|
358 |
'public' => false, // it's not public, it shouldn't have it's own permalink, and so on
|
359 |
'publicly_queriable' => false, // you should be able to query it
|
360 |
'show_ui' => false, // you should be able to edit it in wp-admin
|
366 |
)
|
367 |
);
|
368 |
}
|
369 |
+
add_action( 'init', 'ampforwp_create_posttype_amppb_layout' );
|
370 |
require_once AMP_PAGE_BUILDER.'functions.php';
|
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.0
|
7 |
-
Stable tag: 0.9.97.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -185,38 +185,12 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
185 |
|
186 |
== Changelog ==
|
187 |
|
188 |
-
= 0.9.97.
|
189 |
-
*
|
190 |
-
*
|
191 |
-
* Fixed:
|
192 |
-
* Fixed:
|
193 |
-
* Fixed:
|
194 |
-
* Fixed:
|
195 |
-
* Fixed: FTP Link being generated in Non-AMP but not in AMP #2477
|
196 |
-
* Fixed: Videos aren't rendering whenever Convert AMP to WP theme (Beta) is enabled #2501
|
197 |
-
* Fixed: More debug errors #2513
|
198 |
-
* Fixed: Comments closed not looking good in Swift theme #2542
|
199 |
-
* Fixed: Excerpt Option is not Working. #2509
|
200 |
-
* Fixed: Image of Design 3 and Swift are same in Installation wizard #2540
|
201 |
-
* Fixed: AMP renders with ?q after the /amp #2361
|
202 |
-
* Fixed: Tables overflow in swift theme when adding the tables to the site [TEST + ALT solution] #2392
|
203 |
-
* Fixed: Unable Access the Wp-admin page when Amp takeover option is Enabled. #2476
|
204 |
-
* Fixed: Latest post title is displaying in the AMP homepage instead of site title #2419
|
205 |
-
* Fixed: AMP menu is not working when Jetpack Mobile theme option is enabled #2584
|
206 |
-
* Fixed: Link to Non-AMP page in Footer points to 404 #2586
|
207 |
-
* Fixed: Debug warnings in error logs #2367
|
208 |
-
* Fixed: The AMP for WP plugin(Version 0.9.97.20) bug are notice-error :undefine index and Unused code. #2687
|
209 |
-
* Fixed: Improvements in AMP page builder code #2471
|
210 |
-
* Fixed: Table class is getting removed in AMP pages. #2699
|
211 |
-
* Fixed: Pagination is not working when AMP Takeover is enabled #2686
|
212 |
-
* Fixed: The featured slider is not displaying properly images using the Firefox browser with the design 3 theme. #2677
|
213 |
-
* Fixed: Icons for AMP Stories and Shortcode Ultimate #2598
|
214 |
-
* Fixed: Images are stretched whenever Convert AMP to WP theme (Beta) Option is enabled. #2694
|
215 |
-
* Fixed: Vertical words in table on mobile #2606
|
216 |
-
* Fixed: PageBulider getting following notices in old module #2305
|
217 |
-
* Fixed: Export option of page builder is not working in latest version #2709
|
218 |
-
* Fixed: Remove the span tag in all 404.php files of the 4 designs #2704
|
219 |
-
* Fixed: Wrong escaping done for default value for Google Analytics #2697
|
220 |
-
* Fixed: Re-modification of single settings option panel when newspaper theme activated #2706
|
221 |
|
222 |
Full changelog available in changelog.txt
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 0.9.97.23
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
185 |
|
186 |
== Changelog ==
|
187 |
|
188 |
+
= 0.9.97.23 (18th December 2018) =
|
189 |
+
* Fixed: Sub menu items and arrows are not functioning in publisher theme. #2672
|
190 |
+
* Fixed: Fatal error when Polylang(Core) is activated. #2657
|
191 |
+
* Fixed: Improve coding in amp-page-builder.php #2725
|
192 |
+
* Fixed: Escaping not done properly #2723
|
193 |
+
* Fixed: Serialization problem with AMP settings data. #2717
|
194 |
+
* Fixed: Whenever Convert AMP to WP theme (Beta) option is enabled Logo Image is being stretched. #2726
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
|
196 |
Full changelog available in changelog.txt
|
templates/features.php
CHANGED
@@ -2052,6 +2052,8 @@ function ampforwp_remove_schema_data() {
|
|
2052 |
ampforwp_remove_filters_for_class( 'amp_post_template_head', 'SocialSharing_Projects_Handler', 'addedStylesForAMP', 10 );
|
2053 |
// Remove JPG, PNG Compression and Optimization Plugin Lazy Load #2322
|
2054 |
ampforwp_remove_filters_for_class( 'the_content', 'Wp_Image_compression', 'filter_images', 200 );
|
|
|
|
|
2055 |
//SiteOrigin Page builder compatibilty with AMP Frontpage
|
2056 |
if ( ampforwp_is_front_page() ) {
|
2057 |
ampforwp_remove_filters_for_class( 'the_content', 'SiteOrigin_Panels', 'generate_post_content', 10 );
|
@@ -5007,11 +5009,12 @@ function ampforwp_dev_mode_notice(){
|
|
5007 |
global $redux_builder_amp;
|
5008 |
$message = '';
|
5009 |
if(isset($redux_builder_amp['ampforwp-development-mode']) && $redux_builder_amp['ampforwp-development-mode']) {
|
5010 |
-
$message = '
|
|
|
5011 |
<div class="notice notice-success is-dismissible amp-dev-notice" style="position:relative;
|
5012 |
height: 40px; overflow: hidden; ">
|
5013 |
<div class="ampforwp-dev-mode-message" style="margin-top: 10px;">
|
5014 |
-
|
5015 |
</div>
|
5016 |
</div>
|
5017 |
<?php }
|
@@ -6162,7 +6165,7 @@ function ampforwp_polylang_front_page() {
|
|
6162 |
$frontpage_id = get_option('page_on_front');
|
6163 |
// is_front_page is not working here so had to do this way
|
6164 |
// Check current page id with translated page id
|
6165 |
-
if ( $page_id == pll_get_post($frontpage_id) && ! is_page() && ! is_single() && ! is_archive() && ! is_search() && ! ampforwp_is_blog() ){
|
6166 |
return true;
|
6167 |
}
|
6168 |
}
|
2052 |
ampforwp_remove_filters_for_class( 'amp_post_template_head', 'SocialSharing_Projects_Handler', 'addedStylesForAMP', 10 );
|
2053 |
// Remove JPG, PNG Compression and Optimization Plugin Lazy Load #2322
|
2054 |
ampforwp_remove_filters_for_class( 'the_content', 'Wp_Image_compression', 'filter_images', 200 );
|
2055 |
+
// Remove Publisher theme menu in amp #2672
|
2056 |
+
ampforwp_remove_filters_for_class( 'wp_nav_menu_args', 'BF_Menus', 'walker_front', 10 );
|
2057 |
//SiteOrigin Page builder compatibilty with AMP Frontpage
|
2058 |
if ( ampforwp_is_front_page() ) {
|
2059 |
ampforwp_remove_filters_for_class( 'the_content', 'SiteOrigin_Panels', 'generate_post_content', 10 );
|
5009 |
global $redux_builder_amp;
|
5010 |
$message = '';
|
5011 |
if(isset($redux_builder_amp['ampforwp-development-mode']) && $redux_builder_amp['ampforwp-development-mode']) {
|
5012 |
+
$message = ' Please turn off Development mode, when you are done.';?>
|
5013 |
+
|
5014 |
<div class="notice notice-success is-dismissible amp-dev-notice" style="position:relative;
|
5015 |
height: 40px; overflow: hidden; ">
|
5016 |
<div class="ampforwp-dev-mode-message" style="margin-top: 10px;">
|
5017 |
+
<?php echo '<strong>'. esc_html__('AMP Dev mode is Enabled!', 'accelerated-mobile-pages').'</strong>'. esc_html__($message, 'accelerated-mobile-pages'); ?>
|
5018 |
</div>
|
5019 |
</div>
|
5020 |
<?php }
|
6165 |
$frontpage_id = get_option('page_on_front');
|
6166 |
// is_front_page is not working here so had to do this way
|
6167 |
// Check current page id with translated page id
|
6168 |
+
if ( function_exists('pll_get_post') && $page_id == pll_get_post($frontpage_id) && ! is_page() && ! is_single() && ! is_archive() && ! is_search() && ! ampforwp_is_blog() ){
|
6169 |
return true;
|
6170 |
}
|
6171 |
}
|