Version Description
(18th SEPTEMBER 2019) =
- Improvements: Upgrade the analtyics integration with gtag.js #3538
- Improvements: Need to optimize css classes #3650
- Fixed: Small sized images are getting stretched in the lightbox. #3602
- Fixed: Gutenberg Audio Module not working #3597
- Fixed: Table (thead-th) styling issue after update #3661
- Fixed: Issue with the post titles in single page (two H2 tags if logo is not inserted) #3641
- Fixed: search results pages are showing up as 'no index' #3646
- Fixed: Need to add support of shortcode in category pages #3653
- Fixed: Custom post description migrates to image description #3606
- Fixed: AMP for WP conflict with the CDN Enabler plugin #3631
- Fixed: Warning in Error Log #3655
- Fixed: Incorrect placeholder "Select the SEO Plugin" in drop-down in AMP option Panel #3663
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.9.98.10 |
Comparing to | |
See all releases |
Code changes from version 0.9.98.9 to 0.9.98.10
- README.md +16 -1
- accelerated-moblie-pages.php +2 -2
- changelog.txt +15 -0
- components/components-core.php +1 -1
- components/logo/logo.php +3 -4
- components/loop/loop.php +1 -1
- includes/features/analytics/analytics-functions.php +11 -6
- includes/options/redux-core/inc/fields/select/field_select.php +1 -1
- includes/vendor/amp/includes/sanitizers/class-amp-audio-sanitizer.php +5 -1
- includes/vendor/amp/includes/sanitizers/class-amp-gallery-block-sanitizer.php +10 -0
- includes/vendor/amp/includes/sanitizers/class-amp-img-sanitizer.php +18 -0
- pagebuilder/modules/contents-module.php +25 -25
- readme.txt +16 -1
- templates/design-manager/design-1/archive.php +1 -1
- templates/design-manager/design-1/search.php +2 -1
- templates/design-manager/design-1/style.php +1 -1
- templates/design-manager/design-2/archive.php +1 -1
- templates/design-manager/design-2/search.php +2 -1
- templates/design-manager/design-2/style.php +1 -1
- templates/design-manager/design-3/archive.php +1 -1
- templates/design-manager/design-3/search.php +2 -1
- templates/design-manager/design-3/style.php +1 -1
- templates/design-manager/swift/style.php +2 -2
- templates/features.php +8 -7
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.2.3
|
7 |
-
Stable tag: 0.9.98.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,6 +191,21 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
= 0.9.98.9 (16th SEPTEMBER 2019) =
|
195 |
|
196 |
* Improvements: Need to implement Tree Shaking feature to remove access css from the AMP pages #2949
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.2.3
|
7 |
+
Stable tag: 0.9.98.10
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 0.9.98.10 (18th SEPTEMBER 2019) =
|
195 |
+
|
196 |
+
* Improvements: Upgrade the analtyics integration with gtag.js #3538
|
197 |
+
* Improvements: Need to optimize css classes #3650
|
198 |
+
* Fixed: Small sized images are getting stretched in the lightbox. #3602
|
199 |
+
* Fixed: Gutenberg Audio Module not working #3597
|
200 |
+
* Fixed: Table (thead-th) styling issue after update #3661
|
201 |
+
* Fixed: Issue with the post titles in single page (two H2 tags if logo is not inserted) #3641
|
202 |
+
* Fixed: search results pages are showing up as 'no index' #3646
|
203 |
+
* Fixed: Need to add support of shortcode in category pages #3653
|
204 |
+
* Fixed: Custom post description migrates to image description #3606
|
205 |
+
* Fixed: AMP for WP conflict with the CDN Enabler plugin #3631
|
206 |
+
* Fixed: Warning in Error Log #3655
|
207 |
+
* Fixed: Incorrect placeholder "Select the SEO Plugin" in drop-down in AMP option Panel #3663
|
208 |
+
|
209 |
= 0.9.98.9 (16th SEPTEMBER 2019) =
|
210 |
|
211 |
* Improvements: Need to implement Tree Shaking feature to remove access css from the AMP pages #2949
|
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.98.
|
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','0.9.98.
|
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: 0.9.98.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','0.9.98.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,20 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 0.9.98.9 (16th SEPTEMBER 2019) =
|
4 |
|
5 |
* Improvements: Need to implement Tree Shaking feature to remove access css from the AMP pages #2949
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 0.9.98.10 (18th SEPTEMBER 2019) =
|
4 |
+
|
5 |
+
* Improvements: Upgrade the analtyics integration with gtag.js #3538
|
6 |
+
* Improvements: Need to optimize css classes #3650
|
7 |
+
* Fixed: Small sized images are getting stretched in the lightbox. #3602
|
8 |
+
* Fixed: Gutenberg Audio Module not working #3597
|
9 |
+
* Fixed: Table (thead-th) styling issue after update #3661
|
10 |
+
* Fixed: Issue with the post titles in single page (two H2 tags if logo is not inserted) #3641
|
11 |
+
* Fixed: search results pages are showing up as 'no index' #3646
|
12 |
+
* Fixed: Need to add support of shortcode in category pages #3653
|
13 |
+
* Fixed: Custom post description migrates to image description #3606
|
14 |
+
* Fixed: AMP for WP conflict with the CDN Enabler plugin #3631
|
15 |
+
* Fixed: Warning in Error Log #3655
|
16 |
+
* Fixed: Incorrect placeholder "Select the SEO Plugin" in drop-down in AMP option Panel #3663
|
17 |
+
|
18 |
= 0.9.98.9 (16th SEPTEMBER 2019) =
|
19 |
|
20 |
* Improvements: Need to implement Tree Shaking feature to remove access css from the AMP pages #2949
|
components/components-core.php
CHANGED
@@ -381,7 +381,7 @@ function amp_header_core(){
|
|
381 |
wp_head();
|
382 |
|
383 |
}else{
|
384 |
-
if(is_search()){?>
|
385 |
<meta name="robots" content="noindex,nofollow"/>
|
386 |
<?php }
|
387 |
do_action( 'amp_post_template_head', $thisTemplate );
|
381 |
wp_head();
|
382 |
|
383 |
}else{
|
384 |
+
if(is_search() && false == ampforwp_get_setting('amp-inspection-tool') && false == ampforwp_get_setting('ampforwp-robots-search-pages')){?>
|
385 |
<meta name="robots" content="noindex,nofollow"/>
|
386 |
<?php }
|
387 |
do_action( 'amp_post_template_head', $thisTemplate );
|
components/logo/logo.php
CHANGED
@@ -26,10 +26,9 @@ function ampforwp_framework_get_logo(){
|
|
26 |
<?php bloginfo('name'); ?>
|
27 |
</h1>
|
28 |
<?php } ?>
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
} ?>
|
33 |
</div>
|
34 |
<?php }
|
35 |
|
26 |
<?php bloginfo('name'); ?>
|
27 |
</h1>
|
28 |
<?php } ?>
|
29 |
+
<?php } else { ?><h1>
|
30 |
+
<a href="<?php echo esc_url( $ampforwp_home_url ); ?>" <?php if($set_rel_to_noamp){ echo ' rel="nofollow"'; } ?> ><?php bloginfo('name'); ?></a></h1><?php
|
31 |
+
} ?>
|
|
|
32 |
</div>
|
33 |
<?php }
|
34 |
|
components/loop/loop.php
CHANGED
@@ -45,7 +45,7 @@ function amp_archive_title(){
|
|
45 |
}
|
46 |
if($paged <= '1') {?>
|
47 |
<div class="amp-archive-desc">
|
48 |
-
<?php echo $arch_desc;// amphtml content, no kses ?>
|
49 |
</div> <?php
|
50 |
}
|
51 |
}
|
45 |
}
|
46 |
if($paged <= '1') {?>
|
47 |
<div class="amp-archive-desc">
|
48 |
+
<?php echo do_shortcode($arch_desc);// amphtml content, no kses ?>
|
49 |
</div> <?php
|
50 |
}
|
51 |
}
|
includes/features/analytics/analytics-functions.php
CHANGED
@@ -12,13 +12,18 @@ function ampforwp_analytics() {
|
|
12 |
$ga_account = str_replace(' ', '', $ga_account);
|
13 |
$ga_fields = array(
|
14 |
'vars'=>array(
|
15 |
-
'
|
16 |
),
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
'on'=>'visible',
|
20 |
-
'request'=>'pageview'
|
21 |
-
)
|
22 |
)
|
23 |
);
|
24 |
if ( true == ampforwp_get_setting('ampforwp-ga-field-anonymizeIP')) {
|
@@ -36,7 +41,7 @@ function ampforwp_analytics() {
|
|
36 |
$ampforwp_ga_fields = preg_replace('/\n\s*\n/', '', $ampforwp_ga_fields);
|
37 |
}
|
38 |
?>
|
39 |
-
<amp-analytics <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> type="
|
40 |
<script type="application/json">
|
41 |
<?php echo $ampforwp_ga_fields; ?>
|
42 |
</script>
|
12 |
$ga_account = str_replace(' ', '', $ga_account);
|
13 |
$ga_fields = array(
|
14 |
'vars'=>array(
|
15 |
+
'gtag_id'=>$ga_account,
|
16 |
),
|
17 |
+
);
|
18 |
+
$ga_fields['vars']['config'] = array(
|
19 |
+
$ga_account=> array(
|
20 |
+
'groups'=>'default',
|
21 |
+
)
|
22 |
+
);
|
23 |
+
$ga_fields['vars']['triggers'] = array(
|
24 |
+
'trackPageview'=> array(
|
25 |
'on'=>'visible',
|
26 |
+
'request'=>'pageview'
|
|
|
27 |
)
|
28 |
);
|
29 |
if ( true == ampforwp_get_setting('ampforwp-ga-field-anonymizeIP')) {
|
41 |
$ampforwp_ga_fields = preg_replace('/\n\s*\n/', '', $ampforwp_ga_fields);
|
42 |
}
|
43 |
?>
|
44 |
+
<amp-analytics <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> type="gtag" id="analytics1" data-credentials="include" >
|
45 |
<script type="application/json">
|
46 |
<?php echo $ampforwp_ga_fields; ?>
|
47 |
</script>
|
includes/options/redux-core/inc/fields/select/field_select.php
CHANGED
@@ -87,7 +87,7 @@ if ( ! class_exists( 'ReduxFramework_select' ) ) {
|
|
87 |
$nameBrackets = "[]";
|
88 |
}
|
89 |
|
90 |
-
$placeholder = ( isset( $this->field['placeholder'] ) ) ? esc_attr( $this->field['placeholder'] ) : __( 'Select
|
91 |
|
92 |
if ( isset( $this->field['select2'] ) ) { // if there are any let's pass them to js
|
93 |
$select2_params = json_encode( $this->field['select2'] );
|
87 |
$nameBrackets = "[]";
|
88 |
}
|
89 |
|
90 |
+
$placeholder = ( isset( $this->field['placeholder'] ) ) ? esc_attr( $this->field['placeholder'] ) : __( 'Select an option', 'accelerated-mobile-pages' );
|
91 |
|
92 |
if ( isset( $this->field['select2'] ) ) { // if there are any let's pass them to js
|
93 |
$select2_params = json_encode( $this->field['select2'] );
|
includes/vendor/amp/includes/sanitizers/class-amp-audio-sanitizer.php
CHANGED
@@ -28,7 +28,11 @@ class AMP_Audio_Sanitizer extends AMP_Base_Sanitizer {
|
|
28 |
$old_attributes = AMP_DOM_Utils::get_node_attributes_as_assoc_array( $node );
|
29 |
|
30 |
$new_attributes = $this->filter_attributes( $old_attributes );
|
31 |
-
|
|
|
|
|
|
|
|
|
32 |
$new_node = AMP_DOM_Utils::create_node( $this->dom, 'amp-audio', $new_attributes );
|
33 |
|
34 |
// TODO: `source` does not have closing tag, and DOMDocument doesn't handle it well.
|
28 |
$old_attributes = AMP_DOM_Utils::get_node_attributes_as_assoc_array( $node );
|
29 |
|
30 |
$new_attributes = $this->filter_attributes( $old_attributes );
|
31 |
+
if(isset($new_attributes['src'])){
|
32 |
+
$src = $new_attributes['src'];
|
33 |
+
$new_src = str_replace("http:", '', $src);
|
34 |
+
$new_attributes['src'] = $new_src;
|
35 |
+
}
|
36 |
$new_node = AMP_DOM_Utils::create_node( $this->dom, 'amp-audio', $new_attributes );
|
37 |
|
38 |
// TODO: `source` does not have closing tag, and DOMDocument doesn't handle it well.
|
includes/vendor/amp/includes/sanitizers/class-amp-gallery-block-sanitizer.php
CHANGED
@@ -138,6 +138,16 @@ class AMP_Gallery_Block_Sanitizer extends AMP_Base_Sanitizer {
|
|
138 |
$width = $element->getAttribute('width');
|
139 |
$height = $element->getAttribute('height');
|
140 |
$attachment_id = attachment_url_to_postid($url);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
if ( empty( $images ) ) {
|
142 |
$images[] = $element;
|
143 |
}
|
138 |
$width = $element->getAttribute('width');
|
139 |
$height = $element->getAttribute('height');
|
140 |
$attachment_id = attachment_url_to_postid($url);
|
141 |
+
if($attachment_id==0){
|
142 |
+
$img_name = explode('/',$url);
|
143 |
+
$img_name = end($img_name);
|
144 |
+
$img_croped = explode('-',$img_name);
|
145 |
+
$img_croped = end($img_croped);
|
146 |
+
$filetype = wp_check_filetype($img_croped);
|
147 |
+
$img_ext = $filetype['ext'];
|
148 |
+
$new_img_url = str_replace("-$img_croped",".$img_ext",$url);
|
149 |
+
$attachment_id = attachment_url_to_postid($new_img_url);
|
150 |
+
}
|
151 |
if ( empty( $images ) ) {
|
152 |
$images[] = $element;
|
153 |
}
|
includes/vendor/amp/includes/sanitizers/class-amp-img-sanitizer.php
CHANGED
@@ -50,6 +50,24 @@ class AMP_Img_Sanitizer extends AMP_Base_Sanitizer {
|
|
50 |
$node->parentNode->removeChild( $node );
|
51 |
continue;
|
52 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
if( $node->getAttribute( 'src' )){
|
55 |
if (strpos($node->getAttribute( 'src' ), '../wp-content') !== false) {
|
50 |
$node->parentNode->removeChild( $node );
|
51 |
continue;
|
52 |
}
|
53 |
+
if ( ! is_numeric( $node->getAttribute( 'srcset' ) ) && true == ampforwp_get_setting('ampforwp-amp-img-lightbox')) {
|
54 |
+
if(!$node->getAttribute( 'srcset' )){
|
55 |
+
$image_src = $node->getAttribute( 'src' );
|
56 |
+
preg_match('/(.*-(\d{3}x\d{3}.))/', $image_src , $image_src_matches);
|
57 |
+
if($image_src_matches){
|
58 |
+
$img_name = explode('/',$image_src);
|
59 |
+
$img_name = end($img_name);
|
60 |
+
$img_croped = explode('-',$img_name);
|
61 |
+
$img_croped = end($img_croped);
|
62 |
+
$img_ext = wp_check_filetype($image_src);
|
63 |
+
$img_ext = $img_ext['ext'];
|
64 |
+
$new_img_url = str_replace("-$img_croped",".$img_ext",$image_src);
|
65 |
+
if ( $new_img_url ) {
|
66 |
+
$node->setAttribute( 'srcset', esc_url($new_img_url) );
|
67 |
+
}
|
68 |
+
}
|
69 |
+
}
|
70 |
+
}
|
71 |
|
72 |
if( $node->getAttribute( 'src' )){
|
73 |
if (strpos($node->getAttribute( 'src' ), '../wp-content') !== false) {
|
pagebuilder/modules/contents-module.php
CHANGED
@@ -21,7 +21,7 @@ function ampforwp_content_module_pagination($args, $fieldValues){
|
|
21 |
}
|
22 |
}
|
23 |
$output = '{{if_condition_content_layout_type==1}}
|
24 |
-
<div {{if_id}}id="{{id}}"{{ifend_id}} class="pb_mod
|
25 |
<div class="wrap"><ul>{{category_selection}}</ul></div>
|
26 |
{{pagination_links}}
|
27 |
</div>
|
@@ -32,32 +32,32 @@ function ampforwp_content_module_pagination($args, $fieldValues){
|
|
32 |
$frontCss = '
|
33 |
{{if_condition_content_layout_type==1}}
|
34 |
.wrap{width:100%;display:inline-block;margin-top:10px;}
|
35 |
-
.
|
36 |
-
.
|
37 |
-
.
|
38 |
-
.
|
39 |
-
.
|
40 |
-
.
|
41 |
-
.
|
42 |
-
.
|
43 |
-
.
|
44 |
-
.
|
45 |
font-size:13px;
|
46 |
color:#005be2;
|
47 |
}
|
48 |
-
.
|
49 |
color: black;
|
50 |
float: left;
|
51 |
padding: 8px 16px;
|
52 |
text-decoration: none;
|
53 |
transition: background-color .3s;
|
54 |
}
|
55 |
-
.
|
56 |
background-color: dodgerblue;
|
57 |
color: white;
|
58 |
}
|
59 |
-
.
|
60 |
-
.
|
61 |
width: 100%;
|
62 |
margin: 30px 0px 0px 0px;
|
63 |
display: flex;
|
@@ -66,20 +66,20 @@ function ampforwp_content_module_pagination($args, $fieldValues){
|
|
66 |
justify-content: center;
|
67 |
}
|
68 |
@media(max-width:768px){
|
69 |
-
.
|
70 |
-
.
|
71 |
-
.
|
72 |
-
.
|
73 |
}
|
74 |
@media(max-width:767px){
|
75 |
-
.
|
76 |
padding:5px 12px;
|
77 |
font-size:16px;
|
78 |
}
|
79 |
}
|
80 |
@media (max-width: 480px){
|
81 |
-
.
|
82 |
-
.
|
83 |
}
|
84 |
{{ifend_condition_content_layout_type_1}}
|
85 |
';
|
@@ -296,11 +296,11 @@ if ( is_admin() ) {
|
|
296 |
'front_loop_content'=>' {{if_condition_content_layout_type==1}}
|
297 |
<li>
|
298 |
|
299 |
-
<div class="
|
300 |
<a href="{{ampforwp_post_url}}">
|
301 |
{{if_image}}<amp-img class="ampforwp_wc_shortcode_img" src="{{image}}" width="{{width}}" height="{{height}}" layout="responsive" alt="{{image_alt}}"> </amp-img>{{ifend_image}}</a>
|
302 |
</div>
|
303 |
-
<div class="
|
304 |
<a href="{{ampforwp_post_url}}">{{title}}</a>
|
305 |
{{excerptContent}}
|
306 |
{{loopdate}}
|
@@ -504,7 +504,7 @@ if ( is_admin() ) {
|
|
504 |
}else{
|
505 |
$paged = 1;
|
506 |
}
|
507 |
-
$pagination_links .= '<div class="
|
508 |
if( $paged > 1){
|
509 |
|
510 |
$first_page = add_query_arg( array( $pagination_text => 1 ), $queryUrl );
|
21 |
}
|
22 |
}
|
23 |
$output = '{{if_condition_content_layout_type==1}}
|
24 |
+
<div {{if_id}}id="{{id}}"{{ifend_id}} class="pb_mod cm {{user_class}}"><h4>{{content_title}}</h4>
|
25 |
<div class="wrap"><ul>{{category_selection}}</ul></div>
|
26 |
{{pagination_links}}
|
27 |
</div>
|
32 |
$frontCss = '
|
33 |
{{if_condition_content_layout_type==1}}
|
34 |
.wrap{width:100%;display:inline-block;margin-top:10px;}
|
35 |
+
.cm ul{display: flex;flex-wrap: wrap;margin: -15px;padding:0;list-style-type:none;}
|
36 |
+
.cm ul li {margin: 15px 15px 25px 15px;flex-basis: calc(33.33% - 30px);}
|
37 |
+
.cm .cml{line-height:0;}
|
38 |
+
.cm {margin:{{margin_css}};padding:{{padding_css}};}
|
39 |
+
.cm h4{border-bottom: 2px solid #eee;padding-bottom: 8px;margin-bottom: 5px;font-size:18px;color: #191919;font-weight: 600;}
|
40 |
+
.cm .cmr{display:flex;flex-direction: column;margin-top: 6px;}
|
41 |
+
.cm .cmr a{font-size: 16px;line-height: 1.3;font-weight: 500;color: #000;margin: 0px 0px 5px 0px;}
|
42 |
+
.cm .cmr p{color: {{text_color_picker}};font-size: 13px;line-height: 20px;letter-spacing: 0.10px;margin-bottom:0;}
|
43 |
+
.cm .cml{width:100%;}
|
44 |
+
.cm .cmr p a{
|
45 |
font-size:13px;
|
46 |
color:#005be2;
|
47 |
}
|
48 |
+
.cmp a {
|
49 |
color: black;
|
50 |
float: left;
|
51 |
padding: 8px 16px;
|
52 |
text-decoration: none;
|
53 |
transition: background-color .3s;
|
54 |
}
|
55 |
+
.cmp a.active {
|
56 |
background-color: dodgerblue;
|
57 |
color: white;
|
58 |
}
|
59 |
+
.cmp a:hover:not(.active) {background-color: #ddd;}
|
60 |
+
.cmp{
|
61 |
width: 100%;
|
62 |
margin: 30px 0px 0px 0px;
|
63 |
display: flex;
|
66 |
justify-content: center;
|
67 |
}
|
68 |
@media(max-width:768px){
|
69 |
+
.cm ul li {flex-basis: calc(100% - 30px);margin: 10px 15px;}
|
70 |
+
.cml amp-img{width:100%;}
|
71 |
+
.cm .cml{width: 40%;float: left;margin-right: 20px;}
|
72 |
+
.cm .cmr{width: 54%;float: left;margin-top: 0;}
|
73 |
}
|
74 |
@media(max-width:767px){
|
75 |
+
.cmp a{
|
76 |
padding:5px 12px;
|
77 |
font-size:16px;
|
78 |
}
|
79 |
}
|
80 |
@media (max-width: 480px){
|
81 |
+
.cm .cml{width: 100%;float: none;margin-right: 0px;}
|
82 |
+
.cm .cmr{width: 100%;float: none;margin-top:6px;}
|
83 |
}
|
84 |
{{ifend_condition_content_layout_type_1}}
|
85 |
';
|
296 |
'front_loop_content'=>' {{if_condition_content_layout_type==1}}
|
297 |
<li>
|
298 |
|
299 |
+
<div class="cml">
|
300 |
<a href="{{ampforwp_post_url}}">
|
301 |
{{if_image}}<amp-img class="ampforwp_wc_shortcode_img" src="{{image}}" width="{{width}}" height="{{height}}" layout="responsive" alt="{{image_alt}}"> </amp-img>{{ifend_image}}</a>
|
302 |
</div>
|
303 |
+
<div class="cmr">
|
304 |
<a href="{{ampforwp_post_url}}">{{title}}</a>
|
305 |
{{excerptContent}}
|
306 |
{{loopdate}}
|
504 |
}else{
|
505 |
$paged = 1;
|
506 |
}
|
507 |
+
$pagination_links .= '<div class="cmp">';
|
508 |
if( $paged > 1){
|
509 |
|
510 |
$first_page = add_query_arg( array( $pagination_text => 1 ), $queryUrl );
|
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.2.3
|
7 |
-
Stable tag: 0.9.98.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,6 +191,21 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
= 0.9.98.9 (16th SEPTEMBER 2019) =
|
195 |
|
196 |
* Improvements: Need to implement Tree Shaking feature to remove access css from the AMP pages #2949
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.2.3
|
7 |
+
Stable tag: 0.9.98.10
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 0.9.98.10 (18th SEPTEMBER 2019) =
|
195 |
+
|
196 |
+
* Improvements: Upgrade the analtyics integration with gtag.js #3538
|
197 |
+
* Improvements: Need to optimize css classes #3650
|
198 |
+
* Fixed: Small sized images are getting stretched in the lightbox. #3602
|
199 |
+
* Fixed: Gutenberg Audio Module not working #3597
|
200 |
+
* Fixed: Table (thead-th) styling issue after update #3661
|
201 |
+
* Fixed: Issue with the post titles in single page (two H2 tags if logo is not inserted) #3641
|
202 |
+
* Fixed: search results pages are showing up as 'no index' #3646
|
203 |
+
* Fixed: Need to add support of shortcode in category pages #3653
|
204 |
+
* Fixed: Custom post description migrates to image description #3606
|
205 |
+
* Fixed: AMP for WP conflict with the CDN Enabler plugin #3631
|
206 |
+
* Fixed: Warning in Error Log #3655
|
207 |
+
* Fixed: Incorrect placeholder "Select the SEO Plugin" in drop-down in AMP option Panel #3663
|
208 |
+
|
209 |
= 0.9.98.9 (16th SEPTEMBER 2019) =
|
210 |
|
211 |
* Improvements: Need to implement Tree Shaking feature to remove access css from the AMP pages #2949
|
templates/design-manager/design-1/archive.php
CHANGED
@@ -77,7 +77,7 @@ global $redux_builder_amp, $wp; ?>
|
|
77 |
}
|
78 |
if($paged <= '1') {?>
|
79 |
<div class="amp-wp-content taxonomy-description">
|
80 |
-
<?php echo $arch_desc;// amphtml content, no kses ?>
|
81 |
</div> <?php
|
82 |
}
|
83 |
}
|
77 |
}
|
78 |
if($paged <= '1') {?>
|
79 |
<div class="amp-wp-content taxonomy-description">
|
80 |
+
<?php echo do_shortcode($arch_desc);// amphtml content, no kses ?>
|
81 |
</div> <?php
|
82 |
}
|
83 |
}
|
templates/design-manager/design-1/search.php
CHANGED
@@ -4,7 +4,8 @@
|
|
4 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
5 |
<head>
|
6 |
<meta charset="utf-8">
|
7 |
-
|
|
|
8 |
<link rel="dns-prefetch" href="https://cdn.ampproject.org">
|
9 |
<?php $paged = get_query_var( 'paged' );
|
10 |
$current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
|
4 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
5 |
<head>
|
6 |
<meta charset="utf-8">
|
7 |
+
<?php if(is_search() && false == ampforwp_get_setting('amp-inspection-tool') && false == ampforwp_get_setting('ampforwp-robots-search-pages')){?>
|
8 |
+
<meta name="robots" content="noindex,nofollow"/><?php } ?>
|
9 |
<link rel="dns-prefetch" href="https://cdn.ampproject.org">
|
10 |
<?php $paged = get_query_var( 'paged' );
|
11 |
$current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
|
templates/design-manager/design-1/style.php
CHANGED
@@ -340,7 +340,7 @@ table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, le
|
|
340 |
.amp-wp-header .ampforwp-search-nav-wrapper{ padding: 0; }
|
341 |
.ampforwp-search-nav-wrapper .searchmenu{ margin-top: 20px; }
|
342 |
.headerlogo a, [class*=icono-]{ top:0; }
|
343 |
-
.amp-logo
|
344 |
.amp-logo{display:inline-block}
|
345 |
.amp-wp-header a, .headerlogo a, [class*=icono-] {color: <?php echo sanitize_hex_color( $header_elements_clr ); ?>;text-decoration: none;}
|
346 |
@media screen and (min-width: 650px) { table {display: inline-table;} }
|
340 |
.amp-wp-header .ampforwp-search-nav-wrapper{ padding: 0; }
|
341 |
.ampforwp-search-nav-wrapper .searchmenu{ margin-top: 20px; }
|
342 |
.headerlogo a, [class*=icono-]{ top:0; }
|
343 |
+
.amp-logo h1{font-size: 1em; font-weight: 400; line-height: 1.75em; margin: 0;}
|
344 |
.amp-logo{display:inline-block}
|
345 |
.amp-wp-header a, .headerlogo a, [class*=icono-] {color: <?php echo sanitize_hex_color( $header_elements_clr ); ?>;text-decoration: none;}
|
346 |
@media screen and (min-width: 650px) { table {display: inline-table;} }
|
templates/design-manager/design-2/archive.php
CHANGED
@@ -79,7 +79,7 @@
|
|
79 |
}
|
80 |
if($paged <= '1') {?>
|
81 |
<div class="amp-wp-content taxonomy-description">
|
82 |
-
<?php echo $arch_desc;// amphtml content,
|
83 |
</div> <?php
|
84 |
}
|
85 |
}
|
79 |
}
|
80 |
if($paged <= '1') {?>
|
81 |
<div class="amp-wp-content taxonomy-description">
|
82 |
+
<?php echo do_shortcode($arch_desc);// amphtml content, no kses ?>
|
83 |
</div> <?php
|
84 |
}
|
85 |
}
|
templates/design-manager/design-2/search.php
CHANGED
@@ -4,7 +4,8 @@
|
|
4 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
5 |
<head>
|
6 |
<meta charset="utf-8">
|
7 |
-
|
|
|
8 |
<link rel="dns-prefetch" href="https://cdn.ampproject.org">
|
9 |
<?php $paged = get_query_var( 'paged' );
|
10 |
$current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
|
4 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
5 |
<head>
|
6 |
<meta charset="utf-8">
|
7 |
+
<?php if(is_search() && false == ampforwp_get_setting('amp-inspection-tool') && false == ampforwp_get_setting('ampforwp-robots-search-pages')){?>
|
8 |
+
<meta name="robots" content="noindex,nofollow"/><?php } ?>
|
9 |
<link rel="dns-prefetch" href="https://cdn.ampproject.org">
|
10 |
<?php $paged = get_query_var( 'paged' );
|
11 |
$current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
|
templates/design-manager/design-2/style.php
CHANGED
@@ -218,7 +218,7 @@ amp-social-share[type="facebookmessenger"] {
|
|
218 |
/* Header */
|
219 |
header.container{line-height: 0;}
|
220 |
#header{ background: #fff; text-align: center;padding:17px 0px 17px 0px;display: inline-block;width: 100%;position:relative}
|
221 |
-
#header
|
222 |
.amp-logo{left: 0;right: 0;display:inline-block}
|
223 |
.amp-logo amp-img{ margin: 15px 0px 10px 0px; }
|
224 |
.amp-logo amp-img{margin: 0 auto;}
|
218 |
/* Header */
|
219 |
header.container{line-height: 0;}
|
220 |
#header{ background: #fff; text-align: center;padding:17px 0px 17px 0px;display: inline-block;width: 100%;position:relative}
|
221 |
+
#header h1{ text-align: center; font-size: 20px; font-weight: bold; line-height: 1; padding: 4px 3px; margin: 0; }
|
222 |
.amp-logo{left: 0;right: 0;display:inline-block}
|
223 |
.amp-logo amp-img{ margin: 15px 0px 10px 0px; }
|
224 |
.amp-logo amp-img{margin: 0 auto;}
|
templates/design-manager/design-3/archive.php
CHANGED
@@ -96,7 +96,7 @@ if ( get_query_var( 'paged' ) ) {
|
|
96 |
if( $arch_desc ) {
|
97 |
if($paged <= '1') {?>
|
98 |
<div class="taxonomy-description">
|
99 |
-
<?php echo $arch_desc;// amphtml content, no kses ?>
|
100 |
</div>
|
101 |
</div> <?php
|
102 |
}
|
96 |
if( $arch_desc ) {
|
97 |
if($paged <= '1') {?>
|
98 |
<div class="taxonomy-description">
|
99 |
+
<?php echo do_shortcode($arch_desc);// amphtml content, no kses ?>
|
100 |
</div>
|
101 |
</div> <?php
|
102 |
}
|
templates/design-manager/design-3/search.php
CHANGED
@@ -4,7 +4,8 @@
|
|
4 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
5 |
<head>
|
6 |
<meta charset="utf-8">
|
7 |
-
|
|
|
8 |
<link rel="dns-prefetch" href="https://cdn.ampproject.org">
|
9 |
<?php $paged = get_query_var( 'paged' );
|
10 |
$current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
|
4 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
5 |
<head>
|
6 |
<meta charset="utf-8">
|
7 |
+
<?php if(is_search() && false == ampforwp_get_setting('amp-inspection-tool') && false == ampforwp_get_setting('ampforwp-robots-search-pages')){?>
|
8 |
+
<meta name="robots" content="noindex,nofollow"/><?php } ?>
|
9 |
<link rel="dns-prefetch" href="https://cdn.ampproject.org">
|
10 |
<?php $paged = get_query_var( 'paged' );
|
11 |
$current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
|
templates/design-manager/design-3/style.php
CHANGED
@@ -191,7 +191,7 @@ header{ padding-bottom:50px; }
|
|
191 |
header{ padding-bottom:0px; }
|
192 |
#headerwrap{ position: relative;}
|
193 |
<?php } ?>
|
194 |
-
#header
|
195 |
<?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
196 |
main .amp-wp-content{ font-size: 18px; line-height: 29px; color:#111 }
|
197 |
.amp-wp-meta.amp-meta-wrapper{list-style-type:none;}
|
191 |
header{ padding-bottom:0px; }
|
192 |
#headerwrap{ position: relative;}
|
193 |
<?php } ?>
|
194 |
+
#header h1{ text-align: center; font-size: 16px; position: relative; font-weight: bold; line-height: 50px; padding: 0; margin: 0; text-transform: uppercase }
|
195 |
<?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
|
196 |
main .amp-wp-content{ font-size: 18px; line-height: 29px; color:#111 }
|
197 |
.amp-wp-meta.amp-meta-wrapper{list-style-type:none;}
|
templates/design-manager/swift/style.php
CHANGED
@@ -202,7 +202,7 @@ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
|
|
202 |
<?php } ?>
|
203 |
line-height: 0;display: block;text-indent: 1px;
|
204 |
<?php if($redux_builder_amp['swift-element-overlay-color-control'] ['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?> }
|
205 |
-
.lb-t:target {opacity: 1;top: 0;bottom: 0;left:0;z-index:
|
206 |
.lb-t:target img {max-height: 100%;max-width: 100%;}
|
207 |
.lb-t:target a.lb-x {top: 25px;}
|
208 |
.lb img{cursor:pointer;}
|
@@ -559,7 +559,7 @@ table {
|
|
559 |
overflow-x: auto;
|
560 |
word-break: normal;
|
561 |
}
|
562 |
-
.artl-cnt table{ margin: 0 auto; text-align: center; width: 100%; display: inline-
|
563 |
p.nocomments {padding: 10px;color: #fff;}
|
564 |
<?php if($redux_builder_amp['single-new-features'] && $redux_builder_amp['ampforwp-underline-content-links']){ ?>
|
565 |
.artl-cnt a{
|
202 |
<?php } ?>
|
203 |
line-height: 0;display: block;text-indent: 1px;
|
204 |
<?php if($redux_builder_amp['swift-element-overlay-color-control'] ['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?> }
|
205 |
+
.lb-t:target {opacity: 1;top: 0;bottom: 0;left:0;z-index:2;}
|
206 |
.lb-t:target img {max-height: 100%;max-width: 100%;}
|
207 |
.lb-t:target a.lb-x {top: 25px;}
|
208 |
.lb img{cursor:pointer;}
|
559 |
overflow-x: auto;
|
560 |
word-break: normal;
|
561 |
}
|
562 |
+
.artl-cnt table{ margin: 0 auto; text-align: center; width: 100%; display: inline-table; }
|
563 |
p.nocomments {padding: 10px;color: #fff;}
|
564 |
<?php if($redux_builder_amp['single-new-features'] && $redux_builder_amp['ampforwp-underline-content-links']){ ?>
|
565 |
.artl-cnt a{
|
templates/features.php
CHANGED
@@ -4671,10 +4671,11 @@ function ampforwp_add_related_post_after_paragraph($matches)
|
|
4671 |
// Add extra key=>value pair into the attachment array
|
4672 |
add_filter('amp_gallery_image_params','ampforwp_gallery_new_params', 10, 2);
|
4673 |
function ampforwp_gallery_new_params($urls, $attachment_id ){
|
4674 |
-
$img_caption = $
|
4675 |
-
$new_urls = array();
|
4676 |
-
$
|
4677 |
-
|
|
|
4678 |
$captext = $img_caption;
|
4679 |
if($captext==""){
|
4680 |
$captext = get_post( $attachment_id)->post_excerpt;
|
@@ -6200,9 +6201,9 @@ function ampforwp_thrive_architect_content(){
|
|
6200 |
if ( function_exists( 'ampforwp_is_amp_inURL' ) && ampforwp_is_amp_inURL($url_path) ) {
|
6201 |
//#3254 Remove action for Woodmart theme lazyload feature
|
6202 |
remove_action( 'init', 'woodmart_lazy_loading_init', 120 );
|
6203 |
-
|
6204 |
-
|
6205 |
-
|
6206 |
}
|
6207 |
}
|
6208 |
|
4671 |
// Add extra key=>value pair into the attachment array
|
4672 |
add_filter('amp_gallery_image_params','ampforwp_gallery_new_params', 10, 2);
|
4673 |
function ampforwp_gallery_new_params($urls, $attachment_id ){
|
4674 |
+
$img_caption = $captext = '';
|
4675 |
+
$new_urls = $caption = array();
|
4676 |
+
if(isset($urls['caption']) && $urls['caption'] ){
|
4677 |
+
$img_caption = $urls['caption'];
|
4678 |
+
}
|
4679 |
$captext = $img_caption;
|
4680 |
if($captext==""){
|
4681 |
$captext = get_post( $attachment_id)->post_excerpt;
|
6201 |
if ( function_exists( 'ampforwp_is_amp_inURL' ) && ampforwp_is_amp_inURL($url_path) ) {
|
6202 |
//#3254 Remove action for Woodmart theme lazyload feature
|
6203 |
remove_action( 'init', 'woodmart_lazy_loading_init', 120 );
|
6204 |
+
if( class_exists('CDN_Enabler')){
|
6205 |
+
add_filter('option_cdn_enabler', 'ampforwp_add_exclusions_cdn_enabler');
|
6206 |
+
}
|
6207 |
}
|
6208 |
}
|
6209 |
|