AMP for WP – Accelerated Mobile Pages - Version 1.0.77.44

Version Description

(2nd June 2022) = * Improvements: Added Marfeel analytics compatibility in AMP #5266 * Improvements: Added WP Table Builder compatibility in AMP #5270 * Improvements: Updated the email id in feedback form #5273 * Fixed: Instagram reels not working in AMP #5269 * Fixed: Preload Funtionality not working when Image is added #5260 * Fixed: AMP dashicons CSS overwrites the WP default dashicons #5265 * Fixed: Tel protocols not working in the AMP #5268 * Fixed: CTA links saving without '=' character #5267

Download this release

Release Info

Developer mohammed_kaludi
Plugin Icon 128x128 AMP for WP – Accelerated Mobile Pages
Version 1.0.77.44
Comparing to
See all releases

Code changes from version 1.0.77.43 to 1.0.77.44

README.md CHANGED
@@ -3,8 +3,8 @@ Contributors: mohammed_kaludi, ahmedkaludi, ampforwp
3
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
- Tested up to: 5.9.3
7
- Stable tag: 1.0.77.42
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -197,6 +197,20 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
197
 
198
  == Changelog ==
199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  = 1.0.77.42 (16th April 2022) =
201
  * Improvements: Added REHub Comparison charts, tables Compatibility #5250
202
  * Fixed: Debug Warnings - Undefined index: amp-license #5251
3
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
+ Tested up to: 6.0
7
+ Stable tag: 1.0.77.44
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
197
 
198
  == Changelog ==
199
 
200
+ = 1.0.77.44 (2nd June 2022) =
201
+ * Improvements: Added Marfeel analytics compatibility in AMP #5266
202
+ * Improvements: Added WP Table Builder compatibility in AMP #5270
203
+ * Improvements: Updated the email id in feedback form #5273
204
+ * Fixed: Instagram reels not working in AMP #5269
205
+ * Fixed: Preload Funtionality not working when Image is added #5260
206
+ * Fixed: AMP dashicons CSS overwrites the WP default dashicons #5265
207
+ * Fixed: Tel protocols not working in the AMP #5268
208
+ * Fixed: CTA links saving without '=' character #5267
209
+
210
+ = 1.0.77.43 (10th May 2022) =
211
+ * Updated: TPD feature updated #5257
212
+ * Fixed: Resolved the issue of Image Gallery Carousel in AMP does not change the gallery view in posts/pages #5259
213
+
214
  = 1.0.77.42 (16th April 2022) =
215
  * Improvements: Added REHub Comparison charts, tables Compatibility #5250
216
  * Fixed: Debug Warnings - Undefined index: amp-license #5251
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.77.43
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.77.43');
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.77.44
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.77.44');
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,15 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
 
3
  = 1.0.77.43 (10th May 2022) =
4
  * Updated: TPD feature updated #5257
5
  * Fixed: Resolved the issue of Image Gallery Carousel in AMP does not change the gallery view in posts/pages #5259
1
  == Changelog ==
2
 
3
+ = 1.0.77.44 (2nd June 2022) =
4
+ * Improvements: Added Marfeel analytics compatibility in AMP #5266
5
+ * Improvements: Added WP Table Builder compatibility in AMP #5270
6
+ * Improvements: Updated the email id in feedback form #5273
7
+ * Fixed: Instagram reels not working in AMP #5269
8
+ * Fixed: Preload Funtionality not working when Image is added #5260
9
+ * Fixed: AMP dashicons CSS overwrites the WP default dashicons #5265
10
+ * Fixed: Tel protocols not working in the AMP #5268
11
+ * Fixed: CTA links saving without '=' character #5267
12
+
13
  = 1.0.77.43 (10th May 2022) =
14
  * Updated: TPD feature updated #5257
15
  * Fixed: Resolved the issue of Image Gallery Carousel in AMP does not change the gallery view in posts/pages #5259
classes/class-ampforwp-instagram-sanitizer.php CHANGED
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
9
  */
