Version Description
(9th November 2020) = * Fixed: Validation error occurs when input type image is added #4785 * Fixed: Featured images are not showing when "Enable lazy load images" option is enabled in the "DEUS" Theme #4710 * Fixed: AMP Push Notification - Dropdown issue #4812 * Fixed: Italic style caption of gallery #4806 * Fixed: The canonical links are not generating for the coupon store when YOAST Plugin is active with AMPFORWP #4811 * Fixed: Content not displayed in AMP post/pages with plain permalink #4814 * Fixed: Tables created with 2 columns displaying 1 extra column on mobile view #4765 * Fixed: Content appearing in excerpt on single post #4798 * Fixed: Code improvment for amp pagebuilder's category-module #4660
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.68 |
Comparing to | |
See all releases |
Code changes from version 1.0.67 to 1.0.68
- README.md +12 -1
- accelerated-moblie-pages.php +2 -2
- changelog.txt +11 -0
- components/components-core.php +3 -5
- includes/features/performance/performance-functions.php +7 -0
- includes/features/push-notification/push-notification-options.php +3 -1
- includes/thirdparty-compatibility.php +3 -0
- pagebuilder/config/moduleTemplate.php +6 -1
- readme.txt +12 -1
- templates/design-manager/design-2/style.php +2 -2
- templates/design-manager/design-3/style.php +2 -2
- templates/design-manager/swift/single.php +2 -2
- templates/design-manager/swift/style.php +1 -1
- templates/features.php +12 -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.5
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -193,6 +193,17 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
= 1.0.67 (4th November 2020) =
|
197 |
* Improvement: Optimize Pagespeed score by implimenting AMP video lightbox #4531
|
198 |
* Improvement: Added Paid Memberships PRO for AMP Extension #4737
|
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.68
|
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.68 (9th November 2020) =
|
197 |
+
* Fixed: Validation error occurs when input type image is added #4785
|
198 |
+
* Fixed: Featured images are not showing when "Enable lazy load images" option is enabled in the "DEUS" Theme #4710
|
199 |
+
* Fixed: AMP Push Notification - Dropdown issue #4812
|
200 |
+
* Fixed: Italic style caption of gallery #4806
|
201 |
+
* Fixed: The canonical links are not generating for the coupon store when YOAST Plugin is active with AMPFORWP #4811
|
202 |
+
* Fixed: Content not displayed in AMP post/pages with plain permalink #4814
|
203 |
+
* Fixed: Tables created with 2 columns displaying 1 extra column on mobile view #4765
|
204 |
+
* Fixed: Content appearing in excerpt on single post #4798
|
205 |
+
* Fixed: Code improvment for amp pagebuilder's category-module #4660
|
206 |
+
|
207 |
= 1.0.67 (4th November 2020) =
|
208 |
* Improvement: Optimize Pagespeed score by implimenting AMP video lightbox #4531
|
209 |
* Improvement: Added Paid Memberships PRO for AMP Extension #4737
|
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.
|
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.
|
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.68
|
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.68');
|
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,16 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.67 (4th November 2020) =
|
4 |
* Improvement: Optimize Pagespeed score by implimenting AMP video lightbox #4531
|
5 |
* Improvement: Added Paid Memberships PRO for AMP Extension #4737
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.68 (9th November 2020) =
|
4 |
+
* Fixed: Validation error occurs when input type image is added #4785
|
5 |
+
* Fixed: Featured images are not showing when "Enable lazy load images" option is enabled in the "DEUS" Theme #4710
|
6 |
+
* Fixed: AMP Push Notification - Dropdown issue #4812
|
7 |
+
* Fixed: Italic style caption of gallery #4806
|
8 |
+
* Fixed: The canonical links are not generating for the coupon store when YOAST Plugin is active with AMPFORWP #4811
|
9 |
+
* Fixed: Content not displayed in AMP post/pages with plain permalink #4814
|
10 |
+
* Fixed: Tables created with 2 columns displaying 1 extra column on mobile view #4765
|
11 |
+
* Fixed: Content appearing in excerpt on single post #4798
|
12 |
+
* Fixed: Code improvment for amp pagebuilder's category-module #4660
|
13 |
+
|
14 |
= 1.0.67 (4th November 2020) =
|
15 |
* Improvement: Optimize Pagespeed score by implimenting AMP video lightbox #4531
|
16 |
* Improvement: Added Paid Memberships PRO for AMP Extension #4737
|
components/components-core.php
CHANGED
@@ -130,7 +130,7 @@ function amp_title(){
|
|
130 |
}
|
131 |
|
132 |
// Excerpt
|
133 |
-
function amp_excerpt( $no_of_words=
|
134 |
global $post;
|
135 |
$post_id = '';
|
136 |
$no_of_words = (int) $no_of_words;
|
@@ -139,8 +139,6 @@ function amp_excerpt( $no_of_words=15 ) {
|
|
139 |
<p><?php
|
140 |
if ( has_excerpt() ) {
|
141 |
$content = get_the_excerpt();
|
142 |
-
} else {
|
143 |
-
$content = get_the_content();
|
144 |
}
|
145 |
/* `wp_trim_words` will strip all the tags
|
146 |
as it has `wp_strip_all_tags` inside to clean */
|
@@ -752,12 +750,12 @@ function ampforwp_backtotop_global_css(){?>
|
|
752 |
table a:link { font-weight: bold; text-decoration: none; }
|
753 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
754 |
table a:active, table a:hover { color: #bd5a35; text-decoration: underline; }
|
755 |
-
table { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 15px; text-shadow: 1px 1px 0px #fff; background:
|
756 |
table th { padding: 21px 25px 22px 25px; border-top: 1px solid #fafafa; border-bottom: 1px solid #e0e0e0; background: #ededed; }
|
757 |
table th:first-child { text-align: left; padding-left: 20px; }
|
758 |
table tr:first-child th:first-child { -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
759 |
table tr:first-child th:last-child { -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
|
760 |
-
table tr { text-align: center; padding-left: 20px; }
|
761 |
table td:first-child {padding-left: 20px; border-left: 0; }
|
762 |
table td { padding: 18px; border-top: 1px solid #ffffff; border-bottom: 1px solid #e0e0e0; border-left: 1px solid #e0e0e0;}
|
763 |
table tr.even td { background: #f6f6f6; background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f6f6f6)); }
|
130 |
}
|
131 |
|
132 |
// Excerpt
|
133 |
+
function amp_excerpt( $no_of_words=260 ) {
|
134 |
global $post;
|
135 |
$post_id = '';
|
136 |
$no_of_words = (int) $no_of_words;
|
139 |
<p><?php
|
140 |
if ( has_excerpt() ) {
|
141 |
$content = get_the_excerpt();
|
|
|
|
|
142 |
}
|
143 |
/* `wp_trim_words` will strip all the tags
|
144 |
as it has `wp_strip_all_tags` inside to clean */
|
750 |
table a:link { font-weight: bold; text-decoration: none; }
|
751 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
752 |
table a:active, table a:hover { color: #bd5a35; text-decoration: underline; }
|
753 |
+
table { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 15px; text-shadow: 1px 1px 0px #fff; background: inherit; margin: 0px; width: 95%; }
|
754 |
table th { padding: 21px 25px 22px 25px; border-top: 1px solid #fafafa; border-bottom: 1px solid #e0e0e0; background: #ededed; }
|
755 |
table th:first-child { text-align: left; padding-left: 20px; }
|
756 |
table tr:first-child th:first-child { -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
757 |
table tr:first-child th:last-child { -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
|
758 |
+
table tr { text-align: center; padding-left: 20px; border: 2px solid #eee;}
|
759 |
table td:first-child {padding-left: 20px; border-left: 0; }
|
760 |
table td { padding: 18px; border-top: 1px solid #ffffff; border-bottom: 1px solid #e0e0e0; border-left: 1px solid #e0e0e0;}
|
761 |
table tr.even td { background: #f6f6f6; background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f6f6f6)); }
|
includes/features/performance/performance-functions.php
CHANGED
@@ -33,6 +33,13 @@ function ampforwp_minify_html_output($content_buffer){
|
|
33 |
if(preg_match('/<amp-story-player(.*?)<\/amp-story-player>/s', $content_buffer)){
|
34 |
$content_buffer = preg_replace('/<amp-story-player(.*?)<\/amp-story-player>/s', '<amp-story-player width="360" height="600" $1</amp-story-player>', $content_buffer);
|
35 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
global $redux_builder_amp;
|
37 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
38 |
return $content_buffer;
|
33 |
if(preg_match('/<amp-story-player(.*?)<\/amp-story-player>/s', $content_buffer)){
|
34 |
$content_buffer = preg_replace('/<amp-story-player(.*?)<\/amp-story-player>/s', '<amp-story-player width="360" height="600" $1</amp-story-player>', $content_buffer);
|
35 |
}
|
36 |
+
if(preg_match('/<input(.*?)type="image"(.*?)>/', $content_buffer)){
|
37 |
+
$content_buffer = preg_replace('/<input(.*?)type="image"(.*?)src="(.*?)"(.*?)>/', '<amp-img src="$3" layout="responsive" width="150" height="50" style="width:150px;height:50px;"></amp-img>', $content_buffer);
|
38 |
+
}
|
39 |
+
if(preg_match('/<figcaption class="ampforwp-blocks-gallery-caption">(.*?)<\/figcaption>/', $content_buffer)){
|
40 |
+
$content_buffer = preg_replace('/</', '<', $content_buffer);
|
41 |
+
$content_buffer = preg_replace('/>/', '>', $content_buffer);
|
42 |
+
}
|
43 |
global $redux_builder_amp;
|
44 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
45 |
return $content_buffer;
|
includes/features/push-notification/push-notification-options.php
CHANGED
@@ -165,7 +165,8 @@ function ampforwp_push_notification_options($opt_name){
|
|
165 |
'type' => 'section',
|
166 |
'title' => esc_html__('Positioning', 'accelerated-mobile-pages'),
|
167 |
'required' => array(
|
168 |
-
array( 'amp-use-pot', '=' , 0 )
|
|
|
169 |
),
|
170 |
'indent' => true,
|
171 |
'layout_type' => 'accordion',
|
@@ -216,6 +217,7 @@ function ampforwp_push_notification_options($opt_name){
|
|
216 |
'indent' => true,
|
217 |
'layout_type' => 'accordion',
|
218 |
'accordion-open'=> 1,
|
|
|
219 |
),
|
220 |
array(
|
221 |
'id' => 'ampforwp-onesignal-translator-subscribe',
|
165 |
'type' => 'section',
|
166 |
'title' => esc_html__('Positioning', 'accelerated-mobile-pages'),
|
167 |
'required' => array(
|
168 |
+
array( 'amp-use-pot', '=' , 0 ),
|
169 |
+
array( 'ampforwp-web-push', '!=' , 0 )
|
170 |
),
|
171 |
'indent' => true,
|
172 |
'layout_type' => 'accordion',
|
217 |
'indent' => true,
|
218 |
'layout_type' => 'accordion',
|
219 |
'accordion-open'=> 1,
|
220 |
+
'required'=> array( 'ampforwp-web-push', '!=' , 0 ),
|
221 |
),
|
222 |
array(
|
223 |
'id' => 'ampforwp-onesignal-translator-subscribe',
|
includes/thirdparty-compatibility.php
CHANGED
@@ -1205,6 +1205,9 @@ function ampforwp_is_amp_inURL($url){
|
|
1205 |
if (ampforwp_get_setting('ampforwp-amp-takeover')) {
|
1206 |
return true;
|
1207 |
}
|
|
|
|
|
|
|
1208 |
$urlArray = explode("/", $url);
|
1209 |
if( !in_array( AMPFORWP_AMP_QUERY_VAR , $urlArray ) ) {
|
1210 |
return false;
|
1205 |
if (ampforwp_get_setting('ampforwp-amp-takeover')) {
|
1206 |
return true;
|
1207 |
}
|
1208 |
+
if(get_option('permalink_structure') == '' && isset($_GET['amp'])){
|
1209 |
+
return true;
|
1210 |
+
}
|
1211 |
$urlArray = explode("/", $url);
|
1212 |
if( !in_array( AMPFORWP_AMP_QUERY_VAR , $urlArray ) ) {
|
1213 |
return false;
|
pagebuilder/config/moduleTemplate.php
CHANGED
@@ -12,7 +12,12 @@ if(!function_exists("ampforwp_module_templates")){
|
|
12 |
global $moduleTemplate, $layoutTemplate;
|
13 |
|
14 |
$dir = AMP_PAGE_BUILDER.'/modules/';
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
16 |
if ($dh = opendir($dir)) {
|
17 |
while (($file = readdir($dh)) !== false) {
|
18 |
if(is_file($dir.$file) && strpos($file, '-module.php') == true){
|
12 |
global $moduleTemplate, $layoutTemplate;
|
13 |
|
14 |
$dir = AMP_PAGE_BUILDER.'/modules/';
|
15 |
+
$checkpb = false;
|
16 |
+
global $pagenow;
|
17 |
+
if('post-new.php' == $pagenow || 'post.php' == $pagenow || 'index.php' == $pagenow){
|
18 |
+
$checkpb = true;
|
19 |
+
}
|
20 |
+
if (is_dir($dir) && $checkpb) {
|
21 |
if ($dh = opendir($dir)) {
|
22 |
while (($file = readdir($dh)) !== false) {
|
23 |
if(is_file($dir.$file) && strpos($file, '-module.php') == true){
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,17 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
= 1.0.67 (4th November 2020) =
|
194 |
* Improvement: Optimize Pagespeed score by implimenting AMP video lightbox #4531
|
195 |
* Improvement: Added Paid Memberships PRO for AMP Extension #4737
|
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.68
|
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.68 (9th November 2020) =
|
194 |
+
* Fixed: Validation error occurs when input type image is added #4785
|
195 |
+
* Fixed: Featured images are not showing when "Enable lazy load images" option is enabled in the "DEUS" Theme #4710
|
196 |
+
* Fixed: AMP Push Notification - Dropdown issue #4812
|
197 |
+
* Fixed: Italic style caption of gallery #4806
|
198 |
+
* Fixed: The canonical links are not generating for the coupon store when YOAST Plugin is active with AMPFORWP #4811
|
199 |
+
* Fixed: Content not displayed in AMP post/pages with plain permalink #4814
|
200 |
+
* Fixed: Tables created with 2 columns displaying 1 extra column on mobile view #4765
|
201 |
+
* Fixed: Content appearing in excerpt on single post #4798
|
202 |
+
* Fixed: Code improvment for amp pagebuilder's category-module #4660
|
203 |
+
|
204 |
= 1.0.67 (4th November 2020) =
|
205 |
* Improvement: Optimize Pagespeed score by implimenting AMP video lightbox #4531
|
206 |
* Improvement: Added Paid Memberships PRO for AMP Extension #4737
|
templates/design-manager/design-2/style.php
CHANGED
@@ -432,12 +432,12 @@ table a:link { font-weight: bold; text-decoration: none; }
|
|
432 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
433 |
table a:active,
|
434 |
table a:hover { color: #bd5a35; text-decoration: underline; }
|
435 |
-
table { color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background:
|
436 |
table th { padding: 21px 25px 22px 25px; border-top: 1px solid #fafafa; border-bottom: 1px solid #e0e0e0; background: #ededed; background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#ebebeb)); background: -moz-linear-gradient(top, #ededed, #ebebeb); }
|
437 |
table th:first-child { text-align: left; padding-left: 20px; }
|
438 |
table tr:first-child th:first-child { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
439 |
table tr:first-child th:last-child { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
|
440 |
-
table tr { text-align: center; padding-left: 20px; }
|
441 |
table td:first-child { text-align: left; padding-left: 20px; border-left: 0; }
|
442 |
table td { padding: 18px; border-top: 1px solid #ffffff; border-bottom: 1px solid #e0e0e0; border-left: 1px solid #e0e0e0; background: #fafafa; background: -webkit-gradient(linear, left top, left bottom, from(#fbfbfb), to(#fafafa)); background: -moz-linear-gradient(top, #fbfbfb, #fafafa); }
|
443 |
table tr.even td { background: #f6f6f6; background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f6f6f6)); background: -moz-linear-gradient(top, #f8f8f8, #f6f6f6); }
|
432 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
433 |
table a:active,
|
434 |
table a:hover { color: #bd5a35; text-decoration: underline; }
|
435 |
+
table { color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background: inherit; margin: 0px; width: 95%; }
|
436 |
table th { padding: 21px 25px 22px 25px; border-top: 1px solid #fafafa; border-bottom: 1px solid #e0e0e0; background: #ededed; background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#ebebeb)); background: -moz-linear-gradient(top, #ededed, #ebebeb); }
|
437 |
table th:first-child { text-align: left; padding-left: 20px; }
|
438 |
table tr:first-child th:first-child { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
439 |
table tr:first-child th:last-child { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
|
440 |
+
table tr { text-align: center; padding-left: 20px;border: 2px solid #eee; }
|
441 |
table td:first-child { text-align: left; padding-left: 20px; border-left: 0; }
|
442 |
table td { padding: 18px; border-top: 1px solid #ffffff; border-bottom: 1px solid #e0e0e0; border-left: 1px solid #e0e0e0; background: #fafafa; background: -webkit-gradient(linear, left top, left bottom, from(#fbfbfb), to(#fafafa)); background: -moz-linear-gradient(top, #fbfbfb, #fafafa); }
|
443 |
table tr.even td { background: #f6f6f6; background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f6f6f6)); background: -moz-linear-gradient(top, #f8f8f8, #f6f6f6); }
|
templates/design-manager/design-3/style.php
CHANGED
@@ -582,12 +582,12 @@ table { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap
|
|
582 |
table a:link { font-weight: bold; text-decoration: none; }
|
583 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
584 |
table a:active, table a:hover { color: #bd5a35; text-decoration: underline; }
|
585 |
-
table { color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background:
|
586 |
table th { padding: 21px 25px 22px 25px; border-top: 1px solid #fafafa; border-bottom: 1px solid #e0e0e0; background: #ededed; }
|
587 |
table th:first-child { text-align: left; padding-left: 20px; }
|
588 |
table tr:first-child th:first-child {border-top-left-radius: 3px; }
|
589 |
table tr:first-child th:last-child {border-top-right-radius: 3px; }
|
590 |
-
table tr { text-align: center; padding-left: 20px; }
|
591 |
table td:first-child { text-align: left; padding-left: 20px; border-left: 0; }
|
592 |
table td { padding: 18px; border-top: 1px solid #ffffff; border-bottom: 1px solid #e0e0e0; border-left: 1px solid #e0e0e0; background: #fafafa; }
|
593 |
table tr.even td { background: #f6f6f6; }
|
582 |
table a:link { font-weight: bold; text-decoration: none; }
|
583 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
584 |
table a:active, table a:hover { color: #bd5a35; text-decoration: underline; }
|
585 |
+
table { color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background: inherit; margin: 0px; width: 100%; }
|
586 |
table th { padding: 21px 25px 22px 25px; border-top: 1px solid #fafafa; border-bottom: 1px solid #e0e0e0; background: #ededed; }
|
587 |
table th:first-child { text-align: left; padding-left: 20px; }
|
588 |
table tr:first-child th:first-child {border-top-left-radius: 3px; }
|
589 |
table tr:first-child th:last-child {border-top-right-radius: 3px; }
|
590 |
+
table tr { text-align: center; padding-left: 20px;border: 2px solid #eee; }
|
591 |
table td:first-child { text-align: left; padding-left: 20px; border-left: 0; }
|
592 |
table td { padding: 18px; border-top: 1px solid #ffffff; border-bottom: 1px solid #e0e0e0; border-left: 1px solid #e0e0e0; background: #fafafa; }
|
593 |
table tr.even td { background: #f6f6f6; }
|
templates/design-manager/swift/single.php
CHANGED
@@ -15,7 +15,7 @@ global $redux_builder_amp; ?>
|
|
15 |
<?php amp_title(); ?>
|
16 |
<?php if( true == $redux_builder_amp['enable-excerpt-single'] ){ ?>
|
17 |
<div class="tl-exc">
|
18 |
-
<?php amp_excerpt(
|
19 |
</div>
|
20 |
<?php } ?>
|
21 |
</div>
|
@@ -328,7 +328,7 @@ do_action("ampforwp_single_design_type_handle_d1");
|
|
328 |
<?php amp_title(); ?>
|
329 |
<?php if( true == $redux_builder_amp['enable-excerpt-single'] ){ ?>
|
330 |
<div class="tl-exc">
|
331 |
-
<?php amp_excerpt(
|
332 |
</div>
|
333 |
<?php } ?>
|
334 |
<?php if ( ampforwp_get_setting('swift-featued-image') && ampforwp_has_post_thumbnail() ) { ?>
|
15 |
<?php amp_title(); ?>
|
16 |
<?php if( true == $redux_builder_amp['enable-excerpt-single'] ){ ?>
|
17 |
<div class="tl-exc">
|
18 |
+
<?php amp_excerpt(); ?>
|
19 |
</div>
|
20 |
<?php } ?>
|
21 |
</div>
|
328 |
<?php amp_title(); ?>
|
329 |
<?php if( true == $redux_builder_amp['enable-excerpt-single'] ){ ?>
|
330 |
<div class="tl-exc">
|
331 |
+
<?php amp_excerpt(); ?>
|
332 |
</div>
|
333 |
<?php } ?>
|
334 |
<?php if ( ampforwp_get_setting('swift-featued-image') && ampforwp_has_post_thumbnail() ) { ?>
|
templates/design-manager/swift/style.php
CHANGED
@@ -713,7 +713,7 @@ if ( ampforwp_get_setting('swift-featued-image-type') == 2) { ?>
|
|
713 |
.amp-tags .amp-tag:after{content: "/";display: inline-block;padding: 0px 10px;position: relative;top: -1px;color: #ccc;font-size: 12px;}
|
714 |
.amp-tags .amp-tag:last-child:after{display:none;}
|
715 |
.ss-ic li:before{border-radius: 2px;text-align:center;padding: 4px 6px;}
|
716 |
-
.sgl table {width: 100%;margin-bottom:25px;
|
717 |
.sgl th , .sgl td {padding: 0.5em 1em;border: 1px solid #ddd;}
|
718 |
<?php // Social Sharing Conditional CSS
|
719 |
if($redux_builder_amp['swift-social-position'] == 'above-content'){?>
|
713 |
.amp-tags .amp-tag:after{content: "/";display: inline-block;padding: 0px 10px;position: relative;top: -1px;color: #ccc;font-size: 12px;}
|
714 |
.amp-tags .amp-tag:last-child:after{display:none;}
|
715 |
.ss-ic li:before{border-radius: 2px;text-align:center;padding: 4px 6px;}
|
716 |
+
.sgl table {width: 100%;margin-bottom:25px;}
|
717 |
.sgl th , .sgl td {padding: 0.5em 1em;border: 1px solid #ddd;}
|
718 |
<?php // Social Sharing Conditional CSS
|
719 |
if($redux_builder_amp['swift-social-position'] == 'above-content'){?>
|
templates/features.php
CHANGED
@@ -4311,6 +4311,9 @@ function ampforwp_home_archive_canonical_setter(){
|
|
4311 |
if(is_search()){
|
4312 |
return;
|
4313 |
}
|
|
|
|
|
|
|
4314 |
remove_action('amp_post_template_head','ampforwp_rel_canonical_home_archive');
|
4315 |
if(function_exists('wpseo_premium_init') && ! is_singular() ){
|
4316 |
add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_canonical' );
|
@@ -8834,6 +8837,15 @@ function ampforwp_extra_category_fields( $tag ) {
|
|
8834 |
</tr>
|
8835 |
<?php
|
8836 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8837 |
if(function_exists('rocket_activation')){
|
8838 |
add_filter("ampforwp_the_content_last_filter",'ampforwp_wp_rocket_compatibility',25);
|
8839 |
}
|
4311 |
if(is_search()){
|
4312 |
return;
|
4313 |
}
|
4314 |
+
if(is_tax()){
|
4315 |
+
return;
|
4316 |
+
}
|
4317 |
remove_action('amp_post_template_head','ampforwp_rel_canonical_home_archive');
|
4318 |
if(function_exists('wpseo_premium_init') && ! is_singular() ){
|
4319 |
add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_canonical' );
|
8837 |
</tr>
|
8838 |
<?php
|
8839 |
}
|
8840 |
+
//4710 Added support to load featured image for lazy load option of Dues theme.
|
8841 |
+
if(function_exists('wpg_lazyload_image_attributes')){
|
8842 |
+
add_action('wp','ampforwp_dues_theme_load_featured_image');
|
8843 |
+
}
|
8844 |
+
function ampforwp_dues_theme_load_featured_image(){
|
8845 |
+
if(ampforwp_is_amp_endpoint()){
|
8846 |
+
remove_filter( 'wp_get_attachment_image_attributes', 'wpg_lazyload_image_attributes', 8, 3 );
|
8847 |
+
}
|
8848 |
+
}
|
8849 |
if(function_exists('rocket_activation')){
|
8850 |
add_filter("ampforwp_the_content_last_filter",'ampforwp_wp_rocket_compatibility',25);
|
8851 |
}
|