Version Description
- View more details at https://ampforwp.com/0-9-43-1-released-stability-sprint-1-49th-update/
- Emoji in comments leads to AMP errors
- Design 1 showing time on archives
- Added some space between the archive label.
- Lazy loading plugins compatibility #544
- Custom header and footer areas
- Sticky posts now come on top #564
- Footer non-amplink added in design 3 #562
- HTML
tag is shown in the title in category! #518
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.9.43.1 |
Comparing to | |
See all releases |
Code changes from version 0.9.42 to 0.9.43.1
- README.md +56 -6
- accelerated-moblie-pages.php +2 -2
- includes/options/admin-config.php +18 -1
- readme.txt +12 -1
- templates/design-manager/design-1/archive.php +5 -5
- templates/design-manager/design-1/elements/comments.php +3 -3
- templates/design-manager/design-1/index.php +0 -1
- templates/design-manager/design-2/elements/comments.php +3 -3
- templates/design-manager/design-2/index.php +0 -1
- templates/design-manager/design-3/archive.php +7 -1
- templates/design-manager/design-3/elements/comments.php +3 -3
- templates/design-manager/design-3/footer.php +5 -0
- templates/design-manager/design-3/index.php +0 -1
- templates/design-manager/design-3/style.php +7 -6
- templates/features.php +54 -14
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/5
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.7.2
|
7 |
-
Stable tag: 0.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -29,12 +29,14 @@ AMP for WP automatically adds Accelerated Mobile Pages (Google AMP Project) func
|
|
29 |
|
30 |
= Features: =
|
31 |
|
|
|
|
|
32 |
* NEW - Google Tag Manager Support
|
33 |
* NEW - Page, Category & Tags Support Added
|
34 |
* NEW - Custom AMP Editor - Which allows you to override your Content that you had written in Post or page, so you can add the different content just for AMP.
|
35 |
-
*
|
36 |
-
*
|
37 |
-
*
|
38 |
* Drag & Drop Page builder Added
|
39 |
* 2 Designs Added
|
40 |
* Yoast SEO support on AMP pages and other SEO plugins
|
@@ -124,8 +126,56 @@ You can contact me using this url: http://ampforwp.com/contact/
|
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
-
= 0.9.
|
128 |
-
* View
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
* Google Tag manager included [New feature]
|
130 |
* Iframe max-width added [Improvement]
|
131 |
* Paginated pages have different titles now. [Bug fix]
|
4 |
Donate link: https://www.paypal.me/Kaludi/5
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.7.2
|
7 |
+
Stable tag: 0.9.43.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
29 |
|
30 |
= Features: =
|
31 |
|
32 |
+
* NEW - Design 3 [Watch the Video Overview](https://www.youtube.com/watch?v=ub1pwskt3Rc)
|
33 |
+
* NEW - Disqus Comments Support
|
34 |
* NEW - Google Tag Manager Support
|
35 |
* NEW - Page, Category & Tags Support Added
|
36 |
* NEW - Custom AMP Editor - Which allows you to override your Content that you had written in Post or page, so you can add the different content just for AMP.
|
37 |
+
* Mobile Redirection - More than 50% of your traffic is from mobile and you aren’t doing anything to improve their user experience, which means you are falling behind on SEO and it can result in lower SERPS. Lightning fast mobile version means faster User experience means more engagement which directly results in the lower bounce rate.
|
38 |
+
* Custom Post Type Support
|
39 |
+
* Star Ratings
|
40 |
* Drag & Drop Page builder Added
|
41 |
* 2 Designs Added
|
42 |
* Yoast SEO support on AMP pages and other SEO plugins
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 0.9.43.1 =
|
130 |
+
* View more details at https://ampforwp.com/0-9-43-1-released-stability-sprint-1-49th-update/
|
131 |
+
* Emoji in comments leads to AMP errors
|
132 |
+
* Design 1 showing time on archives
|
133 |
+
* Added some space between the archive label.
|
134 |
+
* Lazy loading plugins compatibility #544
|
135 |
+
* Custom header and footer areas
|
136 |
+
* Sticky posts now come on top #564
|
137 |
+
* Footer non-amplink added in design 3 #562
|
138 |
+
* HTML <p> tag is shown in the title in category! #518
|
139 |
+
|
140 |
+
= 0.9.42 =
|
141 |
+
* View more details at https://ampforwp.com/design-three-update/
|
142 |
+
* Design 3 was released – Video Overview along with new options and features. View the video overview at: https://www.youtube.com/watch?v=ub1pwskt3Rc [Major Feature]
|
143 |
+
* Ticket #517 – Added Upload field into Redux core [3rd party Compatiblity]
|
144 |
+
* Ticket#529 Controls for archive titles added [Improvement]
|
145 |
+
* Ticket #548 Jetpack photon code removed
|
146 |
+
|
147 |
+
= 0.9.41 =
|
148 |
+
* View more details at https://ampforwp.com/disqus-comments-in-amp/
|
149 |
+
* Disqus Comments in AMP Support Added [New Feature] - This feature can be enabled from Dashboard > AMP Options > Disqus Comments
|
150 |
+
* AMP WooCommerce supported tag was missing after the last update. [Bug fix]
|
151 |
+
* Homepage & Related Posts was displaying private and protected posts, which is now fixed [Bug fix]
|
152 |
+
* Next previous links added in Design 1 [Enhancement]
|
153 |
+
* Invalid Post Time displaying in the homepage of Design 1 [Bug fix]
|
154 |
+
* Twitter share now includes the twitter handle of the author with setting in options [Enhancement]
|
155 |
+
* Emoji in comments leads to AMP errors was fixed [Bug fix]
|
156 |
+
* Date are now displayed on archives in Design 1 [Enhancement]
|
157 |
+
* When RTL enabled logo merges with nav bar was fixed [Bug fix]
|
158 |
+
* Jetpack Photon compatibility added [3rd Party Compatibility]
|
159 |
+
|
160 |
+
= 0.9.40 =
|
161 |
+
* View more details at https://ampforwp.com/0-9-40-released-biggest-stability-update/
|
162 |
+
* Proper endpoints added [Improvement]
|
163 |
+
* Flush Rewrites properly [Improvement]
|
164 |
+
* REL Canonical properly getting added. [Improvement]
|
165 |
+
* Proper Frontpage Canonical added [Improvement]
|
166 |
+
* Added Base name support for categories and tags [Improvement]
|
167 |
+
* Redirection of excluded post solved. [Bug fix]
|
168 |
+
* Archives properly redirecting to the right URL [Bug fix]
|
169 |
+
* Homepage redirection solved [Bug fix]
|
170 |
+
* Plusone tag is stripped properly. [Validation Issue fixed]
|
171 |
+
* Archives are now clickable. [Improvements]
|
172 |
+
* WP_Query filter added for better customizability of Homepage loop. [Better Customizations]
|
173 |
+
* Social share boost plugin compatibility. [3rd party Customizations]
|
174 |
+
* Removed H1 from the frontpage even if it is not available. [Improvement]
|
175 |
+
* H3 instead of H1 for Site title. So there is only one H1 per page. [SEO Improvement]
|
176 |
+
|
177 |
+
= 0.9.38 =
|
178 |
+
* View full details at https://ampforwp.com/google-tag-manager-for-amp/
|
179 |
* Google Tag manager included [New feature]
|
180 |
* Iframe max-width added [Improvement]
|
181 |
* Paginated pages have different titles now. [Bug fix]
|
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.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/5
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
16 |
define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
|
17 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
|
18 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
19 |
-
define('AMPFORWP_VERSION','0.9.
|
20 |
|
21 |
// Rewrite the Endpoints after the plugin is activate, as priority is set to 11
|
22 |
function ampforwp_add_custom_post_support() {
|
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.43.1
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/5
|
16 |
define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
|
17 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
|
18 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
19 |
+
define('AMPFORWP_VERSION','0.9.43.1');
|
20 |
|
21 |
// Rewrite the Endpoints after the plugin is activate, as priority is set to 11
|
22 |
function ampforwp_add_custom_post_support() {
|
includes/options/admin-config.php
CHANGED
@@ -392,7 +392,7 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
392 |
array(
|
393 |
'id' => 'amp-opt-color-rgba-font',
|
394 |
'type' => 'color_rgba',
|
395 |
-
'title' => 'Color Scheme Font Color',
|
396 |
'default' => array(
|
397 |
'color' => '#fff',
|
398 |
),
|
@@ -1465,6 +1465,23 @@ Redux::setSection( $opt_name, array(
|
|
1465 |
'false' => 'false',
|
1466 |
'default' => 1
|
1467 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1468 |
|
1469 |
),
|
1470 |
|
392 |
array(
|
393 |
'id' => 'amp-opt-color-rgba-font',
|
394 |
'type' => 'color_rgba',
|
395 |
+
'title' => 'Color Scheme Font Color',
|
396 |
'default' => array(
|
397 |
'color' => '#fff',
|
398 |
),
|
1465 |
'false' => 'false',
|
1466 |
'default' => 1
|
1467 |
),
|
1468 |
+
array(
|
1469 |
+
'id' => 'amp-header-text-area-for-html',
|
1470 |
+
'type' => 'textarea',
|
1471 |
+
'title' => __('Enter HTML in Header', 'redux-framework-demo'),
|
1472 |
+
'subtitle' => __('please enter markup that is AMP validated', 'redux-framework-demo'),
|
1473 |
+
'desc' => __('check your markup here (enter markup between BODY tag) : https://validator.ampproject.org/', 'redux-framework-demo'),
|
1474 |
+
'default' => ''
|
1475 |
+
),
|
1476 |
+
array(
|
1477 |
+
'id' => 'amp-footer-text-area-for-html',
|
1478 |
+
'type' => 'textarea',
|
1479 |
+
'title' => __('Enter HTML in Footer', 'redux-framework-demo'),
|
1480 |
+
'subtitle' => __('please enter markup that is AMP validated', 'redux-framework-demo'),
|
1481 |
+
'desc' => __('check your markup here (enter markup between BODY tag) : https://validator.ampproject.org/',
|
1482 |
+
'redux-framework-demo'),
|
1483 |
+
'default' => ''
|
1484 |
+
),
|
1485 |
|
1486 |
),
|
1487 |
|
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/5
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.7.2
|
7 |
-
Stable tag: 0.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -126,6 +126,17 @@ You can contact me using this url: http://ampforwp.com/contact/
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
= 0.9.42 =
|
130 |
* View more details at https://ampforwp.com/design-three-update/
|
131 |
* Design 3 was released – Video Overview along with new options and features. View the video overview at: https://www.youtube.com/watch?v=ub1pwskt3Rc [Major Feature]
|
4 |
Donate link: https://www.paypal.me/Kaludi/5
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.7.2
|
7 |
+
Stable tag: 0.9.43.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 0.9.43.1 =
|
130 |
+
* View more details at https://ampforwp.com/0-9-43-1-released-stability-sprint-1-49th-update/
|
131 |
+
* Emoji in comments leads to AMP errors
|
132 |
+
* Design 1 showing time on archives
|
133 |
+
* Added some space between the archive label.
|
134 |
+
* Lazy loading plugins compatibility #544
|
135 |
+
* Custom header and footer areas
|
136 |
+
* Sticky posts now come on top #564
|
137 |
+
* Footer non-amplink added in design 3 #562
|
138 |
+
* HTML <p> tag is shown in the title in category! #518
|
139 |
+
|
140 |
= 0.9.42 =
|
141 |
* View more details at https://ampforwp.com/design-three-update/
|
142 |
* Design 3 was released – Video Overview along with new options and features. View the video overview at: https://www.youtube.com/watch?v=ub1pwskt3Rc [Major Feature]
|
templates/design-manager/design-1/archive.php
CHANGED
@@ -46,11 +46,11 @@
|
|
46 |
<div class="amp-wp-content-loop">
|
47 |
|
48 |
<div class="amp-wp-meta">
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
</div>
|
55 |
|
56 |
<?php if ( has_post_thumbnail() ) { ?>
|
46 |
<div class="amp-wp-content-loop">
|
47 |
|
48 |
<div class="amp-wp-meta">
|
49 |
+
<time> <?php
|
50 |
+
printf( _x( '%1$s '. $redux_builder_amp['amp-translator-ago-date-text'], '%2$s = human-readable time difference', 'wpdocs_textdomain' ),
|
51 |
+
human_time_diff( get_the_time( 'U' ),
|
52 |
+
current_time( 'timestamp' ) ) ); ?>
|
53 |
+
</time>
|
54 |
</div>
|
55 |
|
56 |
<?php if ( has_post_thumbnail() ) { ?>
|
templates/design-manager/design-1/elements/comments.php
CHANGED
@@ -45,10 +45,10 @@ if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'])
|
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
-
$pattern = "~[^a-zA-Z0-9_ !@#$%^&*();\\\/|<>\"'+.,:?=-]~";
|
49 |
$emoji_content = get_comment_text();
|
50 |
-
$emoji_free_comments = preg_replace($pattern,'',$emoji_content);
|
51 |
-
echo $
|
52 |
</p>
|
53 |
</div>
|
54 |
<!-- .comment-content -->
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
+
// $pattern = "~[^a-zA-Z0-9_ !@#$%^&*();\\\/|<>\"'+.,:?=-]~";
|
49 |
$emoji_content = get_comment_text();
|
50 |
+
// $emoji_free_comments = preg_replace($pattern,'',$emoji_content);
|
51 |
+
echo $emoji_content; ?>
|
52 |
</p>
|
53 |
</div>
|
54 |
<!-- .comment-content -->
|
templates/design-manager/design-1/index.php
CHANGED
@@ -43,7 +43,6 @@
|
|
43 |
$args = array(
|
44 |
'post_type' => 'post',
|
45 |
'orderby' => 'date',
|
46 |
-
'ignore_sticky_posts' => 1,
|
47 |
'paged' => esc_attr($paged),
|
48 |
'post__not_in' => $exclude_ids,
|
49 |
'has_password' => false ,
|
43 |
$args = array(
|
44 |
'post_type' => 'post',
|
45 |
'orderby' => 'date',
|
|
|
46 |
'paged' => esc_attr($paged),
|
47 |
'post__not_in' => $exclude_ids,
|
48 |
'has_password' => false ,
|
templates/design-manager/design-2/elements/comments.php
CHANGED
@@ -45,10 +45,10 @@ if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'])
|
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
-
$pattern = "~[^a-zA-Z0-9_ !@#$%^&*();\\\/|<>\"'+.,:?=-]~";
|
49 |
$emoji_content = get_comment_text();
|
50 |
-
$emoji_free_comments = preg_replace($pattern,'',$emoji_content);
|
51 |
-
echo $
|
52 |
</p>
|
53 |
</div>
|
54 |
<!-- .comment-content -->
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
+
// $pattern = "~[^a-zA-Z0-9_ !@#$%^&*();\\\/|<>\"'+.,:?=-]~";
|
49 |
$emoji_content = get_comment_text();
|
50 |
+
// $emoji_free_comments = preg_replace($pattern,'',$emoji_content);
|
51 |
+
echo $emoji_content; ?>
|
52 |
</p>
|
53 |
</div>
|
54 |
<!-- .comment-content -->
|
templates/design-manager/design-2/index.php
CHANGED
@@ -43,7 +43,6 @@
|
|
43 |
$args = array(
|
44 |
'post_type' => 'post',
|
45 |
'orderby' => 'date',
|
46 |
-
'ignore_sticky_posts' => 1,
|
47 |
'paged' => esc_attr($paged),
|
48 |
'post__not_in' => $exclude_ids,
|
49 |
'has_password' => false ,
|
43 |
$args = array(
|
44 |
'post_type' => 'post',
|
45 |
'orderby' => 'date',
|
|
|
46 |
'paged' => esc_attr($paged),
|
47 |
'post__not_in' => $exclude_ids,
|
48 |
'has_password' => false ,
|
templates/design-manager/design-3/archive.php
CHANGED
@@ -88,7 +88,13 @@ if ( get_query_var( 'paged' ) ) {
|
|
88 |
}
|
89 |
?>
|
90 |
<p><?php echo wp_trim_words( $content , '15' ); ?></p>
|
91 |
-
<div class="featured_time"
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
</div>
|
94 |
<div class="cb"></div>
|
88 |
}
|
89 |
?>
|
90 |
<p><?php echo wp_trim_words( $content , '15' ); ?></p>
|
91 |
+
<div class="featured_time">
|
92 |
+
<?php
|
93 |
+
printf( _x( '%1$s '. $redux_builder_amp['amp-translator-ago-date-text'], '%2$s = human-readable time difference', 'wpdocs_textdomain' ),
|
94 |
+
human_time_diff( get_the_time( 'U' ),
|
95 |
+
current_time( 'timestamp' ) ) );
|
96 |
+
?>
|
97 |
+
</div>
|
98 |
|
99 |
</div>
|
100 |
<div class="cb"></div>
|
templates/design-manager/design-3/elements/comments.php
CHANGED
@@ -45,10 +45,10 @@ if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'])
|
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
-
$pattern = "~[^a-zA-Z0-9_ !@#$%^&*();\\\/|<>\"'+.,:?=-]~";
|
49 |
$emoji_content = get_comment_text();
|
50 |
-
$emoji_free_comments = preg_replace($pattern,'',$emoji_content);
|
51 |
-
echo $
|
52 |
</p>
|
53 |
</div>
|
54 |
<!-- .comment-content -->
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
+
// $pattern = "~[^a-zA-Z0-9_ !@#$%^&*();\\\/|<>\"'+.,:?=-]~";
|
49 |
$emoji_content = get_comment_text();
|
50 |
+
// $emoji_free_comments = preg_replace($pattern,'',$emoji_content);
|
51 |
+
echo $emoji_content; ?>
|
52 |
</p>
|
53 |
</div>
|
54 |
<!-- .comment-content -->
|
templates/design-manager/design-3/footer.php
CHANGED
@@ -89,6 +89,11 @@
|
|
89 |
global $allowed_html;
|
90 |
echo wp_kses($redux_builder_amp['amp-translator-footer-text'],$allowed_html) ;
|
91 |
?>
|
|
|
|
|
|
|
|
|
|
|
92 |
</p>
|
93 |
<?php global $redux_builder_amp; if( $redux_builder_amp['amp-design-3-credit-link'] ) { ?>
|
94 |
<p class="poweredby">
|
89 |
global $allowed_html;
|
90 |
echo wp_kses($redux_builder_amp['amp-translator-footer-text'],$allowed_html) ;
|
91 |
?>
|
92 |
+
<?php
|
93 |
+
//24. Added an options button for switching on/off link to non amp page
|
94 |
+
if($redux_builder_amp['amp-footer-link-non-amp-page']=='1') {
|
95 |
+
if ( $ampforwp_backto_nonamp ) { ?> | <a href="<?php echo $ampforwp_backto_nonamp; ?>"><?php echo esc_html( $redux_builder_amp['amp-translator-non-amp-page-text'] ) ;?> </a> <?php }
|
96 |
+
} ?>
|
97 |
</p>
|
98 |
<?php global $redux_builder_amp; if( $redux_builder_amp['amp-design-3-credit-link'] ) { ?>
|
99 |
<p class="poweredby">
|
templates/design-manager/design-3/index.php
CHANGED
@@ -98,7 +98,6 @@ if ( get_query_var( 'paged' ) ) {
|
|
98 |
'post_type' => 'post',
|
99 |
'orderby' => 'date',
|
100 |
'offset' => esc_attr($fn_offset),
|
101 |
-
'ignore_sticky_posts' => 1,
|
102 |
'paged' => esc_attr($paged),
|
103 |
'post__not_in' => $exclude_ids,
|
104 |
'has_password' => false,
|
98 |
'post_type' => 'post',
|
99 |
'orderby' => 'date',
|
100 |
'offset' => esc_attr($fn_offset),
|
|
|
101 |
'paged' => esc_attr($paged),
|
102 |
'post__not_in' => $exclude_ids,
|
103 |
'has_password' => false,
|
templates/design-manager/design-3/style.php
CHANGED
@@ -330,7 +330,7 @@ h2.amp-wp-title a{
|
|
330 |
.amp-loop-list{ position:relative; border-bottom: 1px solid #ededed;
|
331 |
padding: 25px 15px 25px 15px }
|
332 |
body .amp-loop-list-noimg .amp-wp-post-content{
|
333 |
-
width:100%
|
334 |
}
|
335 |
.amp-loop-list .amp-wp-post-content{
|
336 |
float: left;
|
@@ -369,7 +369,7 @@ body .amp-loop-list-noimg .amp-wp-post-content{
|
|
369 |
#footer p{
|
370 |
margin: 0
|
371 |
}
|
372 |
-
.rightslink{
|
373 |
font-size:13px;
|
374 |
color:#999
|
375 |
}
|
@@ -772,7 +772,7 @@ pre {
|
|
772 |
margin-top:6px
|
773 |
}
|
774 |
.headerlogo a{
|
775 |
-
color:#F42;
|
776 |
}
|
777 |
/*Navigation Menu*/
|
778 |
.toast {
|
@@ -1039,7 +1039,7 @@ amp-lightbox{
|
|
1039 |
.amp-loop-list .featured_time{line-height:1}
|
1040 |
.single-post main .amp-wp-content h1{ line-height:1.4; font-size: 30px;}
|
1041 |
}
|
1042 |
-
|
1043 |
@media screen and (max-width: 600px) {
|
1044 |
.amp-loop-list .amp-wp-tags{display:none}
|
1045 |
}
|
@@ -1096,7 +1096,7 @@ amp-lightbox{
|
|
1096 |
.icono-share{display:none}
|
1097 |
.ampforwp-social-icons amp-social-share{ margin-right: 3px;}
|
1098 |
main .amp-wp-content{ font-size: 16px; line-height: 26px;}
|
1099 |
-
.single-post .amp_author_area .amp_author_area_wrapper{font-size:13px;}
|
1100 |
}
|
1101 |
@media screen and (max-width: 400px) {
|
1102 |
.amp-wp-title{
|
@@ -1153,7 +1153,7 @@ amp-lightbox{
|
|
1153 |
}
|
1154 |
|
1155 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
1156 |
-
/* RTL Start */
|
1157 |
/* RTL End */
|
1158 |
<?php } ?>
|
1159 |
|
@@ -1321,6 +1321,7 @@ amp-user-notification button {
|
|
1321 |
color:#fff;
|
1322 |
}
|
1323 |
<?php } ?>
|
|
|
1324 |
/* Custom Style Code */
|
1325 |
<?php echo $redux_builder_amp['css_editor'];
|
1326 |
} ?>
|
330 |
.amp-loop-list{ position:relative; border-bottom: 1px solid #ededed;
|
331 |
padding: 25px 15px 25px 15px }
|
332 |
body .amp-loop-list-noimg .amp-wp-post-content{
|
333 |
+
width:100%
|
334 |
}
|
335 |
.amp-loop-list .amp-wp-post-content{
|
336 |
float: left;
|
369 |
#footer p{
|
370 |
margin: 0
|
371 |
}
|
372 |
+
.rightslink, #footer .rightslink a{
|
373 |
font-size:13px;
|
374 |
color:#999
|
375 |
}
|
772 |
margin-top:6px
|
773 |
}
|
774 |
.headerlogo a{
|
775 |
+
color:#F42;
|
776 |
}
|
777 |
/*Navigation Menu*/
|
778 |
.toast {
|
1039 |
.amp-loop-list .featured_time{line-height:1}
|
1040 |
.single-post main .amp-wp-content h1{ line-height:1.4; font-size: 30px;}
|
1041 |
}
|
1042 |
+
|
1043 |
@media screen and (max-width: 600px) {
|
1044 |
.amp-loop-list .amp-wp-tags{display:none}
|
1045 |
}
|
1096 |
.icono-share{display:none}
|
1097 |
.ampforwp-social-icons amp-social-share{ margin-right: 3px;}
|
1098 |
main .amp-wp-content{ font-size: 16px; line-height: 26px;}
|
1099 |
+
.single-post .amp_author_area .amp_author_area_wrapper{font-size:13px;}
|
1100 |
}
|
1101 |
@media screen and (max-width: 400px) {
|
1102 |
.amp-wp-title{
|
1153 |
}
|
1154 |
|
1155 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
1156 |
+
/* RTL Start */
|
1157 |
/* RTL End */
|
1158 |
<?php } ?>
|
1159 |
|
1321 |
color:#fff;
|
1322 |
}
|
1323 |
<?php } ?>
|
1324 |
+
|
1325 |
/* Custom Style Code */
|
1326 |
<?php echo $redux_builder_amp['css_editor'];
|
1327 |
} ?>
|
templates/features.php
CHANGED
@@ -39,7 +39,7 @@
|
|
39 |
29. Remove analytics code if Already added by Glue or Yoast SEO
|
40 |
30. TagDiv menu issue removed
|
41 |
31. removing scripts added by cleantalk
|
42 |
-
32.
|
43 |
33. Google tag manager support added
|
44 |
34. social share boost compatibility Ticket #387
|
45 |
35. Disqus Comments Support
|
@@ -47,6 +47,7 @@
|
|
47 |
37. compatibility with wp-html-compression
|
48 |
38. Extra Design Specific Features
|
49 |
39. #529 editable archives
|
|
|
50 |
*/
|
51 |
// Adding AMP-related things to the main theme
|
52 |
global $redux_builder_amp;
|
@@ -373,7 +374,7 @@
|
|
373 |
add_action('amp_post_template_footer','ampforwp_footer_advert',8);
|
374 |
add_action('amp_post_template_above_footer','ampforwp_footer_advert',10);
|
375 |
if ( $redux_builder_amp['amp-design-selector'] == 3) {
|
376 |
-
remove_action('amp_post_template_footer','ampforwp_footer_advert',8);
|
377 |
}
|
378 |
|
379 |
function ampforwp_footer_advert() {
|
@@ -1031,8 +1032,9 @@ function ampforwp_remove_title_tags(){
|
|
1031 |
}
|
1032 |
// title for archive pages
|
1033 |
if ( is_archive() && $redux_builder_amp['ampforwp-archive-support'] ) {
|
1034 |
-
|
1035 |
-
|
|
|
1036 |
}
|
1037 |
|
1038 |
$site_title = get_bloginfo('name') . ' | ' . get_option( 'blogdescription' ) ;
|
@@ -1125,13 +1127,6 @@ function ampforwp_remove_js_script_cleantalk() {
|
|
1125 |
remove_action('wp_loaded', 'ct_add_nocache_script', 1);
|
1126 |
}
|
1127 |
|
1128 |
-
//32. removing bj loading for amp
|
1129 |
-
function ampforwp_remove_bj_load() {
|
1130 |
-
if ( function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint() ) {
|
1131 |
-
add_filter( 'bjll/enabled', '__return_false' );
|
1132 |
-
}
|
1133 |
-
}
|
1134 |
-
add_action( 'bjll/compat', 'ampforwp_remove_bj_load' );
|
1135 |
|
1136 |
//33. Google tag manager support added
|
1137 |
// Remove any old scripts that have been loaded by other Plugins
|
@@ -1257,9 +1252,54 @@ add_filter( 'get_the_archive_title', 'ampforwp_editable_archvies_title' );
|
|
1257 |
function ampforwp_editable_archvies_title($title) {
|
1258 |
global $redux_builder_amp;
|
1259 |
if ( is_category() ) {
|
1260 |
-
$title = single_cat_title( $redux_builder_amp['amp-translator-archive-cat-text'], false );
|
1261 |
} elseif ( is_tag() ) {
|
1262 |
-
$title = single_tag_title( $redux_builder_amp['amp-translator-archive-tag-text'], false );
|
1263 |
}
|
1264 |
return $title;
|
1265 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
29. Remove analytics code if Already added by Glue or Yoast SEO
|
40 |
30. TagDiv menu issue removed
|
41 |
31. removing scripts added by cleantalk
|
42 |
+
32. various lazy loading plugins Support
|
43 |
33. Google tag manager support added
|
44 |
34. social share boost compatibility Ticket #387
|
45 |
35. Disqus Comments Support
|
47 |
37. compatibility with wp-html-compression
|
48 |
38. Extra Design Specific Features
|
49 |
39. #529 editable archives
|
50 |
+
40. #560 Header and Footer Editable html enabled script area
|
51 |
*/
|
52 |
// Adding AMP-related things to the main theme
|
53 |
global $redux_builder_amp;
|
374 |
add_action('amp_post_template_footer','ampforwp_footer_advert',8);
|
375 |
add_action('amp_post_template_above_footer','ampforwp_footer_advert',10);
|
376 |
if ( $redux_builder_amp['amp-design-selector'] == 3) {
|
377 |
+
remove_action('amp_post_template_footer','ampforwp_footer_advert',8);
|
378 |
}
|
379 |
|
380 |
function ampforwp_footer_advert() {
|
1032 |
}
|
1033 |
// title for archive pages
|
1034 |
if ( is_archive() && $redux_builder_amp['ampforwp-archive-support'] ) {
|
1035 |
+
echo strip_tags(get_the_archive_title( '' ));
|
1036 |
+
echo ' | ';
|
1037 |
+
echo strip_tags(get_the_archive_description( '' ));
|
1038 |
}
|
1039 |
|
1040 |
$site_title = get_bloginfo('name') . ' | ' . get_option( 'blogdescription' ) ;
|
1127 |
remove_action('wp_loaded', 'ct_add_nocache_script', 1);
|
1128 |
}
|
1129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1130 |
|
1131 |
//33. Google tag manager support added
|
1132 |
// Remove any old scripts that have been loaded by other Plugins
|
1252 |
function ampforwp_editable_archvies_title($title) {
|
1253 |
global $redux_builder_amp;
|
1254 |
if ( is_category() ) {
|
1255 |
+
$title = single_cat_title( $redux_builder_amp['amp-translator-archive-cat-text'].' ', false );
|
1256 |
} elseif ( is_tag() ) {
|
1257 |
+
$title = single_tag_title( $redux_builder_amp['amp-translator-archive-tag-text'].' ', false );
|
1258 |
}
|
1259 |
return $title;
|
1260 |
+
}
|
1261 |
+
|
1262 |
+
//32. various lazy loading plugins Support
|
1263 |
+
add_filter( 'amp_init', 'ampforwp_lazy_loading_plugins_compatibility' );
|
1264 |
+
function ampforwp_lazy_loading_plugins_compatibility() {
|
1265 |
+
|
1266 |
+
//WP Rocket
|
1267 |
+
add_filter( 'do_rocket_lazyload', '__return_false', PHP_INT_MAX );
|
1268 |
+
add_filter( 'do_rocket_lazyload_iframes', '__return_false', PHP_INT_MAX );
|
1269 |
+
|
1270 |
+
//Lazy Load XT
|
1271 |
+
global $lazyloadxt;
|
1272 |
+
remove_filter( 'the_content', array( $lazyloadxt, 'filter_html' ) );
|
1273 |
+
remove_filter( 'widget_text', array( $lazyloadxt, 'filter_html' ) );
|
1274 |
+
remove_filter( 'post_thumbnail_html', array( $lazyloadxt, 'filter_html' ) );
|
1275 |
+
remove_filter( 'get_avatar', array( $lazyloadxt, 'filter_html' ) );
|
1276 |
+
|
1277 |
+
// Lazy Load
|
1278 |
+
add_filter( 'lazyload_is_enabled', '__return_false', PHP_INT_MAX );
|
1279 |
+
|
1280 |
+
}
|
1281 |
+
|
1282 |
+
//Removing bj loading for amp
|
1283 |
+
function ampforwp_remove_bj_load() {
|
1284 |
+
if ( function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint() ) {
|
1285 |
+
add_filter( 'bjll/enabled', '__return_false' );
|
1286 |
+
}
|
1287 |
+
}
|
1288 |
+
add_action( 'bjll/compat', 'ampforwp_remove_bj_load' );
|
1289 |
+
|
1290 |
+
//33. #560 Header and Footer Editable html enabled script area
|
1291 |
+
add_action('amp_post_template_footer','ampforwp_footer_html_output',11);
|
1292 |
+
function ampforwp_footer_html_output() {
|
1293 |
+
global $redux_builder_amp;
|
1294 |
+
if( $redux_builder_amp['amp-footer-text-area-for-html'] ) {
|
1295 |
+
echo $redux_builder_amp['amp-footer-text-area-for-html'] ;
|
1296 |
+
}
|
1297 |
+
}
|
1298 |
+
|
1299 |
+
add_action('amp_post_template_head','ampforwp_header_html_output',11);
|
1300 |
+
function ampforwp_header_html_output() {
|
1301 |
+
global $redux_builder_amp;
|
1302 |
+
if( $redux_builder_amp['amp-header-text-area-for-html'] ) {
|
1303 |
+
echo $redux_builder_amp['amp-header-text-area-for-html'] ;
|
1304 |
+
}
|
1305 |
+
}
|