Version Description
(21st August 2020) = * Fixed: Gutenberg gallery block caption appearing at the end of the content #4716 * Fixed: Validation error - accordion section must have 2 child tags #4208
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.62.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.62.1 to 1.0.62.2
- README.md +5 -1
- accelerated-moblie-pages.php +2 -2
- changelog.txt +4 -0
- includes/vendor/amp/includes/sanitizers/class-amp-gallery-block-sanitizer-5-3.php +9 -2
- pagebuilder/inc/admin-amp-page-builder.js +7 -1
- pagebuilder/inc/viewShowFrontData.php +2 -0
- pagebuilder/modules/accordion-mod-module.php +4 -1
- readme.txt +5 -1
- templates/design-manager/swift/style.php +0 -1
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.5
|
7 |
-
Stable tag: 1.0.62.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -193,6 +193,10 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
196 |
= 1.0.62.1 (17th August 2020) =
|
197 |
* Improvement: Removed unwanted javascript from AMP pages #4689
|
198 |
* Fixed: Call to undefined function fifu_amp_url() #4688
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.5
|
7 |
+
Stable tag: 1.0.62.2
|
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.62.2 (21st August 2020) =
|
197 |
+
* Fixed: Gutenberg gallery block caption appearing at the end of the content #4716
|
198 |
+
* Fixed: Validation error - accordion section must have 2 child tags #4208
|
199 |
+
|
200 |
= 1.0.62.1 (17th August 2020) =
|
201 |
* Improvement: Removed unwanted javascript from AMP pages #4689
|
202 |
* Fixed: Call to undefined function fifu_amp_url() #4688
|
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.62.
|
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.62.
|
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.62.2
|
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.62.2');
|
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,9 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
3 |
= 1.0.62.1 (17th August 2020) =
|
4 |
* Improvement: Removed unwanted javascript from AMP pages #4689
|
5 |
* Fixed: Call to undefined function fifu_amp_url() #4688
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.62.2 (21st August 2020) =
|
4 |
+
* Fixed: Gutenberg gallery block caption appearing at the end of the content #4716
|
5 |
+
* Fixed: Validation error - accordion section must have 2 child tags #4208
|
6 |
+
|
7 |
= 1.0.62.1 (17th August 2020) =
|
8 |
* Improvement: Removed unwanted javascript from AMP pages #4689
|
9 |
* Fixed: Call to undefined function fifu_amp_url() #4688
|
includes/vendor/amp/includes/sanitizers/class-amp-gallery-block-sanitizer-5-3.php
CHANGED
@@ -327,7 +327,13 @@ class AMP_Gallery_Block_Sanitizer extends AMP_Base_Sanitizer {
|
|
327 |
foreach ($amp_images as $amp_image) {
|
328 |
$amp_carousel->appendChild( $amp_image );
|
329 |
}
|
330 |
-
$this->ampforwp_set_block_gallery_caption($node,$node->parentNode);
|
|
|
|
|
|
|
|
|
|
|
|
|
331 |
}
|
332 |
if ( 2 == ampforwp_get_setting('ampforwp-gallery-design-type') ) {
|
333 |
$button_nodes = array();
|
@@ -400,9 +406,10 @@ class AMP_Gallery_Block_Sanitizer extends AMP_Base_Sanitizer {
|
|
400 |
$block_gcnode = AMP_DOM_Utils::create_node($this->dom, 'figcaption', array('class'=>'ampforwp-blocks-gallery-caption') );
|
401 |
if(isset($fc[1][0])){
|
402 |
$block_gcnode->nodeValue = $fc[1][0];
|
403 |
-
|
404 |
}
|
405 |
}
|
|
|
406 |
}
|
407 |
/**
|
408 |
* Get carousel height by containing images.
|
327 |
foreach ($amp_images as $amp_image) {
|
328 |
$amp_carousel->appendChild( $amp_image );
|
329 |
}
|
330 |
+
$captiondom = $this->ampforwp_set_block_gallery_caption($node,$node->parentNode);
|
331 |
+
if ($captiondom) {
|
332 |
+
$main_dic = AMP_DOM_Utils::create_node($this->dom, 'div', array('class'=>'amp-carousel-wrapper') );
|
333 |
+
$main_dic->appendChild( $amp_carousel );
|
334 |
+
$main_dic->appendChild( $captiondom );
|
335 |
+
$amp_carousel = $main_dic;
|
336 |
+
}
|
337 |
}
|
338 |
if ( 2 == ampforwp_get_setting('ampforwp-gallery-design-type') ) {
|
339 |
$button_nodes = array();
|
406 |
$block_gcnode = AMP_DOM_Utils::create_node($this->dom, 'figcaption', array('class'=>'ampforwp-blocks-gallery-caption') );
|
407 |
if(isset($fc[1][0])){
|
408 |
$block_gcnode->nodeValue = $fc[1][0];
|
409 |
+
return $block_gcnode;
|
410 |
}
|
411 |
}
|
412 |
+
return "";
|
413 |
}
|
414 |
/**
|
415 |
* Get carousel height by containing images.
|
pagebuilder/inc/admin-amp-page-builder.js
CHANGED
@@ -420,7 +420,11 @@ function openModulePopup(event,type){
|
|
420 |
//if(moduleData[fieldData.name] && moduleData[fieldData.name]!=''){
|
421 |
|
422 |
if(fieldData.name in moduleData){
|
423 |
-
|
|
|
|
|
|
|
|
|
424 |
}else{
|
425 |
var userValues = fieldData.default;
|
426 |
}
|
@@ -450,7 +454,9 @@ function openModulePopup(event,type){
|
|
450 |
newFields.name = newFields.name+'_'+savedkey;
|
451 |
//if(savedREPValue[newFields.name]){
|
452 |
//console.log(savedREPValue[newFields.name],newFields.name)
|
|
|
453 |
newFields.default = savedREPValue[newFields.name];
|
|
|
454 |
//}
|
455 |
})
|
456 |
app.modalcontent.repeater.showFields.push(Vue.util.extend([], allRepeaterFileds));
|
420 |
//if(moduleData[fieldData.name] && moduleData[fieldData.name]!=''){
|
421 |
|
422 |
if(fieldData.name in moduleData){
|
423 |
+
if(typeof moduleData[fieldData.name] !='undefined'){
|
424 |
+
var userValues = moduleData[fieldData.name];
|
425 |
+
}else{
|
426 |
+
var userValues = fieldData.default;
|
427 |
+
}
|
428 |
}else{
|
429 |
var userValues = fieldData.default;
|
430 |
}
|
454 |
newFields.name = newFields.name+'_'+savedkey;
|
455 |
//if(savedREPValue[newFields.name]){
|
456 |
//console.log(savedREPValue[newFields.name],newFields.name)
|
457 |
+
if(typeof savedREPValue[newFields.name] !='undefined'){
|
458 |
newFields.default = savedREPValue[newFields.name];
|
459 |
+
}
|
460 |
//}
|
461 |
})
|
462 |
app.modalcontent.repeater.showFields.push(Vue.util.extend([], allRepeaterFileds));
|
pagebuilder/inc/viewShowFrontData.php
CHANGED
@@ -710,6 +710,8 @@ function ampforwp_rowData($container,$col,$moduleTemplate){
|
|
710 |
$replace = "";
|
711 |
if(isset($repeaterUserValues[$moduleField['name'].'_'.$repeaterVarIndex])){
|
712 |
$replace = $repeaterUserValues[$moduleField['name'].'_'.$repeaterVarIndex];
|
|
|
|
|
713 |
}
|
714 |
if(is_array($replace)){
|
715 |
if(count($replace)>0){
|
710 |
$replace = "";
|
711 |
if(isset($repeaterUserValues[$moduleField['name'].'_'.$repeaterVarIndex])){
|
712 |
$replace = $repeaterUserValues[$moduleField['name'].'_'.$repeaterVarIndex];
|
713 |
+
}else{
|
714 |
+
$replace = $moduleField['default'];
|
715 |
}
|
716 |
if(is_array($replace)){
|
717 |
if(count($replace)>0){
|
pagebuilder/modules/accordion-mod-module.php
CHANGED
@@ -11,7 +11,10 @@ amp-accordion section:not([expanded]) .show-less {display: none;}
|
|
11 |
{{module-class}}.accordion-mod .acc-desc{margin-bottom:0;margin:-5px 0px 20px 23px;padding: 0;color:#666;font-size: 14px;line-height: 1.5em;}';
|
12 |
$front_css = '.accordion-mod {{acc_head_type}}:before{content: "+";font-size: 24px;color: #999;margin-right: 10px;position: relative;top: 1px;}
|
13 |
.accordion-mod {{acc_head_type}}:hover{color:#000;}
|
14 |
-
.accordion-mod section[expanded] {{acc_head_type}}:before{content:"-"}
|
|
|
|
|
|
|
15 |
return array(
|
16 |
'label' =>'Accordion',
|
17 |
'name' =>'accordion-mod',
|
11 |
{{module-class}}.accordion-mod .acc-desc{margin-bottom:0;margin:-5px 0px 20px 23px;padding: 0;color:#666;font-size: 14px;line-height: 1.5em;}';
|
12 |
$front_css = '.accordion-mod {{acc_head_type}}:before{content: "+";font-size: 24px;color: #999;margin-right: 10px;position: relative;top: 1px;}
|
13 |
.accordion-mod {{acc_head_type}}:hover{color:#000;}
|
14 |
+
.accordion-mod section[expanded] {{acc_head_type}}:before{content:"-"}
|
15 |
+
.accordion-mod h5:before{content: "+";font-size: 24px;color: #999;margin-right: 10px;position: relative;top: 1px;}
|
16 |
+
.accordion-mod section[expanded] h5:before{content:"-"}
|
17 |
+
.apac:before,.apac section[expanded]:before{display:none;}';
|
18 |
return array(
|
19 |
'label' =>'Accordion',
|
20 |
'name' =>'accordion-mod',
|
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.5
|
7 |
-
Stable tag: 1.0.62.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,10 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
193 |
= 1.0.62.1 (17th August 2020) =
|
194 |
* Improvement: Removed unwanted javascript from AMP pages #4689
|
195 |
* Fixed: Call to undefined function fifu_amp_url() #4688
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.5
|
7 |
+
Stable tag: 1.0.62.2
|
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.62.2 (21st August 2020) =
|
194 |
+
* Fixed: Gutenberg gallery block caption appearing at the end of the content #4716
|
195 |
+
* Fixed: Validation error - accordion section must have 2 child tags #4208
|
196 |
+
|
197 |
= 1.0.62.1 (17th August 2020) =
|
198 |
* Improvement: Removed unwanted javascript from AMP pages #4689
|
199 |
* Fixed: Call to undefined function fifu_amp_url() #4688
|
templates/design-manager/swift/style.php
CHANGED
@@ -2312,7 +2312,6 @@ if(ampforwp_get_setting('ampforwp-gallery-design-type')==3){?>
|
|
2312 |
<?php }else if(ampforwp_get_setting('ampforwp-gallery-design-type')==2){?>
|
2313 |
.ampforwp-blocks-gallery-caption{
|
2314 |
font-size: 16px;
|
2315 |
-
margin-top: -23px;
|
2316 |
}
|
2317 |
<?php }else if(ampforwp_get_setting('ampforwp-gallery-design-type')==1){?>
|
2318 |
.ampforwp-blocks-gallery-caption{
|
2312 |
<?php }else if(ampforwp_get_setting('ampforwp-gallery-design-type')==2){?>
|
2313 |
.ampforwp-blocks-gallery-caption{
|
2314 |
font-size: 16px;
|
|
|
2315 |
}
|
2316 |
<?php }else if(ampforwp_get_setting('ampforwp-gallery-design-type')==1){?>
|
2317 |
.ampforwp-blocks-gallery-caption{
|