Version Description
(21st April 2020) = * Improvement: Added Comments module in our AMP page builder #4106 * Improvement: Added CSS icons option #4268 * Improvement: Added Support for Call Rail analytics #4331 * Improvement: Added Pinterest embeded images in AMP #4361 * Improvement: Added Video docking feature in AMP #4352 * Improvement: Added option for one signal notificaion on the pages #4349 * Fixed: Mobile redirection issue on robots.txt page #4369 * Fixed: 404 error when we click on the comment section with Google Sitekit #4360 * Fixed: Fixed width not working in 2 coloum in AMP pagebuilder #4379 * Fixed: Label markup was visible even after set to empty in content module in AMP pagebuilder #4379
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.42 |
Comparing to | |
See all releases |
Code changes from version 1.0.41 to 1.0.42
- README.md +13 -26
- accelerated-moblie-pages.php +6 -3
- changelog.txt +12 -0
- classes/class-ampforwp-youtube-embed.php +3 -0
- components/components-core.php +1 -0
- includes/admin-script.js +19 -0
- includes/admin-style.css +3 -0
- includes/ampforwp-fields-array.php +17 -1
- includes/features/analytics/analytics-functions.php +9 -1
- includes/features/analytics/analytics-options.php +31 -0
- includes/features/push-notification/push-notification-functions.php +10 -5
- includes/options/admin-config.php +10 -1
- includes/redirect.php +6 -0
- includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php +13 -0
- includes/vendor/amp/includes/sanitizers/class-amp-video-sanitizer.php +3 -0
- pagebuilder/inc/viewShowFrontData.php +1 -1
- pagebuilder/modules/comments-module.php +76 -0
- pagebuilder/modules/contents-module.php +2 -1
- readme.txt +13 -26
- templates/design-manager/swift/footer.php +115 -40
- templates/design-manager/swift/functions.php +134 -37
- templates/design-manager/swift/style.php +89 -1
- templates/features.php +43 -0
README.md
CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.4
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -194,6 +194,18 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
= 1.0.41 (14th April 2020) =
|
198 |
* Improvement: Video docking issue #4352
|
199 |
|
@@ -218,29 +230,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
218 |
* Fixed: There is no save button in AMP "Basic setup" #4343
|
219 |
* Fixed: Debug warning #4341
|
220 |
|
221 |
-
= 1.0.39 (3rd April 2020) =
|
222 |
-
* Improvement: Code improvements in related post #4300
|
223 |
-
* Fixed: Images are streching in the gallary #4334
|
224 |
-
|
225 |
-
= 1.0.38 (1st April 2020) =
|
226 |
-
* Improvement: Added Title for facebook comments section #3716
|
227 |
-
* Improvement: Added iZooto support for AMP #4312
|
228 |
-
* Fixed: Alignment issue in Advertisement Section #4325
|
229 |
-
* Fixed: Slow Queries on Homepage in D3 #4319
|
230 |
-
* Fixed: Category module links in AMP pagebuilder doesn't change to ?amp #4314
|
231 |
-
* Fixed: Debug Warnings #4324 #4321 #4299
|
232 |
-
|
233 |
-
= 1.0.37 (28th March 2020) =
|
234 |
-
* Improvement: Added filter to change Author name #4238
|
235 |
-
* Improvement: Added option to show/hide jetpack related post in AMP #4272
|
236 |
-
* Improvement: Added option to show/hide sassy social share in AMP #4273
|
237 |
-
* Improvement: Added iZooto Push Notification Option #4286
|
238 |
-
* Improvement: Code Improvements in #4288 #4300
|
239 |
-
* Fixed: Fatal Error - Class ‘QM_Dispatchers’ not found. #4322
|
240 |
-
* Fixed: Header shifting to left in swift 404 page #4316
|
241 |
-
* Fixed: Fatal error on activation on old php versions #4320
|
242 |
-
* Fixed: Design breaks in 2 column layout pagebuilder in Design 2 #4313
|
243 |
-
* Fixed: Hide AMP Bulk Tools option isn't working with WPML #4249
|
244 |
-
* Fixed: Transparent header background color not working #4315
|
245 |
-
|
246 |
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.4
|
7 |
+
Stable tag: 1.0.42
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
194 |
|
195 |
== Changelog ==
|
196 |
|
197 |
+
= 1.0.42 (21st April 2020) =
|
198 |
+
* Improvement: Added Comments module in our AMP page builder #4106
|
199 |
+
* Improvement: Added CSS icons option #4268
|
200 |
+
* Improvement: Added Support for Call Rail analytics #4331
|
201 |
+
* Improvement: Added Pinterest embeded images in AMP #4361
|
202 |
+
* Improvement: Added Video docking feature in AMP #4352
|
203 |
+
* Improvement: Added option for one signal notificaion on the pages #4349
|
204 |
+
* Fixed: Mobile redirection issue on robots.txt page #4369
|
205 |
+
* Fixed: 404 error when we click on the comment section with Google Sitekit #4360
|
206 |
+
* Fixed: Fixed width not working in 2 coloum in AMP pagebuilder #4379
|
207 |
+
* Fixed: Label markup was visible even after set to empty in content module in AMP pagebuilder #4379
|
208 |
+
|
209 |
= 1.0.41 (14th April 2020) =
|
210 |
* Improvement: Video docking issue #4352
|
211 |
|
230 |
* Fixed: There is no save button in AMP "Basic setup" #4343
|
231 |
* Fixed: Debug warning #4341
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
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.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
@@ -20,7 +20,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
|
|
20 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
21 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
22 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
23 |
-
define('AMPFORWP_VERSION','1.0.
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
@@ -919,7 +919,9 @@ if(!function_exists('ampforwp_get_setup_info')){
|
|
919 |
$alexa_d = ampforwp_get_setting('ampforwp-alexa-domain');
|
920 |
$afs_c = ampforwp_get_setting('ampforwp-afs-siteid');
|
921 |
$clicky_side_id = ampforwp_get_setting('clicky-site-id');
|
922 |
-
|
|
|
|
|
923 |
$analytics_txt = "";
|
924 |
$analytic_arr = array();
|
925 |
if(ampforwp_get_setting('ampforwp-ga-switch') && $ga_field!="UA-XXXXX-Y" && $ga_field!=""){$analytic_arr[]="Google Analytics";}
|
@@ -937,6 +939,7 @@ if(!function_exists('ampforwp_get_setup_info')){
|
|
937 |
if(ampforwp_get_setting('ampforwp-Alexa-switch') && $alexa_c!="" && $alexa_d!=""){$analytic_arr[]="Alexa Metrics";}
|
938 |
if(ampforwp_get_setting('ampforwp-afs-analytics-switch') && $afs_c!=""){$analytic_arr[]="AFS Analytics";}
|
939 |
if(ampforwp_get_setting('amp-clicky-switch') && $clicky_side_id!=""){$analytic_arr[]="Clicky Analytics";}
|
|
|
940 |
$ux_content = implode(", ", $analytic_arr);
|
941 |
}else if($ux_option=="ampforwp-ux-privacy-section"){
|
942 |
$ux_cookie_enable = ampforwp_get_setting('amp-enable-notifications');
|
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.42
|
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.42');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
919 |
$alexa_d = ampforwp_get_setting('ampforwp-alexa-domain');
|
920 |
$afs_c = ampforwp_get_setting('ampforwp-afs-siteid');
|
921 |
$clicky_side_id = ampforwp_get_setting('clicky-site-id');
|
922 |
+
$cr_config_url = ampforwp_get_setting('ampforwp-callrail-config-url');
|
923 |
+
$cr_number = ampforwp_get_setting('ampforwp-callrail-number');
|
924 |
+
$cr_analytics_url = ampforwp_get_setting('ampforwp-callrail-analytics-url');
|
925 |
$analytics_txt = "";
|
926 |
$analytic_arr = array();
|
927 |
if(ampforwp_get_setting('ampforwp-ga-switch') && $ga_field!="UA-XXXXX-Y" && $ga_field!=""){$analytic_arr[]="Google Analytics";}
|
939 |
if(ampforwp_get_setting('ampforwp-Alexa-switch') && $alexa_c!="" && $alexa_d!=""){$analytic_arr[]="Alexa Metrics";}
|
940 |
if(ampforwp_get_setting('ampforwp-afs-analytics-switch') && $afs_c!=""){$analytic_arr[]="AFS Analytics";}
|
941 |
if(ampforwp_get_setting('amp-clicky-switch') && $clicky_side_id!=""){$analytic_arr[]="Clicky Analytics";}
|
942 |
+
if(ampforwp_get_setting('ampforwp-callrail-switch') && $cr_config_url!="" && $cr_number!="" && $cr_analytics_url!=""){$analytic_arr[]="Call Rail Analytics";}
|
943 |
$ux_content = implode(", ", $analytic_arr);
|
944 |
}else if($ux_option=="ampforwp-ux-privacy-section"){
|
945 |
$ux_cookie_enable = ampforwp_get_setting('amp-enable-notifications');
|
changelog.txt
CHANGED
@@ -1,5 +1,17 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.41 (14th April 2020) =
|
4 |
* Improvement: Video docking issue #4352
|
5 |
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.42 (21st April 2020) =
|
4 |
+
* Improvement: Added Comments module in our AMP page builder #4106
|
5 |
+
* Improvement: Added CSS icons option #4268
|
6 |
+
* Improvement: Added Support for Call Rail analytics #4331
|
7 |
+
* Improvement: Added Pinterest embeded images in AMP #4361
|
8 |
+
* Improvement: Added Video docking feature in AMP #4352
|
9 |
+
* Improvement: Added option for one signal notificaion on the pages #4349
|
10 |
+
* Fixed: Mobile redirection issue on robots.txt page #4369
|
11 |
+
* Fixed: 404 error when we click on the comment section with Google Sitekit #4360
|
12 |
+
* Fixed: Fixed width not working in 2 coloum in AMP pagebuilder #4379
|
13 |
+
* Fixed: Label markup was visible even after set to empty in content module in AMP pagebuilder #4379
|
14 |
+
|
15 |
= 1.0.41 (14th April 2020) =
|
16 |
* Improvement: Video docking issue #4352
|
17 |
|
classes/class-ampforwp-youtube-embed.php
CHANGED
@@ -96,6 +96,9 @@ class AMPforWP_YouTube_Embed_Handler extends AMP_Base_Embed_Handler {
|
|
96 |
'width' => $this->args['width'],
|
97 |
'height' => $this->args['height'],
|
98 |
);
|
|
|
|
|
|
|
99 |
$attrs = ampforwp_amp_consent_check( $attrs );
|
100 |
return AMP_HTML_Utils::build_tag('amp-youtube',apply_filters('amp_youtube_params', $attrs) );
|
101 |
}
|
96 |
'width' => $this->args['width'],
|
97 |
'height' => $this->args['height'],
|
98 |
);
|
99 |
+
if(ampforwp_get_setting('ampforwp-amp-video-docking')==true){
|
100 |
+
$attrs['dock'] = '#dock-slot';
|
101 |
+
}
|
102 |
$attrs = ampforwp_amp_consent_check( $attrs );
|
103 |
return AMP_HTML_Utils::build_tag('amp-youtube',apply_filters('amp_youtube_params', $attrs) );
|
104 |
}
|
components/components-core.php
CHANGED
@@ -710,6 +710,7 @@ function ampforwp_backtotop_global_css(){?>
|
|
710 |
.sharedaddy li{display:none}
|
711 |
sub {vertical-align: sub;font-size: small;}
|
712 |
sup {vertical-align: super;font-size: small;}
|
|
|
713 |
<?php if( true == ampforwp_get_setting('ampforwp-footer-top') ) { ?>
|
714 |
.btt{
|
715 |
position: fixed;
|
710 |
.sharedaddy li{display:none}
|
711 |
sub {vertical-align: sub;font-size: small;}
|
712 |
sup {vertical-align: super;font-size: small;}
|
713 |
+
amp-call-tracking a {display: none;}
|
714 |
<?php if( true == ampforwp_get_setting('ampforwp-footer-top') ) { ?>
|
715 |
.btt{
|
716 |
position: fixed;
|
includes/admin-script.js
CHANGED
@@ -1258,6 +1258,9 @@ jQuery(document).ready(function($) {
|
|
1258 |
var alexa_d = $('#ampforwp-alexa-domain').val();
|
1259 |
var afs_c = $('#ampforwp-afs-siteid').val();
|
1260 |
var clicky_side_id = $('#clicky-site-id').val();
|
|
|
|
|
|
|
1261 |
var analytics_txt = "";
|
1262 |
var analytic_arr = [];
|
1263 |
$(".ampforwp-ux-ana-sub").each(function(){
|
@@ -1278,6 +1281,7 @@ jQuery(document).ready(function($) {
|
|
1278 |
if(alexa_c!="" && alexa_d!="" && !hasCls && data_href=='ampforwp-Alexa-switch'){analytic_arr.push("Alexa Metrics");}
|
1279 |
if(afs_c!="" && !hasCls && data_href=='ampforwp-afs-analytics-switch'){analytic_arr.push("AFS Analytics");}
|
1280 |
if(clicky_side_id!="" && !hasCls && data_href=='amp-clicky-switch'){analytic_arr.push("Clicky Analytics");}
|
|
|
1281 |
});
|
1282 |
thishtml = analytic_arr.toString().replace(/,/g, ", ");
|
1283 |
button = "CONFIG";
|
@@ -1569,6 +1573,9 @@ jQuery(document).ready(function($) {
|
|
1569 |
var alexa_d = $('#ampforwp-alexa-domain').val();
|
1570 |
var afs_c = $('#ampforwp-afs-siteid').val();
|
1571 |
var clicky_side_id = $('#clicky-site-id').val();
|
|
|
|
|
|
|
1572 |
var analytics_txt = "";
|
1573 |
var checked = $('#redux_builder_amp-'+data_href).children('.switch-options').children('.ios7-switch').children('.switch-on-off').prop('checked');
|
1574 |
|
@@ -1752,6 +1759,18 @@ jQuery(document).ready(function($) {
|
|
1752 |
$('[name="redux_builder_amp['+data_href+']"]').val(0);
|
1753 |
}
|
1754 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1755 |
}
|
1756 |
}
|
1757 |
// Privacy Settings Section
|
1258 |
var alexa_d = $('#ampforwp-alexa-domain').val();
|
1259 |
var afs_c = $('#ampforwp-afs-siteid').val();
|
1260 |
var clicky_side_id = $('#clicky-site-id').val();
|
1261 |
+
var cr_config_url = $('#ampforwp-callrail-config-url').val();
|
1262 |
+
var cr_number = $('#ampforwp-callrail-number').val();
|
1263 |
+
var cr_analytics_url = $('#ampforwp-callrail-analytics-url').val();
|
1264 |
var analytics_txt = "";
|
1265 |
var analytic_arr = [];
|
1266 |
$(".ampforwp-ux-ana-sub").each(function(){
|
1281 |
if(alexa_c!="" && alexa_d!="" && !hasCls && data_href=='ampforwp-Alexa-switch'){analytic_arr.push("Alexa Metrics");}
|
1282 |
if(afs_c!="" && !hasCls && data_href=='ampforwp-afs-analytics-switch'){analytic_arr.push("AFS Analytics");}
|
1283 |
if(clicky_side_id!="" && !hasCls && data_href=='amp-clicky-switch'){analytic_arr.push("Clicky Analytics");}
|
1284 |
+
if(cr_config_url!="" && cr_number!="" && cr_analytics_url!="" && !hasCls && data_href=='ampforwp-callrail-switch'){analytic_arr.push("Call Rail Analytics");}
|
1285 |
});
|
1286 |
thishtml = analytic_arr.toString().replace(/,/g, ", ");
|
1287 |
button = "CONFIG";
|
1573 |
var alexa_d = $('#ampforwp-alexa-domain').val();
|
1574 |
var afs_c = $('#ampforwp-afs-siteid').val();
|
1575 |
var clicky_side_id = $('#clicky-site-id').val();
|
1576 |
+
var cr_config_url = $('#ampforwp-callrail-config-url').val();
|
1577 |
+
var cr_number = $('#ampforwp-callrail-number').val();
|
1578 |
+
var cr_analytics_url = $('#ampforwp-callrail-analytics-url').val();
|
1579 |
var analytics_txt = "";
|
1580 |
var checked = $('#redux_builder_amp-'+data_href).children('.switch-options').children('.ios7-switch').children('.switch-on-off').prop('checked');
|
1581 |
|
1759 |
$('[name="redux_builder_amp['+data_href+']"]').val(0);
|
1760 |
}
|
1761 |
}
|
1762 |
+
}else if(data_href=='ampforwp-callrail-switch'){
|
1763 |
+
if(cr_config_url!="" && cr_number!="" && cr_analytics_url!=""){
|
1764 |
+
if(!checked){
|
1765 |
+
$('input[data-id="'+data_href+'"]').click();
|
1766 |
+
$('[name="redux_builder_amp['+data_href+']"]').val(1);
|
1767 |
+
}
|
1768 |
+
}else if(cr_config_url=="" && cr_number=="" && cr_analytics_url==""){
|
1769 |
+
if(checked){
|
1770 |
+
$('input[data-id="'+data_href+'"]').click();
|
1771 |
+
$('[name="redux_builder_amp['+data_href+']"]').val(0);
|
1772 |
+
}
|
1773 |
+
}
|
1774 |
}
|
1775 |
}
|
1776 |
// Privacy Settings Section
|
includes/admin-style.css
CHANGED
@@ -2070,4 +2070,7 @@ i.dashicons.dashicons-before.dashicons-update {
|
|
2070 |
}
|
2071 |
fieldset#redux_builder_amp-ampforwp-onesignal-positioning {
|
2072 |
padding: 0;
|
|
|
|
|
|
|
2073 |
}
|
2070 |
}
|
2071 |
fieldset#redux_builder_amp-ampforwp-onesignal-positioning {
|
2072 |
padding: 0;
|
2073 |
+
}
|
2074 |
+
.ux-field-container.amp-ux-text-container {
|
2075 |
+
padding: 10px 0 0 15px;
|
2076 |
}
|
includes/ampforwp-fields-array.php
CHANGED
@@ -12,7 +12,7 @@ if($current_page=="amp_options"){
|
|
12 |
$options[$page->ID] = $page->post_title;
|
13 |
}
|
14 |
}
|
15 |
-
$analytics_options = array(''=>'Add Analytics Type','ampforwp-ga-switch'=>'Google Analytics','amp-use-gtm-option'=>'Google Tag Manager','ampforwp-Segment-switch'=>'Segment Analytics','ampforwp-Piwik-switch'=>'Matomo (Piwik) Analytics','ampforwp-Quantcast-switch'=>'Quantcast Measurement','ampforwp-comScore-switch'=>'comScore', 'ampforwp-Effective-switch'=>'Effective Measure','ampforwp-StatCounter-switch'=>'StatCounter','ampforwp-Histats-switch'=>'Histats Analytics','ampforwp-Yandex-switch'=>'Yandex Metrika','ampforwp-Chartbeat-switch'=>'Chartbeat Analytics','ampforwp-Alexa-switch'=>'Alexa Metrics','ampforwp-afs-analytics-switch'=>'AFS Analytics','amp-fb-pixel'=>'Facebook Pixel','amp-clicky-switch'=>'Clicky Analytics');
|
16 |
$analytics_default_option = ampforwp_get_setting('amp-analytics-select-option');
|
17 |
$analytics_default = 'ampforwp-ga-switch';
|
18 |
switch ($analytics_default_option) {
|
@@ -58,6 +58,9 @@ switch ($analytics_default_option) {
|
|
58 |
case '14':
|
59 |
$analytics_default = 'amp-clicky-switch';
|
60 |
break;
|
|
|
|
|
|
|
61 |
default:
|
62 |
break;
|
63 |
}
|
@@ -353,6 +356,19 @@ $amp_ux_fields = array(
|
|
353 |
array('field_type'=>'text', 'field_data'=>array('title'=>'Clicky Site ID','id'=>'amp-ux-cl','class'=>'amp-ux-cl analytics-text','required'=>array(),'element-class'=>'ux-label','data-text'=>'clicky-site-id','default'=>ampforwp_get_setting('clicky-site-id'))
|
354 |
),
|
355 |
array('field_type'=>'sub_section_end','field_data'=>array()),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
array('field_type'=>'sub_section_start',
|
357 |
'field_data'=>array('id'=>'ampforwp-ux-ano-analytics-section','class'=>'ampforwp-ux-sub-section','default'=>1,'closable'=>0)
|
358 |
),
|
12 |
$options[$page->ID] = $page->post_title;
|
13 |
}
|
14 |
}
|
15 |
+
$analytics_options = array(''=>'Add Analytics Type','ampforwp-ga-switch'=>'Google Analytics','amp-use-gtm-option'=>'Google Tag Manager','ampforwp-Segment-switch'=>'Segment Analytics','ampforwp-Piwik-switch'=>'Matomo (Piwik) Analytics','ampforwp-Quantcast-switch'=>'Quantcast Measurement','ampforwp-comScore-switch'=>'comScore', 'ampforwp-Effective-switch'=>'Effective Measure','ampforwp-StatCounter-switch'=>'StatCounter','ampforwp-Histats-switch'=>'Histats Analytics','ampforwp-Yandex-switch'=>'Yandex Metrika','ampforwp-Chartbeat-switch'=>'Chartbeat Analytics','ampforwp-Alexa-switch'=>'Alexa Metrics','ampforwp-afs-analytics-switch'=>'AFS Analytics','amp-fb-pixel'=>'Facebook Pixel','amp-clicky-switch'=>'Clicky Analytics','ampforwp-callrail-switch'=>'Call Rail Analytics');
|
16 |
$analytics_default_option = ampforwp_get_setting('amp-analytics-select-option');
|
17 |
$analytics_default = 'ampforwp-ga-switch';
|
18 |
switch ($analytics_default_option) {
|
58 |
case '14':
|
59 |
$analytics_default = 'amp-clicky-switch';
|
60 |
break;
|
61 |
+
case '15':
|
62 |
+
$analytics_default = 'ampforwp-callrail-switch';
|
63 |
+
break;
|
64 |
default:
|
65 |
break;
|
66 |
}
|
356 |
array('field_type'=>'text', 'field_data'=>array('title'=>'Clicky Site ID','id'=>'amp-ux-cl','class'=>'amp-ux-cl analytics-text','required'=>array(),'element-class'=>'ux-label','data-text'=>'clicky-site-id','default'=>ampforwp_get_setting('clicky-site-id'))
|
357 |
),
|
358 |
array('field_type'=>'sub_section_end','field_data'=>array()),
|
359 |
+
array('field_type'=>'sub_section_start',
|
360 |
+
'field_data'=>array('id'=>'ampforwp-ux-cr-analytics-section','class'=>'ampforwp-ux-sub-section ampforwp-ux-ana-sub','default'=>ampforwp_check_analytics_setup('Call Rail Analytics'),'closable'=>1,'data-href'=>'ampforwp-callrail-switch')
|
361 |
+
),
|
362 |
+
array('field_type'=>'heading',
|
363 |
+
'field_data'=>array('title'=>'Call Rail Analytics','class'=>'child_opt child_opt_arrow')
|
364 |
+
),
|
365 |
+
array('field_type'=>'text', 'field_data'=>array('title'=>'Config URL','id'=>'amp-ux-cr','class'=>'amp-ux-cr analytics-text','required'=>array(),'element-class'=>'ux-label','data-text'=>'ampforwp-callrail-config-url','default'=>ampforwp_get_setting('ampforwp-callrail-config-url'))
|
366 |
+
),
|
367 |
+
array('field_type'=>'text', 'field_data'=>array('title'=>'Tell Number','id'=>'amp-ux-cr','class'=>'amp-ux-cr analytics-text','required'=>array(),'element-class'=>'ux-label','data-text'=>'ampforwp-callrail-number','default'=>ampforwp_get_setting('ampforwp-callrail-number'))
|
368 |
+
),
|
369 |
+
array('field_type'=>'text', 'field_data'=>array('title'=>'Analytics Config URL','id'=>'amp-ux-cr','class'=>'amp-ux-cr analytics-text','required'=>array(),'element-class'=>'ux-label','data-text'=>'ampforwp-callrail-analytics-url','default'=>ampforwp_get_setting('ampforwp-callrail-analytics-url'))
|
370 |
+
),
|
371 |
+
array('field_type'=>'sub_section_end','field_data'=>array()),
|
372 |
array('field_type'=>'sub_section_start',
|
373 |
'field_data'=>array('id'=>'ampforwp-ux-ano-analytics-section','class'=>'ampforwp-ux-sub-section','default'=>1,'closable'=>0)
|
374 |
),
|
includes/features/analytics/analytics-functions.php
CHANGED
@@ -294,7 +294,15 @@ function ampforwp_analytics() {
|
|
294 |
</amp-analytics>
|
295 |
<!-- End AFS Analytics Javascript -->
|
296 |
<?php
|
297 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
}
|
299 |
// 89. Facebook Pixel
|
300 |
add_action('amp_post_template_footer','ampforwp_facebook_pixel',11);
|
294 |
</amp-analytics>
|
295 |
<!-- End AFS Analytics Javascript -->
|
296 |
<?php
|
297 |
+
}
|
298 |
+
if( true == ampforwp_get_setting('ampforwp-callrail-switch')) {
|
299 |
+
$config_url = $number = $analytics_url = '';
|
300 |
+
$config_url = ampforwp_get_setting('ampforwp-callrail-config-url');
|
301 |
+
$number = ampforwp_get_setting('ampforwp-callrail-number');
|
302 |
+
$analytics_url = ampforwp_get_setting('ampforwp-callrail-analytics-url');
|
303 |
+
if(!empty($config_url) && !empty($number) && !empty($analytics_url)){?>
|
304 |
+
<amp-call-tracking config="<?php echo esc_url($config_url); ?>"><a href="tel:<?php echo esc_attr($number);?>"><?php echo esc_html($number);?></a></amp-call-tracking><amp-analytics config="<?php echo esc_url($analytics_url); ?>"></amp-analytics>
|
305 |
+
<?php } }
|
306 |
}
|
307 |
// 89. Facebook Pixel
|
308 |
add_action('amp_post_template_footer','ampforwp_facebook_pixel',11);
|
includes/features/analytics/analytics-options.php
CHANGED
@@ -502,6 +502,37 @@ function ampforwp_analytics_options($opt_name){
|
|
502 |
),
|
503 |
'placeholder' => esc_html__('YOUR_SITE_ID_HERE','accelerated-mobile-pages'),
|
504 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
|
506 |
)
|
507 |
)
|
502 |
),
|
503 |
'placeholder' => esc_html__('YOUR_SITE_ID_HERE','accelerated-mobile-pages'),
|
504 |
),
|
505 |
+
//Call Rail Analytics
|
506 |
+
array(
|
507 |
+
'id' =>'ampforwp-callrail-switch',
|
508 |
+
'type' => 'switch',
|
509 |
+
'title' => esc_html__('Call Rail Analytics','accelerated-mobile-pages'),
|
510 |
+
'default' => 0,
|
511 |
+
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
|
512 |
+
esc_html__('Enable this option to track callrail analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-callrail-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
|
513 |
+
),
|
514 |
+
array(
|
515 |
+
'id' => 'ampforwp-callrail-config-url',
|
516 |
+
'type' => 'text',
|
517 |
+
'title' => esc_html__( 'Config URL', 'accelerated-mobile-pages' ),
|
518 |
+
'tooltip-subtitle' => esc_html__( 'Enter your Call Rail Analytics Site Config URL','accelerated-mobile-pages'),
|
519 |
+
'desc'=>sprintf( '<a href="https://ampforwp.com/tutorials/article/how-to-add-callrail-analytics-in-amp/" target="_blank">%s</a>',esc_html__('View integration tutorial','accelerated-mobile-pages' )),
|
520 |
+
'required' => array('ampforwp-callrail-switch', '=' , '1')
|
521 |
+
),
|
522 |
+
array(
|
523 |
+
'id' => 'ampforwp-callrail-number',
|
524 |
+
'type' => 'text',
|
525 |
+
'title' => esc_html__( 'Tell Number', 'accelerated-mobile-pages' ),
|
526 |
+
'tooltip-subtitle' => esc_html__( 'Enter your Tell Number for Call Rail Analytics','accelerated-mobile-pages'),
|
527 |
+
'required' => array('ampforwp-callrail-switch', '=' , '1')
|
528 |
+
),
|
529 |
+
array(
|
530 |
+
'id' => 'ampforwp-callrail-analytics-url',
|
531 |
+
'type' => 'text',
|
532 |
+
'title' => esc_html__( 'Analytics Config URL', 'accelerated-mobile-pages' ),
|
533 |
+
'tooltip-subtitle' => esc_html__( 'Enter your Analytics Config URL','accelerated-mobile-pages'),
|
534 |
+
'required' => array('ampforwp-callrail-switch', '=' , '1')
|
535 |
+
),
|
536 |
|
537 |
)
|
538 |
)
|
includes/features/push-notification/push-notification-functions.php
CHANGED
@@ -102,9 +102,11 @@ if(function_exists('amp_activate')){
|
|
102 |
|
103 |
if( ! function_exists('ampforwp_onesignal_notifications_widget') ){
|
104 |
function ampforwp_onesignal_notifications_widget(){
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
108 |
<!-- A subscription widget -->
|
109 |
<div class="amp-web-push-container">
|
110 |
<amp-web-push-widget visibility="unsubscribed" layout="fixed" width="245" height="45">
|
@@ -150,8 +152,11 @@ if(!function_exists('ampforwp_onesignal_notifications_script')){
|
|
150 |
add_action('amp_post_template_css' , 'ampforwp_onesignal_notifications_styling' , 99);
|
151 |
if(!function_exists('ampforwp_onesignal_notifications_styling')){
|
152 |
function ampforwp_onesignal_notifications_styling(){
|
153 |
-
|
154 |
-
if(
|
|
|
|
|
|
|
155 |
amp-web-push-widget button.subscribe { display: inline-flex; align-items: center; border-radius: 2px; border: 0; box-sizing: border-box; margin: 0; padding: 10px 15px; cursor: pointer; outline: none; font-size: 15px; font-weight: 400; background: #4A90E2; color: white; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
|
156 |
amp-web-push-widget button.subscribe .subscribe-icon {margin-right: 10px;}
|
157 |
amp-web-push-widget button.subscribe:active {transform: scale(0.99);}
|
102 |
|
103 |
if( ! function_exists('ampforwp_onesignal_notifications_widget') ){
|
104 |
function ampforwp_onesignal_notifications_widget(){
|
105 |
+
$checker = false;
|
106 |
+
if ( is_single() || ( (is_page() || ampforwp_is_front_page()) && true == ampforwp_get_setting('ampforwp-one-signal-page'))){
|
107 |
+
$checker = true;
|
108 |
+
}
|
109 |
+
if('1' == ampforwp_get_setting('ampforwp-web-push') && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && $checker ){?>
|
110 |
<!-- A subscription widget -->
|
111 |
<div class="amp-web-push-container">
|
112 |
<amp-web-push-widget visibility="unsubscribed" layout="fixed" width="245" height="45">
|
152 |
add_action('amp_post_template_css' , 'ampforwp_onesignal_notifications_styling' , 99);
|
153 |
if(!function_exists('ampforwp_onesignal_notifications_styling')){
|
154 |
function ampforwp_onesignal_notifications_styling(){
|
155 |
+
$checker = false;
|
156 |
+
if ( is_single() || ( (is_page() || ampforwp_is_front_page()) && true == ampforwp_get_setting('ampforwp-one-signal-page'))){
|
157 |
+
$checker = true;
|
158 |
+
}
|
159 |
+
if('1' == ampforwp_get_setting('ampforwp-web-push') && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && $checker ){?>
|
160 |
amp-web-push-widget button.subscribe { display: inline-flex; align-items: center; border-radius: 2px; border: 0; box-sizing: border-box; margin: 0; padding: 10px 15px; cursor: pointer; outline: none; font-size: 15px; font-weight: 400; background: #4A90E2; color: white; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
|
161 |
amp-web-push-widget button.subscribe .subscribe-icon {margin-right: 10px;}
|
162 |
amp-web-push-widget button.subscribe:active {transform: scale(0.99);}
|
includes/options/admin-config.php
CHANGED
@@ -4041,7 +4041,8 @@ Redux::setSection( $opt_name, array(
|
|
4041 |
'title' => esc_html__('Font Icon Library', 'accelerated-mobile-pages'),
|
4042 |
'options' => array(
|
4043 |
'swift-icons' => 'Swift Icons',
|
4044 |
-
'fontawesome-icons' => 'Font Awesome Icons'
|
|
|
4045 |
),
|
4046 |
'default' => 'swift-icons',
|
4047 |
),
|
@@ -6196,6 +6197,14 @@ $single_page_options = array(
|
|
6196 |
esc_html__('Enable this option to show lightbox for images in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-enable-lightbox-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
|
6197 |
|
6198 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6199 |
// Dropcap
|
6200 |
array(
|
6201 |
'id' => 'ampforwp-dropcap',
|
4041 |
'title' => esc_html__('Font Icon Library', 'accelerated-mobile-pages'),
|
4042 |
'options' => array(
|
4043 |
'swift-icons' => 'Swift Icons',
|
4044 |
+
'fontawesome-icons' => 'Font Awesome Icons',
|
4045 |
+
'css-icons' => 'CSS Icons'
|
4046 |
),
|
4047 |
'default' => 'swift-icons',
|
4048 |
),
|
6197 |
esc_html__('Enable this option to show lightbox for images in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-enable-lightbox-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
|
6198 |
|
6199 |
),
|
6200 |
+
// video-docking
|
6201 |
+
array(
|
6202 |
+
'id' => 'ampforwp-amp-video-docking',
|
6203 |
+
'type' => 'switch',
|
6204 |
+
'title' => esc_html__('Video Docking', 'accelerated-mobile-pages'),
|
6205 |
+
'tooltip-subtitle' => esc_html__('On scroll, the video will minimize to an automatically calculated corner.', 'accelerated-mobile-pages'),
|
6206 |
+
'default' => 0,
|
6207 |
+
),
|
6208 |
// Dropcap
|
6209 |
array(
|
6210 |
'id' => 'ampforwp-dropcap',
|
includes/redirect.php
CHANGED
@@ -67,6 +67,9 @@ if(is_search() && 0 == ampforwp_get_setting('amp-redirection-search')){
|
|
67 |
$current_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ?
|
68 |
"https" : "http") . "://" . AMPFROWP_HOST_NAME .
|
69 |
htmlspecialchars( $_SERVER['REQUEST_URI'] );
|
|
|
|
|
|
|
70 |
$current_url = explode('/', $current_url);
|
71 |
$check = '?nonamp=1';
|
72 |
if (( isset($_GET['nonamp']) && 1 == $_GET['nonamp'] ) && function_exists('session_start') && !isset($_SESSION)){
|
@@ -245,6 +248,9 @@ if(is_search() && 0 == ampforwp_get_setting('amp-redirection-search')){
|
|
245 |
if(get_query_var( 'json' )){
|
246 |
return;
|
247 |
}
|
|
|
|
|
|
|
248 |
// #1192 Password Protected posts exclusion
|
249 |
if ( post_password_required( $post ) ) {
|
250 |
return;
|
67 |
$current_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ?
|
68 |
"https" : "http") . "://" . AMPFROWP_HOST_NAME .
|
69 |
htmlspecialchars( $_SERVER['REQUEST_URI'] );
|
70 |
+
if(function_exists('googlesitekit_activate_plugin')){
|
71 |
+
$current_url = remove_query_arg( '_gl', $current_url);
|
72 |
+
}
|
73 |
$current_url = explode('/', $current_url);
|
74 |
$check = '?nonamp=1';
|
75 |
if (( isset($_GET['nonamp']) && 1 == $_GET['nonamp'] ) && function_exists('session_start') && !isset($_SESSION)){
|
248 |
if(get_query_var( 'json' )){
|
249 |
return;
|
250 |
}
|
251 |
+
if(get_query_var( 'robots' )){
|
252 |
+
return;
|
253 |
+
}
|
254 |
// #1192 Password Protected posts exclusion
|
255 |
if ( post_password_required( $post ) ) {
|
256 |
return;
|
includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php
CHANGED
@@ -2596,6 +2596,7 @@ class AMP_Allowed_Tags_Generated {
|
|
2596 |
'[artwork]' => array(),
|
2597 |
'[attribution]' => array(),
|
2598 |
'[controls]' => array(),
|
|
|
2599 |
'[controlslist]' => array(),
|
2600 |
'[loop]' => array(),
|
2601 |
'[poster]' => array(),
|
@@ -2613,6 +2614,9 @@ class AMP_Allowed_Tags_Generated {
|
|
2613 |
'controls' => array(
|
2614 |
'value' => '',
|
2615 |
),
|
|
|
|
|
|
|
2616 |
'controlslist' => array(),
|
2617 |
'crossorigin' => array(),
|
2618 |
'disableremoteplayback' => array(
|
@@ -2637,6 +2641,7 @@ class AMP_Allowed_Tags_Generated {
|
|
2637 |
),
|
2638 |
'placeholder' => array(),
|
2639 |
'poster' => array(),
|
|
|
2640 |
'preload' => array(
|
2641 |
'value_regex' => '(none|metadata|auto|)',
|
2642 |
),
|
@@ -2668,6 +2673,7 @@ class AMP_Allowed_Tags_Generated {
|
|
2668 |
'[artwork]' => array(),
|
2669 |
'[attribution]' => array(),
|
2670 |
'[controls]' => array(),
|
|
|
2671 |
'[controlslist]' => array(),
|
2672 |
'[loop]' => array(),
|
2673 |
'[poster]' => array(),
|
@@ -2685,6 +2691,9 @@ class AMP_Allowed_Tags_Generated {
|
|
2685 |
'controls' => array(
|
2686 |
'value' => '',
|
2687 |
),
|
|
|
|
|
|
|
2688 |
'controlslist' => array(),
|
2689 |
'crossorigin' => array(),
|
2690 |
'disableremoteplayback' => array(
|
@@ -2872,6 +2881,7 @@ class AMP_Allowed_Tags_Generated {
|
|
2872 |
array(
|
2873 |
'attr_spec_list' => array(
|
2874 |
'[data-videoid]' => array(),
|
|
|
2875 |
'autoplay' => array(),
|
2876 |
'credentials' => array(
|
2877 |
'value_regex_casei' => '(include|omit)',
|
@@ -2882,6 +2892,9 @@ class AMP_Allowed_Tags_Generated {
|
|
2882 |
'data-videoid' => array(
|
2883 |
'value_regex' => '[^=/?:]+',
|
2884 |
),
|
|
|
|
|
|
|
2885 |
'lightbox' => array(),
|
2886 |
'lightbox-exclude' => array(
|
2887 |
'value' => '',
|
2596 |
'[artwork]' => array(),
|
2597 |
'[attribution]' => array(),
|
2598 |
'[controls]' => array(),
|
2599 |
+
'[dock]' => array(),
|
2600 |
'[controlslist]' => array(),
|
2601 |
'[loop]' => array(),
|
2602 |
'[poster]' => array(),
|
2614 |
'controls' => array(
|
2615 |
'value' => '',
|
2616 |
),
|
2617 |
+
'dock' => array(
|
2618 |
+
'value' => '#dock-slot',
|
2619 |
+
),
|
2620 |
'controlslist' => array(),
|
2621 |
'crossorigin' => array(),
|
2622 |
'disableremoteplayback' => array(
|
2641 |
),
|
2642 |
'placeholder' => array(),
|
2643 |
'poster' => array(),
|
2644 |
+
'dock' => array(),
|
2645 |
'preload' => array(
|
2646 |
'value_regex' => '(none|metadata|auto|)',
|
2647 |
),
|
2673 |
'[artwork]' => array(),
|
2674 |
'[attribution]' => array(),
|
2675 |
'[controls]' => array(),
|
2676 |
+
'[dock]' => array(),
|
2677 |
'[controlslist]' => array(),
|
2678 |
'[loop]' => array(),
|
2679 |
'[poster]' => array(),
|
2691 |
'controls' => array(
|
2692 |
'value' => '',
|
2693 |
),
|
2694 |
+
'dock' => array(
|
2695 |
+
'value' => '#dock-slot',
|
2696 |
+
),
|
2697 |
'controlslist' => array(),
|
2698 |
'crossorigin' => array(),
|
2699 |
'disableremoteplayback' => array(
|
2881 |
array(
|
2882 |
'attr_spec_list' => array(
|
2883 |
'[data-videoid]' => array(),
|
2884 |
+
'[dock]' => array(),
|
2885 |
'autoplay' => array(),
|
2886 |
'credentials' => array(
|
2887 |
'value_regex_casei' => '(include|omit)',
|
2892 |
'data-videoid' => array(
|
2893 |
'value_regex' => '[^=/?:]+',
|
2894 |
),
|
2895 |
+
'dock' => array(
|
2896 |
+
'value' => '#dock-slot',
|
2897 |
+
),
|
2898 |
'lightbox' => array(),
|
2899 |
'lightbox-exclude' => array(
|
2900 |
'value' => '',
|
includes/vendor/amp/includes/sanitizers/class-amp-video-sanitizer.php
CHANGED
@@ -39,6 +39,9 @@ class AMP_Video_Sanitizer extends AMP_Base_Sanitizer {
|
|
39 |
|
40 |
$new_attributes = $this->enforce_fixed_height( $new_attributes );
|
41 |
$new_attributes = $this->enforce_sizes_attribute( $new_attributes );
|
|
|
|
|
|
|
42 |
$new_node = AMP_DOM_Utils::create_node( $this->dom, 'amp-video', $new_attributes );
|
43 |
|
44 |
// TODO: `source` does not have closing tag, and DOMDocument doesn't handle it well.
|
39 |
|
40 |
$new_attributes = $this->enforce_fixed_height( $new_attributes );
|
41 |
$new_attributes = $this->enforce_sizes_attribute( $new_attributes );
|
42 |
+
if(ampforwp_get_setting('ampforwp-amp-video-docking')==true){
|
43 |
+
$new_attributes['dock'] = '#dock-slot';
|
44 |
+
}
|
45 |
$new_node = AMP_DOM_Utils::create_node( $this->dom, 'amp-video', $new_attributes );
|
46 |
|
47 |
// TODO: `source` does not have closing tag, and DOMDocument doesn't handle it well.
|
pagebuilder/inc/viewShowFrontData.php
CHANGED
@@ -635,7 +635,7 @@ function amppb_post_content($content){
|
|
635 |
foreach($rowsData['cell_data'] as $colDevider){
|
636 |
$colData[$colDevider['cell_container']][] = $colDevider;
|
637 |
}
|
638 |
-
$html .= '<div class="col-2-wrap">';
|
639 |
foreach($colData as $data)
|
640 |
$html .= ampforwp_rowData($data,$rowsData['cells'],$moduleTemplate);
|
641 |
$html .= '</div>';
|
635 |
foreach($rowsData['cell_data'] as $colDevider){
|
636 |
$colData[$colDevider['cell_container']][] = $colDevider;
|
637 |
}
|
638 |
+
$html .= '<div class="col-2-wrap col">';
|
639 |
foreach($colData as $data)
|
640 |
$html .= ampforwp_rowData($data,$rowsData['cells'],$moduleTemplate);
|
641 |
$html .= '</div>';
|
pagebuilder/modules/comments-module.php
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Exit if accessed directly.
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
+
function ampforwp_get_pb_comment_list($moduleFrontHtml, $moduleTemplate, $contentArray){
|
5 |
+
$output = '';
|
6 |
+
if($moduleTemplate['name']!="comments"){return $moduleFrontHtml; }
|
7 |
+
if (ampforwp_get_setting('wordpress-comments-support')) {
|
8 |
+
global $post;
|
9 |
+
$comments = $max_page = "";
|
10 |
+
$postID = $post->ID;
|
11 |
+
$output = '<div class="pb-comments">';
|
12 |
+
$order = get_option( 'comment_order');
|
13 |
+
$comments = get_comments(array(
|
14 |
+
'post_id' => intval($postID),
|
15 |
+
'status' => 'approve',
|
16 |
+
'order' =>esc_attr($order)
|
17 |
+
));
|
18 |
+
|
19 |
+
if ( $comments ) {
|
20 |
+
$output .= '<div {{if_id}}id="{{id}}"{{ifend_id}} class="pb-comments-wrapper {{if_user_class}}{{user_class}}{{ifend_user_class}}">
|
21 |
+
<h3><span>'.ampforwp_get_setting('amp-translator-view-comments-text').'</span></h3>
|
22 |
+
<ul>';
|
23 |
+
foreach ($comments as $key => $value) {
|
24 |
+
if($value->user_id!=0){
|
25 |
+
$avatar = get_avatar_url( $value->comment_author_email);
|
26 |
+
$output .='<li>';
|
27 |
+
if(ampforwp_get_setting('ampforwp-display-avatar')){
|
28 |
+
$output .='<div class="fn"><img src="'.esc_url($avatar).'" height="50" width="50"/></div>';
|
29 |
+
}
|
30 |
+
$output .='<div class="pbc-auth-info"><div class="pbc-auth-name"><b class="fn">'.esc_attr($value->comment_author).'</b></div>';
|
31 |
+
$output .='<span>'.esc_attr(date('F d, Y H:i:s', strtotime($value->comment_date))).'</span></div>';
|
32 |
+
$output .='<p class="pbc-comment">'.wp_kses_post($value->comment_content).'</p>';
|
33 |
+
$output .='</li>';
|
34 |
+
}
|
35 |
+
}
|
36 |
+
$output .='</ul>';
|
37 |
+
$output .='</div>';
|
38 |
+
}
|
39 |
+
$output .='</div>';
|
40 |
+
}
|
41 |
+
return $output;
|
42 |
+
}
|
43 |
+
add_filter("ampforwp_extension_pagebuilder_module_template",'ampforwp_get_pb_comment_list' ,10,3);
|
44 |
+
$output_html = "{{Comment_HTML}}";
|
45 |
+
$css = '.pb-comments-wrapper ul li{list-style-type:none;position:relative;} .pbc-auth-info{position:absolute;top:2px;left:56px;} .pbc-auth-name{margin-bottom:5px}.pbc-comment{margin-top:10px;margin-bottom:10px;} .pb-comments-wrapper h3{margin-bottom: 16px;line-height:35px;border-bottom: 1px solid #d7d7d7;}';
|
46 |
+
return array(
|
47 |
+
'label' =>'Comments',
|
48 |
+
'name' =>'comments',
|
49 |
+
'default_tab'=> 'advanced',
|
50 |
+
'tabs' => array(
|
51 |
+
'advanced' => 'Advanced'
|
52 |
+
),
|
53 |
+
|
54 |
+
'fields' => array(
|
55 |
+
array(
|
56 |
+
'type' =>'text',
|
57 |
+
'name' =>"id",
|
58 |
+
'label' =>'ID',
|
59 |
+
'tab' =>'advanced',
|
60 |
+
'default' =>'',
|
61 |
+
'content_type'=>'html'
|
62 |
+
),
|
63 |
+
array(
|
64 |
+
'type' =>'text',
|
65 |
+
'name' =>"user_class",
|
66 |
+
'label' =>'Class',
|
67 |
+
'tab' =>'advanced',
|
68 |
+
'default' =>'',
|
69 |
+
'content_type'=>'html'
|
70 |
+
),
|
71 |
+
),
|
72 |
+
'front_template'=> $output_html,
|
73 |
+
'front_css'=> '',
|
74 |
+
'front_common_css'=>$css,
|
75 |
+
);
|
76 |
+
?>
|
pagebuilder/modules/contents-module.php
CHANGED
@@ -21,7 +21,8 @@ function ampforwp_content_module_pagination($args, $fieldValues){
|
|
21 |
}
|
22 |
}
|
23 |
$output = '{{if_condition_content_layout_type==1}}
|
24 |
-
<div {{if_id}}id="{{id}}"{{ifend_id}} class="pb_mod cm {{user_class}}"
|
|
|
25 |
<div class="wrap"><ul>{{category_selection}}</ul></div>
|
26 |
{{pagination_links}}
|
27 |
</div>
|
21 |
}
|
22 |
}
|
23 |
$output = '{{if_condition_content_layout_type==1}}
|
24 |
+
<div {{if_id}}id="{{id}}"{{ifend_id}} class="pb_mod cm {{user_class}}">
|
25 |
+
{{if_content_title}}<h4>{{content_title}}</h4> {{ifend_content_title}}
|
26 |
<div class="wrap"><ul>{{category_selection}}</ul></div>
|
27 |
{{pagination_links}}
|
28 |
</div>
|
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.4
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,6 +191,18 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
= 1.0.41 (14th April 2020) =
|
195 |
* Improvement: Video docking issue #4352
|
196 |
|
@@ -215,29 +227,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
215 |
* Fixed: There is no save button in AMP "Basic setup" #4343
|
216 |
* Fixed: Debug warning #4341
|
217 |
|
218 |
-
= 1.0.39 (3rd April 2020) =
|
219 |
-
* Improvement: Code improvements in related post #4300
|
220 |
-
* Fixed: Images are streching in the gallary #4334
|
221 |
-
|
222 |
-
= 1.0.38 (1st April 2020) =
|
223 |
-
* Improvement: Added Title for facebook comments section #3716
|
224 |
-
* Improvement: Added iZooto support for AMP #4312
|
225 |
-
* Fixed: Alignment issue in Advertisement Section #4325
|
226 |
-
* Fixed: Slow Queries on Homepage in D3 #4319
|
227 |
-
* Fixed: Category module links in AMP pagebuilder doesn't change to ?amp #4314
|
228 |
-
* Fixed: Debug Warnings #4324 #4321 #4299
|
229 |
-
|
230 |
-
= 1.0.37 (28th March 2020) =
|
231 |
-
* Improvement: Added filter to change Author name #4238
|
232 |
-
* Improvement: Added option to show/hide jetpack related post in AMP #4272
|
233 |
-
* Improvement: Added option to show/hide sassy social share in AMP #4273
|
234 |
-
* Improvement: Added iZooto Push Notification Option #4286
|
235 |
-
* Improvement: Code Improvements in #4288 #4300
|
236 |
-
* Fixed: Fatal Error - Class ‘QM_Dispatchers’ not found. #4322
|
237 |
-
* Fixed: Header shifting to left in swift 404 page #4316
|
238 |
-
* Fixed: Fatal error on activation on old php versions #4320
|
239 |
-
* Fixed: Design breaks in 2 column layout pagebuilder in Design 2 #4313
|
240 |
-
* Fixed: Hide AMP Bulk Tools option isn't working with WPML #4249
|
241 |
-
* Fixed: Transparent header background color not working #4315
|
242 |
-
|
243 |
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.4
|
7 |
+
Stable tag: 1.0.42
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 1.0.42 (21st April 2020) =
|
195 |
+
* Improvement: Added Comments module in our AMP page builder #4106
|
196 |
+
* Improvement: Added CSS icons option #4268
|
197 |
+
* Improvement: Added Support for Call Rail analytics #4331
|
198 |
+
* Improvement: Added Pinterest embeded images in AMP #4361
|
199 |
+
* Improvement: Added Video docking feature in AMP #4352
|
200 |
+
* Improvement: Added option for one signal notificaion on the pages #4349
|
201 |
+
* Fixed: Mobile redirection issue on robots.txt page #4369
|
202 |
+
* Fixed: 404 error when we click on the comment section with Google Sitekit #4360
|
203 |
+
* Fixed: Fixed width not working in 2 coloum in AMP pagebuilder #4379
|
204 |
+
* Fixed: Label markup was visible even after set to empty in content module in AMP pagebuilder #4379
|
205 |
+
|
206 |
= 1.0.41 (14th April 2020) =
|
207 |
* Improvement: Video docking issue #4352
|
208 |
|
227 |
* Fixed: There is no save button in AMP "Basic setup" #4343
|
228 |
* Fixed: Debug warning #4341
|
229 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
templates/design-manager/swift/footer.php
CHANGED
@@ -21,12 +21,12 @@ if ( isset($redux_builder_amp['footer-type']) && '1' == $redux_builder_amp['foot
|
|
21 |
$sidebar_output = $sanitized_sidebar->get_amp_content();
|
22 |
$sidebar_output = apply_filters('ampforwp_modify_sidebars_content',$sidebar_output);
|
23 |
$sidebar_output = preg_replace_callback('/<form(.*?)>(.*?)<\/form>/s', function($match){
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
}
|
31 |
echo do_shortcode($sidebar_output); // amphtml content, no kses
|
32 |
?>
|
@@ -113,12 +113,18 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
113 |
<?php } ?>
|
114 |
</li>
|
115 |
<?php } ?>
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
<li>
|
118 |
-
<a title="facebook share" class="s_fb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.facebook.com/sharer.php?u=<?php echo esc_url($amp_permalink); ?>"
|
119 |
</li>
|
120 |
<?php } ?>
|
121 |
-
<?php if(true == ampforwp_get_setting('enable-single-facebook-share-messenger')
|
122 |
<li>
|
123 |
<a title="facebook share messenger" <?php ampforwp_nofollow_social_links(); ?> target="_blank" href="fb-messenger://share/?link=<?php echo esc_url($amp_permalink_fb_messenger); ?>">
|
124 |
<div class="a-so-i a-so-facebookmessenger">
|
@@ -132,34 +138,58 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
132 |
if(ampforwp_get_setting('enable-single-twitter-share')){
|
133 |
$data_param_data = ampforwp_get_setting('enable-single-twitter-share-handle');
|
134 |
$data_param_data = str_replace('@', '', $data_param_data);
|
135 |
-
$data_param = ( '' == $data_param_data ) ? '' : '&via='.$data_param_data.'';
|
|
|
|
|
|
|
|
|
136 |
<li>
|
137 |
-
<a title="twitter share" class="s_tw" target="_blank" <?php ampforwp_nofollow_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); ?>"
|
138 |
</a>
|
139 |
</li>
|
140 |
<?php } ?>
|
141 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
<li>
|
143 |
-
<a title="email" class="s_em" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="mailto:?subject=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&body=<?php echo esc_url($amp_permalink); ?>"
|
144 |
</li>
|
145 |
<?php } ?>
|
146 |
<?php if($redux_builder_amp['enable-single-pinterest-share']){
|
147 |
$image = '';
|
|
|
|
|
|
|
|
|
148 |
if (ampforwp_has_post_thumbnail( ) ){
|
149 |
$image = ampforwp_get_post_thumbnail( 'url', 'full' );
|
150 |
}?>
|
151 |
<li>
|
152 |
-
<a title="pinterest share" class="s_pt" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://pinterest.com/pin/create/button/?media=<?php echo esc_url($image); ?>&url=<?php echo esc_url($amp_permalink); ?>&description=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"
|
153 |
</li>
|
154 |
<?php } ?>
|
155 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
156 |
<li>
|
157 |
-
<a title="linkedin share" class="s_lk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.linkedin.com/shareArticle?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"
|
158 |
</li>
|
159 |
<?php } ?>
|
160 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
161 |
<li>
|
162 |
-
<a title="whatsapp share" class="s_wp" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_url($amp_permalink); ?>" data-action="share/whatsapp/share"
|
163 |
</li>
|
164 |
<?php } ?>
|
165 |
<?php if(ampforwp_get_setting('enable-single-line-share') == true){
|
@@ -173,59 +203,104 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
|
|
173 |
</a>
|
174 |
</li>
|
175 |
<?php } ?>
|
176 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
177 |
<li>
|
178 |
-
<a title="vkontakte share" class="s_vk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://vk.com/share.php?url=<?php echo esc_url($amp_permalink); ?>"
|
179 |
</li>
|
180 |
<?php } ?>
|
181 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
182 |
<li>
|
183 |
-
<a title="odnoklassniki share" class="s_od" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://ok.ru/dk?st.cmd=addShare&st._surl=<?php echo esc_url($amp_permalink); ?>"
|
184 |
</li>
|
185 |
<?php } ?>
|
186 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
187 |
<li>
|
188 |
-
<a title="reddit share" class="s_rd" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://reddit.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"
|
189 |
</li>
|
190 |
<?php } ?>
|
191 |
-
<?php if(
|
|
|
|
|
|
|
192 |
<li>
|
193 |
-
<a title="tumblr share" class="s_tb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.tumblr.com/widgets/share/tool?canonicalUrl=<?php echo esc_url($amp_permalink) ?>"
|
194 |
</li>
|
195 |
<?php } ?>
|
196 |
-
<?php if(
|
|
|
|
|
|
|
|
|
197 |
<li>
|
198 |
-
<a title="telegram share" class="s_tg" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"
|
199 |
</li>
|
200 |
<?php } ?>
|
201 |
-
<?php if(
|
|
|
|
|
|
|
|
|
202 |
<li>
|
203 |
-
<a title="stumbleupon share" class="s_su" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"
|
204 |
</li>
|
205 |
<?php } ?>
|
206 |
-
<?php if(
|
|
|
|
|
|
|
207 |
<li>
|
208 |
-
<a title="wechat share" class="s_wc" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://api.addthis.com/oexchange/0.8/forward/wechat/offer?url=<?php echo esc_url($amp_permalink); ?>"
|
209 |
</li>
|
210 |
<?php } ?>
|
211 |
-
<?php if(
|
|
|
|
|
|
|
|
|
212 |
<li>
|
213 |
-
<a class="s_vb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="viber://forward?text=<?php echo esc_url($amp_permalink); ?>"
|
214 |
</li>
|
215 |
<?php } ?>
|
216 |
-
<?php if (
|
|
|
|
|
|
|
|
|
217 |
<li>
|
218 |
-
<a title="yummly share" class="s_ym" target="_blank" <?php ampforwp_nofollow_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"
|
219 |
</li>
|
220 |
<?php } ?>
|
221 |
-
<?php if (
|
|
|
|
|
|
|
|
|
222 |
<li>
|
223 |
-
<a title="hatena share" class="s_hb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://b.hatena.ne.jp/entry/<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"
|
224 |
</li>
|
225 |
<?php } ?>
|
226 |
-
<?php if (
|
|
|
|
|
|
|
|
|
227 |
<li>
|
228 |
-
<a title="pocket share" class="s_pk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://getpocket.com/save?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"
|
229 |
</li>
|
230 |
<?php } ?>
|
231 |
<?php if ( true == ampforwp_get_setting('enable-single-mewe-share')){?>
|
21 |
$sidebar_output = $sanitized_sidebar->get_amp_content();
|
22 |
$sidebar_output = apply_filters('ampforwp_modify_sidebars_content',$sidebar_output);
|
23 |
$sidebar_output = preg_replace_callback('/<form(.*?)>(.*?)<\/form>/s', function($match){
|
24 |
+
if(strpos($match[1], 'target=') === false){
|
25 |
+
return '<form'.$match[1].' target="_top">'.$match[2].'</form>';
|
26 |
+
}else{
|
27 |
+
return '<form'.$match[1].'>'.$match[2].'</form>';
|
28 |
+
}
|
29 |
+
}, $sidebar_output);
|
30 |
}
|
31 |
echo do_shortcode($sidebar_output); // amphtml content, no kses
|
32 |
?>
|
113 |
<?php } ?>
|
114 |
</li>
|
115 |
<?php } ?>
|
116 |
+
<?php if(ampforwp_get_setting('enable-single-facebook-share')){
|
117 |
+
$facebook_icon = '';
|
118 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
119 |
+
$facebook_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDg2LjAzNyAxMDA3IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTEyNCAxMDA1VjUzNkgwVjM2N2gxMjRWMjIzQzEyNCAxMTAgMTk3IDUgMzY2IDVjNjggMCAxMTkgNyAxMTkgN2wtNCAxNThzLTUyLTEtMTA4LTFjLTYxIDAtNzEgMjgtNzEgNzV2MTIzaDE4M2wtOCAxNjlIMzAydjQ2OUgxMjMiPjwvcGF0aD48L3N2Zz4=" width="16" height="16" ></amp-img>';
|
120 |
+
}
|
121 |
+
|
122 |
+
?>
|
123 |
<li>
|
124 |
+
<a title="facebook share" class="s_fb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.facebook.com/sharer.php?u=<?php echo esc_url($amp_permalink); ?>"><?php echo $facebook_icon; ?></a>
|
125 |
</li>
|
126 |
<?php } ?>
|
127 |
+
<?php if(true == ampforwp_get_setting('enable-single-facebook-share-messenger')&& $amp_permalink_fb_messenger!=''){?>
|
128 |
<li>
|
129 |
<a title="facebook share messenger" <?php ampforwp_nofollow_social_links(); ?> target="_blank" href="fb-messenger://share/?link=<?php echo esc_url($amp_permalink_fb_messenger); ?>">
|
130 |
<div class="a-so-i a-so-facebookmessenger">
|
138 |
if(ampforwp_get_setting('enable-single-twitter-share')){
|
139 |
$data_param_data = ampforwp_get_setting('enable-single-twitter-share-handle');
|
140 |
$data_param_data = str_replace('@', '', $data_param_data);
|
141 |
+
$data_param = ( '' == $data_param_data ) ? '' : '&via='.$data_param_data.'';
|
142 |
+
$twitter_icon = '';
|
143 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
144 |
+
$twitter_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjQwLjAxNzEgNjAxLjA4NjkiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCA1MzAuMTU1YzEwLjQyIDEuMDE1IDIwLjgyNiAxLjU0OCAzMS4yMiAxLjU0OCA2MS4wNSAwIDExNS41MjgtMTguNzMgMTYzLjM4Ny01Ni4xNy0yOC40MjQtLjM1Mi01My45MzMtOS4wNC03Ni40NzctMjYuMDQzLTIyLjU3LTE2Ljk5LTM3Ljk4NC0zOC42NzUtNDYuMzIzLTY1LjA1NiA2LjkzMyAxLjQxOCAxNS4xMDIgMi4wOTUgMjQuNDU2IDIuMDk1IDEyLjE1IDAgMjMuNzY3LTEuNTc1IDM0Ljg2Mi00LjY4NC0zMC41MTctNS44NjctNTUuNzY2LTIwLjg5Mi03NS43MS00NC45OTctMTkuOTU0LTI0LjEzMi0yOS45Mi01MS45Ny0yOS45Mi04My41Mjh2LTEuNTc0YzE4LjM5NiAxMC40MiAzOC4zMTIgMTUuODA2IDU5LjgyOCAxNi4xMy0xOC4wMTctMTEuNzk4LTMyLjM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ampforwp_nofollow_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; ?>
|
148 |
</a>
|
149 |
</li>
|
150 |
<?php } ?>
|
151 |
+
<?php if(ampforwp_get_setting('enable-single-email-share')){
|
152 |
+
$email_icon = '';
|
153 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
154 |
+
$email_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgODk2IDEwMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAxOTN2NjQwaDg5NlYxOTNIMHptNzY4IDY0TDQ0OCA1MjEgMTI4IDI1N2g2NDB6TTY0IDMyMWwyNTIuMDMgMTkxLjYyNUw2NCA3MDVWMzIxem02NCA0NDhsMjU0LTIwNi4yNUw0NDggNjEzbDY1Ljg3NS01MC4xMjVMNzY4IDc2OUgxMjh6bTcwNC02NEw1NzkuNjI1IDUxMi45MzggODMyIDMyMXYzODR6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
155 |
+
}
|
156 |
+
|
157 |
+
?>
|
158 |
<li>
|
159 |
+
<a title="email" class="s_em" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="mailto:?subject=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&body=<?php echo esc_url($amp_permalink); ?>"><?php echo $email_icon; ?></a>
|
160 |
</li>
|
161 |
<?php } ?>
|
162 |
<?php if($redux_builder_amp['enable-single-pinterest-share']){
|
163 |
$image = '';
|
164 |
+
$pinterest_icon = '';
|
165 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
166 |
+
$pinterest_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNOC42MTcgMTMuMjI3QzguMDkgMTUuOTggNy40NSAxOC42MiA1LjU1IDIwYy0uNTg3LTQuMTYyLjg2LTcuMjg3IDEuNTMzLTEwLjYwNS0xLjE0Ny0xLjkzLjEzOC01LjgxMiAyLjU1NS00Ljg1NSAyLjk3NSAxLjE3Ni0yLjU3NiA3LjE3MiAxLjE1IDcuOTIyIDMuODkuNzggNS40OC02Ljc1IDMuMDY2LTkuMkMxMC4zNy0uMjc0IDMuNzA4IDMuMTggNC41MjggOC4yNDZjLjIgMS4yMzggMS40NzggMS42MTMuNTEgMy4zMjItMi4yMy0uNDk0LTIuODk2LTIuMjU0LTIuODEtNC42LjEzOC0zLjg0IDMuNDUtNi41MjcgNi43Ny02LjkgNC4yMDItLjQ3IDguMTQ1IDEuNTQzIDguNjkgNS40OTQuNjEzIDQuNDYyLTEuODk2IDkuMjk0LTYuMzkgOC45NDYtMS4yMTctLjA5NS0xLjcyNy0uNy0yLjY4LTEuMjh6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
167 |
+
}
|
168 |
if (ampforwp_has_post_thumbnail( ) ){
|
169 |
$image = ampforwp_get_post_thumbnail( 'url', 'full' );
|
170 |
}?>
|
171 |
<li>
|
172 |
+
<a title="pinterest share" class="s_pt" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://pinterest.com/pin/create/button/?media=<?php echo esc_url($image); ?>&url=<?php echo esc_url($amp_permalink); ?>&description=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $pinterest_icon; ?></a>
|
173 |
</li>
|
174 |
<?php } ?>
|
175 |
+
<?php if(ampforwp_get_setting('enable-single-linkedin-share')){
|
176 |
+
$linkedin_icon = '';
|
177 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
178 |
+
$linkedin_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTA0NiAxMDA3IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTIzNyAxMDA1VjMzMEgxM3Y2NzVoMjI0ek0xMjUgMjM4Yzc4IDAgMTI3LTUyIDEyNy0xMTdDMjUxIDU1IDIwMyA0IDEyNyA0IDUwIDQgMCA1NCAwIDEyMWMwIDY1IDQ5IDExNyAxMjQgMTE3aDF6bTIzNiA3NjdoMjI0VjYyOGMwLTIwIDEtNDAgNy01NSAxNi00MCA1My04MiAxMTUtODIgODEgMCAxMTQgNjIgMTE0IDE1M3YzNjFoMjI0VjYxOGMwLTIwNy0xMTEtMzA0LTI1OC0zMDQtMTIxIDAtMTc0IDY4LTIwNCAxMTRoMXYtOThIMzYwYzMgNjMgMCA2NzUgMCA2NzV6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
179 |
+
}
|
180 |
+
?>
|
181 |
<li>
|
182 |
+
<a title="linkedin share" class="s_lk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.linkedin.com/shareArticle?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $linkedin_icon; ?></a>
|
183 |
</li>
|
184 |
<?php } ?>
|
185 |
+
<?php if(ampforwp_get_setting('enable-single-whatsapp-share')){
|
186 |
+
$whatsapp_icon = '';
|
187 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
188 |
+
$whatsapp_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4IiB2aWV3Qm94PSIwIDAgOTAgOTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDkwIDkwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggaWQ9IldoYXRzQXBwIiBkPSJNOTAsNDMuODQxYzAsMjQuMjEzLTE5Ljc3OSw0My44NDEtNDQuMTgyLDQzLjg0MWMtNy43NDcsMC0xNS4wMjUtMS45OC0yMS4zNTctNS40NTVMMCw5MGw3Ljk3NS0yMy41MjIgICBjLTQuMDIzLTYuNjA2LTYuMzQtMTQuMzU0LTYuMzQtMjIuNjM3QzEuNjM1LDE5LjYyOCwyMS40MTYsMCw0NS44MTgsMEM3MC4yMjMsMCw5MCwxOS42MjgsOT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YtMy43ODksMy42NzYtMy43ODksOC45NjNjMCw1LjI4OCwzLjg3OSwxMC4zOTcsNC40MjIsMTEuMTEzYzAuNTQxLDAuNzE2LDcuNDksMTEuOTIsMTguNSwxNi4yMjMgICBDNTguMiw2NS43NzEsNTguMiw2NC4zMzYsNjAuMTg2LDY0LjE1NmMxLjk4NC0wLjE3OSw2LjQwNi0yLjU5OSw3LjMxMi01LjEwN0M2OC4zOTgsNTYuNTM3LDY4LjM5OCw1NC4zODYsNjguMTI5LDUzLjkzOHoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" ></amp-img>';
|
189 |
+
}
|
190 |
+
?>
|
191 |
<li>
|
192 |
+
<a title="whatsapp share" class="s_wp" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_url($amp_permalink); ?>" data-action="share/whatsapp/share"><?php echo $whatsapp_icon; ?></a>
|
193 |
</li>
|
194 |
<?php } ?>
|
195 |
<?php if(ampforwp_get_setting('enable-single-line-share') == true){
|
203 |
</a>
|
204 |
</li>
|
205 |
<?php } ?>
|
206 |
+
<?php if(ampforwp_get_setting('enable-single-vk-share')){
|
207 |
+
$vk_icon = '';
|
208 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
209 |
+
$vk_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTV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C4wNDNjMS40MywwLDIuODc3LDAuMDIxLDQuMjYyLDAuMjU4ICAgYzguMTI3LDEuMzg1LDEwLjM1NCw0Ljg4MSw3Ljg0NCwxMi44MTdjLTMuOTU1LDEyLjQ1MS0xMS42NSwyMi44MjctMTkuMTc0LDMzLjI1MWMtOC4wNDMsMTEuMTI5LTE2LjY0NSwyMS44NzctMjQuNjIxLDMzLjA3MiAgIEMyNTIuMjYsMTYxLjU0NCwyNTIuODQyLDE2Ni42OTcsMjYxLjk0NSwxNzUuNTc2TDI2MS45NDUsMTc1LjU3NnogTTI2MS45NDUsMTc1LjU3NiIgZmlsbD0iI0ZGRkZGRiIvPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="16" height="16" ></amp-img>';
|
210 |
+
}
|
211 |
+
?>
|
212 |
<li>
|
213 |
+
<a title="vkontakte share" class="s_vk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://vk.com/share.php?url=<?php echo esc_url($amp_permalink); ?>"><?php echo $vk_icon; ?></a>
|
214 |
</li>
|
215 |
<?php } ?>
|
216 |
+
<?php if(ampforwp_get_setting('enable-single-odnoklassniki-share')){
|
217 |
+
$odnoklassniki_icon = '';
|
218 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
219 |
+
$odnoklassniki_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjog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uODg2LDUuMzE2LTExLjgzNSwxMS45NDNjMC4wNDksNi41NDIsNS4zMjQsMTEuNzMzLDExLjg5NiwxMS43MDkgICAgQzU0LjM1NywzNS45NzEsNTkuNTczLDMwLjcwOSw1OS41NTEsMjQuMTQzeiIgZmlsbD0iI0ZGRkZGRiIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="16" height="16" ></amp-img>';
|
220 |
+
}
|
221 |
+
?>
|
222 |
<li>
|
223 |
+
<a title="odnoklassniki share" class="s_od" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://ok.ru/dk?st.cmd=addShare&st._surl=<?php echo esc_url($amp_permalink); ?>"><?php echo $odnoklassniki_icon; ?></a>
|
224 |
</li>
|
225 |
<?php } ?>
|
226 |
+
<?php if(ampforwp_get_setting('enable-single-reddit-share')){
|
227 |
+
$reddit_icon = '';
|
228 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
229 |
+
$reddit_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDQ5IDUxMiIgZmlsbD0iI2ZmZmZmZiIgPjxwYXRoIGQ9Ik00NDkgMjUxYzAgMjAtMTEgMzctMjcgNDUgMSA1IDEgOSAxIDE0IDAgNzYtODkgMTM4LTE5OSAxMzhTMjYgMzg3IDI2IDMxMWMwLTUgMC0xMCAxLTE1LTE2LTgtMjctMjUtMjctNDUgMC0yOCAyMy01MCA1MC01MCAxMyAwIDI0IDUgMzMgMTMgMzMtMjMgNzktMzkgMTI5LTQxaDJsMzEtMTAzIDkwIDE4YzgtMTQgMjItMjQgMzktMjRoMWMyNSAwIDQ0IDIwIDQ0IDQ1cy0xOSA0NS00NCA0NWgtMWMtMjMgMC00Mi0xNy00NC00MGwtNjctMTQtMjIgNzRjNDkgMyA5MyAxNyAxMjUgNDAgOS04IDIxLTEzIDM0LTEzIDI3IDAgNDkgMjIgNDkgNTB6TTM0IDI3MWM1LTE1IDE1LTI5IDI5LTQxLTQtMy05LTUtMTUtNS0xNCAwLTI1IDExLTI1IDI1IDAgOSA0IDE3IDExIDIxem0zMjQtMTYyYzAgOSA3IDE3IDE2IDE3czE3LTggMTctMTctOC0xNy0xNy0xNy0xNiA4LTE2IDE3ek0xMjcgMjg4YzAgMTggMTQgMzIgMzIgMzJzMzItMTQgMzItMzItMTQtMzEtMzItMzEtMzIgMTMtMzIgMzF6bTk3IDExMmM0OCAwIDc3LTI5IDc4LTMwbC0xMy0xMnMtMjUgMjQtNjUgMjRjLTQxIDAtNjQtMjQtNjQtMjRsLTEzIDEyYzEgMSAyOSAzMCA3NyAzMHptNjctODBjMTggMCAzMi0xNCAzMi0zMnMtMTQtMzEtMzItMzEtMzIgMTMtMzIgMzEgMTQgMzIgMzIgMzJ6bTEyNC00OGM3LTUgMTEtMTMgMTEtMjIgMC0xNC0xMS0yNS0yNS0yNS02IDAtMTEgMi0xNSA1IDE0IDEyIDI0IDI3IDI5IDQyeiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';
|
230 |
+
}
|
231 |
+
?>
|
232 |
<li>
|
233 |
+
<a title="reddit share" class="s_rd" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://reddit.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"><?php echo $reddit_icon; ?></a>
|
234 |
</li>
|
235 |
<?php } ?>
|
236 |
+
<?php if(ampforwp_get_setting('enable-single-tumblr-share')){
|
237 |
+
$tumblr_icon ='';
|
238 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
239 |
+
$tumblr_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMzYuMDAyIDI4djE0LjYzNmMwIDMuNzE0LS4wNDggNS44NTMuMzQ2IDYuOTA2LjM5IDEuMDQ3IDEuMzcgMi4xMzQgMi40MzcgMi43NjMgMS40MTguODUgMy4wMzQgMS4yNzMgNC44NTcgMS4yNzMgMy4yNCAwIDUuMTU1LS40MjggOC4zNi0yLjUzNHY5LjYyYy0yLjczMiAxLjI4Ni01LjExOCAyLjAzOC03LjMzNCAyLjU2LTIuMjIuNTE0LTQuNjE2Ljc3NC03LjE5Ljc3NC0yLjkyOCAwLTQuNjU1LS4zNjgtNi45MDItMS4xMDMtMi4yNDctLjc0Mi00LjE2Ni0xLjgtNS43NS0zLjE2LTEuNTkyLTEuMzctMi42OS0yLjgyNC0zLjMwNC00LjM2M3MtLjkyLTMuNzc2LS45Mi02LjcwM1YyNi4yMjRoLTguNTl2LTkuMDYzYzIuNTE0LS44MTUgNS4zMjQtMS45ODcgNy4xMTItMy41MSAxLjc5Ny0xLjUyNyAzLjIzNS0zLjM1NiA0LjMyLTUuNDk2QzI0LjUzIDYuMDIyIDI1LjI3NiAzLjMgMjUuNjgzIDBoMTAuMzJ2MTZINTJ2MTJIMzYuMDA0eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';}?>
|
240 |
<li>
|
241 |
+
<a title="tumblr share" class="s_tb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.tumblr.com/widgets/share/tool?canonicalUrl=<?php echo esc_url($amp_permalink) ?>"><?php echo $tumblr_icon; ?></a>
|
242 |
</li>
|
243 |
<?php } ?>
|
244 |
+
<?php if(ampforwp_get_setting('enable-single-telegram-share')){
|
245 |
+
$telegram_icon = '';
|
246 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
247 |
+
$telegram_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ1NS43MzEgNDU1LjczMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDU1LjczMSA0NTUuNzMxOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGc+Cgk8cmVjdCB4PSIwIiB5PSIwIiBzdHlsZT0iZmlsbDojNjFBOERFOyIgd2lkdGg9IjQ1NS43MzEiIGhlaWdodD0iNDU1LjczMSIvPgoJPHBhdGggc3R5bGU9ImZpbGw6I0ZGRkZGRjsiIGQ9Ik0zNTguODQ0LDEwMC42TDU0LjA5MSwyMTkuMzU5Yy05Ljg3MSwzLjg0Ny05LjI3MywxOC4wMTIsMC44ODgsMjEuMDEybDc3LjQ0MSwyMi44NjhsMjguOTAxLDkxLjcwNiAgIGMzLjAxOSw5LjU3OSwxNS4xNTgsMTIuNDgzLDIyLjE4NSw1LjMwOGw0MC4wMzktNDAuODgybDc4LjU2LDU3LjY2NWM5LjYxNCw3LjA1NywyMy4zMDYsMS44MTQsMjUuNzQ3LTkuODU5bDUyLjAzMS0yNDguNzYgICBDMzgyLjQzMSwxMDYuMjMyLDM3MC40NDMsOTYuMDgsMzU4Ljg0NCwxMDAuNnogTTMyMC42MzYsMTU1LjgwNkwxNzkuMDgsMjgwLjk4NGMtMS40MTEsMS4yNDgtMi4zMDksMi45NzUtMi41MTksNC44NDcgICBsLTUuNDUsNDguNDQ4Yy0wLjE3OCwxLjU4LTIuMzg5LDEuNzg5LTIuODYxLDAuMjcxbC0yMi40MjMtNzIuMjUzYy0xLjAyNy0zLjMwOCwwLjMxMi02Ljg5MiwzLjI1NS04LjcxN2wxNjcuMTYzLTEwMy42NzYgICBDMzIwLjA4OSwxNDcuNTE4LDMyNC4wMjUsMTUyLjgxLDMyMC42MzYsMTU1LjgwNnoiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" ></amp-img>';
|
248 |
+
}?>
|
249 |
<li>
|
250 |
+
<a title="telegram share" class="s_tg" target="_blank" <?php ampforwp_nofollow_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>
|
251 |
</li>
|
252 |
<?php } ?>
|
253 |
+
<?php if(ampforwp_get_setting('enable-single-stumbleupon-share')){
|
254 |
+
$stumbleupon = '';
|
255 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
256 |
+
$stumbleupon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjcwLjIyMzMgNjAxLjA4NjkiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCA0MzcuMjQ3di05Mi42NzJoMTE0LjY4OHY5MS42NjRjMCA5LjU2NyAzLjQwOCAxNy44MjMgMTAuMjQgMjQuODNzMTUuMTg0IDEwLjQ5NyAyNS4wODggMTAuNDk3IDE4LjMzNi0zLjQyNCAyNS4zNDQtMTAuMjRjNy4wMDgtNi44NDggMTAuNDk2LTE1LjIgMTAuNDk2LTI1LjA4OFYyMTkuNjQ2YzAtMzkuOTM1IDE0Ljc1Mi03My45ODQgNDQuMjg4LTEwMi4xNDQgMjkuNTM2LTI4LjE2IDY0LjYwOC00Mi4yNCAxMDUuMjE2LTQyLjI0IDQwLjYwOCAwIDc1LjY4IDE0LjE2IDEwNS4yMTYgNDIuNDk2IDI5LjUyIDI4LjMzNSA0NC4zMDUgNjIuNjQgNDQuMzA1IDEwMi45MXY0Ny4xMDRsLTY4LjYyMyAyMC40OC00NS41Ny0yMS41MDN2LTQwLjk2YzAtOS45MDMtMy40MDctMTguMjU2LTEwLjI1NS0yNS4wODgtNi44MTYtNi44MzItMTUuMTgzLTEwLjI0LTI1LjA3Mi0xMC4yNC05LjkwMyAwLTE4LjMzNiAzLjQwOC0yNS4zNDQgMTAuMjRzLTEwLjQ5NiAxNS4xODUtMTAuNDk2IDI1LjA5djIxMy41MDNjMCA0MC45NzYtMTQuNjcyIDc1Ljg3Mi00NC4wMzIgMTA0LjcyLTI5LjM0NCAyOC44NDgtNjQuNTEyIDQzLjI0OC0xMDUuNDcyIDQzLjI0OC00MS4zMSAwLTc2LjY0LTE0LjU5Mi0xMDUuOTg0LTQzLjc3NkMxNC42ODggNTE0LjMwMy4wMDIgNDc4Ljg4LjAwMiA0MzcuMjQ3em0zNzAuNjg4IDEuNTM2di05My42OTVsNDUuNTY4IDIxLjUyIDY4LjYyNC0yMC40OTd2OTQuMjI2YzAgOS45MDMgMy40MDggMTguMzM2IDEwLjIyNCAyNS4zNDQgNi44NDcgNy4wMDcgMTUuMiAxMC40OTYgMjUuMDg3IDEwLjQ5NiA5LjkwNiAwIDE4LjI3NC0zLjUwNCAyNS4wOS0xMC40OTYgNi44MTYtNi45OTMgMTAuMjU1LTE1LjQ0IDEwLjI1NS0yNS4zNDR2LTk1Ljc0NGgxMTQuNjg4djkyLjY3MmMwIDQxLjI5NS0xNC41OSA3Ni42NC00My43NzYgMTA1Ljk4My0yOS4xODQgMjkuMzYtNjQuNDMyIDQ0LjAzMi0xMDUuNzI4IDQ0LjAzMnMtNzYuNjI1LTE0LjQ5Ny0xMDUuOTg1LTQzLjUyYy0yOS4zNi0yOS4wNC00NC4wNDgtNjQuMDE3LTQ0LjA0OC0xMDQuOTc4eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';
|
257 |
+
}?>
|
258 |
<li>
|
259 |
+
<a title="stumbleupon share" class="s_su" target="_blank" <?php ampforwp_nofollow_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>
|
260 |
</li>
|
261 |
<?php } ?>
|
262 |
+
<?php if(ampforwp_get_setting('enable-single-wechat-share')){
|
263 |
+
$wechat_icon = '';
|
264 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
265 |
+
$wechat_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjA0OCAxODk2LjA4MzMiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNNTgwIDQ2MXEwLTQxLTI1LTY2dC02Ni0yNXEtNDMgMC03NiAyNS41VDM4MCA0NjFxMCAzOSAzMyA2NC41dDc2IDI1LjVxNDEgMCA2Ni0yNC41dDI1LTY1LjV6bTc0MyA1MDdxMC0yOC0yNS41LTUwdC02NS41LTIycS0yNyAwLTQ5LjUgMjIuNVQxMTYwIDk2OHEwIDI4IDIyLjUgNTAuNXQ0OS41IDIyLjVxNDAgMCA2NS41LTIydDI1LjUtNTF6bS0yMzYtNTA3cTAtNDEtMjQuNS02NlQ5OTcgMzcwcS00MyAwLTc2IDI1LjVUODg4IDQ2MXEwIDM5IDMzIDY0LjV0NzYgMjUuNXE0MSAwIDY1LjUtMjQuNVQxMDg3IDQ2MXptNjM1IDUwN3EwLTI4LTI2LTUwdC02NS0yMnEtMjcgMC00OS41IDIyLjVUMTU1OSA5NjhxMCAyOCAyMi41IDUwLjV0NDkuNSAyMi41cTM5IDAgNjUtMjJ0MjYtNTF6bS0yNjYtMzk3cS0zMS00LTcwLTQtMTY5IDAtMzExIDc3VDg1MS41IDg1Mi41IDc3MCAxMTQwcTAgNzggMjMgMTUyLTM1IDMtNjggMy0yNiAwLTUwLTEuNXQtNTUtNi41LTQ0LjUtNy01NC41LTEwLjUtNTAtMTAuNWwtMjUzIDEyNyA3Mi0yMThRMCA5NjUgMCA2NzhxMC0xNjkgOTcuNS0zMTF0MjY0LTIyMy41VDcyNSA2MnExNzYgMCAzMzIuNSA2NnQyNjIgMTgyLjVUMTQ1NiA1NzF6bTU5MiA1NjFxMCAxMTctNjguNSAyMjMuNVQxNzk0IDE1NDlsNTUgMTgxLTE5OS0xMDlxLTE1MCAzNy0yMTggMzctMTY5IDAtMzExLTcwLjVUODk3LjUgMTM5NiA4MTYgMTEzMnQ4MS41LTI2NFQxMTIxIDY3Ni41dDMxMS03MC41cTE2MSAwIDMwMyA3MC41dDIyNy41IDE5MlQyMDQ4IDExMzJ6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';}?>
|
266 |
<li>
|
267 |
+
<a title="wechat share" class="s_wc" target="_blank" <?php ampforwp_nofollow_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>
|
268 |
</li>
|
269 |
<?php } ?>
|
270 |
+
<?php if(ampforwp_get_setting('enable-single-viber-share')){
|
271 |
+
$viber_icon = '';
|
272 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
273 |
+
$viber_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTAyNiAxMjM0IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTkwNCA3OTRxLTY5IDYxLTIwMCA4Ny41VDQzNCA4OTdsLTE3NiAxMzJWODY0cS04Ny0yNy0xMzYtNzAtNTgtNTEtOTAtMTQ2LjV0LTMyLTE5NSAzMi0xOTUgOTAuNS0xNDcgMTY3LjUtNzlUNTEzIDR0MjIzIDI3LjUgMTY3LjUgNzkgOTAuNSAxNDcgMzIgMTk1LTMyIDE5NVQ5MDQgNzk0ek02MzkgNTQ5bDY1IDExcS04LTEyMC05Mi41LTIwNVQ0MDcgMjYybDExIDY1cTg2IDExIDE0OCA3M3Q3MyAxNDl6TTQyOSAzOTRsMTIgNzJxNDAgMjAgNTkgNTlsNzIgMTJxLTEyLTUzLTUxLTkxLjVUNDI5IDM5NHptLTEwNyA1OXYtNjRxMC0xNy0xMi41LTM0VDI4MyAzMzAuNXQtMjEtMS41bC00NiA0N3EtMzkgMzktMTEuNSAxMjEuNXQxMDUgMTYwIDE2MCAxMDVUNTkwIDc1MWw0Ny00N3E3LTYtLjUtMjAuNVQ2MTIgNjU3dC0zNC0xMmgtNjRsLTM3IDMycS00NC0xMi0xMDkuNS03Ny41VDI5MCA0ODl6bTY0LTMyMGwxMCA2NXExMDAgMiAxODUgNTIuNXQxMzUgMTM1VDc2OSA1NzBsNjUgMTFxMC05MS0zNS41LTE3NFQ3MDMgMjY0dC0xNDMtOTUuNVQzODYgMTMzeiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';
|
274 |
+
}?>
|
275 |
<li>
|
276 |
+
<a class="s_vb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="viber://forward?text=<?php echo esc_url($amp_permalink); ?>"><?php echo $viber_icon; ?></a>
|
277 |
</li>
|
278 |
<?php } ?>
|
279 |
+
<?php if ( ampforwp_get_setting('enable-single-yummly-share')){
|
280 |
+
$yummly_icon = '';
|
281 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
282 |
+
$yummly_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgODk2IDEwMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAxOTN2NjQwaDg5NlYxOTNIMHptNzY4IDY0TDQ0OCA1MjEgMTI4IDI1N2g2NDB6TTY0IDMyMWwyNTIuMDMgMTkxLjYyNUw2NCA3MDVWMzIxem02NCA0NDhsMjU0LTIwNi4yNUw0NDggNjEzbDY1Ljg3NS01MC4xMjVMNzY4IDc2OUgxMjh6bTcwNC02NEw1NzkuNjI1IDUxMi45MzggODMyIDMyMXYzODR6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
283 |
+
}?>
|
284 |
<li>
|
285 |
+
<a title="yummly share" class="s_ym" target="_blank" <?php ampforwp_nofollow_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>
|
286 |
</li>
|
287 |
<?php } ?>
|
288 |
+
<?php if ( ampforwp_get_setting('enable-single-hatena-bookmarks')){
|
289 |
+
$hatena_icon = '';
|
290 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
291 |
+
$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>';
|
292 |
+
}?>
|
293 |
<li>
|
294 |
+
<a title="hatena share" class="s_hb" target="_blank" <?php ampforwp_nofollow_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>
|
295 |
</li>
|
296 |
<?php } ?>
|
297 |
+
<?php if ( ampforwp_get_setting('enable-single-pocket-share')){
|
298 |
+
$pocket_icon = '';
|
299 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
300 |
+
$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>';
|
301 |
+
}?>
|
302 |
<li>
|
303 |
+
<a title="pocket share" class="s_pk" target="_blank" <?php ampforwp_nofollow_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>
|
304 |
</li>
|
305 |
<?php } ?>
|
306 |
<?php if ( true == ampforwp_get_setting('enable-single-mewe-share')){?>
|
templates/design-manager/swift/functions.php
CHANGED
@@ -100,14 +100,25 @@ function ampforwp_swift_social_icons(){
|
|
100 |
<?php } ?>
|
101 |
</li>
|
102 |
<?php } ?>
|
103 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
<li>
|
105 |
-
<a class="s_fb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.facebook.com/sharer.php?u=<?php echo esc_url($amp_permalink); ?>" aria-label="facebook share"
|
106 |
</li>
|
107 |
<?php } ?>
|
108 |
-
<?php if(ampforwp_get_setting('enable-single-facebook-share-messenger')){
|
|
|
|
|
|
|
|
|
|
|
109 |
<li>
|
110 |
-
<a title="facebook share messenger" class="s_fb_ms" target="_blank" href="fb-messenger://share/?link=<?php echo esc_url($amp_permalink_fb_messenger); ?>" aria-label="facebook share messenger"
|
111 |
</li>
|
112 |
<?php } ?>
|
113 |
<?php
|
@@ -115,34 +126,62 @@ function ampforwp_swift_social_icons(){
|
|
115 |
if(ampforwp_get_setting('enable-single-twitter-share')){
|
116 |
$data_param_data = ampforwp_get_setting('enable-single-twitter-share-handle');
|
117 |
$data_param_data = str_replace('@', '', $data_param_data);
|
118 |
-
$data_param = ( '' == $data_param_data ) ? '' : '&via='.$data_param_data.'';
|
|
|
|
|
|
|
|
|
119 |
<li>
|
120 |
-
<a class="s_tw" target="_blank" <?php ampforwp_nofollow_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); ?>" aria-label="twitter share"
|
121 |
</a>
|
122 |
</li>
|
123 |
<?php } ?>
|
124 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
<li>
|
126 |
-
<a class="s_em" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="mailto:?subject=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&body=<?php echo esc_url($amp_permalink); ?>" aria-label="email share"
|
127 |
</li>
|
128 |
<?php } ?>
|
129 |
-
<?php if(
|
130 |
$image = '';
|
131 |
if (ampforwp_has_post_thumbnail( ) ){
|
132 |
$image = ampforwp_get_post_thumbnail( 'url', 'full' );
|
133 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
<li>
|
135 |
-
<a class="s_pt" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://pinterest.com/pin/create/button/?media=<?php echo esc_url($image); ?>&url=<?php esc_url(the_permalink()); ?>&description=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="pinterest share"
|
136 |
</li>
|
137 |
<?php } ?>
|
138 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
139 |
<li>
|
140 |
-
<a class="s_lk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.linkedin.com/shareArticle?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="linkedin share"
|
141 |
</li>
|
142 |
<?php } ?>
|
143 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
<li>
|
145 |
-
<a class="s_wp" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_url($amp_permalink); ?>" data-action="share/whatsapp/share" aria-label="whatsapp share"
|
146 |
</li>
|
147 |
<?php } ?>
|
148 |
<?php if(ampforwp_get_setting('enable-single-line-share') == true) {
|
@@ -156,59 +195,117 @@ function ampforwp_swift_social_icons(){
|
|
156 |
</a>
|
157 |
</li>
|
158 |
<?php } ?>
|
159 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
<li>
|
161 |
-
<a class="s_vk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://vk.com/share.php?url=<?php echo esc_url($amp_permalink); ?>" aria-label="vk share"
|
162 |
</li>
|
163 |
<?php } ?>
|
164 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
<li>
|
166 |
-
<a class="s_od" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://ok.ru/dk?st.cmd=addShare&st._surl=<?php echo esc_url($amp_permalink); ?>" aria-label="odnoklassniki share"
|
167 |
</li>
|
168 |
<?php } ?>
|
169 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
170 |
<li>
|
171 |
-
<a class="s_rd" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://reddit.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="reddit share"
|
172 |
</li>
|
173 |
<?php } ?>
|
174 |
-
<?php if(
|
|
|
|
|
|
|
175 |
<li>
|
176 |
-
<a class="s_tb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.tumblr.com/widgets/share/tool?canonicalUrl=<?php echo esc_url($amp_permalink); ?>" aria-label="tumbler share"
|
177 |
</li>
|
178 |
<?php } ?>
|
179 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
<li>
|
181 |
-
<a class="s_tg" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="telegram share"
|
182 |
</li>
|
183 |
<?php } ?>
|
184 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
<li>
|
186 |
-
<a class="s_su" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="stumbleupon share"
|
187 |
</li>
|
188 |
<?php } ?>
|
189 |
-
<?php if(
|
|
|
|
|
|
|
190 |
<li>
|
191 |
-
<a class="s_wc" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://api.addthis.com/oexchange/0.8/forward/wechat/offer?url=<?php echo esc_url($amp_permalink); ?>" aria-label="wechat share"
|
192 |
</li>
|
193 |
<?php } ?>
|
194 |
-
<?php if(
|
|
|
|
|
|
|
|
|
|
|
195 |
<li>
|
196 |
-
<a class="s_vb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="viber://forward?text=<?php echo esc_url($amp_permalink); ?>" aria-label="viber share"
|
197 |
</li>
|
198 |
<?php } ?>
|
199 |
-
<?php if (
|
|
|
|
|
|
|
|
|
|
|
200 |
<li>
|
201 |
-
<a class="s_ym" target="_blank" <?php ampforwp_nofollow_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" aria-label="yummly share"
|
202 |
</li>
|
203 |
<?php } ?>
|
204 |
-
<?php if (
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
<li>
|
206 |
-
<a class="s_hb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://b.hatena.ne.jp/entry/<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="hatena share"
|
207 |
</li>
|
208 |
<?php } ?>
|
209 |
-
<?php if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
<li>
|
211 |
-
<a class="s_pk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://getpocket.com/save?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="pocket share"
|
212 |
</li>
|
213 |
<?php } ?>
|
214 |
<?php if ( true == ampforwp_get_setting('enable-single-mewe-share')){?>
|
100 |
<?php } ?>
|
101 |
</li>
|
102 |
<?php } ?>
|
103 |
+
<?php if(ampforwp_get_setting('enable-single-facebook-share')){
|
104 |
+
$facebook_icon = '';
|
105 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
106 |
+
$facebook_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDg2LjAzNyAxMDA3IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTEyNCAxMDA1VjUzNkgwVjM2N2gxMjRWMjIzQzEyNCAxMTAgMTk3IDUgMzY2IDVjNjggMCAxMTkgNyAxMTkgN2wtNCAxNThzLTUyLTEtMTA4LTFjLTYxIDAtNzEgMjgtNzEgNzV2MTIzaDE4M2wtOCAxNjlIMzAydjQ2OUgxMjMiPjwvcGF0aD48L3N2Zz4=" width="16" height="16" ></amp-img>';
|
107 |
+
}
|
108 |
+
|
109 |
+
?>
|
110 |
<li>
|
111 |
+
<a class="s_fb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.facebook.com/sharer.php?u=<?php echo esc_url($amp_permalink); ?>" aria-label="facebook share"><?php echo $facebook_icon; ?></a>
|
112 |
</li>
|
113 |
<?php } ?>
|
114 |
+
<?php if(ampforwp_get_setting('enable-single-facebook-share-messenger')){
|
115 |
+
$facebookm_icon = '';
|
116 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
117 |
+
$facebookm_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAwYy02LjYyNyAwLTEyIDQuOTc1LTEyIDExLjExMSAwIDMuNDk3IDEuNzQ1IDYuNjE2IDQuNDcyIDguNjUydjQuMjM3bDQuMDg2LTIuMjQyYzEuMDkuMzAxIDIuMjQ2LjQ2NCAzLjQ0Mi40NjQgNi42MjcgMCAxMi00Ljk3NCAxMi0xMS4xMTEgMC02LjEzNi01LjM3My0xMS4xMTEtMTItMTEuMTExem0xLjE5MyAxNC45NjNsLTMuMDU2LTMuMjU5LTUuOTYzIDMuMjU5IDYuNTU5LTYuOTYzIDMuMTMgMy4yNTkgNS44ODktMy4yNTktNi41NTkgNi45NjN6Ii8+PC9zdmc+" width="16" height="16" ></amp-img>';
|
118 |
+
}
|
119 |
+
?>
|
120 |
<li>
|
121 |
+
<a title="facebook share messenger" class="s_fb_ms" target="_blank" href="fb-messenger://share/?link=<?php echo esc_url($amp_permalink_fb_messenger); ?>" aria-label="facebook share messenger"><?php echo $facebookm_icon; ?></a>
|
122 |
</li>
|
123 |
<?php } ?>
|
124 |
<?php
|
126 |
if(ampforwp_get_setting('enable-single-twitter-share')){
|
127 |
$data_param_data = ampforwp_get_setting('enable-single-twitter-share-handle');
|
128 |
$data_param_data = str_replace('@', '', $data_param_data);
|
129 |
+
$data_param = ( '' == $data_param_data ) ? '' : '&via='.$data_param_data.'';
|
130 |
+
$twitter_icon = '';
|
131 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
132 |
+
$twitter_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjQwLjAxNzEgNjAxLjA4NjkiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCA1MzAuMTU1YzEwLjQyIDEuMDE1IDIwLjgyNiAxLjU0OCAzMS4yMiAxLjU0OCA2MS4wNSAwIDExNS41MjgtMTguNzMgMTYzLjM4Ny01Ni4xNy0yOC40MjQtLjM1Mi01My45MzMtOS4wNC03Ni40NzctMjYuMDQzLTIyLjU3LTE2Ljk5LTM3Ljk4NC0zOC42NzUtNDYuMzIzLTY1LjA1NiA2LjkzMyAxLjQxOCAxNS4xMDIgMi4w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0yOS4xMjYgMjQuOTc2LTY0LjA4IDQ0Ljg1My0xMDQuODUgNTkuNTktNDAuNzU0IDE0Ljc1My04NC41NTMgMjIuMDktMTMxLjM5NyAyMi4wOUMxMjguODYyIDU4OC45NCA2MS43NCA1NjkuMzUgMCA1MzAuMTU0eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16"></amp-img>';}
|
133 |
+
?>
|
134 |
<li>
|
135 |
+
<a class="s_tw" target="_blank" <?php ampforwp_nofollow_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); ?>" aria-label="twitter share"><?php echo $twitter_icon; ?>
|
136 |
</a>
|
137 |
</li>
|
138 |
<?php } ?>
|
139 |
+
<?php if(ampforwp_get_setting('enable-single-email-share')){
|
140 |
+
$email_icon = '';
|
141 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
142 |
+
$email_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgODk2IDEwMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAxOTN2NjQwaDg5NlYxOTNIMHptNzY4IDY0TDQ0OCA1MjEgMTI4IDI1N2g2NDB6TTY0IDMyMWwyNTIuMDMgMTkxLjYyNUw2NCA3MDVWMzIxem02NCA0NDhsMjU0LTIwNi4yNUw0NDggNjEzbDY1Ljg3NS01MC4xMjVMNzY4IDc2OUgxMjh6bTcwNC02NEw1NzkuNjI1IDUxMi45MzggODMyIDMyMXYzODR6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
143 |
+
}
|
144 |
+
|
145 |
+
?>
|
146 |
<li>
|
147 |
+
<a class="s_em" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="mailto:?subject=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&body=<?php echo esc_url($amp_permalink); ?>" aria-label="email share"><?php echo $email_icon; ?></a>
|
148 |
</li>
|
149 |
<?php } ?>
|
150 |
+
<?php if(ampforwp_get_setting('enable-single-pinterest-share')){
|
151 |
$image = '';
|
152 |
if (ampforwp_has_post_thumbnail( ) ){
|
153 |
$image = ampforwp_get_post_thumbnail( 'url', 'full' );
|
154 |
+
}
|
155 |
+
$pinterest_icon = '';
|
156 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
157 |
+
$pinterest_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNOC42MTcgMTMuMjI3QzguMDkgMTUuOTggNy40NSAxOC42MiA1LjU1IDIwYy0uNTg3LTQuMTYyLjg2LTcuMjg3IDEuNTMzLTEwLjYwNS0xLjE0Ny0xLjkzLjEzOC01LjgxMiAyLjU1NS00Ljg1NSAyLjk3NSAxLjE3Ni0yLjU3NiA3LjE3MiAxLjE1IDcuOTIyIDMuODkuNzggNS40OC02Ljc1IDMuMDY2LTkuMkMxMC4zNy0uMjc0IDMuNzA4IDMuMTggNC41MjggOC4yNDZjLjIgMS4yMzggMS40NzggMS42MTMuNTEgMy4zMjItMi4yMy0uNDk0LTIuODk2LTIuMjU0LTIuODEtNC42LjEzOC0zLjg0IDMuNDUtNi41MjcgNi43Ny02LjkgNC4yMDItLjQ3IDguMTQ1IDEuNTQzIDguNjkgNS40OTQuNjEzIDQuNDYyLTEuODk2IDkuMjk0LTYuMzkgOC45NDYtMS4yMTctLjA5NS0xLjcyNy0uNy0yLjY4LTEuMjh6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
158 |
+
}
|
159 |
+
|
160 |
+
?>
|
161 |
<li>
|
162 |
+
<a class="s_pt" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://pinterest.com/pin/create/button/?media=<?php echo esc_url($image); ?>&url=<?php esc_url(the_permalink()); ?>&description=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="pinterest share"><?php echo $pinterest_icon; ?></a>
|
163 |
</li>
|
164 |
<?php } ?>
|
165 |
+
<?php if(ampforwp_get_setting('enable-single-linkedin-share')){
|
166 |
+
$linkedin_icon = '';
|
167 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
168 |
+
$linkedin_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTA0NiAxMDA3IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTIzNyAxMDA1VjMzMEgxM3Y2NzVoMjI0ek0xMjUgMjM4Yzc4IDAgMTI3LTUyIDEyNy0xMTdDMjUxIDU1IDIwMyA0IDEyNyA0IDUwIDQgMCA1NCAwIDEyMWMwIDY1IDQ5IDExNyAxMjQgMTE3aDF6bTIzNiA3NjdoMjI0VjYyOGMwLTIwIDEtNDAgNy01NSAxNi00MCA1My04MiAxMTUtODIgODEgMCAxMTQgNjIgMTE0IDE1M3YzNjFoMjI0VjYxOGMwLTIwNy0xMTEtMzA0LTI1OC0zMDQtMTIxIDAtMTc0IDY4LTIwNCAxMTRoMXYtOThIMzYwYzMgNjMgMCA2NzUgMCA2NzV6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
169 |
+
}
|
170 |
+
?>
|
171 |
<li>
|
172 |
+
<a class="s_lk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.linkedin.com/shareArticle?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="linkedin share"><?php echo $linkedin_icon; ?></a>
|
173 |
</li>
|
174 |
<?php } ?>
|
175 |
+
<?php if(ampforwp_get_setting('enable-single-whatsapp-share')){
|
176 |
+
$whatsapp_icon = '';
|
177 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
178 |
+
$whatsapp_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4IiB2aWV3Qm94PSIwIDAgOTAgOTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDkwIDkwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+Cjx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DMtMC42MjgsMC43MjMtMS4wNzUsMS4wODItMS43OTNjMC4zNjMtMC43MTcsMC4xODItMS4zNDQtMC4wOS0xLjg4M2MtMC4yNy0wLjUzNy0yLjQzOC01LjgyNS0zLjM0LTcuOTc3ICAgYy0wLjkwMi0yLjE1LTEuODAzLTEuNzkyLTIuNDM2LTEuNzkyYy0wLjYzMSwwLTEuMzU0LTAuMDktMi4wNzYtMC4wOWMtMC43MjIsMC0xLjg5NiwwLjI2OS0yLjg4OSwxLjM0NCAgIGMtMC45OTIsMS4wNzYtMy43ODksMy42NzYtMy43ODksOC45NjNjMCw1LjI4OCwzLjg3OSwxMC4zOTcsNC40MjIsMTEuMTEzYzAuNTQxLDAuNzE2LDcuNDksMTEuOTIsMTguNSwxNi4yMjMgICBDNTguMiw2NS43NzEsNTguMiw2NC4zMzYsNjAuMTg2LDY0LjE1NmMxLjk4NC0wLjE3OSw2LjQwNi0yLjU5OSw3LjMxMi01LjEwN0M2OC4zOTgsNTYuNTM3LDY4LjM5OCw1NC4zODYsNjguMTI5LDUzLjkzOHoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" ></amp-img>';
|
179 |
+
|
180 |
+
}
|
181 |
+
|
182 |
+
?>
|
183 |
<li>
|
184 |
+
<a class="s_wp" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://api.whatsapp.com/send?text=<?php echo esc_url($amp_permalink); ?>" data-action="share/whatsapp/share" aria-label="whatsapp share"><?php echo $whatsapp_icon; ?></a>
|
185 |
</li>
|
186 |
<?php } ?>
|
187 |
<?php if(ampforwp_get_setting('enable-single-line-share') == true) {
|
195 |
</a>
|
196 |
</li>
|
197 |
<?php } ?>
|
198 |
+
<?php if(ampforwp_get_setting('enable-single-vk-share')){
|
199 |
+
$vk_icon = '';
|
200 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
201 |
+
$vk_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAzMDQuMzYgMzA0LjM2IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAzMDQuMzYgMzA0LjM2OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGcgaWQ9IlhNTElEXzFfIj4KCTxwYXRoIGlkPSJYTUxJRF84MDdfIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7IiBkPSJNMjYxLjk0NSwxNzUuNTc2YzEwLjA5Niw5Ljg1NywyMC43NTIsMTkuMTMxLDI5LjgwNywyOS45ODIgICBjNCw0LjgyMiw3Ljc4Nyw5Ljc5OCwxMC42ODQsMTUuMzk0YzQuMTA1LDcuOTU1LDAuMzg3LDE2LjcwOS02Ljc0NiwxNy4xODRsLTQ0LjM0LTAuMDJjLTExLjQzNiw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MTAxLDEwLjcyMSwxMy4wMzlsMC4wNDMsNTUuNjYzICAgYy0wLjA4NiwzLjA3MywxLjUzNSwxMi4xOTIsNy4wNywxNC4yMjZjNC40MywxLjQ0OCw3LjM1LTIuMDk2LDEwLjAwOC00LjkwNWMxMS45OTgtMTIuNzM0LDIwLjU2MS0yNy43ODMsMjguMjExLTQzLjM2NiAgIGMzLjM5NS02Ljg1Miw2LjMxNC0xMy45NjgsOS4xNDMtMjEuMDc4YzIuMDk2LTUuMjc2LDUuMzg1LTcuODcyLDExLjMyOC03Ljc1N2w0OC4yMjksMC4wNDNjMS40MywwLDIuODc3LDAuMDIxLDQuMjYyLDAuMjU4ICAgYzguMTI3LDEuMzg1LDEwLjM1NCw0Ljg4MSw3Ljg0NCwxMi44MTdjLTMuOTU1LDEyLjQ1MS0xMS42NSwyMi44MjctMTkuMTc0LDMzLjI1MWMtOC4wNDMsMTEuMTI5LTE2LjY0NSwyMS44NzctMjQuNjIxLDMzLjA3MiAgIEMyNTIuMjYsMTYxLjU0NCwyNTIuODQyLDE2Ni42OTcsMjYxLjk0NSwxNzUuNTc2TDI2MS45NDUsMTc1LjU3NnogTTI2MS45NDUsMTc1LjU3NiIgZmlsbD0iI0ZGRkZGRiIvPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="16" height="16" ></amp-img>';
|
202 |
+
}
|
203 |
+
|
204 |
+
?>
|
205 |
<li>
|
206 |
+
<a class="s_vk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://vk.com/share.php?url=<?php echo esc_url($amp_permalink); ?>" aria-label="vk share"><?php echo $vk_icon; ?></a>
|
207 |
</li>
|
208 |
<?php } ?>
|
209 |
+
<?php if(ampforwp_get_setting('enable-single-odnoklassniki-share')){
|
210 |
+
$odnoklassniki_icon = '';
|
211 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
212 |
+
$odnoklassniki_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjY0cHgiIGhlaWdodD0iNjRweCIgdmlld0JveD0iMCAwIDk1LjQ4MSA5NS40ODEiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDk1LjQ4MSA5NS40ODE7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8Zz4KCQk8cGF0aCBkPSJNNDMuMDQxLDY3LjI1NGMtNy40MDItMC43NzItMTQuMDc2LTIuNTk1LTE5Ljc5LTcuMDY0Yy0wLjcwOS0wLjU1Ni0xLjQ0MS0xLjA5Mi0yLjA4OC0xLjcxMyAgICBjLTIuNTAxLTIuNDAyLTIuNzUzLTUuMTUzLTAuNzc0LTcuOTg4YzEuNjkzLTIuNDI2LDQuNTM1LTMuMDc1LDcuNDg5LTEuNj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C4zMjljLTEzLjIwNS0wLjA0NS0yNC4wMzMtMTAuOTkyLTIzLjk1Ni0yNC4yMThDMjMuNjcsMTAuNzM5LDM0LjUwNS0wLjAzNyw0Ny44NCwwICAgIGMxMy4zNjIsMC4wMzYsMjQuMDg3LDEwLjk2NywyNC4wMiwyNC40NzhDNzEuNzkyLDM3LjY3Nyw2MC44ODksNDguMzc1LDQ3LjU1LDQ4LjMyOXogTTU5LjU1MSwyNC4xNDMgICAgYy0wLjAyMy02LjU2Ny01LjI1My0xMS43OTUtMTEuODA3LTExLjgwMWMtNi42MDktMC4wMDctMTEuODg2LDUuMzE2LTExLjgzNSwxMS45NDNjMC4wNDksNi41NDIsNS4zMjQsMTEuNzMzLDExLjg5NiwxMS43MDkgICAgQzU0LjM1NywzNS45NzEsNTkuNTczLDMwLjcwOSw1OS41NTEsMjQuMTQzeiIgZmlsbD0iI0ZGRkZGRiIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" width="16" height="16" ></amp-img>';
|
213 |
+
}
|
214 |
+
|
215 |
+
?>
|
216 |
<li>
|
217 |
+
<a class="s_od" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://ok.ru/dk?st.cmd=addShare&st._surl=<?php echo esc_url($amp_permalink); ?>" aria-label="odnoklassniki share"><?php echo $odnoklassniki_icon; ?></a>
|
218 |
</li>
|
219 |
<?php } ?>
|
220 |
+
<?php if(ampforwp_get_setting('enable-single-reddit-share')){
|
221 |
+
$reddit_icon = '';
|
222 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
223 |
+
$reddit_icon = '<amp-img src="data:image/svg+xml;base64,PHN2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zIgMzJ6bTEyNC00OGM3LTUgMTEtMTMgMTEtMjIgMC0xNC0xMS0yNS0yNS0yNS02IDAtMTEgMi0xNSA1IDE0IDEyIDI0IDI3IDI5IDQyeiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';
|
224 |
+
}
|
225 |
+
?>
|
226 |
<li>
|
227 |
+
<a class="s_rd" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://reddit.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="reddit share"><?php echo $reddit_icon; ?></a>
|
228 |
</li>
|
229 |
<?php } ?>
|
230 |
+
<?php if(ampforwp_get_setting('enable-single-tumblr-share')){
|
231 |
+
$tumblr_icon ='';
|
232 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
233 |
+
$tumblr_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMzYuMDAyIDI4djE0LjYzNmMwIDMuNzE0LS4wNDggNS44NTMuMzQ2IDYuOTA2LjM5IDEuMDQ3IDEuMzcgMi4xMzQgMi40MzcgMi43NjMgMS40MTguODUgMy4wMzQgMS4yNzMgNC44NTcgMS4yNzMgMy4yNCAwIDUuMTU1LS40MjggOC4zNi0yLjUzNHY5LjYyYy0yLjczMiAxLjI4Ni01LjExOCAyLjAzOC03LjMzNCAyLjU2LTIuMjIuNTE0LTQuNjE2Ljc3NC03LjE5Ljc3NC0yLjkyOCAwLTQuNjU1LS4zNjgtNi45MDItMS4xMDMtMi4yNDctLjc0Mi00LjE2Ni0xLjgtNS43NS0zLjE2LTEuNTkyLTEuMzctMi42OS0yLjgyNC0zLjMwNC00LjM2M3MtLjkyLTMuNzc2LS45Mi02LjcwM1YyNi4yMjRoLTguNTl2LTkuMDYzYzIuNTE0LS44MTUgNS4zMjQtMS45ODcgNy4xMTItMy41MSAxLjc5Ny0xLjUyNyAzLjIzNS0zLjM1NiA0LjMyLTUuNDk2QzI0LjUzIDYuMDIyIDI1LjI3NiAzLjMgMjUuNjgzIDBoMTAuMzJ2MTZINTJ2MTJIMzYuMDA0eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';}?>
|
234 |
<li>
|
235 |
+
<a class="s_tb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://www.tumblr.com/widgets/share/tool?canonicalUrl=<?php echo esc_url($amp_permalink); ?>" aria-label="tumbler share"><?php echo $tumblr_icon; ?></a>
|
236 |
</li>
|
237 |
<?php } ?>
|
238 |
+
<?php if(ampforwp_get_setting('enable-single-telegram-share')){
|
239 |
+
$telegram_icon = '';
|
240 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
241 |
+
$telegram_icon = '<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS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Pgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" ></amp-img>';
|
242 |
+
}
|
243 |
+
|
244 |
+
?>
|
245 |
<li>
|
246 |
+
<a class="s_tg" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="telegram share"><?php echo $telegram_icon; ?></a>
|
247 |
</li>
|
248 |
<?php } ?>
|
249 |
+
<?php if(ampforwp_get_setting('enable-single-stumbleupon-share')){
|
250 |
+
$stumbleupon = '';
|
251 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
252 |
+
$stumbleupon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjcwLjIyMzMgNjAxLjA4NjkiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCA0MzcuMjQ3di05Mi42NzJoMTE0LjY4OHY5MS42NjRjMCA5LjU2NyAzLjQwOCAxNy44MjMgMTAuMjQgMjQuODNzMTUuMTg0IDEwLjQ5NyAyNS4wODggMTAuNDk3IDE4LjMzNi0zLjQyNCAyNS4zNDQtMTAuMjRjNy4wMDgtNi44NDggMTAuNDk2LTE1LjIgMTAuNDk2LTI1LjA4OFYyMTkuNjQ2YzAtMzkuOTM1IDE0Ljc1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LjQ5Ny0xMDUuOTg1LTQzLjUyYy0yOS4zNi0yOS4wNC00NC4wNDgtNjQuMDE3LTQ0LjA0OC0xMDQuOTc4eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';
|
253 |
+
}
|
254 |
+
|
255 |
+
?>
|
256 |
<li>
|
257 |
+
<a class="s_su" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="stumbleupon share"><?php echo $stumbleupon; ?></a>
|
258 |
</li>
|
259 |
<?php } ?>
|
260 |
+
<?php if(ampforwp_get_setting('enable-single-wechat-share')){
|
261 |
+
$wechat_icon = '';
|
262 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
263 |
+
$wechat_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjA0OCAxODk2LjA4MzMiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNNTgwIDQ2MXEwLTQxLTI1LTY2dC02Ni0yNXEtNDMgMC03NiAyNS41VDM4MCA0NjFxMCAzOSAzMyA2NC41dDc2IDI1LjVxNDEgMCA2Ni0yNC41dDI1LTY1LjV6bTc0MyA1MDdxMC0yOC0yNS41LTUwdC02NS41LTIycS0yNyAwLTQ5LjUgMjIuNVQxMTYwIDk2OHEwIDI4IDIyLjUgNTAuNXQ0OS41IDIyLjVxNDAgMCA2NS41LTIydDI1LjUtNTF6bS0yMzYtNTA3cTAtNDEtMjQuNS02NlQ5OTcgMzcwcS00MyAwLTc2IDI1LjVUODg4IDQ2MXEwIDM5IDMzIDY0LjV0NzYgMjUuNXE0MSAwIDY1LjUtMjQuNVQxMDg3IDQ2MXptNjM1IDUwN3EwLTI4LTI2LTUwdC02NS0yMnEtMjcgMC00OS41IDIyLjVUMTU1OSA5NjhxMCAyOCAyMi41IDUwLjV0NDkuNSAyMi41cTM5IDAgNjUtMjJ0MjYtNTF6bS0yNjYtMzk3cS0zMS00LTcwLTQtMTY5IDAtMzExIDc3VDg1MS41IDg1Mi41IDc3MCAxMTQwcTAgNzggMjMgMTUyLTM1IDMtNjggMy0yNiAwLTUwLTEuNXQtNTUtNi41LTQ0LjUtNy01NC41LTEwLjUtNTAtMTAuNWwtMjUzIDEyNyA3Mi0yMThRMCA5NjUgMCA2NzhxMC0xNjkgOTcuNS0zMTF0MjY0LTIyMy41VDcyNSA2MnExNzYgMCAzMzIuNSA2NnQyNjIgMTgyLjVUMTQ1NiA1NzF6bTU5MiA1NjFxMCAxMTctNjguNSAyMjMuNVQxNzk0IDE1NDlsNTUgMTgxLTE5OS0xMDlxLTE1MCAzNy0yMTggMzctMTY5IDAtMzExLTcwLjVUODk3LjUgMTM5NiA4MTYgMTEzMnQ4MS41LTI2NFQxMTIxIDY3Ni41dDMxMS03MC41cTE2MSAwIDMwMyA3MC41dDIyNy41IDE5MlQyMDQ4IDExMzJ6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';}?>
|
264 |
<li>
|
265 |
+
<a class="s_wc" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://api.addthis.com/oexchange/0.8/forward/wechat/offer?url=<?php echo esc_url($amp_permalink); ?>" aria-label="wechat share"><?php echo $wechat_icon; ?></a>
|
266 |
</li>
|
267 |
<?php } ?>
|
268 |
+
<?php if(ampforwp_get_setting('enable-single-viber-share')){
|
269 |
+
$viber_icon = '';
|
270 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
271 |
+
$viber_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTAyNiAxMjM0IiBmaWxsPSIjZmZmZmZmIiA+PHBhdGggZD0iTTkwNCA3OTRxLTY5IDYxLTIwMCA4Ny41VDQzNCA4OTdsLTE3NiAxMzJWODY0cS04Ny0yNy0xMzYtNzAtNTgtNTEtOTAtMTQ2LjV0LTMyLTE5NSAzMi0xOTUgOTAuNS0xNDcgMTY3LjUtNzlUNTEzIDR0MjIzIDI3LjUgMTY3LjUgNzkgOTAuNSAxNDcgMzIgMTk1LTMyIDE5NVQ5MDQgNzk0ek02MzkgNTQ5bDY1IDExcS04LTEyMC05Mi41LTIwNVQ0MDcgMjYybDExIDY1cTg2IDExIDE0OCA3M3Q3MyAxNDl6TTQyOSAzOTRsMTIgNzJxNDAgMjAgNTkgNTlsNzIgMTJxLTEyLTUzLTUxLTkxLjVUNDI5IDM5NHptLTEwNyA1OXYtNjRxMC0xNy0xMi41LTM0VDI4MyAzMzAuNXQtMjEtMS41bC00NiA0N3EtMzkgMzktMTEuNSAxMjEuNXQxMDUgMTYwIDE2MCAxMDVUNTkwIDc1MWw0Ny00N3E3LTYtLjUtMjAuNVQ2MTIgNjU3dC0zNC0xMmgtNjRsLTM3IDMycS00NC0xMi0xMDkuNS03Ny41VDI5MCA0ODl6bTY0LTMyMGwxMCA2NXExMDAgMiAxODUgNTIuNXQxMzUgMTM1VDc2OSA1NzBsNjUgMTFxMC05MS0zNS41LTE3NFQ3MDMgMjY0dC0xNDMtOTUuNVQzODYgMTMzeiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" ></amp-img>';
|
272 |
+
}
|
273 |
+
?>
|
274 |
<li>
|
275 |
+
<a class="s_vb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="viber://forward?text=<?php echo esc_url($amp_permalink); ?>" aria-label="viber share"><?php echo $viber_icon; ?></a>
|
276 |
</li>
|
277 |
<?php } ?>
|
278 |
+
<?php if ( ampforwp_get_setting('enable-single-yummly-share')){
|
279 |
+
$yummly_icon = '';
|
280 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
281 |
+
$yummly_icon = '<amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgODk2IDEwMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAxOTN2NjQwaDg5NlYxOTNIMHptNzY4IDY0TDQ0OCA1MjEgMTI4IDI1N2g2NDB6TTY0IDMyMWwyNTIuMDMgMTkxLjYyNUw2NCA3MDVWMzIxem02NCA0NDhsMjU0LTIwNi4yNUw0NDggNjEzbDY1Ljg3NS01MC4xMjVMNzY4IDc2OUgxMjh6bTcwNC02NEw1NzkuNjI1IDUxMi45MzggODMyIDMyMXYzODR6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" ></amp-img>';
|
282 |
+
}
|
283 |
+
?>
|
284 |
<li>
|
285 |
+
<a class="s_ym" target="_blank" <?php ampforwp_nofollow_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" aria-label="yummly share"><?php echo $yummly_icon; ?></a>
|
286 |
</li>
|
287 |
<?php } ?>
|
288 |
+
<?php if ( ampforwp_get_setting('enable-single-hatena-bookmarks')){
|
289 |
+
$hatena_icon = '';
|
290 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
291 |
+
$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>';
|
292 |
+
}
|
293 |
+
|
294 |
+
?>
|
295 |
<li>
|
296 |
+
<a class="s_hb" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://b.hatena.ne.jp/entry/<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="hatena share"><?php echo $hatena_icon; ?></a>
|
297 |
</li>
|
298 |
<?php } ?>
|
299 |
+
<?php if ( ampforwp_get_setting('enable-single-pocket-share')){
|
300 |
+
$pocket_icon = '';
|
301 |
+
if('css-icons' == ampforwp_get_setting('ampforwp_font_icon')){
|
302 |
+
$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>';
|
303 |
+
}
|
304 |
+
|
305 |
+
|
306 |
+
?>
|
307 |
<li>
|
308 |
+
<a class="s_pk" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://getpocket.com/save?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="pocket share"><?php echo $pocket_icon; ?></a>
|
309 |
</li>
|
310 |
<?php } ?>
|
311 |
<?php if ( true == ampforwp_get_setting('enable-single-mewe-share')){?>
|
templates/design-manager/swift/style.php
CHANGED
@@ -2356,4 +2356,92 @@ section.amp-facebook-comments h5{
|
|
2356 |
text-transform: uppercase;
|
2357 |
border-bottom: 1px dotted #ccc;
|
2358 |
}
|
2359 |
-
<?php }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2356 |
text-transform: uppercase;
|
2357 |
border-bottom: 1px dotted #ccc;
|
2358 |
}
|
2359 |
+
<?php }
|
2360 |
+
if ($ampforwp_font_icon == 'css-icons'){?>
|
2361 |
+
.t-btn {
|
2362 |
+
color: #000;
|
2363 |
+
position: absolute;
|
2364 |
+
width: 17px;
|
2365 |
+
height: 5px;
|
2366 |
+
border-top: solid 1px currentColor;
|
2367 |
+
border-bottom: solid 1px currentColor;
|
2368 |
+
}
|
2369 |
+
.t-btn:after {
|
2370 |
+
content: '';
|
2371 |
+
position: absolute;
|
2372 |
+
top: 3px;
|
2373 |
+
left: 0;
|
2374 |
+
width: 17px;
|
2375 |
+
height: 5px;
|
2376 |
+
border-bottom: solid 1px currentColor;
|
2377 |
+
}
|
2378 |
+
.icon-src,a.lb-x {
|
2379 |
+
color: #000;
|
2380 |
+
position: absolute;
|
2381 |
+
width: 12px;
|
2382 |
+
height: 12px;
|
2383 |
+
border: solid 1px #000;
|
2384 |
+
border-radius: 100%;
|
2385 |
+
transform: rotate(-45deg);
|
2386 |
+
}
|
2387 |
+
.icon-src:before,a.lb-x:before {
|
2388 |
+
content: '';
|
2389 |
+
position: absolute;
|
2390 |
+
top: 12px;
|
2391 |
+
left: 5px;
|
2392 |
+
height: 6px;
|
2393 |
+
width: 1px;
|
2394 |
+
background-color: currentColor;
|
2395 |
+
}
|
2396 |
+
.overlay-search {
|
2397 |
+
position: absolute;
|
2398 |
+
width: 12px;
|
2399 |
+
height: 12px;
|
2400 |
+
border: solid 1px #fff;
|
2401 |
+
border-radius: 100%;
|
2402 |
+
transform: rotate(-45deg);
|
2403 |
+
right: 10px;
|
2404 |
+
top: 0px;
|
2405 |
+
}
|
2406 |
+
.overlay-search:before {
|
2407 |
+
content: '';
|
2408 |
+
position: absolute;
|
2409 |
+
top: 12px;
|
2410 |
+
left: 5px;
|
2411 |
+
height: 6px;
|
2412 |
+
width: 1px;
|
2413 |
+
background-color: currentColor;
|
2414 |
+
|
2415 |
+
}
|
2416 |
+
.m-srch .overlay-search {
|
2417 |
+
border: 1px solid #000;
|
2418 |
+
top: 10px;
|
2419 |
+
}
|
2420 |
+
.m-srch .overlay-search:before {
|
2421 |
+
padding-right: 0px;
|
2422 |
+
top: 10px;
|
2423 |
+
}
|
2424 |
+
a.bread-link.bread-home::after {
|
2425 |
+
content: "►";
|
2426 |
+
top:-1px;
|
2427 |
+
}
|
2428 |
+
.lb-t:target a.lb-x {
|
2429 |
+
width: 32px;
|
2430 |
+
height: 32px;
|
2431 |
+
top: 50px;
|
2432 |
+
right: 20px;
|
2433 |
+
}
|
2434 |
+
.lb-t:target a.lb-x:before {
|
2435 |
+
content: "X";
|
2436 |
+
color: #fff;
|
2437 |
+
transform: rotate(45deg);
|
2438 |
+
background-color: transparent;
|
2439 |
+
top: -4px;
|
2440 |
+
height: -17px;
|
2441 |
+
margin: 10px;
|
2442 |
+
}
|
2443 |
+
#search a.lb-x {
|
2444 |
+
border: 1px solid #fff;
|
2445 |
+
}
|
2446 |
+
}
|
2447 |
+
<?php }
|
templates/features.php
CHANGED
@@ -3971,6 +3971,10 @@ function ampforwp_post_paginated_link_generator( $i ) {
|
|
3971 |
// Modify the content to make Pagination work on Pages and FrontPage #2253
|
3972 |
add_filter('ampforwp_modify_the_content','ampforwp_post_paginated_content');
|
3973 |
function ampforwp_post_paginated_content($content){
|
|
|
|
|
|
|
|
|
3974 |
if ( is_singular() || ampforwp_is_front_page() ){
|
3975 |
global $redux_builder_amp, $page, $multipage;
|
3976 |
$ampforwp_new_content = $ampforwp_the_content = $checker = '';
|
@@ -8002,6 +8006,45 @@ function ampforwp_include_required_scripts($content){
|
|
8002 |
}
|
8003 |
}
|
8004 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8005 |
// Scripts added from Options panel should have higher priority #4064
|
8006 |
if( ampforwp_get_setting('amp-header-text-area-for-html') && ampforwp_get_setting('amp-header-text-area-for-html')!="") {
|
8007 |
$allscripts = ampforwp_get_setting('amp-header-text-area-for-html');
|
3971 |
// Modify the content to make Pagination work on Pages and FrontPage #2253
|
3972 |
add_filter('ampforwp_modify_the_content','ampforwp_post_paginated_content');
|
3973 |
function ampforwp_post_paginated_content($content){
|
3974 |
+
//Embed pinterest images to the amp #4361
|
3975 |
+
if(preg_match('/<a(.*?)data-pin-do="embedPin"(.*?)href="(.*?)"><\/a>/', $content)){
|
3976 |
+
$content = preg_replace('/<a(.*?)data-pin-do="embedPin"(.*?)href="(.*?)"><\/a>/', '<amp-pinterest width="250" height="500" data-do="embedPin" data-url="$3"></amp-pinterest>', $content);
|
3977 |
+
}
|
3978 |
if ( is_singular() || ampforwp_is_front_page() ){
|
3979 |
global $redux_builder_amp, $page, $multipage;
|
3980 |
$ampforwp_new_content = $ampforwp_the_content = $checker = '';
|
8006 |
}
|
8007 |
}
|
8008 |
}
|
8009 |
+
|
8010 |
+
$amp_video = $xpath->query("//amp-video");
|
8011 |
+
foreach($amp_video as $node) {
|
8012 |
+
if($node->hasAttribute('dock')){
|
8013 |
+
if(ampforwp_get_setting('ampforwp-amp-video-docking')){
|
8014 |
+
$celem = 'element';
|
8015 |
+
$ocomp = 'amp-video-docking';
|
8016 |
+
if(!preg_match('/<script(\s|\sasync\s)custom-'.esc_attr($celem).'="'.esc_attr($ocomp).'"(.*?)>(.*?)<\/script>/s', $content)){
|
8017 |
+
$o_comp_url = 'https://cdn.ampproject.org/v0/'.esc_attr($ocomp).'-'.esc_attr($script_ver).'.js';
|
8018 |
+
$script_tag = '<head><script custom-'.esc_attr($celem).'="'.esc_attr($ocomp).'" src="'.esc_url($o_comp_url).'" async></script>';
|
8019 |
+
$content = str_replace('<head>', $script_tag, $content);
|
8020 |
+
}
|
8021 |
+
}else{
|
8022 |
+
if(preg_match('/<amp-video(.*?) dock|dock=">/', $content)){
|
8023 |
+
$content = preg_replace('/<amp-video(.*?) dock|dock=">/','<amp-video $1>', $content);
|
8024 |
+
}
|
8025 |
+
}
|
8026 |
+
}
|
8027 |
+
}
|
8028 |
+
|
8029 |
+
$amp_youtube = $xpath->query("//amp-youtube");
|
8030 |
+
foreach($amp_youtube as $node) {
|
8031 |
+
if($node->hasAttribute('dock')){
|
8032 |
+
if(ampforwp_get_setting('ampforwp-amp-video-docking')){
|
8033 |
+
$celem = 'element';
|
8034 |
+
$ocomp = 'amp-video-docking';
|
8035 |
+
if(!preg_match('/<script(\s|\sasync\s)custom-'.esc_attr($celem).'="'.esc_attr($ocomp).'"(.*?)>(.*?)<\/script>/s', $content)){
|
8036 |
+
$o_comp_url = 'https://cdn.ampproject.org/v0/'.esc_attr($ocomp).'-'.esc_attr($script_ver).'.js';
|
8037 |
+
$script_tag = '<head><script custom-'.esc_attr($celem).'="'.esc_attr($ocomp).'" src="'.esc_url($o_comp_url).'" async></script>';
|
8038 |
+
$content = str_replace('<head>', $script_tag, $content);
|
8039 |
+
}
|
8040 |
+
}else{
|
8041 |
+
if(preg_match('/<amp-video(.*?) dock|dock=">/', $content)){
|
8042 |
+
$content = preg_replace('/<amp-video(.*?) dock|dock=">/','<amp-video $1>', $content);
|
8043 |
+
}
|
8044 |
+
}
|
8045 |
+
}
|
8046 |
+
}
|
8047 |
+
|
8048 |
// Scripts added from Options panel should have higher priority #4064
|
8049 |
if( ampforwp_get_setting('amp-header-text-area-for-html') && ampforwp_get_setting('amp-header-text-area-for-html')!="") {
|
8050 |
$allscripts = ampforwp_get_setting('amp-header-text-area-for-html');
|