Version Description
(5th July 2021) = * Improvements: Unused CSS and Scripts are removed in AMP Optimizer (SSR) #5070 * Improvements: Added data-hero attribute in AMP logo #5083 * Fixed: Webp images not appearing with Litespeed cache #5081
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.77.10 |
Comparing to | |
See all releases |
Code changes from version 1.0.77.9 to 1.0.77.10
- README.md +6 -20
- accelerated-moblie-pages.php +2 -2
- changelog.txt +5 -0
- components/comments/comments.php +1 -1
- components/components-core.php +4 -40
- components/logo/logo.php +1 -1
- components/related-posts/related-posts.php +2 -2
- includes/features/analytics/analytics-functions.php +1 -14
- readme.txt +6 -20
- templates/design-manager/swift/single.php +1 -1
- templates/design-manager/swift/style.php +5 -2
- templates/features.php +1 -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.7
|
7 |
-
Stable tag: 1.0.77.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -193,6 +193,11 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
|
|
196 |
= 1.0.77.9 (29th June 2021) =
|
197 |
* Added: AMP widget for adding amp code #5064
|
198 |
* Added: Filter to modify the WP Rocket CDN URL #5076
|
@@ -220,23 +225,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
220 |
= 1.0.77.6 (12th June 2021) =
|
221 |
* Fixed: Custom JavaScript is not allowed error when analytics added by All in one SEO #5062
|
222 |
|
223 |
-
= 1.0.77.5 (10th June 2021) =
|
224 |
-
* Fixed: Some issues found while refresh the individual extension from the Extension section #5056
|
225 |
-
* Fixed: Referenced AMP URL is self-canonical AMP when AMP takeover is enabled #5053
|
226 |
-
* Fixed: Remove AMP blocks from options panel for CWV #5052
|
227 |
-
* Fixed: Incorrect link in the Breadcrumb #5050
|
228 |
-
* Fixed: Blank taxonomy in option panel #5037
|
229 |
-
* Fixed: Featured image not working for specific usecase in amp #5058
|
230 |
-
|
231 |
-
= 1.0.77.4 (1st June 2021) =
|
232 |
-
* Improvements: Added dynamic copyright code so that year changes automatically #5019
|
233 |
-
* Improvements: Added Smart Sticky Header Extension #5001
|
234 |
-
* Fixed: View Non-amp version link redirecting to 404 using custom permalink #5039
|
235 |
-
* Fixed: Headline error in schema when adding more than 110 characters in title #5033
|
236 |
-
* Fixed: Aq_resize.process() error in error logs #5041
|
237 |
-
* Fixed: Google Fonts are not getting saved while using Safari #4978
|
238 |
-
* Fixed: The tag 'animatetransform' is disallowed validation error #5043
|
239 |
-
* Fixed: Debug Warning Function get_magic_quotes_gpc() is deprecated #5035
|
240 |
-
* Fixed: Debug Warning Trying to get property 'ID' of non-object #5046
|
241 |
-
|
242 |
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.7
|
7 |
+
Stable tag: 1.0.77.10
|
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.77.10 (5th July 2021) =
|
197 |
+
* Improvements: Unused CSS and Scripts are removed in AMP Optimizer (SSR) #5070
|
198 |
+
* Improvements: Added data-hero attribute in AMP logo #5083
|
199 |
+
* Fixed: Webp images not appearing with Litespeed cache #5081
|
200 |
+
|
201 |
= 1.0.77.9 (29th June 2021) =
|
202 |
* Added: AMP widget for adding amp code #5064
|
203 |
* Added: Filter to modify the WP Rocket CDN URL #5076
|
225 |
= 1.0.77.6 (12th June 2021) =
|
226 |
* Fixed: Custom JavaScript is not allowed error when analytics added by All in one SEO #5062
|
227 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
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.77.
|
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.
|
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.10
|
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.10');
|
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,10 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.77.9 (29th June 2021) =
|
4 |
* Added: AMP widget for adding amp code #5064
|
5 |
* Added: Filter to modify the WP Rocket CDN URL #5076
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.77.10 (5th July 2021) =
|
4 |
+
* Improvements: Unused CSS and Scripts are removed in AMP Optimizer (SSR) #5070
|
5 |
+
* Improvements: Added data-hero attribute in AMP logo #5083
|
6 |
+
* Fixed: Webp images not appearing with Litespeed cache #5081
|
7 |
+
|
8 |
= 1.0.77.9 (29th June 2021) =
|
9 |
* Added: AMP widget for adding amp code #5064
|
10 |
* Added: Filter to modify the WP Rocket CDN URL #5076
|
components/comments/comments.php
CHANGED
@@ -119,7 +119,7 @@ function ampforwp_framework_get_comments(){
|
|
119 |
</div> <!-- .amp-comments-wrapper -->
|
120 |
<?php // if amp-comments extension is enabled then hide this button
|
121 |
} // if ( $comments )
|
122 |
-
if ( ! defined( 'AMP_COMMENTS_VERSION' ) ) { ?>
|
123 |
<div class="amp-comment-button">
|
124 |
<?php if ( comments_open($postID) ) {
|
125 |
$nofollow = '';
|
119 |
</div> <!-- .amp-comments-wrapper -->
|
120 |
<?php // if amp-comments extension is enabled then hide this button
|
121 |
} // if ( $comments )
|
122 |
+
if ( ! defined( 'AMP_COMMENTS_VERSION' ) && comments_open($postID) ) { ?>
|
123 |
<div class="amp-comment-button">
|
124 |
<?php if ( comments_open($postID) ) {
|
125 |
$nofollow = '';
|
components/components-core.php
CHANGED
@@ -476,46 +476,7 @@ function amp_back_to_top_link(){
|
|
476 |
if(true == ampforwp_get_setting('ampforwp-footer-top')){?>
|
477 |
<a id="scrollToTopButton" title="back to top" on="tap:backtotop.scrollTo(duration=500)" class="btt" href="#" ></a>
|
478 |
<?php
|
479 |
-
|
480 |
-
$current_url = home_url(add_query_arg(array($_GET), $wp->request));
|
481 |
-
if(ampforwp_get_setting('ampforwp-amp-convert-to-wp')==false || (strpos( $current_url,'/amp')!=false || strpos( $current_url,'?amp')!=false)){?>
|
482 |
-
<amp-animation id="showAnim"
|
483 |
-
layout="nodisplay">
|
484 |
-
<script type="application/json">
|
485 |
-
{
|
486 |
-
"duration": "400ms",
|
487 |
-
"fill": "both",
|
488 |
-
"iterations": "1",
|
489 |
-
"direction": "alternate",
|
490 |
-
"animations": [{
|
491 |
-
"selector": "#scrollToTopButton",
|
492 |
-
"keyframes": [{
|
493 |
-
"opacity": "1",
|
494 |
-
"visibility": "visible"
|
495 |
-
}]
|
496 |
-
}]
|
497 |
-
}
|
498 |
-
</script>
|
499 |
-
</amp-animation>
|
500 |
-
<amp-animation id="hideAnim"
|
501 |
-
layout="nodisplay">
|
502 |
-
<script type="application/json">
|
503 |
-
{
|
504 |
-
"duration": "400ms",
|
505 |
-
"fill": "both",
|
506 |
-
"iterations": "1",
|
507 |
-
"direction": "alternate",
|
508 |
-
"animations": [{
|
509 |
-
"selector": "#scrollToTopButton",
|
510 |
-
"keyframes": [{
|
511 |
-
"opacity": "0",
|
512 |
-
"visibility": "hidden"
|
513 |
-
}]
|
514 |
-
}]
|
515 |
-
}
|
516 |
-
</script>
|
517 |
-
</amp-animation>
|
518 |
-
<?php }else if(ampforwp_get_setting('ampforwp-amp-convert-to-wp')==true){?>
|
519 |
<script>
|
520 |
var elem = document.getElementById('scrollToTopButton');
|
521 |
elem.addEventListener("click", function(){
|
@@ -884,6 +845,9 @@ function ampforwp_backtotop_global_css(){?>
|
|
884 |
cursor:pointer;
|
885 |
}
|
886 |
}
|
|
|
|
|
|
|
887 |
<?php } }
|
888 |
// Fallback for amp_call_now #2782
|
889 |
if ( !function_exists('amp_call_now') ) {
|
476 |
if(true == ampforwp_get_setting('ampforwp-footer-top')){?>
|
477 |
<a id="scrollToTopButton" title="back to top" on="tap:backtotop.scrollTo(duration=500)" class="btt" href="#" ></a>
|
478 |
<?php
|
479 |
+
if(ampforwp_get_setting('ampforwp-amp-convert-to-wp') == true){?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
<script>
|
481 |
var elem = document.getElementById('scrollToTopButton');
|
482 |
elem.addEventListener("click", function(){
|
845 |
cursor:pointer;
|
846 |
}
|
847 |
}
|
848 |
+
html {
|
849 |
+
scroll-behavior: smooth;
|
850 |
+
}
|
851 |
<?php } }
|
852 |
// Fallback for amp_call_now #2782
|
853 |
if ( !function_exists('amp_call_now') ) {
|
components/logo/logo.php
CHANGED
@@ -23,7 +23,7 @@ function ampforwp_framework_get_logo(){
|
|
23 |
$alt = ampforwp_default_logo('alt');
|
24 |
$logo_url = __( $redux_builder_amp['opt-media']['url'], 'accelerated-mobile-pages' ); ?>
|
25 |
<a href="<?php echo esc_url( $ampforwp_home_url ); ?>" title="<?php echo esc_html( $title ); ?>" <?php if($set_rel_to_noamp){ echo ' rel="nofollow"'; } ?> >
|
26 |
-
<amp-img src="<?php echo esc_url( $logo_url ); ?>" width="<?php echo esc_attr(ampforwp_default_logo('width')); ?>" height="<?php echo esc_attr(ampforwp_default_logo('height')); ?>" alt="<?php echo esc_attr($alt); ?>" class="amp-logo" layout="responsive"></amp-img></a>
|
27 |
<?php if( ampforwp_is_home() || ampforwp_is_blog() ){ ?>
|
28 |
<h1 class="hide">
|
29 |
<?php bloginfo('name'); ?>
|
23 |
$alt = ampforwp_default_logo('alt');
|
24 |
$logo_url = __( $redux_builder_amp['opt-media']['url'], 'accelerated-mobile-pages' ); ?>
|
25 |
<a href="<?php echo esc_url( $ampforwp_home_url ); ?>" title="<?php echo esc_html( $title ); ?>" <?php if($set_rel_to_noamp){ echo ' rel="nofollow"'; } ?> >
|
26 |
+
<amp-img data-hero src="<?php echo esc_url( $logo_url ); ?>" width="<?php echo esc_attr(ampforwp_default_logo('width')); ?>" height="<?php echo esc_attr(ampforwp_default_logo('height')); ?>" alt="<?php echo esc_attr($alt); ?>" class="amp-logo" layout="responsive"></amp-img></a>
|
27 |
<?php if( ampforwp_is_home() || ampforwp_is_blog() ){ ?>
|
28 |
<h1 class="hide">
|
29 |
<?php bloginfo('name'); ?>
|
components/related-posts/related-posts.php
CHANGED
@@ -193,7 +193,7 @@ function ampforwp_get_relatedpost_content($argsdata=array()){
|
|
193 |
}
|
194 |
?>
|
195 |
<div class="related_link">
|
196 |
-
<a href="<?php echo esc_url( $related_post_permalink ); ?>" title="<?php echo esc_html( $title ); ?>"><?php the_title(); ?></a>
|
197 |
<?php
|
198 |
$show_excerpt = (isset($argsdata['show_excerpt'])? $argsdata['show_excerpt'] : true);
|
199 |
if($show_excerpt){
|
@@ -202,7 +202,7 @@ function ampforwp_get_relatedpost_content($argsdata=array()){
|
|
202 |
}else{
|
203 |
$content = get_the_content();
|
204 |
}
|
205 |
-
|
206 |
if(empty($excerpt_length)){
|
207 |
$excerpt_length = 15;
|
208 |
}
|
193 |
}
|
194 |
?>
|
195 |
<div class="related_link">
|
196 |
+
<p><a href="<?php echo esc_url( $related_post_permalink ); ?>" title="<?php echo esc_html( $title ); ?>"><?php the_title(); ?></a>
|
197 |
<?php
|
198 |
$show_excerpt = (isset($argsdata['show_excerpt'])? $argsdata['show_excerpt'] : true);
|
199 |
if($show_excerpt){
|
202 |
}else{
|
203 |
$content = get_the_content();
|
204 |
}
|
205 |
+
?><?php $excerpt_length = ampforwp_get_setting('enable-excerpt-single-related-posts');
|
206 |
if(empty($excerpt_length)){
|
207 |
$excerpt_length = 15;
|
208 |
}
|
includes/features/analytics/analytics-functions.php
CHANGED
@@ -55,7 +55,7 @@ function ampforwp_analytics() {
|
|
55 |
<?php echo $ampforwp_ga_fields; ?>
|
56 |
</script>
|
57 |
</amp-analytics>
|
58 |
-
<?php } else { ?>
|
59 |
<amp-analytics <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> type="gtag" id="analytics1" data-credentials="include" >
|
60 |
<script type="application/json">
|
61 |
<?php echo $ampforwp_ga_fields; ?>
|
@@ -423,19 +423,6 @@ if( ! function_exists( ' ampforwp_analytics_clientid_api ' ) ) {
|
|
423 |
}
|
424 |
}
|
425 |
|
426 |
-
// 6.1 Adding Analytics Scripts
|
427 |
-
add_filter('amp_post_template_data','ampforwp_register_analytics_script', 20);
|
428 |
-
function ampforwp_register_analytics_script( $data ){
|
429 |
-
global $redux_builder_amp;
|
430 |
-
if( true == ampforwp_get_setting('ampforwp-ga-switch') || true == ampforwp_get_setting('ampforwp-Segment-switch') || true == ampforwp_get_setting('ampforwp-Quantcast-switch') || true == ampforwp_get_setting('ampforwp-comScore-switch') || true == ampforwp_get_setting('ampforwp-Yandex-switch') || true == ampforwp_get_setting('ampforwp-Chartbeat-switch') || true == ampforwp_get_setting('ampforwp-Alexa-switch') || true == ampforwp_get_setting('ampforwp-afs-analytics-switch') || true == ampforwp_get_setting('amp-use-gtm-option') || true == ampforwp_get_setting('amp-clicky-switch') || true == ampforwp_get_setting('ampforwp-Piwik-switch')) {
|
431 |
-
|
432 |
-
if ( empty( $data['amp_component_scripts']['amp-analytics'] ) ) {
|
433 |
-
$data['amp_component_scripts']['amp-analytics'] = 'https://cdn.ampproject.org/v0/amp-analytics-0.1.js';
|
434 |
-
}
|
435 |
-
}
|
436 |
-
return $data;
|
437 |
-
}
|
438 |
-
|
439 |
if ( ! function_exists('amp_activate') ) {
|
440 |
add_action('amp_init', 'amp_gtm_remove_analytics_code');
|
441 |
function amp_gtm_remove_analytics_code() {
|
55 |
<?php echo $ampforwp_ga_fields; ?>
|
56 |
</script>
|
57 |
</amp-analytics>
|
58 |
+
<?php } else if (!empty($ga_account) && $ga_account != "UA-XXXXX-Y") { ?>
|
59 |
<amp-analytics <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> type="gtag" id="analytics1" data-credentials="include" >
|
60 |
<script type="application/json">
|
61 |
<?php echo $ampforwp_ga_fields; ?>
|
423 |
}
|
424 |
}
|
425 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
if ( ! function_exists('amp_activate') ) {
|
427 |
add_action('amp_init', 'amp_gtm_remove_analytics_code');
|
428 |
function amp_gtm_remove_analytics_code() {
|
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.7
|
7 |
-
Stable tag: 1.0.77.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,11 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
|
|
193 |
= 1.0.77.9 (29th June 2021) =
|
194 |
* Added: AMP widget for adding amp code #5064
|
195 |
* Added: Filter to modify the WP Rocket CDN URL #5076
|
@@ -217,23 +222,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
217 |
= 1.0.77.6 (12th June 2021) =
|
218 |
* Fixed: Custom JavaScript is not allowed error when analytics added by All in one SEO #5062
|
219 |
|
220 |
-
= 1.0.77.5 (10th June 2021) =
|
221 |
-
* Fixed: Some issues found while refresh the individual extension from the Extension section #5056
|
222 |
-
* Fixed: Referenced AMP URL is self-canonical AMP when AMP takeover is enabled #5053
|
223 |
-
* Fixed: Remove AMP blocks from options panel for CWV #5052
|
224 |
-
* Fixed: Incorrect link in the Breadcrumb #5050
|
225 |
-
* Fixed: Blank taxonomy in option panel #5037
|
226 |
-
* Fixed: Featured image not working for specific usecase in amp #5058
|
227 |
-
|
228 |
-
= 1.0.77.4 (1st June 2021) =
|
229 |
-
* Improvements: Added dynamic copyright code so that year changes automatically #5019
|
230 |
-
* Improvements: Added Smart Sticky Header Extension #5001
|
231 |
-
* Fixed: View Non-amp version link redirecting to 404 using custom permalink #5039
|
232 |
-
* Fixed: Headline error in schema when adding more than 110 characters in title #5033
|
233 |
-
* Fixed: Aq_resize.process() error in error logs #5041
|
234 |
-
* Fixed: Google Fonts are not getting saved while using Safari #4978
|
235 |
-
* Fixed: The tag 'animatetransform' is disallowed validation error #5043
|
236 |
-
* Fixed: Debug Warning Function get_magic_quotes_gpc() is deprecated #5035
|
237 |
-
* Fixed: Debug Warning Trying to get property 'ID' of non-object #5046
|
238 |
-
|
239 |
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.7
|
7 |
+
Stable tag: 1.0.77.10
|
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.77.10 (5th July 2021) =
|
194 |
+
* Improvements: Unused CSS and Scripts are removed in AMP Optimizer (SSR) #5070
|
195 |
+
* Improvements: Added data-hero attribute in AMP logo #5083
|
196 |
+
* Fixed: Webp images not appearing with Litespeed cache #5081
|
197 |
+
|
198 |
= 1.0.77.9 (29th June 2021) =
|
199 |
* Added: AMP widget for adding amp code #5064
|
200 |
* Added: Filter to modify the WP Rocket CDN URL #5076
|
222 |
= 1.0.77.6 (12th June 2021) =
|
223 |
* Fixed: Custom JavaScript is not allowed error when analytics added by All in one SEO #5062
|
224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
templates/design-manager/swift/single.php
CHANGED
@@ -96,7 +96,7 @@ $page = intval($page); ?>
|
|
96 |
amp_author_box( $author_box ); ?>
|
97 |
<?php } ?>
|
98 |
<?php amp_post_navigation();?>
|
99 |
-
<?php if (
|
100 |
<div class="cmts">
|
101 |
<?php amp_comments();?>
|
102 |
</div>
|
96 |
amp_author_box( $author_box ); ?>
|
97 |
<?php } ?>
|
98 |
<?php amp_post_navigation();?>
|
99 |
+
<?php if ((true == ampforwp_get_setting('wordpress-comments-support') && comments_open()) || true == ampforwp_get_setting('ampforwp-disqus-comments-support') || true == ampforwp_get_setting('ampforwp-facebook-comments-support') ||true == ampforwp_get_setting('ampforwp-vuukle-comments-support') ||true == ampforwp_get_setting('ampforwp-spotim-comments-support') ){ ?>
|
100 |
<div class="cmts">
|
101 |
<?php amp_comments();?>
|
102 |
</div>
|
templates/design-manager/swift/style.php
CHANGED
@@ -33,7 +33,8 @@ if ( empty($ampforwp_font_icon) ) {
|
|
33 |
}
|
34 |
?>
|
35 |
<?php if(1==ampforwp_get_setting('ampforwp-google-font-switch') && ( !isset($redux_builder_amp['amp_font_selector']) || $redux_builder_amp['amp_font_selector'] == 1 || empty($redux_builder_amp['amp_font_selector']) ) ) {
|
36 |
-
|
|
|
37 |
@font-face {font-family: 'Poppins';font-display: swap;font-style: normal;font-weight: 300;src: local('Poppins Light'), local('Poppins-Light'), url('<?php echo $icon_url ?>fonts/Poppins-Light.ttf');}
|
38 |
@font-face {font-family: 'Poppins';font-display: swap;font-style: normal;font-weight: 400;src: local('Poppins Regular'), local('Poppins-Regular'), url('<?php echo $icon_url ?>fonts/Poppins-Regular.ttf');}
|
39 |
@font-face {font-family: 'Poppins';font-display: swap;font-style: normal;font-weight: 500;src: local('Poppins Medium'), local('Poppins-Medium'), url('<?php echo $icon_url ?>fonts/Poppins-Medium.ttf');}
|
@@ -864,7 +865,7 @@ if($redux_builder_amp['rp_design_type'] == '3'){?>
|
|
864 |
<?php } // Related Posts Desing 3 Ends ?>
|
865 |
.related_link{margin-top:10px;}
|
866 |
.related_link a{color:#333;}
|
867 |
-
.related_link p{word-break: break-word;color: #444;font-size:
|
868 |
letter-spacing: 0.10px;margin-top: 5px;font-weight: 400;}
|
869 |
.amp-related-posts ul{list-style-type:none;}
|
870 |
.r-pf{margin-top: 40px;display: inline-block;width: 100%;}
|
@@ -897,8 +898,10 @@ letter-spacing: 0.10px;margin-top: 5px;font-weight: 400;}
|
|
897 |
<?php if( true == ampforwp_get_setting('amp-author-description') ) { ?>
|
898 |
.sp-rt .amp-author {padding: 20px 20px;border-radius: 0;background: #f9f9f9;border: 1px solid #ececec;display: inline-block;width: 100%;}
|
899 |
.sp-rt .amp-author-image{float:left;}
|
|
|
900 |
.sp-rt .author-details a{color: #222;font-size: 14px;font-weight: 500;}
|
901 |
.sp-rt .author-details a:hover{color: <?php echo ampforwp_sanitize_color($hovercolor); ?>;text-decoration:underline;}
|
|
|
902 |
.amp-author-image amp-img{border-radius: 50%;margin: 0px 12px 5px 0px;display: block; width:50px;}
|
903 |
.author-details p{margin: 0;font-size: 13px;line-height: 20px;color: #666;padding-top: 4px;}
|
904 |
<?php } ?>
|
33 |
}
|
34 |
?>
|
35 |
<?php if(1==ampforwp_get_setting('ampforwp-google-font-switch') && ( !isset($redux_builder_amp['amp_font_selector']) || $redux_builder_amp['amp_font_selector'] == 1 || empty($redux_builder_amp['amp_font_selector']) ) ) {
|
36 |
+
$google_font_api = ampforwp_get_setting('google_font_api_key');
|
37 |
+
if(!ampforwp_levelup_compatibility('levelup_theme_and_elementor') && !empty($google_font_api) ){ // Level up Condition starts ?>
|
38 |
@font-face {font-family: 'Poppins';font-display: swap;font-style: normal;font-weight: 300;src: local('Poppins Light'), local('Poppins-Light'), url('<?php echo $icon_url ?>fonts/Poppins-Light.ttf');}
|
39 |
@font-face {font-family: 'Poppins';font-display: swap;font-style: normal;font-weight: 400;src: local('Poppins Regular'), local('Poppins-Regular'), url('<?php echo $icon_url ?>fonts/Poppins-Regular.ttf');}
|
40 |
@font-face {font-family: 'Poppins';font-display: swap;font-style: normal;font-weight: 500;src: local('Poppins Medium'), local('Poppins-Medium'), url('<?php echo $icon_url ?>fonts/Poppins-Medium.ttf');}
|
865 |
<?php } // Related Posts Desing 3 Ends ?>
|
866 |
.related_link{margin-top:10px;}
|
867 |
.related_link a{color:#333;}
|
868 |
+
.related_link p{word-break: break-word;color: #444;font-size: 15px;line-height: 20px;
|
869 |
letter-spacing: 0.10px;margin-top: 5px;font-weight: 400;}
|
870 |
.amp-related-posts ul{list-style-type:none;}
|
871 |
.r-pf{margin-top: 40px;display: inline-block;width: 100%;}
|
898 |
<?php if( true == ampforwp_get_setting('amp-author-description') ) { ?>
|
899 |
.sp-rt .amp-author {padding: 20px 20px;border-radius: 0;background: #f9f9f9;border: 1px solid #ececec;display: inline-block;width: 100%;}
|
900 |
.sp-rt .amp-author-image{float:left;}
|
901 |
+
<?php if (ampforwp_get_setting('ampforwp-author-page-url')) {?>
|
902 |
.sp-rt .author-details a{color: #222;font-size: 14px;font-weight: 500;}
|
903 |
.sp-rt .author-details a:hover{color: <?php echo ampforwp_sanitize_color($hovercolor); ?>;text-decoration:underline;}
|
904 |
+
<?php } ?>
|
905 |
.amp-author-image amp-img{border-radius: 50%;margin: 0px 12px 5px 0px;display: block; width:50px;}
|
906 |
.author-details p{margin: 0;font-size: 13px;line-height: 20px;color: #666;padding-top: 4px;}
|
907 |
<?php } ?>
|
templates/features.php
CHANGED
@@ -9618,6 +9618,7 @@ function ampforwp_litespeed_webp_compatibility($content){
|
|
9618 |
}
|
9619 |
}
|
9620 |
}
|
|
|
9621 |
return $content;
|
9622 |
}
|
9623 |
|
9618 |
}
|
9619 |
}
|
9620 |
}
|
9621 |
+
$content = str_replace('.webp.webp','.webp',$content);
|
9622 |
return $content;
|
9623 |
}
|
9624 |
|