10
  class AMPFORWP_Instagram_Embed_Sanitizer extends AMP_Base_Sanitizer {
11
  private $instagram_medias = array();
12
- const URL_PATTERN = '#http(s?)://(www\.)?instagr(\.am|am\.com)/(p|tv)/([^/?]+)#i';
13
  private static $script_slug = 'amp-instagram';
14
  private static $script_src = 'https://cdn.ampproject.org/v0/amp-instagram-0.1.js';
15
  public function sanitize() {
9
  */
10
  class AMPFORWP_Instagram_Embed_Sanitizer extends AMP_Base_Sanitizer {
11
  private $instagram_medias = array();
12
+ const URL_PATTERN = '#http(s?)://(www\.)?instagr(\.am|am\.com)/(p|tv|reel)/([^/?]+)#i';
13
  private static $script_slug = 'amp-instagram';
14
  private static $script_src = 'https://cdn.ampproject.org/v0/amp-instagram-0.1.js';
15
  public function sanitize() {
components/components-core.php CHANGED
@@ -856,6 +856,9 @@ function ampforwp_backtotop_global_css(){?>
856
  .single-post main .amp-wp-article-content h2 {font-size: 12px;}
857
  }
858
  <?php } ?>
 
 
 
859
  <?php if( true == ampforwp_get_setting('ampforwp-footer-top') ) { ?>
860
  .btt{
861
  position: fixed;
856
  .single-post main .amp-wp-article-content h2 {font-size: 12px;}
857
  }
858
  <?php } ?>
859
+ <?php if( function_exists('wptb_render_table')) { ?>
860
+ @-webkit-keyframes show{0%{opacity:0}to{opacity:1}}@keyframes show{0%{opacity:0}to{opacity:1}}@-webkit-keyframes wptb-flip{0%{transform:rotateY(0deg)}to{transform:rotateY(360deg)}}@keyframes wptb-flip{0%{transform:rotateY(0deg)}to{transform:rotateY(360deg)}}@-webkit-keyframes wptb-jump{0%{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes wptb-jump{0%{transform:translateY(25%)}to{transform:translateY(-25%)}}@-webkit-keyframes wptb-rotate-simple{0%{transform:rotateZ(0deg)}to{transform:rotateZ(360deg)}}@keyframes wptb-rotate-simple{0%{transform:rotateZ(0deg)}to{transform:rotateZ(360deg)}}@-webkit-keyframes wptb-beat{0%,30%,to{transform:scale(1)}15%{transform:scale(1.5)}}@keyframes wptb-beat{0%,30%,to{transform:scale(1)}15%{transform:scale(1.5)}}.wptb-table-container{overflow:auto;position:relative;width:100%;margin:30px auto}.wptb-table-container[data-wptb-horizontal-scroll-status=true]{width:100%;overflow-x:auto!important}.wptb-table-container[data-wptb-horizontal-scroll-status=true] .wptb-table-container-matrix{padding:10px 0}.wptb-table-container-matrix{margin:auto}.wptb-frontend-table-after .wptb-frontend-table-edit-link,.wptb-frontend-table-after .wptb-frontend-table-powered-by,.wptb-rating-stars-box ul li{display:inline-block}.wptb-frontend-table-powered-by{float:right}.wptb-frontend-table-edit-link{clear:both}.wptb-table-container table{table-layout:fixed;font-size:15px;width:auto;display:table;border-collapse:collapse}.wptb-table-container-matrix table{margin:auto}.wptb-table-container-matrix.wptb-matrix-hide{visibility:visible;opacity:0;position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;overflow:hidden}table.wptb-preview-table-mobile{width:100%}.wptb-preview-table-mobile.wptb-mobile-hide{display:none}table.wptb-preview-table{opacity:0;-webkit-animation:show .3s 1;animation:show .3s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:.7s;animation-delay:.7s;overflow:visible}.wptb-preview-table tr:nth-of-type(2n+1),.wptb-table-container table.wptb-preview-table-mobile tr td:nth-of-type(2n+1){background-color:#eee}.wptb-table-container table.wptb-preview-table-mobile tr:nth-of-type(2n+1){background-color:inherit}.wptb-table-container table td{padding:15px;position:relative;box-sizing:content-box;vertical-align:middle}.wptb-table-container-matrix.wptb-matrix-hide .wptb-preview-table td{width:auto!important}.wptb-table-container table td p{word-wrap:break-word;overflow-wrap:break-word;margin:0!important;word-break:break-word}.wptb-table-container table tr td ul{margin:0!important;padding:1em .2em .4em}.wptb-table-container table tr td ul li p{font-size:15px}.wptb-row td:empty::before{content:" ";display:block;min-height:19px;box-sizing:border-box;border:0}.wptb-ph-element{position:relative;border:1px solid #fff0}.wptb-elem-placeholder{display:none}.wptb-image-wrapper::after{content:"";display:block;height:0;width:100%;clear:both}.wptb-image-wrapper a{display:block;max-width:100%;position:relative;margin:auto}.wptb-cell .wptb-ph-element a{box-shadow:none}.wptb-image-wrapper img{width:100%;height:auto}.wptb-text-container>div,.wptb-text-container>div>p{font-size:inherit;color:inherit}.wptb-button-wrapper{display:flex;align-items:center;justify-content:center}.wptb-button-container .wptb-button-wrapper a{text-decoration:none!important}.wptb-button-wrapper>a,.wptb-cell img,.wptb-table img{max-width:100%}.wptb-size-s .wptb-button{border-radius:.2rem;padding:.35rem .6rem;max-width:100%}.wptb-size-s .wptb-button p{font-size:.875rem;line-height:1.5}.wptb-size-l .wptb-button,.wptb-size-m .wptb-button{border-radius:.3rem;padding:.475rem .85rem;max-width:100%}.wptb-size-m .wptb-button p{font-size:1.125rem;line-height:1.5}.wptb-size-l .wptb-button{padding:.6rem 1.2rem}.wptb-size-l .wptb-button p{font-size:inherit;line-height:1.5}.wptb-size-xl .wptb-button{border-radius:.4rem;padding:.8rem 1.35rem;max-width:100%}.wptb-size-xl .wptb-button p{font-size:1.35rem;line-height:1.5}.wptb-button,.wptb-button .wptb-button-icon{display:flex;justify-content:center;align-items:center}.wptb-button{background:#329d3f;color:#fff;transition:all .2s ease-out;cursor:pointer}.wptb-button .wptb-button-icon{margin:0 5px;order:-1;width:25px;height:25px}.wptb-button .wptb-button-icon svg{fill:currentColor;width:100%;height:100%}.wptb-button-icon[data-wptb-button-icon-src=""]{display:none}.wptb-plugin-button-order-right .wptb-button-icon,[data-wptb-button-icon-position=right] .wptb-button-icon{order:2}.wptb-ph-element .wptb-button p{color:inherit}[class*=wptb-element-text-] p{color:inherit!important;font-size:inherit!important}.wptb-list-container.wptb-ph-element ul li{list-style:none;margin:0 0 10px;position:relative}.wptb-list-container.wptb-ph-element ul li:last-child{margin-bottom:0}.wptb-list-container li p{word-wrap:break-word;line-height:inherit;padding-left:20px}.wptb-list-container li p::before{content:attr(data-list-style-type-index);display:inline-block;line-height:20px;padding:0 5px 0 0;font-size:15px;font-family:verdana,sans-serif;cursor:text;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;margin-left:-20px}.wptb-list-container li p.wptb-list-style-type-disc::before{content:'\25CF'}.wptb-list-container li p.wptb-list-style-type-circle::before{content:'\25CB'}.wptb-list-container li p.wptb-list-style-type-square::before{content:'\25A0'}.wptb-list-container li p.wptb-list-style-type-none::before{content:'';padding-right:0}.wptb-star_rating-container{text-align:center}.wptb-rating-stars-box{text-align:center;display:inline-block;padding:7px}.wptb-rating-stars-box ul{list-style-type:none;-moz-user-select:none;-webkit-user-select:none;padding:.5em .2em .2em}.wptb-rating-stars-box ul>li.wptb-rating-star{color:#ccc;margin:0;position:relative;width:20px;height:20px}.wptb-rating-stars-box ul>li.wptb-rating-star span{position:absolute;height:100%;width:100%;top:0;left:0;z-index:10;display:block}.wptb-rating-stars-box ul>li.wptb-rating-star span.wptb-rating-star-left-signal-part,.wptb-rating-stars-box ul>li.wptb-rating-star span.wptb-rating-star-right-signal-part{height:100%;width:50%;z-index:20}.wptb-rating-stars-box ul>li.wptb-rating-star span.wptb-rating-star-left-signal-part{left:0}.wptb-rating-stars-box ul>li.wptb-rating-star span.wptb-rating-star-left-signal-part span.wptb-rating-star-zero-set{left:0;width:40%;height:100%;top:0;z-index:30px}.wptb-rating-stars-box ul>li.wptb-rating-star span.wptb-rating-star-right-signal-part{right:0;left:auto}.wptb-rating-stars-box ul>li.wptb-rating-star span.wptb-filled-rating-star,.wptb-rating-stars-box ul>li.wptb-rating-star span.wptb-half-filled-rating-star,.wptb-rating-stars-box ul>li.wptb-rating-star.wptb-rating-star-selected-half span.wptb-filled-rating-star,.wptb-rating-stars-box ul>li.wptb-rating-star.wptb-rating-star-selected-half span.wptb-not-filled-rating-star{display:none}.wptb-rating-stars-box ul>li.wptb-rating-star span.wptb-not-filled-rating-star{fill:#ccc}.wptb-rating-stars-box ul>li.wptb-rating-star.wptb-rating-star-selected-full span.wptb-filled-rating-star,.wptb-rating-stars-box ul>li.wptb-rating-star.wptb-rating-star-selected-half span.wptb-half-filled-rating-star{display:block;fill:#ff912c}.wptb-rating-stars-box ul>li.wptb-rating-star.wptb-rating-star-selected-full span.wptb-half-filled-rating-star,.wptb-rating-stars-box ul>li.wptb-rating-star.wptb-rating-star-selected-full span.wptb-not-filled-rating-star{display:none}.wptb-number-rating-box{text-align:center;font-size:20px}.wptb-number-rating-box>div{vertical-align:top;display:inline-block;color:#888;text-align:center;height:25px;font-size:25px;line-height:25px}.wptb-column-title-mobile-container{display:none;position:absolute;top:0;bottom:0;left:0;right:50%}.wptb-column-title-mobile-container.wptb-column-title-mobile-container-clone{position:relative;width:50%;right:auto;left:auto;top:auto;bottom:auto}.wptb-column-title-mobile-container .wptb-column-title-mobile{display:table;width:100%;table-layout:fixed;height:100%;word-wrap:break-word;overflow-wrap:break-word}.wptb-table-container.wptb-section-small table{min-width:auto}.wptb-cell ul{padding:0}.wptb-table-container.wptb-section-small table tr td{display:block;width:100%;box-sizing:border-box;position:relative;min-height:60px;overflow:hidden}.wptb-table-container.wptb-section-small table.wptb-table-preview-head td .wptb-column-title-mobile-container{display:block}.wptb-table-container table.wptb-table-preview-head td .wptb-column-title-mobile-container .wptb-column-title-mobile::before{content:attr(data-wptb-title-column);display:table-cell;width:50%;vertical-align:middle;padding:inherit}.wptb-table-container.wptb-section-small table.wptb-table-preview-head td.wptb-column-title-mobile-not-elements{padding:0!important}.wptb-table-container table.wptb-table-preview-head td .wptb-column-title-mobile-container.wptb-column-title-mobile-not-elements .wptb-column-title-mobile::before{padding-left:0}.wptb-table-container.wptb-section-small table.wptb-table-preview-head td .wptb-ph-element{display:inline-block;width:50%;margin-left:50%;padding-left:inherit;box-sizing:border-box}.wptb-table-container.wptb-section-small table td{border-width:0 1px 1px!important}.wptb-table-container.wptb-section-small table tr td:nth-of-type(1){border-top-width:3px!important}.wptb-table-container.wptb-section-small table tr td:nth-last-of-type(1){border-top-width:0!important}.wptb-table-container.wptb-section-small table.wptb-table-preview-head tr:first-child{display:none}@media only screen and (max-width:600px){.wptb-table-container table{min-width:auto}.wptb-table-container table.wptb-table-preview-head.wptb-table-preview-static-indic tr td{display:block;width:100%!important;box-sizing:border-box;position:relative;min-height:60px;overflow:hidden}.wptb-table-container table.wptb-table-preview-head.wptb-table-preview-static-indic td.wptb-column-title-mobile-not-elements{padding:0!important}.wptb-table-container table.wptb-table-preview-head.wptb-table-preview-static-indic td .wptb-column-title-mobile-container{display:block}.wptb-table-container table.wptb-table-preview-head.wptb-table-preview-static-indic td .wptb-ph-element{display:inline-block;width:50%;margin-left:50%;padding-left:inherit}.wptb-table-container table.wptb-table-preview-head.wptb-table-preview-static-indic td{border-width:0 1px 1px!important}.wptb-table-container table.wptb-table-preview-head.wptb-table-preview-static-indic tr td:nth-of-type(1){border-top-width:1px!important}.wptb-table-container table.wptb-table-preview-head.wptb-table-preview-static-indic tr:first-child{display:none}}.wptb-plugin-responsive-base{min-width:auto!important;width:100%!important}.wptb-plugin-box-shadow-md{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)}.wptb-plugin-filter-box-shadow-md{filter:drop-shadow(4px 6px 2px rgba(0,0,0,.1))}.wptb-plugin-filter-box-shadow-md-close{filter:drop-shadow(4px 1px 2px rgba(0,0,0,.1))}.wptb-cell[data-wptb-cell-vertical-alignment=top]{vertical-align:baseline}.wptb-cell[data-wptb-cell-vertical-alignment=center]{vertical-align:middle}.wptb-cell[data-wptb-cell-vertical-alignment=bottom]{vertical-align:bottom}.wptb-preview-table-mobile[data-wptb-sortable-table-horizontal="1"] td[data-x-index="0"]::after,.wptb-preview-table-mobile[data-wptb-sortable-table-vertical="1"] td[data-sorted-vertical]::after,.wptb-preview-table[data-wptb-sortable-table-horizontal="1"] td[data-x-index="0"]::after,.wptb-preview-table[data-wptb-sortable-table-vertical="1"] td[data-sorted-vertical]::after{position:absolute;top:0;bottom:0;z-index:100;display:grid;font-family:dashicons;font-size:35px;align-content:center;text-align:center}.wptb-preview-table-mobile[data-wptb-sortable-table-vertical="1"] td[data-sorted-vertical=ask]::after,.wptb-preview-table[data-wptb-sortable-table-vertical="1"] td[data-sorted-vertical=ask]::after{content:"\f142";right:0}.wptb-preview-table-mobile[data-wptb-sortable-table-vertical="1"] td[data-sorted-vertical=desk].sortable-hover::after,.wptb-preview-table[data-wptb-sortable-table-vertical="1"] td[data-sorted-vertical=desk].sortable-hover::after{content:"\f142";cursor:pointer;opacity:.7}.wptb-preview-table-mobile[data-wptb-sortable-table-vertical="1"] td[data-sorted-vertical=desk]::after,.wptb-preview-table[data-wptb-sortable-table-vertical="1"] td[data-sorted-vertical=desk]::after{content:"\f140";right:0}.wptb-preview-table-mobile[data-wptb-sortable-table-vertical="1"] td[data-sorted-vertical=ask].sortable-hover::after,.wptb-preview-table[data-wptb-sortable-table-vertical="1"] td[data-sorted-vertical=ask].sortable-hover::after{content:"\f140";cursor:pointer;opacity:.7}.wptb-preview-table-mobile[data-wptb-sortable-table-horizontal="1"] td[data-sorted-horizontal=ask]::after,.wptb-preview-table[data-wptb-sortable-table-horizontal="1"] td[data-sorted-horizontal=ask]::after{content:"\f141";left:0}.wptb-preview-table-mobile[data-wptb-sortable-table-horizontal="1"] td[data-sorted-horizontal=desk].sortable-hover::after,.wptb-preview-table[data-wptb-sortable-table-horizontal="1"] td[data-sorted-horizontal=desk].sortable-hover::after{content:"\f141";cursor:pointer;opacity:.7}.wptb-preview-table-mobile[data-wptb-sortable-table-horizontal="1"] td[data-sorted-horizontal=desk]::after,.wptb-preview-table[data-wptb-sortable-table-horizontal="1"] td[data-sorted-horizontal=desk]::after{content:"\f139"}.wptb-preview-table-mobile[data-wptb-sortable-table-horizontal="1"] td[data-sorted-horizontal=ask].sortable-hover::after,.wptb-preview-table[data-wptb-sortable-table-horizontal="1"] td[data-sorted-horizontal=ask].sortable-hover::after{content:"\f139";cursor:pointer;opacity:.7}.wptb-lazy-load-img[data-wptb-lazy-load-status=false]{opacity:0}.wptb-lazy-load-img[data-wptb-lazy-load-status=true]{opacity:1}.wptb-lazy-load-buffer-element-container{position:relative}.wptb-lazy-load-buffer-element{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:5px}.wptb-lazy-load-buffer-element,.wptb-lazy-load-buffer-icon-wrapper{display:flex;justify-content:center;align-items:center}.wptb-lazy-load-buffer-icon-wrapper[data-wptb-lazy-load-icon-animation=heartBeat] svg{-webkit-animation:wptb-beat 1.3s ease-out forwards infinite;animation:wptb-beat 1.3s ease-out forwards infinite}.wptb-lazy-load-buffer-icon-wrapper[data-wptb-lazy-load-icon-animation=rotate] svg{-webkit-animation:wptb-rotate-simple 1s ease-out forwards infinite;animation:wptb-rotate-simple 1s ease-out forwards infinite}.wptb-lazy-load-buffer-icon-wrapper[data-wptb-lazy-load-icon-animation=jump] svg{-webkit-animation:wptb-jump .5s ease-out alternate infinite;animation:wptb-jump .5s ease-out alternate infinite}.wptb-lazy-load-buffer-icon-wrapper[data-wptb-lazy-load-icon-animation=flip] svg{-webkit-animation:wptb-flip 1s ease-out forwards infinite;animation:wptb-flip 1s ease-out forwards infinite}.wptb-plugin-width-full{width:100%!important}.wptb-scroll-indicator-container{position:absolute;width:50px;height:100%;background-color:red;top:0}
861
+ <?php } ?>
862
  <?php if( true == ampforwp_get_setting('ampforwp-footer-top') ) { ?>
863
  .btt{
864
  position: fixed;
includes/admin-style.css CHANGED
@@ -2210,13 +2210,13 @@ a#ampforwp-close-ad-notice {
2210
  color: #666
2211
  }#exp {
2212
  color: red
2213
- }.dashicons-no {
2214
  color: #fff;
2215
  border-radius: 10px;
2216
  right: 5px;
2217
  position: relative;
2218
  font-size: 15px
2219
- }.dashicons-no:before {
2220
  content: "\f158";
2221
  top: 2px;
2222
  position: relative;
2210
  color: #666
2211
  }#exp {
2212
  color: red
2213
+ }.toplevel_page_amp_options .dashicons-no {
2214
  color: #fff;
2215
  border-radius: 10px;
2216
  right: 5px;
2217
  position: relative;
2218
  font-size: 15px
2219
+ }.toplevel_page_amp_options .dashicons-no:before {
2220
  content: "\f158";
2221
  top: 2px;
2222
  position: relative;
includes/features/analytics/analytics-functions.php CHANGED
@@ -411,6 +411,20 @@ function ampforwp_analytics() {
411
  </script>
412
  </amp-analytics>
413
  <?php } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
414
  if( true == ampforwp_get_setting('ampforwp-iotech-switch')) {
415
  $project_id = $id = $title = $author = $categories = $cat_names = '';
416
  $project_id = ampforwp_get_setting('ampforwp-iotech-projectid');
411
  </script>
412
  </amp-analytics>
413
  <?php } }
414
+ // Marfeel Analytics
415
+ if(true == ampforwp_get_setting('amp-marfeel-pixel')){
416
+ $account_id = ampforwp_get_setting('amp-marfeel-account-id'); ?>
417
+ <amp-analytics config="https://events.newsroom.bi/amp.v1.json" data-credentials="include">
418
+ <script type="application/json" >
419
+ {
420
+ "vars" : {
421
+ "accountId": "<?php echo esc_attr($account_id);?>"
422
+ }
423
+ }
424
+ </script>
425
+ </amp-analytics><?php
426
+ }
427
+
428
  if( true == ampforwp_get_setting('ampforwp-iotech-switch')) {
429
  $project_id = $id = $title = $author = $categories = $cat_names = '';
430
  $project_id = ampforwp_get_setting('ampforwp-iotech-projectid');
includes/features/analytics/analytics-options.php CHANGED
@@ -302,7 +302,7 @@ function ampforwp_analytics_options($opt_name){
302
  'desc' => 'Example: 153246987501548',
303
  'required' => array(
304
  array('amp-fb-pixel', '=' , '1')),
305
- ),
306
  // Segment Analytics
307
  array(
308
  'id' => 'ampforwp-Segment-switch',
@@ -669,6 +669,24 @@ function ampforwp_analytics_options($opt_name){
669
  ),
670
  'placeholder' => esc_html__('YOUR_SITE_ID_HERE','accelerated-mobile-pages'),
671
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
672
  )
673
  )
674
  );
302
  'desc' => 'Example: 153246987501548',
303
  'required' => array(
304
  array('amp-fb-pixel', '=' , '1')),
305
+ ),
306
  // Segment Analytics
307
  array(
308
  'id' => 'ampforwp-Segment-switch',
669
  ),
670
  'placeholder' => esc_html__('YOUR_SITE_ID_HERE','accelerated-mobile-pages'),
671
  ),
672
+ // Marfeel Analytics
673
+ array(
674
+ 'id' =>'amp-marfeel-pixel',
675
+ 'type' => 'switch',
676
+ 'title' => esc_html__('Marfeel Pixel','accelerated-mobile-pages'),
677
+ 'default' => 0,
678
+ 'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
679
+ esc_html__('Enable this option to track marfeel pixel in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-facebook-pixel-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
680
+ ),
681
+ array(
682
+ 'id' =>'amp-marfeel-account-id',
683
+ 'type' => 'text',
684
+ 'title' => esc_html__('Marfeel Account ID','accelerated-mobile-pages'),
685
+ 'default' => '0',
686
+ 'desc' => 'Example: 153246987501548',
687
+ 'required' => array(
688
+ array('amp-marfeel-pixel', '=' , '1')),
689
+ ),
690
  )
691
  )
692
  );
