Version Description
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.9.49 |
Comparing to | |
See all releases |
Code changes from version 0.9.48 to 0.9.49
- accelerated-moblie-pages.php +23 -2
- includes/includes.php +9 -6
- includes/options/admin-config.php +75 -27
- readme.txt +35 -3
- templates/custom-amp-content.php +4 -1
- templates/design-manager.php +4 -4
- templates/design-manager/design-1/archive.php +1 -1
- templates/design-manager/design-1/elements/content.php +13 -7
- templates/design-manager/design-1/elements/meta-taxonomy.php +24 -2
- templates/design-manager/design-1/elements/social-icons.php +43 -34
- templates/design-manager/design-1/elements/title.php +5 -1
- templates/design-manager/design-1/footer.php +10 -1
- templates/design-manager/design-1/frontpage.php +26 -7
- templates/design-manager/design-1/style.php +15 -5
- templates/design-manager/design-2/archive.php +2 -1
- templates/design-manager/design-2/elements/content.php +11 -6
- templates/design-manager/design-2/elements/meta-info.php +1 -1
- templates/design-manager/design-2/elements/meta-taxonomy.php +23 -1
- templates/design-manager/design-2/elements/social-icons.php +15 -6
- templates/design-manager/design-2/elements/title.php +5 -1
- templates/design-manager/design-2/footer.php +9 -0
- templates/design-manager/design-2/frontpage.php +27 -7
- templates/design-manager/design-2/style.php +13 -2
- templates/design-manager/design-3/archive.php +2 -2
- templates/design-manager/design-3/elements/content.php +11 -6
- templates/design-manager/design-3/elements/meta-info.php +2 -2
- templates/design-manager/design-3/elements/meta-taxonomy.php +19 -16
- templates/design-manager/design-3/elements/social-icons.php +11 -4
- templates/design-manager/design-3/elements/title.php +6 -2
- templates/design-manager/design-3/frontpage.php +30 -7
- templates/design-manager/design-3/index.php +1 -1
- templates/design-manager/design-3/search.php +1 -1
- templates/design-manager/design-3/style.php +13 -7
- templates/features.php +155 -56
accelerated-moblie-pages.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
-
Version: 0.9.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
16 |
define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
|
17 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
|
18 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
19 |
-
define('AMPFORWP_VERSION','0.9.
|
20 |
// any changes to AMP_QUERY_VAR should be refelected here
|
21 |
define('AMPFORWP_AMP_QUERY_VAR', apply_filters( 'amp_query_var', 'amp' ) );
|
22 |
|
@@ -32,6 +32,18 @@ function ampforwp_add_custom_post_support() {
|
|
32 |
}
|
33 |
add_action( 'init', 'ampforwp_add_custom_post_support',11);
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
// Add Custom Rewrite Rule to make sure pagination & redirection is working correctly
|
36 |
function ampforwp_add_custom_rewrite_rules() {
|
37 |
// For Homepage
|
@@ -46,6 +58,15 @@ function ampforwp_add_custom_rewrite_rules() {
|
|
46 |
'index.php?amp&paged=$matches[1]',
|
47 |
'top'
|
48 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
// For category pages
|
51 |
$rewrite_category = get_option('category_base');
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
+
Version: 0.9.49
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
16 |
define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
|
17 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
|
18 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
19 |
+
define('AMPFORWP_VERSION','0.9.49');
|
20 |
// any changes to AMP_QUERY_VAR should be refelected here
|
21 |
define('AMPFORWP_AMP_QUERY_VAR', apply_filters( 'amp_query_var', 'amp' ) );
|
22 |
|
32 |
}
|
33 |
add_action( 'init', 'ampforwp_add_custom_post_support',11);
|
34 |
|
35 |
+
// Frontpage and Blog page check from reading settings.
|
36 |
+
function ampforwp_name_blog_page() {
|
37 |
+
$page_for_posts = get_option( 'page_for_posts' );
|
38 |
+
$post = get_post($page_for_posts);
|
39 |
+
$slug = $post->post_name;
|
40 |
+
return $slug;
|
41 |
+
}
|
42 |
+
function ampforwp_custom_post_page() {
|
43 |
+
$front_page_type = get_option( 'show_on_front' );
|
44 |
+
return $front_page_type;
|
45 |
+
}
|
46 |
+
|
47 |
// Add Custom Rewrite Rule to make sure pagination & redirection is working correctly
|
48 |
function ampforwp_add_custom_rewrite_rules() {
|
49 |
// For Homepage
|
58 |
'index.php?amp&paged=$matches[1]',
|
59 |
'top'
|
60 |
);
|
61 |
+
// For Homepage with Pagination
|
62 |
+
if ( ampforwp_custom_post_page() && ampforwp_name_blog_page() ) {
|
63 |
+
add_rewrite_rule(
|
64 |
+
ampforwp_name_blog_page(). '/amp/page/([0-9]{1,})/?$',
|
65 |
+
'index.php?amp&paged=$matches[1]',
|
66 |
+
'top'
|
67 |
+
);
|
68 |
+
}
|
69 |
+
|
70 |
|
71 |
// For category pages
|
72 |
$rewrite_category = get_option('category_base');
|
includes/includes.php
CHANGED
@@ -2,7 +2,8 @@
|
|
2 |
/* This file will contain all the extra code that works like a supporting.
|
3 |
1. Register AMP menu
|
4 |
1.1 AMP Header menu
|
5 |
-
1.2
|
|
|
6 |
2. Newsletter code
|
7 |
*/
|
8 |
// 1. AMP menu code
|
@@ -19,13 +20,15 @@
|
|
19 |
add_action( 'init', 'ampforwp_menu' );
|
20 |
}
|
21 |
|
22 |
-
// 1.2
|
23 |
global $redux_builder_amp;
|
24 |
-
if ( $redux_builder_amp['amp-design-selector'] ==
|
25 |
-
|
|
|
|
|
26 |
}
|
27 |
-
if (! function_exists( '
|
28 |
-
function
|
29 |
register_nav_menus(
|
30 |
array(
|
31 |
'amp-footer-menu' => __( 'AMP Footer Menu','accelerated-mobile-pages' ),
|
2 |
/* This file will contain all the extra code that works like a supporting.
|
3 |
1. Register AMP menu
|
4 |
1.1 AMP Header menu
|
5 |
+
1.2 Footer Menu
|
6 |
+
|
7 |
2. Newsletter code
|
8 |
*/
|
9 |
// 1. AMP menu code
|
20 |
add_action( 'init', 'ampforwp_menu' );
|
21 |
}
|
22 |
|
23 |
+
// 1.2 Footer Menu
|
24 |
global $redux_builder_amp;
|
25 |
+
if ( $redux_builder_amp['amp-design-selector'] == 1 ||
|
26 |
+
$redux_builder_amp['amp-design-selector'] == 2 ||
|
27 |
+
$redux_builder_amp['amp-design-selector'] == 3) {
|
28 |
+
add_action( 'init', 'ampforwp_footermenu' );
|
29 |
}
|
30 |
+
if (! function_exists( 'ampforwp_footermenu') ) {
|
31 |
+
function ampforwp_footermenu() {
|
32 |
register_nav_menus(
|
33 |
array(
|
34 |
'amp-footer-menu' => __( 'AMP Footer Menu','accelerated-mobile-pages' ),
|
includes/options/admin-config.php
CHANGED
@@ -210,7 +210,7 @@ $single_extension_listing = '
|
|
210 |
<li class="first"><a href="http://ampforwp.com/advanced-amp-ads/#utm_source=options-panel&utm_medium=gettingstarted-amp-ads&utm_campaign=AMP%20Plugin" target="_blank">
|
211 |
<div class="align_left"><img src="'.AMPFORWP_IMAGE_DIR . '/click.png" /></div>
|
212 |
<div class="extension_desc">
|
213 |
-
<h2>Advanced AMP ADS</h2>
|
214 |
<p>Add Advertisement directly in the content</p>
|
215 |
<div class="extension_btn">View Details</div>
|
216 |
</div>
|
@@ -361,7 +361,7 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
361 |
'title' => __( 'Getting Started', 'accelerated-mobile-pages' ),
|
362 |
'id' => 'basic',
|
363 |
'desc' => __( '<div class="amp-faq">Thank you for using Accelerated Mobile Pages plugin. '. ' ' .
|
364 |
-
|
365 |
sprintf( __( ' <h2 style=" width: 150px;
|
366 |
float: right;
|
367 |
padding: 15px 20px;
|
@@ -483,6 +483,7 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
483 |
'true' => 'true',
|
484 |
'false' => 'false',
|
485 |
'required' => array('ampforwp-homepage-on-off-support','=','1'),
|
|
|
486 |
),
|
487 |
array(
|
488 |
'id' => 'amp-frontpage-select-option-pages',
|
@@ -592,6 +593,8 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
592 |
'3' => __('Piwik Analytics', 'accelerated-mobile-pages' ),
|
593 |
'4' => __('Quantcast Measurement', 'accelerated-mobile-pages' ),
|
594 |
'5' => __('comScore', 'accelerated-mobile-pages' ),
|
|
|
|
|
595 |
),
|
596 |
'required' => array(
|
597 |
array('amp-use-gtm-option', '=' , '0'),
|
@@ -633,6 +636,30 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
633 |
'subtitle' => __('Enter your Piwik Analytics URL.', 'accelerated-mobile-pages' ),
|
634 |
'default' => '#',
|
635 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
636 |
|
637 |
array(
|
638 |
'id' =>'amp-quantcast-analytics-code',
|
@@ -888,25 +915,6 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
888 |
),
|
889 |
'default' => '1'
|
890 |
),
|
891 |
-
array(
|
892 |
-
'id' => 'amp-design-3-author-description',
|
893 |
-
'type' => 'switch',
|
894 |
-
'title' => __( 'Author Bio in Single', 'accelerated-mobile-pages' ),
|
895 |
-
'required' => array(
|
896 |
-
array('amp-design-selector', '=' , '3')
|
897 |
-
),
|
898 |
-
'default' => '1'
|
899 |
-
),
|
900 |
-
array(
|
901 |
-
'id' => 'amp-design-3-date-feature',
|
902 |
-
'type' => 'switch',
|
903 |
-
'title' => __( 'Display Date on Single', 'accelerated-mobile-pages' ),
|
904 |
-
'required' => array(
|
905 |
-
array('amp-design-selector', '=' , '3')
|
906 |
-
),
|
907 |
-
'desc' => __('Display date along with author and category', 'accelerated-mobile-pages' ),
|
908 |
-
'default' => '0'
|
909 |
-
),
|
910 |
|
911 |
array(
|
912 |
'id' => 'css_editor',
|
@@ -1362,6 +1370,13 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
1362 |
'default' => 1,
|
1363 |
'subtitle' => __('Enable Social Icons in single', 'accelerated-mobile-pages'),
|
1364 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1365 |
//deselectable next previous links
|
1366 |
array(
|
1367 |
'id' => 'enable-single-next-prev',
|
@@ -1378,6 +1393,24 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
1378 |
'default' => 0,
|
1379 |
'subtitle' => __('Show Modified date of an article at the end of the post.', 'accelerated-mobile-pages'),
|
1380 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1381 |
// Related Post
|
1382 |
array(
|
1383 |
'id' => 'ampforwp-single-select-type-of-related',
|
@@ -1399,20 +1432,20 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
1399 |
'validate' => 'numeric',
|
1400 |
'default' => '3',
|
1401 |
),
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
// array(
|
1406 |
// 'id' => 'ampforwp-comments-banner',
|
1407 |
// 'type' => 'select',
|
1408 |
// 'desc' => $comment_desc,
|
1409 |
// 'title' => __(' df', 'accelerated-mobile-pages'),
|
1410 |
// 'class' => 'new-class',
|
1411 |
-
//
|
1412 |
// // 'desc' => ' <br /><a href="' . esc_url(admin_url('customize.php?autofocus[section]=amp_design&customize_amp=1')) .'" target="_blank"><img class="ampforwp-post-builder-img" src="'.AMPFORWP_IMAGE_DIR . '/amp-post-builder.png" width="489" height="72" /></a>',
|
1413 |
// ),
|
1414 |
-
//
|
1415 |
-
|
1416 |
$fields = array(
|
1417 |
'id' => 'info_normal',
|
1418 |
'type' => 'info',
|
@@ -1498,6 +1531,13 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
1498 |
'title' => __('WhatsApp', 'accelerated-mobile-pages'),
|
1499 |
'default' => 1,
|
1500 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1501 |
array(
|
1502 |
'id' => 'social-media-profiles-subsection',
|
1503 |
'type' => 'section',
|
@@ -2032,6 +2072,14 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
2032 |
'default' => __('Next Read: ','accelerated-mobile-pages'),
|
2033 |
'placeholder'=>__('write here','accelerated-mobile-pages'),
|
2034 |
'required' => array( 'amp-use-pot', '=' , 0 )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2035 |
),
|
2036 |
array(
|
2037 |
'id' => 'amp-translator-search-text',
|
210 |
<li class="first"><a href="http://ampforwp.com/advanced-amp-ads/#utm_source=options-panel&utm_medium=gettingstarted-amp-ads&utm_campaign=AMP%20Plugin" target="_blank">
|
211 |
<div class="align_left"><img src="'.AMPFORWP_IMAGE_DIR . '/click.png" /></div>
|
212 |
<div class="extension_desc">
|
213 |
+
<h2>Advanced AMP ADS</h2>
|
214 |
<p>Add Advertisement directly in the content</p>
|
215 |
<div class="extension_btn">View Details</div>
|
216 |
</div>
|
361 |
'title' => __( 'Getting Started', 'accelerated-mobile-pages' ),
|
362 |
'id' => 'basic',
|
363 |
'desc' => __( '<div class="amp-faq">Thank you for using Accelerated Mobile Pages plugin. '. ' ' .
|
364 |
+
|
365 |
sprintf( __( ' <h2 style=" width: 150px;
|
366 |
float: right;
|
367 |
padding: 15px 20px;
|
483 |
'true' => 'true',
|
484 |
'false' => 'false',
|
485 |
'required' => array('ampforwp-homepage-on-off-support','=','1'),
|
486 |
+
'desc' => __( 'Re-Save permalink if front page or custom post page\'s pagination is not working. Please have a look <a href="https://ampforwp.com/flush-rewrite-urls/">here</a> on how to do it', 'accelerated-mobile-pages' ),
|
487 |
),
|
488 |
array(
|
489 |
'id' => 'amp-frontpage-select-option-pages',
|
593 |
'3' => __('Piwik Analytics', 'accelerated-mobile-pages' ),
|
594 |
'4' => __('Quantcast Measurement', 'accelerated-mobile-pages' ),
|
595 |
'5' => __('comScore', 'accelerated-mobile-pages' ),
|
596 |
+
'6' => __('Effective Measure', 'accelerated-mobile-pages' ),
|
597 |
+
'7' => __('StatCounter', 'accelerated-mobile-pages' ),
|
598 |
),
|
599 |
'required' => array(
|
600 |
array('amp-use-gtm-option', '=' , '0'),
|
636 |
'subtitle' => __('Enter your Piwik Analytics URL.', 'accelerated-mobile-pages' ),
|
637 |
'default' => '#',
|
638 |
),
|
639 |
+
array(
|
640 |
+
'id' => 'eam-feild',
|
641 |
+
'type' => 'text',
|
642 |
+
'title' => __( 'Effective Measure Analytics', 'accelerated-mobile-pages' ),
|
643 |
+
'required' => array(
|
644 |
+
array('amp-use-gtm-option', '=' , '0'),
|
645 |
+
array('amp-analytics-select-option', '=' , '6')
|
646 |
+
),
|
647 |
+
'desc' => __( 'Example: https://s.effectivemeasure.net/d/6/i?pu=CANONICAL_URL&ru=DOCUMENT_REFERRER&rnd=RANDOM', 'accelerated-mobile-pages' ),
|
648 |
+
'subtitle' => __('Enter your Effective Measure URL.', 'accelerated-mobile-pages' ),
|
649 |
+
'default' => '#',
|
650 |
+
),
|
651 |
+
array(
|
652 |
+
'id' => 'sc-feild',
|
653 |
+
'type' => 'text',
|
654 |
+
'title' => __( 'StatCounter', 'accelerated-mobile-pages' ),
|
655 |
+
'required' => array(
|
656 |
+
array('amp-use-gtm-option', '=' , '0'),
|
657 |
+
array('amp-analytics-select-option', '=' , '7')
|
658 |
+
),
|
659 |
+
'desc' => __( 'Example: https://c.statcounter.com/PROJECT_ID/0/SECURITY_CODE/1/', 'accelerated-mobile-pages' ),
|
660 |
+
'subtitle' => __('Enter your StatCounter URL.', 'accelerated-mobile-pages' ),
|
661 |
+
'default' => '#',
|
662 |
+
),
|
663 |
|
664 |
array(
|
665 |
'id' =>'amp-quantcast-analytics-code',
|
915 |
),
|
916 |
'default' => '1'
|
917 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
918 |
|
919 |
array(
|
920 |
'id' => 'css_editor',
|
1370 |
'default' => 1,
|
1371 |
'subtitle' => __('Enable Social Icons in single', 'accelerated-mobile-pages'),
|
1372 |
),
|
1373 |
+
array(
|
1374 |
+
'id' => 'enable-excerpt-single',
|
1375 |
+
'type' => 'switch',
|
1376 |
+
'title' => __('Excerpt in single', 'accelerated-mobile-pages'),
|
1377 |
+
'default' => 0,
|
1378 |
+
'subtitle' => __('Enable feature to add Excerpt above Content in single', 'accelerated-mobile-pages'),
|
1379 |
+
),
|
1380 |
//deselectable next previous links
|
1381 |
array(
|
1382 |
'id' => 'enable-single-next-prev',
|
1393 |
'default' => 0,
|
1394 |
'subtitle' => __('Show Modified date of an article at the end of the post.', 'accelerated-mobile-pages'),
|
1395 |
),
|
1396 |
+
// Author Bio
|
1397 |
+
array(
|
1398 |
+
'id' => 'amp-author-description',
|
1399 |
+
'type' => 'switch',
|
1400 |
+
'title' => __( 'Author Bio in Single', 'accelerated-mobile-pages' ),
|
1401 |
+
'default' => '1',
|
1402 |
+
),
|
1403 |
+
// Date on Single
|
1404 |
+
array(
|
1405 |
+
'id' => 'amp-design-3-date-feature',
|
1406 |
+
'type' => 'switch',
|
1407 |
+
'title' => __( 'Display Date on Single', 'accelerated-mobile-pages' ),
|
1408 |
+
'required' => array(
|
1409 |
+
array('amp-design-selector', '=' , '3')
|
1410 |
+
),
|
1411 |
+
'desc' => __('Display date along with author and category', 'accelerated-mobile-pages' ),
|
1412 |
+
'default' => '0'
|
1413 |
+
),
|
1414 |
// Related Post
|
1415 |
array(
|
1416 |
'id' => 'ampforwp-single-select-type-of-related',
|
1432 |
'validate' => 'numeric',
|
1433 |
'default' => '3',
|
1434 |
),
|
1435 |
+
|
1436 |
+
|
1437 |
+
|
1438 |
// array(
|
1439 |
// 'id' => 'ampforwp-comments-banner',
|
1440 |
// 'type' => 'select',
|
1441 |
// 'desc' => $comment_desc,
|
1442 |
// 'title' => __(' df', 'accelerated-mobile-pages'),
|
1443 |
// 'class' => 'new-class',
|
1444 |
+
//
|
1445 |
// // 'desc' => ' <br /><a href="' . esc_url(admin_url('customize.php?autofocus[section]=amp_design&customize_amp=1')) .'" target="_blank"><img class="ampforwp-post-builder-img" src="'.AMPFORWP_IMAGE_DIR . '/amp-post-builder.png" width="489" height="72" /></a>',
|
1446 |
// ),
|
1447 |
+
//
|
1448 |
+
|
1449 |
$fields = array(
|
1450 |
'id' => 'info_normal',
|
1451 |
'type' => 'info',
|
1531 |
'title' => __('WhatsApp', 'accelerated-mobile-pages'),
|
1532 |
'default' => 1,
|
1533 |
),
|
1534 |
+
// LINE
|
1535 |
+
array(
|
1536 |
+
'id' => 'enable-single-line-share',
|
1537 |
+
'type' => 'switch',
|
1538 |
+
'title' => __('LINE', 'accelerated-mobile-pages'),
|
1539 |
+
'default' => 1,
|
1540 |
+
),
|
1541 |
array(
|
1542 |
'id' => 'social-media-profiles-subsection',
|
1543 |
'type' => 'section',
|
2072 |
'default' => __('Next Read: ','accelerated-mobile-pages'),
|
2073 |
'placeholder'=>__('write here','accelerated-mobile-pages'),
|
2074 |
'required' => array( 'amp-use-pot', '=' , 0 )
|
2075 |
+
),
|
2076 |
+
array(
|
2077 |
+
'id' => 'amp-translator-via-text',
|
2078 |
+
'type' => 'text',
|
2079 |
+
'title' => __('via', 'accelerated-mobile-pages'),
|
2080 |
+
'default' => __('via','accelerated-mobile-pages'),
|
2081 |
+
'placeholder'=>__('write here','accelerated-mobile-pages'),
|
2082 |
+
'required' => array( 'amp-use-pot', '=' , 0 )
|
2083 |
),
|
2084 |
array(
|
2085 |
'id' => 'amp-translator-search-text',
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
4 |
Donate link: https://www.paypal.me/Kaludi/5
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.7.4
|
7 |
-
Stable tag: 0.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -18,7 +18,7 @@ AMP for WP automatically adds Accelerated Mobile Pages (Google AMP Project) func
|
|
18 |
[youtube https://www.youtube.com/watch?v=jglJGmlZyos]
|
19 |
|
20 |
> <strong>Extensions</strong><br>
|
21 |
-
> Some useful extensions to extend AMP features, check [AMP Adsense Support](https://ampforwp.com/advanced-amp-ads/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin), [
|
22 |
>
|
23 |
> <strong>Premium Support</strong><br>
|
24 |
> We try our best to provide support on WordPress.org forums. However, One-on-one email support is available to people who bought the [Priority Support](https://ampforwp.com/priority-support/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin) only.
|
@@ -74,7 +74,7 @@ AMP for WP automatically adds Accelerated Mobile Pages (Google AMP Project) func
|
|
74 |
* RTL Support
|
75 |
* Custom AMP FrontPage
|
76 |
* Notifications
|
77 |
-
* Piwik & Segment.com Support
|
78 |
* Incontent & DoubleClick Support
|
79 |
* Great Support & Active Development.
|
80 |
* Widgets & WooCommerce
|
@@ -131,6 +131,38 @@ You can contact me using this url: http://ampforwp.com/contact/
|
|
131 |
|
132 |
== Changelog ==
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
= 0.9.48 (28 April 2017) =
|
135 |
* View more details on: https://ampforwp.com/0-9-48-released-step-towards-multilingual-support-55th-update/
|
136 |
* The default translation method of WordPress added. (Option in Translation panel to switch between * Translation panel and POT file #540)
|
4 |
Donate link: https://www.paypal.me/Kaludi/5
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.7.4
|
7 |
+
Stable tag: 0.9.49
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
18 |
[youtube https://www.youtube.com/watch?v=jglJGmlZyos]
|
19 |
|
20 |
> <strong>Extensions</strong><br>
|
21 |
+
> Some useful extensions to extend AMP features, check [AMP Adsense Support](https://ampforwp.com/advanced-amp-ads/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin), [Email Opt-in Support](https://ampforwp.com/opt-in-forms/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin) and [Call To Action Support](https://ampforwp.com/call-to-action/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin). To view more, go to our [Extensions page](https://ampforwp.com/extensions/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin).
|
22 |
>
|
23 |
> <strong>Premium Support</strong><br>
|
24 |
> We try our best to provide support on WordPress.org forums. However, One-on-one email support is available to people who bought the [Priority Support](https://ampforwp.com/priority-support/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin) only.
|
74 |
* RTL Support
|
75 |
* Custom AMP FrontPage
|
76 |
* Notifications
|
77 |
+
* Piwik & Segment.com, StatCounter (NEW) & Effective Measure (NEW) Support
|
78 |
* Incontent & DoubleClick Support
|
79 |
* Great Support & Active Development.
|
80 |
* Widgets & WooCommerce
|
131 |
|
132 |
== Changelog ==
|
133 |
|
134 |
+
= 0.9.48 (12 May 2017) =
|
135 |
+
* View more details on https://ampforwp.com/0-9-49-released-small-important-bugs-fixed-56th-update/
|
136 |
+
* Option added to display the excerpt in Single #806
|
137 |
+
* Ability to add new invalid tags to filter out from AMP pages #809
|
138 |
+
* In frontpage, comment button is pointing to wrong URL #812
|
139 |
+
* Call now button and search is overlapping in Design-1 #784
|
140 |
+
* Sticky Social Icons should be off if the CTA notification bar is on #788
|
141 |
+
* Author bio in Design 1 and 2 #732
|
142 |
+
* Styling in Taxonomy description causing validation issues #798
|
143 |
+
* Twitter share(handle, url positions fixed) #815
|
144 |
+
* Tables responsiveness in ALL Designs #726
|
145 |
+
* Output all the categories and tags with their own ID’s in the div classes #750
|
146 |
+
* Social Share Icons Overlap with Leave A Comment in Design 3 #716
|
147 |
+
* Effective Measure Support on AMP #297
|
148 |
+
* Custom AMP editor on pages should only be shown when page support is ON #756
|
149 |
+
* AMP on website.com/blog without need of separate installation #775
|
150 |
+
* GTranslate Compatible #819
|
151 |
+
* Images and amp-anim styling added #725
|
152 |
+
* Filter to make the title in a post to a link #727
|
153 |
+
* Author Bio and Social Share button must not come in Pages #770
|
154 |
+
* StatCounter is now compatible with AMP #361
|
155 |
+
* Line Social media support #500
|
156 |
+
* Footer menus for Design 1 & Design 2 #623
|
157 |
+
* Strip out src=”about:blank” When Gravity Forms used #804
|
158 |
+
* Add Compatibility with Crazy Lazy load plugin #751
|
159 |
+
* Meta Titles and Description issues fixed with Yoast, All in one SEO and The SEO Framework #813
|
160 |
+
* Double quotes in the Excerpt of the meta description is making AMP Invalidated #818
|
161 |
+
* Missing featured image on static front page #824
|
162 |
+
* Fatal error while activation: see the video 0.9.49 Beta #827
|
163 |
+
* Review this code in archive.php in all 3 designs. #826
|
164 |
+
|
165 |
+
|
166 |
= 0.9.48 (28 April 2017) =
|
167 |
* View more details on: https://ampforwp.com/0-9-48-released-step-towards-multilingual-support-55th-update/
|
168 |
* The default translation method of WordPress added. (Option in Translation panel to switch between * Translation panel and POT file #540)
|
templates/custom-amp-content.php
CHANGED
@@ -60,7 +60,10 @@ function ampforwp_custom_content_meta_register() {
|
|
60 |
|
61 |
add_meta_box( 'custom_content_editor', __( 'Custom AMP Editor', 'accelerated-mobile-pages' ), 'amp_content_editor_title_callback', 'post','normal', 'default' );
|
62 |
|
63 |
-
|
|
|
|
|
|
|
64 |
|
65 |
}
|
66 |
add_action('add_meta_boxes','ampforwp_custom_content_meta_register');
|
60 |
|
61 |
add_meta_box( 'custom_content_editor', __( 'Custom AMP Editor', 'accelerated-mobile-pages' ), 'amp_content_editor_title_callback', 'post','normal', 'default' );
|
62 |
|
63 |
+
global $redux_builder_amp;
|
64 |
+
if($redux_builder_amp['amp-on-off-for-all-pages']){
|
65 |
+
add_meta_box( 'custom_content_editor', __( 'Custom AMP Editor','accelerated-mobile-pages' ), 'amp_content_editor_title_callback', 'page','normal', 'default' );
|
66 |
+
}
|
67 |
|
68 |
}
|
69 |
add_action('add_meta_boxes','ampforwp_custom_content_meta_register');
|
templates/design-manager.php
CHANGED
@@ -51,9 +51,9 @@ if ( is_customize_preview() ) {
|
|
51 |
case 'related_posts:1':
|
52 |
add_filter( 'ampforwp_design_elements', 'ampforwp_add_element_related_posts' );
|
53 |
break;
|
54 |
-
case 'comments:0':
|
55 |
-
|
56 |
-
|
57 |
}
|
58 |
}
|
59 |
}
|
@@ -198,7 +198,7 @@ function ampforwp_add_element_simple_comment_button( $meta_parts ) {
|
|
198 |
$meta_parts[] = 'ampforwp-simple-comment-button';
|
199 |
return $meta_parts;
|
200 |
}
|
201 |
-
add_filter( 'amp_post_template_file', 'ampforwp_design_element_simple_comment_button', 10, 3 );
|
202 |
|
203 |
function ampforwp_design_element_simple_comment_button( $file, $type, $post ) {
|
204 |
if ( 'ampforwp-simple-comment-button' === $type ) {
|
51 |
case 'related_posts:1':
|
52 |
add_filter( 'ampforwp_design_elements', 'ampforwp_add_element_related_posts' );
|
53 |
break;
|
54 |
+
// case 'comments:0':
|
55 |
+
// add_filter( 'ampforwp_design_elements', 'ampforwp_add_element_simple_comment_button' );
|
56 |
+
// break;
|
57 |
}
|
58 |
}
|
59 |
}
|
198 |
$meta_parts[] = 'ampforwp-simple-comment-button';
|
199 |
return $meta_parts;
|
200 |
}
|
201 |
+
// add_filter( 'amp_post_template_file', 'ampforwp_design_element_simple_comment_button', 10, 3 );
|
202 |
|
203 |
function ampforwp_design_element_simple_comment_button( $file, $type, $post ) {
|
204 |
if ( 'ampforwp-simple-comment-button' === $type ) {
|
templates/design-manager/design-1/archive.php
CHANGED
@@ -33,7 +33,7 @@
|
|
33 |
<?php if ( is_archive() ) {
|
34 |
the_archive_title( '<h3 class="page-title">', '</h3>' );
|
35 |
$description = get_the_archive_description();
|
36 |
-
$sanitizer = new AMPFORWP_Content( $description, array(), apply_filters( 'ampforwp_content_sanitizers', array( 'AMP_Img_Sanitizer' => array() ) ) );
|
37 |
$arch_desc = $sanitizer->get_amp_content();
|
38 |
if( $arch_desc ) { ?>
|
39 |
<div class="amp-wp-content taxonomy-description">
|
33 |
<?php if ( is_archive() ) {
|
34 |
the_archive_title( '<h3 class="page-title">', '</h3>' );
|
35 |
$description = get_the_archive_description();
|
36 |
+
$sanitizer = new AMPFORWP_Content( $description, array(), apply_filters( 'ampforwp_content_sanitizers', array( 'AMP_Img_Sanitizer' => array(), 'AMP_Style_Sanitizer' => array() ) ) );
|
37 |
$arch_desc = $sanitizer->get_amp_content();
|
38 |
if( $arch_desc ) { ?>
|
39 |
<div class="amp-wp-content taxonomy-description">
|
templates/design-manager/design-1/elements/content.php
CHANGED
@@ -1,10 +1,16 @@
|
|
|
|
1 |
<div class="amp-wp-article-content">
|
2 |
-
<?php
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
8 |
do_action('ampforwp_inside_post_content_before');
|
9 |
$amp_custom_content_enable = get_post_meta( $this->get( 'post_id' ) , 'ampforwp_custom_content_editor_checkbox', true);
|
10 |
|
@@ -19,7 +25,7 @@
|
|
19 |
do_action('ampforwp_after_post_content') ?>
|
20 |
|
21 |
<!--Post Next-Previous Links-->
|
22 |
-
<?php
|
23 |
if($redux_builder_amp['enable-single-next-prev']) { ?>
|
24 |
<!--IF Starts here-->
|
25 |
<div class="amp-wp-content post-pagination-meta">
|
1 |
+
<?php global $redux_builder_amp; ?>
|
2 |
<div class="amp-wp-article-content">
|
3 |
+
<?php
|
4 |
+
if( array_key_exists( 'enable-excerpt-single' , $redux_builder_amp ) ) {
|
5 |
+
if($redux_builder_amp['enable-excerpt-single']) {
|
6 |
+
if(has_excerpt()){ ?>
|
7 |
+
<div class="ampforwp_single_excerpt">
|
8 |
+
<?php $content = get_the_excerpt();
|
9 |
+
echo $content; ?>
|
10 |
+
</div>
|
11 |
+
<?php }
|
12 |
+
}
|
13 |
+
}
|
14 |
do_action('ampforwp_inside_post_content_before');
|
15 |
$amp_custom_content_enable = get_post_meta( $this->get( 'post_id' ) , 'ampforwp_custom_content_editor_checkbox', true);
|
16 |
|
25 |
do_action('ampforwp_after_post_content') ?>
|
26 |
|
27 |
<!--Post Next-Previous Links-->
|
28 |
+
<?php
|
29 |
if($redux_builder_amp['enable-single-next-prev']) { ?>
|
30 |
<!--IF Starts here-->
|
31 |
<div class="amp-wp-content post-pagination-meta">
|
templates/design-manager/design-1/elements/meta-taxonomy.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
<span><?php global $redux_builder_amp; printf( ampforwp_translation($redux_builder_amp['amp-translator-categories-text'] .' ', 'accelerated-mobile-pages' )); ?></span>
|
9 |
<?php foreach ($ampforwp_categories as $cat ) {
|
10 |
if($redux_builder_amp['ampforwp-archive-support']){
|
11 |
-
echo ('<span><a href="'.trailingslashit( trailingslashit( get_category_link( $cat->term_taxonomy_id ) ) . AMPFORWP_AMP_QUERY_VAR ) .'" > '. $cat->name .'</a></span>');
|
12 |
} else {
|
13 |
echo '<span>'. $cat->name .'</span>';
|
14 |
}
|
@@ -25,7 +25,7 @@
|
|
25 |
}
|
26 |
foreach ($ampforwp_tags as $tag) {
|
27 |
if($redux_builder_amp['ampforwp-archive-support']){
|
28 |
-
echo ('<span><a href="'.trailingslashit( trailingslashit( get_tag_link( $tag->term_taxonomy_id ) ) .'amp' ).'" >'.$tag->name .'</a></span>');
|
29 |
|
30 |
} else {
|
31 |
echo ('<span>'.$tag->name.'</span>');
|
@@ -38,3 +38,25 @@
|
|
38 |
<?php endif;?>
|
39 |
|
40 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
<span><?php global $redux_builder_amp; printf( ampforwp_translation($redux_builder_amp['amp-translator-categories-text'] .' ', 'accelerated-mobile-pages' )); ?></span>
|
9 |
<?php foreach ($ampforwp_categories as $cat ) {
|
10 |
if($redux_builder_amp['ampforwp-archive-support']){
|
11 |
+
echo ('<span class="amp-cat-'.$cat->term_id.'"><a href="'.trailingslashit( trailingslashit( get_category_link( $cat->term_taxonomy_id ) ) . AMPFORWP_AMP_QUERY_VAR ) .'" > '. $cat->name .'</a></span>');
|
12 |
} else {
|
13 |
echo '<span>'. $cat->name .'</span>';
|
14 |
}
|
25 |
}
|
26 |
foreach ($ampforwp_tags as $tag) {
|
27 |
if($redux_builder_amp['ampforwp-archive-support']){
|
28 |
+
echo ('<span class="amp-tag-'.$tag->term_id.'"><a href="'.trailingslashit( trailingslashit( get_tag_link( $tag->term_taxonomy_id ) ) .'amp' ).'" >'.$tag->name .'</a></span>');
|
29 |
|
30 |
} else {
|
31 |
echo ('<span>'.$tag->name.'</span>');
|
38 |
<?php endif;?>
|
39 |
|
40 |
</div>
|
41 |
+
|
42 |
+
<?php
|
43 |
+
|
44 |
+
if( array_key_exists( 'amp-author-description' , $redux_builder_amp ) && is_single() ) {
|
45 |
+
if( $redux_builder_amp['amp-author-description'] ) { ?>
|
46 |
+
<div class="amp-wp-content amp_author_area ampforwp-meta-taxonomy">
|
47 |
+
<div class="amp_author_area_wrapper">
|
48 |
+
<?php $post_author = $this->get( 'post_author' );
|
49 |
+
if ( $post_author ) {
|
50 |
+
|
51 |
+
$author_avatar_url = get_avatar_url( $post_author->user_email, array( 'size' => 70 ) );
|
52 |
+
if ( $author_avatar_url ) { ?>
|
53 |
+
<amp-img src="<?php echo $author_avatar_url; ?>" width="70" height="70" layout="fixed"></amp-img>
|
54 |
+
<?php
|
55 |
+
} ?>
|
56 |
+
<strong><?php echo esc_html( $post_author->display_name ); ?></strong>: <?php echo $post_author->description ; ?>
|
57 |
+
|
58 |
+
<?php } ?>
|
59 |
+
</div>
|
60 |
+
</div> <?php
|
61 |
+
}
|
62 |
+
}
|
templates/design-manager/design-1/elements/social-icons.php
CHANGED
@@ -1,34 +1,43 @@
|
|
1 |
-
<?php global $redux_builder_amp;
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
<
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php global $redux_builder_amp;
|
2 |
+
if ( is_single() ) { ?>
|
3 |
+
<div class="ampforwp-social-icons">
|
4 |
+
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
5 |
+
<amp-social-share type="facebook" data-param-app_id="<?php echo $redux_builder_amp['amp-facebook-app-id']; ?>" width="50" height="28"></amp-social-share>
|
6 |
+
<?php } ?>
|
7 |
+
<?php if($redux_builder_amp['enable-single-twitter-share'] == true) {
|
8 |
+
$data_param_data = $redux_builder_amp['enable-single-twitter-share-handle'];?>
|
9 |
+
<amp-social-share type="twitter"
|
10 |
+
width="50"
|
11 |
+
height="28"
|
12 |
+
data-param-url=""
|
13 |
+
data-param-text="TITLE <?php echo wp_get_shortlink().' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.$data_param_data ?>"
|
14 |
+
></amp-social-share>
|
15 |
+
<?php } ?>
|
16 |
+
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
17 |
+
<amp-social-share type="gplus" width="50" height="28"></amp-social-share>
|
18 |
+
<?php } ?>
|
19 |
+
<?php if($redux_builder_amp['enable-single-email-share'] == true) { ?>
|
20 |
+
<amp-social-share type="email" width="50" height="28"></amp-social-share>
|
21 |
+
<?php } ?>
|
22 |
+
<?php if($redux_builder_amp['enable-single-pinterest-share'] == true) { ?>
|
23 |
+
<amp-social-share type="pinterest" width="50" height="28"></amp-social-share>
|
24 |
+
<?php } ?>
|
25 |
+
<?php if($redux_builder_amp['enable-single-linkedin-share'] == true) { ?>
|
26 |
+
<amp-social-share type="linkedin" width="50" height="28"></amp-social-share>
|
27 |
+
<?php } ?>
|
28 |
+
<?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
|
29 |
+
<a href="whatsapp://send?text=<?php echo get_the_permalink(); ?>">
|
30 |
+
<div class="custom-amp-socialsharing-icon">
|
31 |
+
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL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" height="20" />
|
32 |
+
</div>
|
33 |
+
</a>
|
34 |
+
<?php } ?>
|
35 |
+
<?php if($redux_builder_amp['enable-single-line-share'] == true) { ?>
|
36 |
+
<a href="http://line.me/R/msg/text/?<?php echo get_the_permalink(); ?>">
|
37 |
+
<div class="custom-amp-socialsharing-icon custom-amp-socialsharing-line">
|
38 |
+
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI5Ni41MjggMjk2LjUyOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjk2LjUyOCAyOTYuNTI4OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCI+CjxnPgoJPHBhdGggZD0iTTI5NS44MzgsMTE1LjM0N2wwLjAwMy0wLjAwMWwtMC4wOTItMC43NmMtMC4wMDEtMC4wMTMtMC4wMDItMC4wMjMtMC4wMDQtMC4wMzZjLTAuMDAxLTAuMDExLTAuMDAyLTAuMDIxLTAuMDA0LTAuMDMyICAgbC0wLjM0NC0yLjg1OG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ctNyw3ICAgaC0yMS41NjJ2MTIuODQ3aDI3LjY0NWMzLjg2NiwwLDcsMy4xMzQsNyw3UzIzNy4xNzcsMTU5LjI2OSwyMzMuMzExLDE1OS4yNjl6IiBmaWxsPSIjRkZGRkZGIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==" width="50" height="20" />
|
39 |
+
</div>
|
40 |
+
</a>
|
41 |
+
<?php } ?>
|
42 |
+
</div>
|
43 |
+
<?php } ?>
|
templates/design-manager/design-1/elements/title.php
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
<header class="amp-wp-article-header ampforwp-title">
|
2 |
-
<h1 class="amp-wp-title"
|
|
|
|
|
|
|
|
|
3 |
</header>
|
4 |
<?php do_action('ampforwp_below_the_title'); ?>
|
1 |
<header class="amp-wp-article-header ampforwp-title">
|
2 |
+
<h1 class="amp-wp-title"> <?php
|
3 |
+
$ampforwp_title = $this->get( 'post_title' ) ;
|
4 |
+
$ampforwp_title = apply_filters('ampforwp_filter_single_title', $ampforwp_title);
|
5 |
+
echo wp_kses_data( $ampforwp_title ); ?>
|
6 |
+
</h1>
|
7 |
</header>
|
8 |
<?php do_action('ampforwp_below_the_title'); ?>
|
templates/design-manager/design-1/footer.php
CHANGED
@@ -20,7 +20,16 @@ global $redux_builder_amp;
|
|
20 |
$ampforwp_backto_nonamp = preg_replace('/\/amp\?nonamp=1/','/?nonamp=1',$ampforwp_backto_nonamp);
|
21 |
} ?>
|
22 |
<footer class="amp-wp-footer">
|
23 |
-
<div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
<h2><?php echo esc_html( $this->get( 'blog_name' ) ); ?></h2>
|
25 |
<p class="copyright_txt">
|
26 |
<?php
|
20 |
$ampforwp_backto_nonamp = preg_replace('/\/amp\?nonamp=1/','/?nonamp=1',$ampforwp_backto_nonamp);
|
21 |
} ?>
|
22 |
<footer class="amp-wp-footer">
|
23 |
+
<div id="footer">
|
24 |
+
<?php if ( has_nav_menu( 'amp-footer-menu' ) ) { ?>
|
25 |
+
<div class="footer_menu"> <?php
|
26 |
+
$menu = wp_nav_menu( array(
|
27 |
+
'theme_location' => 'amp-footer-menu',
|
28 |
+
'echo' => false
|
29 |
+
) );
|
30 |
+
echo strip_tags( $menu , '<ul><li><a>'); ?>
|
31 |
+
</div>
|
32 |
+
<?php } ?>
|
33 |
<h2><?php echo esc_html( $this->get( 'blog_name' ) ); ?></h2>
|
34 |
<p class="copyright_txt">
|
35 |
<?php
|
templates/design-manager/design-1/frontpage.php
CHANGED
@@ -49,7 +49,21 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
49 |
|
50 |
<?php do_action( 'ampforwp_after_header', $this ); ?>
|
51 |
|
52 |
-
<div class="amp-wp-content the_content">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
do_action( 'ampforwp_before_post_content', $this );
|
55 |
|
@@ -86,6 +100,7 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
86 |
<?php
|
87 |
// TODO : Create a separate function and add the comment code that and use DRY method instead of repeating the code. #682
|
88 |
global $redux_builder_amp;
|
|
|
89 |
// Gather comments for a specific page/post
|
90 |
$postID = get_the_ID();
|
91 |
$postID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
@@ -93,6 +108,8 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
93 |
'post_id' => $postID,
|
94 |
'status' => 'approve' //Change this to the type of comments to be displayed
|
95 |
));
|
|
|
|
|
96 |
if ( $comments ) { ?>
|
97 |
<div class="amp-wp-content comments_list">
|
98 |
<h3><?php global $redux_builder_amp; echo ampforwp_translation($redux_builder_amp['amp-translator-view-comments-text'] , 'View Comments' )?></h3>
|
@@ -172,14 +189,14 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
172 |
</ul>
|
173 |
</div>
|
174 |
<div class="comment-button-wrapper">
|
175 |
-
<a href="<?php echo trailingslashit(
|
176 |
</div><?php
|
177 |
} else {
|
178 |
if ( !comments_open() ) {
|
179 |
return;
|
180 |
} ?>
|
181 |
<div class="comment-button-wrapper">
|
182 |
-
<a href="<?php echo trailingslashit(
|
183 |
</div>
|
184 |
<?php } ?>
|
185 |
</div> <?php
|
@@ -187,9 +204,11 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
187 |
|
188 |
<div class="amp-wp-content post-pagination-meta">
|
189 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-taxonomy' ) ) ); ?>
|
190 |
-
</div>
|
191 |
|
192 |
-
|
|
|
|
|
193 |
<div class="sticky_social">
|
194 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
195 |
<amp-social-share type="facebook" width="50" height="28"></amp-social-share>
|
@@ -199,8 +218,8 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
199 |
<amp-social-share type="twitter"
|
200 |
width="50"
|
201 |
height="28"
|
202 |
-
data-param-url="
|
203 |
-
|
204 |
></amp-social-share>
|
205 |
<?php } ?>
|
206 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
49 |
|
50 |
<?php do_action( 'ampforwp_after_header', $this ); ?>
|
51 |
|
52 |
+
<div class="amp-wp-content the_content">
|
53 |
+
|
54 |
+
<?php if (has_post_thumbnail( $post_id ) ): ?>
|
55 |
+
<figure class="amp-wp-article-featured-image wp-caption"> <?php
|
56 |
+
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'medium' );
|
57 |
+
$caption = get_the_post_thumbnail_caption( $post_id ); ?>
|
58 |
+
<amp-img src="<?php echo $image[0]; ?>" width="<?php echo $image[1]; ?>" height="<?php echo $image[2]; ?>" layout=responsive alt="<?php echo get_the_title( $post_id ) ?>" > </amp-img>
|
59 |
+
<?php if ( $caption ) : ?>
|
60 |
+
<p class="wp-caption-text">
|
61 |
+
<?php echo wp_kses_data( $caption ); ?>
|
62 |
+
</p>
|
63 |
+
<?php endif; ?>
|
64 |
+
</figure>
|
65 |
+
<?php endif; ?>
|
66 |
+
<?php
|
67 |
|
68 |
do_action( 'ampforwp_before_post_content', $this );
|
69 |
|
100 |
<?php
|
101 |
// TODO : Create a separate function and add the comment code that and use DRY method instead of repeating the code. #682
|
102 |
global $redux_builder_amp;
|
103 |
+
$comment_button_url = "";
|
104 |
// Gather comments for a specific page/post
|
105 |
$postID = get_the_ID();
|
106 |
$postID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
108 |
'post_id' => $postID,
|
109 |
'status' => 'approve' //Change this to the type of comments to be displayed
|
110 |
));
|
111 |
+
$comment_button_url = get_permalink( $post_id );
|
112 |
+
$comment_button_url = apply_filters('ampforwp_frontpage_comments_url',$comment_button_url );
|
113 |
if ( $comments ) { ?>
|
114 |
<div class="amp-wp-content comments_list">
|
115 |
<h3><?php global $redux_builder_amp; echo ampforwp_translation($redux_builder_amp['amp-translator-view-comments-text'] , 'View Comments' )?></h3>
|
189 |
</ul>
|
190 |
</div>
|
191 |
<div class="comment-button-wrapper">
|
192 |
+
<a href="<?php echo esc_url( trailingslashit( $comment_button_url ) ) .'?nonamp=1'.'#commentform' ?>" rel="nofollow"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a>
|
193 |
</div><?php
|
194 |
} else {
|
195 |
if ( !comments_open() ) {
|
196 |
return;
|
197 |
} ?>
|
198 |
<div class="comment-button-wrapper">
|
199 |
+
<a href="<?php echo esc_url( trailingslashit( $comment_button_url ) ) .'?nonamp=1'.'#commentform' ?>" rel="nofollow"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a>
|
200 |
</div>
|
201 |
<?php } ?>
|
202 |
</div> <?php
|
204 |
|
205 |
<div class="amp-wp-content post-pagination-meta">
|
206 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-taxonomy' ) ) ); ?>
|
207 |
+
</div> <?php
|
208 |
|
209 |
+
|
210 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
211 |
+
if( $redux_builder_amp['enable-single-social-icons'] == true && !is_plugin_active( 'amp-cta/amp-cta.php' ) ) { ?>
|
212 |
<div class="sticky_social">
|
213 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
214 |
<amp-social-share type="facebook" width="50" height="28"></amp-social-share>
|
218 |
<amp-social-share type="twitter"
|
219 |
width="50"
|
220 |
height="28"
|
221 |
+
data-param-url=""
|
222 |
+
data-param-text="TITLE <?php echo wp_get_shortlink().' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.$data_param_data ?>"
|
223 |
></amp-social-share>
|
224 |
<?php } ?>
|
225 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
templates/design-manager/design-1/style.php
CHANGED
@@ -11,6 +11,7 @@ function ampforwp_additional_style_input( $amp_template ) {
|
|
11 |
$header_background_color = $get_customizer->get_customizer_setting( 'header_background_color' );
|
12 |
$header_color = $get_customizer->get_customizer_setting( 'header_color' );
|
13 |
?>
|
|
|
14 |
.alignright{ float: right; }
|
15 |
.alignleft{ float: left; }
|
16 |
.aligncenter{ display: block; margin-left: auto; margin-right: auto; max-width: 100% }
|
@@ -29,10 +30,19 @@ blockquote {color: <?php echo sanitize_hex_color( $text_color ); ?>;background:
|
|
29 |
.amp-wp-article-featured-image {margin: 1.5em 16px 1.5em;}.amp-wp-article-featured-image amp-img {margin: 0 auto;}.amp-wp-article-featured-image.wp-caption .wp-caption-text {margin: 0 18px;}.amp-wp-frontpage .the_content {padding: 10px;}.amp-wp-frontpage .ampforwp-title {margin-left:10px;}.amp-wp-article a{text-decoration:none}.amp-wp-article-content {margin: 0 16px;}.amp-wp-article-content ul,.amp-wp-article-content ol {margin-left: 1em;}.amp-wp-article-content amp-img {margin: 0 auto;}.amp-wp-article-content amp-img.alignright {margin: 0 0 1em 16px;}.amp-wp-article-content amp-img.alignleft {margin: 0 16px 1em 0;} .amp-disqus-comments {padding: 15px;}.amp-disqus-comments amp-iframe{background: none;}.wp-caption {padding: 0;}.wp-caption.alignleft {margin-right: 16px;}.wp-caption.alignright { margin-left: 16px;}.wp-caption-text {border-bottom: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 0;padding: .66em 10px .75em;text-align: center;} amp-carousel {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em;} amp-iframe,amp-youtube,amp-instagram,amp-vine {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em; } .amp-wp-article-content amp-carousel amp-img {border: none;} amp-carousel > amp-img > img {object-fit: contain; } .amp-wp-iframe-placeholder { background: <?php echo sanitize_hex_color( $border_color ); ?> url( <?php echo esc_url( $get_customizer->get( 'placeholder_image_url' ) ); ?> ) no-repeat center 40%;background-size: 48px 48px;min-height: 48px;} .amp-wp-article-footer .amp-wp-meta {display: block;} .amp-wp-tax-category span{margin-right:5px;} .amp-wp-tax-category, .amp-wp-tax-tag { color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 1.5em 16px;}.ampforwp-comment-button {margin-bottom:20px;} .amp-wp-comments-link {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;text-align: center;margin: 2.25em 0 1.5em;} .amp-wp-comments-link a { border-style: solid;border-color: <?php echo sanitize_hex_color( $border_color ); ?>;border-width: 1px 1px 2px;border-radius: 4px;background-color: transparent;color: <?php echo sanitize_hex_color( $link_color ); ?>;cursor: pointer; display: block;font-size: 14px;font-weight: 600;line-height: 18px;margin: 0 auto;max-width: 200px;padding: 11px 16px;text-decoration: none;width: 50%;-webkit-transition: background-color 0.2s ease;transition: background-color 0.2s ease;} .page-title {margin: 0 15px;} .amp-wp-footer {border-top: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;margin: calc(1.5em - 1px) 0 0;padding-bottom:25px;}
|
30 |
.amp-wp-footer div{margin:0 auto;max-width:calc(840px - 32px);padding:1.25em 16px;position:relative}.amp-wp-footer h2{font-size:1em;line-height:1.375em;margin:0 0 .5em}
|
31 |
.amp-wp-footer p {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .8em;line-height: 1.5em;margin: 0 15px 0 0;}
|
32 |
-
.amp-wp-footer a{text-decoration:none}.copyright_txt{float:left}.back-to-top{float:right}.amp-wp-header .nav_container{float: right;top: 16px;line-height: 1; right: 65px; position: absolute}.toggle-text{position:absolute;right:0;height:22px;width:28px}.toggle-text span{display:block;position:absolute;height:2px;width:25px;background:#fff;border-radius:19px;opacity:1;left:0}.toggle-text span:nth-child(2){top:9px}.toggle-text span:nth-child(3){top:18px}.amp-wp-home .amp-wp-meta{margin:5px 0}.amp-wp-home .amp-wp-content p{display:inline-block;width:100%}.ampforwp-custom-index .amp-wp-title a {text-decoration: none;color: <?php echo sanitize_hex_color( $text_color ); ?>;}.comment-button-wrapper a,.related_posts ol{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.amp-wp-meta{display:flex}.amp-wp-posted-on{display:initial}#pagination .next,#pagination .prev{display:inline-block}.ampforwp-custom-index .amp-wp-content{margin-bottom:30px}.pagination-holder{margin:1.5em 16px}#pagination .next{float:right}.amp-wp-home .amp-wp-content p{display:inline}.home-post-image{float:right;margin:0 0 10px 20px}.amp-wp-article-content amp-img{max-width:100%}.amp-wp-meta.amp-wp-tax-category,.amp-wp-meta.amp-wp-tax-tag{margin:0}.amp-wp-meta.amp-wp-tax-tag{display:initial}.ampforwp-social-icons{margin:1.5em 16px}.
|
|
|
|
|
33 |
.amp-wp-content-loop{width:100%} .ampforwp_single_excerpt { margin-bottom:15px; }
|
34 |
.ampforwp-ad-above-related-post{padding-top:15px;}
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
/* Category 1 */
|
37 |
.amp-category-block ul{ list-style-type:none }
|
38 |
.amp-category-block-btn{ display: block; text-align: center; font-size: 13px; margin-top: 15px; border-bottom: 1px solid #f1f1f1; text-decoration: none; }
|
@@ -86,7 +96,7 @@ table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, le
|
|
86 |
.ampforwp-search-nav-wrapper .searchmenu{ margin-top: 20px; }
|
87 |
.headerlogo a, [class*=icono-]{ top:0; }
|
88 |
.amp-wp-header a, .headerlogo a, [class*=icono-] {color: <?php echo sanitize_hex_color( $header_color ); ?>;text-decoration: none;}
|
89 |
-
|
90 |
<?php if($redux_builder_amp['enable-single-social-icons'] && is_socialshare_or_socialsticky_enabled_in_ampforwp() ){ ?> .amp-wp-footer{padding-bottom: 60px;}<?php } ?>
|
91 |
|
92 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
@@ -113,11 +123,11 @@ header, amp-sidebar, article, footer{ direction: rtl;}
|
|
113 |
.amp-ad-wrapper{ direction: ltr; }
|
114 |
<?php } ?>
|
115 |
<?php if ($redux_builder_amp['ampforwp-callnow-button']) { ?>
|
116 |
-
.callnow{ position: relative; top: -
|
117 |
.callnow a:before { content: ""; position: absolute; right: 23px; width: 5px; height: 11px; border-width: 6px 0 6px 3px; border-style: solid; border-color:<?php echo $redux_builder_amp['amp-opt-color-rgba-colorscheme-call']['color']; ?>; background: transparent; transform: rotate(-30deg); box-sizing: initial; border-top-left-radius: 3px 5px; border-bottom-left-radius: 3px 5px; }
|
118 |
<?php } ?>
|
119 |
<?php
|
120 |
if ( class_exists('TablePress') ) { ?>
|
121 |
.tablepress-table-description{clear:both;display:block}.tablepress{border-collapse:collapse;border-spacing:0;width:100%;margin-bottom:1em;border:none}.tablepress td,.tablepress th{padding:8px;border:none;background:0 0;text-align:left}.tablepress tbody td{vertical-align:top}.tablepress tbody td,.tablepress tfoot th{border-top:1px solid #ddd}.tablepress tbody tr:first-child td{border-top:0}.tablepress thead th{border-bottom:1px solid #ddd}.tablepress tfoot th,.tablepress thead th{background-color:#d9edf7;font-weight:700;vertical-align:middle}.tablepress .odd td{background-color:#f9f9f9}.tablepress .even td{background-color:#fff}.tablepress .row-hover tr:hover td{background-color:#f3f3f3}@media (min-width:768px) and (max-width:1600px){.tablepress{overflow-x:none}}@media (min-width:320px) and (max-width:767px){.tablepress{display:inline-block;overflow-x:scroll}}
|
122 |
<?php } ?>
|
123 |
-
<?php echo $redux_builder_amp['css_editor']; } ?>
|
11 |
$header_background_color = $get_customizer->get_customizer_setting( 'header_background_color' );
|
12 |
$header_color = $get_customizer->get_customizer_setting( 'header_color' );
|
13 |
?>
|
14 |
+
#statcounter{width: 1px;height:1px;}
|
15 |
.alignright{ float: right; }
|
16 |
.alignleft{ float: left; }
|
17 |
.aligncenter{ display: block; margin-left: auto; margin-right: auto; max-width: 100% }
|
30 |
.amp-wp-article-featured-image {margin: 1.5em 16px 1.5em;}.amp-wp-article-featured-image amp-img {margin: 0 auto;}.amp-wp-article-featured-image.wp-caption .wp-caption-text {margin: 0 18px;}.amp-wp-frontpage .the_content {padding: 10px;}.amp-wp-frontpage .ampforwp-title {margin-left:10px;}.amp-wp-article a{text-decoration:none}.amp-wp-article-content {margin: 0 16px;}.amp-wp-article-content ul,.amp-wp-article-content ol {margin-left: 1em;}.amp-wp-article-content amp-img {margin: 0 auto;}.amp-wp-article-content amp-img.alignright {margin: 0 0 1em 16px;}.amp-wp-article-content amp-img.alignleft {margin: 0 16px 1em 0;} .amp-disqus-comments {padding: 15px;}.amp-disqus-comments amp-iframe{background: none;}.wp-caption {padding: 0;}.wp-caption.alignleft {margin-right: 16px;}.wp-caption.alignright { margin-left: 16px;}.wp-caption-text {border-bottom: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 0;padding: .66em 10px .75em;text-align: center;} amp-carousel {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em;} amp-iframe,amp-youtube,amp-instagram,amp-vine {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em; } .amp-wp-article-content amp-carousel amp-img {border: none;} amp-carousel > amp-img > img {object-fit: contain; } .amp-wp-iframe-placeholder { background: <?php echo sanitize_hex_color( $border_color ); ?> url( <?php echo esc_url( $get_customizer->get( 'placeholder_image_url' ) ); ?> ) no-repeat center 40%;background-size: 48px 48px;min-height: 48px;} .amp-wp-article-footer .amp-wp-meta {display: block;} .amp-wp-tax-category span{margin-right:5px;} .amp-wp-tax-category, .amp-wp-tax-tag { color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 1.5em 16px;}.ampforwp-comment-button {margin-bottom:20px;} .amp-wp-comments-link {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;text-align: center;margin: 2.25em 0 1.5em;} .amp-wp-comments-link a { border-style: solid;border-color: <?php echo sanitize_hex_color( $border_color ); ?>;border-width: 1px 1px 2px;border-radius: 4px;background-color: transparent;color: <?php echo sanitize_hex_color( $link_color ); ?>;cursor: pointer; display: block;font-size: 14px;font-weight: 600;line-height: 18px;margin: 0 auto;max-width: 200px;padding: 11px 16px;text-decoration: none;width: 50%;-webkit-transition: background-color 0.2s ease;transition: background-color 0.2s ease;} .page-title {margin: 0 15px;} .amp-wp-footer {border-top: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;margin: calc(1.5em - 1px) 0 0;padding-bottom:25px;}
|
31 |
.amp-wp-footer div{margin:0 auto;max-width:calc(840px - 32px);padding:1.25em 16px;position:relative}.amp-wp-footer h2{font-size:1em;line-height:1.375em;margin:0 0 .5em}
|
32 |
.amp-wp-footer p {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .8em;line-height: 1.5em;margin: 0 15px 0 0;}
|
33 |
+
.amp-wp-footer a{text-decoration:none}.copyright_txt{float:left}.back-to-top{float:right}.amp-wp-header .nav_container{float: right;top: 16px;line-height: 1; right: 65px; position: absolute}.toggle-text{position:absolute;right:0;height:22px;width:28px}.toggle-text span{display:block;position:absolute;height:2px;width:25px;background:#fff;border-radius:19px;opacity:1;left:0}.toggle-text span:nth-child(2){top:9px}.toggle-text span:nth-child(3){top:18px}.amp-wp-home .amp-wp-meta{margin:5px 0}.amp-wp-home .amp-wp-content p{display:inline-block;width:100%}.ampforwp-custom-index .amp-wp-title a {text-decoration: none;color: <?php echo sanitize_hex_color( $text_color ); ?>;}.comment-button-wrapper a,.related_posts ol{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.amp-wp-meta{display:flex}.amp-wp-posted-on{display:initial}#pagination .next,#pagination .prev{display:inline-block}.ampforwp-custom-index .amp-wp-content{margin-bottom:30px}.pagination-holder{margin:1.5em 16px}#pagination .next{float:right}.amp-wp-home .amp-wp-content p{display:inline}.home-post-image{float:right;margin:0 0 10px 20px}.amp-wp-article-content amp-img{max-width:100%}.amp-wp-meta.amp-wp-tax-category,.amp-wp-meta.amp-wp-tax-tag{margin:0}.amp-wp-meta.amp-wp-tax-tag{display:initial}.ampforwp-social-icons{margin:1.5em 16px}.custom-amp-socialsharing-icon{ width: 50px; height: 28px; display: inline-block; background: #5cbe4a;position: relative; top: -8px; padding-top: 0px; }
|
34 |
+
.custom-amp-socialsharing-icon amp-img{ top: 4px; }
|
35 |
+
.custom-amp-socialsharing-line{background:#00b900}.comment-button-wrapper a{border-style:solid;border-color:#c2c2c2;border-width:1px 1px 2px;border-radius:4px;background-color:transparent;color:#0a89c0;cursor:pointer;display:block;font-size:14px;font-weight:600;text-align:center;line-height:18px;margin:0 auto;max-width:200px;padding:11px 16px;text-decoration:none;width:50%;-webkit-transition:background-color .2s ease;transition:background-color .2s ease}.close-nav,.comments_list div,.related_posts ol li,.toggle-navigation ul,.toggle-navigationv2 ul li a{display:inline-block}main .amp-wp-content.comments_list,main .amp-wp-content.relatedpost{background:0 0;box-shadow:none;max-width:1030px}.relatedpost{margin:2em 16px}.comments_list h3,.related_posts h3{font-size:14px;font-weight:700;letter-spacing:.4px;margin:25px 0 10px;color:#333}.related_posts ol{list-style-type:none;margin:0;padding:0}.related_posts ol li{width:100%;margin-bottom:12px;padding:0}.related_posts .related_link a{color:#000;font-size:18px}.related_posts ol li amp-img{width:100px;float:left;margin-right:15px}.related_posts ol li p{font-size:12px;color:#999;line-height:1.2;margin:12px 0 0}.no_related_thumbnail{padding:15px 18px}.comments_list{margin:2.5em 16px}.comments_list ul{margin:0;padding:0}.comments_list ul.children{padding-bottom:10px;margin-left:4%;width:96%}.comments_list ul li p{margin:0;font-size:14px;clear:both;padding-top:5px}.comments_list ul li{font-family:sans-serif;font-size:11px;list-style-type:none;margin-bottom:12px;background:#fefefe;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:0 2px 3px rgba(0,0,0,.05);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.05);box-shadow:0 2px 3px rgba(0,0,0,.05);padding:0;max-width:1000px;width:96%}.comments_list ul li .says{margin-right:4px}.comments_list li li,.comments_list li li li{margin:20px 20px 10px}.comments_list ul li p{font-family:Merriweather,'Times New Roman',Times,Serif}.comments_list ul li .comment-body{padding:10px 0 15px}.comment-author{float:left}.single-post footer.comment-meta{padding-bottom:0}.comments_list li li{background:#f7f7f7;box-shadow:none;border:1px solid #eee} .page-numbers{ padding: 9px 10px; background: #fff; font-size: 14px; } .comment-content amp-img{max-width: 300px;} amp-sidebar{width:250px}.amp-sidebar-image{line-height:100px;vertical-align:middle}.amp-close-image{top:15px;left:225px;cursor:pointer}.toggle-navigationv2 ul{list-style-type:none;margin:0;font-family:sans-serif;padding:0}.toggle-navigationv2 ul ul li a{padding-left:35px;background:#fff;display:inline-block}.toggle-navigationv2 ul li a{padding:10px 15px 10px 25px;width:88%;text-decoration:none;background:#fafafa;font-size:13px;border-bottom:1px solid #efefef}.close-nav{font-size:12px;font-family:sans-serif;background:rgba(0,0,0,.25);letter-spacing:1px;padding:10px;border-radius:100px;line-height:8px;margin:14px;left:191px;color:#fff}.close-nav:hover{background:rgba(0,0,0,.45)}.toggle-navigation ul{list-style-type:none;margin:0;padding:0;width:100%}.menu-all-pages-container:after{content:"";clear:both}.toggle-navigation ul li{font-size:13px;border-bottom:1px solid rgba(0,0,0,.11);padding:11px 0;width:25%;float:left;text-align:center;margin-top:6px}.toggle-navigation ul ul{display:none}.toggle-navigation ul li a{color:#eee;padding:15px}.toggle-navigation{display:none;background:#444}.nav_container:hover+.toggle-navigation,.toggle-navigation:active,.toggle-navigation:focus,.toggle-navigation:hover{display:inline-block;width:100%}#amp-user-notification1 p{display:inline-block}amp-user-notification{padding:5px;text-align:center;background:#fff;border-top:1px solid} amp-user-notification button {padding: 8px 10px;background: <?php echo sanitize_hex_color( $header_background_color ); ?>;color: <?php echo sanitize_hex_color( $header_color ); ?>;margin-left: 5px;border: 0;}amp-user-notification button:hover {cursor: pointer} .amp-ad-wrapper {text-align: center} <?php if( $redux_builder_amp['enable-single-social-icons'] == true && is_single() ) { ?>body {padding-bottom: 43px;}<?php } ?> .sticky_social a{text-decoration:none}.sticky_social{width:100%;bottom:0;display:block;left:0;box-shadow:0 4px 7px #000;background:#fff;padding:7px 0 0;position:fixed;margin:0;z-index:10;text-align:center}.whatsapp-share-icon{width:50px;height:28px;display:inline-block;background:#5cbe4a;padding:4px 0;position:relative;top:-4px}.amp-wp-tax-category span:first-child:after{content:' '}.amp-wp-tax-category span:after,.amp-wp-tax-tag span:after{content:', '}.amp-wp-tax-category span:last-child:after,.amp-wp-tax-tag span:last-child:after{content:' '}pre{white-space:pre-wrap}.amp-ad-wrapper.amp_ad_1{padding-top:20px}
|
36 |
.amp-wp-content-loop{width:100%} .ampforwp_single_excerpt { margin-bottom:15px; }
|
37 |
.ampforwp-ad-above-related-post{padding-top:15px;}
|
38 |
+
.single-post .amp_author_area amp-img{ margin: 0; float: left; margin-right: 12px; border-radius: 60px; }
|
39 |
+
.single-post .amp_author_area .amp_author_area_wrapper{ display: inline-block; width: 100%; line-height: 1.4; margin-top: 22px; font-size: 13px; color:#333; font-family: sans-serif; }
|
40 |
+
/* Footer */
|
41 |
+
.footer_menu ul{ list-style-type: none; padding: 0; text-align: center; margin: 0px 20px 25px 20px; line-height: 27px; font-size: 13px }
|
42 |
+
.footer_menu ul li{ display:inline; margin:0 10px; }
|
43 |
+
.footer_menu ul li:first-child{ margin-left:0 }
|
44 |
+
.footer_menu ul li:last-child{ margin-right:0 }
|
45 |
+
.footer_menu ul ul{ display:none }
|
46 |
/* Category 1 */
|
47 |
.amp-category-block ul{ list-style-type:none }
|
48 |
.amp-category-block-btn{ display: block; text-align: center; font-size: 13px; margin-top: 15px; border-bottom: 1px solid #f1f1f1; text-decoration: none; }
|
96 |
.ampforwp-search-nav-wrapper .searchmenu{ margin-top: 20px; }
|
97 |
.headerlogo a, [class*=icono-]{ top:0; }
|
98 |
.amp-wp-header a, .headerlogo a, [class*=icono-] {color: <?php echo sanitize_hex_color( $header_color ); ?>;text-decoration: none;}
|
99 |
+
@media screen and (min-width: 650px) { table {display: inline-table;} }
|
100 |
<?php if($redux_builder_amp['enable-single-social-icons'] && is_socialshare_or_socialsticky_enabled_in_ampforwp() ){ ?> .amp-wp-footer{padding-bottom: 60px;}<?php } ?>
|
101 |
|
102 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
123 |
.amp-ad-wrapper{ direction: ltr; }
|
124 |
<?php } ?>
|
125 |
<?php if ($redux_builder_amp['ampforwp-callnow-button']) { ?>
|
126 |
+
.callnow{ position: relative; top: -27px; right: 100px; }
|
127 |
.callnow a:before { content: ""; position: absolute; right: 23px; width: 5px; height: 11px; border-width: 6px 0 6px 3px; border-style: solid; border-color:<?php echo $redux_builder_amp['amp-opt-color-rgba-colorscheme-call']['color']; ?>; background: transparent; transform: rotate(-30deg); box-sizing: initial; border-top-left-radius: 3px 5px; border-bottom-left-radius: 3px 5px; }
|
128 |
<?php } ?>
|
129 |
<?php
|
130 |
if ( class_exists('TablePress') ) { ?>
|
131 |
.tablepress-table-description{clear:both;display:block}.tablepress{border-collapse:collapse;border-spacing:0;width:100%;margin-bottom:1em;border:none}.tablepress td,.tablepress th{padding:8px;border:none;background:0 0;text-align:left}.tablepress tbody td{vertical-align:top}.tablepress tbody td,.tablepress tfoot th{border-top:1px solid #ddd}.tablepress tbody tr:first-child td{border-top:0}.tablepress thead th{border-bottom:1px solid #ddd}.tablepress tfoot th,.tablepress thead th{background-color:#d9edf7;font-weight:700;vertical-align:middle}.tablepress .odd td{background-color:#f9f9f9}.tablepress .even td{background-color:#fff}.tablepress .row-hover tr:hover td{background-color:#f3f3f3}@media (min-width:768px) and (max-width:1600px){.tablepress{overflow-x:none}}@media (min-width:320px) and (max-width:767px){.tablepress{display:inline-block;overflow-x:scroll}}
|
132 |
<?php } ?>
|
133 |
+
<?php echo $redux_builder_amp['css_editor']; } ?>
|
templates/design-manager/design-2/archive.php
CHANGED
@@ -34,7 +34,8 @@
|
|
34 |
<?php
|
35 |
the_archive_title( '<h3 class="page-title">', '</h3>' );
|
36 |
$description = get_the_archive_description();
|
37 |
-
$sanitizer = new AMPFORWP_Content( $description, array(),
|
|
|
38 |
$arch_desc = $sanitizer->get_amp_content();
|
39 |
if( $arch_desc ) { ?>
|
40 |
<div class="amp-wp-content taxonomy-description">
|
34 |
<?php
|
35 |
the_archive_title( '<h3 class="page-title">', '</h3>' );
|
36 |
$description = get_the_archive_description();
|
37 |
+
$sanitizer = new AMPFORWP_Content( $description, array(),
|
38 |
+
apply_filters( 'ampforwp_content_sanitizers',array( 'AMP_Img_Sanitizer' => array(),'AMP_Style_Sanitizer' => array() ) ) );
|
39 |
$arch_desc = $sanitizer->get_amp_content();
|
40 |
if( $arch_desc ) { ?>
|
41 |
<div class="amp-wp-content taxonomy-description">
|
templates/design-manager/design-2/elements/content.php
CHANGED
@@ -1,12 +1,17 @@
|
|
1 |
<div class="amp-wp-article-content">
|
2 |
<!--Post Content here-->
|
3 |
<div class="amp-wp-content the_content">
|
4 |
-
<?php
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
10 |
do_action('ampforwp_before_post_content') //Post before Content here ?>
|
11 |
|
12 |
<?php
|
1 |
<div class="amp-wp-article-content">
|
2 |
<!--Post Content here-->
|
3 |
<div class="amp-wp-content the_content">
|
4 |
+
<?php global $redux_builder_amp;
|
5 |
+
if( array_key_exists( 'enable-excerpt-single' , $redux_builder_amp ) ) {
|
6 |
+
if($redux_builder_amp['enable-excerpt-single']) {
|
7 |
+
if(has_excerpt()){ ?>
|
8 |
+
<div class="ampforwp_single_excerpt">
|
9 |
+
<?php $content = get_the_excerpt();
|
10 |
+
echo $content; ?>
|
11 |
+
</div>
|
12 |
+
<?php }
|
13 |
+
}
|
14 |
+
}
|
15 |
do_action('ampforwp_before_post_content') //Post before Content here ?>
|
16 |
|
17 |
<?php
|
templates/design-manager/design-2/elements/meta-info.php
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
</span>
|
31 |
<?php foreach ($ampforwp_categories as $cat ) {
|
32 |
if($redux_builder_amp['ampforwp-archive-support']){
|
33 |
-
echo ('<span><a href="'. trailingslashit( trailingslashit( get_category_link( $cat->term_taxonomy_id ) ) .'amp' ) . '" >'.$cat->name .'</a></span>');
|
34 |
} else {
|
35 |
echo ('<span>'.$cat->name .'</span>');
|
36 |
}
|
30 |
</span>
|
31 |
<?php foreach ($ampforwp_categories as $cat ) {
|
32 |
if($redux_builder_amp['ampforwp-archive-support']){
|
33 |
+
echo ('<span class="amp-cat-'.$cat->term_id.'"><a href="'. trailingslashit( trailingslashit( get_category_link( $cat->term_taxonomy_id ) ) .'amp' ) . '" >'.$cat->name .'</a></span>');
|
34 |
} else {
|
35 |
echo ('<span>'.$cat->name .'</span>');
|
36 |
}
|
templates/design-manager/design-2/elements/meta-taxonomy.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
|
12 |
foreach ($ampforwp_tags as $tag) {
|
13 |
if($redux_builder_amp['ampforwp-archive-support']){
|
14 |
-
echo ('<span><a href="'.trailingslashit( trailingslashit( get_tag_link( $tag->term_taxonomy_id ) ) . 'amp' ) . '" >'.$tag->name .'</a></span>');
|
15 |
} else {
|
16 |
echo ('<span>'.$tag->name .'</span>');
|
17 |
}
|
@@ -26,3 +26,25 @@
|
|
26 |
</div>
|
27 |
<?php endif;?>
|
28 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
foreach ($ampforwp_tags as $tag) {
|
13 |
if($redux_builder_amp['ampforwp-archive-support']){
|
14 |
+
echo ('<span class="amp-tag-'.$tag->term_id.'"><a href="'.trailingslashit( trailingslashit( get_tag_link( $tag->term_taxonomy_id ) ) . 'amp' ) . '" >'.$tag->name .'</a></span>');
|
15 |
} else {
|
16 |
echo ('<span>'.$tag->name .'</span>');
|
17 |
}
|
26 |
</div>
|
27 |
<?php endif;?>
|
28 |
</div>
|
29 |
+
|
30 |
+
<?php
|
31 |
+
|
32 |
+
if( array_key_exists( 'amp-author-description' , $redux_builder_amp ) && is_single() ) {
|
33 |
+
if( $redux_builder_amp['amp-author-description'] ) { ?>
|
34 |
+
<div class="amp-wp-content amp_author_area ampforwp-meta-taxonomy">
|
35 |
+
<div class="amp_author_area_wrapper">
|
36 |
+
<?php $post_author = $this->get( 'post_author' );
|
37 |
+
if ( $post_author ) {
|
38 |
+
|
39 |
+
$author_avatar_url = get_avatar_url( $post_author->user_email, array( 'size' => 70 ) );
|
40 |
+
if ( $author_avatar_url ) { ?>
|
41 |
+
<amp-img src="<?php echo $author_avatar_url; ?>" width="70" height="70" layout="fixed"></amp-img>
|
42 |
+
<?php
|
43 |
+
} ?>
|
44 |
+
<strong><?php echo esc_html( $post_author->display_name ); ?></strong>: <?php echo $post_author->description ; ?>
|
45 |
+
|
46 |
+
<?php } ?>
|
47 |
+
</div>
|
48 |
+
</div> <?php
|
49 |
+
}
|
50 |
+
}
|
templates/design-manager/design-2/elements/social-icons.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
-
<?php global $redux_builder_amp;
|
2 |
-
|
|
|
3 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
4 |
<amp-social-share type="facebook" data-param-app_id="<?php echo $redux_builder_amp['amp-facebook-app-id']; ?>" width="50" height="28"></amp-social-share>
|
5 |
<?php } ?>
|
@@ -8,8 +9,8 @@
|
|
8 |
<amp-social-share type="twitter"
|
9 |
width="50"
|
10 |
height="28"
|
11 |
-
data-param-url="
|
12 |
-
|
13 |
></amp-social-share>
|
14 |
<?php } ?>
|
15 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
@@ -26,9 +27,17 @@
|
|
26 |
<?php } ?>
|
27 |
<?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
|
28 |
<a href="whatsapp://send?text=<?php echo get_the_permalink();?>">
|
29 |
-
<div class="
|
30 |
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3J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nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" />
|
31 |
</div>
|
32 |
</a>
|
33 |
<?php } ?>
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php global $redux_builder_amp;
|
2 |
+
if ( is_single() ) { ?>
|
3 |
+
<div class="amp-wp-content post-pagination-meta ampforwp-social-icons-wrapper ampforwp-social-icons">
|
4 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
5 |
<amp-social-share type="facebook" data-param-app_id="<?php echo $redux_builder_amp['amp-facebook-app-id']; ?>" width="50" height="28"></amp-social-share>
|
6 |
<?php } ?>
|
9 |
<amp-social-share type="twitter"
|
10 |
width="50"
|
11 |
height="28"
|
12 |
+
data-param-url=""
|
13 |
+
data-param-text="TITLE <?php echo wp_get_shortlink().' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.$data_param_data ?>"
|
14 |
></amp-social-share>
|
15 |
<?php } ?>
|
16 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
27 |
<?php } ?>
|
28 |
<?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
|
29 |
<a href="whatsapp://send?text=<?php echo get_the_permalink();?>">
|
30 |
+
<div class="custom-amp-socialsharing-icon">
|
31 |
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4x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C9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" />
|
32 |
</div>
|
33 |
</a>
|
34 |
<?php } ?>
|
35 |
+
<?php if($redux_builder_amp['enable-single-line-share'] == true) { ?>
|
36 |
+
<a href="http://line.me/R/msg/text/?<?php echo get_the_permalink(); ?>">
|
37 |
+
<div class="custom-amp-socialsharing-icon custom-amp-socialsharing-line">
|
38 |
+
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI5Ni41MjggMjk2LjUyOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjk2LjUyOCAyOTYuNTI4OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCI+CjxnPgoJPHBhdGggZD0iTTI5NS44MzgsMTE1LjM0N2wwL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tMy44NjYsMy4xMzQtNyw3LTdoMzMuNTdjMy44NjYsMCw3LDMuMTM0LDcsN3MtMy4xMzQsNy03LDdoLTI2LjU3djEyLjg0OWgyMS41NjJjMy44NjYsMCw3LDMuMTM0LDcsN2MwLDMuODY2LTMuMTM0LDctNyw3ICAgaC0yMS41NjJ2MTIuODQ3aDI3LjY0NWMzLjg2NiwwLDcsMy4xMzQsNyw3UzIzNy4xNzcsMTU5LjI2OSwyMzMuMzExLDE1OS4yNjl6IiBmaWxsPSIjRkZGRkZGIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==" width="50" height="20" />
|
39 |
+
</div>
|
40 |
+
</a>
|
41 |
+
<?php } ?>
|
42 |
+
</div>
|
43 |
+
<?php } ?>
|
templates/design-manager/design-2/elements/title.php
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
<header class="amp-wp-article-header ampforwp-title">
|
2 |
-
<h1 class="amp-wp-title"
|
|
|
|
|
|
|
|
|
3 |
<?php do_action('ampforwp_below_the_title'); ?>
|
4 |
</header>
|
1 |
<header class="amp-wp-article-header ampforwp-title">
|
2 |
+
<h1 class="amp-wp-title"> <?php
|
3 |
+
$ampforwp_title = $this->get( 'post_title' ) ;
|
4 |
+
$ampforwp_title = apply_filters('ampforwp_filter_single_title', $ampforwp_title);
|
5 |
+
echo wp_kses_data( $ampforwp_title ); ?>
|
6 |
+
</h1>
|
7 |
<?php do_action('ampforwp_below_the_title'); ?>
|
8 |
</header>
|
templates/design-manager/design-2/footer.php
CHANGED
@@ -21,6 +21,15 @@
|
|
21 |
?>
|
22 |
<footer class="container">
|
23 |
<div id="footer">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
<p><a href="#header"> <?php echo ampforwp_translation( $redux_builder_amp['amp-translator-top-text'], 'Top'); ?></a> <?php
|
25 |
//24. Added an options button for switching on/off link to non amp page
|
26 |
if($redux_builder_amp['amp-footer-link-non-amp-page']=='1') {
|
21 |
?>
|
22 |
<footer class="container">
|
23 |
<div id="footer">
|
24 |
+
<?php if ( has_nav_menu( 'amp-footer-menu' ) ) { ?>
|
25 |
+
<div class="footer_menu"> <?php
|
26 |
+
$menu = wp_nav_menu( array(
|
27 |
+
'theme_location' => 'amp-footer-menu',
|
28 |
+
'echo' => false
|
29 |
+
) );
|
30 |
+
echo strip_tags( $menu , '<ul><li><a>'); ?>
|
31 |
+
</div>
|
32 |
+
<?php } ?>
|
33 |
<p><a href="#header"> <?php echo ampforwp_translation( $redux_builder_amp['amp-translator-top-text'], 'Top'); ?></a> <?php
|
34 |
//24. Added an options button for switching on/off link to non amp page
|
35 |
if($redux_builder_amp['amp-footer-link-non-amp-page']=='1') {
|
templates/design-manager/design-2/frontpage.php
CHANGED
@@ -49,7 +49,22 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
49 |
<?php do_action('ampforwp_frontpage_above_loop') ?>
|
50 |
|
51 |
<main>
|
52 |
-
<div class="amp-wp-content the_content">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
// Normal Front Page Content
|
55 |
if ( ! $amp_custom_content_enable ) {
|
@@ -84,6 +99,7 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
84 |
<?php
|
85 |
// TODO : Create a separate function and add the comment code that and use DRY method instead of repeating the code. #682
|
86 |
global $redux_builder_amp;
|
|
|
87 |
// Gather comments for a specific page/post
|
88 |
$postID = get_the_ID();
|
89 |
$postID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
@@ -91,6 +107,8 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
91 |
'post_id' => $postID,
|
92 |
'status' => 'approve' //Change this to the type of comments to be displayed
|
93 |
));
|
|
|
|
|
94 |
if ( $comments ) { ?>
|
95 |
<div class="amp-wp-content comments_list">
|
96 |
<h3><?php global $redux_builder_amp; echo ampforwp_translation($redux_builder_amp['amp-translator-view-comments-text'], 'View Comments' )?></h3>
|
@@ -170,14 +188,14 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
170 |
</ul>
|
171 |
</div>
|
172 |
<div class="comment-button-wrapper">
|
173 |
-
<a href="<?php echo trailingslashit(
|
174 |
</div><?php
|
175 |
} else {
|
176 |
if ( !comments_open() ) {
|
177 |
return;
|
178 |
} ?>
|
179 |
<div class="comment-button-wrapper">
|
180 |
-
<a href="<?php echo trailingslashit(
|
181 |
</div>
|
182 |
<?php } ?>
|
183 |
</div> <?php
|
@@ -185,9 +203,11 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
185 |
|
186 |
<div class="amp-wp-content post-pagination-meta">
|
187 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-taxonomy' ) ) ); ?>
|
188 |
-
</div>
|
|
|
189 |
|
190 |
-
|
|
|
191 |
<div class="sticky_social">
|
192 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
193 |
<amp-social-share type="facebook" width="50" height="28"></amp-social-share>
|
@@ -196,8 +216,8 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
196 |
<amp-social-share type="twitter"
|
197 |
width="50"
|
198 |
height="28"
|
199 |
-
data-param-url="
|
200 |
-
|
201 |
></amp-social-share>
|
202 |
<?php } ?>
|
203 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
49 |
<?php do_action('ampforwp_frontpage_above_loop') ?>
|
50 |
|
51 |
<main>
|
52 |
+
<div class="amp-wp-content the_content">
|
53 |
+
|
54 |
+
<?php if (has_post_thumbnail( $post_id ) ): ?>
|
55 |
+
<figure class="amp-wp-article-featured-image wp-caption"> <?php
|
56 |
+
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'medium' );
|
57 |
+
$caption = get_the_post_thumbnail_caption( $post_id ); ?>
|
58 |
+
<amp-img src="<?php echo $image[0]; ?>" width="<?php echo $image[1]; ?>" height="<?php echo $image[2]; ?>" layout=responsive alt="<?php echo get_the_title( $post_id ) ?>" > </amp-img>
|
59 |
+
<?php if ( $caption ) : ?>
|
60 |
+
<p class="wp-caption-text">
|
61 |
+
<?php echo wp_kses_data( $caption ); ?>
|
62 |
+
</p>
|
63 |
+
<?php endif; ?>
|
64 |
+
</figure>
|
65 |
+
<?php endif; ?>
|
66 |
+
|
67 |
+
<?php
|
68 |
|
69 |
// Normal Front Page Content
|
70 |
if ( ! $amp_custom_content_enable ) {
|
99 |
<?php
|
100 |
// TODO : Create a separate function and add the comment code that and use DRY method instead of repeating the code. #682
|
101 |
global $redux_builder_amp;
|
102 |
+
$comment_button_url = "";
|
103 |
// Gather comments for a specific page/post
|
104 |
$postID = get_the_ID();
|
105 |
$postID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
107 |
'post_id' => $postID,
|
108 |
'status' => 'approve' //Change this to the type of comments to be displayed
|
109 |
));
|
110 |
+
$comment_button_url = get_permalink( $post_id );
|
111 |
+
$comment_button_url = apply_filters('ampforwp_frontpage_comments_url',$comment_button_url );
|
112 |
if ( $comments ) { ?>
|
113 |
<div class="amp-wp-content comments_list">
|
114 |
<h3><?php global $redux_builder_amp; echo ampforwp_translation($redux_builder_amp['amp-translator-view-comments-text'], 'View Comments' )?></h3>
|
188 |
</ul>
|
189 |
</div>
|
190 |
<div class="comment-button-wrapper">
|
191 |
+
<a href="<?php echo esc_url( trailingslashit( $comment_button_url ) ) .'?nonamp=1'.'#commentform' ?>" rel="nofollow"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a>
|
192 |
</div><?php
|
193 |
} else {
|
194 |
if ( !comments_open() ) {
|
195 |
return;
|
196 |
} ?>
|
197 |
<div class="comment-button-wrapper">
|
198 |
+
<a href="<?php echo esc_url( trailingslashit( $comment_button_url ) ) .'?nonamp=1'.'#commentform' ?>" rel="nofollow"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a>
|
199 |
</div>
|
200 |
<?php } ?>
|
201 |
</div> <?php
|
203 |
|
204 |
<div class="amp-wp-content post-pagination-meta">
|
205 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-taxonomy' ) ) ); ?>
|
206 |
+
</div> <?php
|
207 |
+
|
208 |
|
209 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
210 |
+
if( $redux_builder_amp['enable-single-social-icons'] == true && !is_plugin_active( 'amp-cta/amp-cta.php' ) ) { ?>
|
211 |
<div class="sticky_social">
|
212 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
213 |
<amp-social-share type="facebook" width="50" height="28"></amp-social-share>
|
216 |
<amp-social-share type="twitter"
|
217 |
width="50"
|
218 |
height="28"
|
219 |
+
data-param-url=""
|
220 |
+
data-param-text="TITLE <?php echo wp_get_shortlink().' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.$data_param_data ?>"
|
221 |
></amp-social-share>
|
222 |
<?php } ?>
|
223 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
templates/design-manager/design-2/style.php
CHANGED
@@ -28,6 +28,7 @@ amp-iframe{ max-width: 100%; margin-bottom : 20px; }
|
|
28 |
.alignleft{ margin-right: 12px; margin-bottom:5px; float: left; }
|
29 |
.alignright{ float:right; margin-left: 12px; margin-bottom:5px; }
|
30 |
.aligncenter{ text-align:center; margin: 0 auto }
|
|
|
31 |
|
32 |
/* Template Styles */
|
33 |
.amp-wp-content, .amp-wp-title-bar div {
|
@@ -92,7 +93,9 @@ amp-lightbox{ background: rgba(0, 0, 0,0.85); }
|
|
92 |
/* Sticky Social bar in Single */
|
93 |
.ampforwp-social-icons-wrapper{ margin: 0.65em 0px 0.65em 0px; height: 28px; }
|
94 |
.sticky_social{ width: 100%; bottom: 0; display: block; left: 0; box-shadow: 0px 4px 7px #000; background: #fff; padding: 7px 0px 0px 0px; position: fixed; margin: 0; z-index: 10; text-align: center; }
|
95 |
-
.
|
|
|
|
|
96 |
/* Header */
|
97 |
#header{ background: #fff; text-align: center; }
|
98 |
#header h3{ text-align: center; font-size: 20px; font-weight: bold; line-height: 1; padding: 15px; margin: 0; }
|
@@ -110,8 +113,13 @@ main .amp-archive-heading{ background : none; box-shadow: none; padding: 5px; }
|
|
110 |
#footer{ background : #fff; font-size: 13px; text-align: center; letter-spacing: 0.2px; padding: 20px 0; }
|
111 |
#footer p:first-child{ margin-bottom: 12px; }
|
112 |
#footer p{ margin: 0 }
|
|
|
|
|
|
|
|
|
|
|
113 |
/* Single */
|
114 |
-
.comment-button-wrapper{ margin-bottom:
|
115 |
.comment-button-wrapper a{ color: #fff; background: #312c7e; font-size: 13px; padding: 10px 20px 10px 20px; box-shadow: 0 0px 3px rgba(0,0,0,.04); border-radius: 80px; }
|
116 |
h1.amp-wp-title{ text-align: center; margin: 0.7em 0px 0.6em 0px; font-size: 1.5em; }
|
117 |
.amp-wp-content.post-title-meta, .amp-wp-content.post-pagination-meta{ background: none; padding: 0; box-shadow:none }
|
@@ -140,6 +148,8 @@ main .amp-wp-content.featured-image-content{ padding: 0px; border: 0; margin-bot
|
|
140 |
.amp-wp-content.post-pagination-meta{ max-width: 1030px; }
|
141 |
.single-post .ampforwp-social-icons.ampforwp-social-icons-wrapper{ display: block; margin: 2em auto 0.9em auto ; max-width: 1030px; }
|
142 |
.amp-wp-article-header.amp-wp-article-category.ampforwp-meta-taxonomy{ margin: 10px auto; max-width: 1030px; } .ampforwp_single_excerpt { margin-bottom:15px; font-size: 15px;}
|
|
|
|
|
143 |
/* Related Posts */
|
144 |
main .amp-wp-content.relatedpost{ background: none; box-shadow: none; max-width: 1030px; padding:0px 0 0 0; margin:1.8em auto 1.5em auto }
|
145 |
.related_posts h3, .comments_list h3{ font-size: 14px; font-weight: bold; letter-spacing: 0.4px; margin: 15px 0 10px 0; color: #333; }
|
@@ -200,6 +210,7 @@ table tr:last-child td:last-child { -moz-border-radius-bottomright: 3px; -webkit
|
|
200 |
table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f0f0f0)); background: -moz-linear-gradient(top, #f2f2f2, #f0f0f0); }
|
201 |
|
202 |
/* Responsive */
|
|
|
203 |
@media screen and (max-width: 800px) { .single-post main{ padding: 12px 10px 10px 10px } }
|
204 |
@media screen and (max-width: 630px) { .related_posts ol li p{ display:none } .related_link { margin: 16px 18px 20px 19px; } .amp-category-post {line-height: 1.45;font-size: 14px; } .amp-category-block li:nth-child(3) {margin:0 0.6%} }
|
205 |
@media screen and (max-width: 510px) { .ampforwp-tax-category span{ display:none }
|
28 |
.alignleft{ margin-right: 12px; margin-bottom:5px; float: left; }
|
29 |
.alignright{ float:right; margin-left: 12px; margin-bottom:5px; }
|
30 |
.aligncenter{ text-align:center; margin: 0 auto }
|
31 |
+
#statcounter{width: 1px;height:1px;}
|
32 |
|
33 |
/* Template Styles */
|
34 |
.amp-wp-content, .amp-wp-title-bar div {
|
93 |
/* Sticky Social bar in Single */
|
94 |
.ampforwp-social-icons-wrapper{ margin: 0.65em 0px 0.65em 0px; height: 28px; }
|
95 |
.sticky_social{ width: 100%; bottom: 0; display: block; left: 0; box-shadow: 0px 4px 7px #000; background: #fff; padding: 7px 0px 0px 0px; position: fixed; margin: 0; z-index: 10; text-align: center; }
|
96 |
+
.custom-amp-socialsharing-icon{ width: 50px; height: 28px; display: inline-block; background: #5cbe4a;position: relative; top: -8px; padding-top: 0px; }
|
97 |
+
.custom-amp-socialsharing-icon amp-img{ top: 4px; }
|
98 |
+
.custom-amp-socialsharing-line{background:#00b900}
|
99 |
/* Header */
|
100 |
#header{ background: #fff; text-align: center; }
|
101 |
#header h3{ text-align: center; font-size: 20px; font-weight: bold; line-height: 1; padding: 15px; margin: 0; }
|
113 |
#footer{ background : #fff; font-size: 13px; text-align: center; letter-spacing: 0.2px; padding: 20px 0; }
|
114 |
#footer p:first-child{ margin-bottom: 12px; }
|
115 |
#footer p{ margin: 0 }
|
116 |
+
.footer_menu ul{ list-style-type: none; padding: 0; text-align: center; margin: 0px 20px 25px 20px; line-height: 27px; font-size: 13px }
|
117 |
+
.footer_menu ul li{ display:inline; margin:0 10px; }
|
118 |
+
.footer_menu ul li:first-child{ margin-left:0 }
|
119 |
+
.footer_menu ul li:last-child{ margin-right:0 }
|
120 |
+
.footer_menu ul ul{ display:none }
|
121 |
/* Single */
|
122 |
+
.comment-button-wrapper{ margin-bottom: 0px; margin-top: 60px; text-align:center }
|
123 |
.comment-button-wrapper a{ color: #fff; background: #312c7e; font-size: 13px; padding: 10px 20px 10px 20px; box-shadow: 0 0px 3px rgba(0,0,0,.04); border-radius: 80px; }
|
124 |
h1.amp-wp-title{ text-align: center; margin: 0.7em 0px 0.6em 0px; font-size: 1.5em; }
|
125 |
.amp-wp-content.post-title-meta, .amp-wp-content.post-pagination-meta{ background: none; padding: 0; box-shadow:none }
|
148 |
.amp-wp-content.post-pagination-meta{ max-width: 1030px; }
|
149 |
.single-post .ampforwp-social-icons.ampforwp-social-icons-wrapper{ display: block; margin: 2em auto 0.9em auto ; max-width: 1030px; }
|
150 |
.amp-wp-article-header.amp-wp-article-category.ampforwp-meta-taxonomy{ margin: 10px auto; max-width: 1030px; } .ampforwp_single_excerpt { margin-bottom:15px; font-size: 15px;}
|
151 |
+
.single-post .amp_author_area amp-img{ margin: 0; float: left; margin-right: 12px; border-radius: 60px; }
|
152 |
+
.single-post .amp_author_area .amp_author_area_wrapper{ display: inline-block; width: 100%; line-height: 1.4; margin-top: 22px; font-size: 13px; color:#333; font-family: sans-serif; }
|
153 |
/* Related Posts */
|
154 |
main .amp-wp-content.relatedpost{ background: none; box-shadow: none; max-width: 1030px; padding:0px 0 0 0; margin:1.8em auto 1.5em auto }
|
155 |
.related_posts h3, .comments_list h3{ font-size: 14px; font-weight: bold; letter-spacing: 0.4px; margin: 15px 0 10px 0; color: #333; }
|
210 |
table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f0f0f0)); background: -moz-linear-gradient(top, #f2f2f2, #f0f0f0); }
|
211 |
|
212 |
/* Responsive */
|
213 |
+
@media screen and (min-width: 650px) { table {display: inline-table;} }
|
214 |
@media screen and (max-width: 800px) { .single-post main{ padding: 12px 10px 10px 10px } }
|
215 |
@media screen and (max-width: 630px) { .related_posts ol li p{ display:none } .related_link { margin: 16px 18px 20px 19px; } .amp-category-post {line-height: 1.45;font-size: 14px; } .amp-category-block li:nth-child(3) {margin:0 0.6%} }
|
216 |
@media screen and (max-width: 510px) { .ampforwp-tax-category span{ display:none }
|
templates/design-manager/design-3/archive.php
CHANGED
@@ -56,7 +56,7 @@ if ( get_query_var( 'paged' ) ) {
|
|
56 |
<?php if ( is_archive() ) {
|
57 |
the_archive_title( '<h3 class="amp-wp-content page-title">', '</h3>' );
|
58 |
$description = get_the_archive_description();
|
59 |
-
$sanitizer = new AMPFORWP_Content( $description, array(), apply_filters( 'ampforwp_content_sanitizers', array( 'AMP_Img_Sanitizer' => array() ) ) );
|
60 |
$arch_desc = $sanitizer->get_amp_content();
|
61 |
if( $arch_desc ) { ?>
|
62 |
<div class="amp-wp-content taxonomy-description">
|
@@ -97,7 +97,7 @@ if ( get_query_var( 'paged' ) ) {
|
|
97 |
<div class="amp-wp-post-content">
|
98 |
<ul class="amp-wp-tags">
|
99 |
<?php foreach((get_the_category()) as $category) { ?>
|
100 |
-
<li><?php echo $category->cat_name ?></li>
|
101 |
<?php } ?>
|
102 |
</ul>
|
103 |
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"> <?php the_title(); ?></a></h2>
|
56 |
<?php if ( is_archive() ) {
|
57 |
the_archive_title( '<h3 class="amp-wp-content page-title">', '</h3>' );
|
58 |
$description = get_the_archive_description();
|
59 |
+
$sanitizer = new AMPFORWP_Content( $description, array(), apply_filters( 'ampforwp_content_sanitizers', array( 'AMP_Img_Sanitizer' => array(), 'AMP_Style_Sanitizer' => array() ) ) );
|
60 |
$arch_desc = $sanitizer->get_amp_content();
|
61 |
if( $arch_desc ) { ?>
|
62 |
<div class="amp-wp-content taxonomy-description">
|
97 |
<div class="amp-wp-post-content">
|
98 |
<ul class="amp-wp-tags">
|
99 |
<?php foreach((get_the_category()) as $category) { ?>
|
100 |
+
<li class="amp-cat-<?php echo $category->term_id;?>"><?php echo $category->cat_name ?></li>
|
101 |
<?php } ?>
|
102 |
</ul>
|
103 |
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"> <?php the_title(); ?></a></h2>
|
templates/design-manager/design-3/elements/content.php
CHANGED
@@ -2,12 +2,17 @@
|
|
2 |
|
3 |
<!--Post Content here-->
|
4 |
<div class="amp-wp-content the_content">
|
5 |
-
<?php
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
11 |
do_action('ampforwp_before_post_content') //Post before Content here ?>
|
12 |
|
13 |
<?php
|
2 |
|
3 |
<!--Post Content here-->
|
4 |
<div class="amp-wp-content the_content">
|
5 |
+
<?php global $redux_builder_amp;
|
6 |
+
if( array_key_exists( 'enable-excerpt-single' , $redux_builder_amp ) ) {
|
7 |
+
if($redux_builder_amp['enable-excerpt-single']) {
|
8 |
+
if(has_excerpt()){ ?>
|
9 |
+
<div class="ampforwp_single_excerpt">
|
10 |
+
<?php $content = get_the_excerpt();
|
11 |
+
echo $content; ?>
|
12 |
+
</div>
|
13 |
+
<?php }
|
14 |
+
}
|
15 |
+
}
|
16 |
do_action('ampforwp_before_post_content') //Post before Content here ?>
|
17 |
|
18 |
<?php
|
templates/design-manager/design-3/elements/meta-info.php
CHANGED
@@ -11,14 +11,14 @@
|
|
11 |
|
12 |
<?php $ampforwp_categories = get_the_terms( $this->ID, 'category' );
|
13 |
if ( $ampforwp_categories ) : ?>
|
14 |
-
<span class="amp-wp-meta amp-wp-tax-category ampforwp-tax-category">
|
15 |
<?php
|
16 |
//if RTL is OFF
|
17 |
if(!$redux_builder_amp['amp-rtl-select-option']) {
|
18 |
global $redux_builder_amp; printf( ampforwp_translation($redux_builder_amp['amp-translator-in-designthree'] .' ', 'accelerated-mobile-pages' )); } ?>
|
19 |
<?php foreach ($ampforwp_categories as $cat ) {
|
20 |
if($redux_builder_amp['ampforwp-archive-support']){
|
21 |
-
echo ('<span><a href="'.trailingslashit( trailingslashit(get_category_link($cat->term_taxonomy_id)).'amp') . '" >'.$cat->name .'</a></span>');
|
22 |
} else {
|
23 |
echo ('<span>'.$cat->name .'</span>');
|
24 |
}
|
11 |
|
12 |
<?php $ampforwp_categories = get_the_terms( $this->ID, 'category' );
|
13 |
if ( $ampforwp_categories ) : ?>
|
14 |
+
<span class="amp-wp-meta amp-wp-tax-category ampforwp-tax-category ">
|
15 |
<?php
|
16 |
//if RTL is OFF
|
17 |
if(!$redux_builder_amp['amp-rtl-select-option']) {
|
18 |
global $redux_builder_amp; printf( ampforwp_translation($redux_builder_amp['amp-translator-in-designthree'] .' ', 'accelerated-mobile-pages' )); } ?>
|
19 |
<?php foreach ($ampforwp_categories as $cat ) {
|
20 |
if($redux_builder_amp['ampforwp-archive-support']){
|
21 |
+
echo ('<span class="amp-cat-'.$cat->term_id.'"><a href="'.trailingslashit( trailingslashit(get_category_link($cat->term_taxonomy_id)).'amp') . '" >'.$cat->name .'</a></span>');
|
22 |
} else {
|
23 |
echo ('<span>'.$cat->name .'</span>');
|
24 |
}
|
templates/design-manager/design-3/elements/meta-taxonomy.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
<div class="amp-wp-meta amp-wp-content ampforwp-tax-tag">
|
6 |
<?php foreach ($ampforwp_tags as $tag) {
|
7 |
if($redux_builder_amp['ampforwp-archive-support']){
|
8 |
-
echo ('<span><a href="'.trailingslashit( trailingslashit(get_tag_link($tag->term_taxonomy_id)).'amp') .'" >'. $tag->name .'</a></span>');
|
9 |
} else {
|
10 |
echo '<span>'. $tag->name .'</span>';
|
11 |
}
|
@@ -13,21 +13,24 @@
|
|
13 |
</div>
|
14 |
<?php endif;?>
|
15 |
</div>
|
|
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
</div>
|
33 |
-
|
|
5 |
<div class="amp-wp-meta amp-wp-content ampforwp-tax-tag">
|
6 |
<?php foreach ($ampforwp_tags as $tag) {
|
7 |
if($redux_builder_amp['ampforwp-archive-support']){
|
8 |
+
echo ('<span class="amp-tag-'.$tag->term_id.'"><a href="'.trailingslashit( trailingslashit(get_tag_link($tag->term_taxonomy_id)).'amp') .'" >'. $tag->name .'</a></span>');
|
9 |
} else {
|
10 |
echo '<span>'. $tag->name .'</span>';
|
11 |
}
|
13 |
</div>
|
14 |
<?php endif;?>
|
15 |
</div>
|
16 |
+
<?php
|
17 |
|
18 |
+
if( array_key_exists( 'amp-author-description' , $redux_builder_amp ) && is_single() ) {
|
19 |
+
if( $redux_builder_amp['amp-author-description'] ) { ?>
|
20 |
+
<div class="amp-wp-content amp_author_area ampforwp-meta-taxonomy">
|
21 |
+
<div class="amp_author_area_wrapper">
|
22 |
+
<?php $post_author = $this->get( 'post_author' );
|
23 |
+
if ( $post_author ) {
|
24 |
|
25 |
+
$author_avatar_url = get_avatar_url( $post_author->user_email, array( 'size' => 70 ) );
|
26 |
+
if ( $author_avatar_url ) { ?>
|
27 |
+
<amp-img src="<?php echo $author_avatar_url; ?>" width="70" height="70" layout="fixed"></amp-img>
|
28 |
+
<?php
|
29 |
+
} ?>
|
30 |
+
<strong><?php echo esc_html( $post_author->display_name ); ?></strong>: <?php echo $post_author->description ; ?>
|
31 |
|
32 |
+
<?php } ?>
|
33 |
+
</div>
|
34 |
+
</div> <?php
|
35 |
+
}
|
36 |
+
}
|
templates/design-manager/design-3/elements/social-icons.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php global $redux_builder_amp; ?>
|
2 |
-
<?php if( is_socialshare_or_socialsticky_enabled_in_ampforwp() ) { ?>
|
3 |
<div class="amp-wp-content ampforwp-social-icons-wrapper ampforwp-social-icons">
|
4 |
<i class="icono-share"></i>
|
5 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
@@ -8,8 +8,8 @@
|
|
8 |
<?php if($redux_builder_amp['enable-single-twitter-share'] == true) {
|
9 |
$data_param_data = $redux_builder_amp['enable-single-twitter-share-handle']; ?>
|
10 |
<amp-social-share type="twitter" width="40" height="40"
|
11 |
-
data-param-url="
|
12 |
-
data-param-text="TITLE <?php echo $data_param_data ?>"
|
13 |
></amp-social-share>
|
14 |
<?php } ?>
|
15 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
@@ -26,10 +26,17 @@
|
|
26 |
<?php } ?>
|
27 |
<?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
|
28 |
<a href="whatsapp://send?text=<?php echo get_the_permalink();?>">
|
29 |
-
<div class="
|
30 |
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6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zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" />
|
31 |
</div>
|
32 |
</a>
|
33 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
</div>
|
35 |
<?php } ?>
|
1 |
<?php global $redux_builder_amp; ?>
|
2 |
+
<?php if( is_socialshare_or_socialsticky_enabled_in_ampforwp() && is_single() ) { ?>
|
3 |
<div class="amp-wp-content ampforwp-social-icons-wrapper ampforwp-social-icons">
|
4 |
<i class="icono-share"></i>
|
5 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
8 |
<?php if($redux_builder_amp['enable-single-twitter-share'] == true) {
|
9 |
$data_param_data = $redux_builder_amp['enable-single-twitter-share-handle']; ?>
|
10 |
<amp-social-share type="twitter" width="40" height="40"
|
11 |
+
data-param-url=""
|
12 |
+
data-param-text="TITLE <?php echo wp_get_shortlink().' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.$data_param_data ?>"
|
13 |
></amp-social-share>
|
14 |
<?php } ?>
|
15 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
26 |
<?php } ?>
|
27 |
<?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
|
28 |
<a href="whatsapp://send?text=<?php echo get_the_permalink();?>">
|
29 |
+
<div class="custom-amp-socialsharing-icon-rounded">
|
30 |
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBo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KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" />
|
31 |
</div>
|
32 |
</a>
|
33 |
<?php } ?>
|
34 |
+
<?php if($redux_builder_amp['enable-single-line-share'] == true) { ?>
|
35 |
+
<a href="http://line.me/R/msg/text/?<?php echo get_the_permalink(); ?>">
|
36 |
+
<div class="custom-amp-socialsharing-icon-rounded custom-amp-socialsharing-line">
|
37 |
+
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI5Ni41MjggMjk2LjUyOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjk2LjUyOCAyOTYuNTI4OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCI+CjxnPgoJPHBhdGggZD0iTTI5NS44MzgsMTE1LjM0N2wwLjAwMy0wLjAwMWwtMC4wOTItMC43NmMtMC4w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y44NjYsMCw3LDMuMTM0LDcsN3MtMy4xMzQsNy03LDdoLTI2LjU3djEyLjg0OWgyMS41NjJjMy44NjYsMCw3LDMuMTM0LDcsN2MwLDMuODY2LTMuMTM0LDctNyw3ICAgaC0yMS41NjJ2MTIuODQ3aDI3LjY0NWMzLjg2NiwwLDcsMy4xMzQsNyw3UzIzNy4xNzcsMTU5LjI2OSwyMzMuMzExLDE1OS4yNjl6IiBmaWxsPSIjRkZGRkZGIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==" width="16" height="16" />
|
38 |
+
</div>
|
39 |
+
</a>
|
40 |
+
<?php } ?>
|
41 |
</div>
|
42 |
<?php } ?>
|
templates/design-manager/design-3/elements/title.php
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
<header class="amp-wp-content amp-wp-article-header ampforwp-title">
|
2 |
-
<h1 class="amp-wp-title"
|
|
|
|
|
|
|
|
|
3 |
<?php do_action('ampforwp_below_the_title'); ?>
|
4 |
-
</header>
|
1 |
<header class="amp-wp-content amp-wp-article-header ampforwp-title">
|
2 |
+
<h1 class="amp-wp-title"> <?php
|
3 |
+
$ampforwp_title = $this->get( 'post_title' ) ;
|
4 |
+
$ampforwp_title = apply_filters('ampforwp_filter_single_title', $ampforwp_title);
|
5 |
+
echo wp_kses_data( $ampforwp_title ); ?>
|
6 |
+
</h1>
|
7 |
<?php do_action('ampforwp_below_the_title'); ?>
|
8 |
+
</header>
|
templates/design-manager/design-3/frontpage.php
CHANGED
@@ -52,8 +52,22 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
52 |
<?php do_action('ampforwp_frontpage_above_loop') ?>
|
53 |
|
54 |
<main>
|
55 |
-
<div class="amp-wp-content the_content">
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
// Normal Front Page Content
|
58 |
if ( ! $amp_custom_content_enable ) {
|
59 |
echo $template->data['post_amp_content'];
|
@@ -86,6 +100,7 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
86 |
<?php
|
87 |
// TODO : Create a separate function and add the comment code that and use DRY method instead of repeating the code. #682
|
88 |
global $redux_builder_amp;
|
|
|
89 |
// Gather comments for a specific page/post
|
90 |
$postID = get_the_ID();
|
91 |
$postID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
@@ -93,6 +108,8 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
93 |
'post_id' => $postID,
|
94 |
'status' => 'approve' //Change this to the type of comments to be displayed
|
95 |
));
|
|
|
|
|
96 |
if ( $comments ) { ?>
|
97 |
<div class="amp-wp-content comments_list">
|
98 |
<h3><?php global $redux_builder_amp; echo ampforwp_translation($redux_builder_amp['amp-translator-view-comments-text'], 'View Comments' ) ?></h3>
|
@@ -172,14 +189,14 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
172 |
</ul>
|
173 |
</div>
|
174 |
<div class="comment-button-wrapper">
|
175 |
-
<a href="<?php echo trailingslashit(
|
176 |
</div><?php
|
177 |
} else {
|
178 |
if ( !comments_open() ) {
|
179 |
return;
|
180 |
} ?>
|
181 |
<div class="comment-button-wrapper">
|
182 |
-
<a href="<?php echo trailingslashit(
|
183 |
</div>
|
184 |
<?php } ?>
|
185 |
</div> <?php
|
@@ -187,15 +204,21 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
187 |
|
188 |
<div class="amp-wp-content post-pagination-meta">
|
189 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-taxonomy' ) ) ); ?>
|
190 |
-
</div>
|
191 |
|
192 |
-
|
|
|
|
|
193 |
<div class="sticky_social">
|
194 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
195 |
<amp-social-share type="facebook" width="50" height="28"></amp-social-share>
|
196 |
<?php } ?>
|
197 |
-
<?php if($redux_builder_amp['enable-single-twitter-share'] == true) {
|
198 |
-
<amp-social-share type="twitter" width="50" height="28"
|
|
|
|
|
|
|
|
|
199 |
<?php } ?>
|
200 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
201 |
<amp-social-share type="gplus" width="50" height="28"></amp-social-share>
|
52 |
<?php do_action('ampforwp_frontpage_above_loop') ?>
|
53 |
|
54 |
<main>
|
55 |
+
<div class="amp-wp-content the_content">
|
56 |
|
57 |
+
<?php if (has_post_thumbnail( $post_id ) ): ?>
|
58 |
+
<figure class="amp-wp-article-featured-image wp-caption"> <?php
|
59 |
+
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'medium' );
|
60 |
+
$caption = get_the_post_thumbnail_caption( $post_id ); ?>
|
61 |
+
<amp-img src="<?php echo $image[0]; ?>" width="<?php echo $image[1]; ?>" height="<?php echo $image[2]; ?>" layout=responsive alt="<?php echo get_the_title( $post_id ) ?>" > </amp-img>
|
62 |
+
<?php if ( $caption ) : ?>
|
63 |
+
<p class="wp-caption-text">
|
64 |
+
<?php echo wp_kses_data( $caption ); ?>
|
65 |
+
</p>
|
66 |
+
<?php endif; ?>
|
67 |
+
</figure>
|
68 |
+
<?php endif; ?>
|
69 |
+
|
70 |
+
<?php
|
71 |
// Normal Front Page Content
|
72 |
if ( ! $amp_custom_content_enable ) {
|
73 |
echo $template->data['post_amp_content'];
|
100 |
<?php
|
101 |
// TODO : Create a separate function and add the comment code that and use DRY method instead of repeating the code. #682
|
102 |
global $redux_builder_amp;
|
103 |
+
$comment_button_url = "";
|
104 |
// Gather comments for a specific page/post
|
105 |
$postID = get_the_ID();
|
106 |
$postID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
108 |
'post_id' => $postID,
|
109 |
'status' => 'approve' //Change this to the type of comments to be displayed
|
110 |
));
|
111 |
+
$comment_button_url = get_permalink( $post_id );
|
112 |
+
$comment_button_url = apply_filters('ampforwp_frontpage_comments_url',$comment_button_url );
|
113 |
if ( $comments ) { ?>
|
114 |
<div class="amp-wp-content comments_list">
|
115 |
<h3><?php global $redux_builder_amp; echo ampforwp_translation($redux_builder_amp['amp-translator-view-comments-text'], 'View Comments' ) ?></h3>
|
189 |
</ul>
|
190 |
</div>
|
191 |
<div class="comment-button-wrapper">
|
192 |
+
<a href="<?php echo trailingslashit( $comment_button_url ).'?nonamp=1'.'#commentform' ?>" rel="nofollow"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a>
|
193 |
</div><?php
|
194 |
} else {
|
195 |
if ( !comments_open() ) {
|
196 |
return;
|
197 |
} ?>
|
198 |
<div class="comment-button-wrapper">
|
199 |
+
<a href="<?php echo trailingslashit( $comment_button_url ).'?nonamp=1'.'#commentform' ?>" rel="nofollow"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a>
|
200 |
</div>
|
201 |
<?php } ?>
|
202 |
</div> <?php
|
204 |
|
205 |
<div class="amp-wp-content post-pagination-meta">
|
206 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-taxonomy' ) ) ); ?>
|
207 |
+
</div> <?php
|
208 |
|
209 |
+
|
210 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
211 |
+
if( $redux_builder_amp['enable-single-social-icons'] == true && !is_plugin_active( 'amp-cta/amp-cta.php' ) ) { ?>
|
212 |
<div class="sticky_social">
|
213 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
214 |
<amp-social-share type="facebook" width="50" height="28"></amp-social-share>
|
215 |
<?php } ?>
|
216 |
+
<?php if($redux_builder_amp['enable-single-twitter-share'] == true) { $data_param_data = $redux_builder_amp['enable-single-twitter-share-handle'];?>
|
217 |
+
<amp-social-share type="twitter" width="50" height="28"
|
218 |
+
data-param-url=""
|
219 |
+
data-param-text="TITLE <?php echo wp_get_shortlink().' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.$data_param_data ?>"
|
220 |
+
|
221 |
+
></amp-social-share>
|
222 |
<?php } ?>
|
223 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
224 |
<amp-social-share type="gplus" width="50" height="28"></amp-social-share>
|
templates/design-manager/design-3/index.php
CHANGED
@@ -136,7 +136,7 @@ if ( get_query_var( 'paged' ) ) {
|
|
136 |
<div class="amp-wp-post-content">
|
137 |
<ul class="amp-wp-tags">
|
138 |
<?php foreach((get_the_category()) as $category) { ?>
|
139 |
-
|
140 |
<?php } ?>
|
141 |
</ul>
|
142 |
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( trailingslashit( $ampforwp_amp_post_url ) ); ?>"> <?php the_title(); ?></a></h2>
|
136 |
<div class="amp-wp-post-content">
|
137 |
<ul class="amp-wp-tags">
|
138 |
<?php foreach((get_the_category()) as $category) { ?>
|
139 |
+
<li class="amp-cat-<?php echo $category->term_id;?>"><?php echo $category->cat_name ?></li>
|
140 |
<?php } ?>
|
141 |
</ul>
|
142 |
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( trailingslashit( $ampforwp_amp_post_url ) ); ?>"> <?php the_title(); ?></a></h2>
|
templates/design-manager/design-3/search.php
CHANGED
@@ -74,7 +74,7 @@
|
|
74 |
<div class="amp-wp-post-content">
|
75 |
<ul class="amp-wp-tags">
|
76 |
<?php foreach((get_the_category()) as $category) { ?>
|
77 |
-
<li><?php echo $category->cat_name ?></li>
|
78 |
<?php } ?>
|
79 |
</ul>
|
80 |
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( trailingslashit( $ampforwp_amp_post_url ) ); ?>"> <?php the_title(); ?></a></h2>
|
74 |
<div class="amp-wp-post-content">
|
75 |
<ul class="amp-wp-tags">
|
76 |
<?php foreach((get_the_category()) as $category) { ?>
|
77 |
+
<li class="amp-cat-<?php echo $category->term_id;?>"><?php echo $category->cat_name ?></li>
|
78 |
<?php } ?>
|
79 |
</ul>
|
80 |
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( trailingslashit( $ampforwp_amp_post_url ) ); ?>"> <?php the_title(); ?></a></h2>
|
templates/design-manager/design-3/style.php
CHANGED
@@ -21,6 +21,7 @@ a{ color: #312C7E; text-decoration: none }
|
|
21 |
.alignleft{ margin-right: 12px; margin-bottom:5px; float: left; }
|
22 |
.alignright{ float:right; margin-left: 12px; margin-bottom:5px; }
|
23 |
.aligncenter{ text-align:center; margin: 0 auto }
|
|
|
24 |
|
25 |
/* Template Styles */
|
26 |
.amp-wp-content, .amp-wp-title-bar div {
|
@@ -65,8 +66,11 @@ amp-accordion>section[expanded] li a:before{ content: "\25b8"; left: -7px; top:
|
|
65 |
/* Sticky Social bar in Single */
|
66 |
|
67 |
.sticky_social{ width: 100%; bottom: 0; display: block; left: 0; box-shadow: 0px 4px 7px #000; background: #fff; padding: 7px 0px 0px 0px; position: fixed; margin: 0; z-index: 10; text-align: center; }
|
68 |
-
.
|
69 |
-
.
|
|
|
|
|
|
|
70 |
/* Header */
|
71 |
#header{ background: #fff; text-align: center; height:50px; box-shadow:0 0 32px rgba(0,0,0,.15); }
|
72 |
header{ padding-bottom:50px; }
|
@@ -117,9 +121,10 @@ h1.amp-wp-title{ margin: 0; color: #333333; font-size: 48px; line-height: 58px;
|
|
117 |
.single-post .amp_author_area amp-img{ margin: 0; float: left; margin-right: 12px; border-radius: 60px; }
|
118 |
.amp-wp-article-tags .ampforwp-tax-tag, .amp-wp-article-tags .ampforwp-tax-tag a{ font-size: 12px; color: #555; font-family: sans-serif; margin: 20px 0 0 0; }
|
119 |
.amp-wp-article-tags span{ background: #eee; margin-right: 10px; padding: 5px 12px 5px 12px; border-radius: 3px; }
|
120 |
-
.ampforwp-social-icons{ margin-bottom:
|
121 |
.ampforwp-social-icons amp-social-share{ border-radius:60px; background-size:22px; margin-right:6px; }
|
122 |
-
.
|
|
|
123 |
.amp-wp-tax-tag { list-style: none; display: inline-block; }
|
124 |
figure{ margin: 0 0 20px 0; }
|
125 |
figure amp-img{ max-width:100%; }
|
@@ -252,7 +257,7 @@ table { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap
|
|
252 |
table a:link { color: #666; font-weight: bold; text-decoration: none; }
|
253 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
254 |
table a:active, table a:hover { color: #bd5a35; text-decoration: underline; }
|
255 |
-
table { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background: #eee; margin: 0px; width:
|
256 |
table th { padding: 21px 25px 22px 25px; border-top: 1px solid #fafafa; border-bottom: 1px solid #e0e0e0; background: #ededed; background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#ebebeb)); background: -moz-linear-gradient(top, #ededed, #ebebeb); }
|
257 |
table th:first-child { text-align: left; padding-left: 20px; }
|
258 |
table tr:first-child th:first-child { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
@@ -267,11 +272,12 @@ table tr:last-child td:last-child { -moz-border-radius-bottomright: 3px; -webkit
|
|
267 |
table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f0f0f0)); background: -moz-linear-gradient(top, #f2f2f2, #f0f0f0); }
|
268 |
|
269 |
/* Responsive */
|
|
|
270 |
@media screen and (min-width:1034px){
|
271 |
.single-post .amp-wp-article-content amp-img{ margin:0 -17px 17px -17px }
|
272 |
}
|
273 |
@media screen and (max-width: 1033px){
|
274 |
-
.single-post figcaption{ margin: -
|
275 |
}
|
276 |
@media screen and (max-width: 768px){ .amp-wp-meta{ margin:10px 0px 15px 0px } .home-post_image{ width: 40%; } .amp-loop-list .amp-wp-post-content{ width: 58%; } .amp-loop-list .featured_time{line-height:1} .single-post main .amp-wp-content h1{ line-height:1.4; font-size: 30px;} }
|
277 |
@media screen and (max-width: 600px){ .amp-loop-list .amp-wp-tags{display:none} }
|
@@ -281,7 +287,7 @@ table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, le
|
|
281 |
@media screen and (max-width: 375px){ .single-post main .amp-wp-content h1{ line-height: 1.3; font-size: 24px;} .home-post_image{ height: 79px; } .amp-carousel-slide h1{ font-size: 28px; line-height: 32px; } #pagination .next a, #pagination .prev a{ color: #666; font-size: 14px; padding: 15px 0px; margin-top: -5px; } .related_posts h3, .comments_list h3{ margin-top:15px; } #pagination .next{ margin-bottom:15px; } .related_posts .related_link a{ font-size: 15px; line-height: 1.6; } }
|
282 |
@media screen and (max-width: 340px){ .single-post main .amp-wp-content h1{ line-height: 1.3; font-size: 22px;} .amp-loop-list{ padding: 20px 15px 18px 15px; } h2.amp-wp-title{ line-height: 1.31578947; font-size: 17px; } .related_posts .related_link a{ font-size: 15px; } .the_content .amp-ad-wrapper{ text-align: center; margin-left: -13px; } }
|
283 |
@media screen and (max-width: 320px){ .related_posts .related_link a{ font-size: 13px; } .ampforwp-social-icons amp-social-share{ margin-right: 1px; } }
|
284 |
-
|
285 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
286 |
/* RTL Start */
|
287 |
|
21 |
.alignleft{ margin-right: 12px; margin-bottom:5px; float: left; }
|
22 |
.alignright{ float:right; margin-left: 12px; margin-bottom:5px; }
|
23 |
.aligncenter{ text-align:center; margin: 0 auto }
|
24 |
+
#statcounter{width: 1px;height:1px;}
|
25 |
|
26 |
/* Template Styles */
|
27 |
.amp-wp-content, .amp-wp-title-bar div {
|
66 |
/* Sticky Social bar in Single */
|
67 |
|
68 |
.sticky_social{ width: 100%; bottom: 0; display: block; left: 0; box-shadow: 0px 4px 7px #000; background: #fff; padding: 7px 0px 0px 0px; position: fixed; margin: 0; z-index: 10; text-align: center; }
|
69 |
+
.custom-amp-socialsharing-icon{ width: 50px; height: 28px; display: inline-block; background: #5cbe4a;position: relative; top: -8px; padding-top: 0px; }
|
70 |
+
.custom-amp-socialsharing-icon amp-img{ top: 4px; }
|
71 |
+
.custom-amp-socialsharing-line{background:#00b900}
|
72 |
+
.sticky_social .whatsapp-share-icon{ padding: 4px 0px 14px 0px; height: 28px; top: -4px; position: relative; }
|
73 |
+
.sticky_social .line-share-icon{ padding: 4px 0px 14px 0px; height: 28px; top: -4px; position: relative; }
|
74 |
/* Header */
|
75 |
#header{ background: #fff; text-align: center; height:50px; box-shadow:0 0 32px rgba(0,0,0,.15); }
|
76 |
header{ padding-bottom:50px; }
|
121 |
.single-post .amp_author_area amp-img{ margin: 0; float: left; margin-right: 12px; border-radius: 60px; }
|
122 |
.amp-wp-article-tags .ampforwp-tax-tag, .amp-wp-article-tags .ampforwp-tax-tag a{ font-size: 12px; color: #555; font-family: sans-serif; margin: 20px 0 0 0; }
|
123 |
.amp-wp-article-tags span{ background: #eee; margin-right: 10px; padding: 5px 12px 5px 12px; border-radius: 3px; }
|
124 |
+
.ampforwp-social-icons{ margin-bottom: 70px; margin-top: 25px; height: 40px; }
|
125 |
.ampforwp-social-icons amp-social-share{ border-radius:60px; background-size:22px; margin-right:6px; }
|
126 |
+
.custom-amp-socialsharing-icon-rounded{margin-right:6px;padding: 11px 12px 9px 12px; top: -13px; position: relative; line-height: 1; background: #5cbe4a; display: inline-block; height: inherit; border-radius: 60px; }
|
127 |
+
.custom-amp-socialsharing-line{background:#00b900}
|
128 |
.amp-wp-tax-tag { list-style: none; display: inline-block; }
|
129 |
figure{ margin: 0 0 20px 0; }
|
130 |
figure amp-img{ max-width:100%; }
|
257 |
table a:link { color: #666; font-weight: bold; text-decoration: none; }
|
258 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
259 |
table a:active, table a:hover { color: #bd5a35; text-decoration: underline; }
|
260 |
+
table { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background: #eee; margin: 0px; width: 100%; }
|
261 |
table th { padding: 21px 25px 22px 25px; border-top: 1px solid #fafafa; border-bottom: 1px solid #e0e0e0; background: #ededed; background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#ebebeb)); background: -moz-linear-gradient(top, #ededed, #ebebeb); }
|
262 |
table th:first-child { text-align: left; padding-left: 20px; }
|
263 |
table tr:first-child th:first-child { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
272 |
table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f0f0f0)); background: -moz-linear-gradient(top, #f2f2f2, #f0f0f0); }
|
273 |
|
274 |
/* Responsive */
|
275 |
+
@media screen and (min-width: 650px) { table {display: inline-table;} }
|
276 |
@media screen and (min-width:1034px){
|
277 |
.single-post .amp-wp-article-content amp-img{ margin:0 -17px 17px -17px }
|
278 |
}
|
279 |
@media screen and (max-width: 1033px){
|
280 |
+
.single-post figcaption{ margin: -7px 0px 17px 0px }
|
281 |
}
|
282 |
@media screen and (max-width: 768px){ .amp-wp-meta{ margin:10px 0px 15px 0px } .home-post_image{ width: 40%; } .amp-loop-list .amp-wp-post-content{ width: 58%; } .amp-loop-list .featured_time{line-height:1} .single-post main .amp-wp-content h1{ line-height:1.4; font-size: 30px;} }
|
283 |
@media screen and (max-width: 600px){ .amp-loop-list .amp-wp-tags{display:none} }
|
287 |
@media screen and (max-width: 375px){ .single-post main .amp-wp-content h1{ line-height: 1.3; font-size: 24px;} .home-post_image{ height: 79px; } .amp-carousel-slide h1{ font-size: 28px; line-height: 32px; } #pagination .next a, #pagination .prev a{ color: #666; font-size: 14px; padding: 15px 0px; margin-top: -5px; } .related_posts h3, .comments_list h3{ margin-top:15px; } #pagination .next{ margin-bottom:15px; } .related_posts .related_link a{ font-size: 15px; line-height: 1.6; } }
|
288 |
@media screen and (max-width: 340px){ .single-post main .amp-wp-content h1{ line-height: 1.3; font-size: 22px;} .amp-loop-list{ padding: 20px 15px 18px 15px; } h2.amp-wp-title{ line-height: 1.31578947; font-size: 17px; } .related_posts .related_link a{ font-size: 15px; } .the_content .amp-ad-wrapper{ text-align: center; margin-left: -13px; } }
|
289 |
@media screen and (max-width: 320px){ .related_posts .related_link a{ font-size: 13px; } .ampforwp-social-icons amp-social-share{ margin-right: 1px; } }
|
290 |
+
.entry-content amp-anim{display:table-cell;}
|
291 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
292 |
/* RTL Start */
|
293 |
|
templates/features.php
CHANGED
@@ -222,21 +222,35 @@ define('AMPFORWP_COMMENTS_PER_PAGE', $redux_builder_amp['ampforwp-number-of-comm
|
|
222 |
// Custom Homepage and Archive file
|
223 |
|
224 |
global $redux_builder_amp;
|
|
|
|
|
|
|
|
|
|
|
225 |
// Homepage and FrontPage
|
226 |
-
if(
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
|
239 |
-
}
|
240 |
|
241 |
// Archive Pages
|
242 |
if ( is_archive() && $redux_builder_amp['ampforwp-archive-support'] ) {
|
@@ -518,7 +532,7 @@ define('AMPFORWP_COMMENTS_PER_PAGE', $redux_builder_amp['ampforwp-number-of-comm
|
|
518 |
|
519 |
// Below Content Single
|
520 |
add_action('ampforwp_after_post_content','ampforwp_after_post_content_advert');
|
521 |
-
// Hook updated
|
522 |
// add_action('ampforwp_inside_post_content_after','ampforwp_after_post_content_advert');
|
523 |
function ampforwp_after_post_content_advert() {
|
524 |
global $redux_builder_amp;
|
@@ -721,6 +735,40 @@ define('AMPFORWP_COMMENTS_PER_PAGE', $redux_builder_amp['ampforwp-number-of-comm
|
|
721 |
<?php
|
722 |
}
|
723 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
724 |
|
725 |
}//analytics function ends here
|
726 |
|
@@ -774,6 +822,7 @@ define('AMPFORWP_COMMENTS_PER_PAGE', $redux_builder_amp['ampforwp-number-of-comm
|
|
774 |
/// simpy add more elements to simply strip tag but not the content as so
|
775 |
/// Array ("p","font");
|
776 |
$tags_to_strip = Array("thrive_headline","type","date","time","place","state","city" );
|
|
|
777 |
foreach ($tags_to_strip as $tag)
|
778 |
{
|
779 |
$content = preg_replace("/<\\/?" . $tag . "(.|\\s)*?>/",'',$content);
|
@@ -1092,6 +1141,7 @@ function ampforwp_remove_print_scripts() {
|
|
1092 |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
|
1093 |
remove_action( 'wp_print_styles', 'print_emoji_styles' );
|
1094 |
|
|
|
1095 |
}
|
1096 |
}
|
1097 |
add_action( 'template_redirect', 'ampforwp_remove_print_scripts' );
|
@@ -1137,7 +1187,7 @@ add_action( 'amp_post_template_head', 'ampforwp_amp_remove_actions', 9 );
|
|
1137 |
// remove_action( 'amp_post_template_head', 'amp_post_template_add_fonts' );
|
1138 |
// }, 9 );
|
1139 |
|
1140 |
-
// 21. Remove Schema data from All In One Schema.org Rich Snippets Plugin
|
1141 |
add_action( 'pre_amp_render_post', 'ampforwp_remove_schema_data' );
|
1142 |
function ampforwp_remove_schema_data() {
|
1143 |
remove_filter('the_content','display_rich_snippet');
|
@@ -1151,6 +1201,9 @@ function ampforwp_remove_schema_data() {
|
|
1151 |
remove_filter( 'the_content', 'tve_editor_content', 10 );
|
1152 |
}
|
1153 |
|
|
|
|
|
|
|
1154 |
}
|
1155 |
|
1156 |
// 22. Removing author links from comments Issue #180
|
@@ -1174,41 +1227,51 @@ remove_action( 'amp_post_template_head', 'quads_amp_add_amp_ad_js');
|
|
1174 |
add_action('amp_post_template_footer','ampforwp_sticky_social_icons');
|
1175 |
function ampforwp_sticky_social_icons(){
|
1176 |
global $redux_builder_amp;
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1211 |
<?php }
|
|
|
1212 |
}
|
1213 |
// if ( $ampforwp_social_icons_enabled == true ) {
|
1214 |
//
|
@@ -1367,6 +1430,33 @@ function ampforwp_replace_title_tags() {
|
|
1367 |
}
|
1368 |
}
|
1369 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1370 |
// 27. Clean the Defer issue
|
1371 |
// TODO : Get back to this issue. #407
|
1372 |
function ampforwp_the_content_filter_full( $content_buffer ) {
|
@@ -1383,6 +1473,7 @@ function ampforwp_replace_title_tags() {
|
|
1383 |
$content_buffer = preg_replace("/<\\/?g(.|\\s)*?>/",'',$content_buffer);
|
1384 |
$content_buffer = preg_replace('/(<[^>]+) spellcheck="false"/', '$1', $content_buffer);
|
1385 |
$content_buffer = preg_replace('/(<[^>]+) spellcheck="true"/', '$1', $content_buffer);
|
|
|
1386 |
//$content_buffer = preg_replace('/<style type=(.*?)>|\[.*?\]\s\{(.*)\}|<\/style>(?!(<\/noscript>)|(\n<\/head>)|(<noscript>))/','',$content_buffer);
|
1387 |
|
1388 |
}
|
@@ -1487,6 +1578,13 @@ function ampforwp_remove_bj_load() {
|
|
1487 |
}
|
1488 |
add_action( 'bjll/compat', 'ampforwp_remove_bj_load' );
|
1489 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1490 |
//33. Google tag manager support added
|
1491 |
// Remove any old scripts that have been loaded by other Plugins
|
1492 |
add_action('init', 'amp_gtm_remove_analytics_code');
|
@@ -1852,7 +1950,8 @@ if( !function_exists( 'is_socialshare_or_socialsticky_enabled_in_ampforwp' ) ) {
|
|
1852 |
$redux_builder_amp['enable-single-email-share'] ||
|
1853 |
$redux_builder_amp['enable-single-pinterest-share'] ||
|
1854 |
$redux_builder_amp['enable-single-linkedin-share'] ||
|
1855 |
-
$redux_builder_amp['enable-single-whatsapp-share']
|
|
|
1856 |
return true;
|
1857 |
}
|
1858 |
return false;
|
@@ -2179,7 +2278,7 @@ function ampforwp_meta_description() {
|
|
2179 |
$desc= preg_replace('/\[(.*)?\]/','',$desc);
|
2180 |
|
2181 |
if( $desc ) {
|
2182 |
-
echo '<meta name="description" content="'. $desc .'"/>';
|
2183 |
}
|
2184 |
}
|
2185 |
|
@@ -2207,11 +2306,11 @@ function ampforwp_translation( $redux_style_translation , $pot_style_translation
|
|
2207 |
|
2208 |
// 57. Adding Updated date at in the Content
|
2209 |
add_action('ampforwp_after_post_content','ampforwp_add_modified_date');
|
2210 |
-
function ampforwp_add_modified_date($post_id){
|
2211 |
-
global $redux_builder_amp;
|
2212 |
if ( is_single() && $redux_builder_amp['post-modified-date'] ) { ?>
|
2213 |
<div class="ampforwp-last-modified-date">
|
2214 |
-
<p> <?php
|
2215 |
$post_object = new AMP_Post_Template($post_id);
|
2216 |
if( $post_object->get( 'post_modified_timestamp' ) !== $post_object->get( 'post_publish_timestamp' ) ){
|
2217 |
echo esc_html(
|
@@ -2222,6 +2321,6 @@ function ampforwp_add_modified_date($post_id){
|
|
2222 |
);
|
2223 |
} ?>
|
2224 |
</p>
|
2225 |
-
</div> <?php
|
2226 |
}
|
2227 |
-
}
|
222 |
// Custom Homepage and Archive file
|
223 |
|
224 |
global $redux_builder_amp;
|
225 |
+
$slug = array();
|
226 |
+
$current_url_in_pieces = array();
|
227 |
+
|
228 |
+
$ampforwp_custom_post_page = ampforwp_custom_post_page();
|
229 |
+
|
230 |
// Homepage and FrontPage
|
231 |
+
if ( is_home() ) {
|
232 |
+
if ( 'single' === $type ) {
|
233 |
+
|
234 |
+
$file = AMPFORWP_PLUGIN_DIR . '/templates/design-manager/design-'. ampforwp_design_selector() .'/index.php';
|
235 |
+
|
236 |
+
if ($redux_builder_amp['amp-frontpage-select-option'] == 1) {
|
237 |
+
|
238 |
+
$file = AMPFORWP_PLUGIN_DIR . '/templates/design-manager/design-'. ampforwp_design_selector() .'/frontpage.php';
|
239 |
+
}
|
240 |
+
|
241 |
+
|
242 |
+
if ( $ampforwp_custom_post_page == "page" && ampforwp_name_blog_page() ) {
|
243 |
+
$current_url = home_url( $GLOBALS['wp']->request );
|
244 |
+
$current_url_in_pieces = explode( '/', $current_url );
|
245 |
+
|
246 |
+
if( in_array( ampforwp_name_blog_page() , $current_url_in_pieces ) ) {
|
247 |
+
$file = AMPFORWP_PLUGIN_DIR . '/templates/design-manager/design-'. ampforwp_design_selector() .'/index.php';
|
248 |
+
}
|
249 |
+
}
|
250 |
+
}
|
251 |
+
}
|
252 |
+
|
253 |
|
|
|
254 |
|
255 |
// Archive Pages
|
256 |
if ( is_archive() && $redux_builder_amp['ampforwp-archive-support'] ) {
|
532 |
|
533 |
// Below Content Single
|
534 |
add_action('ampforwp_after_post_content','ampforwp_after_post_content_advert');
|
535 |
+
// Hook updated
|
536 |
// add_action('ampforwp_inside_post_content_after','ampforwp_after_post_content_advert');
|
537 |
function ampforwp_after_post_content_advert() {
|
538 |
global $redux_builder_amp;
|
735 |
<?php
|
736 |
}
|
737 |
|
738 |
+
// 10.5 Analytics Support added for comscore
|
739 |
+
if ( $redux_builder_amp['amp-analytics-select-option']=='5' ) { ?>
|
740 |
+
<amp-analytics type="comscore">
|
741 |
+
<script type="application/json">
|
742 |
+
{
|
743 |
+
"vars": {
|
744 |
+
"c1": "<?php echo $redux_builder_amp['amp-comscore-analytics-code-c1']; ?>",
|
745 |
+
"c2": "<?php echo $redux_builder_amp['amp-comscore-analytics-code-c2']; ?>"
|
746 |
+
}
|
747 |
+
}
|
748 |
+
</script>
|
749 |
+
</amp-analytics>
|
750 |
+
<?php
|
751 |
+
}
|
752 |
+
|
753 |
+
|
754 |
+
// 10.6 Analytics Support added for Effective Measure
|
755 |
+
if( $redux_builder_amp['amp-analytics-select-option']=='6' ) { ?>
|
756 |
+
<!-- BEGIN EFFECTIVE MEASURE CODE -->
|
757 |
+
<amp-pixel src="<?php global $redux_builder_amp; echo $redux_builder_amp['eam-feild']; ?>" />
|
758 |
+
<!--END EFFECTIVE MEASURE CODE -->
|
759 |
+
<?php }
|
760 |
+
|
761 |
+
// 10.7 Analytics Support added for StatCounter
|
762 |
+
if( $redux_builder_amp['amp-analytics-select-option']=='7' ) { ?>
|
763 |
+
<!-- BEGIN StatCounter CODE -->
|
764 |
+
<div id="statcounter">
|
765 |
+
<amp-pixel src="<?php global $redux_builder_amp; echo $redux_builder_amp['sc-feild']; ?>" >
|
766 |
+
</amp-pixel>
|
767 |
+
</div>
|
768 |
+
<!--END StatCounter CODE -->
|
769 |
+
<?php }
|
770 |
+
|
771 |
+
|
772 |
|
773 |
}//analytics function ends here
|
774 |
|
822 |
/// simpy add more elements to simply strip tag but not the content as so
|
823 |
/// Array ("p","font");
|
824 |
$tags_to_strip = Array("thrive_headline","type","date","time","place","state","city" );
|
825 |
+
$tags_to_strip = apply_filters('ampforwp_strip_bad_tags', $tags_to_strip);
|
826 |
foreach ($tags_to_strip as $tag)
|
827 |
{
|
828 |
$content = preg_replace("/<\\/?" . $tag . "(.|\\s)*?>/",'',$content);
|
1141 |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
|
1142 |
remove_action( 'wp_print_styles', 'print_emoji_styles' );
|
1143 |
|
1144 |
+
|
1145 |
}
|
1146 |
}
|
1147 |
add_action( 'template_redirect', 'ampforwp_remove_print_scripts' );
|
1187 |
// remove_action( 'amp_post_template_head', 'amp_post_template_add_fonts' );
|
1188 |
// }, 9 );
|
1189 |
|
1190 |
+
// 21. Remove Schema data from All In One Schema.org Rich Snippets Plugin
|
1191 |
add_action( 'pre_amp_render_post', 'ampforwp_remove_schema_data' );
|
1192 |
function ampforwp_remove_schema_data() {
|
1193 |
remove_filter('the_content','display_rich_snippet');
|
1201 |
remove_filter( 'the_content', 'tve_editor_content', 10 );
|
1202 |
}
|
1203 |
|
1204 |
+
// Removed GTranslate Flags from AMP pages #819
|
1205 |
+
remove_filter('wp_nav_menu_items', 'gtranslate_menu_item', 10, 2);
|
1206 |
+
|
1207 |
}
|
1208 |
|
1209 |
// 22. Removing author links from comments Issue #180
|
1227 |
add_action('amp_post_template_footer','ampforwp_sticky_social_icons');
|
1228 |
function ampforwp_sticky_social_icons(){
|
1229 |
global $redux_builder_amp;
|
1230 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
1231 |
+
if( !is_plugin_active( 'amp-cta/amp-cta.php' ) ) {
|
1232 |
+
if($redux_builder_amp['enable-single-social-icons'] == true && is_single() ) { ?>
|
1233 |
+
<div class="sticky_social">
|
1234 |
+
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
1235 |
+
<amp-social-share type="facebook" data-param-app_id="<?php echo $redux_builder_amp['amp-facebook-app-id']; ?>" width="50" height="28"></amp-social-share>
|
1236 |
+
<?php } ?>
|
1237 |
+
<?php if($redux_builder_amp['enable-single-twitter-share'] == true) {
|
1238 |
+
$data_param_data = $redux_builder_amp['enable-single-twitter-share-handle'];?>
|
1239 |
+
<amp-social-share type="twitter"
|
1240 |
+
width="50"
|
1241 |
+
height="28"
|
1242 |
+
data-param-url=""
|
1243 |
+
data-param-text="TITLE <?php echo wp_get_shortlink().' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.$data_param_data ?>"
|
1244 |
+
></amp-social-share>
|
1245 |
+
<?php } ?>
|
1246 |
+
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
1247 |
+
<amp-social-share type="gplus" width="50" height="28"></amp-social-share>
|
1248 |
+
<?php } ?>
|
1249 |
+
<?php if($redux_builder_amp['enable-single-email-share'] == true) { ?>
|
1250 |
+
<amp-social-share type="email" width="50" height="28"></amp-social-share>
|
1251 |
+
<?php } ?>
|
1252 |
+
<?php if($redux_builder_amp['enable-single-pinterest-share'] == true) { ?>
|
1253 |
+
<amp-social-share type="pinterest" width="50" height="28"></amp-social-share>
|
1254 |
+
<?php } ?>
|
1255 |
+
<?php if($redux_builder_amp['enable-single-linkedin-share'] == true) { ?>
|
1256 |
+
<amp-social-share type="linkedin" width="50" height="28"></amp-social-share>
|
1257 |
+
<?php } ?>
|
1258 |
+
<?php if($redux_builder_amp['enable-single-whatsapp-share'] == true) { ?>
|
1259 |
+
<a href="whatsapp://send?text=<?php echo get_the_permalink();?>">
|
1260 |
+
<div class="custom-amp-socialsharing-icon">
|
1261 |
+
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ii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C02LjAyNS03LjQ0MWMtMC42MzEtMS4wNzUtMC4wNjYtMS42NTYsMC40NzUtMi4xOTFjMC40ODgtMC40ODIsMS4wODQtMS4yNTUsMS42MjUtMS44ODIgICBjMC41NDMtMC42MjgsMC43MjMtMS4wNzUsMS4wODItMS43OTNjMC4zNjMtMC43MTcsMC4xODItMS4zNDQtMC4wOS0xLjg4M2MtMC4yNy0wLjUzNy0yLjQzOC01LjgyNS0zLjM0LTcuOTc3ICAgYy0wLjkwMi0yLjE1LTEuODAzLTEuNzkyLTIuNDM2LTEuNzkyYy0wLjYzMSwwLTEuMzU0LTAuMDktMi4wNzYtMC4wOWMtMC43MjIsMC0xLjg5NiwwLjI2OS0yLjg4OSwxLjM0NCAgIGMtMC45OTIsMS4wNzYtMy43ODksMy42NzYtMy43ODksOC45NjNjMCw1LjI4OCwzLjg3OSwxMC4zOTcsNC40MjIsMTEuMTEzYzAuNTQxLDAuNzE2LDcuNDksMTEuOTIsMTguNSwxNi4yMjMgICBDNTguMiw2NS43NzEsNTguMiw2NC4zMzYsNjAuMTg2LDY0LjE1NmMxLjk4NC0wLjE3OSw2LjQwNi0yLjU5OSw3LjMxMi01LjEwN0M2OC4zOTgsNTYuNTM3LDY4LjM5OCw1NC4zODYsNjguMTI5LDUzLjkzOHoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" />
|
1262 |
+
</div>
|
1263 |
+
</a>
|
1264 |
+
<?php } ?>
|
1265 |
+
<?php if($redux_builder_amp['enable-single-line-share'] == true) { ?>
|
1266 |
+
<a href="http://line.me/R/msg/text/?<?php echo get_the_permalink(); ?>">
|
1267 |
+
<div class="custom-amp-socialsharing-icon custom-amp-socialsharing-line">
|
1268 |
+
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI5Ni41MjggMjk2LjUyOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjk2LjUyOCAyOTYuNTI4OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCI+CjxnPgoJPHBhdGggZD0iTTI5NS44MzgsMTE1LjM0N2wwLjAwMy0wLjAwMWwtMC4wOTItMC43NmMtMC4wMDEtMC4wMTMtMC4wMDItMC4wMjMtMC4wMDQtMC4wMzZjLTAuMDAxLTAuMDExLTAuMDAyLTAuMDIxLTAuMDA0LTAuMDMyICAgbC0wLjM0NC0yLjg1OGMtMC4wNjktMC41NzQtMC4xNDgtMS4yMjgtMC4yMzgtMS45NzRsLTAuMDcyLTAuNTk0bC0wLjE0NywwLjAxOGMtMy42MTctMjAuNTcxLTEzLjU1My00MC4wOTMt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xsPSIjRkZGRkZGIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==" width="50" height="20" />
|
1269 |
+
</div>
|
1270 |
+
</a>
|
1271 |
+
<?php } ?>
|
1272 |
+
</div>
|
1273 |
<?php }
|
1274 |
+
}
|
1275 |
}
|
1276 |
// if ( $ampforwp_social_icons_enabled == true ) {
|
1277 |
//
|
1430 |
}
|
1431 |
}
|
1432 |
|
1433 |
+
|
1434 |
+
add_action('amp_post_template_include_single','ampforwp_update_title_for_frontpage');
|
1435 |
+
function ampforwp_update_title_for_frontpage() {
|
1436 |
+
$check_custom_front_page = get_option('show_on_front');
|
1437 |
+
|
1438 |
+
if ( $check_custom_front_page == 'page' && is_home() ) {
|
1439 |
+
|
1440 |
+
remove_action( 'amp_post_template_head', 'amp_post_template_add_title' );
|
1441 |
+
add_action('amp_post_template_head','ampforwp_frontpage_title_markup');
|
1442 |
+
|
1443 |
+
add_filter('aioseop_title','ampforwp_aioseop_front_page_title');
|
1444 |
+
}
|
1445 |
+
}
|
1446 |
+
// Custom Frontpage title for ALL in one SEO.
|
1447 |
+
function ampforwp_aioseop_front_page_title() {
|
1448 |
+
$sep = ' | ';
|
1449 |
+
return $site_title = get_bloginfo( 'name' ) . $sep . get_option( 'blogdescription' );
|
1450 |
+
}
|
1451 |
+
|
1452 |
+
function ampforwp_frontpage_title_markup () {
|
1453 |
+
$front_page_title = ampforwp_add_custom_title_tag();
|
1454 |
+
$front_page_title = apply_filters('ampforwp_frontpage_title_filter', $front_page_title);
|
1455 |
+
?>
|
1456 |
+
|
1457 |
+
<title> <?php echo esc_html( $front_page_title ); ?> </title> <?php
|
1458 |
+
}
|
1459 |
+
|
1460 |
// 27. Clean the Defer issue
|
1461 |
// TODO : Get back to this issue. #407
|
1462 |
function ampforwp_the_content_filter_full( $content_buffer ) {
|
1473 |
$content_buffer = preg_replace("/<\\/?g(.|\\s)*?>/",'',$content_buffer);
|
1474 |
$content_buffer = preg_replace('/(<[^>]+) spellcheck="false"/', '$1', $content_buffer);
|
1475 |
$content_buffer = preg_replace('/(<[^>]+) spellcheck="true"/', '$1', $content_buffer);
|
1476 |
+
$content_buffer = preg_replace("/about:blank/", "#", $content_buffer);
|
1477 |
//$content_buffer = preg_replace('/<style type=(.*?)>|\[.*?\]\s\{(.*)\}|<\/style>(?!(<\/noscript>)|(\n<\/head>)|(<noscript>))/','',$content_buffer);
|
1478 |
|
1479 |
}
|
1578 |
}
|
1579 |
add_action( 'bjll/compat', 'ampforwp_remove_bj_load' );
|
1580 |
|
1581 |
+
//Disable Crazy Lazy for AMP #751
|
1582 |
+
function ampforwp_remove_crazy_lazy_support(){
|
1583 |
+
if( ampforwp_is_amp_endpoint() ){
|
1584 |
+
remove_action( 'wp', array( 'CrazyLazy', 'instance' ) );
|
1585 |
+
}
|
1586 |
+
}
|
1587 |
+
add_action('wp','ampforwp_remove_crazy_lazy_support',9);
|
1588 |
//33. Google tag manager support added
|
1589 |
// Remove any old scripts that have been loaded by other Plugins
|
1590 |
add_action('init', 'amp_gtm_remove_analytics_code');
|
1950 |
$redux_builder_amp['enable-single-email-share'] ||
|
1951 |
$redux_builder_amp['enable-single-pinterest-share'] ||
|
1952 |
$redux_builder_amp['enable-single-linkedin-share'] ||
|
1953 |
+
$redux_builder_amp['enable-single-whatsapp-share'] ||
|
1954 |
+
$redux_builder_amp['enable-single-line-share'] ) {
|
1955 |
return true;
|
1956 |
}
|
1957 |
return false;
|
2278 |
$desc= preg_replace('/\[(.*)?\]/','',$desc);
|
2279 |
|
2280 |
if( $desc ) {
|
2281 |
+
echo '<meta name="description" content="'. esc_html( convert_chars( wptexturize ( $desc ) ) ) .'"/>';
|
2282 |
}
|
2283 |
}
|
2284 |
|
2306 |
|
2307 |
// 57. Adding Updated date at in the Content
|
2308 |
add_action('ampforwp_after_post_content','ampforwp_add_modified_date');
|
2309 |
+
function ampforwp_add_modified_date($post_id){
|
2310 |
+
global $redux_builder_amp;
|
2311 |
if ( is_single() && $redux_builder_amp['post-modified-date'] ) { ?>
|
2312 |
<div class="ampforwp-last-modified-date">
|
2313 |
+
<p> <?php
|
2314 |
$post_object = new AMP_Post_Template($post_id);
|
2315 |
if( $post_object->get( 'post_modified_timestamp' ) !== $post_object->get( 'post_publish_timestamp' ) ){
|
2316 |
echo esc_html(
|
2321 |
);
|
2322 |
} ?>
|
2323 |
</p>
|
2324 |
+
</div> <?php
|
2325 |
}
|
2326 |
+
}
|