Version Description
(19th April 2021) = * Improvements: Added an option to preserve original permalinks in mobile redirection #4207 * Improvements: Added an option to add moderation tool for the Facebook comments #4485 * Improvements: Added an option to make buttons side by side in the mobile with AMP pagebuilder #4472 * Improvements: Added an option to add UTM souce parameters in URLs to both related & incontent related posts #4237 * Improvements: Added Quantcast CMP (consent management platform) support in AMP 4951 * Fixed: Alt tag not appearing in sticky social sharing icons #4984 * Fixed: Debug Warning in edit tag page when using PHP8 #4990
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.76.13 |
Comparing to | |
See all releases |
Code changes from version 1.0.76.12 to 1.0.76.13
- README.md +10 -23
- accelerated-moblie-pages.php +2 -2
- changelog.txt +9 -0
- components/components-core.php +18 -0
- components/loop/loop.php +3 -0
- components/post-pagination/post-pagination.php +5 -1
- components/related-posts/related-posts.php +2 -0
- components/search/search.php +5 -1
- includes/features/functions.php +5 -1
- includes/features/notice-bar/notice-bar-options.php +48 -0
- includes/options/admin-config.php +74 -2
- includes/redirect.php +5 -2
- pagebuilder/amp-page-builder.php +5 -1
- pagebuilder/config/moduleTemplate.php +19 -2
- pagebuilder/inc/viewShowFrontData.php +1 -0
- pagebuilder/modules/contents-module.php +5 -2
- readme.txt +10 -23
- templates/design-manager/design-1/elements/related-posts.php +2 -1
- templates/design-manager/design-2/elements/related-posts.php +4 -2
- templates/design-manager/design-3/elements/related-posts.php +3 -1
- templates/design-manager/swift/footer.php +18 -18
- templates/features.php +183 -13
- templates/search-functions.php +5 -1
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.76.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -193,6 +193,15 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
= 1.0.76.12(14th April 2021) =
|
197 |
* Fixed: Fatal error occuring with the recent update Version 1.0.76.11 #4986
|
198 |
|
@@ -205,26 +214,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
205 |
* Fixed: AMP menu automatically scrolls down to bottom in Design three #4967
|
206 |
* Fixed: Deprecated Filters Detected Warning in All in one SEO plugin #4980
|
207 |
|
208 |
-
= 1.0.76.10 (9th April 2021) =
|
209 |
-
* Improvements: Added the Compatibility with the Schema Pro FAQ #4956
|
210 |
-
* Improvements: Added the feature to track each author contribution to the website pageview #4952
|
211 |
-
* Improvements: Added an option to show published date and time below the title #4976
|
212 |
-
* Improvements: Added an option to automatic redirect AMP to non-amp when access through desktop #4975
|
213 |
-
* Improvements: Added the Compatibility for Add Widget After Content plugin #4949
|
214 |
-
* Improvements: Added Forminator for AMP Extension #4965
|
215 |
-
* Fixed: Search Close Button is hidden for the Google Cached AMP Pages #4977
|
216 |
-
* Fixed: Image is not showing when the post is shared on social network #4971
|
217 |
-
|
218 |
-
= 1.0.76.9 (2nd April 2021) =
|
219 |
-
* Fixed: Facebook videos embedding not working #4973
|
220 |
-
* Fixed: The incorrect excerpt for the custom front page if user is using the Divi #4972
|
221 |
-
* Fixed: When Yoast SEO Multilingual is activated canonical getting addition http #4970
|
222 |
-
* Fixed: Close button not visible in the menu for the Google Cached AMP Pages #4969
|
223 |
-
* Fixed: Sassy social share icons are not displaying on AMP #4945
|
224 |
-
* Fixed: The AMP For WP option panel not saving due to redux plugin #4963
|
225 |
-
* Fixed: Docking functionality is not working for the amp-video type in mobile view #4961
|
226 |
-
* Fixed: Cannot change the title for in-content related post #4959
|
227 |
-
* Fixed: Upgrade for Free' button in structured data settings is not working #4960
|
228 |
-
* Fixed: Beginner and advance mode popup not closing #4974
|
229 |
-
|
230 |
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.76.13
|
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.76.13 (19th April 2021) =
|
197 |
+
* Improvements: Added an option to preserve original permalinks in mobile redirection #4207
|
198 |
+
* Improvements: Added an option to add moderation tool for the Facebook comments #4485
|
199 |
+
* Improvements: Added an option to make buttons side by side in the mobile with AMP pagebuilder #4472
|
200 |
+
* Improvements: Added an option to add UTM souce parameters in URLs to both related & incontent related posts #4237
|
201 |
+
* Improvements: Added Quantcast CMP (consent management platform) support in AMP 4951
|
202 |
+
* Fixed: Alt tag not appearing in sticky social sharing icons #4984
|
203 |
+
* Fixed: Debug Warning in edit tag page when using PHP8 #4990
|
204 |
+
|
205 |
= 1.0.76.12(14th April 2021) =
|
206 |
* Fixed: Fatal error occuring with the recent update Version 1.0.76.11 #4986
|
207 |
|
214 |
* Fixed: AMP menu automatically scrolls down to bottom in Design three #4967
|
215 |
* Fixed: Deprecated Filters Detected Warning in All in one SEO plugin #4980
|
216 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
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.76.
|
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.76.
|
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.76.13
|
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.76.13');
|
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,14 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.76.12 (14th April 2021) =
|
4 |
* Fixed: Fatal error occuring with the recent update Version 1.0.76.11 #4986
|
5 |
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.76.13 (19th April 2021) =
|
4 |
+
* Improvements: Added an option to preserve original permalinks in mobile redirection #4207
|
5 |
+
* Improvements: Added an option to add moderation tool for the Facebook comments #4485
|
6 |
+
* Improvements: Added an option to make buttons side by side in the mobile with AMP pagebuilder #4472
|
7 |
+
* Improvements: Added an option to add UTM souce parameters in URLs to both related & incontent related posts #4237
|
8 |
+
* Improvements: Added Quantcast CMP (consent management platform) support in AMP 4951
|
9 |
+
* Fixed: Alt tag not appearing in sticky social sharing icons #4984
|
10 |
+
* Fixed: Debug Warning in edit tag page when using PHP8 #4990
|
11 |
+
|
12 |
= 1.0.76.12 (14th April 2021) =
|
13 |
* Fixed: Fatal error occuring with the recent update Version 1.0.76.11 #4986
|
14 |
|
components/components-core.php
CHANGED
@@ -769,6 +769,24 @@ function ampforwp_backtotop_global_css(){?>
|
|
769 |
margin-bottom: 20px;
|
770 |
}
|
771 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
772 |
<?php if( true == ampforwp_get_setting('ampforwp-footer-top') ) { ?>
|
773 |
.btt{
|
774 |
position: fixed;
|
769 |
margin-bottom: 20px;
|
770 |
}
|
771 |
<?php } ?>
|
772 |
+
<?php if (ampforwp_get_setting('amp-quantcast-notice-switch')) {?>
|
773 |
+
#postPromptUI button {
|
774 |
+
background: #368bd6;
|
775 |
+
color: white;
|
776 |
+
padding: 5px 15px;
|
777 |
+
border: none;
|
778 |
+
outline: none;
|
779 |
+
display: flex;
|
780 |
+
align-items: center;
|
781 |
+
position: fixed;
|
782 |
+
right: 0;
|
783 |
+
bottom: 0;
|
784 |
+
border-radius: 3px 0 0 3px;
|
785 |
+
max-height: 30px;
|
786 |
+
max-width: 110px;
|
787 |
+
cursor: pointer;
|
788 |
+
}
|
789 |
+
<?php } ?>
|
790 |
<?php if( true == ampforwp_get_setting('ampforwp-footer-top') ) { ?>
|
791 |
.btt{
|
792 |
position: fixed;
|
components/loop/loop.php
CHANGED
@@ -531,6 +531,9 @@ function amp_loop_image( $data=array() ) {
|
|
531 |
$thumb_width = $width / $resolution;
|
532 |
$thumb_height = $height / $resolution;
|
533 |
}
|
|
|
|
|
|
|
534 |
echo '<'.esc_attr($tag).' class="loop-img '.esc_attr($tag_class).'">';
|
535 |
echo '<a href="'.esc_url($imageLink).'" title="'.esc_html(get_the_title()).'">';
|
536 |
$img_content = '<amp-img src="'. esc_url($thumb_url) .'" width="'.esc_attr($thumb_width).'" height="'.esc_attr($thumb_height).'" '. esc_attr($layout_responsive) .' class="'.esc_attr($imageClass).'" alt="'. esc_html(get_the_title()) .'"></amp-img>';
|
531 |
$thumb_width = $width / $resolution;
|
532 |
$thumb_height = $height / $resolution;
|
533 |
}
|
534 |
+
if(isset($data['referer']) && $data['referer']=='related_post'){
|
535 |
+
$imageLink = ampforwp_modify_url_utm_params($imageLink);
|
536 |
+
}
|
537 |
echo '<'.esc_attr($tag).' class="loop-img '.esc_attr($tag_class).'">';
|
538 |
echo '<a href="'.esc_url($imageLink).'" title="'.esc_html(get_the_title()).'">';
|
539 |
$img_content = '<amp-img src="'. esc_url($thumb_url) .'" width="'.esc_attr($thumb_width).'" height="'.esc_attr($thumb_height).'" '. esc_attr($layout_responsive) .' class="'.esc_attr($imageClass).'" alt="'. esc_html(get_the_title()) .'"></amp-img>';
|
components/post-pagination/post-pagination.php
CHANGED
@@ -126,7 +126,11 @@ function ampforwp_framework_get_post_paginated_link( $i, $args = '' ) {
|
|
126 |
|
127 |
add_filter('ampforwp_modify_rel_canonical','amp_paginated_post_modify_amphtml');
|
128 |
function amp_paginated_post_modify_amphtml($url) {
|
129 |
-
|
|
|
|
|
|
|
|
|
130 |
$post_paginated_page='';
|
131 |
$post_paginated_page = get_query_var('page');
|
132 |
if($post_paginated_page){
|
126 |
|
127 |
add_filter('ampforwp_modify_rel_canonical','amp_paginated_post_modify_amphtml');
|
128 |
function amp_paginated_post_modify_amphtml($url) {
|
129 |
+
$mob_pres_link = false;
|
130 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
131 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
132 |
+
}
|
133 |
+
if( is_single() && (false == ampforwp_get_setting('ampforwp-amp-takeover') && $mob_pres_link == false )){
|
134 |
$post_paginated_page='';
|
135 |
$post_paginated_page = get_query_var('page');
|
136 |
if($post_paginated_page){
|
components/related-posts/related-posts.php
CHANGED
@@ -132,6 +132,7 @@ function ampforwp_get_relatedpost_image( $imagetype ='thumbnail', $data=array()
|
|
132 |
$related_post_permalink = get_permalink();
|
133 |
}
|
134 |
$show_image = (isset($data['show_image']) ? $data['show_image'] : true);
|
|
|
135 |
?>
|
136 |
<a href="<?php echo esc_url( $related_post_permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
|
137 |
<?php
|
@@ -186,6 +187,7 @@ function ampforwp_get_relatedpost_content($argsdata=array()){
|
|
186 |
global $redux_builder_amp;
|
187 |
$title = get_the_title();
|
188 |
$related_post_permalink = ampforwp_url_controller( get_permalink() );
|
|
|
189 |
if ( ampforwp_get_setting('ampforwp-single-related-posts-link') ) {
|
190 |
$related_post_permalink = get_permalink();
|
191 |
if ( ampforwp_get_setting('amp-mobile-redirection') ) {
|
132 |
$related_post_permalink = get_permalink();
|
133 |
}
|
134 |
$show_image = (isset($data['show_image']) ? $data['show_image'] : true);
|
135 |
+
$related_post_permalink = ampforwp_modify_url_utm_params($related_post_permalink);
|
136 |
?>
|
137 |
<a href="<?php echo esc_url( $related_post_permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
|
138 |
<?php
|
187 |
global $redux_builder_amp;
|
188 |
$title = get_the_title();
|
189 |
$related_post_permalink = ampforwp_url_controller( get_permalink() );
|
190 |
+
$related_post_permalink = ampforwp_modify_url_utm_params($related_post_permalink);
|
191 |
if ( ampforwp_get_setting('ampforwp-single-related-posts-link') ) {
|
192 |
$related_post_permalink = get_permalink();
|
193 |
if ( ampforwp_get_setting('amp-mobile-redirection') ) {
|
components/search/search.php
CHANGED
@@ -16,7 +16,11 @@ function ampforwp_framework_get_search_form() {
|
|
16 |
$placeholder = pll__(esc_html__( ampforwp_get_setting('ampforwp-search-placeholder'), 'accelerated-mobile-pages'));
|
17 |
}
|
18 |
$rand = rand(10,100);
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
$amp_query_variable = 'amp';
|
21 |
$amp_query_variable_val = '1';
|
22 |
}
|
16 |
$placeholder = pll__(esc_html__( ampforwp_get_setting('ampforwp-search-placeholder'), 'accelerated-mobile-pages'));
|
17 |
}
|
18 |
$rand = rand(10,100);
|
19 |
+
$mob_pres_link = false;
|
20 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
21 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
22 |
+
}
|
23 |
+
if (ampforwp_get_setting('ampforwp-amp-takeover') == false && $mob_pres_link == false) {
|
24 |
$amp_query_variable = 'amp';
|
25 |
$amp_query_variable_val = '1';
|
26 |
}
|
includes/features/functions.php
CHANGED
@@ -826,7 +826,11 @@ function ampforwp_url_controller( $url, $nonamp = '' ) {
|
|
826 |
}
|
827 |
$new_url = "";
|
828 |
$get_permalink_structure = "";
|
829 |
-
|
|
|
|
|
|
|
|
|
830 |
$nonamp = 'nonamp';
|
831 |
}
|
832 |
if ( isset($nonamp) && 'nonamp' == $nonamp ) {
|
826 |
}
|
827 |
$new_url = "";
|
828 |
$get_permalink_structure = "";
|
829 |
+
$mob_pres_link = false;
|
830 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
831 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
832 |
+
}
|
833 |
+
if ( ampforwp_amp_nonamp_convert("", "check") || ($mob_pres_link == true || true == ampforwp_get_setting('ampforwp-amp-takeover'))) {
|
834 |
$nonamp = 'nonamp';
|
835 |
}
|
836 |
if ( isset($nonamp) && 'nonamp' == $nonamp ) {
|
includes/features/notice-bar/notice-bar-options.php
CHANGED
@@ -210,6 +210,54 @@ function ampforwp_notice_bar_options($opt_name){
|
|
210 |
'title' => esc_html__('Privacy Page Button Text', 'accelerated-mobile-pages'),
|
211 |
'default' => 'Click Here',
|
212 |
'required' => array('amp-gdpr-compliance-switch', '=' , '1'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
),
|
214 |
array(
|
215 |
'class' => 'amp-popup-fld',
|
210 |
'title' => esc_html__('Privacy Page Button Text', 'accelerated-mobile-pages'),
|
211 |
'default' => 'Click Here',
|
212 |
'required' => array('amp-gdpr-compliance-switch', '=' , '1'),
|
213 |
+
),
|
214 |
+
array(
|
215 |
+
'id' => 'ampforwp-notice-quantcast',
|
216 |
+
'type' => 'section',
|
217 |
+
'title' => esc_html__('Quantcast Notice Bar in AMP', 'accelerated-mobile-pages'),
|
218 |
+
'indent' => true,
|
219 |
+
'layout_type' => 'accordion',
|
220 |
+
'accordion-open'=> 1,
|
221 |
+
),
|
222 |
+
array(
|
223 |
+
'id' =>'amp-quantcast-notice-switch',
|
224 |
+
'type' => 'switch',
|
225 |
+
'title' => esc_html__('Quantcast Notice Bar', 'accelerated-mobile-pages'),
|
226 |
+
'default' => 0,
|
227 |
+
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
|
228 |
+
esc_html__('Enable this option to add quantcast notice bar in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-quantcast-notice-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
|
229 |
+
),
|
230 |
+
array(
|
231 |
+
'class' => 'child_opt',
|
232 |
+
'id' =>'amp-quantcast-id',
|
233 |
+
'type' => 'text',
|
234 |
+
'title' => esc_html__('Account Id', 'accelerated-mobile-pages'),
|
235 |
+
'placeholder'=> 'Quantcast Account Id',
|
236 |
+
'required' => array('amp-quantcast-notice-switch', '=' , '1'),
|
237 |
+
),
|
238 |
+
array(
|
239 |
+
'class' => 'child_opt',
|
240 |
+
'id' =>'amp-quantcast-hashcode',
|
241 |
+
'type' => 'text',
|
242 |
+
'title' => esc_html__('Hash Code', 'accelerated-mobile-pages'),
|
243 |
+
'placeholder'=> '3BDXDqoakCk4Q4LzQqBGVQ',
|
244 |
+
'required' => array('amp-quantcast-notice-switch', '=' , '1'),
|
245 |
+
),
|
246 |
+
array(
|
247 |
+
'class' => 'child_opt',
|
248 |
+
'id' =>'amp-quantcast-publishercountrycode',
|
249 |
+
'type' => 'text',
|
250 |
+
'title' => esc_html__('Publisher Country Code', 'accelerated-mobile-pages'),
|
251 |
+
'placeholder'=> 'US',
|
252 |
+
'required' => array('amp-quantcast-notice-switch', '=' , '1'),
|
253 |
+
),
|
254 |
+
array(
|
255 |
+
'class' => 'child_opt',
|
256 |
+
'id' =>'amp-quantcast-publishername',
|
257 |
+
'type' => 'text',
|
258 |
+
'title' => esc_html__('Publisher Name', 'accelerated-mobile-pages'),
|
259 |
+
'placeholder'=> 'TestMeOut',
|
260 |
+
'required' => array('amp-quantcast-notice-switch', '=' , '1'),
|
261 |
),
|
262 |
array(
|
263 |
'class' => 'amp-popup-fld',
|
includes/options/admin-config.php
CHANGED
@@ -2486,6 +2486,31 @@ function ampforwp_get_all_tags($id){
|
|
2486 |
'tooltip-subtitle' => esc_html__('Enable/Disable Facebook comments using this switch.', 'accelerated-mobile-pages'),
|
2487 |
'default' => 0,
|
2488 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2489 |
array(
|
2490 |
'class' => 'child_opt child_opt_arrow',
|
2491 |
'id' => 'ampforwp-facebook-comments-title',
|
@@ -2910,12 +2935,21 @@ Redux::setSection( $opt_name, array(
|
|
2910 |
'default' => 0,
|
2911 |
|
2912 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2913 |
array(
|
2914 |
'id' => 'amp-tablet-redirection',
|
2915 |
'class' => 'child_opt child_opt_arrow',
|
2916 |
'type' => 'switch',
|
2917 |
-
'title' =>
|
2918 |
-
'tooltip-subtitle' =>
|
2919 |
'default' => 1,
|
2920 |
'required' => array( 'amp-mobile-redirection', '=' , 1 )
|
2921 |
),
|
@@ -6138,6 +6172,25 @@ $single_page_options = array(
|
|
6138 |
'default' => '6',
|
6139 |
'required' => array('ampforwp-swift-recent-posts' , '=' , '1'),
|
6140 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6141 |
array(
|
6142 |
'id' => 'ampforwp-single_section_3',
|
6143 |
'type' => 'section',
|
@@ -6344,6 +6397,25 @@ $single_page_options = array(
|
|
6344 |
'required' => array(
|
6345 |
array('ampforwp-related-posts-days-switch', '=' , '1'),
|
6346 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6347 |
),
|
6348 |
// DESIGN 3 RECENT POST BELOW RELATED
|
6349 |
array(
|
2486 |
'tooltip-subtitle' => esc_html__('Enable/Disable Facebook comments using this switch.', 'accelerated-mobile-pages'),
|
2487 |
'default' => 0,
|
2488 |
),
|
2489 |
+
array(
|
2490 |
+
'class' => 'child_opt child_opt_arrow',
|
2491 |
+
'id' => 'ampforwp-fb-moderation-app-id',
|
2492 |
+
'type' => 'text',
|
2493 |
+
'tooltip-subtitle' =>
|
2494 |
+
sprintf('%s <a href="https://developers.facebook.com/docs/plugins/comments/#moderation-setup-instructions" target="_blank">%s</a>.',esc_html__( 'If your site has many comments boxes, we recommend you specify a Facebook app ID as the managing entity, which means that all app administrators can moderate comments. Doing this enables a moderator interface on Facebook where comments from all plugins administered by your app ID can be easily moderated together. For details, see the','accelerated-mobile-pages' ),esc_html__('Facebook Moderation Setup documentation','accelerated-mobile-pages') ),
|
2495 |
+
'title' => esc_html__('Facebook APP ID', 'accelerated-mobile-pages'),
|
2496 |
+
'default' => '',
|
2497 |
+
'required' => array(
|
2498 |
+
array('ampforwp-facebook-comments-support', '=' , 1),
|
2499 |
+
),
|
2500 |
+
),
|
2501 |
+
array(
|
2502 |
+
'class' => 'child_opt child_opt_arrow',
|
2503 |
+
'id' => 'ampforwp-fb-moderation-admin-id',
|
2504 |
+
'type' => 'text',
|
2505 |
+
'tooltip-subtitle' =>
|
2506 |
+
sprintf('%s <a href="https://developers.facebook.com/docs/plugins/comments/#moderation-setup-instructions" target="_blank">%s</a>.',esc_html__( 'To assign a Facebook account to be the admin of a comments plugin implementation, see the','accelerated-mobile-pages' ),esc_html__('Facebook Moderation Setup documentation','accelerated-mobile-pages') ),
|
2507 |
+
'title' => esc_html__('Facebook Admin User ID', 'accelerated-mobile-pages'),
|
2508 |
+
'default' => '',
|
2509 |
+
'desc' => 'You can add multiple ID(S) separated by comma(,) sign',
|
2510 |
+
'required' => array(
|
2511 |
+
array('ampforwp-facebook-comments-support', '=' , 1),
|
2512 |
+
),
|
2513 |
+
),
|
2514 |
array(
|
2515 |
'class' => 'child_opt child_opt_arrow',
|
2516 |
'id' => 'ampforwp-facebook-comments-title',
|
2935 |
'default' => 0,
|
2936 |
|
2937 |
),
|
2938 |
+
array(
|
2939 |
+
'id' => 'amp-mob-redirection-pres-link',
|
2940 |
+
'class' => 'child_opt child_opt_arrow',
|
2941 |
+
'type' => 'switch',
|
2942 |
+
'title' => esc_html__('Preserve Original Permalinks', 'accelerated-mobile-pages'),
|
2943 |
+
'tooltip-subtitle' => esc_html__('Enable/Disable Mobile redirection for preserve original permalinks.','accelerated-mobile-pages'),
|
2944 |
+
'default' => 0,
|
2945 |
+
'required' => array( 'amp-mobile-redirection', '=' , 1 )
|
2946 |
+
),
|
2947 |
array(
|
2948 |
'id' => 'amp-tablet-redirection',
|
2949 |
'class' => 'child_opt child_opt_arrow',
|
2950 |
'type' => 'switch',
|
2951 |
+
'title' => esc_html__('Tablets', 'accelerated-mobile-pages'),
|
2952 |
+
'tooltip-subtitle' => esc_html__('Enable/Disable Mobile redirection for Tablets.','accelerated-mobile-pages'),
|
2953 |
'default' => 1,
|
2954 |
'required' => array( 'amp-mobile-redirection', '=' , 1 )
|
2955 |
),
|
6172 |
'default' => '6',
|
6173 |
'required' => array('ampforwp-swift-recent-posts' , '=' , '1'),
|
6174 |
),
|
6175 |
+
array(
|
6176 |
+
'id' => 'ampforwp-recent-post-utm-tracking-switch',
|
6177 |
+
'type' => 'switch',
|
6178 |
+
'class' => 'child_opt child_opt_arrow',
|
6179 |
+
'title' => esc_html__('UTM Tracking', 'accelerated-mobile-pages'),
|
6180 |
+
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
|
6181 |
+
esc_html__('Enable this option to add utm tracking to all your recent post links and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-utm-tracking-to-all-your-recent-post-links/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
|
6182 |
+
'default' => 0,
|
6183 |
+
'required' => array('ampforwp-swift-recent-posts', '=', '1')
|
6184 |
+
),
|
6185 |
+
array(
|
6186 |
+
'id' => 'ampforwp-recent-posts-utm-tracking',
|
6187 |
+
'title' => esc_html__('Campaign Source', 'accelerated-mobile-pages'),
|
6188 |
+
'desc' =>esc_html__('Use \'&\' for adding parameters in the tracking. Example: utm_source=xxx&utm_medium=xxx','accelerated-mobile-pages'),
|
6189 |
+
'type' => 'text',
|
6190 |
+
'class' => 'child_opt child_opt_arrow',
|
6191 |
+
'required' => array('ampforwp-recent-post-utm-tracking-switch', '=' , '1'),
|
6192 |
+
'default' => '',
|
6193 |
+
),
|
6194 |
array(
|
6195 |
'id' => 'ampforwp-single_section_3',
|
6196 |
'type' => 'section',
|
6397 |
'required' => array(
|
6398 |
array('ampforwp-related-posts-days-switch', '=' , '1'),
|
6399 |
),
|
6400 |
+
),
|
6401 |
+
array(
|
6402 |
+
'id' => 'ampforwp-related-post-utm-tracking-switch',
|
6403 |
+
'type' => 'switch',
|
6404 |
+
'class' => 'child_opt child_opt_arrow',
|
6405 |
+
'title' => esc_html__('UTM Tracking', 'accelerated-mobile-pages'),
|
6406 |
+
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
|
6407 |
+
esc_html__('Enable this option to add utm tracking to all your related post links and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-utm-tracking-to-all-your-related-post-links/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
|
6408 |
+
'default' => 0,
|
6409 |
+
'required' => array('ampforwp-single-related-posts-switch', '=', '1')
|
6410 |
+
),
|
6411 |
+
array(
|
6412 |
+
'id' => 'ampforwp-related-posts-utm-tracking',
|
6413 |
+
'title' => esc_html__('Campaign Source', 'accelerated-mobile-pages'),
|
6414 |
+
'desc' =>esc_html__('Use \'&\' for adding parameters in the tracking. Example: utm_source=xxx&utm_medium=xxx','accelerated-mobile-pages'),
|
6415 |
+
'type' => 'text',
|
6416 |
+
'class' => 'child_opt child_opt_arrow',
|
6417 |
+
'required' => array('ampforwp-related-post-utm-tracking-switch', '=' , '1'),
|
6418 |
+
'default' => '',
|
6419 |
),
|
6420 |
// DESIGN 3 RECENT POST BELOW RELATED
|
6421 |
array(
|
includes/redirect.php
CHANGED
@@ -150,9 +150,12 @@ if(is_search() && 0 == ampforwp_get_setting('amp-redirection-search')){
|
|
150 |
exit;
|
151 |
}
|
152 |
}
|
153 |
-
|
|
|
|
|
|
|
154 |
// AMP Takeover
|
155 |
-
if ( ampforwp_get_setting('ampforwp-amp-takeover') && !ampforwp_is_non_amp() ) {
|
156 |
$redirection_location = '';
|
157 |
$current_location = '';
|
158 |
$home_url = '';
|
150 |
exit;
|
151 |
}
|
152 |
}
|
153 |
+
$mob_pres_link = false;
|
154 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
155 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
156 |
+
}
|
157 |
// AMP Takeover
|
158 |
+
if ( (ampforwp_get_setting('ampforwp-amp-takeover') || $mob_pres_link == true) && !ampforwp_is_non_amp() ) {
|
159 |
$redirection_location = '';
|
160 |
$current_location = '';
|
161 |
$home_url = '';
|
pagebuilder/amp-page-builder.php
CHANGED
@@ -128,7 +128,11 @@ function ampforwp_call_page_builder(){
|
|
128 |
unset($backendRowSetting['front_common_css']);
|
129 |
wp_nonce_field( basename( __FILE__) , 'amp_content_editor_nonce' );
|
130 |
|
131 |
-
|
|
|
|
|
|
|
|
|
132 |
$pb_content = get_post_field('amp-page-builder',$post->ID);
|
133 |
?>
|
134 |
<script type="text/template" class="hide" id="amp-page-builder-ready"><?php echo stripcslashes( $pb_content ); ?></script>
|
128 |
unset($backendRowSetting['front_common_css']);
|
129 |
wp_nonce_field( basename( __FILE__) , 'amp_content_editor_nonce' );
|
130 |
|
131 |
+
$mob_pres_link = false;
|
132 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
133 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
134 |
+
}
|
135 |
+
if(class_exists('WPSEO_Frontend') && true == ampforwp_get_setting('ampforwp-yoast-seo-analysis') && (true == ampforwp_get_setting('ampforwp-amp-takeover') || $mob_pres_link == true) ) {
|
136 |
$pb_content = get_post_field('amp-page-builder',$post->ID);
|
137 |
?>
|
138 |
<script type="text/template" class="hide" id="amp-page-builder-ready"><?php echo stripcslashes( $pb_content ); ?></script>
|
pagebuilder/config/moduleTemplate.php
CHANGED
@@ -60,7 +60,7 @@ if(!function_exists("ampforwp_module_templates")){
|
|
60 |
}//If Fucntion check closed
|
61 |
|
62 |
//Row Contents
|
63 |
-
$output = '<section {{if_row_id}}id={{row_id}}{{ifend_row_id}} class="ap_m {{row_class}} {{grid_type}} {{if_condition_check_for_slant==1}}slant_clr{{ifend_condition_check_for_slant_1}}">
|
64 |
{{if_condition_background_type==video}}
|
65 |
<div class="amp_video">
|
66 |
<div class="amp-txt">
|
@@ -449,7 +449,24 @@ $containerCommonSettings = array(
|
|
449 |
'content_type'=>'css',
|
450 |
'output_format'=>"color: %default%"
|
451 |
),
|
452 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
array(
|
454 |
'type' =>'select',
|
455 |
'name' =>"background_type",
|
60 |
}//If Fucntion check closed
|
61 |
|
62 |
//Row Contents
|
63 |
+
$output = '<section {{if_row_id}}id={{row_id}}{{ifend_row_id}} class="ap_m {{row_class}} {{grid_type}} {{mobile_display}} {{if_condition_check_for_slant==1}}slant_clr{{ifend_condition_check_for_slant_1}}">
|
64 |
{{if_condition_background_type==video}}
|
65 |
<div class="amp_video">
|
66 |
<div class="amp-txt">
|
449 |
'content_type'=>'css',
|
450 |
'output_format'=>"color: %default%"
|
451 |
),
|
452 |
+
array(
|
453 |
+
'type' => 'radio',
|
454 |
+
'name' => "mobile_display",
|
455 |
+
'label' => esc_html__('Mobile Display'),
|
456 |
+
'tab' => 'customizer',
|
457 |
+
'default' => 'stack',
|
458 |
+
'options' => array(
|
459 |
+
array(
|
460 |
+
'label'=> 'Stack',
|
461 |
+
'value'=> 'stack',
|
462 |
+
),
|
463 |
+
array(
|
464 |
+
'label'=> 'Side By Side',
|
465 |
+
'value'=> 'sbs',
|
466 |
+
),
|
467 |
+
),
|
468 |
+
'content_type' => 'html',
|
469 |
+
),
|
470 |
array(
|
471 |
'type' =>'select',
|
472 |
'name' =>"background_type",
|
pagebuilder/inc/viewShowFrontData.php
CHANGED
@@ -160,6 +160,7 @@ function amp_pagebuilder_content_styles(){
|
|
160 |
.col-2{width:100%;float:none;margin-bottom:10%;}
|
161 |
.col-2-wrap .col-2:nth-child(1){padding-right:0px;}
|
162 |
.col-2-wrap .col-2:nth-child(2){padding-left:0px;}
|
|
|
163 |
}
|
164 |
';
|
165 |
|
160 |
.col-2{width:100%;float:none;margin-bottom:10%;}
|
161 |
.col-2-wrap .col-2:nth-child(1){padding-right:0px;}
|
162 |
.col-2-wrap .col-2:nth-child(2){padding-left:0px;}
|
163 |
+
.sbs .col-2{width: calc(50% - 5px);float: left;margin:2px;}
|
164 |
}
|
165 |
';
|
166 |
|
pagebuilder/modules/contents-module.php
CHANGED
@@ -386,12 +386,15 @@ if ( is_admin() ) {
|
|
386 |
$ampforwp_show_excerpt = (isset($fieldValues['ampforwp_show_excerpt'])? $fieldValues['ampforwp_show_excerpt']: 'yes');
|
387 |
$ampforwp_excerpt_length = (isset($fieldValues['ampforwp_excerpt_length'])? $fieldValues['ampforwp_excerpt_length']: 15);
|
388 |
$ampforwp_excerpt_length = (int) $ampforwp_excerpt_length;
|
389 |
-
|
|
|
|
|
|
|
390 |
if ( $the_query->have_posts() ) {
|
391 |
while ( $the_query->have_posts() ) {
|
392 |
$the_query->the_post();
|
393 |
$ampforwp_post_url = get_permalink();
|
394 |
-
if(ampforwp_get_setting('ampforwp-amp-takeover') == true){
|
395 |
$ampforwp_post_url = user_trailingslashit($ampforwp_post_url);
|
396 |
}else if(true == ampforwp_get_setting('amp-core-end-point')){
|
397 |
$ampforwp_post_url = user_trailingslashit($ampforwp_post_url);
|
386 |
$ampforwp_show_excerpt = (isset($fieldValues['ampforwp_show_excerpt'])? $fieldValues['ampforwp_show_excerpt']: 'yes');
|
387 |
$ampforwp_excerpt_length = (isset($fieldValues['ampforwp_excerpt_length'])? $fieldValues['ampforwp_excerpt_length']: 15);
|
388 |
$ampforwp_excerpt_length = (int) $ampforwp_excerpt_length;
|
389 |
+
$mob_pres_link = false;
|
390 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
391 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
392 |
+
}
|
393 |
if ( $the_query->have_posts() ) {
|
394 |
while ( $the_query->have_posts() ) {
|
395 |
$the_query->the_post();
|
396 |
$ampforwp_post_url = get_permalink();
|
397 |
+
if(ampforwp_get_setting('ampforwp-amp-takeover') == true || $mob_pres_link == true){
|
398 |
$ampforwp_post_url = user_trailingslashit($ampforwp_post_url);
|
399 |
}else if(true == ampforwp_get_setting('amp-core-end-point')){
|
400 |
$ampforwp_post_url = user_trailingslashit($ampforwp_post_url);
|
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.76.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,15 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
= 1.0.76.12 (14th April 2021) =
|
194 |
* Fixed: Fatal error occuring with the recent update Version 1.0.76.11 #4986
|
195 |
|
@@ -202,26 +211,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
202 |
* Fixed: AMP menu automatically scrolls down to bottom in Design three #4967
|
203 |
* Fixed: Deprecated Filters Detected Warning in All in one SEO plugin #4980
|
204 |
|
205 |
-
= 1.0.76.10 (9th April 2021) =
|
206 |
-
* Improvements: Added the Compatibility with the Schema Pro FAQ #4956
|
207 |
-
* Improvements: Added the feature to track each author contribution to the website pageview #4952
|
208 |
-
* Improvements: Added an option to show published date and time below the title #4976
|
209 |
-
* Improvements: Added an option to automatic redirect AMP to non-amp when access through desktop #4975
|
210 |
-
* Improvements: Added the Compatibility for Add Widget After Content plugin #4949
|
211 |
-
* Improvements: Added Forminator for AMP Extension #4965
|
212 |
-
* Fixed: Search Close Button is hidden for the Google Cached AMP Pages #4977
|
213 |
-
* Fixed: Image is not showing when the post is shared on social network #4971
|
214 |
-
|
215 |
-
= 1.0.76.9 (2nd April 2021) =
|
216 |
-
* Fixed: Facebook videos embedding not working #4973
|
217 |
-
* Fixed: The incorrect excerpt for the custom front page if user is using the Divi #4972
|
218 |
-
* Fixed: When Yoast SEO Multilingual is activated canonical getting addition http #4970
|
219 |
-
* Fixed: Close button not visible in the menu for the Google Cached AMP Pages #4969
|
220 |
-
* Fixed: Sassy social share icons are not displaying on AMP #4945
|
221 |
-
* Fixed: The AMP For WP option panel not saving due to redux plugin #4963
|
222 |
-
* Fixed: Docking functionality is not working for the amp-video type in mobile view #4961
|
223 |
-
* Fixed: Cannot change the title for in-content related post #4959
|
224 |
-
* Fixed: Upgrade for Free' button in structured data settings is not working #4960
|
225 |
-
* Fixed: Beginner and advance mode popup not closing #4974
|
226 |
-
|
227 |
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.76.13
|
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.76.13 (19th April 2021) =
|
194 |
+
* Improvements: Added an option to preserve original permalinks in mobile redirection #4207
|
195 |
+
* Improvements: Added an option to add moderation tool for the Facebook comments #4485
|
196 |
+
* Improvements: Added an option to make buttons side by side in the mobile with AMP pagebuilder #4472
|
197 |
+
* Improvements: Added an option to add UTM souce parameters in URLs to both related & incontent related posts #4237
|
198 |
+
* Improvements: Added Quantcast CMP (consent management platform) support in AMP 4951
|
199 |
+
* Fixed: Alt tag not appearing in sticky social sharing icons #4984
|
200 |
+
* Fixed: Debug Warning in edit tag page when using PHP8 #4990
|
201 |
+
|
202 |
= 1.0.76.12 (14th April 2021) =
|
203 |
* Fixed: Fatal error occuring with the recent update Version 1.0.76.11 #4986
|
204 |
|
211 |
* Fixed: AMP menu automatically scrolls down to bottom in Design three #4967
|
212 |
* Fixed: Deprecated Filters Detected Warning in All in one SEO plugin #4980
|
213 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
templates/design-manager/design-1/elements/related-posts.php
CHANGED
@@ -123,13 +123,14 @@ if( isset($redux_builder_amp['ampforwp-single-related-posts-switch']) && $redux_
|
|
123 |
if ( ampforwp_get_setting('ampforwp-single-related-posts-link') ) {
|
124 |
$related_post_permalink = get_permalink();
|
125 |
}
|
|
|
126 |
?>
|
127 |
<li class="<?php if ( ampforwp_has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
128 |
<?php if ( ampforwp_has_post_thumbnail() ) {
|
129 |
if ( true == $redux_builder_amp['ampforwp-single-related-posts-image'] ) {
|
130 |
$width = 150;
|
131 |
$height = 150;
|
132 |
-
$image_args = array("tag"=>'div','image_size'=>'full','image_crop'=>'true','image_crop_width'=>$width,'image_crop_height'=>$height,'responsive'=> 'true' );
|
133 |
amp_loop_image($image_args);
|
134 |
}
|
135 |
}?>
|
123 |
if ( ampforwp_get_setting('ampforwp-single-related-posts-link') ) {
|
124 |
$related_post_permalink = get_permalink();
|
125 |
}
|
126 |
+
$related_post_permalink = ampforwp_modify_url_utm_params($related_post_permalink);
|
127 |
?>
|
128 |
<li class="<?php if ( ampforwp_has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
129 |
<?php if ( ampforwp_has_post_thumbnail() ) {
|
130 |
if ( true == $redux_builder_amp['ampforwp-single-related-posts-image'] ) {
|
131 |
$width = 150;
|
132 |
$height = 150;
|
133 |
+
$image_args = array("tag"=>'div','image_size'=>'full','image_crop'=>'true','image_crop_width'=>$width,'image_crop_height'=>$height,'responsive'=> 'true','referer'=>"related_post" );
|
134 |
amp_loop_image($image_args);
|
135 |
}
|
136 |
}?>
|
templates/design-manager/design-2/elements/related-posts.php
CHANGED
@@ -122,13 +122,15 @@ if( isset($redux_builder_amp['ampforwp-single-related-posts-switch']) && $redux_
|
|
122 |
$related_post_permalink = ampforwp_url_controller( get_permalink() );
|
123 |
if ( ampforwp_get_setting('ampforwp-single-related-posts-link') ) {
|
124 |
$related_post_permalink = get_permalink();
|
125 |
-
}
|
|
|
|
|
126 |
<li class="<?php if ( ampforwp_has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
127 |
<?php if ( ampforwp_has_post_thumbnail() ) {
|
128 |
if ( true == $redux_builder_amp['ampforwp-single-related-posts-image'] ) {
|
129 |
$width = 150;
|
130 |
$height = 150;
|
131 |
-
$image_args = array("tag"=>'div','image_size'=>'full','image_crop'=>'true','image_crop_width'=>$width,'image_crop_height'=>$height,'responsive'=> 'true' );
|
132 |
amp_loop_image($image_args);
|
133 |
}
|
134 |
}?>
|
122 |
$related_post_permalink = ampforwp_url_controller( get_permalink() );
|
123 |
if ( ampforwp_get_setting('ampforwp-single-related-posts-link') ) {
|
124 |
$related_post_permalink = get_permalink();
|
125 |
+
}
|
126 |
+
$related_post_permalink = ampforwp_modify_url_utm_params($related_post_permalink);
|
127 |
+
?>
|
128 |
<li class="<?php if ( ampforwp_has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
129 |
<?php if ( ampforwp_has_post_thumbnail() ) {
|
130 |
if ( true == $redux_builder_amp['ampforwp-single-related-posts-image'] ) {
|
131 |
$width = 150;
|
132 |
$height = 150;
|
133 |
+
$image_args = array("tag"=>'div','image_size'=>'full','image_crop'=>'true','image_crop_width'=>$width,'image_crop_height'=>$height,'responsive'=> 'true','referer'=>"related_post" );
|
134 |
amp_loop_image($image_args);
|
135 |
}
|
136 |
}?>
|
templates/design-manager/design-3/elements/related-posts.php
CHANGED
@@ -125,7 +125,9 @@ if( isset($redux_builder_amp['ampforwp-single-related-posts-switch']) && $redux_
|
|
125 |
$related_post_permalink = ampforwp_url_controller( get_permalink() );
|
126 |
if ( ampforwp_get_setting('ampforwp-single-related-posts-link') ) {
|
127 |
$related_post_permalink = get_permalink();
|
128 |
-
}
|
|
|
|
|
129 |
<li class="<?php if ( ampforwp_has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
130 |
<div class="related-post_image">
|
131 |
<a href="<?php echo esc_url( $related_post_permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
|
125 |
$related_post_permalink = ampforwp_url_controller( get_permalink() );
|
126 |
if ( ampforwp_get_setting('ampforwp-single-related-posts-link') ) {
|
127 |
$related_post_permalink = get_permalink();
|
128 |
+
}
|
129 |
+
$related_post_permalink = ampforwp_modify_url_utm_params($related_post_permalink);
|
130 |
+
?>
|
131 |
<li class="<?php if ( ampforwp_has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
132 |
<div class="related-post_image">
|
133 |
<a href="<?php echo esc_url( $related_post_permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
|
templates/design-manager/swift/footer.php
CHANGED
@@ -117,7 +117,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
117 |
<?php if(ampforwp_get_setting('enable-single-facebook-share')){
|
118 |
$facebook_icon = '';
|
119 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
120 |
-
$facebook_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDg2LjAzNyAxMDA3IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTEyNCAxMDA1VjUzNkgwVjM2N2gxMjRWMjIzQzEyNCAxMTAgMTk3IDUgMzY2IDVjNjggMCAxMTkgNyAxMTkgN2wtNCAxNThzLTUyLTEtMTA4LTFjLTYxIDAtNzEgMjgtNzEgNzV2MTIzaDE4M2wtOCAxNjlIMzAydjQ2OUgxMjMiPjwvcGF0aD48L3N2Zz4=" width="16" height="16" ></amp-img>';
|
121 |
}
|
122 |
|
123 |
?>
|
@@ -142,7 +142,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
142 |
$data_param = ( '' == $data_param_data ) ? '' : '&via='.$data_param_data.'';
|
143 |
$twitter_icon = '';
|
144 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
145 |
-
$twitter_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjQwLjAxNzEgNjAxLjA4NjkiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCA1MzAuMTU1YzEwLjQyIDEuMDE1IDIwLjgyNiAxLjU0OCAzMS4yMiAxLjU0OCA2MS4wNSAwIDExNS41MjgtMTguNzMgMTYzLjM4Ny01Ni4xNy0yOC40MjQtLjM1Mi01My45MzMtOS4wNC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LTEwLjIxMiAzNS4yMTQtMjUuODUgNjguODUzLTQ2LjgzIDEwMC45NzItMjAuOTk2IDMyLjA2NS00Ni4wNSA2MC42Mi03NS4xOSA4NS41Ny0yOS4xMjYgMjQuOTc2LTY0LjA4IDQ0Ljg1My0xMDQuODUgNTkuNTktNDAuNzU0IDE0Ljc1My04NC41NTMgMjIuMDktMTMxLjM5NyAyMi4wOUMxMjguODYyIDU4OC45NCA2MS43NCA1NjkuMzUgMCA1MzAuMTU0eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16"></amp-img>';}
|
146 |
?>
|
147 |
<li>
|
148 |
<a title="twitter share" class="s_tw" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="https://twitter.com/intent/tweet?url=<?php echo esc_url($twitter_amp_permalink); ?>&text=<?php echo esc_attr(ampforwp_sanitize_twitter_title(get_the_title())); ?><?php echo esc_attr($data_param); ?>"><?php echo $twitter_icon; ?>
|
@@ -152,7 +152,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
152 |
<?php if(ampforwp_get_setting('enable-single-email-share')){
|
153 |
$email_icon = '';
|
154 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
155 |
-
$email_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgODk2IDEwMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAxOTN2NjQwaDg5NlYxOTNIMHptNzY4IDY0TDQ0OCA1MjEgMTI4IDI1N2g2NDB6TTY0IDMyMWwyNTIuMDMgMTkxLjYyNUw2NCA3MDVWMzIxem02NCA0NDhsMjU0LTIwNi4yNUw0NDggNjEzbDY1Ljg3NS01MC4xMjVMNzY4IDc2OUgxMjh6bTcwNC02NEw1NzkuNjI1IDUxMi45MzggODMyIDMyMXYzODR6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
156 |
}
|
157 |
|
158 |
?>
|
@@ -164,7 +164,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
164 |
$image = '';
|
165 |
$pinterest_icon = '';
|
166 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
167 |
-
$pinterest_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNOC42MTcgMTMuMjI3QzguMDkgMTUuOTggNy40NSAxOC42MiA1LjU1IDIwYy0uNTg3LTQuMTYyLjg2LTcuMjg3IDEuNTMzLTEwLjYwNS0xLjE0Ny0xLjkzLjEzOC01LjgxMiAyLjU1NS00Ljg1NSAyLjk3NSAxLjE3Ni0yLjU3NiA3LjE3MiAxLjE1IDcuOTIyIDMuODkuNzggNS40OC02Ljc1IDMuMDY2LTkuMkMxMC4zNy0uMjc0IDMuNzA4IDMuMTggNC41MjggOC4yNDZjLjIgMS4yMzggMS40NzggMS42MTMuNTEgMy4zMjItMi4yMy0uNDk0LTIuODk2LTIuMjU0LTIuODEtNC42LjEzOC0zLjg0IDMuNDUtNi41MjcgNi43Ny02LjkgNC4yMDItLjQ3IDguMTQ1IDEuNTQzIDguNjkgNS40OTQuNjEzIDQuNDYyLTEuODk2IDkuMjk0LTYuMzkgOC45NDYtMS4yMTctLjA5NS0xLjcyNy0uNy0yLjY4LTEuMjh6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
168 |
}
|
169 |
if (ampforwp_has_post_thumbnail( ) ){
|
170 |
$image = ampforwp_get_post_thumbnail( 'url', 'full' );
|
@@ -176,7 +176,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
176 |
<?php if(ampforwp_get_setting('enable-single-linkedin-share')){
|
177 |
$linkedin_icon = '';
|
178 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
179 |
-
$linkedin_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTA0NiAxMDA3IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTIzNyAxMDA1VjMzMEgxM3Y2NzVoMjI0ek0xMjUgMjM4Yzc4IDAgMTI3LTUyIDEyNy0xMTdDMjUxIDU1IDIwMyA0IDEyNyA0IDUwIDQgMCA1NCAwIDEyMWMwIDY1IDQ5IDExNyAxMjQgMTE3aDF6bTIzNiA3NjdoMjI0VjYyOGMwLTIwIDEtNDAgNy01NSAxNi00MCA1My04MiAxMTUtODIgODEgMCAxMTQgNjIgMTE0IDE1M3YzNjFoMjI0VjYxOGMwLTIwNy0xMTEtMzA0LTI1OC0zMDQtMTIxIDAtMTc0IDY4LTIwNCAxMTRoMXYtOThIMzYwYzMgNjMgMCA2NzUgMCA2NzV6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
180 |
}
|
181 |
?>
|
182 |
<li>
|
@@ -186,7 +186,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
186 |
<?php if(ampforwp_get_setting('enable-single-whatsapp-share')){
|
187 |
$whatsapp_icon = '';
|
188 |
if('css-icons' == ampforwp_get_setting('ampforwp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xLDAuNzE2LDcuNDksMTEuOTIsMTguNSwxNi4yMjMgICBDNTguMiw2NS43NzEsNTguMiw2NC4zMzYsNjAuMTg2LDY0LjE1NmMxLjk4NC0wLjE3OSw2LjQwNi0yLjU5OSw3LjMxMi01LjEwN0M2OC4zOTgsNTYuNTM3LDY4LjM5OCw1NC4zODYsNjguMTI5LDUzLjkzOHoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" ></amp-img>';
|
190 |
}
|
191 |
?>
|
192 |
<li>
|
@@ -199,7 +199,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
199 |
?>
|
200 |
<li>
|
201 |
<a title="line share" class="s_li" <?php ampforwp_rel_attributes_social_links(); ?> href="<?php echo esc_url($line_amp_permalink); ?>">
|
202 |
-
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR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03LDcgICBjLTMuODY2LDAtNy0zLjEzNC03LTd2LTUyLjE2YzAtMy4wMzMsMS45NTMtNS43MjEsNC44MzgtNi42NThjMi44ODYtMC45MzYsNi4wNDUsMC4wOSw3LjgyNywyLjU0NWwyNS4yMDcsMzQuNzE3Vjk5LjY3NSAgIGMwLTMuODY2LDMuMTM0LTcsNy03YzMuODY2LDAsNywzLjEzNCw3LDdWMTUzLjM3MXogTTIzMy4zMTEsMTU5LjI2OWgtMzQuNjQ1Yy0zLjg2NiwwLTctMy4xMzQtNy03di0yNi44NDdWOTguNTczICAgYzAtMy44NjYsMy4xMzQtNyw3LTdoMzMuNTdjMy44NjYsMCw3LDMuMTM0LDcsN3MtMy4xMzQsNy03LDdoLTI2LjU3djEyLjg0OWgyMS41NjJjMy44NjYsMCw3LDMuMTM0LDcsN2MwLDMuODY2LTMuMTM0LDctNyw3ICAgaC0yMS41NjJ2MTIuODQ3aDI3LjY0NWMzLjg2NiwwLDcsMy4xMzQsNyw3UzIzNy4xNzcsMTU5LjI2OSwyMzMuMzExLDE1OS4yNjl6IiBmaWxsPSIjRkZGRkZGIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==" width="15" height="15" />
|
203 |
|
204 |
L</a>
|
205 |
</li>
|
@@ -207,7 +207,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
207 |
<?php if(ampforwp_get_setting('enable-single-vk-share')){
|
208 |
$vk_icon = '';
|
209 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
210 |
-
$vk_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiB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jMxNC0xMy45NjgsOS4xNDMtMjEuMDc4YzIuMDk2LTUuMjc2LDUuMzg1LTcuODcyLDExLjMyOC03Ljc1N2w0OC4yMjksMC4wNDNjMS40MywwLDIuODc3LDAuMDIxLDQuMjYyLDAuMjU4ICAgYzguMTI3LDEuMzg1LDEwLjM1NCw0Ljg4MSw3Ljg0NCwxMi44MTdjLTMuOTU1LDEyLjQ1MS0xMS42NSwyMi44MjctMTkuMTc0LDMzLjI1MWMtOC4wNDMsMTEuMTI5LTE2LjY0NSwyMS44NzctMjQuNjIxLDMzLjA3MiAgIEMyNTIuMjYsMTYxLjU0NCwyNTIuODQyLDE2Ni42OTcsMjYxLjk0NSwxNzUuNTc2TDI2MS45NDUsMTc1LjU3NnogTTI2MS45NDUsMTc1LjU3NiIgZmlsbD0iI0ZGRkZGRiIvPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="16" height="16" ></amp-img>';
|
211 |
}
|
212 |
?>
|
213 |
<li>
|
@@ -217,7 +217,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
217 |
<?php if(ampforwp_get_setting('enable-single-odnoklassniki-share')){
|
218 |
$odnoklassniki_icon = '';
|
219 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
220 |
-
$odnoklassniki_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvb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TEuODg2LDUuMzE2LTExLjgzNSwxMS45NDNjMC4wNDksNi41NDIsNS4zMjQsMTEuNzMzLDExLjg5NiwxMS43MDkgICAgQzU0LjM1NywzNS45NzEsNTkuNTczLDMwLjcwOSw1OS41NTEsMjQuMTQzeiIgZmlsbD0iI0ZGRkZGRiIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="16" height="16" ></amp-img>';
|
221 |
}
|
222 |
?>
|
223 |
<li>
|
@@ -232,7 +232,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
232 |
<?php if(ampforwp_get_setting('enable-single-reddit-share')){
|
233 |
$reddit_icon = '';
|
234 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
235 |
-
$reddit_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDQ5IDUxMiIgZmlsbD0iI2ZmZmZmZiIgPjxwYXRoIGQ9Ik00NDkgMjUxYzAgMjAtMTEgMzctMjcgNDUgMSA1IDEgOSAxIDE0IDAgNzYtODkgMTM4LTE5OSAxMzhTMjYgMzg3IDI2IDMxMWMwLTUgMC0xMCAxLTE1LTE2LTgtMjctMjUtMjctNDUgMC0yOCAyMy01MCA1MC01MCAxMyAwIDI0IDUgMzMgMTMgMzMtMjMgNzktMzkgMTI5LTQxaDJsMzEtMTAzIDkwIDE4YzgtMTQgMjItMjQgMzktMjRoMWMyNSAwIDQ0IDIwIDQ0IDQ1cy0xOSA0NS00NCA0NWgtMWMtMjMgMC00Mi0xNy00NC00MGwtNjctMTQtMjIgNzRjNDkgMyA5MyAxNyAxMjUgNDAgOS04IDIxLTEzIDM0LTEzIDI3IDAgNDkgMjIgNDkgNTB6TTM0IDI3MWM1LTE1IDE1LTI5IDI5LTQxLTQtMy05LTUtMTUtNS0xNCAwLTI1IDExLTI1IDI1IDAgOSA0IDE3IDExIDIxem0zMjQtMTYyYzAgOSA3IDE3IDE2IDE3czE3LTggMTctMTctOC0xNy0xNy0xNy0xNiA4LTE2IDE3ek0xMjcgMjg4YzAgMTggMTQgMzIgMzIgMzJzMzItMTQgMzItMzItMTQtMzEtMzItMzEtMzIgMTMtMzIgMzF6bTk3IDExMmM0OCAwIDc3LTI5IDc4LTMwbC0xMy0xMnMtMjUgMjQtNjUgMjRjLTQxIDAtNjQtMjQtNjQtMjRsLTEzIDEyYzEgMSAyOSAzMCA3NyAzMHptNjctODBjMTggMCAzMi0xNCAzMi0zMnMtMTQtMzEtMzItMzEtMzIgMTMtMzIgMzEgMTQgMzIgMzIgMzJ6bTEyNC00OGM3LTUgMTEtMTMgMTEtMjIgMC0xNC0xMS0yNS0yNS0yNS02IDAtMTEgMi0xNSA1IDE0IDEyIDI0IDI3IDI5IDQyeiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';
|
236 |
}
|
237 |
?>
|
238 |
<li>
|
@@ -242,7 +242,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
242 |
<?php if(ampforwp_get_setting('enable-single-tumblr-share')){
|
243 |
$tumblr_icon ='';
|
244 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
245 |
-
$tumblr_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMzYuMDAyIDI4djE0LjYzNmMwIDMuNzE0LS4wNDggNS44NTMuMzQ2IDYuOTA2LjM5IDEuMDQ3IDEuMzcgMi4xMzQgMi40MzcgMi43NjMgMS40MTguODUgMy4wMzQgMS4yNzMgNC44NTcgMS4yNzMgMy4yNCAwIDUuMTU1LS40MjggOC4zNi0yLjUzNHY5LjYyYy0yLjczMiAxLjI4Ni01LjExOCAyLjAzOC03LjMzNCAyLjU2LTIuMjIuNTE0LTQuNjE2Ljc3NC03LjE5Ljc3NC0yLjkyOCAwLTQuNjU1LS4zNjgtNi45MDItMS4xMDMtMi4yNDctLjc0Mi00LjE2Ni0xLjgtNS43NS0zLjE2LTEuNTkyLTEuMzctMi42OS0yLjgyNC0zLjMwNC00LjM2M3MtLjkyLTMuNzc2LS45Mi02LjcwM1YyNi4yMjRoLTguNTl2LTkuMDYzYzIuNTE0LS44MTUgNS4zMjQtMS45ODcgNy4xMTItMy41MSAxLjc5Ny0xLjUyNyAzLjIzNS0zLjM1NiA0LjMyLTUuNDk2QzI0LjUzIDYuMDIyIDI1LjI3NiAzLjMgMjUuNjgzIDBoMTAuMzJ2MTZINTJ2MTJIMzYuMDA0eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';}?>
|
246 |
<li>
|
247 |
<a title="tumblr share" class="s_tb" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="https://www.tumblr.com/widgets/share/tool?canonicalUrl=<?php echo esc_url($amp_permalink) ?>"><?php echo $tumblr_icon; ?></a>
|
248 |
</li>
|
@@ -250,7 +250,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
250 |
<?php if(ampforwp_get_setting('enable-single-telegram-share')){
|
251 |
$telegram_icon = '';
|
252 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
253 |
-
$telegram_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ1NS43MzEgNDU1LjczMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDU1LjczMSA0NTUuNzMxOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGc+Cgk8cmVjdCB4PSIwIiB5PSIwIiBzdHlsZT0iZmlsbDojNjFBOERFOyIgd2lkdGg9IjQ1NS43MzEiIGhlaWdodD0iNDU1LjczMSIvPgoJPHBhdGggc3R5bGU9ImZpbGw6I0ZGRkZGRjsiIGQ9Ik0zNTguODQ0LDEwMC42TDU0LjA5MSwyMTkuMzU5Yy05Ljg3MSwzLjg0Ny05LjI3MywxOC4wMTIsMC44ODgsMjEuMDEybDc3LjQ0MSwyMi44NjhsMjguOTAxLDkxLjcwNiAgIGMzLjAxOSw5LjU3OSwxNS4xNTgsMTIuNDgzLDIyLjE4NSw1LjMwOGw0MC4wMzktNDAuODgybDc4LjU2LDU3LjY2NWM5LjYxNCw3LjA1NywyMy4zMDYsMS44MTQsMjUuNzQ3LTkuODU5bDUyLjAzMS0yNDguNzYgICBDMzgyLjQzMSwxMDYuMjMyLDM3MC40NDMsOTYuMDgsMzU4Ljg0NCwxMDAuNnogTTMyMC42MzYsMTU1LjgwNkwxNzkuMDgsMjgwLjk4NGMtMS40MTEsMS4yNDgtMi4zMDksMi45NzUtMi41MTksNC44NDcgICBsLTUuNDUsNDguNDQ4Yy0wLjE3OCwxLjU4LTIuMzg5LDEuNzg5LTIuODYxLDAuMjcxbC0yMi40MjMtNzIuMjUzYy0xLjAyNy0zLjMwOCwwLjMxMi02Ljg5MiwzLjI1NS04LjcxN2wxNjcuMTYzLTEwMy42NzYgICBDMzIwLjA4OSwxNDcuNTE4LDMyNC4wMjUsMTUyLjgxLDMyMC42MzYsMTU1LjgwNnoiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" ></amp-img>';
|
254 |
}?>
|
255 |
<li>
|
256 |
<a title="telegram share" class="s_tg" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $telegram_icon; ?></a>
|
@@ -259,7 +259,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
259 |
<?php if(ampforwp_get_setting('enable-single-stumbleupon-share')){
|
260 |
$stumbleupon = '';
|
261 |
if('css-icons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UuNDcyIDQzLjI0OC00MS4zMSAwLTc2LjY0LTE0LjU5Mi0xMDUuOTg0LTQzLjc3NkMxNC42ODggNTE0LjMwMy4wMDIgNDc4Ljg4LjAwMiA0MzcuMjQ3em0zNzAuNjg4IDEuNTM2di05My42OTVsNDUuNTY4IDIxLjUyIDY4LjYyNC0yMC40OTd2OTQuMjI2YzAgOS45MDMgMy40MDggMTguMzM2IDEwLjIyNCAyNS4zNDQgNi44NDcgNy4wMDcgMTUuMiAxMC40OTYgMjUuMDg3IDEwLjQ5NiA5LjkwNiAwIDE4LjI3NC0zLjUwNCAyNS4wOS0xMC40OTYgNi44MTYtNi45OTMgMTAuMjU1LTE1LjQ0IDEwLjI1NS0yNS4zNDR2LTk1Ljc0NGgxMTQuNjg4djkyLjY3MmMwIDQxLjI5NS0xNC41OSA3Ni42NC00My43NzYgMTA1Ljk4My0yOS4xODQgMjkuMzYtNjQuNDMyIDQ0LjAzMi0xMDUuNzI4IDQ0LjAzMnMtNzYuNjI1LTE0LjQ5Ny0xMDUuOTg1LTQzLjUyYy0yOS4zNi0yOS4wNC00NC4wNDgtNjQuMDE3LTQ0LjA0OC0xMDQuOTc4eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';
|
263 |
}?>
|
264 |
<li>
|
265 |
<a title="stumbleupon share" class="s_su" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $stumbleupon; ?></a>
|
@@ -268,7 +268,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
268 |
<?php if(ampforwp_get_setting('enable-single-wechat-share')){
|
269 |
$wechat_icon = '';
|
270 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
271 |
-
$wechat_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5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xMDlxLTE1MCAzNy0yMTggMzctMTY5IDAtMzExLTcwLjVUODk3LjUgMTM5NiA4MTYgMTEzMnQ4MS41LTI2NFQxMTIxIDY3Ni41dDMxMS03MC41cTE2MSAwIDMwMyA3MC41dDIyNy41IDE5MlQyMDQ4IDExMzJ6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';}?>
|
272 |
<li>
|
273 |
<a title="wechat share" class="s_wc" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="http://api.addthis.com/oexchange/0.8/forward/wechat/offer?url=<?php echo esc_url($amp_permalink); ?>"><?php echo $wechat_icon; ?></a>
|
274 |
</li>
|
@@ -276,7 +276,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
276 |
<?php if(ampforwp_get_setting('enable-single-viber-share')){
|
277 |
$viber_icon = '';
|
278 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
279 |
-
$viber_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTAyNiAxMjM0IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTkwNCA3OTRxLTY5IDYxLTIwMCA4Ny41VDQzNCA4OTdsLTE3NiAxMzJWODY0cS04Ny0yNy0xMzYtNzAtNTgtNTEtOTAtMTQ2LjV0LTMyLTE5NSAzMi0xOTUgOTAuNS0xNDcgMTY3LjUtNzlUNTEzIDR0MjIzIDI3LjUgMTY3LjUgNzkgOTAuNSAxNDcgMzIgMTk1LTMyIDE5NVQ5MDQgNzk0ek02MzkgNTQ5bDY1IDExcS04LTEyMC05Mi41LTIwNVQ0MDcgMjYybDExIDY1cTg2IDExIDE0OCA3M3Q3MyAxNDl6TTQyOSAzOTRsMTIgNzJxNDAgMjAgNTkgNTlsNzIgMTJxLTEyLTUzLTUxLTkxLjVUNDI5IDM5NHptLTEwNyA1OXYtNjRxMC0xNy0xMi41LTM0VDI4MyAzMzAuNXQtMjEtMS41bC00NiA0N3EtMzkgMzktMTEuNSAxMjEuNXQxMDUgMTYwIDE2MCAxMDVUNTkwIDc1MWw0Ny00N3E3LTYtLjUtMjAuNVQ2MTIgNjU3dC0zNC0xMmgtNjRsLTM3IDMycS00NC0xMi0xMDkuNS03Ny41VDI5MCA0ODl6bTY0LTMyMGwxMCA2NXExMDAgMiAxODUgNTIuNXQxMzUgMTM1VDc2OSA1NzBsNjUgMTFxMC05MS0zNS41LTE3NFQ3MDMgMjY0dC0xNDMtOTUuNVQzODYgMTMzeiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';
|
280 |
}?>
|
281 |
<li>
|
282 |
<a class="s_vb" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="viber://forward?text=<?php echo esc_url($amp_permalink); ?>"><?php echo $viber_icon; ?></a>
|
@@ -285,7 +285,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
285 |
<?php if ( ampforwp_get_setting('enable-single-yummly-share')){
|
286 |
$yummly_icon = '';
|
287 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
288 |
-
$yummly_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgODk2IDEwMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAxOTN2NjQwaDg5NlYxOTNIMHptNzY4IDY0TDQ0OCA1MjEgMTI4IDI1N2g2NDB6TTY0IDMyMWwyNTIuMDMgMTkxLjYyNUw2NCA3MDVWMzIxem02NCA0NDhsMjU0LTIwNi4yNUw0NDggNjEzbDY1Ljg3NS01MC4xMjVMNzY4IDc2OUgxMjh6bTcwNC02NEw1NzkuNjI1IDUxMi45MzggODMyIDMyMXYzODR6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
289 |
}?>
|
290 |
<li>
|
291 |
<a title="yummly share" class="s_ym" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="http://www.yummly.com/urb/verify?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&yumtype=button"><?php echo $yummly_icon; ?></a>
|
@@ -294,7 +294,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
294 |
<?php if ( ampforwp_get_setting('enable-single-hatena-bookmarks')){
|
295 |
$hatena_icon = '';
|
296 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
297 |
-
$hatena_icon = '<amp-img src="data:image/svg+xml;charset=UTF-8,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'512\' height=\'512\' viewBox=\'0 0 512 512\'%3e%3cpath d=\'M 64 96 L 64 416 L 212 416 C 252 416 292 404 308 368 C 328 332 320 276 284 252 C 272 244 260 240 248 236 C 276 232 300 212 300 184 C 304 156 296 120 268 108 C 236 96 192 96 160 96 L 64 96 z M 364 96 L 364 308 L 444 308 L 444 96 L 364 96 z M 144 156 C 144 156 188 156 200 160 C 224 168 224 208 196 212 C 188 216 144 216 144 216 L 144 156 z M 144 280 C 144 280 188 280 208 284 C 232 288 240 312 228 332 C 220 348 204 348 188 348 L 144 348 L 144 280 z M 404 328 A 44 44 0 0 0 360 372 A 44 44 0 0 0 404 416 A 44 44 0 0 0 448 372 A 44 44 0 0 0 404 328 z\' style=\'fill:%23ffffff\'/%3e%3c/svg%3e" width="16" height="16" ></amp-img>';
|
298 |
}?>
|
299 |
<li>
|
300 |
<a title="hatena share" class="s_hb" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="http://b.hatena.ne.jp/entry/<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $hatena_icon; ?></a>
|
@@ -303,7 +303,7 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
303 |
<?php if ( ampforwp_get_setting('enable-single-pocket-share')){
|
304 |
$pocket_icon = '';
|
305 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
306 |
-
$pocket_icon = '<amp-img src="data:image/svg+xml;charset=UTF-8,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'2500\' height=\'2251\' viewBox=\'75.247 261.708 445.529 401.074\'%3e%3cpath fill=\'%23EF4056\' d=\'M114.219 261.708c-24.275 1.582-38.972 15.44-38.972 40.088v147.611c0 119.893 119.242 214.114 222.393 213.37 115.986-.837 223.137-98.779 223.137-213.37V301.796c0-24.741-15.626-38.693-40.088-40.088h-366.47zm93.943 120.079L297.64 466.8l89.571-85.013c40.088-16.835 57.574 28.927 41.111 42.321L311.685 535.443c-3.813 3.628-24.183 3.628-27.996 0L167.051 424.107c-15.72-14.789 4.743-61.295 41.111-42.32z\'/%3e%3c/svg%3e" width="16" height="16" style="background: #fff;"></amp-img>';
|
307 |
}?>
|
308 |
<li>
|
309 |
<a title="pocket share" class="s_pk" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="https://getpocket.com/save?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $pocket_icon; ?></a>
|
117 |
<?php if(ampforwp_get_setting('enable-single-facebook-share')){
|
118 |
$facebook_icon = '';
|
119 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
120 |
+
$facebook_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDg2LjAzNyAxMDA3IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTEyNCAxMDA1VjUzNkgwVjM2N2gxMjRWMjIzQzEyNCAxMTAgMTk3IDUgMzY2IDVjNjggMCAxMTkgNyAxMTkgN2wtNCAxNThzLTUyLTEtMTA4LTFjLTYxIDAtNzEgMjgtNzEgNzV2MTIzaDE4M2wtOCAxNjlIMzAydjQ2OUgxMjMiPjwvcGF0aD48L3N2Zz4=" width="16" height="16" alt="facebook"></amp-img>';
|
121 |
}
|
122 |
|
123 |
?>
|
142 |
$data_param = ( '' == $data_param_data ) ? '' : '&via='.$data_param_data.'';
|
143 |
$twitter_icon = '';
|
144 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
145 |
+
$twitter_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjQwLjAxNzEgNjAxLjA4NjkiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCA1MzAuMTU1YzEwLjQyIDEuMDE1IDIwLjgyNiAxLjU0OCAzMS4yMiAxLjU0OCA2MS4wNSAwIDExNS41MjgtMTguNzMgMTYzLjM4Ny01Ni4xNy0yOC40MjQtLjM1Mi01My45MzMtOS4wNC03Ni40NzctMjYuMDQzLTIyLjU3LTE2Ljk5LTM3Ljk4NC0zOC42NzUtNDYuMzIzLTY1LjA1NiA2LjkzMyAxLjQxOCAxNS4xMDIgMi4wOTUgMjQuNDU2IDIuMDk1IDEyLjE1IDA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Ljg1My0xMDQuODUgNTkuNTktNDAuNzU0IDE0Ljc1My04NC41NTMgMjIuMDktMTMxLjM5NyAyMi4wOUMxMjguODYyIDU4OC45NCA2MS43NCA1NjkuMzUgMCA1MzAuMTU0eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" alt="twitter"></amp-img>';}
|
146 |
?>
|
147 |
<li>
|
148 |
<a title="twitter share" class="s_tw" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="https://twitter.com/intent/tweet?url=<?php echo esc_url($twitter_amp_permalink); ?>&text=<?php echo esc_attr(ampforwp_sanitize_twitter_title(get_the_title())); ?><?php echo esc_attr($data_param); ?>"><?php echo $twitter_icon; ?>
|
152 |
<?php if(ampforwp_get_setting('enable-single-email-share')){
|
153 |
$email_icon = '';
|
154 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
155 |
+
$email_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgODk2IDEwMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAxOTN2NjQwaDg5NlYxOTNIMHptNzY4IDY0TDQ0OCA1MjEgMTI4IDI1N2g2NDB6TTY0IDMyMWwyNTIuMDMgMTkxLjYyNUw2NCA3MDVWMzIxem02NCA0NDhsMjU0LTIwNi4yNUw0NDggNjEzbDY1Ljg3NS01MC4xMjVMNzY4IDc2OUgxMjh6bTcwNC02NEw1NzkuNjI1IDUxMi45MzggODMyIDMyMXYzODR6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" alt="email"></amp-img>';
|
156 |
}
|
157 |
|
158 |
?>
|
164 |
$image = '';
|
165 |
$pinterest_icon = '';
|
166 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
167 |
+
$pinterest_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNOC42MTcgMTMuMjI3QzguMDkgMTUuOTggNy40NSAxOC42MiA1LjU1IDIwYy0uNTg3LTQuMTYyLjg2LTcuMjg3IDEuNTMzLTEwLjYwNS0xLjE0Ny0xLjkzLjEzOC01LjgxMiAyLjU1NS00Ljg1NSAyLjk3NSAxLjE3Ni0yLjU3NiA3LjE3MiAxLjE1IDcuOTIyIDMuODkuNzggNS40OC02Ljc1IDMuMDY2LTkuMkMxMC4zNy0uMjc0IDMuNzA4IDMuMTggNC41MjggOC4yNDZjLjIgMS4yMzggMS40NzggMS42MTMuNTEgMy4zMjItMi4yMy0uNDk0LTIuODk2LTIuMjU0LTIuODEtNC42LjEzOC0zLjg0IDMuNDUtNi41MjcgNi43Ny02LjkgNC4yMDItLjQ3IDguMTQ1IDEuNTQzIDguNjkgNS40OTQuNjEzIDQuNDYyLTEuODk2IDkuMjk0LTYuMzkgOC45NDYtMS4yMTctLjA5NS0xLjcyNy0uNy0yLjY4LTEuMjh6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" alt="pinterest"></amp-img>';
|
168 |
}
|
169 |
if (ampforwp_has_post_thumbnail( ) ){
|
170 |
$image = ampforwp_get_post_thumbnail( 'url', 'full' );
|
176 |
<?php if(ampforwp_get_setting('enable-single-linkedin-share')){
|
177 |
$linkedin_icon = '';
|
178 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
179 |
+
$linkedin_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTA0NiAxMDA3IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTIzNyAxMDA1VjMzMEgxM3Y2NzVoMjI0ek0xMjUgMjM4Yzc4IDAgMTI3LTUyIDEyNy0xMTdDMjUxIDU1IDIwMyA0IDEyNyA0IDUwIDQgMCA1NCAwIDEyMWMwIDY1IDQ5IDExNyAxMjQgMTE3aDF6bTIzNiA3NjdoMjI0VjYyOGMwLTIwIDEtNDAgNy01NSAxNi00MCA1My04MiAxMTUtODIgODEgMCAxMTQgNjIgMTE0IDE1M3YzNjFoMjI0VjYxOGMwLTIwNy0xMTEtMzA0LTI1OC0zMDQtMTIxIDAtMTc0IDY4LTIwNCAxMTRoMXYtOThIMzYwYzMgNjMgMCA2NzUgMCA2NzV6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" alt="linkedin"></amp-img>';
|
180 |
}
|
181 |
?>
|
182 |
<li>
|
186 |
<?php if(ampforwp_get_setting('enable-single-whatsapp-share')){
|
187 |
$whatsapp_icon = '';
|
188 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
189 |
+
$whatsapp_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8x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4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" alt="whatsapp"></amp-img>';
|
190 |
}
|
191 |
?>
|
192 |
<li>
|
199 |
?>
|
200 |
<li>
|
201 |
<a title="line share" class="s_li" <?php ampforwp_rel_attributes_social_links(); ?> href="<?php echo esc_url($line_amp_permalink); ?>">
|
202 |
+
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI5Ni41MjggMjk2LjUyOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjk2LjUyOCAyOTYuNTI4OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCI+CjxnPgoJPHBhdGggZD0iTTI5NS44MzgsMTE1LjM0N2wwLjAwMy0wLjAwMWwtMC4wOTItMC43NmMtMC4wMDEtMC4wMTMtMC4wMDItMC4wMjMtMC4wMDQtMC4wMzZjLTA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jU3djEyLjg0OWgyMS41NjJjMy44NjYsMCw3LDMuMTM0LDcsN2MwLDMuODY2LTMuMTM0LDctNyw3ICAgaC0yMS41NjJ2MTIuODQ3aDI3LjY0NWMzLjg2NiwwLDcsMy4xMzQsNyw3UzIzNy4xNzcsMTU5LjI2OSwyMzMuMzExLDE1OS4yNjl6IiBmaWxsPSIjRkZGRkZGIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==" width="15" height="15" alt="line"/>
|
203 |
|
204 |
L</a>
|
205 |
</li>
|
207 |
<?php if(ampforwp_get_setting('enable-single-vk-share')){
|
208 |
$vk_icon = '';
|
209 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
210 |
+
$vk_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAzMDQuMzYgMzA0LjM2IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAzMDQuMzYgMzA0LjM2OyIgeG1sOnNwYWNlP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L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="16" height="16" alt="vk"></amp-img>';
|
211 |
}
|
212 |
?>
|
213 |
<li>
|
217 |
<?php if(ampforwp_get_setting('enable-single-odnoklassniki-share')){
|
218 |
$odnoklassniki_icon = '';
|
219 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
220 |
+
$odnoklassniki_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjY0cHgiIGhlaWdodD0iNjRweCIgdmlld0JveD0iMCAwIDk1LjQ4MSA5NS40ODEiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDk1LjQ4MSA5NS40ODE7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8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LTMuODY1LTMuNTU2LTMuNzQ5LTUuOTc5YzAuMDgtMS42MzksMC44ODYtMi44OTEsMi4wMTEtNC4wMTRjNS40NDEtNS40MzMsMTAuODY3LTEwLjg4LDE2LjI5NS0xNi4zMjIgICAgQzQyLjE4Myw2OC4xOTcsNDIuNTE4LDY3LjgxMyw0My4wNDEsNjcuMjU0eiIgZmlsbD0iI0ZGRkZGRiIvPgoJCTxwYXRoIGQ9Ik00Ny41NSw0OC4zMjljLTEzLjIwNS0wLjA0NS0yNC4wMzMtMTAuOTkyLTIzLjk1Ni0yNC4yMThDMjMuNjcsMTAuNzM5LDM0LjUwNS0wLjAzNyw0Ny44NCwwICAgIGMxMy4zNjIsMC4wMzYsMjQuMDg3LDEwLjk2NywyNC4wMiwyNC40NzhDNzEuNzkyLDM3LjY3Nyw2MC44ODksNDguMzc1LDQ3LjU1LDQ4LjMyOXogTTU5LjU1MSwyNC4xNDMgICAgYy0wLjAyMy02LjU2Ny01LjI1My0xMS43OTUtMTEuODA3LTExLjgwMWMtNi42MDktMC4wMDctMTEuODg2LDUuMzE2LTExLjgzNSwxMS45NDNjMC4wNDksNi41NDIsNS4zMjQsMTEuNzMzLDExLjg5NiwxMS43MDkgICAgQzU0LjM1NywzNS45NzEsNTkuNTczLDMwLjcwOSw1OS41NTEsMjQuMTQzeiIgZmlsbD0iI0ZGRkZGRiIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="16" height="16" alt="odnoklassniki"></amp-img>';
|
221 |
}
|
222 |
?>
|
223 |
<li>
|
232 |
<?php if(ampforwp_get_setting('enable-single-reddit-share')){
|
233 |
$reddit_icon = '';
|
234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NyAzMHptNjctODBjMTggMCAzMi0xNCAzMi0zMnMtMTQtMzEtMzItMzEtMzIgMTMtMzIgMzEgMTQgMzIgMzIgMzJ6bTEyNC00OGM3LTUgMTEtMTMgMTEtMjIgMC0xNC0xMS0yNS0yNS0yNS02IDAtMTEgMi0xNSA1IDE0IDEyIDI0IDI3IDI5IDQyeiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" alt="reddit"></amp-img>';
|
236 |
}
|
237 |
?>
|
238 |
<li>
|
242 |
<?php if(ampforwp_get_setting('enable-single-tumblr-share')){
|
243 |
$tumblr_icon ='';
|
244 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
245 |
+
$tumblr_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMzYuMDAyIDI4djE0LjYzNmMwIDMuNzE0LS4wNDggNS44NTMuMzQ2IDYuOTA2LjM5IDEuMDQ3IDEuMzcgMi4xMzQgMi40MzcgMi43NjMgMS40MTguODUgMy4wMzQgMS4yNzMgNC44NTcgMS4yNzMgMy4yNCAwIDUuMTU1LS40MjggOC4zNi0yLjUzNHY5LjYyYy0yLjczMiAxLjI4Ni01LjExOCAyLjAzOC03LjMzNCAyLjU2LTIuMjIuNTE0LTQuNjE2Ljc3NC03LjE5Ljc3NC0yLjkyOCAwLTQuNjU1LS4zNjgtNi45MDItMS4xMDMtMi4yNDctLjc0Mi00LjE2Ni0xLjgtNS43NS0zLjE2LTEuNTkyLTEuMzctMi42OS0yLjgyNC0zLjMwNC00LjM2M3MtLjkyLTMuNzc2LS45Mi02LjcwM1YyNi4yMjRoLTguNTl2LTkuMDYzYzIuNTE0LS44MTUgNS4zMjQtMS45ODcgNy4xMTItMy41MSAxLjc5Ny0xLjUyNyAzLjIzNS0zLjM1NiA0LjMyLTUuNDk2QzI0LjUzIDYuMDIyIDI1LjI3NiAzLjMgMjUuNjgzIDBoMTAuMzJ2MTZINTJ2MTJIMzYuMDA0eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" alt="tumblr"></amp-img>';}?>
|
246 |
<li>
|
247 |
<a title="tumblr share" class="s_tb" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="https://www.tumblr.com/widgets/share/tool?canonicalUrl=<?php echo esc_url($amp_permalink) ?>"><?php echo $tumblr_icon; ?></a>
|
248 |
</li>
|
250 |
<?php if(ampforwp_get_setting('enable-single-telegram-share')){
|
251 |
$telegram_icon = '';
|
252 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
253 |
+
$telegram_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ1NS43MzEgNDU1LjczMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5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4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" alt="telegram"></amp-img>';
|
254 |
}?>
|
255 |
<li>
|
256 |
<a title="telegram share" class="s_tg" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $telegram_icon; ?></a>
|
259 |
<?php if(ampforwp_get_setting('enable-single-stumbleupon-share')){
|
260 |
$stumbleupon = '';
|
261 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
262 |
+
$stumbleupon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjcwLjIyMzMgNjAxLjA4NjkiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCA0MzcuMjQ3di05Mi42NzJoMTE0LjY4OHY5MS42NjRjMCA5LjU2NyAzLjQwOCAxNy44MjMgMTAuMjQgMjQuODNzMTUuMTg0IDEwLjQ5NyAyNS4wODggMTAuNDk3IDE4LjMzNi0zLjQyNCAyNS4zNDQtMTAuMjRjNy4wMDgtNi44NDggMTAuNDk2LTE1LjIgMTAuNDk2LTI1LjA4OFYyMTkuNjQ2YzAtMzkuOTM1IDE0Ljc1Mi03My45ODQgNDQuMjg4LTEwMi4xNDQgMjkuNTM2LTI4LjE2IDY0LjYwOC00Mi4yNCAxMDUuMjE2LTQyLjI0IDQwLjYwOCAwIDc1LjY4IDE0LjE2IDEwNS4yMTYgNDIuNDk2IDI5LjUyIDI4LjMzNSA0NC4zMDU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|
<a title="stumbleupon share" class="s_su" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $stumbleupon; ?></a>
|
268 |
<?php if(ampforwp_get_setting('enable-single-wechat-share')){
|
269 |
$wechat_icon = '';
|
270 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
271 |
+
$wechat_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjA0OCAxODk2LjA4MzMiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNNTgwIDQ2MXEwLTQxLTI1LTY2dC02Ni0yNXEtNDMgMC03NiAyNS41VDM4MCA0NjFxMCAzOSAzMyA2NC41dDc2IDI1LjVxNDEgMCA2Ni0yNC41dDI1LTY1LjV6bTc0MyA1MDdxMC0yOC0yNS41LTUwdC02NS41LTIycS0yNyAwLTQ5LjUgMjIuNVQxMTYwIDk2OHEwIDI4IDIyLjUgNTAuNXQ0OS41IDIyLjVxNDAgMCA2NS41LTIydDI1LjUtNTF6bS0yMzYtNTA3cTAtNDEtMjQuNS02NlQ5OTcgMzcwcS00MyAwLTc2IDI1LjVUODg4IDQ2MXEwIDM5IDMzIDY0LjV0NzYgMjUuNXE0MSAwIDY1LjUtMjQuNVQxMDg3IDQ2MXptNjM1IDUwN3EwLTI4LTI2LTUwdC02NS0yMnEtMjcgMC00OS41IDIyLjVUMTU1OSA5NjhxMCAyOCAyMi41IDUwLjV0NDkuNSAyMi41cTM5IDAgNjUtMjJ0MjYtNTF6bS0yNjYtMzk3cS0zMS00LTcwLTQtMTY5IDAtMzExIDc3VDg1MS41IDg1Mi41IDc3MCAxMTQwcTAgNzggMjMgMTUyLTM1IDMtNjggMy0yNiAwLTUwLTEuNXQtNTUtNi41LTQ0LjUtNy01NC41LTEwLjUtNTAtMTAuNWwtMjUzIDEyNyA3Mi0yMThRMCA5NjUgMCA2NzhxMC0xNjkgOTcuNS0zMTF0MjY0LTIyMy41VDcyNSA2MnExNzYgMCAzMzIuNSA2NnQyNjIgMTgyLjVUMTQ1NiA1NzF6bTU5MiA1NjFxMCAxMTctNjguNSAyMjMuNVQxNzk0IDE1NDlsNTUgMTgxLTE5OS0xMDlxLTE1MCAzNy0yMTggMzctMTY5IDAtMzExLTcwLjVUODk3LjUgMTM5NiA4MTYgMTEzMnQ4MS41LTI2NFQxMTIxIDY3Ni41dDMxMS03MC41cTE2MSAwIDMwMyA3MC41dDIyNy41IDE5MlQyMDQ4IDExMzJ6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" alt="wechat"></amp-img>';}?>
|
272 |
<li>
|
273 |
<a title="wechat share" class="s_wc" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="http://api.addthis.com/oexchange/0.8/forward/wechat/offer?url=<?php echo esc_url($amp_permalink); ?>"><?php echo $wechat_icon; ?></a>
|
274 |
</li>
|
276 |
<?php if(ampforwp_get_setting('enable-single-viber-share')){
|
277 |
$viber_icon = '';
|
278 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
279 |
+
$viber_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTAyNiAxMjM0IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTkwNCA3OTRxLTY5IDYxLTIwMCA4Ny41VDQzNCA4OTdsLTE3NiAxMzJWODY0cS04Ny0yNy0xMzYtNzAtNTgtNTEtOTAtMTQ2LjV0LTMyLTE5NSAzMi0xOTUgOTAuNS0xNDcgMTY3LjUtNzlUNTEzIDR0MjIzIDI3LjUgMTY3LjUgNzkgOTAuNSAxNDcgMzIgMTk1LTMyIDE5NVQ5MDQgNzk0ek02MzkgNTQ5bDY1IDExcS04LTEyMC05Mi41LTIwNVQ0MDcgMjYybDExIDY1cTg2IDExIDE0OCA3M3Q3MyAxNDl6TTQyOSAzOTRsMTIgNzJxNDAgMjAgNTkgNTlsNzIgMTJxLTEyLTUzLTUxLTkxLjVUNDI5IDM5NHptLTEwNyA1OXYtNjRxMC0xNy0xMi41LTM0VDI4MyAzMzAuNXQtMjEtMS41bC00NiA0N3EtMzkgMzktMTEuNSAxMjEuNXQxMDUgMTYwIDE2MCAxMDVUNTkwIDc1MWw0Ny00N3E3LTYtLjUtMjAuNVQ2MTIgNjU3dC0zNC0xMmgtNjRsLTM3IDMycS00NC0xMi0xMDkuNS03Ny41VDI5MCA0ODl6bTY0LTMyMGwxMCA2NXExMDAgMiAxODUgNTIuNXQxMzUgMTM1VDc2OSA1NzBsNjUgMTFxMC05MS0zNS41LTE3NFQ3MDMgMjY0dC0xNDMtOTUuNVQzODYgMTMzeiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" alt="viber"></amp-img>';
|
280 |
}?>
|
281 |
<li>
|
282 |
<a class="s_vb" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="viber://forward?text=<?php echo esc_url($amp_permalink); ?>"><?php echo $viber_icon; ?></a>
|
285 |
<?php if ( ampforwp_get_setting('enable-single-yummly-share')){
|
286 |
$yummly_icon = '';
|
287 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
288 |
+
$yummly_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgODk2IDEwMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAxOTN2NjQwaDg5NlYxOTNIMHptNzY4IDY0TDQ0OCA1MjEgMTI4IDI1N2g2NDB6TTY0IDMyMWwyNTIuMDMgMTkxLjYyNUw2NCA3MDVWMzIxem02NCA0NDhsMjU0LTIwNi4yNUw0NDggNjEzbDY1Ljg3NS01MC4xMjVMNzY4IDc2OUgxMjh6bTcwNC02NEw1NzkuNjI1IDUxMi45MzggODMyIDMyMXYzODR6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" alt="yummly"></amp-img>';
|
289 |
}?>
|
290 |
<li>
|
291 |
<a title="yummly share" class="s_ym" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="http://www.yummly.com/urb/verify?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&yumtype=button"><?php echo $yummly_icon; ?></a>
|
294 |
<?php if ( ampforwp_get_setting('enable-single-hatena-bookmarks')){
|
295 |
$hatena_icon = '';
|
296 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
297 |
+
$hatena_icon = '<amp-img src="data:image/svg+xml;charset=UTF-8,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'512\' height=\'512\' viewBox=\'0 0 512 512\'%3e%3cpath d=\'M 64 96 L 64 416 L 212 416 C 252 416 292 404 308 368 C 328 332 320 276 284 252 C 272 244 260 240 248 236 C 276 232 300 212 300 184 C 304 156 296 120 268 108 C 236 96 192 96 160 96 L 64 96 z M 364 96 L 364 308 L 444 308 L 444 96 L 364 96 z M 144 156 C 144 156 188 156 200 160 C 224 168 224 208 196 212 C 188 216 144 216 144 216 L 144 156 z M 144 280 C 144 280 188 280 208 284 C 232 288 240 312 228 332 C 220 348 204 348 188 348 L 144 348 L 144 280 z M 404 328 A 44 44 0 0 0 360 372 A 44 44 0 0 0 404 416 A 44 44 0 0 0 448 372 A 44 44 0 0 0 404 328 z\' style=\'fill:%23ffffff\'/%3e%3c/svg%3e" width="16" height="16" alt="hatena"></amp-img>';
|
298 |
}?>
|
299 |
<li>
|
300 |
<a title="hatena share" class="s_hb" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="http://b.hatena.ne.jp/entry/<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $hatena_icon; ?></a>
|
303 |
<?php if ( ampforwp_get_setting('enable-single-pocket-share')){
|
304 |
$pocket_icon = '';
|
305 |
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
306 |
+
$pocket_icon = '<amp-img src="data:image/svg+xml;charset=UTF-8,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'2500\' height=\'2251\' viewBox=\'75.247 261.708 445.529 401.074\'%3e%3cpath fill=\'%23EF4056\' d=\'M114.219 261.708c-24.275 1.582-38.972 15.44-38.972 40.088v147.611c0 119.893 119.242 214.114 222.393 213.37 115.986-.837 223.137-98.779 223.137-213.37V301.796c0-24.741-15.626-38.693-40.088-40.088h-366.47zm93.943 120.079L297.64 466.8l89.571-85.013c40.088-16.835 57.574 28.927 41.111 42.321L311.685 535.443c-3.813 3.628-24.183 3.628-27.996 0L167.051 424.107c-15.72-14.789 4.743-61.295 41.111-42.32z\'/%3e%3c/svg%3e" width="16" height="16" style="background: #fff;" alt="pocket"></amp-img>';
|
307 |
}?>
|
308 |
<li>
|
309 |
<a title="pocket share" class="s_pk" target="_blank" <?php ampforwp_rel_attributes_social_links(); ?> href="https://getpocket.com/save?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $pocket_icon; ?></a>
|
templates/features.php
CHANGED
@@ -512,7 +512,11 @@ define('AMPFORWP_COMMENTS_PER_PAGE', ampforwp_define_comments_number() );
|
|
512 |
$file = AMPFORWP_PLUGIN_DIR . '/templates/design-manager/design-'. ampforwp_design_selector() .'/index.php';
|
513 |
}
|
514 |
|
515 |
-
|
|
|
|
|
|
|
|
|
516 |
$file = AMPFORWP_PLUGIN_DIR . '/templates/design-manager/design-'. ampforwp_design_selector() .'/frontpage.php';
|
517 |
}
|
518 |
|
@@ -2390,6 +2394,83 @@ function ampforwp_footer_html_output() {
|
|
2390 |
if( ampforwp_get_setting('amp-footer-text-area-for-html') ) {
|
2391 |
echo ampforwp_get_setting('amp-footer-text-area-for-html') ;
|
2392 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2393 |
}
|
2394 |
|
2395 |
add_filter( 'amp_post_template_data', 'ampforwp_global_head_scripts');
|
@@ -2425,8 +2506,12 @@ function ampforwp_header_html_output() {
|
|
2425 |
$allhtml = preg_replace('/<script(.*?)custom-element=\"(.*?)\"(.*?)src=\"(.*?)\"(.*?)><\/script>/','', $allhtml);
|
2426 |
echo $allhtml;
|
2427 |
}
|
|
|
|
|
|
|
|
|
2428 |
// amphtml tag when AMP Takeover is enabled #2550
|
2429 |
-
if(ampforwp_get_setting('ampforwp-amp-takeover') == true){
|
2430 |
$amp_url = "";
|
2431 |
$amp_url = ampforwp_amphtml_generator();
|
2432 |
$canonical_url = "";
|
@@ -2851,6 +2936,14 @@ function ampforwp_sidebar_content_sanitizer($sidebar){
|
|
2851 |
|
2852 |
function ampforwp_modified_search_sidebar( $content ) {
|
2853 |
global $redux_builder_amp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2854 |
$dom = '';
|
2855 |
$dom = AMP_DOM_Utils::get_dom_from_content($content);
|
2856 |
$nodes = $dom->getElementsByTagName( 'form' );
|
@@ -2858,7 +2951,7 @@ function ampforwp_modified_search_sidebar( $content ) {
|
|
2858 |
if ( 0 !== $num_nodes ) {
|
2859 |
for ( $i = 0; $i < $nodes->length; ++$i ) {
|
2860 |
$element = $nodes->item( $i );
|
2861 |
-
if (
|
2862 |
$amp_query_variable = 'amp';
|
2863 |
$amp_query_variable_val = '1';
|
2864 |
}
|
@@ -3892,13 +3985,17 @@ function ampforwp_view_nonamp(){
|
|
3892 |
$non_amp_url = trailingslashit( $non_amp_url . '?page=' . $page);
|
3893 |
}
|
3894 |
|
3895 |
-
if ( ampforwp_get_setting('amp-mobile-redirection') ) {
|
3896 |
$non_amp_url = user_trailingslashit($non_amp_url);
|
3897 |
$non_amp_url = add_query_arg('nonamp','1',$non_amp_url);
|
3898 |
}
|
3899 |
else
|
|
|
|
|
|
|
|
|
3900 |
$non_amp_url = user_trailingslashit($non_amp_url);
|
3901 |
-
if ( true == ampforwp_get_setting('ampforwp-amp-takeover') ) {
|
3902 |
$non_amp_url = '';
|
3903 |
}
|
3904 |
|
@@ -4152,7 +4249,11 @@ function ampforwp_post_paginated_link_generator( $i ) {
|
|
4152 |
$url = get_preview_post_link( $post, $query_args, $url );
|
4153 |
|
4154 |
}
|
4155 |
-
|
|
|
|
|
|
|
|
|
4156 |
if(ampforwp_get_setting('ampforwp-pagination-link-type')==true && is_singular() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){
|
4157 |
$url = ampforwp_url_controller($url);
|
4158 |
}else{
|
@@ -5021,6 +5122,7 @@ function ampforwp_inline_related_posts(){
|
|
5021 |
$related_post_permalink = get_permalink();
|
5022 |
$related_post_permalink = trailingslashit($related_post_permalink);
|
5023 |
$related_post_permalink = ampforwp_url_controller( $related_post_permalink );
|
|
|
5024 |
if ( ampforwp_has_post_thumbnail() ) {
|
5025 |
$title_class = 'has_related_thumbnail';
|
5026 |
} else {
|
@@ -6094,7 +6196,8 @@ function ampforwp_is_non_amp( $type="" ) {
|
|
6094 |
if ( false !== get_query_var( 'amp', false ) ) {
|
6095 |
return false;
|
6096 |
}
|
6097 |
-
|
|
|
6098 |
$non_amp = true;
|
6099 |
|
6100 |
|
@@ -6198,7 +6301,22 @@ function ampforwp_is_non_amp( $type="" ) {
|
|
6198 |
}
|
6199 |
return $non_amp;
|
6200 |
}
|
6201 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6202 |
// Remove wpautop from specific posts which contain amp-components
|
6203 |
add_action('pre_amp_render_post','ampforwp_custom_wpautop');
|
6204 |
function ampforwp_custom_wpautop(){
|
@@ -7245,7 +7363,11 @@ function ampforwp_embedly_sanitizer( $sanitizer_classes ) {
|
|
7245 |
add_filter('ampforwp_is_amp_endpoint_takeover', "ampforwp_bulktool_takeover");
|
7246 |
if (! function_exists('ampforwp_bulktool_takeover') ) {
|
7247 |
function ampforwp_bulktool_takeover($data){
|
7248 |
-
|
|
|
|
|
|
|
|
|
7249 |
$bulk_option = ampforwp_get_setting('amp-pages-meta-default');
|
7250 |
$ampforwp_stored_meta = get_post_meta( ampforwp_get_the_ID(),'ampforwp-amp-on-off',true);
|
7251 |
if(is_page() && $bulk_option == "hide" && !isset($ampforwp_stored_meta)){
|
@@ -8032,12 +8154,16 @@ function ampforwp_head_css(){
|
|
8032 |
if ( $page >= '2') {
|
8033 |
$non_amp_url = trailingslashit( $non_amp_url . '?page=' . $page);
|
8034 |
}
|
8035 |
-
if ( ampforwp_get_setting('amp-mobile-redirection') ) {
|
8036 |
$non_amp_url = add_query_arg('nonamp','1',$non_amp_url);
|
8037 |
}
|
8038 |
else
|
8039 |
$non_amp_url = user_trailingslashit($non_amp_url);
|
8040 |
-
|
|
|
|
|
|
|
|
|
8041 |
$non_amp_url = '';
|
8042 |
}
|
8043 |
if ( $non_amp_url ) {
|
@@ -8938,7 +9064,7 @@ function ampforwp_extra_category_fields( $tag ) {
|
|
8938 |
$term_data = ampforwp_get_taxonomy_meta($tag->term_id);
|
8939 |
$visible = '';
|
8940 |
$visible_status = '';
|
8941 |
-
if(isset($term_data['visible'])){
|
8942 |
$visible = $term_data['visible'][0];
|
8943 |
$visible_status = $term_data['visible_status'][0];
|
8944 |
}
|
@@ -9250,4 +9376,48 @@ function ampforwp_i2prosandcons(){
|
|
9250 |
.i2-pros-cons-wrapper .i2-cons-title, .i2-pros-cons-wrapper .i2-pros-title {
|
9251 |
color: <?php echo ampforwp_sanitize_color($headingColor); ?>;
|
9252 |
}
|
9253 |
-
<?php }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
512 |
$file = AMPFORWP_PLUGIN_DIR . '/templates/design-manager/design-'. ampforwp_design_selector() .'/index.php';
|
513 |
}
|
514 |
|
515 |
+
$mob_pres_link = false;
|
516 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
517 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
518 |
+
}
|
519 |
+
if ( ampforwp_is_front_page() || ( (true == ampforwp_get_setting('ampforwp-amp-takeover') || $mob_pres_link == true) && is_front_page() && ampforwp_get_setting('amp-frontpage-select-option')) ) {
|
520 |
$file = AMPFORWP_PLUGIN_DIR . '/templates/design-manager/design-'. ampforwp_design_selector() .'/frontpage.php';
|
521 |
}
|
522 |
|
2394 |
if( ampforwp_get_setting('amp-footer-text-area-for-html') ) {
|
2395 |
echo ampforwp_get_setting('amp-footer-text-area-for-html') ;
|
2396 |
}
|
2397 |
+
//Quantcast Support #4951
|
2398 |
+
if (ampforwp_get_setting('amp-quantcast-notice-switch')) {
|
2399 |
+
$id = $hashcode = $country = $name = '';
|
2400 |
+
$id = ampforwp_get_setting('amp-quantcast-id');
|
2401 |
+
$hashcode = ampforwp_get_setting('amp-quantcast-hashcode');
|
2402 |
+
$country = ampforwp_get_setting('amp-quantcast-publishercountrycode');
|
2403 |
+
$name = ampforwp_get_setting('amp-quantcast-publishername');
|
2404 |
+
if (!empty($id) && !empty($hashcode) && !empty($country) && !empty($name) ) {?>
|
2405 |
+
<amp-consent id="quantcast" layout="nodisplay">
|
2406 |
+
<script type="application/json">
|
2407 |
+
{
|
2408 |
+
"consentInstanceId": "quantcast",
|
2409 |
+
"checkConsentHref": "https://apis.quantcast.mgr.consensu.org/amp/check-consent",
|
2410 |
+
"consentRequired": "remote",
|
2411 |
+
"promptUISrc": "https://quantcast.mgr.consensu.org/tcfv2/amp.html",
|
2412 |
+
"clientConfig": {
|
2413 |
+
"coreConfig": {
|
2414 |
+
"quantcastAccountId": "<?php echo esc_html($id); ?>",
|
2415 |
+
"privacyMode": ["GDPR"],
|
2416 |
+
"hashCode": "<?php echo esc_html($hashcode); ?>",
|
2417 |
+
"publisherCountryCode": "<?php echo esc_html($country); ?>",
|
2418 |
+
"publisherName": "<?php echo esc_html($name); ?>",
|
2419 |
+
"vendorPurposeIds": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
2420 |
+
"vendorFeaturesIds": [1, 2, 3],
|
2421 |
+
"vendorPurposeLegitimateInterestIds": [2, 3, 4, 5, 6, 7, 8, 9, 10],
|
2422 |
+
"vendorSpecialFeaturesIds": [1, 2],
|
2423 |
+
"vendorSpecialPurposesIds": [1, 2],
|
2424 |
+
"googleEnabled": false,
|
2425 |
+
"lang_": "en",
|
2426 |
+
"displayUi": "always",
|
2427 |
+
"publisherConsentRestrictionIds": [],
|
2428 |
+
"publisherLIRestrictionIds": [],
|
2429 |
+
"publisherPurposeIds": [],
|
2430 |
+
"publisherPurposeLegitimateInterestIds": [],
|
2431 |
+
"publisherSpecialPurposesIds": [],
|
2432 |
+
"publisherFeaturesIds": [],
|
2433 |
+
"publisherSpecialFeaturesIds": [],
|
2434 |
+
"stacks": [1, 42],
|
2435 |
+
"vendorListUpdateFreq": 30
|
2436 |
+
}
|
2437 |
+
}
|
2438 |
+
}
|
2439 |
+
</script>
|
2440 |
+
<!-- PRIVACY BUTTON LOWER RIGHT -->
|
2441 |
+
<div id="postPromptUI">
|
2442 |
+
<button role="button" on="tap:quantcast.prompt()">
|
2443 |
+
<svg style="height:20px">
|
2444 |
+
<g fill="none">
|
2445 |
+
<g fill="#FFF">
|
2446 |
+
<path
|
2447 |
+
d="M16 10L15 9C15 9 15 8 15 8L16 7C16 7 16 6 16 6 16
|
2448 |
+
5 15 4 14 3 14 2 13 2 13 3L12 3C12 3 11 3 11 2L11 1C11 1 10 0 10 0 9 0 7 0 6 0 6 0
|
2449 |
+
5 1 5 1L5 2C5 3 4 3 4 3L3 3C3 2 2 2 2 3 1 4 0 5 0 6 0 6 0 7 0 7L1 8C1 8 1 9 1 9L0
|
2450 |
+
10C0 10 0 11 0 11 0 12 1 13 2 14 2 15 3 15 3 14L4 14C4 14 5 14 5 15L5 16C5 16 6 17
|
2451 |
+
6 17 7 17 9 17 10 17 10 17 11 16 11 16L11 15C11 14 12 14 12 14L13 14C13 15 14 15 14
|
2452 |
+
14 15 13 16 12 16 11 16 11 16 10 16 10ZM13 13L12 13C11 13 11 13 9 14L9 16C9 16 7 16 7
|
2453 |
+
16L7 14C5 14 5 13 4 13L3 13C2 13 1 12 1 11L3 10C2 9 2 8 3 7L1 6C1 5 2 4 3 4L4 4C5 4 5
|
2454 |
+
3 7 3L7 1C7 1 9 1 9 1L9 3C11 3 11 4 12 4L13 4C14 4 15 5 15 6L13 7C14 8 14 9 13 10L15
|
2455 |
+
11C15 12 14 13 13 13ZM8 5C6 5 5 7 5 9 5 10 6 12 8 12 10 12 11 10 11 9 11 7 10 5 8 5ZM8
|
2456 |
+
11C7 11 6 10 6 9 6 7 7 6 8 6 9 6 10 7 10 9 10 10 9 11 8 11Z" />
|
2457 |
+
</g>
|
2458 |
+
</g>
|
2459 |
+
</svg>
|
2460 |
+
PRIVACY
|
2461 |
+
</button>
|
2462 |
+
</div>
|
2463 |
+
</amp-consent>
|
2464 |
+
<amp-geo layout="nodisplay">
|
2465 |
+
<script type="application/json">
|
2466 |
+
{
|
2467 |
+
"ISOCountryGroups": {
|
2468 |
+
"<?php echo esc_html($country); ?>": ["<?php echo esc_html($country); ?>"]
|
2469 |
+
}
|
2470 |
+
}
|
2471 |
+
</script>
|
2472 |
+
</amp-geo>
|
2473 |
+
<?php } }
|
2474 |
}
|
2475 |
|
2476 |
add_filter( 'amp_post_template_data', 'ampforwp_global_head_scripts');
|
2506 |
$allhtml = preg_replace('/<script(.*?)custom-element=\"(.*?)\"(.*?)src=\"(.*?)\"(.*?)><\/script>/','', $allhtml);
|
2507 |
echo $allhtml;
|
2508 |
}
|
2509 |
+
$mob_pres_link = false;
|
2510 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
2511 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
2512 |
+
}
|
2513 |
// amphtml tag when AMP Takeover is enabled #2550
|
2514 |
+
if(ampforwp_get_setting('ampforwp-amp-takeover') == true || $mob_pres_link == true){
|
2515 |
$amp_url = "";
|
2516 |
$amp_url = ampforwp_amphtml_generator();
|
2517 |
$canonical_url = "";
|
2936 |
|
2937 |
function ampforwp_modified_search_sidebar( $content ) {
|
2938 |
global $redux_builder_amp;
|
2939 |
+
$mob_pres_link = false;
|
2940 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
2941 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
2942 |
+
}
|
2943 |
+
$mob_pres_link = false;
|
2944 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
2945 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
2946 |
+
}
|
2947 |
$dom = '';
|
2948 |
$dom = AMP_DOM_Utils::get_dom_from_content($content);
|
2949 |
$nodes = $dom->getElementsByTagName( 'form' );
|
2951 |
if ( 0 !== $num_nodes ) {
|
2952 |
for ( $i = 0; $i < $nodes->length; ++$i ) {
|
2953 |
$element = $nodes->item( $i );
|
2954 |
+
if (ampforwp_get_setting('ampforwp-amp-takeover') == false && $mob_pres_link == false ) {
|
2955 |
$amp_query_variable = 'amp';
|
2956 |
$amp_query_variable_val = '1';
|
2957 |
}
|
3985 |
$non_amp_url = trailingslashit( $non_amp_url . '?page=' . $page);
|
3986 |
}
|
3987 |
|
3988 |
+
if ( ampforwp_get_setting('amp-mobile-redirection')==true && ampforwp_get_setting('amp-mob-redirection-pres-link')==false) {
|
3989 |
$non_amp_url = user_trailingslashit($non_amp_url);
|
3990 |
$non_amp_url = add_query_arg('nonamp','1',$non_amp_url);
|
3991 |
}
|
3992 |
else
|
3993 |
+
$mob_pres_link = false;
|
3994 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
3995 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
3996 |
+
}
|
3997 |
$non_amp_url = user_trailingslashit($non_amp_url);
|
3998 |
+
if ( true == ampforwp_get_setting('ampforwp-amp-takeover') || $mob_pres_link == true) {
|
3999 |
$non_amp_url = '';
|
4000 |
}
|
4001 |
|
4249 |
$url = get_preview_post_link( $post, $query_args, $url );
|
4250 |
|
4251 |
}
|
4252 |
+
$mob_pres_link = false;
|
4253 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
4254 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
4255 |
+
}
|
4256 |
+
if ( false == ampforwp_get_setting('ampforwp-amp-takeover') && $mob_pres_link == false) {
|
4257 |
if(ampforwp_get_setting('ampforwp-pagination-link-type')==true && is_singular() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){
|
4258 |
$url = ampforwp_url_controller($url);
|
4259 |
}else{
|
5122 |
$related_post_permalink = get_permalink();
|
5123 |
$related_post_permalink = trailingslashit($related_post_permalink);
|
5124 |
$related_post_permalink = ampforwp_url_controller( $related_post_permalink );
|
5125 |
+
$related_post_permalink = ampforwp_modify_url_utm_params($related_post_permalink);
|
5126 |
if ( ampforwp_has_post_thumbnail() ) {
|
5127 |
$title_class = 'has_related_thumbnail';
|
5128 |
} else {
|
6196 |
if ( false !== get_query_var( 'amp', false ) ) {
|
6197 |
return false;
|
6198 |
}
|
6199 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
6200 |
+
if (""===$type && (ampforwp_get_setting('ampforwp-amp-takeover') || $mob_pres_link == true) ) {
|
6201 |
$non_amp = true;
|
6202 |
|
6203 |
|
6301 |
}
|
6302 |
return $non_amp;
|
6303 |
}
|
6304 |
+
function ampforwp_mobile_redirect_preseve_link(){
|
6305 |
+
$redirectToAMP = false;
|
6306 |
+
if(ampforwp_get_setting('amp-mobile-redirection') == true && ampforwp_get_setting('amp-mob-redirection-pres-link') == true){
|
6307 |
+
require_once AMPFORWP_PLUGIN_DIR.'/includes/vendor/Mobile_Detect.php';
|
6308 |
+
$mobile_detect = new AMPforWP_Mobile_Detect;
|
6309 |
+
$isMobile = $mobile_detect->isMobile();
|
6310 |
+
$isTablet = $mobile_detect->isTablet();
|
6311 |
+
$isTabletUserAction = ampforwp_get_setting('amp-tablet-redirection');
|
6312 |
+
if( $isMobile && $isTabletUserAction && $isTablet ){ //Only For tablet
|
6313 |
+
$redirectToAMP = true;
|
6314 |
+
}else if($isMobile && !$isTablet){ // Only for mobile
|
6315 |
+
$redirectToAMP = true;
|
6316 |
+
}
|
6317 |
+
}
|
6318 |
+
return $redirectToAMP;
|
6319 |
+
}
|
6320 |
// Remove wpautop from specific posts which contain amp-components
|
6321 |
add_action('pre_amp_render_post','ampforwp_custom_wpautop');
|
6322 |
function ampforwp_custom_wpautop(){
|
7363 |
add_filter('ampforwp_is_amp_endpoint_takeover', "ampforwp_bulktool_takeover");
|
7364 |
if (! function_exists('ampforwp_bulktool_takeover') ) {
|
7365 |
function ampforwp_bulktool_takeover($data){
|
7366 |
+
$mob_pres_link = false;
|
7367 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
7368 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
7369 |
+
}
|
7370 |
+
if ( true == ampforwp_get_setting('ampforwp-amp-takeover') || true == ampforwp_get_setting('ampforwp-amp-convert-to-wp') || $mob_pres_link == true) {
|
7371 |
$bulk_option = ampforwp_get_setting('amp-pages-meta-default');
|
7372 |
$ampforwp_stored_meta = get_post_meta( ampforwp_get_the_ID(),'ampforwp-amp-on-off',true);
|
7373 |
if(is_page() && $bulk_option == "hide" && !isset($ampforwp_stored_meta)){
|
8154 |
if ( $page >= '2') {
|
8155 |
$non_amp_url = trailingslashit( $non_amp_url . '?page=' . $page);
|
8156 |
}
|
8157 |
+
if ( ampforwp_get_setting('amp-mobile-redirection') == true && ampforwp_get_setting('amp-mob-redirection-pres-link') == false) {
|
8158 |
$non_amp_url = add_query_arg('nonamp','1',$non_amp_url);
|
8159 |
}
|
8160 |
else
|
8161 |
$non_amp_url = user_trailingslashit($non_amp_url);
|
8162 |
+
$mob_pres_link = false;
|
8163 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
8164 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
8165 |
+
}
|
8166 |
+
if ( true == ampforwp_get_setting('ampforwp-amp-takeover') || $mob_pres_link == true) {
|
8167 |
$non_amp_url = '';
|
8168 |
}
|
8169 |
if ( $non_amp_url ) {
|
9064 |
$term_data = ampforwp_get_taxonomy_meta($tag->term_id);
|
9065 |
$visible = '';
|
9066 |
$visible_status = '';
|
9067 |
+
if(isset($term_data['visible']) && !empty($term_data['visible'])){
|
9068 |
$visible = $term_data['visible'][0];
|
9069 |
$visible_status = $term_data['visible_status'][0];
|
9070 |
}
|
9376 |
.i2-pros-cons-wrapper .i2-cons-title, .i2-pros-cons-wrapper .i2-pros-title {
|
9377 |
color: <?php echo ampforwp_sanitize_color($headingColor); ?>;
|
9378 |
}
|
9379 |
+
<?php }
|
9380 |
+
function ampforwp_modify_url_utm_params($url){
|
9381 |
+
if(true == ampforwp_get_setting('ampforwp-related-post-utm-tracking-switch') && !empty(ampforwp_get_setting('ampforwp-related-posts-utm-tracking'))){
|
9382 |
+
$modify_url = ampforwp_get_setting('ampforwp-related-posts-utm-tracking');
|
9383 |
+
$modify_url = apply_filters('ampforwp_modify_related_post_url', $modify_url);
|
9384 |
+
$url = add_query_arg($modify_url, '' , $url);
|
9385 |
+
return esc_url_raw($url);
|
9386 |
+
}
|
9387 |
+
return esc_url_raw($url);
|
9388 |
+
}
|
9389 |
+
if(true == ampforwp_get_setting('ampforwp-recent-post-utm-tracking-switch') && !empty(ampforwp_get_setting('ampforwp-recent-posts-utm-tracking'))){
|
9390 |
+
add_filter('ampforwp_loop_permalink_update','ampforwp_recent_posts_utm_tracking');
|
9391 |
+
}
|
9392 |
+
function ampforwp_recent_posts_utm_tracking($recent_post_permalink){
|
9393 |
+
if(is_single()){
|
9394 |
+
$modify_url = ampforwp_get_setting('ampforwp-recent-posts-utm-tracking');
|
9395 |
+
$modify_url = apply_filters('ampforwp_modify_recent_post_url', $modify_url);
|
9396 |
+
$recent_post_permalink = add_query_arg($modify_url, '' , $recent_post_permalink);
|
9397 |
+
return esc_url_raw($recent_post_permalink);
|
9398 |
+
}
|
9399 |
+
return esc_url_raw($recent_post_permalink);
|
9400 |
+
}
|
9401 |
+
if(ampforwp_get_setting('ampforwp-facebook-comments-support')){
|
9402 |
+
add_action('amp_post_template_head','ampforwp_facebook_moderation_tool');
|
9403 |
+
}
|
9404 |
+
function ampforwp_facebook_moderation_tool(){
|
9405 |
+
$facebook_app_id = ampforwp_get_setting('ampforwp-fb-moderation-app-id');
|
9406 |
+
if($facebook_app_id!=''){
|
9407 |
+
?>
|
9408 |
+
<meta property="fb:app_id" content="<?php echo esc_attr($facebook_app_id);?>" />
|
9409 |
+
<?php
|
9410 |
+
}
|
9411 |
+
$facebook_admin_id = ampforwp_get_setting('ampforwp-fb-moderation-admin-id');
|
9412 |
+
if($facebook_admin_id!=''){
|
9413 |
+
$ids = explode(",", $facebook_admin_id);
|
9414 |
+
for($i=0;$i<count($ids);$i++){
|
9415 |
+
$id = $ids[$i];
|
9416 |
+
if($id!=''){
|
9417 |
+
?>
|
9418 |
+
<meta property="fb:admins" content="<?php echo esc_attr($id);?>"/>
|
9419 |
+
<?php
|
9420 |
+
}
|
9421 |
+
}
|
9422 |
+
}
|
9423 |
+
}
|
templates/search-functions.php
CHANGED
@@ -80,7 +80,11 @@ function ampforwp_get_search_form() {
|
|
80 |
$action_url = esc_url( get_bloginfo('url') );
|
81 |
$action_url = preg_replace('#^http?:#', '', $action_url);
|
82 |
$placeholder = ampforwp_translation($redux_builder_amp['ampforwp-search-placeholder'], 'Type Here' );
|
83 |
-
|
|
|
|
|
|
|
|
|
84 |
$amp_query_variable = 'amp';
|
85 |
$amp_query_variable_val = '1';
|
86 |
}
|
80 |
$action_url = esc_url( get_bloginfo('url') );
|
81 |
$action_url = preg_replace('#^http?:#', '', $action_url);
|
82 |
$placeholder = ampforwp_translation($redux_builder_amp['ampforwp-search-placeholder'], 'Type Here' );
|
83 |
+
$mob_pres_link = false;
|
84 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
85 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
86 |
+
}
|
87 |
+
if ( ampforwp_get_setting('ampforwp-amp-takeover') == false && $mob_pres_link == false) {
|
88 |
$amp_query_variable = 'amp';
|
89 |
$amp_query_variable_val = '1';
|
90 |
}
|