includes/features/functions.php CHANGED
@@ -29,7 +29,6 @@ function ampforwp_add_admin_styling($hook_suffix){
29
  // Style file to add or modify css inside admin area
30
  wp_register_style( 'ampforwp_admin_css', untrailingslashit(AMPFORWP_PLUGIN_DIR_URI) . '/includes/admin-style.css', false, AMPFORWP_VERSION );
31
  wp_enqueue_style( 'ampforwp_admin_css' );
32
-
33
  // Admin area scripts file
34
  $dep = array('wp-color-picker');
35
  $dep = apply_filters('ampforwp_modify_script_dependency', $dep);
29
  // Style file to add or modify css inside admin area
30
  wp_register_style( 'ampforwp_admin_css', untrailingslashit(AMPFORWP_PLUGIN_DIR_URI) . '/includes/admin-style.css', false, AMPFORWP_VERSION );
31
  wp_enqueue_style( 'ampforwp_admin_css' );
 
32
  // Admin area scripts file
33
  $dep = array('wp-color-picker');
34
  $dep = apply_filters('ampforwp_modify_script_dependency', $dep);
includes/mb-helper-function.php CHANGED
@@ -87,7 +87,7 @@ function ampforwp_send_feedback() {
87
 
88
  }
89
 
90
- $success = wp_mail( 'makebetter@magazine3.in', $subject, $text, $headers );
91
 
92
  die();
93
  }
87
 
88
  }
89
 
90
+ $success = wp_mail( 'team@magazine3.in', $subject, $text, $headers );
91
 
92
  die();
93
  }
includes/options/admin-config.php CHANGED
@@ -4959,7 +4959,7 @@ Redux::setSection( $opt_name, array(
4959
  'class' => 'child_opt child_opt_arrow',
4960
  'title' => esc_html__('CTA Link', 'accelerated-mobile-pages'),
4961
  'tooltip-subtitle' => esc_html__('You can add the Link here ','accelerated-mobile-pages'),
4962
- 'type' => 'text',
4963
  'default' => '#',
4964
  'required' => array(
4965
  array('signin-button','=',1)
4959
  'class' => 'child_opt child_opt_arrow',
4960
  'title' => esc_html__('CTA Link', 'accelerated-mobile-pages'),
4961
  'tooltip-subtitle' => esc_html__('You can add the Link here ','accelerated-mobile-pages'),
4962
+ 'type' => 'multi_text',
4963
  'default' => '#',
4964
  'required' => array(
4965
  array('signin-button','=',1)
includes/options/redux-core/assets/css/redux-admin.css CHANGED
@@ -1577,4 +1577,8 @@ table#section-table-amp-ads_0 {
1577
  }
1578
  #pa-feild-ul a.deletion.redux-multi-text-remove , #redux_builder_amp-pa-feild a.button.button-primary.redux-multi-text-add{
1579
  display: none;
 
 
 
 
1580
  }
1577
  }
1578
  #pa-feild-ul a.deletion.redux-multi-text-remove , #redux_builder_amp-pa-feild a.button.button-primary.redux-multi-text-add{
1579
  display: none;
1580
+ }
1581
+
1582
+ fieldset#redux_builder_amp-signin-button-link a.deletion.redux-multi-text-remove , fieldset#redux_builder_amp-signin-button-link a.button.button-primary.redux-multi-text-add{
1583
+ display: none;
1584
  }
includes/vendor/amp/includes/embeds/class-amp-instagram-embed.php CHANGED
@@ -8,7 +8,7 @@ require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handle
8
  // Much of this class is borrowed from Jetpack embeds
9
  class AMP_Instagram_Embed_Handler extends AMP_Base_Embed_Handler {
10
  const SHORT_URL_HOST = 'instagr.am';
11
- const URL_PATTERN = '#http(s?)://(www\.)?instagr(\.am|am\.com)/(p|tv)/([^/?]+)#i';
12
 
13
  protected $DEFAULT_WIDTH = 600;
14
  protected $DEFAULT_HEIGHT = 600;
8
  // Much of this class is borrowed from Jetpack embeds
9
  class AMP_Instagram_Embed_Handler extends AMP_Base_Embed_Handler {
10
  const SHORT_URL_HOST = 'instagr.am';
11
+ const URL_PATTERN = '#http(s?)://(www\.)?instagr(\.am|am\.com)/(p|tv|reel)/([^/?]+)#i';
12
 
13
  protected $DEFAULT_WIDTH = 600;
14
  protected $DEFAULT_HEIGHT = 600;
includes/vendor/amp/includes/sanitizers/class-amp-blacklist-sanitizer.php CHANGED
@@ -225,7 +225,7 @@ class AMP_Blacklist_Sanitizer extends AMP_Base_Sanitizer {
225
  $href = untrailingslashit( get_home_url() ) . $href;
226
  }
227
 
228
- $valid_protocols = array( 'http', 'https', 'mailto', 'sms', 'tel', 'viber', 'whatsapp' , 'ftp','skype', 'tg');
229
  $special_protocols = array( 'tel', 'sms','skype' ); // these ones don't valid with `filter_var+FILTER_VALIDATE_URL`
230
  $protocol = strtok( $href, ':' );
231
 
225
  $href = untrailingslashit( get_home_url() ) . $href;
226
  }
227
 
228
+ $valid_protocols = array( 'http', 'https', 'mailto', 'sms', 'tel', 'viber', 'whatsapp' , 'ftp','skype', 'tg' , 'Tel');
229
  $special_protocols = array( 'tel', 'sms','skype' ); // these ones don't valid with `filter_var+FILTER_VALIDATE_URL`
230
  $protocol = strtok( $href, ':' );
231
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mohammed_kaludi, ahmedkaludi, ampforwp
3
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
- Tested up to: 5.9.3
7
- Stable tag: 1.0.77.43
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -194,6 +194,16 @@ You can contact us from [here](https://ampforwp.com/contact/)
194
 
195
  == Changelog ==
196
 
 
 
 
 
 
 
 
 
 
 
197
  = 1.0.77.43 (10th May 2022) =
198
  * Updated: TPD feature updated #5257
199
  * Fixed: Resolved the issue of Image Gallery Carousel in AMP does not change the gallery view in posts/pages #5259
3
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
+ Tested up to: 6.0
7
+ Stable tag: 1.0.77.44
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.77.44 (2nd June 2022) =
198
+ * Improvements: Added Marfeel analytics compatibility in AMP #5266
199
+ * Improvements: Added WP Table Builder compatibility in AMP #5270
200
+ * Improvements: Updated the email id in feedback form #5273
201
+ * Fixed: Instagram reels not working in AMP #5269
202
+ * Fixed: Preload Funtionality not working when Image is added #5260
203
+ * Fixed: AMP dashicons CSS overwrites the WP default dashicons #5265
204
+ * Fixed: Tel protocols not working in the AMP #5268
205
+ * Fixed: CTA links saving without '=' character #5267
206
+
207
  = 1.0.77.43 (10th May 2022) =
208
  * Updated: TPD feature updated #5257
209
  * Fixed: Resolved the issue of Image Gallery Carousel in AMP does not change the gallery view in posts/pages #5259
templates/design-manager/swift/header.php CHANGED
@@ -188,7 +188,7 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
188
  <?php do_action('ampforwp_after_amp_menu');?>
189
  <?php if( true == ampforwp_get_setting('signin-button') && '2' == ampforwp_get_setting('cta-responsive-view')){?>
190
  <div class="h-sing cta-res">
191
- <a target="_blank" <?php ampforwp_nofollow_cta_header_link(); ?> href="<?php echo esc_url(ampforwp_get_setting('signin-button-link'))?>"><?php echo esc_html__(ampforwp_get_setting('signin-button-text'), 'accelerated-mobile-pages'); ?></a>
192
  </div>
193
  <?php } ?>
194
  <?php if (ampforwp_get_setting('menu-search' ) && ampforwp_get_setting('menu-search-after-menu') ){ ?>
@@ -277,13 +277,13 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
277
  <?php amp_logo(); ?>
278
  </div>
279
  <div class="h-2">
280
- <?php if( ampforwp_get_setting('signin-button-text') && ampforwp_get_setting('signin-button-link') ){
281
  $new_tab = '';
282
  if (ampforwp_get_setting('signin-button-new-tab')) {
283
  $new_tab = 'target=_blank';
284
  }?>
285
  <div class="h-sing">
286
- <a <?php echo esc_html($new_tab); ?> <?php ampforwp_nofollow_cta_header_link(); ?> href="<?php echo esc_url(ampforwp_get_setting('signin-button-link'))?>"><?php echo esc_html__(ampforwp_get_setting('signin-button-text'), 'accelerated-mobile-pages'); ?></a>
287
  </div>
288
  <?php } ?>
289
  <?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
188
  <?php do_action('ampforwp_after_amp_menu');?>
189
  <?php if( true == ampforwp_get_setting('signin-button') && '2' == ampforwp_get_setting('cta-responsive-view')){?>
190
  <div class="h-sing cta-res">
191
+ <a target="_blank" <?php ampforwp_nofollow_cta_header_link(); ?> href="<?php echo esc_url(ampforwp_get_setting('signin-button-link')[0])?>"><?php echo esc_html__(ampforwp_get_setting('signin-button-text'), 'accelerated-mobile-pages'); ?></a>
192
  </div>
193
  <?php } ?>
194
  <?php if (ampforwp_get_setting('menu-search' ) && ampforwp_get_setting('menu-search-after-menu') ){ ?>
277
  <?php amp_logo(); ?>
278
  </div>
279
  <div class="h-2">
280
+ <?php if( ampforwp_get_setting('signin-button-text') && ampforwp_get_setting('signin-button-link')[0] ){
281
  $new_tab = '';
282
  if (ampforwp_get_setting('signin-button-new-tab')) {
283
  $new_tab = 'target=_blank';
284
  }?>
285
  <div class="h-sing">
286
+ <a <?php echo esc_html($new_tab); ?> <?php ampforwp_nofollow_cta_header_link(); ?> href="<?php echo esc_url(ampforwp_get_setting('signin-button-link')[0])?>"><?php echo esc_html__(ampforwp_get_setting('signin-button-text'), 'accelerated-mobile-pages'); ?></a>
287
  </div>
288
  <?php } ?>
289
  <?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
templates/features.php CHANGED
@@ -7608,10 +7608,14 @@ function ampforwp_set_dns_preload_urls(){
7608
  $key = $data_arr[$j]['value'][$i];
7609
  if(isset($data_arr[$j]['value'][$i])){
7610
  $value = $data_arr[$j+1]['value'][$i];
 
 
 
 
7611
  }
7612
  if($value!=""){
7613
  ?>
7614
- <link rel="<?php echo esc_attr($key)?>" href="<?php echo esc_url($value);?>" crossorigin>
7615
  <?php
7616
  }
7617
  }
7608
  $key = $data_arr[$j]['value'][$i];
7609
  if(isset($data_arr[$j]['value'][$i])){
7610
  $value = $data_arr[$j+1]['value'][$i];
7611
+ }
7612
+ $type = '';
7613
+ if (preg_match('/(\.jpg|\.png|\.webp)$/', $value)) {
7614
+ $type = 'as="image"';
7615
  }
7616
  if($value!=""){
7617
  ?>
7618
+ <link rel="<?php echo esc_attr($key)?>" <?php echo $type; // XXS ok, escaped above ?> href="<?php echo esc_url($value);?>" crossorigin>
7619
  <?php
7620
  }
7621
  }