Version Description
(10 April 2017) = * View more details at https://ampforwp.com/0-9-47-released-54th-update/ * Meta saving method updated for customAMP content editor checkbox was causing some conflict. * Wrong Yoast title and structured data in Custom Frontpage fixed * CSS minification all 3 designs * Polylang flags in menu was causing validation issue, is now resolved * WPML flags in menu was causing validation issue, is now resolved * Standardized function created for content sanitization. * Archive description now displays AMP compatible markup * Comments markup sanitized for AMP * Design 3 images not aligned properly, fixed * Images are aligned to center in Design 1. * carousel ending with //amp instead of /amp fixed #753 * Title of the Post along with Post link when shared in twitter #683 * Ads were cutting in half in RTL, fixed * Add / at the end of AMP links with in the AMP pages (Internal links) #668 * Rendering the wrong URLs in front page if paged #742 * Option to turn off AMP on all pages, so people can turn on only for specific pages #746 * Need Meta Description on amp pages #741 * Woocommerce Loop shortcode updated * Call Now Button added in header #563 * Post images are not centered in Design 3 #695 * UX of GTM settings done, since users were getting confused #700 * Front page amphtml fixed for paginated pages
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.9.47 |
Comparing to | |
See all releases |
Code changes from version 0.9.45.6 to 0.9.47
- accelerated-moblie-pages.php +3 -3
- includes/options/admin-config.php +52 -8
- readme.txt +26 -1
- templates/custom-amp-content.php +5 -25
- templates/design-manager/design-1/archive.php +4 -3
- templates/design-manager/design-1/elements/comments.php +3 -5
- templates/design-manager/design-1/elements/content.php +2 -2
- templates/design-manager/design-1/elements/meta-taxonomy.php +2 -2
- templates/design-manager/design-1/elements/related-posts.php +2 -2
- templates/design-manager/design-1/elements/social-icons.php +2 -2
- templates/design-manager/design-1/frontpage.php +15 -6
- templates/design-manager/design-1/header-bar.php +8 -4
- templates/design-manager/design-1/index.php +2 -2
- templates/design-manager/design-1/search.php +2 -2
- templates/design-manager/design-1/style.php +31 -126
- templates/design-manager/design-2/archive.php +3 -2
- templates/design-manager/design-2/elements/comments.php +3 -5
- templates/design-manager/design-2/elements/content.php +2 -2
- templates/design-manager/design-2/elements/meta-info.php +1 -1
- templates/design-manager/design-2/elements/meta-taxonomy.php +1 -1
- templates/design-manager/design-2/elements/related-posts.php +2 -2
- templates/design-manager/design-2/elements/social-icons.php +2 -2
- templates/design-manager/design-2/frontpage.php +15 -6
- templates/design-manager/design-2/header-bar.php +7 -4
- templates/design-manager/design-2/index.php +1 -1
- templates/design-manager/design-2/search.php +1 -1
- templates/design-manager/design-2/style.php +179 -839
- templates/design-manager/design-3/archive.php +4 -3
- templates/design-manager/design-3/elements/comments.php +3 -5
- templates/design-manager/design-3/elements/content.php +3 -3
- templates/design-manager/design-3/elements/meta-info.php +1 -1
- templates/design-manager/design-3/elements/meta-taxonomy.php +1 -1
- templates/design-manager/design-3/elements/related-posts.php +1 -1
- templates/design-manager/design-3/elements/social-icons.php +5 -2
- templates/design-manager/design-3/footer.php +6 -6
- templates/design-manager/design-3/frontpage.php +13 -5
- templates/design-manager/design-3/functions.php +19 -29
- templates/design-manager/design-3/header-bar.php +3 -1
- templates/design-manager/design-3/index.php +3 -3
- templates/design-manager/design-3/search.php +2 -2
- templates/design-manager/design-3/style.php +254 -1350
- templates/features.php +293 -122
- templates/widget.php +30 -4
@@ -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/5
|
@@ -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 |
|
@@ -285,4 +285,4 @@ add_action('init','ampforwp_plugin_init',9);
|
|
285 |
* customized output widget
|
286 |
* to be used be used in before or after Loop
|
287 |
*/
|
288 |
-
require AMPFORWP_PLUGIN_DIR.'/templates/widget.php';
|
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.47
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/5
|
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.47');
|
20 |
// any changes to AMP_QUERY_VAR should be refelected here
|
21 |
define('AMPFORWP_AMP_QUERY_VAR', apply_filters( 'amp_query_var', 'amp' ) );
|
22 |
|
285 |
* customized output widget
|
286 |
* to be used be used in before or after Loop
|
287 |
*/
|
288 |
+
require AMPFORWP_PLUGIN_DIR.'/templates/widget.php';
|
@@ -202,6 +202,20 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
202 |
'default' => 1,
|
203 |
'desc' => __( 'Re-Save permalink if you make changes in this option, please have a look <a href="https://ampforwp.com/flush-rewrite-urls/">here</a> on how to do it', 'redux-framework-demo' ),
|
204 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
|
206 |
// array(
|
207 |
// 'id' => 'amp-ad-places',
|
@@ -427,9 +441,10 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
427 |
array(
|
428 |
'id' =>'amp-gtm-id',
|
429 |
'type' => 'text',
|
430 |
-
'title' => __('Tag Manager ID'),
|
431 |
'default' => '',
|
432 |
-
'
|
|
|
433 |
'required' => array(
|
434 |
array('amp-use-gtm-option', '=' , '1')
|
435 |
),
|
@@ -439,7 +454,8 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
439 |
'type' => 'text',
|
440 |
'title' => __('Analytics Type'),
|
441 |
'default' => '',
|
442 |
-
'
|
|
|
443 |
'required' => array(
|
444 |
array('amp-use-gtm-option', '=' , '1')
|
445 |
),
|
@@ -449,7 +465,8 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
449 |
'type' => 'text',
|
450 |
'title' => __('Analytics ID'),
|
451 |
'default' => '',
|
452 |
-
'
|
|
|
453 |
'required' => array(
|
454 |
array('amp-use-gtm-option', '=' , '1')),
|
455 |
),
|
@@ -606,7 +623,34 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
606 |
'desc' => __('HTTPS is required for search to work on AMP pages.', 'redux-framework-demo' ),
|
607 |
'default' => '0'
|
608 |
),
|
609 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
610 |
array(
|
611 |
'id' => 'amp-design-3-credit-link',
|
612 |
'type' => 'switch',
|
@@ -669,11 +713,11 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
669 |
'default' => '1'
|
670 |
),
|
671 |
array(
|
672 |
-
'id' => 'ampforwp-seo-yoast-
|
673 |
'type' => 'switch',
|
674 |
-
'subtitle' => __('Adds Yoast Custom description to ld+json for AMP page', 'redux-framework-demo'),
|
675 |
'title' => __( 'Yoast Custom Description for AMP page', 'redux-framework-demo' ),
|
676 |
-
'default' =>
|
677 |
),
|
678 |
|
679 |
array(
|
202 |
'default' => 1,
|
203 |
'desc' => __( 'Re-Save permalink if you make changes in this option, please have a look <a href="https://ampforwp.com/flush-rewrite-urls/">here</a> on how to do it', 'redux-framework-demo' ),
|
204 |
),
|
205 |
+
array(
|
206 |
+
'id' => 'amp-pages-meta-default',
|
207 |
+
'type' => 'select',
|
208 |
+
'title' => __( 'Individual AMP Page (Bulk Edit)', 'redux-framework-demo' ),
|
209 |
+
'subtitle' => __( 'Allows you to Show or Hide AMP from All pages, so it can be changed individually later. This option will change the Default value of AMP metabox in Pages', 'redux-framework-demo' ),
|
210 |
+
'desc' => __( 'NOTE: Changes will overwrite the previous settings.', 'redux-framework-demo' ),
|
211 |
+
'options' => array(
|
212 |
+
'show' => __('Show by Default', 'redux-framework-demo' ),
|
213 |
+
'hide' => __('Hide by default', 'redux-framework-demo' ),
|
214 |
+
),
|
215 |
+
'default' => 'show',
|
216 |
+
'required'=>array('amp-on-off-for-all-pages','=','1'),
|
217 |
+
),
|
218 |
+
|
219 |
|
220 |
// array(
|
221 |
// 'id' => 'amp-ad-places',
|
441 |
array(
|
442 |
'id' =>'amp-gtm-id',
|
443 |
'type' => 'text',
|
444 |
+
'title' => __('Tag Manager ID (Container ID)'),
|
445 |
'default' => '',
|
446 |
+
'desc' => 'Eg: GTM-5XXXXXP',
|
447 |
+
// 'validate' => 'not_empty',
|
448 |
'required' => array(
|
449 |
array('amp-use-gtm-option', '=' , '1')
|
450 |
),
|
454 |
'type' => 'text',
|
455 |
'title' => __('Analytics Type'),
|
456 |
'default' => '',
|
457 |
+
'desc' => 'Eg: googleanalytics',
|
458 |
+
// 'validate' => 'not_empty',
|
459 |
'required' => array(
|
460 |
array('amp-use-gtm-option', '=' , '1')
|
461 |
),
|
465 |
'type' => 'text',
|
466 |
'title' => __('Analytics ID'),
|
467 |
'default' => '',
|
468 |
+
'desc' => 'Eg: UA-XXXXXX-Y',
|
469 |
+
// 'validate' => 'not_empty',
|
470 |
'required' => array(
|
471 |
array('amp-use-gtm-option', '=' , '1')),
|
472 |
),
|
623 |
'desc' => __('HTTPS is required for search to work on AMP pages.', 'redux-framework-demo' ),
|
624 |
'default' => '0'
|
625 |
),
|
626 |
+
// Call Now button
|
627 |
+
array(
|
628 |
+
'id' => 'ampforwp-callnow-button',
|
629 |
+
'type' => 'switch',
|
630 |
+
'title' => __('Call Now Button', 'redux-framework-demo'),
|
631 |
+
'true' => 'true',
|
632 |
+
'false' => 'false',
|
633 |
+
'default' => 0
|
634 |
+
),
|
635 |
+
array(
|
636 |
+
'id' =>'enable-amp-call-numberfield',
|
637 |
+
'type' => 'text',
|
638 |
+
'required' => array('ampforwp-callnow-button', '=' , '1'),
|
639 |
+
'title' => __('Enter Phone Number', 'redux-framework-demo'),
|
640 |
+
'default' => '',
|
641 |
+
),
|
642 |
+
array(
|
643 |
+
'id' => 'amp-opt-color-rgba-colorscheme-call',
|
644 |
+
'type' => 'color_rgba',
|
645 |
+
'title' => 'Call Button Color',
|
646 |
+
'default' => array(
|
647 |
+
'color' => '#0a89c0',
|
648 |
+
),
|
649 |
+
'required' => array(
|
650 |
+
array('ampforwp-callnow-button', '=' , '1')
|
651 |
+
)
|
652 |
+
),
|
653 |
+
|
654 |
array(
|
655 |
'id' => 'amp-design-3-credit-link',
|
656 |
'type' => 'switch',
|
713 |
'default' => '1'
|
714 |
),
|
715 |
array(
|
716 |
+
'id' => 'ampforwp-seo-yoast-description',
|
717 |
'type' => 'switch',
|
718 |
+
'subtitle' => __('Adds Yoast Custom description to ld+json for AMP page and also meta="description"', 'redux-framework-demo'),
|
719 |
'title' => __( 'Yoast Custom Description for AMP page', 'redux-framework-demo' ),
|
720 |
+
'default' => 0
|
721 |
),
|
722 |
|
723 |
array(
|
@@ -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.3
|
7 |
-
Stable tag: 0.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -129,6 +129,31 @@ You can contact me using this url: http://ampforwp.com/contact/
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
= 0.9.45.6 (31 March 2017) =
|
133 |
* Installation Process from welcome page was not working after WP Plugin DIR API change was fixed.
|
134 |
* WP Rocket Minifcation and Concatenation was not working, its fixed now.
|
4 |
Donate link: https://www.paypal.me/Kaludi/5
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.7.3
|
7 |
+
Stable tag: 0.9.47
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
+
= 0.9.47 (10 April 2017) =
|
133 |
+
* View more details at https://ampforwp.com/0-9-47-released-54th-update/
|
134 |
+
* Meta saving method updated for customAMP content editor checkbox was causing some conflict.
|
135 |
+
* Wrong Yoast title and structured data in Custom Frontpage fixed
|
136 |
+
* CSS minification all 3 designs
|
137 |
+
* Polylang flags in menu was causing validation issue, is now resolved
|
138 |
+
* WPML flags in menu was causing validation issue, is now resolved
|
139 |
+
* Standardized function created for content sanitization.
|
140 |
+
* Archive description now displays AMP compatible markup
|
141 |
+
* Comments markup sanitized for AMP
|
142 |
+
* Design 3 images not aligned properly, fixed
|
143 |
+
* Images are aligned to center in Design 1.
|
144 |
+
* carousel ending with //amp instead of /amp – fixed #753
|
145 |
+
* Title of the Post along with Post link when shared in twitter #683
|
146 |
+
* Ads were cutting in half in RTL, fixed
|
147 |
+
* Add / at the end of AMP links with in the AMP pages (Internal links) #668
|
148 |
+
* Rendering the wrong URLs in front page if paged #742
|
149 |
+
* Option to turn off AMP on all pages, so people can turn on only for specific pages #746
|
150 |
+
* Need Meta Description on amp pages #741
|
151 |
+
* Woocommerce Loop shortcode updated
|
152 |
+
* Call Now Button added in header #563
|
153 |
+
* Post images are not centered in Design 3 #695
|
154 |
+
* UX of GTM settings done, since users were getting confused #700
|
155 |
+
* Front page amphtml fixed for paginated pages
|
156 |
+
|
157 |
= 0.9.45.6 (31 March 2017) =
|
158 |
* Installation Process from welcome page was not working after WP Plugin DIR API change was fixed.
|
159 |
* WP Rocket Minifcation and Concatenation was not working, its fixed now.
|
@@ -106,34 +106,14 @@ function amp_content_editor_meta_save ( $post_id ) {
|
|
106 |
}
|
107 |
|
108 |
//if there is data to be saved to DB
|
|
|
109 |
if ( isset( $_POST['ampforwp_custom_content_editor'] ) ) {
|
110 |
update_post_meta($post_id, 'ampforwp_custom_content_editor', $_POST[ 'ampforwp_custom_content_editor' ] );
|
111 |
}
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
// Save Rating Meta Field function
|
117 |
-
function amp_checkbox_meta_save ( $post_id ) {
|
118 |
-
// Checks save status
|
119 |
-
$is_autosave = wp_is_post_autosave( $post_id );
|
120 |
-
$is_revision = wp_is_post_revision( $post_id );
|
121 |
-
$is_valid_nonce = ( isset( $_POST[ 'amp_content_editor_nonce' ] ) && wp_verify_nonce( $_POST[ 'amp_content_editor_nonce' ], basename( __FILE__ ) ) ) ? 'true' : 'false';
|
122 |
-
|
123 |
-
// Exits script depending on save status
|
124 |
-
if ( $is_autosave || $is_revision || !$is_valid_nonce ) {
|
125 |
-
return;
|
126 |
-
}
|
127 |
-
|
128 |
-
//if there is data to be saved to DB
|
129 |
-
if ( isset( $_POST['ampforwp_custom_content_editor_checkbox'] ) ) {
|
130 |
-
update_post_meta($post_id, 'ampforwp_custom_content_editor_checkbox', $_POST[ 'ampforwp_custom_content_editor_checkbox' ] );
|
131 |
-
} else {
|
132 |
-
update_post_meta($post_id, 'ampforwp_custom_content_editor_checkbox', '');
|
133 |
}
|
134 |
}
|
135 |
|
136 |
-
add_action ( 'save_post' , '
|
137 |
-
|
138 |
-
|
139 |
-
?>
|
106 |
}
|
107 |
|
108 |
//if there is data to be saved to DB
|
109 |
+
// Save data of Custom AMP Editor
|
110 |
if ( isset( $_POST['ampforwp_custom_content_editor'] ) ) {
|
111 |
update_post_meta($post_id, 'ampforwp_custom_content_editor', $_POST[ 'ampforwp_custom_content_editor' ] );
|
112 |
}
|
113 |
+
// Save data of Custom AMP Editor CheckBox
|
114 |
+
if ( isset( $_POST['ampforwp_custom_content_editor'] ) ) {
|
115 |
+
update_post_meta($post_id, 'ampforwp_custom_content_editor_checkbox', $_POST[ 'ampforwp_custom_content_editor_checkbox' ] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
}
|
118 |
|
119 |
+
add_action ( 'save_post' , 'amp_content_editor_meta_save' );
|
|
|
|
|
|
@@ -32,7 +32,8 @@
|
|
32 |
|
33 |
<?php if ( is_archive() ) {
|
34 |
the_archive_title( '<h3 class="page-title">', '</h3>' );
|
35 |
-
$
|
|
|
36 |
if( $arch_desc ) { ?>
|
37 |
<div class="amp-wp-content taxonomy-description">
|
38 |
<?php echo $arch_desc ; ?>
|
@@ -45,7 +46,7 @@
|
|
45 |
|
46 |
<h1 class="amp-wp-title">
|
47 |
<?php $ampforwp_post_url = get_permalink(); ?>
|
48 |
-
<a href="<?php echo trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR ;?>"><?php the_title() ?></a>
|
49 |
</h1>
|
50 |
|
51 |
<div class="amp-wp-content-loop">
|
@@ -65,7 +66,7 @@
|
|
65 |
$thumb_url = $thumb_url_array[0];
|
66 |
?>
|
67 |
<div class="home-post-image">
|
68 |
-
<a href="<?php echo trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR ;?>">
|
69 |
<amp-img
|
70 |
src=<?php echo $thumb_url ?>
|
71 |
<?php if( $redux_builder_amp['ampforwp-homepage-posts-image-modify-size'] ) { ?>
|
32 |
|
33 |
<?php if ( is_archive() ) {
|
34 |
the_archive_title( '<h3 class="page-title">', '</h3>' );
|
35 |
+
$description = get_the_archive_description();
|
36 |
+
$arch_desc = ampforwp_content_sanitizer( $description );
|
37 |
if( $arch_desc ) { ?>
|
38 |
<div class="amp-wp-content taxonomy-description">
|
39 |
<?php echo $arch_desc ; ?>
|
46 |
|
47 |
<h1 class="amp-wp-title">
|
48 |
<?php $ampforwp_post_url = get_permalink(); ?>
|
49 |
+
<a href="<?php echo trailingslashit( trailingslashit( $ampforwp_post_url ) . AMPFORWP_AMP_QUERY_VAR );?>"><?php the_title() ?></a>
|
50 |
</h1>
|
51 |
|
52 |
<div class="amp-wp-content-loop">
|
66 |
$thumb_url = $thumb_url_array[0];
|
67 |
?>
|
68 |
<div class="home-post-image">
|
69 |
+
<a href="<?php echo trailingslashit( trailingslashit( $ampforwp_post_url ) . AMPFORWP_AMP_QUERY_VAR );?>">
|
70 |
<amp-img
|
71 |
src=<?php echo $thumb_url ?>
|
72 |
<?php if( $redux_builder_amp['ampforwp-homepage-posts-image-modify-size'] ) { ?>
|
@@ -33,7 +33,7 @@ if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'])
|
|
33 |
</div>
|
34 |
<!-- .comment-author -->
|
35 |
<div class="comment-metadata">
|
36 |
-
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
|
37 |
<?php
|
38 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
39 |
?>
|
@@ -45,10 +45,8 @@ if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'])
|
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
-
|
49 |
-
$
|
50 |
-
// $emoji_free_comments = preg_replace($pattern,'',$emoji_content);
|
51 |
-
echo $emoji_content; ?>
|
52 |
</p>
|
53 |
</div>
|
54 |
<!-- .comment-content -->
|
33 |
</div>
|
34 |
<!-- .comment-author -->
|
35 |
<div class="comment-metadata">
|
36 |
+
<a href="<?php echo htmlspecialchars( trailingslashit( get_comment_link( $comment->comment_ID ) ) ) ?>">
|
37 |
<?php
|
38 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
39 |
?>
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
+
$comment_content = get_comment_text();
|
49 |
+
echo ampforwp_content_sanitizer( $comment_content ); ?>
|
|
|
|
|
50 |
</p>
|
51 |
</div>
|
52 |
<!-- .comment-content -->
|
@@ -26,7 +26,7 @@
|
|
26 |
if (!empty( $next_post )) {
|
27 |
$next_text = $next_post->post_title;
|
28 |
?>
|
29 |
-
<a href="<?php echo trailingslashit(get_permalink( $next_post->ID )) . AMPFORWP_AMP_QUERY_VAR; ?>"><?php echo apply_filters('ampforwp_next_link',$next_text ); ?> »</a> <?php
|
30 |
} ?>
|
31 |
</div>
|
32 |
<!--Next Link code-->
|
@@ -37,7 +37,7 @@
|
|
37 |
if (!empty( $prev_post )) {
|
38 |
$prev_text = $prev_post->post_title;
|
39 |
?>
|
40 |
-
<a href="<?php echo trailingslashit(get_permalink( $prev_post->ID )). AMPFORWP_AMP_QUERY_VAR; ?>"> « <?php echo apply_filters('ampforwp_prev_link',$prev_text ); ?></a> <?php
|
41 |
} ?>
|
42 |
</div>
|
43 |
<!--Prev Link code-->
|
26 |
if (!empty( $next_post )) {
|
27 |
$next_text = $next_post->post_title;
|
28 |
?>
|
29 |
+
<a href="<?php echo trailingslashit( trailingslashit( get_permalink( $next_post->ID ) ) . AMPFORWP_AMP_QUERY_VAR ); ?>"><?php echo apply_filters('ampforwp_next_link',$next_text ); ?> »</a> <?php
|
30 |
} ?>
|
31 |
</div>
|
32 |
<!--Next Link code-->
|
37 |
if (!empty( $prev_post )) {
|
38 |
$prev_text = $prev_post->post_title;
|
39 |
?>
|
40 |
+
<a href="<?php echo trailingslashit( trailingslashit( get_permalink( $prev_post->ID ) ). AMPFORWP_AMP_QUERY_VAR ); ?>"> « <?php echo apply_filters('ampforwp_prev_link',$prev_text ); ?></a> <?php
|
41 |
} ?>
|
42 |
</div>
|
43 |
<!--Prev Link code-->
|
@@ -8,7 +8,7 @@
|
|
8 |
<span><?php global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-categories-text'] .' ', 'amp' )); ?></span>
|
9 |
<?php foreach ($ampforwp_categories as $cat ) {
|
10 |
if($redux_builder_amp['ampforwp-archive-support']){
|
11 |
-
echo ('<span><a href="'.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(get_tag_link($tag->term_taxonomy_id)).'amp" >'.$tag->name .'</a></span>');
|
29 |
|
30 |
} else {
|
31 |
echo ('<span>'.$tag->name.'</span>');
|
8 |
<span><?php global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-categories-text'] .' ', 'amp' )); ?></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 |
}
|
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>');
|
@@ -47,8 +47,8 @@
|
|
47 |
while( $my_query->have_posts() ) {
|
48 |
$my_query->the_post();
|
49 |
$related_post_permalink = get_permalink();
|
50 |
-
$related_post_permalink = trailingslashit($related_post_permalink);
|
51 |
-
$related_post_permalink = $related_post_permalink . AMPFORWP_AMP_QUERY_VAR
|
52 |
?>
|
53 |
<li class="<?php if ( has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
54 |
<a href="<?php echo esc_url( $related_post_permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
|
47 |
while( $my_query->have_posts() ) {
|
48 |
$my_query->the_post();
|
49 |
$related_post_permalink = get_permalink();
|
50 |
+
$related_post_permalink = trailingslashit( $related_post_permalink );
|
51 |
+
$related_post_permalink = trailingslashit( $related_post_permalink . AMPFORWP_AMP_QUERY_VAR );
|
52 |
?>
|
53 |
<li class="<?php if ( has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
54 |
<a href="<?php echo esc_url( $related_post_permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
|
@@ -8,8 +8,8 @@
|
|
8 |
<amp-social-share type="twitter"
|
9 |
width="50"
|
10 |
height="28"
|
11 |
-
|
12 |
-
|
13 |
></amp-social-share>
|
14 |
<?php } ?>
|
15 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
8 |
<amp-social-share type="twitter"
|
9 |
width="50"
|
10 |
height="28"
|
11 |
+
data-param-url="<?php echo wp_get_shortlink() ?>"
|
12 |
+
data-param-text="<?php echo $data_param_data ?> TITLE"
|
13 |
></amp-social-share>
|
14 |
<?php } ?>
|
15 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
@@ -1,11 +1,20 @@
|
|
1 |
-
<?php global $redux_builder_amp;
|
2 |
$post_id = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
3 |
$template = new AMP_Post_Template( $post_id );?>
|
4 |
<!doctype html>
|
5 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
6 |
<head>
|
7 |
-
<meta charset="utf-8">
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
|
10 |
<?php do_action( 'amp_post_template_head', $this ); ?>
|
11 |
<?php
|
@@ -122,7 +131,7 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
122 |
</div>
|
123 |
<!-- .comment-author -->
|
124 |
<div class="comment-metadata">
|
125 |
-
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
|
126 |
<?php
|
127 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
128 |
?>
|
@@ -188,8 +197,8 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
188 |
<amp-social-share type="twitter"
|
189 |
width="50"
|
190 |
height="28"
|
191 |
-
data-param-url="
|
192 |
-
data-param-text
|
193 |
></amp-social-share>
|
194 |
<?php } ?>
|
195 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
1 |
+
<?php global $redux_builder_amp,$wp;
|
2 |
$post_id = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
3 |
$template = new AMP_Post_Template( $post_id );?>
|
4 |
<!doctype html>
|
5 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
6 |
<head>
|
7 |
+
<meta charset="utf-8"> <?php
|
8 |
+
$page = $wp->query_vars['page'];
|
9 |
+
if ( $page >= '2') { ?>
|
10 |
+
<link rel="canonical" href="<?php
|
11 |
+
$ID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
12 |
+
echo trailingslashit( get_permalink( $ID ) ) . '?page=' . $page ?>"> <?php
|
13 |
+
} else { ?>
|
14 |
+
<link rel="canonical" href="<?php
|
15 |
+
$ID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
16 |
+
echo get_permalink( $ID ) ?>"> <?php
|
17 |
+
} ?>
|
18 |
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
|
19 |
<?php do_action( 'amp_post_template_head', $this ); ?>
|
20 |
<?php
|
131 |
</div>
|
132 |
<!-- .comment-author -->
|
133 |
<div class="comment-metadata">
|
134 |
+
<a href="<?php echo trailingslashit( htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ) ?>">
|
135 |
<?php
|
136 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
137 |
?>
|
197 |
<amp-social-share type="twitter"
|
198 |
width="50"
|
199 |
height="28"
|
200 |
+
data-param-url="<?php echo wp_get_shortlink() ?>"
|
201 |
+
data-param-text="<?php echo $data_param_data ?> TITLE"
|
202 |
></amp-social-share>
|
203 |
<?php } ?>
|
204 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
@@ -10,7 +10,7 @@
|
|
10 |
<?php }
|
11 |
} else { ?>
|
12 |
<?php if($redux_builder_amp['ampforwp-homepage-on-off-support']) { ?>
|
13 |
-
<a href="<?php echo esc_url( trailingslashit( $this->get( 'home_url' ) ) ) . AMPFORWP_AMP_QUERY_VAR; ?>">
|
14 |
<?php } else {
|
15 |
if( $redux_builder_amp['amp-mobile-redirection'] ) { ?>
|
16 |
<a href="<?php echo esc_url( untrailingslashit( $this->get( 'home_url' ) ).'?nonamp=1'); ?>" rel="nofollow">
|
@@ -43,7 +43,7 @@
|
|
43 |
|
44 |
<?php if($redux_builder_amp['ampforwp-homepage-on-off-support']) { ?>
|
45 |
|
46 |
-
<a href="<?php echo esc_url( trailingslashit( $this->get( 'home_url' ) ) ) . AMPFORWP_AMP_QUERY_VAR; ?>">
|
47 |
|
48 |
<?php } else {?>
|
49 |
|
@@ -65,6 +65,7 @@
|
|
65 |
</a>
|
66 |
</div>
|
67 |
<?php do_action('ampforwp_header_search'); ?>
|
|
|
68 |
|
69 |
|
70 |
|
@@ -74,8 +75,11 @@
|
|
74 |
layout="nodisplay"
|
75 |
side="right">
|
76 |
<div class="toggle-navigationv2">
|
77 |
-
<div role="button" tabindex="0" on='tap:sidebar.close' class="close-nav">X</div>
|
78 |
-
|
|
|
|
|
|
|
79 |
</div>
|
80 |
</amp-sidebar>
|
81 |
|
10 |
<?php }
|
11 |
} else { ?>
|
12 |
<?php if($redux_builder_amp['ampforwp-homepage-on-off-support']) { ?>
|
13 |
+
<a href="<?php echo esc_url( trailingslashit( trailingslashit( $this->get( 'home_url' ) ) ) . AMPFORWP_AMP_QUERY_VAR ); ?>">
|
14 |
<?php } else {
|
15 |
if( $redux_builder_amp['amp-mobile-redirection'] ) { ?>
|
16 |
<a href="<?php echo esc_url( untrailingslashit( $this->get( 'home_url' ) ).'?nonamp=1'); ?>" rel="nofollow">
|
43 |
|
44 |
<?php if($redux_builder_amp['ampforwp-homepage-on-off-support']) { ?>
|
45 |
|
46 |
+
<a href="<?php echo esc_url( trailingslashit( trailingslashit( $this->get( 'home_url' ) ) ) . AMPFORWP_AMP_QUERY_VAR ); ?>">
|
47 |
|
48 |
<?php } else {?>
|
49 |
|
65 |
</a>
|
66 |
</div>
|
67 |
<?php do_action('ampforwp_header_search'); ?>
|
68 |
+
<?php do_action('ampforwp_call_button'); ?>
|
69 |
|
70 |
|
71 |
|
75 |
layout="nodisplay"
|
76 |
side="right">
|
77 |
<div class="toggle-navigationv2">
|
78 |
+
<div role="button" tabindex="0" on='tap:sidebar.close' class="close-nav">X</div> <?php
|
79 |
+
$menu = wp_nav_menu( array(
|
80 |
+
'theme_location' => 'amp-menu' ,
|
81 |
+
'echo' => false) );
|
82 |
+
echo strip_tags( $menu , '<ul><li><a>'); ?>
|
83 |
</div>
|
84 |
</amp-sidebar>
|
85 |
|
@@ -59,7 +59,7 @@
|
|
59 |
|
60 |
<h1 class="amp-wp-title">
|
61 |
<?php $ampforwp_post_url = get_permalink(); ?>
|
62 |
-
<a href="<?php echo trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR ;?>"><?php the_title() ?></a>
|
63 |
</h1>
|
64 |
|
65 |
<div class="amp-wp-content-loop">
|
@@ -80,7 +80,7 @@
|
|
80 |
$thumb_url = $thumb_url_array[0];
|
81 |
?>
|
82 |
<div class="home-post-image">
|
83 |
-
<a href="<?php echo trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR ;?>">
|
84 |
<amp-img
|
85 |
src=<?php echo $thumb_url ?>
|
86 |
<?php if( $redux_builder_amp['ampforwp-homepage-posts-image-modify-size'] ) { ?>
|
59 |
|
60 |
<h1 class="amp-wp-title">
|
61 |
<?php $ampforwp_post_url = get_permalink(); ?>
|
62 |
+
<a href="<?php echo trailingslashit( trailingslashit( $ampforwp_post_url ) . AMPFORWP_AMP_QUERY_VAR );?>"><?php the_title() ?></a>
|
63 |
</h1>
|
64 |
|
65 |
<div class="amp-wp-content-loop">
|
80 |
$thumb_url = $thumb_url_array[0];
|
81 |
?>
|
82 |
<div class="home-post-image">
|
83 |
+
<a href="<?php echo trailingslashit( trailingslashit( $ampforwp_post_url ) . AMPFORWP_AMP_QUERY_VAR );?>">
|
84 |
<amp-img
|
85 |
src=<?php echo $thumb_url ?>
|
86 |
<?php if( $redux_builder_amp['ampforwp-homepage-posts-image-modify-size'] ) { ?>
|
@@ -60,7 +60,7 @@
|
|
60 |
|
61 |
<h1 class="amp-wp-title">
|
62 |
<?php $ampforwp_post_url = get_permalink(); ?>
|
63 |
-
<a href="<?php echo trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR ;?>"><?php the_title() ?></a>
|
64 |
</h1>
|
65 |
|
66 |
<div class="amp-wp-content-loop">
|
@@ -76,7 +76,7 @@
|
|
76 |
$thumb_url = $thumb_url_array[0];
|
77 |
?>
|
78 |
<div class="home-post-image">
|
79 |
-
<a href="<?php echo trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR ;?>">
|
80 |
<amp-img src=<?php echo $thumb_url ?> width=100 height=75></amp-img>
|
81 |
</a>
|
82 |
</div>
|
60 |
|
61 |
<h1 class="amp-wp-title">
|
62 |
<?php $ampforwp_post_url = get_permalink(); ?>
|
63 |
+
<a href="<?php echo trailingslashit( trailingslashit( $ampforwp_post_url ) . AMPFORWP_AMP_QUERY_VAR );?>"><?php the_title() ?></a>
|
64 |
</h1>
|
65 |
|
66 |
<div class="amp-wp-content-loop">
|
76 |
$thumb_url = $thumb_url_array[0];
|
77 |
?>
|
78 |
<div class="home-post-image">
|
79 |
+
<a href="<?php echo trailingslashit( trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR );?>">
|
80 |
<amp-img src=<?php echo $thumb_url ?> width=100 height=75></amp-img>
|
81 |
</a>
|
82 |
</div>
|
@@ -11,9 +11,12 @@ 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
|
15 |
-
.
|
16 |
-
.
|
|
|
|
|
|
|
17 |
.amp-wp-content,.amp-wp-title-bar div {<?php if ( $content_max_width > 0 ) : ?> margin: 0 auto;max-width: <?php echo sprintf( '%dpx', $content_max_width ); ?>; <?php endif; ?> }
|
18 |
html{background: <?php echo sanitize_hex_color( $header_background_color ); ?>;} body{background: <?php echo sanitize_hex_color( $theme_color ); ?>;color: <?php echo sanitize_hex_color( $text_color ); ?>;font-family: 'Merriweather', 'Times New Roman', Times, Serif;font-weight: 300;line-height: 1.75em;}
|
19 |
p,ol,ul,figure {margin: 0 0 1em;padding: 0;} a,a:visited {color: <?php echo sanitize_hex_color( $link_color ); ?>;}a:hover,a:active,a:focus {color: <?php echo sanitize_hex_color( $text_color ); ?>;} .wp-caption amp-img{max-width: 100%}
|
@@ -42,50 +45,18 @@ blockquote {color: <?php echo sanitize_hex_color( $text_color ); ?>;background:
|
|
42 |
.amp-category-post a{ color:#555; text-decoration:none}
|
43 |
.amp-category-post amp-img{ margin-bottom:5px; }
|
44 |
.amp-category-block li:nth-child(3){ margin: 0 1%; }
|
45 |
-
@media screen and (max-width: 530px) {
|
46 |
-
|
47 |
-
|
48 |
-
}
|
49 |
-
|
50 |
-
|
51 |
-
.amp-category-block li:nth-child(3) {margin:0%}
|
52 |
-
}
|
53 |
-
.searchmenu{
|
54 |
-
margin-right: 15px;
|
55 |
-
margin-top: 10px;
|
56 |
-
position: absolute;
|
57 |
-
top: 0;
|
58 |
-
right: 91px;
|
59 |
-
}
|
60 |
-
.searchmenu button{
|
61 |
-
background:transparent;
|
62 |
-
border:none
|
63 |
-
}
|
64 |
-
|
65 |
-
.closebutton{
|
66 |
-
background: transparent;
|
67 |
-
border: 0;
|
68 |
-
color: rgba(255, 255, 255, 0.7);
|
69 |
-
border: 1px solid rgba(255, 255, 255, 0.7);
|
70 |
-
border-radius: 30px;
|
71 |
-
width: 32px;
|
72 |
-
height: 32px;
|
73 |
-
font-size: 12px;
|
74 |
-
text-align: center;
|
75 |
-
position: absolute;
|
76 |
-
top: 12px;
|
77 |
-
right: 20px;
|
78 |
-
outline:none
|
79 |
-
}
|
80 |
-
amp-lightbox{
|
81 |
-
background: rgba(0, 0, 0,0.85);
|
82 |
-
}
|
83 |
/* Tables */
|
|
|
84 |
table a:link { color: #666; font-weight: bold; text-decoration: none; }
|
85 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
86 |
-
table a:active,
|
87 |
-
table
|
88 |
-
table { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background: #eee; margin: 20px; width: 95%; }
|
89 |
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); }
|
90 |
table th:first-child { text-align: left; padding-left: 20px; }
|
91 |
table tr:first-child th:first-child { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
@@ -100,89 +71,19 @@ table tr:last-child td:last-child { -moz-border-radius-bottomright: 3px; -webkit
|
|
100 |
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); }
|
101 |
|
102 |
/* CSS3 icon */
|
103 |
-
[class*=icono-]:after, [class*=icono-]:before
|
104 |
-
|
105 |
-
|
106 |
-
}
|
107 |
-
.icono-search:
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
-ms-transform: rotate(270deg);
|
112 |
-
transform: rotate(270deg);
|
113 |
-
width: 2px;
|
114 |
-
height: 9px;
|
115 |
-
box-shadow: inset 0 0 0 32px;
|
116 |
-
top: 0px;
|
117 |
-
border-radius: 0 0 1px 1px;
|
118 |
-
left: 14px;
|
119 |
-
}
|
120 |
-
[class*=icono-] {
|
121 |
-
display: inline-block;
|
122 |
-
vertical-align: middle;
|
123 |
-
position: relative;
|
124 |
-
font-style: normal;
|
125 |
-
color: #f42;
|
126 |
-
text-align: left;
|
127 |
-
text-indent: -9999px;
|
128 |
-
direction: ltr
|
129 |
-
}
|
130 |
-
.icono-search {
|
131 |
-
-webkit-transform: translateX(-50%);
|
132 |
-
-ms-transform: translateX(-50%);
|
133 |
-
transform: translateX(-50%)
|
134 |
-
}
|
135 |
-
.icono-search {
|
136 |
-
border: 1px solid;
|
137 |
-
width: 10px;
|
138 |
-
height: 10px;
|
139 |
-
border-radius: 50%;
|
140 |
-
-webkit-transform: rotate(45deg);
|
141 |
-
-ms-transform: rotate(45deg);
|
142 |
-
transform: rotate(45deg);
|
143 |
-
margin: 4px 4px 8px 8px;
|
144 |
-
}
|
145 |
-
.searchform label{
|
146 |
-
color: #f7f7f7;
|
147 |
-
display: block;
|
148 |
-
font-size: 10px;
|
149 |
-
line-height: 0;
|
150 |
-
opacity:0.6
|
151 |
-
}
|
152 |
-
.searchform{
|
153 |
-
background: transparent;
|
154 |
-
left: 20%;
|
155 |
-
position: absolute;
|
156 |
-
top: 35%;
|
157 |
-
width: 60%;
|
158 |
-
max-width: 100%;
|
159 |
-
transition-delay: 0.5s;
|
160 |
-
}
|
161 |
-
.searchform input{
|
162 |
-
background: transparent;
|
163 |
-
border: 1px solid #666;
|
164 |
-
color: #f7f7f7;
|
165 |
-
font-size: 14px;
|
166 |
-
font-weight: 400;
|
167 |
-
line-height: 1;
|
168 |
-
letter-spacing: 0.3px;
|
169 |
-
text-transform: capitalize;
|
170 |
-
padding: 20px 0px 20px 30px;
|
171 |
-
margin-top: 15px;
|
172 |
-
width: 100%;
|
173 |
-
}
|
174 |
#searchsubmit{opacity:0}
|
175 |
.hide{display:none}
|
176 |
-
.amp-wp-header .ampforwp-search-nav-wrapper
|
177 |
-
|
178 |
-
}
|
179 |
-
|
180 |
-
.ampforwp-search-nav-wrapper .searchmenu {
|
181 |
-
margin-top: 20px;
|
182 |
-
}
|
183 |
-
.headerlogo a, [class*=icono-]{
|
184 |
-
top:0;
|
185 |
-
}
|
186 |
.amp-wp-header a, .headerlogo a, [class*=icono-] {color: <?php echo sanitize_hex_color( $header_color ); ?>;text-decoration: none;}
|
187 |
|
188 |
<?php if($redux_builder_amp['enable-single-social-icons'] && is_socialshare_or_socialsticky_enabled_in_ampforwp() ){ ?> .amp-wp-footer{padding-bottom: 60px;}<?php } ?>
|
@@ -208,7 +109,11 @@ header, amp-sidebar, article, footer{ direction: rtl;}
|
|
208 |
.closebutton{right:0; left:20px;}
|
209 |
.amp-wp-byline amp-img{ margin:0px 0px 0px 6px;}
|
210 |
.comment-author{float: right;}
|
211 |
-
|
|
|
|
|
|
|
|
|
212 |
<?php } ?>
|
213 |
<?php
|
214 |
if ( class_exists('TablePress') ) { ?>
|
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% }
|
17 |
+
.amp-wp-enforced-sizes{ max-width: 100%; margin: 0 auto; }
|
18 |
+
.amp-wp-unknown-size img{ object-fit: contain; }
|
19 |
+
amp-iframe{ max-width: 100%; margin-bottom : 20px; }
|
20 |
.amp-wp-content,.amp-wp-title-bar div {<?php if ( $content_max_width > 0 ) : ?> margin: 0 auto;max-width: <?php echo sprintf( '%dpx', $content_max_width ); ?>; <?php endif; ?> }
|
21 |
html{background: <?php echo sanitize_hex_color( $header_background_color ); ?>;} body{background: <?php echo sanitize_hex_color( $theme_color ); ?>;color: <?php echo sanitize_hex_color( $text_color ); ?>;font-family: 'Merriweather', 'Times New Roman', Times, Serif;font-weight: 300;line-height: 1.75em;}
|
22 |
p,ol,ul,figure {margin: 0 0 1em;padding: 0;} a,a:visited {color: <?php echo sanitize_hex_color( $link_color ); ?>;}a:hover,a:active,a:focus {color: <?php echo sanitize_hex_color( $text_color ); ?>;} .wp-caption amp-img{max-width: 100%}
|
45 |
.amp-category-post a{ color:#555; text-decoration:none}
|
46 |
.amp-category-post amp-img{ margin-bottom:5px; }
|
47 |
.amp-category-block li:nth-child(3){ margin: 0 1%; }
|
48 |
+
@media screen and (max-width: 530px){ .amp-category-post {line-height: 1.45;font-size: 14px; } .amp-category-block li:nth-child(3) {margin:0 0.6%} }
|
49 |
+
@media screen and (max-width: 375px){ .amp-category-post {line-height: 1.45;font-size: 12px; } .amp-category-block li:nth-child(3) {margin:0%} }
|
50 |
+
.searchmenu{ margin-right: 15px; margin-top: 10px; position: absolute; top: 0; right: 91px; }
|
51 |
+
.searchmenu button{ background:transparent; border:none }
|
52 |
+
.closebutton{ background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 30px; width: 32px; height: 32px; font-size: 12px; text-align: center; position: absolute; top: 12px; right: 20px; outline:none }
|
53 |
+
amp-lightbox{ background: rgba(0, 0, 0,0.85); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
/* Tables */
|
55 |
+
table { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; overflow-x: auto; }
|
56 |
table a:link { color: #666; font-weight: bold; text-decoration: none; }
|
57 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
58 |
+
table a:active, table a:hover { color: #bd5a35; text-decoration: underline; }
|
59 |
+
table { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background: #eee; margin: 0px; width: 95%; }
|
|
|
60 |
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); }
|
61 |
table th:first-child { text-align: left; padding-left: 20px; }
|
62 |
table tr:first-child th:first-child { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
71 |
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); }
|
72 |
|
73 |
/* CSS3 icon */
|
74 |
+
[class*=icono-]:after, [class*=icono-]:before{ content: ''; pointer-events: none; }
|
75 |
+
.icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
|
76 |
+
[class*=icono-]{ display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
|
77 |
+
.icono-search{ -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%) }
|
78 |
+
.icono-search{ border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
|
79 |
+
.searchform label{ color: #f7f7f7; display: block; font-size: 10px; line-height: 0; opacity:0.6 }
|
80 |
+
.searchform{ background: transparent; left: 20%; position: absolute; top: 35%; width: 60%; max-width: 100%; transition-delay: 0.5s; }
|
81 |
+
.searchform input{ background: transparent; border: 1px solid #666; color: #f7f7f7; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: 0.3px; text-transform: capitalize; padding: 20px 0px 20px 30px; margin-top: 15px; width: 100%; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
#searchsubmit{opacity:0}
|
83 |
.hide{display:none}
|
84 |
+
.amp-wp-header .ampforwp-search-nav-wrapper{ padding: 0; }
|
85 |
+
.ampforwp-search-nav-wrapper .searchmenu{ margin-top: 20px; }
|
86 |
+
.headerlogo a, [class*=icono-]{ top:0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
.amp-wp-header a, .headerlogo a, [class*=icono-] {color: <?php echo sanitize_hex_color( $header_color ); ?>;text-decoration: none;}
|
88 |
|
89 |
<?php if($redux_builder_amp['enable-single-social-icons'] && is_socialshare_or_socialsticky_enabled_in_ampforwp() ){ ?> .amp-wp-footer{padding-bottom: 60px;}<?php } ?>
|
109 |
.closebutton{right:0; left:20px;}
|
110 |
.amp-wp-byline amp-img{ margin:0px 0px 0px 6px;}
|
111 |
.comment-author{float: right;}
|
112 |
+
.amp-ad-wrapper{ direction: ltr; }
|
113 |
+
<?php } ?>
|
114 |
+
<?php if ($redux_builder_amp['ampforwp-callnow-button']) { ?>
|
115 |
+
.callnow{ position: relative; top: -26px; right: 79px; }
|
116 |
+
.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; }
|
117 |
<?php } ?>
|
118 |
<?php
|
119 |
if ( class_exists('TablePress') ) { ?>
|
@@ -34,7 +34,8 @@
|
|
34 |
<div class="amp-wp-content amp-archive-heading">
|
35 |
<?php
|
36 |
the_archive_title( '<h3 class="page-title">', '</h3>' );
|
37 |
-
$
|
|
|
38 |
if( $arch_desc ) { ?>
|
39 |
<div class="amp-wp-content taxonomy-description">
|
40 |
<?php echo $arch_desc ; ?>
|
@@ -45,7 +46,7 @@
|
|
45 |
} ?>
|
46 |
|
47 |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
|
48 |
-
$ampforwp_amp_post_url = trailingslashit( get_permalink() ) . AMPFORWP_AMP_QUERY_VAR ; ?>
|
49 |
|
50 |
<div class="amp-wp-content amp-loop-list">
|
51 |
<?php if ( has_post_thumbnail() ) { ?>
|
34 |
<div class="amp-wp-content amp-archive-heading">
|
35 |
<?php
|
36 |
the_archive_title( '<h3 class="page-title">', '</h3>' );
|
37 |
+
$description = get_the_archive_description();
|
38 |
+
$arch_desc = ampforwp_content_sanitizer( $description );
|
39 |
if( $arch_desc ) { ?>
|
40 |
<div class="amp-wp-content taxonomy-description">
|
41 |
<?php echo $arch_desc ; ?>
|
46 |
} ?>
|
47 |
|
48 |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
|
49 |
+
$ampforwp_amp_post_url = trailingslashit( trailingslashit( get_permalink() ) . AMPFORWP_AMP_QUERY_VAR ); ?>
|
50 |
|
51 |
<div class="amp-wp-content amp-loop-list">
|
52 |
<?php if ( has_post_thumbnail() ) { ?>
|
@@ -33,7 +33,7 @@ if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'])
|
|
33 |
</div>
|
34 |
<!-- .comment-author -->
|
35 |
<div class="comment-metadata">
|
36 |
-
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
|
37 |
<?php
|
38 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
39 |
?>
|
@@ -45,10 +45,8 @@ if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'])
|
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
-
|
49 |
-
$
|
50 |
-
// $emoji_free_comments = preg_replace($pattern,'',$emoji_content);
|
51 |
-
echo $emoji_content; ?>
|
52 |
</p>
|
53 |
</div>
|
54 |
<!-- .comment-content -->
|
33 |
</div>
|
34 |
<!-- .comment-author -->
|
35 |
<div class="comment-metadata">
|
36 |
+
<a href="<?php echo htmlspecialchars( trailingslashit( get_comment_link( $comment->comment_ID ) ) ) ?>">
|
37 |
<?php
|
38 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
39 |
?>
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
+
$comment_content = get_comment_text();
|
49 |
+
echo ampforwp_content_sanitizer( $comment_content ); ?>
|
|
|
|
|
50 |
</p>
|
51 |
</div>
|
52 |
<!-- .comment-content -->
|
@@ -37,7 +37,7 @@
|
|
37 |
if (!empty( $next_post )) {
|
38 |
$next_text = $next_post->post_title;
|
39 |
?>
|
40 |
-
<a href="<?php echo trailingslashit(get_permalink( $next_post->ID ))
|
41 |
} ?>
|
42 |
</div>
|
43 |
<!--Next Link code-->
|
@@ -48,7 +48,7 @@
|
|
48 |
if (!empty( $prev_post )) {
|
49 |
$prev_text = $prev_post->post_title;
|
50 |
?>
|
51 |
-
<a href="<?php echo trailingslashit(get_permalink( $prev_post->ID )). AMPFORWP_AMP_QUERY_VAR; ?>"> « <?php echo apply_filters('ampforwp_prev_link',$prev_text ); ?></a> <?php
|
52 |
} ?>
|
53 |
</div>
|
54 |
<!--Prev Link code-->
|
37 |
if (!empty( $next_post )) {
|
38 |
$next_text = $next_post->post_title;
|
39 |
?>
|
40 |
+
<a href="<?php echo trailingslashit( trailingslashit( get_permalink( $next_post->ID ) ) . AMPFORWP_AMP_QUERY_VAR ); ?>"><?php echo apply_filters('ampforwp_next_link',$next_text ); ?> »</a> <?php
|
41 |
} ?>
|
42 |
</div>
|
43 |
<!--Next Link code-->
|
48 |
if (!empty( $prev_post )) {
|
49 |
$prev_text = $prev_post->post_title;
|
50 |
?>
|
51 |
+
<a href="<?php echo trailingslashit( trailingslashit( get_permalink( $prev_post->ID ) ) . AMPFORWP_AMP_QUERY_VAR ); ?>"> « <?php echo apply_filters('ampforwp_prev_link',$prev_text ); ?></a> <?php
|
52 |
} ?>
|
53 |
</div>
|
54 |
<!--Prev Link code-->
|
@@ -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(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><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 |
}
|
@@ -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(get_tag_link($tag->term_taxonomy_id)).'amp" >'.$tag->name .'</a></span>');
|
15 |
} else {
|
16 |
echo ('<span>'.$tag->name .'</span>');
|
17 |
}
|
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 |
}
|
@@ -46,8 +46,8 @@
|
|
46 |
while( $my_query->have_posts() ) {
|
47 |
$my_query->the_post();
|
48 |
$related_post_permalink = get_permalink();
|
49 |
-
$related_post_permalink = trailingslashit($related_post_permalink);
|
50 |
-
$related_post_permalink = $related_post_permalink . AMPFORWP_AMP_QUERY_VAR
|
51 |
?>
|
52 |
<li class="<?php if ( has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
53 |
<a href="<?php echo esc_url( $related_post_permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
|
46 |
while( $my_query->have_posts() ) {
|
47 |
$my_query->the_post();
|
48 |
$related_post_permalink = get_permalink();
|
49 |
+
$related_post_permalink = trailingslashit( $related_post_permalink );
|
50 |
+
$related_post_permalink = trailingslashit( $related_post_permalink . AMPFORWP_AMP_QUERY_VAR ) ;
|
51 |
?>
|
52 |
<li class="<?php if ( has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
53 |
<a href="<?php echo esc_url( $related_post_permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
|
@@ -8,8 +8,8 @@
|
|
8 |
<amp-social-share type="twitter"
|
9 |
width="50"
|
10 |
height="28"
|
11 |
-
|
12 |
-
|
13 |
></amp-social-share>
|
14 |
<?php } ?>
|
15 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
8 |
<amp-social-share type="twitter"
|
9 |
width="50"
|
10 |
height="28"
|
11 |
+
data-param-url="<?php echo wp_get_shortlink() ?>"
|
12 |
+
data-param-text="<?php echo $data_param_data ?> TITLE"
|
13 |
></amp-social-share>
|
14 |
<?php } ?>
|
15 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
@@ -1,11 +1,20 @@
|
|
1 |
-
<?php global $redux_builder_amp;
|
2 |
$post_id = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
3 |
$template = new AMP_Post_Template( $post_id );?>
|
4 |
<!doctype html>
|
5 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
6 |
<head>
|
7 |
-
<meta charset="utf-8">
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
|
10 |
<?php do_action( 'amp_post_template_head', $this ); ?>
|
11 |
<?php
|
@@ -121,7 +130,7 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
121 |
</div>
|
122 |
<!-- .comment-author -->
|
123 |
<div class="comment-metadata">
|
124 |
-
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
|
125 |
<?php
|
126 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
127 |
?>
|
@@ -186,8 +195,8 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
186 |
<amp-social-share type="twitter"
|
187 |
width="50"
|
188 |
height="28"
|
189 |
-
|
190 |
-
|
191 |
></amp-social-share>
|
192 |
<?php } ?>
|
193 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
1 |
+
<?php global $redux_builder_amp , $wp;
|
2 |
$post_id = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
3 |
$template = new AMP_Post_Template( $post_id );?>
|
4 |
<!doctype html>
|
5 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
6 |
<head>
|
7 |
+
<meta charset="utf-8"> <?php
|
8 |
+
$page = $wp->query_vars['page'];
|
9 |
+
if ( $page >= '2') { ?>
|
10 |
+
<link rel="canonical" href="<?php
|
11 |
+
$ID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
12 |
+
echo trailingslashit( get_permalink( $ID ) ) . '?page=' . $page ?>"> <?php
|
13 |
+
} else { ?>
|
14 |
+
<link rel="canonical" href="<?php
|
15 |
+
$ID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
16 |
+
echo get_permalink( $ID ) ?>"> <?php
|
17 |
+
} ?>
|
18 |
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
|
19 |
<?php do_action( 'amp_post_template_head', $this ); ?>
|
20 |
<?php
|
130 |
</div>
|
131 |
<!-- .comment-author -->
|
132 |
<div class="comment-metadata">
|
133 |
+
<a href="<?php echo htmlspecialchars( trailingslashit( get_comment_link( $comment->comment_ID ) ) ) ?>">
|
134 |
<?php
|
135 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
136 |
?>
|
195 |
<amp-social-share type="twitter"
|
196 |
width="50"
|
197 |
height="28"
|
198 |
+
data-param-url="<?php echo wp_get_shortlink() ?>"
|
199 |
+
data-param-text="<?php echo $data_param_data ?> TITLE"
|
200 |
></amp-social-share>
|
201 |
<?php } ?>
|
202 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
@@ -14,7 +14,7 @@
|
|
14 |
}
|
15 |
} else {
|
16 |
if($redux_builder_amp['ampforwp-homepage-on-off-support']) {
|
17 |
-
$ampforwp_home_url = trailingslashit( get_bloginfo('url') ) . AMPFORWP_AMP_QUERY_VAR;
|
18 |
} else {
|
19 |
if( $redux_builder_amp['amp-mobile-redirection'] ) {
|
20 |
$ampforwp_home_url = untrailingslashit( get_bloginfo('url') ).'?nonamp=1';
|
@@ -44,7 +44,7 @@
|
|
44 |
<h3><a href="<?php echo esc_url( $ampforwp_home_url ); ?>" <?php if($set_rel_to_noamp){echo ' rel="nofollow"';} ?> ><?php bloginfo('name'); ?></a></h3>
|
45 |
<?php } ?>
|
46 |
<?php do_action('ampforwp_header_search'); ?>
|
47 |
-
|
48 |
</div>
|
49 |
</div>
|
50 |
</header>
|
@@ -58,8 +58,11 @@
|
|
58 |
layout="nodisplay"
|
59 |
side="right">
|
60 |
<div class="toggle-navigationv2">
|
61 |
-
<div role="button" tabindex="0" on='tap:sidebar.close' class="close-nav">X</div>
|
62 |
-
|
|
|
|
|
|
|
63 |
|
64 |
</div>
|
65 |
</amp-sidebar>
|
14 |
}
|
15 |
} else {
|
16 |
if($redux_builder_amp['ampforwp-homepage-on-off-support']) {
|
17 |
+
$ampforwp_home_url = trailingslashit( trailingslashit( get_bloginfo('url') ) . AMPFORWP_AMP_QUERY_VAR );
|
18 |
} else {
|
19 |
if( $redux_builder_amp['amp-mobile-redirection'] ) {
|
20 |
$ampforwp_home_url = untrailingslashit( get_bloginfo('url') ).'?nonamp=1';
|
44 |
<h3><a href="<?php echo esc_url( $ampforwp_home_url ); ?>" <?php if($set_rel_to_noamp){echo ' rel="nofollow"';} ?> ><?php bloginfo('name'); ?></a></h3>
|
45 |
<?php } ?>
|
46 |
<?php do_action('ampforwp_header_search'); ?>
|
47 |
+
<?php do_action('ampforwp_call_button'); ?>
|
48 |
</div>
|
49 |
</div>
|
50 |
</header>
|
58 |
layout="nodisplay"
|
59 |
side="right">
|
60 |
<div class="toggle-navigationv2">
|
61 |
+
<div role="button" tabindex="0" on='tap:sidebar.close' class="close-nav">X</div> <?php
|
62 |
+
$menu = wp_nav_menu( array(
|
63 |
+
'theme_location' => 'amp-menu' ,
|
64 |
+
'echo' => false) );
|
65 |
+
echo strip_tags( $menu , '<ul><li><a>'); ?>
|
66 |
|
67 |
</div>
|
68 |
</amp-sidebar>
|
@@ -57,7 +57,7 @@
|
|
57 |
} ?>
|
58 |
|
59 |
<?php if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();
|
60 |
-
$ampforwp_amp_post_url = trailingslashit( get_permalink() ) . AMPFORWP_AMP_QUERY_VAR ; ?>
|
61 |
|
62 |
<div class="amp-wp-content amp-loop-list">
|
63 |
<?php if ( has_post_thumbnail() ) { ?>
|
57 |
} ?>
|
58 |
|
59 |
<?php if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();
|
60 |
+
$ampforwp_amp_post_url = trailingslashit( trailingslashit( get_permalink() ) . AMPFORWP_AMP_QUERY_VAR ) ; ?>
|
61 |
|
62 |
<div class="amp-wp-content amp-loop-list">
|
63 |
<?php if ( has_post_thumbnail() ) { ?>
|
@@ -51,7 +51,7 @@
|
|
51 |
<h3 class="page-title"><?php echo $redux_builder_amp['amp-translator-search-text'] . ' ' . get_search_query();?> </h3>
|
52 |
</div>
|
53 |
<?php if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();
|
54 |
-
$ampforwp_amp_post_url = trailingslashit( get_permalink() ) . AMPFORWP_AMP_QUERY_VAR ; ?>
|
55 |
<div class="amp-wp-content amp-loop-list">
|
56 |
<?php if ( has_post_thumbnail() ) { ?>
|
57 |
<?php
|
51 |
<h3 class="page-title"><?php echo $redux_builder_amp['amp-translator-search-text'] . ' ' . get_search_query();?> </h3>
|
52 |
</div>
|
53 |
<?php if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();
|
54 |
+
$ampforwp_amp_post_url = trailingslashit( trailingslashit( get_permalink() ) . AMPFORWP_AMP_QUERY_VAR ); ?>
|
55 |
<div class="amp-wp-content amp-loop-list">
|
56 |
<?php if ( has_post_thumbnail() ) { ?>
|
57 |
<?php
|
@@ -21,18 +21,13 @@ function ampforwp_additional_style_input_2( $amp_template ) {
|
|
21 |
?>
|
22 |
|
23 |
/* Global Styling */
|
24 |
-
body{
|
25 |
-
|
26 |
-
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
}
|
32 |
-
.clearfix, .cb{
|
33 |
-
clear: both
|
34 |
-
}
|
35 |
-
amp-iframe { max-width: 100%; margin-bottom : 20px; }
|
36 |
|
37 |
/* Template Styles */
|
38 |
.amp-wp-content, .amp-wp-title-bar div {
|
@@ -43,116 +38,24 @@ amp-iframe { max-width: 100%; margin-bottom : 20px; }
|
|
43 |
}
|
44 |
|
45 |
/* Slide Navigation code */
|
46 |
-
.nav_container{
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
}
|
52 |
-
|
53 |
-
|
54 |
-
}
|
55 |
-
.
|
56 |
-
|
57 |
-
|
58 |
-
}
|
59 |
-
.
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
}
|
64 |
-
|
65 |
-
.toggle-navigationv2 ul {
|
66 |
-
list-style-type: none;
|
67 |
-
margin: 0;
|
68 |
-
padding: 0;
|
69 |
-
}
|
70 |
-
.toggle-navigationv2 ul ul li a {
|
71 |
-
padding-left: 35px;
|
72 |
-
background: #fff;
|
73 |
-
display: inline-block
|
74 |
-
}
|
75 |
-
.toggle-navigationv2 ul li a{
|
76 |
-
padding: 15px 25px;
|
77 |
-
width: 100%;
|
78 |
-
display: inline-block;
|
79 |
-
background: #fafafa;
|
80 |
-
font-size: 14px;
|
81 |
-
border-bottom: 1px solid #efefef;
|
82 |
-
}
|
83 |
-
.close-nav{
|
84 |
-
font-size: 12px;
|
85 |
-
background: rgba(0, 0, 0, 0.25);
|
86 |
-
letter-spacing: 1px;
|
87 |
-
display: inline-block;
|
88 |
-
padding: 10px;
|
89 |
-
border-radius: 100px;
|
90 |
-
line-height: 8px;
|
91 |
-
margin: 14px;
|
92 |
-
left: 191px;
|
93 |
-
color: #fff;
|
94 |
-
}
|
95 |
-
.close-nav:hover{
|
96 |
-
background: rgba(0, 0, 0, 0.45);
|
97 |
-
}
|
98 |
-
.toggle-navigation ul{
|
99 |
-
list-style-type: none;
|
100 |
-
margin: 0;
|
101 |
-
padding: 0;
|
102 |
-
display: inline-block;
|
103 |
-
width: 100%
|
104 |
-
}
|
105 |
-
.menu-all-pages-container:after{
|
106 |
-
content: "";
|
107 |
-
clear: both
|
108 |
-
}
|
109 |
-
.toggle-navigation ul li{
|
110 |
-
font-size: 13px;
|
111 |
-
border-bottom: 1px solid rgba(0, 0, 0, 0.11);
|
112 |
-
padding: 11px 0px;
|
113 |
-
width: 25%;
|
114 |
-
float: left;
|
115 |
-
text-align: center;
|
116 |
-
margin-top: 6px
|
117 |
-
}
|
118 |
-
.toggle-navigation ul ul{
|
119 |
-
display: none
|
120 |
-
}
|
121 |
-
.toggle-navigation ul li a{
|
122 |
-
color: #eee;
|
123 |
-
padding: 15px;
|
124 |
-
}
|
125 |
-
.toggle-navigation{
|
126 |
-
display: none;
|
127 |
-
background: #444;
|
128 |
-
}
|
129 |
-
.toggle-text{
|
130 |
-
color: #fff;
|
131 |
-
font-size: 12px;
|
132 |
-
text-transform: uppercase;
|
133 |
-
letter-spacing: 3px;
|
134 |
-
display: inherit;
|
135 |
-
text-align: center;
|
136 |
-
}
|
137 |
-
.toggle-text:before{
|
138 |
-
content: "...";
|
139 |
-
font-size: 32px;
|
140 |
-
position: ;
|
141 |
-
font-family: georgia;
|
142 |
-
line-height: 0px;
|
143 |
-
margin-left: 0px;
|
144 |
-
letter-spacing: 1px;
|
145 |
-
top: -3px;
|
146 |
-
position: relative;
|
147 |
-
padding-right: 10px;
|
148 |
-
}
|
149 |
-
.nav_container:hover + .toggle-navigation,
|
150 |
-
.toggle-navigation:hover,
|
151 |
-
.toggle-navigation:active,
|
152 |
-
.toggle-navigation:focus{
|
153 |
-
display: inline-block;
|
154 |
-
width: 100%;
|
155 |
-
}
|
156 |
/* Category 2 */
|
157 |
.amp-category-block, .category-widget-wrapper{ padding:30px 15% 10px 15% }
|
158 |
.amp-category-block ul{ list-style-type:none;padding:0 }
|
@@ -162,506 +65,126 @@ amp-sidebar {
|
|
162 |
.amp-category-block-title{ border-bottom: double #ddd; margin-bottom: 12px; padding-bottom: 1px; text-align: center; font-size: 12px; text-transform: uppercase; color: #666; }
|
163 |
.amp-category-post{ width: 32%; display:inline-table; }
|
164 |
.amp-category-post amp-img{ margin-bottom:5px; }
|
165 |
-
.amp-category-block li:nth-child(3){
|
166 |
-
|
167 |
-
}
|
168 |
-
.
|
169 |
-
|
170 |
-
margin-top: 11px;
|
171 |
-
position: absolute;
|
172 |
-
top: 0;
|
173 |
-
right: 0;
|
174 |
-
}
|
175 |
-
.searchmenu button{
|
176 |
-
background:transparent;
|
177 |
-
border:none
|
178 |
-
}
|
179 |
-
|
180 |
-
.closebutton{
|
181 |
-
background: transparent;
|
182 |
-
border: 0;
|
183 |
-
color: rgba(255, 255, 255, 0.7);
|
184 |
-
border: 1px solid rgba(255, 255, 255, 0.7);
|
185 |
-
border-radius: 30px;
|
186 |
-
width: 32px;
|
187 |
-
height: 32px;
|
188 |
-
font-size: 12px;
|
189 |
-
text-align: center;
|
190 |
-
position: absolute;
|
191 |
-
top: 12px;
|
192 |
-
right: 20px;
|
193 |
-
outline:none
|
194 |
-
}
|
195 |
-
amp-lightbox{
|
196 |
-
background: rgba(0, 0, 0,0.85);
|
197 |
-
}
|
198 |
/* CSS3 icon */
|
199 |
|
200 |
-
[class*=icono-]:after, [class*=icono-]:before {
|
201 |
-
|
202 |
-
|
203 |
-
}
|
204 |
-
.icono-search:
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
-ms-transform: rotate(270deg);
|
209 |
-
transform: rotate(270deg);
|
210 |
-
width: 2px;
|
211 |
-
height: 9px;
|
212 |
-
box-shadow: inset 0 0 0 32px;
|
213 |
-
top: 0px;
|
214 |
-
border-radius: 0 0 1px 1px;
|
215 |
-
left: 14px;
|
216 |
-
}
|
217 |
-
[class*=icono-] {
|
218 |
-
display: inline-block;
|
219 |
-
vertical-align: middle;
|
220 |
-
position: relative;
|
221 |
-
font-style: normal;
|
222 |
-
color: #f42;
|
223 |
-
text-align: left;
|
224 |
-
text-indent: -9999px;
|
225 |
-
direction: ltr
|
226 |
-
}
|
227 |
-
|
228 |
-
.icono-search {
|
229 |
-
-webkit-transform: translateX(-50%);
|
230 |
-
-ms-transform: translateX(-50%);
|
231 |
-
transform: translateX(-50%)
|
232 |
-
}
|
233 |
-
|
234 |
-
.icono-search {
|
235 |
-
border: 1px solid;
|
236 |
-
width: 10px;
|
237 |
-
height: 10px;
|
238 |
-
border-radius: 50%;
|
239 |
-
-webkit-transform: rotate(45deg);
|
240 |
-
-ms-transform: rotate(45deg);
|
241 |
-
transform: rotate(45deg);
|
242 |
-
margin: 4px 4px 8px 8px;
|
243 |
-
}
|
244 |
-
.searchform label{
|
245 |
-
color: #f7f7f7;
|
246 |
-
display: block;
|
247 |
-
font-size: 10px;
|
248 |
-
letter-spacing: 0.3px;
|
249 |
-
line-height: 0;
|
250 |
-
opacity:0.6
|
251 |
-
}
|
252 |
-
.searchform{
|
253 |
-
background: transparent;
|
254 |
-
left: 20%;
|
255 |
-
position: absolute;
|
256 |
-
top: 35%;
|
257 |
-
width: 60%;
|
258 |
-
max-width: 100%;
|
259 |
-
transition-delay: 0.5s;
|
260 |
-
}
|
261 |
-
.searchform input{
|
262 |
-
background: transparent;
|
263 |
-
border: 1px solid #666;
|
264 |
-
color: #f7f7f7;
|
265 |
-
font-size: 14px;
|
266 |
-
font-weight: 400;
|
267 |
-
line-height: 1;
|
268 |
-
letter-spacing: 0.3px;
|
269 |
-
text-transform: capitalize;
|
270 |
-
padding: 20px 0px 20px 30px;
|
271 |
-
margin-top: 15px;
|
272 |
-
width: 100%;
|
273 |
-
}
|
274 |
#searchsubmit{opacity:0}
|
275 |
.hide{display:none}
|
276 |
.headerlogo a, [class*=icono-]{ color: #F42F42 }
|
277 |
/* Pagination */
|
278 |
-
.amp-wp-content.pagination-holder {
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
min-height: auto;
|
284 |
-
}
|
285 |
-
#pagination{
|
286 |
-
width: 100%;
|
287 |
-
margin-top: 15px;
|
288 |
-
}
|
289 |
-
#pagination .next{
|
290 |
-
float: right;
|
291 |
-
margin-bottom: 10px;
|
292 |
-
}
|
293 |
-
#pagination .prev{
|
294 |
-
float: left
|
295 |
-
}
|
296 |
-
#pagination .next a, #pagination .prev a{
|
297 |
-
margin-bottom: 12px;
|
298 |
-
background: #fefefe;
|
299 |
-
-moz-border-radius: 2px;
|
300 |
-
-webkit-border-radius: 2px;
|
301 |
-
border-radius: 2px;
|
302 |
-
-moz-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
303 |
-
-webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
304 |
-
box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
305 |
-
padding: 11px 15px;
|
306 |
-
font-size: 12px;
|
307 |
-
color: #666;
|
308 |
-
}
|
309 |
-
|
310 |
/* Sticky Social bar in Single */
|
311 |
-
.ampforwp-social-icons-wrapper{
|
312 |
-
|
313 |
-
|
314 |
-
}
|
315 |
-
.sticky_social{
|
316 |
-
width: 100%;
|
317 |
-
bottom: 0;
|
318 |
-
display: block;
|
319 |
-
left: 0;
|
320 |
-
box-shadow: 0px 4px 7px #000;
|
321 |
-
background: #fff;
|
322 |
-
padding: 7px 0px 0px 0px;
|
323 |
-
position: fixed;
|
324 |
-
margin: 0;
|
325 |
-
z-index: 10;
|
326 |
-
text-align: center;
|
327 |
-
}
|
328 |
-
.whatsapp-share-icon {
|
329 |
-
width: 50px;
|
330 |
-
height: 20px;
|
331 |
-
display: inline-block;
|
332 |
-
background: #5cbe4a;
|
333 |
-
padding: 4px 0px;
|
334 |
-
position: relative;
|
335 |
-
top: -4px;
|
336 |
-
}
|
337 |
/* Header */
|
338 |
-
#header{
|
339 |
-
|
340 |
-
|
341 |
-
}
|
342 |
-
#
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
}
|
350 |
-
.amp-logo{
|
351 |
-
margin: 15px 0px 10px 0px;
|
352 |
-
}
|
353 |
-
|
354 |
-
main {
|
355 |
-
padding: 30px 15% 10px 15%;
|
356 |
-
}
|
357 |
-
main .amp-wp-content{
|
358 |
-
margin-bottom: 12px;
|
359 |
-
background: #fefefe;
|
360 |
-
-moz-border-radius: 2px;
|
361 |
-
-webkit-border-radius: 2px;
|
362 |
-
border-radius: 2px;
|
363 |
-
-moz-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
364 |
-
-webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
365 |
-
box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
366 |
-
padding: 15px;
|
367 |
-
}
|
368 |
-
.home-post_image {
|
369 |
-
float: right;
|
370 |
-
margin-left: 15px;
|
371 |
-
margin-bottom: -6px;
|
372 |
-
}
|
373 |
-
.amp-wp-title {
|
374 |
-
margin-top: 0px;
|
375 |
-
}
|
376 |
-
h2.amp-wp-title {
|
377 |
-
line-height: 30px;
|
378 |
-
}
|
379 |
-
h2.amp-wp-title a{
|
380 |
-
font-weight: 300;
|
381 |
-
color: #000;
|
382 |
-
font-size: 20px;
|
383 |
-
}
|
384 |
-
h2.amp-wp-title , .amp-wp-post-content p{
|
385 |
-
margin: 0 0 0 5px;
|
386 |
-
}
|
387 |
-
.amp-wp-post-content p{
|
388 |
-
font-size: 12px;
|
389 |
-
color: #999;
|
390 |
-
line-height: 20px;
|
391 |
-
margin: 3px 0 0 5px;
|
392 |
-
}
|
393 |
-
main .amp-archive-heading {
|
394 |
-
background : none;
|
395 |
-
box-shadow: none;
|
396 |
-
padding: 5px;
|
397 |
-
}
|
398 |
/* Footer */
|
399 |
-
#footer{
|
400 |
-
|
401 |
-
|
402 |
-
text-align: center;
|
403 |
-
letter-spacing: 0.2px;
|
404 |
-
padding: 20px 0;
|
405 |
-
}
|
406 |
-
#footer p:first-child{
|
407 |
-
margin-bottom: 12px;
|
408 |
-
}
|
409 |
-
#footer p{
|
410 |
-
margin: 0
|
411 |
-
}
|
412 |
/* Single */
|
413 |
-
.comment-button-wrapper{
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
}
|
418 |
-
.
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
}
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
}
|
431 |
-
.amp-wp-content
|
432 |
-
.amp-wp-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
}
|
437 |
-
.
|
438 |
-
|
439 |
-
}
|
440 |
-
.single-post .
|
441 |
-
|
442 |
-
}
|
443 |
-
.single-post .ampforwp-social-icons{
|
444 |
-
display:inline-block
|
445 |
-
}
|
446 |
-
.post-pagination-meta .amp-wp-tax-category,
|
447 |
-
.post-title-meta .amp-wp-tax-tag {
|
448 |
-
display : none;
|
449 |
-
}
|
450 |
-
.amp-meta-wrapper{
|
451 |
-
border-bottom: 1px solid #DADADA;
|
452 |
-
padding-bottom:10px;
|
453 |
-
display:inline-block;
|
454 |
-
width:100%;
|
455 |
-
margin-bottom:0
|
456 |
-
}
|
457 |
-
.amp-wp-meta {
|
458 |
-
padding-left: 0;
|
459 |
-
}
|
460 |
-
.amp-wp-tax-category {
|
461 |
-
float:right
|
462 |
-
}
|
463 |
-
.amp-wp-tax-tag,
|
464 |
-
.amp-wp-meta li {
|
465 |
-
list-style: none;
|
466 |
-
display: inline-block;
|
467 |
-
}
|
468 |
-
li.amp-wp-tax-category {
|
469 |
-
float: right
|
470 |
-
}
|
471 |
-
.amp-wp-byline, .amp-wp-posted-on {
|
472 |
-
float: left
|
473 |
-
}
|
474 |
-
|
475 |
-
.amp-wp-content amp-img {
|
476 |
-
max-width: 100%;
|
477 |
-
}
|
478 |
-
figure{
|
479 |
-
margin: 0;
|
480 |
-
}
|
481 |
-
figcaption{
|
482 |
-
font-size: 11px;
|
483 |
-
margin-bottom: 11px;
|
484 |
-
background: #eee;
|
485 |
-
padding: 6px 8px;
|
486 |
-
}
|
487 |
-
.amp-wp-byline amp-img {
|
488 |
-
display: none;
|
489 |
-
}
|
490 |
-
.amp-wp-author:before {
|
491 |
-
content: "By ";
|
492 |
-
color: #555;
|
493 |
-
}
|
494 |
-
.amp-wp-author{
|
495 |
-
margin-right: 1px;
|
496 |
-
}
|
497 |
-
.amp-wp-meta {
|
498 |
-
font-size: 12px;
|
499 |
-
color: #555;
|
500 |
-
}
|
501 |
-
.amp-ad-wrapper {
|
502 |
-
text-align: center
|
503 |
-
}
|
504 |
-
.single-post main{
|
505 |
-
padding:12px 15% 10px 15%
|
506 |
-
}
|
507 |
-
.the_content p{
|
508 |
-
margin-top: 5px;
|
509 |
-
color: #333;
|
510 |
-
font-size: 15px;
|
511 |
-
line-height: 26px;
|
512 |
-
margin-bottom: 15px;
|
513 |
-
}
|
514 |
-
.amp-wp-tax-tag{
|
515 |
-
font-size: 13px;
|
516 |
-
border: 0;
|
517 |
-
display: inline-block;
|
518 |
-
margin: 0.5em 0px 0.7em 0px;
|
519 |
-
width: 100%;
|
520 |
-
}
|
521 |
-
main .amp-wp-content.featured-image-content {
|
522 |
-
padding: 0px;
|
523 |
-
border: 0;
|
524 |
-
margin-bottom: 0;
|
525 |
-
box-shadow: none
|
526 |
-
}
|
527 |
-
.amp-wp-content.post-pagination-meta{
|
528 |
-
max-width: 1030px;
|
529 |
-
}
|
530 |
-
.single-post .ampforwp-social-icons.ampforwp-social-icons-wrapper {
|
531 |
-
display: block;
|
532 |
-
margin: 2em auto 0.9em auto ;
|
533 |
-
max-width: 1030px;
|
534 |
-
}
|
535 |
-
.amp-wp-article-header.amp-wp-article-category.ampforwp-meta-taxonomy {
|
536 |
-
margin: 10px auto;
|
537 |
-
max-width: 1030px;
|
538 |
-
}
|
539 |
/* Related Posts */
|
540 |
-
main .amp-wp-content.relatedpost
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
}
|
547 |
-
.related_posts
|
548 |
-
|
549 |
-
|
550 |
-
letter-spacing: 0.4px;
|
551 |
-
margin: 15px 0 10px 0;
|
552 |
-
color: #333;
|
553 |
-
}
|
554 |
-
.related_posts ol{
|
555 |
-
list-style-type:none;
|
556 |
-
margin:0;
|
557 |
-
padding:0
|
558 |
-
}
|
559 |
-
.related_posts ol li{
|
560 |
-
display:inline-block;
|
561 |
-
width:100%;
|
562 |
-
margin-bottom: 12px;
|
563 |
-
background: #fefefe;
|
564 |
-
-moz-border-radius: 2px;
|
565 |
-
-webkit-border-radius: 2px;
|
566 |
-
border-radius: 2px;
|
567 |
-
-moz-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
568 |
-
-webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
569 |
-
box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
570 |
-
padding: 0px;
|
571 |
-
}
|
572 |
-
.related_posts .related_link{
|
573 |
-
margin-top:18px;
|
574 |
-
margin-bottom:10px;
|
575 |
-
margin-right:10px
|
576 |
-
}
|
577 |
-
.related_posts .related_link a{
|
578 |
-
font-weight: 300;
|
579 |
-
color: #000;
|
580 |
-
font-size: 18px;
|
581 |
-
}
|
582 |
-
.related_posts ol li amp-img{
|
583 |
-
width:100px;
|
584 |
-
float:left;
|
585 |
-
margin-right:15px
|
586 |
-
}
|
587 |
-
.related_posts ol li p{
|
588 |
-
font-size: 12px;
|
589 |
-
color: #999;
|
590 |
-
line-height: 1.2;
|
591 |
-
margin: 12px 0 0 0;
|
592 |
-
}
|
593 |
-
.no_related_thumbnail{
|
594 |
-
padding: 15px 18px;
|
595 |
-
}
|
596 |
-
.no_related_thumbnail .related_link{
|
597 |
-
margin: 16px 18px 20px 19px;
|
598 |
-
}
|
599 |
/* Comments */
|
600 |
.page-numbers{padding: 9px 10px;background: #fff;font-size: 14px}
|
601 |
.ampforwp-comment-wrapper{margin:1.8em 0px 1.5em 0px}
|
602 |
main .amp-wp-content.comments_list {background: none;box-shadow: none;max-width: 1030px;padding:0}
|
603 |
-
.comments_list div{display:inline-block;}
|
604 |
-
.comments_list ul{margin:0;padding:0}
|
605 |
-
.comments_list ul.children{padding-bottom:10px;margin-left: 4%;width: 96%;}
|
606 |
-
.comments_list ul li p{margin:0;font-size:15px;clear:both;padding-top:16px;}
|
607 |
.comments_list ul li{ font-size:13px;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: 0px;max-width: 1000px;width:100%;}
|
608 |
-
.comments_list ul li .comment-body{padding: 25px;width: 91%;}
|
609 |
-
.comments_list ul li .comment-body .comment-author{margin-right:5px}
|
610 |
.comment-author{ float:left }
|
611 |
-
.single-post footer.comment-meta{padding-bottom: 0;}
|
612 |
-
.comments_list li li{margin: 20px 20px 10px 20px;background: #f7f7f7;box-shadow: none;border: 1px solid #eee;}
|
613 |
-
.comments_list li li li{margin:20px 20px 10px 20px}
|
614 |
/* ADS */
|
615 |
-
.amp_home_body .amp_ad_1{
|
616 |
-
|
617 |
-
|
618 |
-
}
|
619 |
-
.single-post .amp_ad_1{
|
620 |
-
margin-top: 10px;
|
621 |
-
margin-bottom: -20px;
|
622 |
-
}
|
623 |
-
html .single-post .ampforwp-incontent-ad-1 {
|
624 |
-
margin-bottom: 10px;
|
625 |
-
}
|
626 |
-
.amp-ad-4{
|
627 |
-
margin-top:10px;
|
628 |
-
}
|
629 |
/* Notifications */
|
630 |
-
#amp-user-notification1 p {
|
631 |
-
|
632 |
-
}
|
633 |
-
amp-user-notification {
|
634 |
-
|
635 |
-
|
636 |
-
background: #fff;
|
637 |
-
border-top: 1px solid;
|
638 |
-
}
|
639 |
-
amp-user-notification button {
|
640 |
-
padding: 8px 10px;
|
641 |
-
background: #000;
|
642 |
-
color: #fff;
|
643 |
-
margin-left: 5px;
|
644 |
-
border: 0;
|
645 |
-
}
|
646 |
-
amp-user-notification button:hover {
|
647 |
-
cursor: pointer
|
648 |
-
}
|
649 |
-
.amp-wp-content blockquote {
|
650 |
-
background-color: #fff;
|
651 |
-
border-left: 3px solid;
|
652 |
-
margin: 0;
|
653 |
-
padding: 15px 20px 8px 24px;
|
654 |
-
background: #f3f3f3;
|
655 |
-
}
|
656 |
-
pre {
|
657 |
-
white-space: pre-wrap;
|
658 |
-
}
|
659 |
/* Tables */
|
|
|
660 |
table a:link { color: #666; font-weight: bold; text-decoration: none; }
|
661 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
662 |
table a:active,
|
663 |
table a:hover { color: #bd5a35; text-decoration: underline; }
|
664 |
-
table { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background: #eee; margin:
|
665 |
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); }
|
666 |
table th:first-child { text-align: left; padding-left: 20px; }
|
667 |
table tr:first-child th:first-child { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
@@ -676,255 +199,72 @@ table tr:last-child td:last-child { -moz-border-radius-bottomright: 3px; -webkit
|
|
676 |
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); }
|
677 |
|
678 |
/* Responsive */
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
}
|
690 |
-
@media screen and (max-width:
|
691 |
-
|
692 |
-
|
693 |
-
.related_posts .related_link { margin: 17px 18px 17px 19px; }
|
694 |
-
.comments_list ul li .comment-body{ width:auto }
|
695 |
-
}
|
696 |
-
@media screen and (max-width: 425px) {
|
697 |
-
.related_posts .related_link p{
|
698 |
-
display:none
|
699 |
-
}
|
700 |
-
.related_posts .related_link {
|
701 |
-
margin: 13px 18px 14px 19px;
|
702 |
-
}
|
703 |
-
.related_posts .related_link a{
|
704 |
-
font-size: 18px;
|
705 |
-
line-height: 1.7;
|
706 |
-
}
|
707 |
-
.amp-meta-wrapper{
|
708 |
-
display: inline-block;
|
709 |
-
margin-bottom: 0px;
|
710 |
-
margin-top: 8px;
|
711 |
-
width:100%
|
712 |
-
}
|
713 |
-
.ampforwp-tax-category{
|
714 |
-
padding-bottom:0
|
715 |
-
}
|
716 |
-
h1.amp-wp-title{
|
717 |
-
margin: 16px 0px 13px 0px;
|
718 |
-
}
|
719 |
-
.amp-wp-byline{
|
720 |
-
padding:0
|
721 |
-
}
|
722 |
-
.amp-meta-wrapper .amp-wp-meta-date{
|
723 |
-
display:none
|
724 |
-
}
|
725 |
-
.related_posts .related_link a {
|
726 |
-
font-size: 17px;
|
727 |
-
line-height: 1.5;
|
728 |
-
}
|
729 |
-
}
|
730 |
-
@media screen and (max-width: 375px) {
|
731 |
-
#pagination .next a, #pagination .prev a{
|
732 |
-
padding: 10px 6px;
|
733 |
-
font-size: 11px;
|
734 |
-
color: #666;
|
735 |
-
}
|
736 |
-
.related_posts h3, .comments_list h3{
|
737 |
-
margin-top:15px;
|
738 |
-
}
|
739 |
-
#pagination .next{
|
740 |
-
margin-bottom:15px;
|
741 |
-
}
|
742 |
-
.related_posts .related_link a {
|
743 |
-
font-size: 15px;
|
744 |
-
line-height: 1.6;
|
745 |
-
}
|
746 |
-
}
|
747 |
-
@media screen and (max-width: 340px) {
|
748 |
-
.related_posts .related_link a { font-size: 15px; }
|
749 |
-
.single-post main{ padding: 10px 5px 10px 5px }
|
750 |
-
.the_content .amp-ad-wrapper{ text-align: center; margin-left: -13px; }
|
751 |
-
.amp-category-post {line-height: 1.45;font-size: 12px; }
|
752 |
-
.amp-category-block li:nth-child(3) {margin:0%}
|
753 |
-
}
|
754 |
-
@media screen and (max-width: 320px) {
|
755 |
-
.related_posts .related_link a {
|
756 |
-
font-size: 13px;
|
757 |
-
}
|
758 |
-
h1.amp-wp-title{
|
759 |
-
font-size:17px;
|
760 |
-
padding:0px 4px
|
761 |
-
}
|
762 |
-
}
|
763 |
-
@media screen and (max-width: 400px) {
|
764 |
-
.amp-wp-title{
|
765 |
-
font-size: 19px;
|
766 |
-
margin: 21px 10px -1px 10px;
|
767 |
-
}
|
768 |
-
}
|
769 |
-
@media screen and (max-width: 767px) {
|
770 |
-
.amp-wp-post-content p{ display: block }
|
771 |
-
.amp-wp-post-content p{ display: none }
|
772 |
-
main, .amp-category-block, .category-widget-wrapper{ padding: 15px 18px 0px 18px; }
|
773 |
-
.toggle-navigation ul li{ width: 50% }
|
774 |
-
}
|
775 |
-
@media screen and (max-width: 495px) {
|
776 |
-
h2.amp-wp-title a{ font-size: 17px; line-height: 26px;}
|
777 |
-
}
|
778 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
779 |
-
header, amp-sidebar, article, footer, main{direction: rtl;}
|
780 |
-
.amp-wp-header .amp-wp-site-icon{position: relative;float: left; }
|
781 |
-
.amp-wp-header .nav_container{float: left;right: initial;left: -11px;}
|
782 |
-
.amp-wp-header .amp-wp-site-icon{top: -3px;right: initial;left: -11px;}
|
783 |
-
.amp-wp-byline, .amp-wp-posted-on{float:right}
|
784 |
-
.amp-wp-tax-category{float:left}
|
785 |
-
.related_posts ol li amp-img{float:right; margin-right:0px; margin-left:15px}
|
786 |
-
main .amp-archive-heading{direction:rtl}
|
787 |
-
.searchform{direction:rtl}
|
788 |
-
.closebutton{right:0; left:20px}
|
789 |
-
.amp-meta-wrapper{padding-right:0}
|
790 |
-
.comment-author{float:right; margin-left:5px; }
|
791 |
-
|
792 |
<?php } ?>
|
793 |
|
794 |
/* Style Modifer */
|
795 |
<?php $color = $redux_builder_amp['opt-color-rgba']['color']; ?>
|
796 |
-
.amp-wp-tax-tag a,
|
797 |
-
|
798 |
-
.
|
799 |
-
|
800 |
-
}
|
801 |
-
|
802 |
-
border-color:<?php echo sanitize_hex_color( $header_background_color ); ?>;;
|
803 |
-
}
|
804 |
-
.nav_container, .comment-button-wrapper a {
|
805 |
-
background: <?php echo sanitize_hex_color( $header_background_color ); ?>;;
|
806 |
-
}
|
807 |
-
.nav_container a{
|
808 |
-
color:<?php echo sanitize_hex_color( $header_color ); ?>
|
809 |
-
}
|
810 |
-
amp-user-notification {
|
811 |
-
border-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;;
|
812 |
-
}
|
813 |
-
amp-user-notification button {
|
814 |
-
background-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;;
|
815 |
-
}
|
816 |
<?php if( $redux_builder_amp['enable-single-social-icons'] == true && is_socialshare_or_socialsticky_enabled_in_ampforwp() ) { ?>
|
817 |
-
|
818 |
-
padding-bottom: 40px;
|
819 |
-
}
|
820 |
.amp-ad-2{ margin-bottom: 50px; }
|
821 |
<?php } ?>
|
822 |
/**/
|
823 |
-
.
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
}
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
.
|
834 |
-
|
835 |
-
|
836 |
-
}
|
837 |
-
.
|
838 |
-
|
839 |
-
}
|
840 |
-
.
|
841 |
-
|
842 |
-
}
|
843 |
-
.
|
844 |
-
|
845 |
-
|
846 |
-
}
|
847 |
-
.ampforwp-tax-category span:last-child:after,
|
848 |
-
.ampforwp-tax-tag span:last-child:after {
|
849 |
-
content: ' ';
|
850 |
-
}
|
851 |
-
/* New V0.8.7(drag and drop) style */
|
852 |
-
.amp-wp-article-content img {
|
853 |
-
max-width: 100%;
|
854 |
-
}
|
855 |
-
|
856 |
-
|
857 |
-
<?php
|
858 |
-
// Table press support
|
859 |
-
if ( class_exists('TablePress') ) { ?>
|
860 |
-
/* Table description */
|
861 |
-
.tablepress-table-description {
|
862 |
-
clear: both;
|
863 |
-
display: block;
|
864 |
-
}
|
865 |
-
|
866 |
-
.tablepress {
|
867 |
-
border-collapse: collapse;
|
868 |
-
border-spacing: 0;
|
869 |
-
width: 100%;
|
870 |
-
margin-bottom: 1em;
|
871 |
-
border: none;
|
872 |
-
}
|
873 |
-
|
874 |
-
.tablepress th,
|
875 |
-
.tablepress td {
|
876 |
-
padding: 8px;
|
877 |
-
border: none;
|
878 |
-
background: none;
|
879 |
-
text-align: left;
|
880 |
-
}
|
881 |
-
.tablepress tbody td {
|
882 |
-
vertical-align: top;
|
883 |
-
}
|
884 |
-
|
885 |
-
/* Horizontal borders */
|
886 |
-
.tablepress tbody td,
|
887 |
-
.tablepress tfoot th {
|
888 |
-
border-top: 1px solid #dddddd;
|
889 |
-
}
|
890 |
-
.tablepress tbody tr:first-child td {
|
891 |
-
border-top: 0;
|
892 |
-
}
|
893 |
-
.tablepress thead th {
|
894 |
-
border-bottom: 1px solid #dddddd;
|
895 |
-
}
|
896 |
-
|
897 |
-
/* Row background colors */
|
898 |
-
.tablepress thead th,
|
899 |
-
.tablepress tfoot th {
|
900 |
-
background-color: #d9edf7;
|
901 |
-
font-weight: bold;
|
902 |
-
vertical-align: middle;
|
903 |
-
}
|
904 |
-
.tablepress .odd td {
|
905 |
-
background-color: #f9f9f9;
|
906 |
-
}
|
907 |
-
.tablepress .even td {
|
908 |
-
background-color: #ffffff;
|
909 |
-
}
|
910 |
-
.tablepress .row-hover tr:hover td {
|
911 |
-
background-color: #f3f3f3;
|
912 |
-
}
|
913 |
-
|
914 |
-
@media (min-width: 768px) and (max-width: 1600px) {
|
915 |
-
.tablepress{
|
916 |
-
overflow-x: none;
|
917 |
-
}
|
918 |
-
}
|
919 |
-
@media (min-width: 320px) and (max-width: 767px) {
|
920 |
-
.tablepress{
|
921 |
-
display: inline-block;
|
922 |
-
overflow-x: scroll;
|
923 |
-
}
|
924 |
-
}
|
925 |
-
|
926 |
<?php } ?>
|
927 |
|
928 |
-
|
929 |
-
<?php echo $redux_builder_amp['css_editor'];
|
930 |
-
} ?>
|
21 |
?>
|
22 |
|
23 |
/* Global Styling */
|
24 |
+
body{ background: #f1f1f1; font: 16px/1.4 Sans-serif; }
|
25 |
+
a { color: #312C7E; text-decoration: none }
|
26 |
+
.clearfix, .cb { clear: both }
|
27 |
+
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 {
|
38 |
}
|
39 |
|
40 |
/* Slide Navigation code */
|
41 |
+
.nav_container{ padding: 18px 15px; background: #312C7E; color: #fff; text-align: center }
|
42 |
+
amp-sidebar{ width: 250px; }
|
43 |
+
.amp-sidebar-image{ line-height: 100px; vertical-align:middle; }
|
44 |
+
.amp-close-image{ top: 15px; left: 225px; cursor: pointer; }
|
45 |
+
.toggle-navigationv2 ul{ list-style-type: none; margin: 0; padding: 0; }
|
46 |
+
.toggle-navigationv2 ul ul li a{ padding-left: 35px; background: #fff; display: inline-block }
|
47 |
+
.toggle-navigationv2 ul li a{ padding: 15px 25px; width: 100%; display: inline-block; background: #fafafa; font-size: 14px; border-bottom: 1px solid #efefef; }
|
48 |
+
.close-nav{ font-size: 12px; background: rgba(0, 0, 0, 0.25); letter-spacing: 1px; display: inline-block; padding: 10px; border-radius: 100px; line-height: 8px; margin: 14px; left: 191px; color: #fff; }
|
49 |
+
.close-nav:hover{ background: rgba(0, 0, 0, 0.45);}
|
50 |
+
.toggle-navigation ul{ list-style-type: none; margin: 0; padding: 0; display: inline-block; width: 100% }
|
51 |
+
.menu-all-pages-container:after{ content: ""; clear: both }
|
52 |
+
.toggle-navigation ul li{ font-size: 13px; border-bottom: 1px solid rgba(0, 0, 0, 0.11); padding: 11px 0px; width: 25%; float: left; text-align: center; margin-top: 6px }
|
53 |
+
.toggle-navigation ul ul{ display: none }
|
54 |
+
.toggle-navigation ul li a{ color: #eee; padding: 15px; }
|
55 |
+
.toggle-navigation{ display: none; background: #444; }
|
56 |
+
.toggle-text{ color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 3px; display: inherit; text-align: center; }
|
57 |
+
.toggle-text:before{ content: "..."; font-size: 32px; position: ; font-family: georgia; line-height: 0px; margin-left: 0px; letter-spacing: 1px; top: -3px; position: relative; padding-right: 10px; }
|
58 |
+
.nav_container:hover + .toggle-navigation, .toggle-navigation:hover, .toggle-navigation:active, .toggle-navigation:focus{ display: inline-block; width: 100%; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
/* Category 2 */
|
60 |
.amp-category-block, .category-widget-wrapper{ padding:30px 15% 10px 15% }
|
61 |
.amp-category-block ul{ list-style-type:none;padding:0 }
|
65 |
.amp-category-block-title{ border-bottom: double #ddd; margin-bottom: 12px; padding-bottom: 1px; text-align: center; font-size: 12px; text-transform: uppercase; color: #666; }
|
66 |
.amp-category-post{ width: 32%; display:inline-table; }
|
67 |
.amp-category-post amp-img{ margin-bottom:5px; }
|
68 |
+
.amp-category-block li:nth-child(3){ margin: 0 1%;}
|
69 |
+
.searchmenu{ margin-right: 15px; margin-top: 11px; position: absolute; top: 0; right: 0; }
|
70 |
+
.searchmenu button{ background:transparent; border:none }
|
71 |
+
.closebutton{ background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 30px; width: 32px; height: 32px; font-size: 12px; text-align: center; position: absolute; top: 12px; right: 20px; outline:none }
|
72 |
+
amp-lightbox{ background: rgba(0, 0, 0,0.85); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
/* CSS3 icon */
|
74 |
|
75 |
+
[class*=icono-]:after, [class*=icono-]:before { content: ''; pointer-events: none; }
|
76 |
+
.icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
|
77 |
+
[class*=icono-] { display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
|
78 |
+
.icono-search { -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%) }
|
79 |
+
.icono-search { border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
|
80 |
+
.searchform label{ color: #f7f7f7; display: block; font-size: 10px; letter-spacing: 0.3px; line-height: 0; opacity:0.6 }
|
81 |
+
.searchform{ background: transparent; left: 20%; position: absolute; top: 35%; width: 60%; max-width: 100%; transition-delay: 0.5s; }
|
82 |
+
.searchform input{ background: transparent; border: 1px solid #666; color: #f7f7f7; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: 0.3px; text-transform: capitalize; padding: 20px 0px 20px 30px; margin-top: 15px; width: 100%; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
#searchsubmit{opacity:0}
|
84 |
.hide{display:none}
|
85 |
.headerlogo a, [class*=icono-]{ color: #F42F42 }
|
86 |
/* Pagination */
|
87 |
+
.amp-wp-content.pagination-holder { background: none; padding: 0; box-shadow: none; height: auto; min-height: auto; }
|
88 |
+
#pagination{ width: 100%; margin-top: 15px; }
|
89 |
+
#pagination .next{ float: right; margin-bottom: 10px; }
|
90 |
+
#pagination .prev{ float: left }
|
91 |
+
#pagination .next a, #pagination .prev a{ 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: 11px 15px; font-size: 12px; color: #666; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
.whatsapp-share-icon{ width: 50px; height: 20px; display: inline-block; background: #5cbe4a; padding: 4px 0px; position: relative; top: -4px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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; }
|
99 |
+
.amp-logo{ margin: 15px 0px 10px 0px; }
|
100 |
+
main{ padding: 30px 15% 10px 15%; }
|
101 |
+
main .amp-wp-content{ 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: 15px; }
|
102 |
+
.home-post_image{ float: right; margin-left: 15px; margin-bottom: -6px; }
|
103 |
+
.amp-wp-title{ margin-top: 0px; }
|
104 |
+
h2.amp-wp-title{ line-height: 30px; }
|
105 |
+
h2.amp-wp-title a{ font-weight: 300; color: #000; font-size: 20px; }
|
106 |
+
h2.amp-wp-title , .amp-wp-post-content p{ margin: 0 0 0 5px; }
|
107 |
+
.amp-wp-post-content p{ font-size: 12px; color: #999; line-height: 20px; margin: 3px 0 0 5px; }
|
108 |
+
main .amp-archive-heading{ background : none; box-shadow: none; padding: 5px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
/* Footer */
|
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: 40px; margin-top: 25px; text-align:center }
|
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 }
|
118 |
+
.post-pagination-meta{ min-height:75px }
|
119 |
+
.single-post .post-pagination-meta{ min-height:auto }
|
120 |
+
.single-post .ampforwp-social-icons{ display:inline-block }
|
121 |
+
.post-pagination-meta .amp-wp-tax-category, .post-title-meta .amp-wp-tax-tag{ display : none; }
|
122 |
+
.amp-meta-wrapper{ border-bottom: 1px solid #DADADA; padding-bottom:10px; display:inline-block; width:100%; margin-bottom:0 }
|
123 |
+
.amp-wp-meta{ padding-left: 0; }
|
124 |
+
.amp-wp-tax-category{ float:right }
|
125 |
+
.amp-wp-tax-tag, .amp-wp-meta li{ list-style: none; display: inline-block; }
|
126 |
+
li.amp-wp-tax-category{ float: right }
|
127 |
+
.amp-wp-byline, .amp-wp-posted-on{ float: left }
|
128 |
+
.amp-wp-content amp-img{ max-width: 100%; }
|
129 |
+
figure{ margin: 0; }
|
130 |
+
figcaption{ font-size: 11px; margin-bottom: 11px; background: #eee; padding: 6px 8px; }
|
131 |
+
.amp-wp-byline amp-img{ display: none; }
|
132 |
+
.amp-wp-author:before{ content: "By "; color: #555; }
|
133 |
+
.amp-wp-author{ margin-right: 1px; }
|
134 |
+
.amp-wp-meta{ font-size: 12px; color: #555; }
|
135 |
+
.amp-ad-wrapper{ text-align: center }
|
136 |
+
.single-post main{ padding:12px 15% 10px 15% }
|
137 |
+
.the_content p{ margin-top: 5px; color: #333; font-size: 15px; line-height: 26px; margin-bottom: 15px; }
|
138 |
+
.amp-wp-tax-tag{ font-size: 13px; border: 0; display: inline-block; margin: 0.5em 0px 0.7em 0px; width: 100%; }
|
139 |
+
main .amp-wp-content.featured-image-content{ padding: 0px; border: 0; margin-bottom: 0; box-shadow: none }
|
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; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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; }
|
146 |
+
.related_posts ol{ list-style-type:none; margin:0; padding:0 }
|
147 |
+
.related_posts ol li{ display:inline-block; width:100%; 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: 0px; }
|
148 |
+
.related_posts .related_link{ margin-top:18px; margin-bottom:10px; margin-right:10px }
|
149 |
+
.related_posts .related_link a{ font-weight: 300; color: #000; font-size: 18px; }
|
150 |
+
.related_posts ol li amp-img{ width:100px; float:left; margin-right:15px }
|
151 |
+
.related_posts ol li p{ font-size: 12px; color: #999; line-height: 1.2; margin: 12px 0 0 0; }
|
152 |
+
.no_related_thumbnail{ padding: 15px 18px; }
|
153 |
+
.no_related_thumbnail .related_link{ margin: 16px 18px 20px 19px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
/* Comments */
|
155 |
.page-numbers{padding: 9px 10px;background: #fff;font-size: 14px}
|
156 |
.ampforwp-comment-wrapper{margin:1.8em 0px 1.5em 0px}
|
157 |
main .amp-wp-content.comments_list {background: none;box-shadow: none;max-width: 1030px;padding:0}
|
158 |
+
.comments_list div{ display:inline-block;}
|
159 |
+
.comments_list ul{ margin:0;padding:0}
|
160 |
+
.comments_list ul.children{ padding-bottom:10px; margin-left: 4%; width: 96%;}
|
161 |
+
.comments_list ul li p{ margin:0;font-size:15px;clear:both;padding-top:16px;}
|
162 |
.comments_list ul li{ font-size:13px;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: 0px;max-width: 1000px;width:100%;}
|
163 |
+
.comments_list ul li .comment-body{ padding: 25px;width: 91%;}
|
164 |
+
.comments_list ul li .comment-body .comment-author{ margin-right:5px}
|
165 |
.comment-author{ float:left }
|
166 |
+
.single-post footer.comment-meta{ padding-bottom: 0;}
|
167 |
+
.comments_list li li{ margin: 20px 20px 10px 20px;background: #f7f7f7;box-shadow: none;border: 1px solid #eee;}
|
168 |
+
.comments_list li li li{ margin:20px 20px 10px 20px}
|
169 |
/* ADS */
|
170 |
+
.amp_home_body .amp_ad_1{ margin-top: 10px; margin-bottom: -20px; }
|
171 |
+
.single-post .amp_ad_1{ margin-top: 10px; margin-bottom: -20px; }
|
172 |
+
html .single-post .ampforwp-incontent-ad-1 { margin-bottom: 10px; }
|
173 |
+
.amp-ad-4{ margin-top:10px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
/* Notifications */
|
175 |
+
#amp-user-notification1 p { display: inline-block; }
|
176 |
+
amp-user-notification { padding: 5px; text-align: center; background: #fff; border-top: 1px solid; }
|
177 |
+
amp-user-notification button { padding: 8px 10px; background: #000; color: #fff; margin-left: 5px; border: 0; }
|
178 |
+
amp-user-notification button:hover { cursor: pointer }
|
179 |
+
.amp-wp-content blockquote { background-color: #fff; border-left: 3px solid; margin: 0; padding: 15px 20px 8px 24px; background: #f3f3f3; }
|
180 |
+
pre { white-space: pre-wrap; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
/* Tables */
|
182 |
+
table { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; overflow-x: auto; }
|
183 |
table a:link { color: #666; font-weight: bold; text-decoration: none; }
|
184 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
185 |
table a:active,
|
186 |
table a:hover { color: #bd5a35; text-decoration: underline; }
|
187 |
+
table { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background: #eee; margin: 0px; width: 95%; }
|
188 |
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); }
|
189 |
table th:first-child { text-align: left; padding-left: 20px; }
|
190 |
table tr:first-child th:first-child { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
199 |
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); }
|
200 |
|
201 |
/* Responsive */
|
202 |
+
@media screen and (max-width: 800px) { .single-post main{ padding: 12px 10px 10px 10px } }
|
203 |
+
@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%} }
|
204 |
+
@media screen and (max-width: 510px) { .ampforwp-tax-category span{ display:none }
|
205 |
+
.related_posts ol li p{ line-height: 1.6; margin: 7px 0 0 0; }
|
206 |
+
.related_posts .related_link { margin: 17px 18px 17px 19px; }
|
207 |
+
.comments_list ul li .comment-body{ width:auto }
|
208 |
+
}
|
209 |
+
@media screen and (max-width: 425px) { .related_posts .related_link p{ display:none } .alignright, .alignleft {float: none;} .related_posts .related_link { margin: 13px 18px 14px 19px; } .related_posts .related_link a{ font-size: 18px; line-height: 1.7; } .amp-meta-wrapper{ display: inline-block; margin-bottom: 0px; margin-top: 8px; width:100% } .ampforwp-tax-category{ padding-bottom:0 } h1.amp-wp-title{ margin: 16px 0px 13px 0px; } .amp-wp-byline{ padding:0 } .amp-meta-wrapper .amp-wp-meta-date{ display:none } .related_posts .related_link a { font-size: 17px; line-height: 1.5; } }
|
210 |
+
@media screen and (max-width: 375px) { #pagination .next a, #pagination .prev a{ padding: 10px 6px; font-size: 11px; color: #666; } .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; } }
|
211 |
+
@media screen and (max-width: 340px) { .related_posts .related_link a { font-size: 15px; } .single-post main{ padding: 10px 5px 10px 5px } .the_content .amp-ad-wrapper{ text-align: center; margin-left: -13px; } .amp-category-post {line-height: 1.45;font-size: 12px; } .amp-category-block li:nth-child(3) {margin:0%} }
|
212 |
+
@media screen and (max-width: 320px) { .related_posts .related_link a { font-size: 13px; } h1.amp-wp-title{ font-size:17px; padding:0px 4px } }
|
213 |
+
@media screen and (max-width: 400px) { .amp-wp-title{ font-size: 19px; margin: 21px 10px -1px 10px; } }
|
214 |
+
@media screen and (max-width: 767px) { .amp-wp-post-content p{ display: block } .amp-wp-post-content p{ display: none } main, .amp-category-block, .category-widget-wrapper{ padding: 15px 18px 0px 18px; } .toggle-navigation ul li{ width: 50% } }
|
215 |
+
@media screen and (max-width: 495px) { h2.amp-wp-title a{ font-size: 17px; line-height: 26px;} }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
217 |
+
header, amp-sidebar, article, footer, main { direction: rtl; }
|
218 |
+
.amp-wp-header .amp-wp-site-icon { position: relative;float: left; }
|
219 |
+
.amp-wp-header .nav_container { float: left;right: initial;left: -11px; }
|
220 |
+
.amp-wp-header .amp-wp-site-icon { top: -3px;right: initial;left: -11px; }
|
221 |
+
.amp-wp-byline, .amp-wp-posted-on { float:right }
|
222 |
+
.amp-wp-tax-category { float:left }
|
223 |
+
.related_posts ol li amp-img { float:right; margin-right:0px; margin-left:15px }
|
224 |
+
main .amp-archive-heading { direction:rtl }
|
225 |
+
.searchform { direction:rtl }
|
226 |
+
.closebutton { right:0; left:20px }
|
227 |
+
.amp-meta-wrapper { padding-right:0 }
|
228 |
+
.comment-author { float:right; margin-left:5px; }
|
229 |
+
.amp-ad-wrapper{ direction: ltr; }
|
230 |
<?php } ?>
|
231 |
|
232 |
/* Style Modifer */
|
233 |
<?php $color = $redux_builder_amp['opt-color-rgba']['color']; ?>
|
234 |
+
.amp-wp-tax-tag a, a, .amp-wp-author, .headerlogo a, [class*=icono-] { color: <?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
235 |
+
.amp-wp-content blockquote{ border-color:<?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
236 |
+
.nav_container, .comment-button-wrapper a { background: <?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
237 |
+
.nav_container a{ color:<?php echo sanitize_hex_color( $header_color ); ?> }
|
238 |
+
amp-user-notification { border-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
239 |
+
amp-user-notification button { background-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
<?php if( $redux_builder_amp['enable-single-social-icons'] == true && is_socialshare_or_socialsticky_enabled_in_ampforwp() ) { ?>
|
241 |
+
.single-post footer { padding-bottom: 40px; }
|
|
|
|
|
242 |
.amp-ad-2{ margin-bottom: 50px; }
|
243 |
<?php } ?>
|
244 |
/**/
|
245 |
+
.amp-wp-author:before{ content: " <?php global $redux_builder_amp; echo $redux_builder_amp['amp-translator-by-text']; ?> "; }
|
246 |
+
.ampforwp-tax-category span:first-child:after { content: ' '; }
|
247 |
+
.ampforwp-tax-category span:after,.ampforwp-tax-tag span:after { content: ', '; }
|
248 |
+
.ampforwp-tax-category span:last-child:after, .ampforwp-tax-tag span:last-child:after { content: ' '; }
|
249 |
+
.amp-wp-article-content img { max-width: 100%; }
|
250 |
+
<?php if ($redux_builder_amp['ampforwp-callnow-button']) { ?>
|
251 |
+
.callnow{ position: relative; top: -35px; right: 39px }
|
252 |
+
.callnow a:before { content: ""; position: absolute; right: 23px; width: 4px; height: 8px; 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; }
|
253 |
+
<?php } ?>
|
254 |
+
<?php if ( class_exists('TablePress') ) { ?>
|
255 |
+
.tablepress-table-description { clear: both; display: block; }
|
256 |
+
.tablepress { border-collapse: collapse; border-spacing: 0; width: 100%; margin-bottom: 1em; border: none; }
|
257 |
+
.tablepress th, .tablepress td { padding: 8px; border: none; background: none; text-align: left; }
|
258 |
+
.tablepress tbody td { vertical-align: top; }
|
259 |
+
.tablepress tbody td, .tablepress tfoot th { border-top: 1px solid #dddddd; }
|
260 |
+
.tablepress tbody tr:first-child td { border-top: 0; }
|
261 |
+
.tablepress thead th { border-bottom: 1px solid #dddddd; }
|
262 |
+
.tablepress thead th, .tablepress tfoot th { background-color: #d9edf7; font-weight: bold; vertical-align: middle; }
|
263 |
+
.tablepress .odd td { background-color: #f9f9f9; }
|
264 |
+
.tablepress .even td { background-color: #ffffff; }
|
265 |
+
.tablepress .row-hover tr:hover td { background-color: #f3f3f3; }
|
266 |
+
@media (min-width: 768px) and (max-width: 1600px) {.tablepress { overflow-x: none; } }
|
267 |
+
@media (min-width: 320px) and (max-width: 767px) {.tablepress { display: inline-block; overflow-x: scroll; } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
<?php } ?>
|
269 |
|
270 |
+
<?php echo $redux_builder_amp['css_editor']; } ?>
|
|
|
|
@@ -56,7 +56,8 @@ if ( get_query_var( 'paged' ) ) {
|
|
56 |
<?php if ( is_archive() ) {
|
57 |
the_archive_title( '<h3 class="amp-wp-content page-title">', '</h3>' );
|
58 |
|
59 |
-
$
|
|
|
60 |
if( $arch_desc ) { ?>
|
61 |
<div class="amp-wp-content taxonomy-description">
|
62 |
<?php echo $arch_desc ; ?>
|
@@ -75,7 +76,7 @@ if ( get_query_var( 'paged' ) ) {
|
|
75 |
$thumb_url = $thumb_url_array[0];
|
76 |
?>
|
77 |
<div class="home-post_image">
|
78 |
-
<a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>">
|
79 |
<amp-img
|
80 |
layout="responsive"
|
81 |
src=<?php echo $thumb_url ?>
|
@@ -92,7 +93,7 @@ if ( get_query_var( 'paged' ) ) {
|
|
92 |
<li><?php echo $category->cat_name ?></li>
|
93 |
<?php } ?>
|
94 |
</ul>
|
95 |
-
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"> <?php the_title(); ?></a></h2>
|
96 |
|
97 |
|
98 |
<?php
|
56 |
<?php if ( is_archive() ) {
|
57 |
the_archive_title( '<h3 class="amp-wp-content page-title">', '</h3>' );
|
58 |
|
59 |
+
$description = get_the_archive_description();
|
60 |
+
$arch_desc = ampforwp_content_sanitizer( $description );
|
61 |
if( $arch_desc ) { ?>
|
62 |
<div class="amp-wp-content taxonomy-description">
|
63 |
<?php echo $arch_desc ; ?>
|
76 |
$thumb_url = $thumb_url_array[0];
|
77 |
?>
|
78 |
<div class="home-post_image">
|
79 |
+
<a href="<?php echo esc_url( trailingslashit( $ampforwp_amp_post_url ) ); ?>">
|
80 |
<amp-img
|
81 |
layout="responsive"
|
82 |
src=<?php echo $thumb_url ?>
|
93 |
<li><?php echo $category->cat_name ?></li>
|
94 |
<?php } ?>
|
95 |
</ul>
|
96 |
+
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( trailingslashit( $ampforwp_amp_post_url ) ); ?>"> <?php the_title(); ?></a></h2>
|
97 |
|
98 |
|
99 |
<?php
|
@@ -33,7 +33,7 @@ if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'])
|
|
33 |
</div>
|
34 |
<!-- .comment-author -->
|
35 |
<div class="comment-metadata">
|
36 |
-
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
|
37 |
<?php
|
38 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
39 |
?>
|
@@ -45,10 +45,8 @@ if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'])
|
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
-
|
49 |
-
$
|
50 |
-
// $emoji_free_comments = preg_replace($pattern,'',$emoji_content);
|
51 |
-
echo $emoji_content; ?>
|
52 |
</p>
|
53 |
</div>
|
54 |
<!-- .comment-content -->
|
33 |
</div>
|
34 |
<!-- .comment-author -->
|
35 |
<div class="comment-metadata">
|
36 |
+
<a href="<?php echo htmlspecialchars( trailingslashit( get_comment_link( $comment->comment_ID ) ) ) ?>">
|
37 |
<?php
|
38 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
39 |
?>
|
45 |
<!-- .comment-meta -->
|
46 |
<div class="comment-content">
|
47 |
<p><?php
|
48 |
+
$comment_content = get_comment_text();
|
49 |
+
echo ampforwp_content_sanitizer( $comment_content ); ?>
|
|
|
|
|
50 |
</p>
|
51 |
</div>
|
52 |
<!-- .comment-content -->
|
@@ -15,7 +15,7 @@
|
|
15 |
// Custom/Alternative AMP content added through post meta
|
16 |
echo $this->get( 'ampforwp_amp_content' );
|
17 |
}
|
18 |
-
|
19 |
// echo $this->get( 'post_amp_content' ); // amphtml content; no kses
|
20 |
?>
|
21 |
|
@@ -31,11 +31,11 @@
|
|
31 |
<div id="pagination">
|
32 |
<?php $next_post = get_next_post();
|
33 |
if (!empty( $next_post )) { ?>
|
34 |
-
<span><?php global $redux_builder_amp; echo $redux_builder_amp['amp-translator-next-read-text']; ?></span> <a href="<?php echo trailingslashit(get_permalink( $next_post->ID )) . AMPFORWP_AMP_QUERY_VAR; ?>"><?php echo $next_post->post_title; ?> »</a> <?php
|
35 |
} ?>
|
36 |
</div>
|
37 |
</div>
|
38 |
<?php } ?>
|
39 |
<!--Post Next-Previous Links End here-->
|
40 |
-
|
41 |
</div>
|
15 |
// Custom/Alternative AMP content added through post meta
|
16 |
echo $this->get( 'ampforwp_amp_content' );
|
17 |
}
|
18 |
+
|
19 |
// echo $this->get( 'post_amp_content' ); // amphtml content; no kses
|
20 |
?>
|
21 |
|
31 |
<div id="pagination">
|
32 |
<?php $next_post = get_next_post();
|
33 |
if (!empty( $next_post )) { ?>
|
34 |
+
<span><?php global $redux_builder_amp; echo $redux_builder_amp['amp-translator-next-read-text']; ?></span> <a href="<?php echo trailingslashit( trailingslashit(get_permalink( $next_post->ID )) . AMPFORWP_AMP_QUERY_VAR) ; ?>"><?php echo $next_post->post_title; ?> »</a> <?php
|
35 |
} ?>
|
36 |
</div>
|
37 |
</div>
|
38 |
<?php } ?>
|
39 |
<!--Post Next-Previous Links End here-->
|
40 |
+
|
41 |
</div>
|
@@ -19,7 +19,7 @@
|
|
19 |
global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-in-designthree'] .' ', 'amp' )); } ?>
|
20 |
<?php foreach ($ampforwp_categories as $cat ) {
|
21 |
if($redux_builder_amp['ampforwp-archive-support']){
|
22 |
-
echo ('<span><a href="'.trailingslashit(get_category_link($cat->term_taxonomy_id)).'amp" >'.$cat->name .'</a></span>');
|
23 |
} else {
|
24 |
echo ('<span>'.$cat->name .'</span>');
|
25 |
}
|
19 |
global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-in-designthree'] .' ', 'amp' )); } ?>
|
20 |
<?php foreach ($ampforwp_categories as $cat ) {
|
21 |
if($redux_builder_amp['ampforwp-archive-support']){
|
22 |
+
echo ('<span><a href="'.trailingslashit( trailingslashit(get_category_link($cat->term_taxonomy_id)).'amp') . '" >'.$cat->name .'</a></span>');
|
23 |
} else {
|
24 |
echo ('<span>'.$cat->name .'</span>');
|
25 |
}
|
@@ -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(get_tag_link($tag->term_taxonomy_id)).'amp" >'. $tag->name .'</a></span>');
|
9 |
} else {
|
10 |
echo '<span>'. $tag->name .'</span>';
|
11 |
}
|
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 |
}
|
@@ -47,7 +47,7 @@
|
|
47 |
$my_query->the_post();
|
48 |
$related_post_permalink = get_permalink();
|
49 |
$related_post_permalink = trailingslashit($related_post_permalink);
|
50 |
-
$related_post_permalink = $related_post_permalink . AMPFORWP_AMP_QUERY_VAR
|
51 |
?>
|
52 |
<li class="<?php if ( has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
53 |
<a href="<?php echo esc_url( $related_post_permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
|
47 |
$my_query->the_post();
|
48 |
$related_post_permalink = get_permalink();
|
49 |
$related_post_permalink = trailingslashit($related_post_permalink);
|
50 |
+
$related_post_permalink = trailingslashit( $related_post_permalink . AMPFORWP_AMP_QUERY_VAR );
|
51 |
?>
|
52 |
<li class="<?php if ( has_post_thumbnail() ) { echo'has_related_thumbnail'; } else { echo 'no_related_thumbnail'; } ?>">
|
53 |
<a href="<?php echo esc_url( $related_post_permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
|
@@ -5,8 +5,11 @@
|
|
5 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
6 |
<amp-social-share type="facebook" data-param-app_id="<?php echo $redux_builder_amp['amp-facebook-app-id']; ?>" width="40" height="40"></amp-social-share>
|
7 |
<?php } ?>
|
8 |
-
<?php if($redux_builder_amp['enable-single-twitter-share'] == true) {
|
9 |
-
|
|
|
|
|
|
|
10 |
></amp-social-share>
|
11 |
<?php } ?>
|
12 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
5 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
6 |
<amp-social-share type="facebook" data-param-app_id="<?php echo $redux_builder_amp['amp-facebook-app-id']; ?>" width="40" height="40"></amp-social-share>
|
7 |
<?php } ?>
|
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="<?php echo wp_get_shortlink() ?>"
|
12 |
+
data-param-text="<?php echo $data_param_data ?> TITLE"
|
13 |
></amp-social-share>
|
14 |
<?php } ?>
|
15 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
@@ -23,12 +23,12 @@
|
|
23 |
<footer class="footer_wrapper container">
|
24 |
<div id="footer">
|
25 |
<?php if ( has_nav_menu( 'amp-footer-menu' ) ) { ?>
|
26 |
-
<div class="footer_menu">
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
?>
|
32 |
</div>
|
33 |
<?php } ?>
|
34 |
|
23 |
<footer class="footer_wrapper container">
|
24 |
<div id="footer">
|
25 |
<?php if ( has_nav_menu( 'amp-footer-menu' ) ) { ?>
|
26 |
+
<div class="footer_menu"> <?php
|
27 |
+
$menu = wp_nav_menu( array(
|
28 |
+
'theme_location' => 'amp-footer-menu',
|
29 |
+
'echo' => false
|
30 |
+
) );
|
31 |
+
echo strip_tags( $menu , '<ul><li><a>'); ?>
|
32 |
</div>
|
33 |
<?php } ?>
|
34 |
|
@@ -1,13 +1,21 @@
|
|
1 |
<?php global $redux_builder_amp;
|
|
|
2 |
$post_id = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
3 |
$template = new AMP_Post_Template( $post_id );?>
|
4 |
<!doctype html>
|
5 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
6 |
<head>
|
7 |
-
<meta charset="utf-8">
|
8 |
-
|
9 |
-
$
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
|
12 |
<?php do_action( 'amp_post_template_head', $this ); ?>
|
13 |
<?php
|
@@ -124,7 +132,7 @@ $template = new AMP_Post_Template( $post_id );?>
|
|
124 |
</div>
|
125 |
<!-- .comment-author -->
|
126 |
<div class="comment-metadata">
|
127 |
-
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
|
128 |
<?php
|
129 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
130 |
?>
|
1 |
<?php global $redux_builder_amp;
|
2 |
+
global $wp;
|
3 |
$post_id = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
4 |
$template = new AMP_Post_Template( $post_id );?>
|
5 |
<!doctype html>
|
6 |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
|
7 |
<head>
|
8 |
+
<meta charset="utf-8"> <?php
|
9 |
+
$page = $wp->query_vars['page'];
|
10 |
+
if ( $page >= '2') { ?>
|
11 |
+
<link rel="canonical" href="<?php
|
12 |
+
$ID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
13 |
+
echo trailingslashit( get_permalink( $ID ) ) . '?page=' . $page ?>"> <?php
|
14 |
+
} else { ?>
|
15 |
+
<link rel="canonical" href="<?php
|
16 |
+
$ID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
17 |
+
echo get_permalink( $ID ) ?>"> <?php
|
18 |
+
} ?>
|
19 |
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
|
20 |
<?php do_action( 'amp_post_template_head', $this ); ?>
|
21 |
<?php
|
132 |
</div>
|
133 |
<!-- .comment-author -->
|
134 |
<div class="comment-metadata">
|
135 |
+
<a href="<?php echo htmlspecialchars( trailingslashit( get_comment_link( $comment->comment_ID ) ) )?>">
|
136 |
<?php
|
137 |
printf(__('%1$s '.$redux_builder_amp['amp-translator-at-text'].' %2$s'), get_comment_date(), get_comment_time())
|
138 |
?>
|
@@ -18,35 +18,25 @@ class AMPforWP_Menu_Walker extends Walker_Nav_Menu {
|
|
18 |
|
19 |
}
|
20 |
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
} else {
|
42 |
-
|
43 |
-
$output .= '<li ' . $class_names . '>';
|
44 |
-
$output .= $this->get_anchor_tag( $item, $depth, $args, $id );
|
45 |
-
$output .= '</li>';
|
46 |
-
|
47 |
-
}
|
48 |
-
|
49 |
-
}
|
50 |
|
51 |
|
52 |
public function end_el( &$output, $item, $depth = 0, $args = array() ) {
|
18 |
|
19 |
}
|
20 |
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
|
21 |
+
$args = apply_filters( 'nav_menu_item_args', $args, $item, $depth );
|
22 |
+
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
|
23 |
+
$classes[] = 'menu-item-' . $item->ID;
|
24 |
+
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args, $depth ) );
|
25 |
+
$class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
|
26 |
+
|
27 |
+
if ( $this->has_children ) {
|
28 |
+
set_transient( 'ampforwp_has_nav_child', true, 3 );
|
29 |
+
$this->start_accordion( $output, $depth );
|
30 |
+
$output .= '<h6 ' . $class_names . '>';
|
31 |
+
$output .= strip_tags( $this->get_anchor_tag( $item, $depth, $args, $id ) , '<a>');
|
32 |
+
$output .= '</h6>';
|
33 |
+
$this->start_accordion_child_wrapper( $output, $depth );
|
34 |
+
} else {
|
35 |
+
$output .= '<li ' . $class_names . '>';
|
36 |
+
$output .= strip_tags( $this->get_anchor_tag( $item, $depth, $args, $id ) , '<a>');
|
37 |
+
$output .= '</li>';
|
38 |
+
}
|
39 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
|
42 |
public function end_el( &$output, $item, $depth = 0, $args = array() ) {
|
@@ -104,7 +104,7 @@
|
|
104 |
$ampforwp_home_url = untrailingslashit( get_bloginfo('url') ).'?nonamp=1';
|
105 |
$set_rel_to_noamp = true;
|
106 |
} else {
|
107 |
-
$ampforwp_home_url =
|
108 |
}
|
109 |
}
|
110 |
}?>
|
@@ -127,7 +127,9 @@
|
|
127 |
<h1><a href="<?php echo esc_url( $ampforwp_home_url ); ?>" <?php if($set_rel_to_noamp){ echo ' rel="nofollow"'; } ?> ><?php bloginfo('name'); ?></a></h1>
|
128 |
<?php } ?>
|
129 |
</div>
|
|
|
130 |
<?php do_action('ampforwp_header_search'); ?>
|
|
|
131 |
</div>
|
132 |
</div>
|
133 |
</header>
|
104 |
$ampforwp_home_url = untrailingslashit( get_bloginfo('url') ).'?nonamp=1';
|
105 |
$set_rel_to_noamp = true;
|
106 |
} else {
|
107 |
+
$ampforwp_home_url = trailingslashit( get_bloginfo('url') );
|
108 |
}
|
109 |
}
|
110 |
}?>
|
127 |
<h1><a href="<?php echo esc_url( $ampforwp_home_url ); ?>" <?php if($set_rel_to_noamp){ echo ' rel="nofollow"'; } ?> ><?php bloginfo('name'); ?></a></h1>
|
128 |
<?php } ?>
|
129 |
</div>
|
130 |
+
<?php do_action('ampforwp_call_button'); ?>
|
131 |
<?php do_action('ampforwp_header_search'); ?>
|
132 |
+
|
133 |
</div>
|
134 |
</div>
|
135 |
</header>
|
@@ -79,7 +79,7 @@ if ( get_query_var( 'paged' ) ) {
|
|
79 |
?>
|
80 |
<amp-img src=<?php echo $thumb_url ?> width=450 height=270></amp-img>
|
81 |
<?php } ?>
|
82 |
-
<a href="<?php the_permalink()
|
83 |
<div class="featured_title">
|
84 |
<div class="featured_time"><?php global $redux_builder_amp; echo human_time_diff( get_the_time('U'), current_time('timestamp') ) .' '. $redux_builder_amp['amp-translator-ago-date-text']; ?></div>
|
85 |
<h1><?php the_title() ?></h1>
|
@@ -118,7 +118,7 @@ if ( get_query_var( 'paged' ) ) {
|
|
118 |
$thumb_url = $thumb_url_array[0];
|
119 |
?>
|
120 |
<div class="home-post_image">
|
121 |
-
<a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>">
|
122 |
<amp-img
|
123 |
layout="responsive"
|
124 |
src=<?php echo $thumb_url ?>
|
@@ -135,7 +135,7 @@ if ( get_query_var( 'paged' ) ) {
|
|
135 |
<li><?php echo $category->cat_name ?></li>
|
136 |
<?php } ?>
|
137 |
</ul>
|
138 |
-
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"> <?php the_title(); ?></a></h2>
|
139 |
|
140 |
|
141 |
<?php
|
79 |
?>
|
80 |
<amp-img src=<?php echo $thumb_url ?> width=450 height=270></amp-img>
|
81 |
<?php } ?>
|
82 |
+
<a href="<?php trailingslashit( trailingslashit( the_permalink() ) ."amp" ); ?>">
|
83 |
<div class="featured_title">
|
84 |
<div class="featured_time"><?php global $redux_builder_amp; echo human_time_diff( get_the_time('U'), current_time('timestamp') ) .' '. $redux_builder_amp['amp-translator-ago-date-text']; ?></div>
|
85 |
<h1><?php the_title() ?></h1>
|
118 |
$thumb_url = $thumb_url_array[0];
|
119 |
?>
|
120 |
<div class="home-post_image">
|
121 |
+
<a href="<?php echo esc_url( trailingslashit( $ampforwp_amp_post_url ) ); ?>">
|
122 |
<amp-img
|
123 |
layout="responsive"
|
124 |
src=<?php echo $thumb_url ?>
|
135 |
<li><?php echo $category->cat_name ?></li>
|
136 |
<?php } ?>
|
137 |
</ul>
|
138 |
+
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( trailingslashit( $ampforwp_amp_post_url ) ); ?>"> <?php the_title(); ?></a></h2>
|
139 |
|
140 |
|
141 |
<?php
|
@@ -68,7 +68,7 @@
|
|
68 |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'medium', true);
|
69 |
$thumb_url = $thumb_url_array[0];
|
70 |
?>
|
71 |
-
<div class="home-post_image"><a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"><amp-img layout="responsive" src=<?php echo $thumb_url ?> width=450 height=270 ></amp-img></a></div>
|
72 |
<?php } ?>
|
73 |
|
74 |
<div class="amp-wp-post-content">
|
@@ -77,7 +77,7 @@
|
|
77 |
<li><?php echo $category->cat_name ?></li>
|
78 |
<?php } ?>
|
79 |
</ul>
|
80 |
-
<h2 class="amp-wp-title"> <a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"> <?php the_title(); ?></a></h2>
|
81 |
|
82 |
|
83 |
<?php
|
68 |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'medium', true);
|
69 |
$thumb_url = $thumb_url_array[0];
|
70 |
?>
|
71 |
+
<div class="home-post_image"><a href="<?php echo esc_url( trailingslashit( $ampforwp_amp_post_url ) ); ?>"><amp-img layout="responsive" src=<?php echo $thumb_url ?> width=450 height=270 ></amp-img></a></div>
|
72 |
<?php } ?>
|
73 |
|
74 |
<div class="amp-wp-post-content">
|
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>
|
81 |
|
82 |
|
83 |
<?php
|
@@ -15,16 +15,12 @@ function ampforwp_additional_style_input_2( $amp_template ) {
|
|
15 |
?>
|
16 |
|
17 |
/* Global Styling */
|
18 |
-
body{
|
19 |
-
|
20 |
-
}
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
}
|
25 |
-
.clearfix, .cb{
|
26 |
-
clear: both
|
27 |
-
}
|
28 |
|
29 |
/* Template Styles */
|
30 |
.amp-wp-content, .amp-wp-title-bar div {
|
@@ -36,718 +32,162 @@ a {
|
|
36 |
|
37 |
/* Slide Navigation code */
|
38 |
|
39 |
-
amp-sidebar
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
}
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
}
|
48 |
-
.
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
}
|
53 |
-
.
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
}
|
64 |
-
amp-accordion>section[expanded]>:nth-child(n){
|
65 |
-
background:#666;
|
66 |
-
}
|
67 |
-
amp-accordion>section[expanded]>:nth-child(n) li:last-child{
|
68 |
-
margin-bottom:10px
|
69 |
-
}
|
70 |
-
amp-accordion>section[expanded]>:nth-child(n) li{
|
71 |
-
animation: openingmenu .3s normal forwards ease-in-out;
|
72 |
-
-webkit-transform: translate3d(0, 0, 60%) scale(1);
|
73 |
-
transform: translate3d(0, 0, 60%) scale(1);
|
74 |
-
}
|
75 |
-
@keyframes openingmenu {
|
76 |
-
0% {
|
77 |
-
padding:0px;
|
78 |
-
}
|
79 |
-
100% {
|
80 |
-
padding:0px 0px 0px 10px;
|
81 |
-
|
82 |
-
}
|
83 |
-
}
|
84 |
-
|
85 |
-
@keyframes closingmenu {
|
86 |
-
0% {
|
87 |
-
padding:0px 0px 0px 20px;
|
88 |
-
}
|
89 |
-
100% {
|
90 |
-
padding:0px;
|
91 |
-
}
|
92 |
-
}
|
93 |
-
.toggle-navigationv2 ul {
|
94 |
-
list-style-type: none;
|
95 |
-
margin: 15px 0 0 0;
|
96 |
-
padding: 0;
|
97 |
-
}
|
98 |
-
.toggle-navigationv2 ul li a{
|
99 |
-
padding: 10px 15px 10px 20px;
|
100 |
-
display: inline-block;
|
101 |
-
font-size: 14px;
|
102 |
-
color:#eee;
|
103 |
-
width:100%
|
104 |
-
}
|
105 |
-
amp-accordion>section[expanded] li a{
|
106 |
-
padding: 8px 15px 8px 20px;
|
107 |
-
font-size: 14px;
|
108 |
-
}
|
109 |
-
amp-accordion>section[expanded] li a:before{
|
110 |
-
content: "\25b8";
|
111 |
-
left: -7px;
|
112 |
-
top: -2px;
|
113 |
-
position: relative;
|
114 |
-
font-size: 10px;
|
115 |
-
color: #a9a9a9;
|
116 |
-
}
|
117 |
-
.toggle-navigationv2 ul li a:hover,.toggle-navigationv2 ul h6:hover{
|
118 |
-
transition: 1s all;
|
119 |
-
background: #666;
|
120 |
-
color: #fff;
|
121 |
-
}
|
122 |
-
.toggle-navigationv2 ul h6{
|
123 |
-
padding: 10px 15px 10px 20px;
|
124 |
-
background: #131313;
|
125 |
-
border:0;
|
126 |
-
font-size: 14px;
|
127 |
-
font-weight:normal;
|
128 |
-
}
|
129 |
-
.toggle-navigationv2 ul h6 a:after{
|
130 |
-
position: absolute;
|
131 |
-
right: 20px;
|
132 |
-
top: 0;
|
133 |
-
color: #999;
|
134 |
-
font-size: 13px;
|
135 |
-
line-height: 38px;
|
136 |
-
transition: 1s all;
|
137 |
-
transform:rotate(-90deg);
|
138 |
-
content: '\25be';
|
139 |
-
}
|
140 |
-
.toggle-navigationv2 ul h6 a{
|
141 |
-
color:#eee;
|
142 |
-
}
|
143 |
-
.toggle-navigationv2 section[expanded] h6 a:after{
|
144 |
-
content: '\25be';
|
145 |
-
font-size: 13px;
|
146 |
-
transform:rotate(0);
|
147 |
-
transition: 1s all;
|
148 |
-
color:#ccc
|
149 |
-
}
|
150 |
-
.toggle-navigationv2 section[expanded] h6{
|
151 |
-
transition: 1s all;
|
152 |
-
background:#666
|
153 |
-
}
|
154 |
-
.toggle-navigationv2 .social_icons{
|
155 |
-
margin-top: 25px;
|
156 |
-
border-top: 1px solid #555;
|
157 |
-
padding: 25px 0px;
|
158 |
-
color: #fff;
|
159 |
-
width: 100%;
|
160 |
-
}
|
161 |
-
.menu-all-pages-container:after{
|
162 |
-
content: "";
|
163 |
-
clear: both
|
164 |
-
}
|
165 |
-
.toggle-text{
|
166 |
-
color: #fff;
|
167 |
-
font-size: 12px;
|
168 |
-
text-transform: uppercase;
|
169 |
-
letter-spacing: 3px;
|
170 |
-
display: inherit;
|
171 |
-
text-align: center;
|
172 |
-
}
|
173 |
-
.toggle-text:before{
|
174 |
-
content: "...";
|
175 |
-
font-size: 32px;
|
176 |
-
position: ;
|
177 |
-
font-family: georgia;
|
178 |
-
line-height: 0px;
|
179 |
-
margin-left: 0px;
|
180 |
-
letter-spacing: 1px;
|
181 |
-
top: -3px;
|
182 |
-
position: relative;
|
183 |
-
padding-right: 10px;
|
184 |
-
}
|
185 |
-
.toggle-navigation:hover,
|
186 |
-
.toggle-navigation:active,
|
187 |
-
.toggle-navigation:focus{
|
188 |
-
display: inline-block;
|
189 |
-
width: 100%;
|
190 |
-
}
|
191 |
-
|
192 |
|
193 |
/* Pagination */
|
194 |
-
.amp-wp-content.pagination-holder
|
195 |
-
|
196 |
-
padding: 0;
|
197 |
-
box-shadow: none;
|
198 |
-
height: auto;
|
199 |
-
min-height: auto;
|
200 |
-
}
|
201 |
-
#pagination{
|
202 |
-
width: 100%;
|
203 |
-
margin-top: 20px;
|
204 |
-
}
|
205 |
#pagination .next, #pagination .prev{ margin: 0px 6% 10px 6%; }
|
206 |
-
#pagination .next a, #pagination .prev a{
|
207 |
-
opacity:0.9;
|
208 |
-
background: #f42f42;
|
209 |
-
width: 100%;
|
210 |
-
color: #fff;
|
211 |
-
display: inline-block;
|
212 |
-
text-align: center;
|
213 |
-
font-size: 16px;
|
214 |
-
line-height: 1;
|
215 |
-
padding: 18px 0%;
|
216 |
-
border-radius: 4px;
|
217 |
-
}
|
218 |
/* Sticky Social bar in Single */
|
219 |
|
220 |
-
.sticky_social{
|
221 |
-
|
222 |
-
|
223 |
-
display: block;
|
224 |
-
left: 0;
|
225 |
-
box-shadow: 0px 4px 7px #000;
|
226 |
-
background: #fff;
|
227 |
-
padding: 7px 0px 0px 0px;
|
228 |
-
position: fixed;
|
229 |
-
margin: 0;
|
230 |
-
z-index: 10;
|
231 |
-
text-align: center;
|
232 |
-
}
|
233 |
-
.whatsapp-share-icon {
|
234 |
-
height: 40px;
|
235 |
-
display: inline-block;
|
236 |
-
background: #5cbe4a;
|
237 |
-
margin: 0;
|
238 |
-
}
|
239 |
-
|
240 |
-
.sticky_social .whatsapp-share-icon {
|
241 |
-
padding: 4px 0px 14px 0px;
|
242 |
-
height: 10px;
|
243 |
-
top: -4px;
|
244 |
-
position: relative;
|
245 |
-
}
|
246 |
/* Header */
|
247 |
-
#header{
|
248 |
-
|
249 |
-
|
250 |
-
height:50px;
|
251 |
-
box-shadow:0 0 32px rgba(0,0,0,.15);
|
252 |
-
}
|
253 |
-
header{
|
254 |
-
padding-bottom:50px;
|
255 |
-
}
|
256 |
-
#headerwrap{
|
257 |
-
position: fixed;
|
258 |
-
z-index:1000;
|
259 |
-
width: 100%;
|
260 |
-
top:0;
|
261 |
-
}
|
262 |
#header h1{ text-align: center; font-size: 16px; position: relative; font-weight: bold; line-height: 53px; padding: 0; margin: 0; text-transform: uppercase }
|
263 |
-
|
264 |
-
main .amp-wp-content{
|
265 |
-
font-size: 18px;
|
266 |
-
line-height: 29px;
|
267 |
-
color:#111
|
268 |
-
}
|
269 |
.single-post main .amp-wp-article-content h1{ font-size:2em}
|
270 |
-
.single-post main .amp-wp-article-content h1,
|
271 |
-
.
|
272 |
-
.
|
273 |
-
.
|
274 |
-
.
|
275 |
-
.
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
}
|
280 |
-
.
|
281 |
-
|
282 |
-
width:33%;
|
283 |
-
padding-right: 2%;
|
284 |
-
}
|
285 |
-
.amp-wp-title {
|
286 |
-
margin-top: 0px;
|
287 |
-
}
|
288 |
-
h2.amp-wp-title {
|
289 |
-
font-family: 'Roboto Slab', serif;
|
290 |
-
font-weight: 700;
|
291 |
-
font-size: 20px;
|
292 |
-
margin-bottom: 7px;
|
293 |
-
line-height: 1.3;
|
294 |
-
}
|
295 |
-
h2.amp-wp-title a{
|
296 |
-
color: #000;
|
297 |
-
}
|
298 |
-
.amp-wp-tags{ list-style-type: none;
|
299 |
-
padding: 0;
|
300 |
-
margin: 0 0 9px 0;
|
301 |
-
display: inline-flex; }
|
302 |
-
.amp-wp-tags li{
|
303 |
-
display: inline;
|
304 |
-
background: #F6F6F6;
|
305 |
-
color: #9e9e9e;
|
306 |
-
line-height: 1;
|
307 |
-
border-radius: 50px;
|
308 |
-
padding: 8px 18px;
|
309 |
-
font-size: 12px;
|
310 |
-
margin-right: 8px;
|
311 |
-
top: -3px;
|
312 |
-
position: relative;
|
313 |
-
}
|
314 |
-
.amp-loop-list{ position:relative; border-bottom: 1px solid #ededed;
|
315 |
-
padding: 25px 15px 25px 15px }
|
316 |
-
body .amp-loop-list-noimg .amp-wp-post-content{
|
317 |
-
width:100%
|
318 |
-
}
|
319 |
-
.amp-loop-list .amp-wp-post-content{
|
320 |
-
float: left;
|
321 |
-
width: 65%;
|
322 |
-
}
|
323 |
-
.amp-loop-list .featured_time{
|
324 |
-
color:#b3b3b3;
|
325 |
-
padding-left:0
|
326 |
-
}
|
327 |
-
.amp-wp-post-content p{
|
328 |
-
color: grey;
|
329 |
-
line-height: 1.5;
|
330 |
-
font-size: 14px;
|
331 |
-
margin: 8px 0 10px;
|
332 |
-
font-family:'PT Serif', serif
|
333 |
-
}
|
334 |
/* Footer */
|
335 |
-
#footer{
|
336 |
-
background: #151515;
|
337 |
-
color: #eee;
|
338 |
-
font-size: 13px;
|
339 |
-
text-align: center;
|
340 |
-
letter-spacing: 0.2px;
|
341 |
-
padding: 35px 0 35px 0;
|
342 |
-
margin-top: 30px;
|
343 |
-
}
|
344 |
#footer a{ color:#fff }
|
345 |
-
#footer p:first-child{
|
346 |
-
|
347 |
-
}
|
348 |
-
#footer .
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
}
|
353 |
-
|
354 |
-
|
355 |
-
}
|
356 |
-
.rightslink, #footer .rightslink a{
|
357 |
-
font-size:13px;
|
358 |
-
color:#999
|
359 |
-
}
|
360 |
-
.poweredby{ padding-top:10px;
|
361 |
-
font-size:10px;
|
362 |
-
}
|
363 |
-
#footer .poweredby a{
|
364 |
-
color:#666
|
365 |
-
}
|
366 |
-
.footer_menu ul{
|
367 |
-
list-style-type: none;
|
368 |
-
padding: 0;
|
369 |
-
text-align: center;
|
370 |
-
margin: 0px 20px 25px 20px;
|
371 |
-
line-height: 27px;
|
372 |
-
font-size: 13px
|
373 |
-
}
|
374 |
-
.footer_menu ul li{
|
375 |
-
display:inline;
|
376 |
-
margin:0 10px;
|
377 |
-
}
|
378 |
-
.footer_menu ul li:first-child{
|
379 |
-
margin-left:0
|
380 |
-
}
|
381 |
-
.footer_menu ul li:last-child{
|
382 |
-
margin-right:0
|
383 |
-
}
|
384 |
.footer_menu ul ul{ display:none }
|
385 |
/* Single */
|
386 |
-
.single-post main{
|
387 |
-
|
388 |
-
}
|
389 |
-
.amp-wp-article-content{
|
390 |
-
|
391 |
-
}
|
392 |
-
.
|
393 |
-
.
|
394 |
-
|
395 |
-
}
|
396 |
-
.
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
}
|
401 |
-
.
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
}
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
}
|
416 |
-
|
417 |
-
|
418 |
-
color: #333333;
|
419 |
-
font-size: 48px;
|
420 |
-
line-height: 58px;
|
421 |
-
font-family: 'Roboto Slab', serif;
|
422 |
-
}
|
423 |
-
.post-pagination-meta{
|
424 |
-
min-height:75px
|
425 |
-
}
|
426 |
-
.single-post .post-pagination-meta{
|
427 |
-
font-size:15px;
|
428 |
-
font-family:sans-serif;
|
429 |
-
min-height:auto;
|
430 |
-
margin-top:-5px;
|
431 |
-
line-height:26px;
|
432 |
-
}
|
433 |
-
.single-post .post-pagination-meta span{
|
434 |
-
font-weight:bold
|
435 |
-
}
|
436 |
-
.single-post .amp_author_area .amp_author_area_wrapper{
|
437 |
-
display: inline-block;
|
438 |
-
width: 100%;
|
439 |
-
line-height: 1.4;
|
440 |
-
margin-top: 22px;
|
441 |
-
font-size: 16px;
|
442 |
-
color:#333;
|
443 |
-
font-family: sans-serif;
|
444 |
-
}
|
445 |
-
.single-post .amp_author_area amp-img{
|
446 |
-
margin: 0;
|
447 |
-
float: left;
|
448 |
-
margin-right: 12px;
|
449 |
-
border-radius: 60px;
|
450 |
-
}
|
451 |
-
.amp-wp-article-tags .ampforwp-tax-tag, .amp-wp-article-tags .ampforwp-tax-tag a{
|
452 |
-
font-size: 12px;
|
453 |
-
color: #555;
|
454 |
-
font-family: sans-serif;
|
455 |
-
margin: 20px 0 0 0;
|
456 |
-
}
|
457 |
-
|
458 |
-
.amp-wp-article-tags span{
|
459 |
-
background: #eeeeee;
|
460 |
-
margin-right: 10px;
|
461 |
-
padding: 5px 12px 5px 12px;
|
462 |
-
border-radius: 3px;
|
463 |
-
}
|
464 |
-
.ampforwp-social-icons{
|
465 |
-
margin-bottom: 28px;
|
466 |
-
margin-top: 25px;
|
467 |
-
height: 40px;
|
468 |
-
}
|
469 |
-
.ampforwp-social-icons amp-social-share{
|
470 |
-
border-radius:60px;
|
471 |
-
background-size:22px;
|
472 |
-
margin-right:6px;
|
473 |
-
}
|
474 |
-
.ampforwp-social-icons-wrapper .whatsapp-share-icon{
|
475 |
-
padding: 11px 12px 9px 12px;
|
476 |
-
top: -13px;
|
477 |
-
position: relative;
|
478 |
-
line-height:1;
|
479 |
-
height: 20px;
|
480 |
-
border-radius: 60px;
|
481 |
-
}
|
482 |
-
.amp-wp-tax-tag {
|
483 |
-
list-style: none;
|
484 |
-
display: inline-block;
|
485 |
-
}
|
486 |
-
figure{
|
487 |
-
margin: 0 0 20px 0;
|
488 |
-
}
|
489 |
-
figure amp-img{
|
490 |
-
max-width:100%;
|
491 |
-
}
|
492 |
-
figcaption{
|
493 |
-
font-size: 11px;
|
494 |
-
margin-bottom: 11px;
|
495 |
-
background: #eee;
|
496 |
-
padding: 6px 8px;
|
497 |
-
}
|
498 |
-
.single-post figcaption{
|
499 |
-
margin-top: -17px;
|
500 |
-
margin-left: -17px;
|
501 |
-
margin-right: -17px;
|
502 |
-
}
|
503 |
-
.amp-wp-byline amp-img {
|
504 |
-
display: none;
|
505 |
-
}
|
506 |
-
|
507 |
-
.amp-wp-author{
|
508 |
-
margin-right: 1px;
|
509 |
-
}
|
510 |
-
.amp-wp-meta, .amp-wp-meta a {
|
511 |
-
font-size: 13px;
|
512 |
-
color: #acacac;
|
513 |
-
margin: 20px 0px 20px 0px;
|
514 |
-
padding: 0;
|
515 |
-
}
|
516 |
-
.amp-ad-wrapper {
|
517 |
-
text-align: center
|
518 |
-
}
|
519 |
-
.the_content p{
|
520 |
-
margin-top: 0px;
|
521 |
-
margin-bottom: 30px;
|
522 |
-
}
|
523 |
-
.amp-wp-tax-tag{
|
524 |
-
|
525 |
-
}
|
526 |
-
main .amp-wp-content.featured-image-content {
|
527 |
-
padding: 0px;
|
528 |
-
border: 0;
|
529 |
-
margin-bottom: 0;
|
530 |
-
box-shadow: none
|
531 |
-
}
|
532 |
.archives_body main{ margin-top:30px }
|
533 |
/* Related Posts */
|
534 |
-
main .amp-wp-content.relatedpost
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
}
|
540 |
-
.
|
541 |
-
|
542 |
-
|
543 |
-
font-family:'Roboto Slab', serif;
|
544 |
-
border-bottom: 1px solid #eee;
|
545 |
-
font-weight: 400;
|
546 |
-
padding-bottom: 1px;
|
547 |
-
margin-bottom: 10px;
|
548 |
-
}
|
549 |
-
|
550 |
-
.related_posts ol{
|
551 |
-
list-style-type:none;
|
552 |
-
margin:0;
|
553 |
-
padding:0
|
554 |
-
}
|
555 |
-
.related_posts ol li{
|
556 |
-
display:inline-block;
|
557 |
-
width:100%;
|
558 |
-
margin-bottom: 12px;
|
559 |
-
padding: 0px;
|
560 |
-
}
|
561 |
-
.related_posts .related_link a{
|
562 |
-
color: #444;
|
563 |
-
font-size: 16px;
|
564 |
-
font-family: 'Roboto Slab', serif;
|
565 |
-
font-weight: 600;
|
566 |
-
}
|
567 |
-
.related_posts ol li amp-img{
|
568 |
-
width:100px;
|
569 |
-
float:left;
|
570 |
-
margin-right:15px
|
571 |
-
}
|
572 |
-
.related_posts ol li p{
|
573 |
-
font-size: 12px;
|
574 |
-
color: #999;
|
575 |
-
line-height: 1.2;
|
576 |
-
margin: 12px 0 0 0;
|
577 |
-
}
|
578 |
-
.no_related_thumbnail{
|
579 |
-
padding: 15px 18px;
|
580 |
-
}
|
581 |
-
.no_related_thumbnail .related_link{
|
582 |
-
margin: 16px 18px 20px 19px;
|
583 |
-
}
|
584 |
/* Comments */
|
585 |
-
.page-numbers{
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
}
|
590 |
-
.
|
591 |
-
|
592 |
-
|
593 |
-
}
|
594 |
-
|
595 |
-
background: none;
|
596 |
-
box-shadow: none;
|
597 |
-
padding:0
|
598 |
-
}
|
599 |
-
.comments_list div{
|
600 |
-
display:inline-block;
|
601 |
-
}
|
602 |
-
.comments_list ul{
|
603 |
-
margin:0;
|
604 |
-
padding:0
|
605 |
-
}
|
606 |
-
.comments_list ul.children{
|
607 |
-
padding-bottom:10px;
|
608 |
-
margin-left: 3%;
|
609 |
-
width: 96%;
|
610 |
-
}
|
611 |
-
.comments_list ul li p{
|
612 |
-
margin:0;
|
613 |
-
font-size:16px;
|
614 |
-
clear:both;
|
615 |
-
padding-top:5px;
|
616 |
-
}
|
617 |
-
.comments_list ul li{
|
618 |
-
font-size: 12px;
|
619 |
-
list-style-type: none;
|
620 |
-
margin-bottom: 22px;
|
621 |
-
padding-bottom: 20px;
|
622 |
-
max-width: 1000px;
|
623 |
-
border-bottom: 1px solid #eee;
|
624 |
-
}
|
625 |
-
.comments_list ul ul li {
|
626 |
-
border-left: 2px solid #eee;
|
627 |
-
padding-left: 15px;
|
628 |
-
border-bottom: 0;
|
629 |
-
padding-bottom: 0px;
|
630 |
-
}
|
631 |
-
.comments_list ul li .comment-body .comment-author{
|
632 |
-
margin-right:5px
|
633 |
-
}
|
634 |
.comment-author{ float:left }
|
635 |
-
.single-post footer.comment-meta{
|
636 |
-
color:#666;
|
637 |
-
padding-bottom: 0;
|
638 |
-
}
|
639 |
.comment-metadata a{ color:#888 }
|
640 |
-
.comments_list li li{
|
641 |
-
|
642 |
-
background: #f7f7f7;
|
643 |
-
box-shadow: none;
|
644 |
-
border: 1px solid #eee;
|
645 |
-
}
|
646 |
-
.comments_list li li li{
|
647 |
-
margin:20px 20px 10px 20px
|
648 |
-
}
|
649 |
/* ADS */
|
650 |
-
.amp_ad_1{
|
651 |
-
|
652 |
-
margin-bottom: 10px;
|
653 |
-
}
|
654 |
-
.single-post .amp_ad_1{
|
655 |
-
margin-bottom: -15px;
|
656 |
-
}
|
657 |
.amp-ad-2{ margin-bottom: -5px; margin-top: 20px; }
|
658 |
-
html .single-post .ampforwp-incontent-ad-1 {
|
659 |
-
|
660 |
-
}
|
661 |
-
.amp-ad-3{
|
662 |
-
margin-bottom:10px;
|
663 |
-
}
|
664 |
-
.amp-ad-4{
|
665 |
-
margin-top:2px;
|
666 |
-
}
|
667 |
/* Notifications */
|
668 |
-
#amp-user-notification1 p
|
669 |
-
|
670 |
-
}
|
671 |
-
amp-user-notification {
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
amp-user-notification button {
|
678 |
-
padding: 8px 10px;
|
679 |
-
background: #000;
|
680 |
-
color: #fff;
|
681 |
-
margin-left: 5px;
|
682 |
-
border: 0;
|
683 |
-
}
|
684 |
-
amp-user-notification button:hover {
|
685 |
-
cursor: pointer
|
686 |
-
}
|
687 |
-
.amp-wp-content blockquote {
|
688 |
-
background-color: #fff;
|
689 |
-
border-left: 3px solid;
|
690 |
-
margin: 0;
|
691 |
-
padding: 15px 20px;
|
692 |
-
background: #f3f3f3;
|
693 |
-
}
|
694 |
-
.amp-wp-content blockquote p{
|
695 |
-
margin-bottom:0
|
696 |
-
}
|
697 |
-
pre {
|
698 |
-
white-space: pre-wrap;
|
699 |
-
}
|
700 |
-
|
701 |
-
|
702 |
-
#designthree{
|
703 |
-
background-color: #FFF;
|
704 |
-
overflow: visible;
|
705 |
/* animation: closing .3s normal forwards ease-in-out,closingFix .6s normal forwards ease-in-out;
|
706 |
-webkit-transform-origin: right center;
|
707 |
transform-origin: right center;*/
|
708 |
}
|
709 |
/* Sidebar */
|
710 |
-
#sidebar[aria-hidden="false"]+#designthree {
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
-webkit-transform: translate3d(60%, 0, 0) scale(0.8);
|
715 |
-
transform: translate3d(60%, 0, 0) scale(0.8);
|
716 |
-
}
|
717 |
-
@keyframes opening {
|
718 |
-
0% {
|
719 |
-
transform: translate3d(0, 0, 0) scale(1);
|
720 |
-
}
|
721 |
-
100% {
|
722 |
-
transform: translate3d(60%, 0, 0) scale(0.8);
|
723 |
-
}
|
724 |
-
}
|
725 |
-
|
726 |
-
@keyframes closing {
|
727 |
-
0% {
|
728 |
-
transform: translate3d(60%, 0, 0) scale(0.8);
|
729 |
-
}
|
730 |
-
100% {
|
731 |
-
transform: translate3d(0, 0, 0) scale(1);
|
732 |
-
}
|
733 |
-
}
|
734 |
|
735 |
-
|
736 |
-
0% {
|
737 |
-
max-height: 100vh;
|
738 |
-
overflow: hidden;
|
739 |
-
}
|
740 |
-
100% {
|
741 |
-
max-height: none;
|
742 |
-
overflow: visible;
|
743 |
-
}
|
744 |
-
}
|
745 |
-
|
746 |
-
.hamburgermenu{
|
747 |
-
float:left;
|
748 |
-
position:relative;
|
749 |
-
z-index: 9999;
|
750 |
-
}
|
751 |
/* Category 3 */
|
752 |
.amp-category-block{ margin: 30px 0px 10px 0px }
|
753 |
.amp-category-block a{ color:#666}
|
@@ -756,307 +196,62 @@ pre {
|
|
756 |
.category-widget-gutter ul{ margin-top: 10px; list-style-type:none; padding:0 }
|
757 |
.amp-category-block-btn{ display: block; text-align: center; font-size: 13px; margin-top: 15px; border-bottom: 1px solid #f1f1f1; text-decoration: none; padding-bottom: 8px;}
|
758 |
.design_2_wrapper .amp-category-block{ max-width: 840px; margin: 1.5em auto; }
|
759 |
-
.amp-category-block-title{
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
}
|
768 |
-
.
|
769 |
-
max-width: 1000px;
|
770 |
-
margin: 0 auto;
|
771 |
-
padding:0px 15px 5px 15px
|
772 |
-
}
|
773 |
-
.amp-category-post{
|
774 |
-
width: 32%;
|
775 |
-
display:inline-table;
|
776 |
-
}
|
777 |
-
.amp-category-post amp-img{
|
778 |
-
margin-bottom:5px;
|
779 |
-
}
|
780 |
-
.amp-category-block li:nth-child(3){
|
781 |
-
margin: 0 1%;
|
782 |
-
}
|
783 |
-
.searchmenu{
|
784 |
-
margin-right: 15px;
|
785 |
-
margin-top: 11px;
|
786 |
-
position: absolute;
|
787 |
-
top: 0;
|
788 |
-
right: 0;
|
789 |
-
}
|
790 |
-
.searchmenu button{
|
791 |
-
background:transparent;
|
792 |
-
border:none
|
793 |
-
}
|
794 |
-
.headerlogo{
|
795 |
-
margin: 0 auto;
|
796 |
-
width: 80%;
|
797 |
-
text-align: center;
|
798 |
-
}
|
799 |
-
.headerlogo amp-img{
|
800 |
-
margin-top:6px
|
801 |
-
}
|
802 |
-
.headerlogo a{
|
803 |
-
color:#F42;
|
804 |
-
}
|
805 |
/*Navigation Menu*/
|
806 |
-
.toast {
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
}
|
816 |
-
|
817 |
-
.toast:after,
|
818 |
-
.toast:before,
|
819 |
-
.toast span {
|
820 |
-
position: absolute;
|
821 |
-
display: block;
|
822 |
-
width: 19px;
|
823 |
-
height: 2px;
|
824 |
-
border-radius: 2px;
|
825 |
-
background-color: #F42;
|
826 |
-
-webkit-transform: translate3d(0, 0, 0) rotate(0deg);
|
827 |
-
transform: translate3d(0, 0, 0) rotate(0deg);
|
828 |
-
}
|
829 |
-
|
830 |
-
.toast:after,
|
831 |
-
.toast:before {
|
832 |
-
content: '';
|
833 |
-
left: 20px;
|
834 |
-
-webkit-transition: all ease-in .4s;
|
835 |
-
transition: all ease-in .4s;
|
836 |
-
}
|
837 |
-
|
838 |
-
.toast span {
|
839 |
-
opacity: 1;
|
840 |
-
top: 24px;
|
841 |
-
-webkit-transition: all ease-in-out .4s;
|
842 |
-
transition: all ease-in-out .4s;
|
843 |
-
}
|
844 |
-
|
845 |
-
.toast:before {
|
846 |
-
top: 17px;
|
847 |
-
}
|
848 |
-
|
849 |
-
.toast:after {
|
850 |
-
top: 31px;
|
851 |
-
}
|
852 |
-
|
853 |
-
#sidebar[aria-hidden="false"]+#designthree .toast span {
|
854 |
-
opacity: 0;
|
855 |
-
-webkit-transform: translate3d(200%, 0, 0);
|
856 |
-
transform: translate3d(200%, 0, 0);
|
857 |
-
}
|
858 |
-
|
859 |
-
#sidebar[aria-hidden="false"]+#designthree .toast:before {
|
860 |
-
-webkit-transform-origin: left bottom;
|
861 |
-
transform-origin: left bottom;
|
862 |
-
-webkit-transform: rotate(43deg);
|
863 |
-
transform: rotate(43deg);
|
864 |
-
}
|
865 |
-
|
866 |
-
#sidebar[aria-hidden="false"]+#designthree .toast:after {
|
867 |
-
-webkit-transform-origin: left top;
|
868 |
-
transform-origin: left top;
|
869 |
-
-webkit-transform: rotate(-43deg);
|
870 |
-
transform: rotate(-43deg);
|
871 |
-
}
|
872 |
|
873 |
/* CSS3 icon */
|
874 |
-
[class*=icono-]
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
}
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
}
|
888 |
-
.icono-search {
|
889 |
-
-webkit-transform: translateX(-50%);
|
890 |
-
-ms-transform: translateX(-50%);
|
891 |
-
transform: translateX(-50%)
|
892 |
-
}
|
893 |
-
.icono-share {
|
894 |
-
height: 9px;
|
895 |
-
position: relative;
|
896 |
-
width: 9px;
|
897 |
-
color: #dadada;
|
898 |
-
border-radius: 50%;
|
899 |
-
box-shadow: inset 0 0 0 32px, 22px -11px 0 0, 22px 11px 0 0;
|
900 |
-
top: -15px;
|
901 |
-
margin-right: 35px;
|
902 |
-
}
|
903 |
-
.icono-share:after, .icono-share:before {
|
904 |
-
position: absolute;
|
905 |
-
width: 24px;
|
906 |
-
height: 1px;
|
907 |
-
box-shadow: inset 0 0 0 32px;
|
908 |
-
left: 0;
|
909 |
-
}
|
910 |
-
.icono-share:before {
|
911 |
-
top: 0px;
|
912 |
-
-webkit-transform: rotate(-25deg);
|
913 |
-
-ms-transform: rotate(-25deg);
|
914 |
-
transform: rotate(-25deg);
|
915 |
-
}
|
916 |
-
.icono-share:after {
|
917 |
-
top: 8px;
|
918 |
-
-webkit-transform: rotate(25deg);
|
919 |
-
-ms-transform: rotate(25deg);
|
920 |
-
transform: rotate(25deg);
|
921 |
-
}
|
922 |
-
.icono-search {
|
923 |
-
border: 1px solid;
|
924 |
-
width: 10px;
|
925 |
-
height: 10px;
|
926 |
-
border-radius: 50%;
|
927 |
-
-webkit-transform: rotate(45deg);
|
928 |
-
-ms-transform: rotate(45deg);
|
929 |
-
transform: rotate(45deg);
|
930 |
-
margin: 4px 4px 8px 8px;
|
931 |
-
}
|
932 |
-
.icono-search:before{
|
933 |
-
position: absolute;
|
934 |
-
left: 50%;
|
935 |
-
-webkit-transform: rotate(270deg);
|
936 |
-
-ms-transform: rotate(270deg);
|
937 |
-
transform: rotate(270deg);
|
938 |
-
width: 2px;
|
939 |
-
height: 9px;
|
940 |
-
box-shadow: inset 0 0 0 32px;
|
941 |
-
top: 0px;
|
942 |
-
border-radius: 0 0 1px 1px;
|
943 |
-
left: 14px;
|
944 |
-
}
|
945 |
-
.closebutton{
|
946 |
-
background: transparent;
|
947 |
-
border: 0;
|
948 |
-
color: rgba(255, 255, 255, 0.7);
|
949 |
-
border: 1px solid rgba(255, 255, 255, 0.7);
|
950 |
-
border-radius: 30px;
|
951 |
-
width: 32px;
|
952 |
-
height: 32px;
|
953 |
-
font-size: 12px;
|
954 |
-
text-align: center;
|
955 |
-
position: absolute;
|
956 |
-
top: 12px;
|
957 |
-
right: 20px;
|
958 |
-
outline:none
|
959 |
-
}
|
960 |
-
amp-lightbox{
|
961 |
-
background: rgba(0, 0, 0,0.85);
|
962 |
-
}
|
963 |
-
.searchform label{
|
964 |
-
color: #f7f7f7;
|
965 |
-
display: block;
|
966 |
-
font-size: 10px;
|
967 |
-
letter-spacing: 0.3px;
|
968 |
-
line-height: 0;
|
969 |
-
opacity:0.6
|
970 |
-
}
|
971 |
-
.searchform{
|
972 |
-
background: transparent;
|
973 |
-
left: 20%;
|
974 |
-
position: absolute;
|
975 |
-
top: 35%;
|
976 |
-
width: 60%;
|
977 |
-
max-width: 100%;
|
978 |
-
transition-delay: 0.5s;
|
979 |
-
}
|
980 |
-
.searchform input{
|
981 |
-
background: transparent;
|
982 |
-
border: 1px solid #666;
|
983 |
-
color: #f7f7f7;
|
984 |
-
font-size: 14px;
|
985 |
-
font-weight: 400;
|
986 |
-
line-height: 1;
|
987 |
-
letter-spacing: 0.3px;
|
988 |
-
text-transform: capitalize;
|
989 |
-
padding: 20px 0px 20px 30px;
|
990 |
-
margin-top: 15px;
|
991 |
-
width: 100%;
|
992 |
-
}
|
993 |
#searchsubmit{opacity:0}
|
994 |
|
995 |
/* AMP carousel */
|
996 |
-
.amp-carousel-button-prev,
|
997 |
-
.amp-
|
998 |
-
|
999 |
-
}
|
1000 |
-
.amp-
|
1001 |
-
|
1002 |
-
}
|
1003 |
-
.
|
1004 |
-
|
1005 |
-
|
1006 |
-
max-height: 270px;
|
1007 |
-
}
|
1008 |
-
.amp-carousel-slide h1 {
|
1009 |
-
font-size: 30px;
|
1010 |
-
font-family: 'PT Serif', serif;
|
1011 |
-
margin: 0;
|
1012 |
-
font-weight: normal;
|
1013 |
-
line-height: 38px;
|
1014 |
-
color: #fff;
|
1015 |
-
padding: 10px 20px 20px 20px;
|
1016 |
-
}
|
1017 |
-
.amp-carousel-slide amp-img:before{
|
1018 |
-
z-index:100;
|
1019 |
-
bottom: 0;
|
1020 |
-
content: "";
|
1021 |
-
display: block;
|
1022 |
-
height: 100%;
|
1023 |
-
position: absolute;
|
1024 |
-
width: 100%;
|
1025 |
-
background: -webkit-gradient(linear, 50% 0%, 50% 75%, color-stop(0%, rgba(0,0,0,0)), color-stop(150%, #000000)) repeat scroll 0 0 rgba(0,0,0,0.2);
|
1026 |
-
background: -webkit-linear-gradient(rgba(0,0,0,0),#000000 75%) repeat scroll 0 0 rgba(0,0,0,0);
|
1027 |
-
background: -moz-linear-gradient(rgba(0,0,0,0),#000000 75%) repeat scroll 0 0 rgba(0,0,0,0);
|
1028 |
-
background: -o-linear-gradient(rgba(0,0,0,0),#000000 75%) repeat scroll 0 0 rgba(0,0,0,0);
|
1029 |
-
background: linear-gradient(rgba(0,0,0,0),#000000 75%) repeat scroll 0 0 rgba(0,0,0,0);
|
1030 |
-
}
|
1031 |
-
.featured_title{
|
1032 |
-
position:absolute;
|
1033 |
-
z-index:110;
|
1034 |
-
bottom:0
|
1035 |
-
}
|
1036 |
-
.featured_time{
|
1037 |
-
font-size: 12px;
|
1038 |
-
color: #fff;
|
1039 |
-
opacity: 0.8;
|
1040 |
-
padding-left: 20px;
|
1041 |
-
}
|
1042 |
-
.featured_meta{
|
1043 |
-
color:#acacac;
|
1044 |
-
font-size:12px;
|
1045 |
-
margin:0 15px;
|
1046 |
-
}
|
1047 |
-
.featured_meta_left{
|
1048 |
-
float:left
|
1049 |
-
}
|
1050 |
-
.featured_meta_right{
|
1051 |
-
float:right
|
1052 |
-
}
|
1053 |
|
1054 |
/* Tables */
|
|
|
1055 |
table a:link { color: #666; font-weight: bold; text-decoration: none; }
|
1056 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
1057 |
-
table a:active,
|
1058 |
-
table
|
1059 |
-
table { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background: #eee; margin: 20px; width: 95%; }
|
1060 |
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); }
|
1061 |
table th:first-child { text-align: left; padding-left: 20px; }
|
1062 |
table tr:first-child th:first-child { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
@@ -1072,224 +267,42 @@ table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, le
|
|
1072 |
|
1073 |
/* Responsive */
|
1074 |
@media screen and (min-width:1034px){
|
1075 |
-
|
1076 |
-
margin: -17px 17px 0 -17px;
|
1077 |
-
}
|
1078 |
-
}
|
1079 |
-
@media screen and (max-width: 768px) {
|
1080 |
-
.amp-wp-meta{ margin:10px 0px 15px 0px }
|
1081 |
-
.home-post_image{ width: 40%; }
|
1082 |
-
.amp-loop-list .amp-wp-post-content{ width: 58%; }
|
1083 |
-
.amp-loop-list .featured_time{line-height:1}
|
1084 |
-
.single-post main .amp-wp-content h1{ line-height:1.4; font-size: 30px;}
|
1085 |
-
}
|
1086 |
-
|
1087 |
-
@media screen and (max-width: 600px) {
|
1088 |
-
.amp-loop-list .amp-wp-tags{display:none}
|
1089 |
-
}
|
1090 |
-
@media screen and (max-width: 530px) {
|
1091 |
-
.home-post_image{ width: 35%; }
|
1092 |
-
.amp-loop-list .amp-wp-post-content{ width: 63%; }
|
1093 |
-
.amp-wp-post-content p { font-size: 12px; }
|
1094 |
-
.related_posts ol li p { line-height: 1.6; margin: 7px 0 0 0;}
|
1095 |
-
.comments_list ul li .comment-body {width:auto}
|
1096 |
-
.amp-category-block li:nth-child(3) {margin:0}
|
1097 |
-
}
|
1098 |
-
@media screen and (max-width: 425px) {
|
1099 |
-
.home-post_image{
|
1100 |
-
/* width: 125px;*/
|
1101 |
-
width: 31.6%;
|
1102 |
-
overflow: hidden;
|
1103 |
-
height: 100px;
|
1104 |
-
/* margin-right: 13px; */
|
1105 |
-
margin-right: 3%;
|
1106 |
-
}
|
1107 |
-
.home-post_image amp-img{ width: 144%;
|
1108 |
-
left: -20%; }
|
1109 |
-
|
1110 |
-
h2.amp-wp-title{ margin-bottom: 7px; line-height: 1.31578947; font-size: 19px;
|
1111 |
-
position:relative;top:-3px }
|
1112 |
-
|
1113 |
-
h2.amp-wp-title a{ color:#262626}
|
1114 |
-
.amp-loop-list{padding:25px 15px 22px 15px}
|
1115 |
-
.amp-loop-list .amp-wp-post-content{ width: 63%; }
|
1116 |
-
.amp-loop-list .amp-wp-post-content p,
|
1117 |
-
.related_posts .related_link p{
|
1118 |
-
display:none
|
1119 |
-
}
|
1120 |
-
.related_posts .related_link a{
|
1121 |
-
font-size: 18px;
|
1122 |
-
line-height: 1.7;
|
1123 |
-
}
|
1124 |
-
.ampforwp-tax-category{
|
1125 |
-
padding-bottom:0
|
1126 |
-
}
|
1127 |
-
.amp-wp-byline{
|
1128 |
-
padding:0
|
1129 |
-
}
|
1130 |
-
.related_posts .related_link a {
|
1131 |
-
font-size: 17px;
|
1132 |
-
line-height: 1.5;
|
1133 |
-
}
|
1134 |
-
.single-post main .amp-wp-content h1{ line-height: 1.3; font-size: 26px;}
|
1135 |
-
.icono-share{display:none}
|
1136 |
-
.ampforwp-social-icons amp-social-share{ margin-right: 3px;}
|
1137 |
-
main .amp-wp-content{ font-size: 16px; line-height: 26px;}
|
1138 |
-
.single-post .amp_author_area .amp_author_area_wrapper{font-size:13px;}
|
1139 |
-
.amp-category-post{ font-size:12px; color:#666 }
|
1140 |
}
|
1141 |
-
@media screen and (max-width:
|
1142 |
-
|
1143 |
-
font-size: 19px;
|
1144 |
-
}
|
1145 |
-
}
|
1146 |
-
@media screen and (max-width: 375px) {
|
1147 |
-
.single-post main .amp-wp-content h1{ line-height: 1.3; font-size: 24px;}
|
1148 |
-
.home-post_image{ height: 79px; }
|
1149 |
-
.amp-carousel-slide h1{
|
1150 |
-
font-size: 28px;
|
1151 |
-
line-height: 32px;
|
1152 |
-
}
|
1153 |
-
#pagination .next a, #pagination .prev a{
|
1154 |
-
color: #666;
|
1155 |
-
font-size: 14px;
|
1156 |
-
padding: 15px 0px;
|
1157 |
-
margin-top: -5px;
|
1158 |
-
}
|
1159 |
-
.related_posts h3, .comments_list h3{
|
1160 |
-
margin-top:15px;
|
1161 |
-
}
|
1162 |
-
#pagination .next{
|
1163 |
-
margin-bottom:15px;
|
1164 |
-
}
|
1165 |
-
.related_posts .related_link a {
|
1166 |
-
font-size: 15px;
|
1167 |
-
line-height: 1.6;
|
1168 |
-
}
|
1169 |
-
}
|
1170 |
-
@media screen and (max-width: 340px) {
|
1171 |
-
.single-post main .amp-wp-content h1{ line-height: 1.3; font-size: 22px;}
|
1172 |
-
.amp-loop-list {
|
1173 |
-
padding: 20px 15px 18px 15px;
|
1174 |
-
}
|
1175 |
-
h2.amp-wp-title{
|
1176 |
-
line-height: 1.31578947;
|
1177 |
-
font-size: 17px;
|
1178 |
-
}
|
1179 |
-
.related_posts .related_link a {
|
1180 |
-
font-size: 15px;
|
1181 |
-
}
|
1182 |
-
.the_content .amp-ad-wrapper{
|
1183 |
-
text-align: center;
|
1184 |
-
margin-left: -13px;
|
1185 |
-
}
|
1186 |
-
}
|
1187 |
-
@media screen and (max-width: 320px) {
|
1188 |
-
.related_posts .related_link a {
|
1189 |
-
font-size: 13px;
|
1190 |
-
}
|
1191 |
-
.ampforwp-social-icons amp-social-share{ margin-right: 1px; }
|
1192 |
-
|
1193 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1194 |
|
1195 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
1196 |
/* RTL Start */
|
1197 |
-
.amp-carousel-slide h1{
|
1198 |
-
direction: rtl;
|
1199 |
-
}
|
1200 |
-
.featured_time{
|
1201 |
-
text-align: right;
|
1202 |
-
padding-right: 20px;
|
1203 |
-
}
|
1204 |
-
main .amp-wp-content{
|
1205 |
-
direction: rtl;
|
1206 |
-
}
|
1207 |
-
|
1208 |
-
.home-post_image {
|
1209 |
-
float: right;
|
1210 |
-
padding-right: 0%;
|
1211 |
-
padding-left: 2%;
|
1212 |
-
margin-right: 0%;
|
1213 |
-
}
|
1214 |
-
|
1215 |
-
.searchmenu {
|
1216 |
-
margin-right: 15px;
|
1217 |
-
margin-top: 11px;
|
1218 |
-
position: absolute;
|
1219 |
-
top: 0;
|
1220 |
-
right: inherit;
|
1221 |
-
}
|
1222 |
-
|
1223 |
-
.searchform label{
|
1224 |
-
|
1225 |
-
text-align: right;
|
1226 |
-
right: -30px;
|
1227 |
-
position: relative;
|
1228 |
-
|
1229 |
-
}
|
1230 |
-
|
1231 |
-
.searchform input{
|
1232 |
-
|
1233 |
-
text-align: right;
|
1234 |
-
padding: 15px;
|
1235 |
-
|
1236 |
-
}
|
1237 |
-
|
1238 |
-
.closebutton{
|
1239 |
-
left:20px;
|
1240 |
-
}
|
1241 |
-
|
1242 |
-
.hamburgermenu {
|
1243 |
-
float: right;
|
1244 |
-
}
|
1245 |
-
.toast {
|
1246 |
-
display: block;
|
1247 |
-
position: relative;
|
1248 |
-
height: 50px;
|
1249 |
-
padding-left: 20px;
|
1250 |
-
padding-right: 15px;
|
1251 |
-
width: 60px;
|
1252 |
-
background: none;
|
1253 |
-
border: 0;
|
1254 |
-
}
|
1255 |
-
|
1256 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1257 |
/* RTL single */
|
1258 |
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
float: right;
|
1267 |
-
margin-left: 12px;
|
1268 |
-
}
|
1269 |
-
|
1270 |
-
.amp-wp-article, .footer_wrapper container {
|
1271 |
-
|
1272 |
-
direction: rtl;
|
1273 |
-
}
|
1274 |
-
|
1275 |
-
.single-post .post-pagination-meta span{
|
1276 |
-
|
1277 |
-
float: right;
|
1278 |
-
}
|
1279 |
-
|
1280 |
-
.amp-wp-article-tags span {
|
1281 |
-
|
1282 |
-
background: #eeeeee;
|
1283 |
-
margin-right: 10px;
|
1284 |
-
padding: 5px 12px 5px 12px;
|
1285 |
-
border-radius: 3px;
|
1286 |
-
display: inline-block;
|
1287 |
-
margin: 5px;
|
1288 |
-
}
|
1289 |
-
.amp_author_area_wrapper strong{
|
1290 |
-
|
1291 |
-
float: right;
|
1292 |
-
}
|
1293 |
|
1294 |
/* RTL End */
|
1295 |
<?php } ?>
|
@@ -1303,9 +316,9 @@ amp-user-notification button { background-color: <?php echo $redux_builder_amp[
|
|
1303 |
<?php if( $redux_builder_amp['enable-single-social-icons'] == true && is_socialshare_or_socialsticky_enabled_in_ampforwp() ) { ?>
|
1304 |
.single-post footer { padding-bottom: 41px;}
|
1305 |
<?php } ?>
|
1306 |
-
.single-post amp-img.alignleft{ margin-right: 15px; margin-bottom:5px; float: left;}
|
1307 |
-
.single-post amp-img.alignright{ float:right; margin-left: 15px; margin-bottom:5px;}
|
1308 |
-
.single-post amp-img.aligncenter{ text-align:center; margin: 0 auto}
|
1309 |
.amp-wp-author:before{ content: " <?php global $redux_builder_amp; echo $redux_builder_amp['amp-translator-published-by'];?> ";}
|
1310 |
.ampforwp-tax-category span:last-child:after { content: ' ';}
|
1311 |
.ampforwp-tax-category span:after{ content: ', ';}
|
@@ -1322,169 +335,60 @@ amp-user-notification button { background-color: <?php echo $redux_builder_amp[
|
|
1322 |
font-style: normal;
|
1323 |
}
|
1324 |
|
1325 |
-
[class^="icon-"], [class*=" icon-"]
|
1326 |
-
font-family: 'icomoon';
|
1327 |
-
speak: none;
|
1328 |
-
font-style: normal;
|
1329 |
-
font-weight: normal;
|
1330 |
-
font-variant: normal;
|
1331 |
-
text-transform: none;
|
1332 |
-
line-height: 1;
|
1333 |
|
1334 |
/* Better Font Rendering =========== */
|
1335 |
-webkit-font-smoothing: antialiased;
|
1336 |
-moz-osx-font-smoothing: grayscale;
|
1337 |
}
|
1338 |
|
1339 |
-
.icon-twitter:before
|
1340 |
-
|
1341 |
-
}
|
1342 |
-
.icon-
|
1343 |
-
|
1344 |
-
}
|
1345 |
-
.icon-
|
1346 |
-
|
1347 |
-
}
|
1348 |
-
.icon-
|
1349 |
-
|
1350 |
-
}
|
1351 |
-
.icon-
|
1352 |
-
|
1353 |
-
}
|
1354 |
-
.
|
1355 |
-
|
1356 |
-
}
|
1357 |
-
.icon-youtube-play:before {
|
1358 |
-
content: "\f16a";background:#cd201f
|
1359 |
-
}
|
1360 |
-
.icon-instagram:before {
|
1361 |
-
content: "\f16d";background:#c13584
|
1362 |
-
}
|
1363 |
-
.icon-tumblr:before {
|
1364 |
-
content: "\f173";background:#35465c
|
1365 |
-
}
|
1366 |
-
.icon-vk:before {
|
1367 |
-
content: "\f189";background:#45668e
|
1368 |
-
}
|
1369 |
-
.icon-whatsapp:before {
|
1370 |
-
content: "\f232";background:#075e54
|
1371 |
-
}
|
1372 |
-
.icon-reddit-alien:before {
|
1373 |
-
content: "\f281";background:#ff4500
|
1374 |
-
}
|
1375 |
-
.icon-snapchat-ghost:before {
|
1376 |
-
content: "\f2ac"; background:#fffc00
|
1377 |
-
}
|
1378 |
-
.social_icons{
|
1379 |
-
font-size: 15px;
|
1380 |
-
display: inline-block;
|
1381 |
-
}
|
1382 |
-
.social_icons ul{
|
1383 |
-
list-style-type:none;
|
1384 |
-
padding:0;margin:0;
|
1385 |
-
text-align:center
|
1386 |
-
}
|
1387 |
-
.social_icons li{
|
1388 |
-
display:inline-block;
|
1389 |
-
margin:5px;
|
1390 |
-
}
|
1391 |
-
.social_icons li:before{
|
1392 |
-
color:#fff;
|
1393 |
-
padding: 10px;
|
1394 |
-
display: inline-block;
|
1395 |
-
border-radius: 70px;
|
1396 |
-
width: 18px;
|
1397 |
-
height: 18px;
|
1398 |
-
line-height: 20px;
|
1399 |
-
text-align: center;
|
1400 |
-
}
|
1401 |
#ampsomething { display: none; }
|
1402 |
#header, .headerlogo a{ background:<?php echo $redux_builder_amp['amp-opt-color-rgba-headercolor']['color']; ?> }
|
1403 |
-
.comment-button-wrapper a, #pagination .next a, #pagination .prev a{
|
1404 |
-
|
1405 |
-
}
|
1406 |
-
.
|
1407 |
-
background: <?php echo $redux_builder_amp['amp-opt-color-rgba-headerelements']['color']; ?> ;
|
1408 |
-
}
|
1409 |
-
[class*=icono-], .headerlogo a{ color: <?php echo $redux_builder_amp['amp-opt-color-rgba-headerelements']['color']; ?> }
|
1410 |
-
#pagination .next a, #pagination .prev a , #pagination .next a, #pagination .prev a , .comment-button-wrapper a {
|
1411 |
-
color: <?php echo $redux_builder_amp['amp-opt-color-rgba-font']['color']; ?> ;
|
1412 |
-
}
|
1413 |
<?php if( !has_nav_menu( 'amp-menu' ) ) { ?>
|
1414 |
.toggle-navigationv2 .social_icons { border-top: 0px; }
|
1415 |
.toggle-navigationv2 a { color:#fff; }
|
1416 |
<?php } ?>
|
|
|
|
|
|
|
|
|
1417 |
<?php
|
1418 |
-
// Table press support
|
1419 |
if ( class_exists('TablePress') ) { ?>
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
.tablepress th,
|
1435 |
-
.tablepress td {
|
1436 |
-
padding: 8px;
|
1437 |
-
border: none;
|
1438 |
-
background: none;
|
1439 |
-
text-align: left;
|
1440 |
-
}
|
1441 |
-
.tablepress tbody td {
|
1442 |
-
vertical-align: top;
|
1443 |
-
}
|
1444 |
-
|
1445 |
-
/* Horizontal borders */
|
1446 |
-
.tablepress tbody td,
|
1447 |
-
.tablepress tfoot th {
|
1448 |
-
border-top: 1px solid #dddddd;
|
1449 |
-
}
|
1450 |
-
.tablepress tbody tr:first-child td {
|
1451 |
-
border-top: 0;
|
1452 |
-
}
|
1453 |
-
.tablepress thead th {
|
1454 |
-
border-bottom: 1px solid #dddddd;
|
1455 |
-
}
|
1456 |
-
|
1457 |
-
/* Row background colors */
|
1458 |
-
.tablepress thead th,
|
1459 |
-
.tablepress tfoot th {
|
1460 |
-
background-color: #d9edf7;
|
1461 |
-
font-weight: bold;
|
1462 |
-
vertical-align: middle;
|
1463 |
-
}
|
1464 |
-
.tablepress .odd td {
|
1465 |
-
background-color: #f9f9f9;
|
1466 |
-
}
|
1467 |
-
.tablepress .even td {
|
1468 |
-
background-color: #ffffff;
|
1469 |
-
}
|
1470 |
-
.tablepress .row-hover tr:hover td {
|
1471 |
-
background-color: #f3f3f3;
|
1472 |
-
}
|
1473 |
-
|
1474 |
-
@media (min-width: 768px) and (max-width: 1600px) {
|
1475 |
-
.tablepress{
|
1476 |
-
overflow-x: none;
|
1477 |
-
}
|
1478 |
-
}
|
1479 |
-
@media (min-width: 320px) and (max-width: 767px) {
|
1480 |
-
.tablepress{
|
1481 |
-
display: inline-block;
|
1482 |
-
overflow-x: scroll;
|
1483 |
-
}
|
1484 |
-
}
|
1485 |
-
|
1486 |
<?php } ?>
|
|
|
1487 |
|
1488 |
-
|
1489 |
-
<?php echo $redux_builder_amp['css_editor'];
|
1490 |
-
} ?>
|
15 |
?>
|
16 |
|
17 |
/* Global Styling */
|
18 |
+
body{ font: 16px/1.4 Sans-serif; }
|
19 |
+
a{ color: #312C7E; text-decoration: none }
|
20 |
+
.clearfix, .cb{ clear: both }
|
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 {
|
32 |
|
33 |
/* Slide Navigation code */
|
34 |
|
35 |
+
amp-sidebar{ width: 280px; background: #131313; font-family: 'Roboto Slab', serif; }
|
36 |
+
.amp-sidebar-image{ line-height: 100px; vertical-align:middle; }
|
37 |
+
.amp-close-image{ top: 15px; left: 225px; cursor: pointer; }
|
38 |
+
.navigation_heading{ padding: 20px 20px 15px 20px; color: #aaa; font-size: 10px; font-family: sans-serif; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #555; display: inline-block; width: 100%; }
|
39 |
+
amp-accordion>section[expanded]>:nth-child(n){ background:#666; }
|
40 |
+
amp-accordion>section[expanded]>:nth-child(n) li:last-child{ margin-bottom:10px }
|
41 |
+
amp-accordion>section[expanded]>:nth-child(n) li{ animation: openingmenu .3s normal forwards ease-in-out; -webkit-transform: translate3d(0, 0, 60%) scale(1); transform: translate3d(0, 0, 60%) scale(1); }
|
42 |
+
@keyframes openingmenu{ 0% { padding:0px; } 100% { padding:0px 0px 0px 10px; } }
|
43 |
+
@keyframes closingmenu{ 0% { padding:0px 0px 0px 20px; } 100% { padding:0px; } }
|
44 |
+
.toggle-navigationv2 ul{ list-style-type: none; margin: 15px 0 0 0; padding: 0; }
|
45 |
+
.toggle-navigationv2 ul li a{ padding: 10px 15px 10px 20px; display: inline-block; font-size: 14px; color:#eee; width:100% }
|
46 |
+
amp-accordion>section[expanded] li a{ padding: 8px 15px 8px 20px; font-size: 14px; }
|
47 |
+
amp-accordion>section[expanded] li a:before{ content: "\25b8"; left: -7px; top: -2px; position: relative; font-size: 10px; color: #a9a9a9; }
|
48 |
+
.toggle-navigationv2 ul li a:hover,.toggle-navigationv2 ul h6:hover{ transition: 1s all; background: #666; color: #fff; }
|
49 |
+
.toggle-navigationv2 ul h6{ padding: 10px 15px 10px 20px; background: #131313; border:0; font-size: 14px; font-weight:normal; }
|
50 |
+
.toggle-navigationv2 ul h6 a:after{ position: absolute; right: 20px; top: 0; color: #999; font-size: 13px; line-height: 38px; transition: 1s all; transform:rotate(-90deg); content: '\25be'; }
|
51 |
+
.toggle-navigationv2 ul h6 a{ color:#eee; }
|
52 |
+
.toggle-navigationv2 section[expanded] h6 a:after{ content: '\25be'; font-size: 13px; transform:rotate(0); transition: 1s all; color:#ccc }
|
53 |
+
.toggle-navigationv2 section[expanded] h6{ transition: 1s all; background:#666 }
|
54 |
+
.toggle-navigationv2 .social_icons{ margin-top: 25px; border-top: 1px solid #555; padding: 25px 0px; color: #fff; width: 100%; }
|
55 |
+
.menu-all-pages-container:after{ content: ""; clear: both }
|
56 |
+
.toggle-text{ color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 3px; display: inherit; text-align: center; }
|
57 |
+
.toggle-text:before{ content: "..."; font-size: 32px; position: ; font-family: georgia; line-height: 0px; margin-left: 0px; letter-spacing: 1px; top: -3px; position: relative; padding-right: 10px; }
|
58 |
+
.toggle-navigation:hover, .toggle-navigation:active, .toggle-navigation:focus{ display: inline-block; width: 100%; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
/* Pagination */
|
61 |
+
.amp-wp-content.pagination-holder{ background: none; padding: 0; box-shadow: none; height: auto; min-height: auto; }
|
62 |
+
#pagination{ width: 100%; margin-top: 20px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
#pagination .next, #pagination .prev{ margin: 0px 6% 10px 6%; }
|
64 |
+
#pagination .next a, #pagination .prev a{ opacity:0.9; background: #f42f42; width: 100%; color: #fff; display: inline-block; text-align: center; font-size: 16px; line-height: 1; padding: 18px 0%; border-radius: 4px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
.whatsapp-share-icon{ height: 40px; display: inline-block; background: #5cbe4a; margin: 0; }
|
69 |
+
.sticky_social .whatsapp-share-icon{ padding: 4px 0px 14px 0px; height: 10px; top: -4px; position: relative; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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; }
|
73 |
+
#headerwrap{ position: fixed; z-index:1000; width: 100%; top:0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
#header h1{ text-align: center; font-size: 16px; position: relative; font-weight: bold; line-height: 53px; padding: 0; margin: 0; text-transform: uppercase }
|
75 |
+
main .amp-wp-content{ font-size: 18px; line-height: 29px; color:#111 }
|
|
|
|
|
|
|
|
|
|
|
76 |
.single-post main .amp-wp-article-content h1{ font-size:2em}
|
77 |
+
.single-post main .amp-wp-article-content h1, .single-post main .amp-wp-article-content h2, .single-post main .amp-wp-article-content h3, .single-post main .amp-wp-article-content h4, .single-post main .amp-wp-article-content h5, .single-post main .amp-wp-article-content h6{ font-family: 'Roboto Slab', serif; margin: 0px 0px 5px 0px; line-height: 1.6; }
|
78 |
+
.home-post_image{ float: left; width:33%; padding-right: 2%; }
|
79 |
+
.amp-wp-title{ margin-top: 0px; }
|
80 |
+
h2.amp-wp-title{ font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 20px; margin-bottom: 7px; line-height: 1.3; }
|
81 |
+
h2.amp-wp-title a{ color: #000; }
|
82 |
+
.amp-wp-tags{ list-style-type: none; padding: 0; margin: 0 0 9px 0; display: inline-flex; }
|
83 |
+
.amp-wp-tags li{ display: inline; background: #F6F6F6; color: #9e9e9e; line-height: 1; border-radius: 50px; padding: 8px 18px; font-size: 12px; margin-right: 8px; top: -3px; position: relative; }
|
84 |
+
.amp-loop-list{ position:relative; border-bottom: 1px solid #ededed; padding: 25px 15px 25px 15px }
|
85 |
+
body .amp-loop-list-noimg .amp-wp-post-content{ width:100% }
|
86 |
+
.amp-loop-list .amp-wp-post-content{ float: left; width: 65%; }
|
87 |
+
.amp-loop-list .featured_time{ color:#b3b3b3; padding-left:0 }
|
88 |
+
.amp-wp-post-content p{ color: grey; line-height: 1.5; font-size: 14px; margin: 8px 0 10px; font-family:'PT Serif', serif }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
/* Footer */
|
90 |
+
#footer{ background: #151515; color: #eee; font-size: 13px; text-align: center; letter-spacing: 0.2px; padding: 35px 0 35px 0; margin-top: 30px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
#footer a{ color:#fff }
|
92 |
+
#footer p:first-child{ margin-bottom: 12px; }
|
93 |
+
#footer .social_icons{ margin: 0px 20px 25px 20px; border-bottom: 1px solid #3c3c3c; padding-bottom: 25px; }
|
94 |
+
#footer p{ margin: 0 }
|
95 |
+
.rightslink, #footer .rightslink a{ font-size:13px; color:#999 }
|
96 |
+
.poweredby{ padding-top:10px; font-size:10px; }
|
97 |
+
#footer .poweredby a{ color:#666 }
|
98 |
+
.footer_menu ul{ list-style-type: none; padding: 0; text-align: center; margin: 0px 20px 25px 20px; line-height: 27px; font-size: 13px }
|
99 |
+
.footer_menu ul li{ display:inline; margin:0 10px; }
|
100 |
+
.footer_menu ul li:first-child{ margin-left:0 }
|
101 |
+
.footer_menu ul li:last-child{ margin-right:0 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
.footer_menu ul ul{ display:none }
|
103 |
/* Single */
|
104 |
+
.single-post main{ margin: 20px 17px 17px 17px; }
|
105 |
+
.amp-wp-article-content{ font-family:'PT Serif', serif; }
|
106 |
+
.single-post .post-featured-img, .single-post .amp-wp-article-content amp-img{ margin:0 -17px 17px -17px }
|
107 |
+
.single-post .amp-wp-article-content .alignleft amp-img { margin-right: 7px; }
|
108 |
+
.single-post .amp-wp-article-content .alignright amp-img { margin-left: 7px; }
|
109 |
+
.ampforwp-title{ padding: 0px 0px 0px 0px; margin-top: 12px; margin-bottom: 12px; }
|
110 |
+
.comment-button-wrapper{ margin-bottom: 50px; margin-top: 30px; text-align:center }
|
111 |
+
.comment-button-wrapper a{ color: #fff; background: #312c7e; font-size: 14px; padding: 12px 22px 12px 22px; font-family: 'Roboto Slab', serif; border-radius: 2px; text-transform: uppercase; letter-spacing: 1px; }
|
112 |
+
h1.amp-wp-title{ margin: 0; color: #333333; font-size: 48px; line-height: 58px; font-family: 'Roboto Slab', serif; }
|
113 |
+
.post-pagination-meta{ min-height:75px }
|
114 |
+
.single-post .post-pagination-meta{ font-size:15px; font-family:sans-serif; min-height:auto; margin-top:-5px; line-height:26px; }
|
115 |
+
.single-post .post-pagination-meta span{ font-weight:bold }
|
116 |
+
.single-post .amp_author_area .amp_author_area_wrapper{ display: inline-block; width: 100%; line-height: 1.4; margin-top: 22px; font-size: 16px; color:#333; font-family: sans-serif; }
|
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: #eeeee e; margin-right: 10px; padding: 5px 12px 5px 12px; border-radius: 3px; }
|
120 |
+
.ampforwp-social-icons{ margin-bottom: 28px; margin-top: 25px; height: 40px; }
|
121 |
+
.ampforwp-social-icons amp-social-share{ border-radius:60px; background-size:22px; margin-right:6px; }
|
122 |
+
.ampforwp-social-icons-wrapper .whatsapp-share-icon{ padding: 11px 12px 9px 12px; top: -13px; position: relative; line-height:1; height: 20px; border-radius: 60px; }
|
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%; }
|
126 |
+
figcaption{ font-size: 11px; margin-bottom: 11px; background: #eee; padding: 6px 8px; }
|
127 |
+
.single-post figcaption{ margin-top: -17px; margin-left: -17px; margin-right: -17px; }
|
128 |
+
.single-post .alignright figcaption { margin: -17px -7px 0 7px; }
|
129 |
+
.amp-wp-byline amp-img{ display: none; }
|
130 |
+
.amp-wp-author{ margin-right: 1px; }
|
131 |
+
.amp-wp-meta, .amp-wp-meta a{ font-size: 13px; color: #acacac; margin: 20px 0px 20px 0px; padding: 0; }
|
132 |
+
.amp-ad-wrapper{ text-align: center }
|
133 |
+
.the_content p{ margin-top: 0px; margin-bottom: 30px; }
|
134 |
+
.amp-wp-tax-tag{ }
|
135 |
+
main .amp-wp-content.featured-image-content{ padding: 0px; border: 0; margin-bottom: 0; box-shadow: none }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
.archives_body main{ margin-top:30px }
|
137 |
/* Related Posts */
|
138 |
+
main .amp-wp-content.relatedpost{ background: none; box-shadow: none; padding:0px 0 0 0; margin:1.8em auto 1.5em auto }
|
139 |
+
.single-post .related_posts h3, .single-post .comments_list h3{ font-size: 20px; color: #777; font-family:'Roboto Slab', serif; border-bottom: 1px solid #eee; font-weight: 400; padding-bottom: 1px; margin-bottom: 10px; }
|
140 |
+
.related_posts ol{ list-style-type:none; margin:0; padding:0 }
|
141 |
+
.related_posts ol li{ display:inline-block; width:100%; margin-bottom: 12px; padding: 0px; }
|
142 |
+
.related_posts .related_link a{ color: #444; font-size: 16px; font-family: 'Roboto Slab', serif; font-weight: 600; }
|
143 |
+
.related_posts ol li amp-img{ width:100px; float:left; margin-right:15px }
|
144 |
+
.related_posts ol li p{ font-size: 12px; color: #999; line-height: 1.2; margin: 12px 0 0 0; }
|
145 |
+
.no_related_thumbnail{ padding: 15px 18px; }
|
146 |
+
.no_related_thumbnail .related_link{ margin: 16px 18px 20px 19px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
/* Comments */
|
148 |
+
.page-numbers{ padding: 9px 10px; background: #fff; font-size: 14px; }
|
149 |
+
.comment-body .comment-content{ font-family:'PT Serif', serif; margin-top: 2px; }
|
150 |
+
main .amp-wp-content.comments_list{ background: none; box-shadow: none; padding:0 }
|
151 |
+
.comments_list div{ display:inline-block; }
|
152 |
+
.comments_list ul{ margin:0; padding:0 }
|
153 |
+
.comments_list ul.children{ padding-bottom:10px; margin-left: 3%; width: 96%; }
|
154 |
+
.comments_list ul li p{ margin:0; font-size:16px; clear:both; padding-top:5px; }
|
155 |
+
.comments_list ul li{ font-size: 12px; list-style-type: none; margin-bottom: 22px; padding-bottom: 20px; max-width: 1000px; border-bottom: 1px solid #eee; }
|
156 |
+
.comments_list ul ul li{ border-left: 2px solid #eee; padding-left: 15px; border-bottom: 0; padding-bottom: 0px; }
|
157 |
+
.comments_list ul li .comment-body .comment-author{ margin-right:5px }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
.comment-author{ float:left }
|
159 |
+
.single-post footer.comment-meta{ color:#666; padding-bottom: 0; }
|
|
|
|
|
|
|
160 |
.comment-metadata a{ color:#888 }
|
161 |
+
.comments_list li li{ margin: 20px 20px 10px 20px; background: #f7f7f7; box-shadow: none; border: 1px solid #eee; }
|
162 |
+
.comments_list li li li{ margin:20px 20px 10px 20px }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
/* ADS */
|
164 |
+
.amp_ad_1{ margin-top: 15px; margin-bottom: 10px; }
|
165 |
+
.single-post .amp_ad_1{ margin-bottom: -15px; }
|
|
|
|
|
|
|
|
|
|
|
166 |
.amp-ad-2{ margin-bottom: -5px; margin-top: 20px; }
|
167 |
+
html .single-post .ampforwp-incontent-ad-1 { margin-bottom: 10px; }
|
168 |
+
.amp-ad-3{ margin-bottom:10px; }
|
169 |
+
.amp-ad-4{ margin-top:2px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
/* Notifications */
|
171 |
+
#amp-user-notification1 p{ display: inline-block; }
|
172 |
+
amp-user-notification{ padding: 5px; text-align: center; background: #fff; border-top: 1px solid; }
|
173 |
+
amp-user-notification button{ padding: 8px 10px; background: #000; color: #fff; margin-left: 5px; border: 0; }
|
174 |
+
amp-user-notification button:hover{ cursor: pointer }
|
175 |
+
.amp-wp-content blockquote{ background-color: #fff; border-left: 3px solid; margin: 0; padding: 15px 20px; background: #f3f3f3; }
|
176 |
+
.amp-wp-content blockquote p{ margin-bottom:0 }
|
177 |
+
pre{ white-space: pre-wrap; }
|
178 |
+
|
179 |
+
#designthree{ background-color: #FFF; overflow: visible;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
/* animation: closing .3s normal forwards ease-in-out,closingFix .6s normal forwards ease-in-out;
|
181 |
-webkit-transform-origin: right center;
|
182 |
transform-origin: right center;*/
|
183 |
}
|
184 |
/* Sidebar */
|
185 |
+
#sidebar[aria-hidden="false"]+#designthree { max-height: 100vh; overflow: hidden; animation: opening .3s normal forwards ease-in-out; -webkit-transform: translate3d(60%, 0, 0) scale(0.8); transform: translate3d(60%, 0, 0) scale(0.8); }
|
186 |
+
@keyframes opening{ 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(60%, 0, 0) scale(0.8); } }
|
187 |
+
@keyframes closing{ 0% { transform: translate3d(60%, 0, 0) scale(0.8); } 100% { transform: translate3d(0, 0, 0) scale(1); } }
|
188 |
+
@keyframes closingFix{ 0% { max-height: 100vh; overflow: hidden; } 100% { max-height: none; overflow: visible; } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
|
190 |
+
.hamburgermenu{ float:left; position:relative; z-index: 9999; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
/* Category 3 */
|
192 |
.amp-category-block{ margin: 30px 0px 10px 0px }
|
193 |
.amp-category-block a{ color:#666}
|
196 |
.category-widget-gutter ul{ margin-top: 10px; list-style-type:none; padding:0 }
|
197 |
.amp-category-block-btn{ display: block; text-align: center; font-size: 13px; margin-top: 15px; border-bottom: 1px solid #f1f1f1; text-decoration: none; padding-bottom: 8px;}
|
198 |
.design_2_wrapper .amp-category-block{ max-width: 840px; margin: 1.5em auto; }
|
199 |
+
.amp-category-block-title{ border-bottom: double #ddd; margin-bottom: 12px; padding-bottom: 1px; text-align: center; font-size: 12px; text-transform: uppercase; color: #666; }
|
200 |
+
.amp-category-block ul, .category-widget-wrapper{ max-width: 1000px; margin: 0 auto; padding:0px 15px 5px 15px }
|
201 |
+
.amp-category-post{ width: 32%; display:inline-table; }
|
202 |
+
.amp-category-post amp-img{ margin-bottom:5px; }
|
203 |
+
.amp-category-block li:nth-child(3){ margin: 0 1%; }
|
204 |
+
.searchmenu{ margin-right: 15px; margin-top: 11px; position: absolute; top: 0; right: 0; }
|
205 |
+
.searchmenu button{ background:transparent; border:none }
|
206 |
+
.headerlogo{ margin: 0 auto; width: 80%; text-align: center; }
|
207 |
+
.headerlogo amp-img{ margin-top:6px }
|
208 |
+
.headerlogo a{ color:#F42; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
/*Navigation Menu*/
|
210 |
+
.toast { display: block; position: relative; height: 50px; padding-left: 20px; padding-right: 15px; width: 49px; background:none; border:0 }
|
211 |
+
.toast:after, .toast:before, .toast span{ position: absolute; display: block; width: 19px; height: 2px; border-radius: 2px; background-color: #F42; -webkit-transform: translate3d(0, 0, 0) rotate(0deg); transform: translate3d(0, 0, 0) rotate(0deg); }
|
212 |
+
.toast:after, .toast:before{ content: ''; left: 20px; -webkit-transition: all ease-in .4s; transition: all ease-in .4s; }
|
213 |
+
.toast span{ opacity: 1; top: 24px; -webkit-transition: all ease-in-out .4s; transition: all ease-in-out .4s; }
|
214 |
+
.toast:before{ top: 17px; }
|
215 |
+
.toast:after{ top: 31px; }
|
216 |
+
#sidebar[aria-hidden="false"]+#designthree .toast span{ opacity: 0; -webkit-transform: translate3d(200%, 0, 0); transform: translate3d(200%, 0, 0); }
|
217 |
+
#sidebar[aria-hidden="false"]+#designthree .toast:before{ -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate(43deg); transform: rotate(43deg); }
|
218 |
+
#sidebar[aria-hidden="false"]+#designthree .toast:after{ -webkit-transform-origin: left top; transform-origin: left top; -webkit-transform: rotate(-43deg); transform: rotate(-43deg); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
|
220 |
/* CSS3 icon */
|
221 |
+
[class*=icono-]{ display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
|
222 |
+
[class*=icono-]:after, [class*=icono-]:before{ content: ''; pointer-events: none; }
|
223 |
+
.icono-search{ -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%) }
|
224 |
+
.icono-share{ height: 9px; position: relative; width: 9px; color: #dadada; border-radius: 50%; box-shadow: inset 0 0 0 32px, 22px -11px 0 0, 22px 11px 0 0; top: -15px; margin-right: 35px; }
|
225 |
+
.icono-share:after, .icono-share:before{ position: absolute; width: 24px; height: 1px; box-shadow: inset 0 0 0 32px; left: 0; }
|
226 |
+
.icono-share:before{ top: 0px; -webkit-transform: rotate(-25deg); -ms-transform: rotate(-25deg); transform: rotate(-25deg); }
|
227 |
+
.icono-share:after{ top: 8px; -webkit-transform: rotate(25deg); -ms-transform: rotate(25deg); transform: rotate(25deg); }
|
228 |
+
.icono-search{ border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
|
229 |
+
.icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
|
230 |
+
.closebutton{ background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 30px; width: 32px; height: 32px; font-size: 12px; text-align: center; position: absolute; top: 12px; right: 20px; outline:none }
|
231 |
+
amp-lightbox{ background: rgba(0, 0, 0,0.85); }
|
232 |
+
.searchform label{ color: #f7f7f7; display: block; font-size: 10px; letter-spacing: 0.3px; line-height: 0; opacity:0.6 }
|
233 |
+
.searchform{ background: transparent; left: 20%; position: absolute; top: 35%; width: 60%; max-width: 100%; transition-delay: 0.5s; }
|
234 |
+
.searchform input{ background: transparent; border: 1px solid #666; color: #f7f7f7; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: 0.3px; text-transform: capitalize; padding: 20px 0px 20px 30px; margin-top: 15px; width: 100%; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
#searchsubmit{opacity:0}
|
236 |
|
237 |
/* AMP carousel */
|
238 |
+
.amp-carousel-button-prev, .amp-carousel-button-next{ top:30px;border-radius:60px; }
|
239 |
+
.amp-featured-wrapper{ background:#333 }
|
240 |
+
.amp-featured-area{ margin: 0 auto; max-width: 450px; max-height: 270px; }
|
241 |
+
.amp-carousel-slide h1{ font-size: 30px; font-family: 'PT Serif', serif; margin: 0; font-weight: normal; line-height: 38px; color: #fff; padding: 10px 20px 20px 20px; }
|
242 |
+
.amp-carousel-slide amp-img:before{ z-index:100; bottom: 0; content: ""; display: block; height: 100%; position: absolute; width: 100%; background: -webkit-gradient(linear, 50% 0%, 50% 75%, color-stop(0%, rgba(0,0,0,0)), color-stop(150%, #000000)) repeat scroll 0 0 rgba(0,0,0,0.2); background: -webkit-linear-gradient(rgba(0,0,0,0),#000000 75%) repeat scroll 0 0 rgba(0,0,0,0); background: -moz-linear-gradient(rgba(0,0,0,0),#000000 75%) repeat scroll 0 0 rgba(0,0,0,0); background: -o-linear-gradient(rgba(0,0,0,0),#000000 75%) repeat scroll 0 0 rgba(0,0,0,0); background: linear-gradient(rgba(0,0,0,0),#000000 75%) repeat scroll 0 0 rgba(0,0,0,0); }
|
243 |
+
.featured_title{ position:absolute; z-index:110; bottom:0 }
|
244 |
+
.featured_time{ font-size: 12px; color: #fff; opacity: 0.8; padding-left: 20px; }
|
245 |
+
.featured_meta{ color:#acacac; font-size:12px; margin:0 15px; }
|
246 |
+
.featured_meta_left{ float:left }
|
247 |
+
.featured_meta_right{ float:right }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
/* Tables */
|
250 |
+
table { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; overflow-x: auto; }
|
251 |
table a:link { color: #666; font-weight: bold; text-decoration: none; }
|
252 |
table a:visited { color: #999999; font-weight: bold; text-decoration: none; }
|
253 |
+
table a:active, table a:hover { color: #bd5a35; text-decoration: underline; }
|
254 |
+
table { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 12px; text-shadow: 1px 1px 0px #fff; background: #eee; margin: 0px; width: 95%; }
|
|
|
255 |
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); }
|
256 |
table th:first-child { text-align: left; padding-left: 20px; }
|
257 |
table tr:first-child th:first-child { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
267 |
|
268 |
/* Responsive */
|
269 |
@media screen and (min-width:1034px){
|
270 |
+
.single-post .amp-wp-article-content amp-img{ margin:0 -17px 17px -17px }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
}
|
272 |
+
@media screen and (max-width: 1033px){
|
273 |
+
.single-post figcaption{ margin: -17px 17px 17px -17px }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
}
|
275 |
+
@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;} }
|
276 |
+
@media screen and (max-width: 600px){ .amp-loop-list .amp-wp-tags{display:none} }
|
277 |
+
@media screen and (max-width: 530px){ .home-post_image{ width: 35%; } .amp-loop-list .amp-wp-post-content{ width: 63%; } .amp-wp-post-content p { font-size: 12px; } .related_posts ol li p { line-height: 1.6; margin: 7px 0 0 0;} .comments_list ul li .comment-body {width:auto} .amp-category-block li:nth-child(3) {margin:0} }
|
278 |
+
@media screen and (max-width: 425px){ .home-post_image{ /* width: 125px;*/ width: 31.6%; overflow: hidden; height: 100px; /* margin-right: 13px; */ margin-right: 3%; } .home-post_image amp-img{ width: 144%; left: -20%; } h2.amp-wp-title{ margin-bottom: 7px; line-height: 1.31578947; font-size: 19px; position:relative;top:-3px } h2.amp-wp-title a{ color:#262626} .amp-loop-list{padding:25px 15px 22px 15px} .amp-loop-list .amp-wp-post-content{ width: 63%; } .amp-loop-list .amp-wp-post-content p, .related_posts .related_link p{ display:none } .related_posts .related_link a{ font-size: 18px; line-height: 1.7; } .ampforwp-tax-category{ padding-bottom:0 } .amp-wp-byline{ padding:0 } .related_posts .related_link a{ font-size: 17px; line-height: 1.5; } .single-post main .amp-wp-content h1{ line-height: 1.3; font-size: 26px;} .icono-share{display:none} .ampforwp-social-icons amp-social-share{ margin-right: 3px;} main .amp-wp-content{ font-size: 16px; line-height: 26px;} .single-post .amp_author_area .amp_author_area_wrapper{font-size:13px;} .amp-category-post{ font-size:12px; color:#666 } }
|
279 |
+
@media screen and (max-width: 400px){ .amp-wp-title{ font-size: 19px; } }
|
280 |
+
@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; } }
|
281 |
+
@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; } }
|
282 |
+
@media screen and (max-width: 320px){ .related_posts .related_link a{ font-size: 13px; } .ampforwp-social-icons amp-social-share{ margin-right: 1px; } }
|
283 |
|
284 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
285 |
/* RTL Start */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
|
287 |
+
.amp-carousel-slide h1{ direction: rtl; }
|
288 |
+
.featured_time{ text-align: right; padding-right: 20px; }
|
289 |
+
main .amp-wp-content{ direction: rtl; }
|
290 |
+
.home-post_image{ float: right; padding-right: 0%; padding-left: 2%; margin-right: 0%; }
|
291 |
+
.searchmenu{ margin-right: 15px; margin-top: 11px; position: absolute; top: 0; right: inherit; }
|
292 |
+
.searchform label{ text-align: right; right: -30px; position: relative; }
|
293 |
+
.searchform input{ text-align: right; padding: 15px; }
|
294 |
+
.closebutton{ left:20px; }
|
295 |
+
.hamburgermenu{ float: right; }
|
296 |
+
.toast{ display: block; position: relative; height: 50px; padding-left: 20px; padding-right: 15px; width: 60px; background: none; border: 0; }
|
297 |
+
.amp-ad-wrapper{ direction: ltr; }
|
298 |
/* RTL single */
|
299 |
|
300 |
+
.related_posts ol li amp-img{ float: right; margin-left: 15px; }
|
301 |
+
.single-post .amp_author_area amp-img{ float: right; margin-left: 12px; }
|
302 |
+
.amp-wp-article, .footer_wrapper container{ direction: rtl; }
|
303 |
+
.single-post .post-pagination-meta span{ float: right; }
|
304 |
+
.amp-wp-article-tags span{ background: #eeeeee; margin-right: 10px; padding: 5px 12px 5px 12px; border-radius: 3px; display: inline-block; margin: 5px; }
|
305 |
+
.amp_author_area_wrapper strong{ float: right; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
|
307 |
/* RTL End */
|
308 |
<?php } ?>
|
316 |
<?php if( $redux_builder_amp['enable-single-social-icons'] == true && is_socialshare_or_socialsticky_enabled_in_ampforwp() ) { ?>
|
317 |
.single-post footer { padding-bottom: 41px;}
|
318 |
<?php } ?>
|
319 |
+
.single-post amp-img.alignleft, amp-anim.alignleft{ margin-right: 15px; margin-bottom:5px; float: left;}
|
320 |
+
.single-post amp-img.alignright, amp-anim.alignright{ float:right; margin-left: 15px; margin-bottom:5px;}
|
321 |
+
.single-post amp-img.aligncenter, amp-anim.aligncenter{ text-align:center; margin: 0 auto; max-width:100%}
|
322 |
.amp-wp-author:before{ content: " <?php global $redux_builder_amp; echo $redux_builder_amp['amp-translator-published-by'];?> ";}
|
323 |
.ampforwp-tax-category span:last-child:after { content: ' ';}
|
324 |
.ampforwp-tax-category span:after{ content: ', ';}
|
335 |
font-style: normal;
|
336 |
}
|
337 |
|
338 |
+
[class^="icon-"], [class*=" icon-"]{ font-family: 'icomoon'; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
|
340 |
/* Better Font Rendering =========== */
|
341 |
-webkit-font-smoothing: antialiased;
|
342 |
-moz-osx-font-smoothing: grayscale;
|
343 |
}
|
344 |
|
345 |
+
.icon-twitter:before{ content: "\f099";background:#1da1f2 }
|
346 |
+
.icon-facebook:before{ content: "\f09a";background:#3b5998 }
|
347 |
+
.icon-facebook-f:before{ content: "\f09a";background:#3b5998 }
|
348 |
+
.icon-pinterest:before{ content: "\f0d2";background:#bd081c }
|
349 |
+
.icon-google-plus:before{ content: "\f0d5";background:#dd4b39 }
|
350 |
+
.icon-linkedin:before{ content: "\f0e1";background:#0077b5 }
|
351 |
+
.icon-youtube-play:before{ content: "\f16a";background:#cd201f }
|
352 |
+
.icon-instagram:before{ content: "\f16d";background:#c13584 }
|
353 |
+
.icon-tumblr:before{ content: "\f173";background:#35465c }
|
354 |
+
.icon-vk:before{ content: "\f189";background:#45668e }
|
355 |
+
.icon-whatsapp:before{ content: "\f232";background:#075e54 }
|
356 |
+
.icon-reddit-alien:before{ content: "\f281";background:#ff4500 }
|
357 |
+
.icon-snapchat-ghost:before{ content: "\f2ac"; background:#fffc00 }
|
358 |
+
.social_icons{ font-size: 15px; display: inline-block; }
|
359 |
+
.social_icons ul{ list-style-type:none; padding:0;margin:0; text-align:center }
|
360 |
+
.social_icons li{ display:inline-block; margin:5px; }
|
361 |
+
.social_icons li:before{ color:#fff; padding: 10px; display: inline-block; border-radius: 70px; width: 18px; height: 18px; line-height: 20px; text-align: center; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
#ampsomething { display: none; }
|
363 |
#header, .headerlogo a{ background:<?php echo $redux_builder_amp['amp-opt-color-rgba-headercolor']['color']; ?> }
|
364 |
+
.comment-button-wrapper a, #pagination .next a, #pagination .prev a{ background: <?php echo $redux_builder_amp['amp-opt-color-rgba-colorscheme']['color']; ?> ; }
|
365 |
+
.toast:after, .toast:before, .toast span{ background: <?php echo $redux_builder_amp['amp-opt-color-rgba-headerelements']['color']; ?> ; }
|
366 |
+
[class*=icono-], .headerlogo a{ color: <?php echo $redux_builder_amp['amp-opt-color-rgba-headerelements']['color']; ?> }
|
367 |
+
#pagination .next a, #pagination .prev a , #pagination .next a, #pagination .prev a , .comment-button-wrapper a{ color: <?php echo $redux_builder_amp['amp-opt-color-rgba-font']['color']; ?> ;}
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
<?php if( !has_nav_menu( 'amp-menu' ) ) { ?>
|
369 |
.toggle-navigationv2 .social_icons { border-top: 0px; }
|
370 |
.toggle-navigationv2 a { color:#fff; }
|
371 |
<?php } ?>
|
372 |
+
<?php if ($redux_builder_amp['ampforwp-callnow-button']) { ?>
|
373 |
+
.callnow{ position: relative; top: -37px; right: 39px }
|
374 |
+
.callnow a:before { content: ""; position: absolute; right: 23px; width: 4px; height: 8px; 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; }
|
375 |
+
<?php } ?>
|
376 |
<?php
|
|
|
377 |
if ( class_exists('TablePress') ) { ?>
|
378 |
+
.tablepress-table-description{ clear: both; display: block; }
|
379 |
+
.tablepress{ border-collapse: collapse; border-spacing: 0; width: 100%; margin-bottom: 1em; border: none; }
|
380 |
+
.tablepress th, .tablepress td{ padding: 8px; border: none; background: none; text-align: left; }
|
381 |
+
.tablepress tbody td{ vertical-align: top; }
|
382 |
+
.tablepress tbody td, .tablepress tfoot th{ border-top: 1px solid #dddddd; }
|
383 |
+
.tablepress tbody tr:first-child td{ border-top: 0; }
|
384 |
+
.tablepress thead th{ border-bottom: 1px solid #dddddd; }
|
385 |
+
.tablepress thead th, .tablepress tfoot th{ background-color: #d9edf7; font-weight: bold; vertical-align: middle; }
|
386 |
+
.tablepress .odd td{ background-color: #f9f9f9; }
|
387 |
+
.tablepress .even td{ background-color: #ffffff; }
|
388 |
+
.tablepress .row-hover tr:hover td{ background-color: #f3f3f3; }
|
389 |
+
@media (min-width: 768px) and (max-width: 1600px){ .tablepress{ overflow-x: none; } }
|
390 |
+
@media (min-width: 320px) and (max-width: 767px){ .tablepress{ display: inline-block; overflow-x: scroll; } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
<?php } ?>
|
392 |
+
p.wp-caption-text{ text-align: center }
|
393 |
|
394 |
+
<?php echo $redux_builder_amp['css_editor']; } ?>
|
|
|
|
@@ -63,6 +63,8 @@
|
|
63 |
51. Adding Digg Digg compatibility with AMP
|
64 |
52. Adding a generalized sanitizer function for purifiying normal html to amp-html
|
65 |
53. Adding the Markup for AMP Woocommerce latest Products
|
|
|
|
|
66 |
*/
|
67 |
// Adding AMP-related things to the main theme
|
68 |
global $redux_builder_amp;
|
@@ -104,20 +106,26 @@ define('AMPFORWP_COMMENTS_PER_PAGE', $redux_builder_amp['ampforwp-number-of-comm
|
|
104 |
global $redux_builder_amp;
|
105 |
global $wp;
|
106 |
if( is_attachment() ) {
|
107 |
-
|
108 |
}
|
109 |
if( is_home() && !$redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
|
110 |
-
|
111 |
}
|
112 |
if( is_front_page() && ! $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
|
113 |
-
|
114 |
}
|
115 |
if ( is_archive() && !$redux_builder_amp['ampforwp-archive-support'] ) {
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
if ( is_home() || is_front_page() || is_archive() ){
|
123 |
global $wp;
|
@@ -710,45 +718,57 @@ define('AMPFORWP_COMMENTS_PER_PAGE', $redux_builder_amp['ampforwp-number-of-comm
|
|
710 |
return $content;
|
711 |
}
|
712 |
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
if (! empty( $redux_builder_amp['opt-media']['url'] ) ) {
|
719 |
-
$structured_data_main_logo = $redux_builder_amp['opt-media']['url'];
|
720 |
-
}
|
721 |
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
if ( $structured_data_logo ) {
|
726 |
-
$structured_data_logo = $structured_data_logo;
|
727 |
-
} else {
|
728 |
-
$structured_data_logo = $structured_data_main_logo;
|
729 |
-
}
|
730 |
-
$metadata['publisher']['logo'] = array(
|
731 |
-
'@type' => 'ImageObject',
|
732 |
-
'url' => $structured_data_logo ,
|
733 |
-
'height' => 36,
|
734 |
-
'width' => 190,
|
735 |
-
);
|
736 |
-
|
737 |
-
//code for adding 'description' meta from Yoast SEO
|
738 |
-
|
739 |
-
if($redux_builder_amp['ampforwp-seo-yoast-custom-description']){
|
740 |
-
if ( class_exists('WPSEO_Frontend') ) {
|
741 |
-
$front = WPSEO_Frontend::get_instance();
|
742 |
-
$desc = $front->metadesc( false );
|
743 |
-
if ( $desc ) {
|
744 |
-
$metadata['description'] = $desc;
|
745 |
-
}
|
746 |
-
}
|
747 |
-
}
|
748 |
-
//End of code for adding 'description' meta from Yoast SEO
|
749 |
|
750 |
-
|
751 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
752 |
|
753 |
|
754 |
// 13. Add Custom Placeholder Image for Structured Data.
|
@@ -1062,8 +1082,8 @@ function ampforwp_sticky_social_icons(){
|
|
1062 |
<amp-social-share type="twitter"
|
1063 |
width="50"
|
1064 |
height="28"
|
1065 |
-
data-param-url="
|
1066 |
-
data-param-text
|
1067 |
></amp-social-share>
|
1068 |
<?php } ?>
|
1069 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
@@ -1182,32 +1202,32 @@ function custom_og_image_homepage() {
|
|
1182 |
//26. Extending Title Tagand De-Hooking the Standard one from AMP
|
1183 |
add_action('amp_post_template_include_single','ampforwp_remove_title_tags');
|
1184 |
function ampforwp_remove_title_tags(){
|
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 |
$current_archive_url = home_url( $wp->request );
|
1212 |
$current_url_in_pieces = explode('/',$current_archive_url);
|
1213 |
$cnt = count($current_url_in_pieces);
|
@@ -1215,21 +1235,53 @@ function ampforwp_remove_title_tags(){
|
|
1215 |
$site_title .= ' | Page '.$current_url_in_pieces[$cnt-1];
|
1216 |
}
|
1217 |
}
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1233 |
}
|
1234 |
|
1235 |
// 27. Clean the Defer issue
|
@@ -1514,6 +1566,7 @@ add_action('amp_post_template_head' , 'ampforwp_talking_to_robots');
|
|
1514 |
function ampforwp_talking_to_robots() {
|
1515 |
|
1516 |
global $redux_builder_amp;
|
|
|
1517 |
$message_to_robots = '<meta name="robots" content="noindex,nofollow"/>';
|
1518 |
$talk_to_robots=false;
|
1519 |
|
@@ -1556,9 +1609,14 @@ function ampforwp_talking_to_robots() {
|
|
1556 |
}
|
1557 |
}
|
1558 |
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
|
|
|
|
|
|
|
|
|
|
1562 |
|
1563 |
}
|
1564 |
|
@@ -1788,8 +1846,8 @@ if(ampforwp_is_amp_endpoint()) {
|
|
1788 |
add_action('template_redirect', 'ampforwp_dd_exclude_from_amp');
|
1789 |
|
1790 |
//52. Adding a generalized sanitizer function for purifiying normal html to amp-html
|
1791 |
-
function
|
1792 |
-
$amp_custom_post_content_input =
|
1793 |
if ( !empty( $amp_custom_post_content_input ) ) {
|
1794 |
$amp_custom_content = new AMP_Content( $amp_custom_post_content_input,
|
1795 |
apply_filters( 'amp_content_embed_handlers', array(
|
@@ -1829,11 +1887,15 @@ Examples:
|
|
1829 |
|
1830 |
[amp-woocommerce num=5]
|
1831 |
[amp-woocommerce num=5 link=noamp]
|
1832 |
-
[amp-woocommerce num=5 link=amp]
|
1833 |
*******************************/
|
1834 |
function get_amp_latest_prodcuts_markup( $atts ) {
|
1835 |
// initializing these to avoid debug errors
|
1836 |
-
global $
|
|
|
|
|
|
|
|
|
|
|
1837 |
|
1838 |
$atts[] = shortcode_atts( array(
|
1839 |
'num' => get_permalink($atts['num']),
|
@@ -1855,39 +1917,51 @@ Examples:
|
|
1855 |
|
1856 |
if ( $q->have_posts() ) : $content .= '<ul class="ampforwp_wc_shortcode">';
|
1857 |
while ( $q->have_posts() ) : $q->the_post();
|
1858 |
-
|
1859 |
-
|
1860 |
-
|
1861 |
-
|
1862 |
-
|
|
|
|
|
1863 |
$content .= '<li class="ampforwp_wc_shortcode_child"><a href="'.$ampforwp_post_url.'">';
|
1864 |
-
|
1865 |
// $content .= '<div class="amp-wp-content ampforwp-wc-parent"><div class="amp-wp-content featured-image-content">';
|
1866 |
if ( has_post_thumbnail() ) {
|
1867 |
$thumb_id = get_post_thumbnail_id();
|
1868 |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail', true);
|
1869 |
$thumb_url = $thumb_url_array[0];
|
1870 |
|
1871 |
-
$content .= '<amp-img src='.$thumb_url.' width="150" height="150" ></amp-img>' ;
|
1872 |
}
|
|
|
|
|
|
|
1873 |
// $content .= '</div>';
|
1874 |
-
|
1875 |
-
|
1876 |
-
// $content .= '<div class="ampforwp-wc-price">';
|
1877 |
-
|
1878 |
-
|
1879 |
-
|
1880 |
-
|
1881 |
-
|
1882 |
-
if ( $amp_product_price ) {
|
1883 |
-
$content .= '<div class="ampforwp-wc-price">' . wp_kses( $amp_product_price, $allowed_tags ) .'</div>' ;
|
1884 |
-
}
|
1885 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1886 |
}
|
1887 |
-
}
|
1888 |
$content .= '</a></li>'; ?>
|
1889 |
<?php endwhile; $content .= '</ul>'; ?>
|
1890 |
-
<?php endif; ?>
|
1891 |
<?php wp_reset_postdata();
|
1892 |
|
1893 |
// Add AMP Woocommerce latest Products only on AMP Endpoint
|
@@ -1906,9 +1980,106 @@ Examples:
|
|
1906 |
// Adding the styling for AMP Woocommerce latest Products
|
1907 |
add_action('amp_post_template_css','amp_latest_products_styling',PHP_INT_MAX);
|
1908 |
function amp_latest_products_styling() { ?>
|
1909 |
-
.ampforwp_wc_shortcode{padding:0}
|
1910 |
-
.ampforwp_wc_shortcode li{ font-size:12px; line-height: 1; float: left;max-width: 150px;list-style-type: none;margin: 10px;}
|
1911 |
-
.single-post .ampforwp_wc_shortcode li amp-img{margin:0}
|
1912 |
-
.ampforwp-wc-title{ margin: 10px 0px; }
|
1913 |
-
.ampforwp-wc-price{ color:#444 }
|
1914 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
51. Adding Digg Digg compatibility with AMP
|
64 |
52. Adding a generalized sanitizer function for purifiying normal html to amp-html
|
65 |
53. Adding the Markup for AMP Woocommerce latest Products
|
66 |
+
54. Change the default values of post meta for AMP pages.
|
67 |
+
55. Call Now Button Feature added
|
68 |
*/
|
69 |
// Adding AMP-related things to the main theme
|
70 |
global $redux_builder_amp;
|
106 |
global $redux_builder_amp;
|
107 |
global $wp;
|
108 |
if( is_attachment() ) {
|
109 |
+
return;
|
110 |
}
|
111 |
if( is_home() && !$redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
|
112 |
+
return;
|
113 |
}
|
114 |
if( is_front_page() && ! $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
|
115 |
+
return;
|
116 |
}
|
117 |
if ( is_archive() && !$redux_builder_amp['ampforwp-archive-support'] ) {
|
118 |
+
return;
|
119 |
+
}
|
120 |
+
if( is_page() && !$redux_builder_amp['amp-on-off-for-all-pages'] ) {
|
121 |
+
return;
|
122 |
+
}
|
123 |
+
if( is_front_page() && $wp->query_vars['cpage'] >= '2' ) {
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
if( is_singular() && $wp->query_vars['cpage'] >= '2' ) {
|
127 |
+
return;
|
128 |
+
}
|
129 |
|
130 |
if ( is_home() || is_front_page() || is_archive() ){
|
131 |
global $wp;
|
718 |
return $content;
|
719 |
}
|
720 |
|
721 |
+
// 12. Add Logo URL in the structured metadata
|
722 |
+
add_filter( 'amp_post_template_metadata', 'ampforwp_update_metadata', 10, 2 );
|
723 |
+
function ampforwp_update_metadata( $metadata, $post ) {
|
724 |
+
global $redux_builder_amp;
|
|
|
|
|
|
|
|
|
725 |
|
726 |
+
if (! empty( $redux_builder_amp['opt-media']['url'] ) ) {
|
727 |
+
$structured_data_main_logo = $redux_builder_amp['opt-media']['url'];
|
728 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
729 |
|
730 |
+
if (! empty( $redux_builder_amp['amp-structured-data-logo']['url'] ) ) {
|
731 |
+
$structured_data_logo = $redux_builder_amp['amp-structured-data-logo']['url'];
|
732 |
+
}
|
733 |
+
if ( $structured_data_logo ) {
|
734 |
+
$structured_data_logo = $structured_data_logo;
|
735 |
+
} else {
|
736 |
+
$structured_data_logo = $structured_data_main_logo;
|
737 |
+
}
|
738 |
+
$metadata['publisher']['logo'] = array(
|
739 |
+
'@type' => 'ImageObject',
|
740 |
+
'url' => $structured_data_logo ,
|
741 |
+
'height' => 36,
|
742 |
+
'width' => 190,
|
743 |
+
);
|
744 |
+
|
745 |
+
//code for adding 'description' meta from Yoast SEO
|
746 |
+
|
747 |
+
if($redux_builder_amp['ampforwp-seo-yoast-description']){
|
748 |
+
if ( class_exists('WPSEO_Frontend') ) {
|
749 |
+
$front = WPSEO_Frontend::get_instance();
|
750 |
+
$desc = $front->metadesc( false );
|
751 |
+
if ( $desc ) {
|
752 |
+
$metadata['description'] = $desc;
|
753 |
+
}
|
754 |
+
|
755 |
+
// Code for Custom Frontpage Yoast SEO Description
|
756 |
+
$post_id = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
757 |
+
if ( class_exists('WPSEO_Meta') ) {
|
758 |
+
$custom_fp_desc = WPSEO_Meta::get_value('metadesc', $post_id );
|
759 |
+
if ( is_home() && $redux_builder_amp['amp-frontpage-select-option'] ) {
|
760 |
+
if ( $custom_fp_desc ) {
|
761 |
+
$metadata['description'] = $custom_fp_desc;
|
762 |
+
} else {
|
763 |
+
unset( $metadata['description'] );
|
764 |
+
}
|
765 |
+
}
|
766 |
+
}
|
767 |
+
}
|
768 |
+
}
|
769 |
+
//End of code for adding 'description' meta from Yoast SEO
|
770 |
+
return $metadata;
|
771 |
+
}
|
772 |
|
773 |
|
774 |
// 13. Add Custom Placeholder Image for Structured Data.
|
1082 |
<amp-social-share type="twitter"
|
1083 |
width="50"
|
1084 |
height="28"
|
1085 |
+
data-param-url="<?php echo wp_get_shortlink() ?>"
|
1086 |
+
data-param-text="<?php echo $data_param_data ?> TITLE"
|
1087 |
></amp-social-share>
|
1088 |
<?php } ?>
|
1089 |
<?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
|
1202 |
//26. Extending Title Tagand De-Hooking the Standard one from AMP
|
1203 |
add_action('amp_post_template_include_single','ampforwp_remove_title_tags');
|
1204 |
function ampforwp_remove_title_tags(){
|
1205 |
+
remove_action('amp_post_template_head','amp_post_template_add_title');
|
1206 |
+
add_action('amp_post_template_head','ampforwp_add_custom_title_tag');
|
1207 |
+
|
1208 |
+
function ampforwp_add_custom_title_tag(){
|
1209 |
+
global $redux_builder_amp; ?>
|
1210 |
+
<title> <?php
|
1211 |
+
|
1212 |
+
// title for a single post and single page
|
1213 |
+
if( is_single() || is_page() ){
|
1214 |
+
global $post;
|
1215 |
+
$title = $post->post_title;
|
1216 |
+
$site_title = $title . ' | ' . get_option( 'blogname' ) ;
|
1217 |
+
}
|
1218 |
+
|
1219 |
+
// title for archive pages
|
1220 |
+
if ( is_archive() && $redux_builder_amp['ampforwp-archive-support'] ) {
|
1221 |
+
$site_title = strip_tags(get_the_archive_title( '' )) . ' | ' . strip_tags(get_the_archive_description( '' ));
|
1222 |
+
}
|
1223 |
+
|
1224 |
+
if ( is_home() ) {
|
1225 |
+
$site_title = get_bloginfo('name') . ' | ' . get_option( 'blogdescription' ) ;
|
1226 |
+
if ( $redux_builder_amp['amp-frontpage-select-option']== 1) {
|
1227 |
+
$ID = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
1228 |
+
$site_title = get_the_title( $ID ) . ' | ' . get_option('blogname');
|
1229 |
+
} else {
|
1230 |
+
global $wp;
|
1231 |
$current_archive_url = home_url( $wp->request );
|
1232 |
$current_url_in_pieces = explode('/',$current_archive_url);
|
1233 |
$cnt = count($current_url_in_pieces);
|
1235 |
$site_title .= ' | Page '.$current_url_in_pieces[$cnt-1];
|
1236 |
}
|
1237 |
}
|
1238 |
+
}
|
1239 |
+
|
1240 |
+
if( is_search() ) {
|
1241 |
+
$site_title = $redux_builder_amp['amp-translator-search-text'] . ' ' . get_search_query();
|
1242 |
+
}
|
1243 |
+
|
1244 |
+
if ( class_exists('WPSEO_Frontend') ) {
|
1245 |
+
$front = WPSEO_Frontend::get_instance();
|
1246 |
+
$title = $front->title( $site_title );
|
1247 |
+
|
1248 |
+
// Code for Custom Frontpage Yoast SEO Title
|
1249 |
+
if ( class_exists('WPSEO_Meta') ) {
|
1250 |
+
|
1251 |
+
// Yoast SEO Title
|
1252 |
+
$yaost_title = WPSEO_Options::get_option( 'wpseo' );
|
1253 |
+
if ( $yaost_title['website_name']) {
|
1254 |
+
$site_title = $yaost_title['website_name'];
|
1255 |
+
} else {
|
1256 |
+
$site_title = get_bloginfo('name');
|
1257 |
+
}
|
1258 |
+
|
1259 |
+
// Yoast SEO Title Seperator
|
1260 |
+
$wpseo_titles = WPSEO_Options::get_option( 'wpseo_titles' );
|
1261 |
+
$seperator_options = WPSEO_Option_Titles::get_instance()->get_separator_options();
|
1262 |
+
if ( $wpseo_titles['separator'] ) {
|
1263 |
+
$seperator = $seperator_options[ $wpseo_titles['separator'] ];
|
1264 |
+
} else {
|
1265 |
+
$seperator = ' - ';
|
1266 |
+
}
|
1267 |
+
|
1268 |
+
$post_id = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
1269 |
+
$custom_fp_title = WPSEO_Meta::get_value('title', $post_id );
|
1270 |
+
if ( is_home() && $redux_builder_amp['amp-frontpage-select-option'] ) {
|
1271 |
+
if ( $custom_fp_title ) {
|
1272 |
+
$title = $custom_fp_title;
|
1273 |
+
} else {
|
1274 |
+
$title = get_the_title($post_id) .' '. $seperator .' '. $site_title ;
|
1275 |
+
}
|
1276 |
+
}
|
1277 |
+
}
|
1278 |
+
|
1279 |
+
echo $title;
|
1280 |
+
} else {
|
1281 |
+
echo $site_title;
|
1282 |
+
} ?>
|
1283 |
+
</title> <?php
|
1284 |
+
}
|
1285 |
}
|
1286 |
|
1287 |
// 27. Clean the Defer issue
|
1566 |
function ampforwp_talking_to_robots() {
|
1567 |
|
1568 |
global $redux_builder_amp;
|
1569 |
+
global $wp;
|
1570 |
$message_to_robots = '<meta name="robots" content="noindex,nofollow"/>';
|
1571 |
$talk_to_robots=false;
|
1572 |
|
1609 |
}
|
1610 |
}
|
1611 |
|
1612 |
+
$page = $wp->query_vars['page'];
|
1613 |
+
if ( $redux_builder_amp['amp-frontpage-select-option'] && $page >= '2') {
|
1614 |
+
$talk_to_robots = true;
|
1615 |
+
}
|
1616 |
+
|
1617 |
+
if( $talk_to_robots ) {
|
1618 |
+
echo $message_to_robots;
|
1619 |
+
}
|
1620 |
|
1621 |
}
|
1622 |
|
1846 |
add_action('template_redirect', 'ampforwp_dd_exclude_from_amp');
|
1847 |
|
1848 |
//52. Adding a generalized sanitizer function for purifiying normal html to amp-html
|
1849 |
+
function ampforwp_content_sanitizer( $content ) {
|
1850 |
+
$amp_custom_post_content_input = $content;
|
1851 |
if ( !empty( $amp_custom_post_content_input ) ) {
|
1852 |
$amp_custom_content = new AMP_Content( $amp_custom_post_content_input,
|
1853 |
apply_filters( 'amp_content_embed_handlers', array(
|
1887 |
|
1888 |
[amp-woocommerce num=5]
|
1889 |
[amp-woocommerce num=5 link=noamp]
|
|
|
1890 |
*******************************/
|
1891 |
function get_amp_latest_prodcuts_markup( $atts ) {
|
1892 |
// initializing these to avoid debug errors
|
1893 |
+
global $redux_builder_amp;
|
1894 |
+
global $woocommerce;
|
1895 |
+
|
1896 |
+
if( !class_exists( 'WooCommerce' ) ){
|
1897 |
+
return;
|
1898 |
+
}
|
1899 |
|
1900 |
$atts[] = shortcode_atts( array(
|
1901 |
'num' => get_permalink($atts['num']),
|
1917 |
|
1918 |
if ( $q->have_posts() ) : $content .= '<ul class="ampforwp_wc_shortcode">';
|
1919 |
while ( $q->have_posts() ) : $q->the_post();
|
1920 |
+
global $post;
|
1921 |
+
global $product;
|
1922 |
+
if( $atts['link'] === 'amp' ) {
|
1923 |
+
$ampforwp_post_url = trailingslashit( get_permalink() ) . AMPFORWP_AMP_QUERY_VAR ;
|
1924 |
+
} else {
|
1925 |
+
$ampforwp_post_url = trailingslashit( get_permalink() ) ;
|
1926 |
+
}
|
1927 |
$content .= '<li class="ampforwp_wc_shortcode_child"><a href="'.$ampforwp_post_url.'">';
|
1928 |
+
|
1929 |
// $content .= '<div class="amp-wp-content ampforwp-wc-parent"><div class="amp-wp-content featured-image-content">';
|
1930 |
if ( has_post_thumbnail() ) {
|
1931 |
$thumb_id = get_post_thumbnail_id();
|
1932 |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail', true);
|
1933 |
$thumb_url = $thumb_url_array[0];
|
1934 |
|
1935 |
+
$content .= '<amp-img src='.$thumb_url.' width="150" height="150" layout="responsive"></amp-img>' ;
|
1936 |
}
|
1937 |
+
if ( $product->is_on_sale() ) {
|
1938 |
+
$content .= '<span class="onsale">' . 'Sale!' . '</span>';
|
1939 |
+
}
|
1940 |
// $content .= '</div>';
|
1941 |
+
$content .= '<div class="ampforwp-wc-title">'.get_the_title().'</div>';
|
1942 |
+
if ( class_exists( 'WooCommerce' ) ) {
|
1943 |
+
// $content .= '<div class="ampforwp-wc-price">';
|
1944 |
+
$amp_product_price = $woocommerce->product_factory->get_product()->get_price_html();
|
1945 |
+
$context = '';
|
1946 |
+
$allowed_tags = wp_kses_allowed_html( $context );
|
1947 |
+
|
1948 |
+
$stock_status = $product->is_in_stock() ? 'InStock' : 'OutOfStock' ;
|
1949 |
+
if ( $amp_product_price && $stock_status = 'InStock' ) {
|
1950 |
+
$content .= '<div class="ampforwp-wc-price">' . wp_kses( $amp_product_price , $allowed_tags ) . '</div>' ;
|
1951 |
+
}
|
1952 |
+
|
1953 |
+
$rating_count = $product->get_rating_count();
|
1954 |
+
$rating = $product->get_average_rating();
|
1955 |
+
if ( get_option( 'woocommerce_enable_review_rating' ) === 'yes' && $rating_count ) {
|
1956 |
+
$content .= '<div class="ampforwp_wc_star_rating" class="star-rating" title="Rated '.$rating.' out of 5' . '">';
|
1957 |
+
$content .= '<span class="ampforwp_wc_star_rating_text" ><strong>'.$rating.'</strong>'.' out of 5 </span>';
|
1958 |
+
$content .= '</div>';
|
1959 |
+
}
|
1960 |
+
|
1961 |
}
|
|
|
1962 |
$content .= '</a></li>'; ?>
|
1963 |
<?php endwhile; $content .= '</ul>'; ?>
|
1964 |
+
<?php endif; ?>
|
1965 |
<?php wp_reset_postdata();
|
1966 |
|
1967 |
// Add AMP Woocommerce latest Products only on AMP Endpoint
|
1980 |
// Adding the styling for AMP Woocommerce latest Products
|
1981 |
add_action('amp_post_template_css','amp_latest_products_styling',PHP_INT_MAX);
|
1982 |
function amp_latest_products_styling() { ?>
|
1983 |
+
.ampforwp_wc_shortcode{padding:0}
|
1984 |
+
.ampforwp_wc_shortcode li{ font-size:12px; line-height: 1; float: left;max-width: 150px;list-style-type: none;margin: 10px;}
|
1985 |
+
.single-post .ampforwp_wc_shortcode li amp-img{margin:0}
|
1986 |
+
.ampforwp-wc-title{ margin: 10px 0px; }
|
1987 |
+
.ampforwp-wc-price{ color:#444 } <?php
|
1988 |
+
}
|
1989 |
+
|
1990 |
+
// 54. Change the default values of post meta for AMP pages. #746
|
1991 |
+
add_action('admin_head','ampforwp_change_default_amp_page_meta');
|
1992 |
+
function ampforwp_change_default_amp_page_meta() {
|
1993 |
+
global $redux_builder_amp;
|
1994 |
+
$check_meta = get_option('ampforwp_default_pages_to');
|
1995 |
+
$checker = 'show';
|
1996 |
+
$control = $redux_builder_amp['amp-pages-meta-default'];
|
1997 |
+
$meta_value_to_upate = 'default';
|
1998 |
+
|
1999 |
+
if ( $control === 'hide' ) {
|
2000 |
+
$checker = 'hide';
|
2001 |
+
$meta_value_to_upate = 'hide-amp';
|
2002 |
+
}
|
2003 |
+
|
2004 |
+
// Check and Run only if the value has been changed, else return
|
2005 |
+
if ( $check_meta === $checker ) {
|
2006 |
+
return;
|
2007 |
+
}
|
2008 |
+
// Get all the pages and update the post meta
|
2009 |
+
$pages = get_pages(array());
|
2010 |
+
foreach($pages as $page){
|
2011 |
+
update_post_meta($page->ID,'ampforwp-amp-on-off', $meta_value_to_upate);
|
2012 |
+
}
|
2013 |
+
// Update the option as the process has been done and update an option
|
2014 |
+
update_option('ampforwp_default_pages_to', $checker);
|
2015 |
+
return ;
|
2016 |
+
}
|
2017 |
+
|
2018 |
+
|
2019 |
+
// Adding the meta="description" from yoast or from the content
|
2020 |
+
add_action('amp_post_template_head','ampforwp_meta_description');
|
2021 |
+
function ampforwp_meta_description() {
|
2022 |
+
global $redux_builder_amp;
|
2023 |
+
global $post;
|
2024 |
+
$desc = "" ;
|
2025 |
+
|
2026 |
+
if($redux_builder_amp['ampforwp-seo-yoast-description']){
|
2027 |
+
if ( class_exists('WPSEO_Frontend') ) {
|
2028 |
+
// general Description of everywhere
|
2029 |
+
$front = WPSEO_Frontend::get_instance();
|
2030 |
+
$desc = $front->metadesc( false );
|
2031 |
+
|
2032 |
+
// Static front page
|
2033 |
+
// Code for Custom Frontpage Yoast SEO Description
|
2034 |
+
$post_id = $redux_builder_amp['amp-frontpage-select-option-pages'];
|
2035 |
+
if ( class_exists('WPSEO_Meta') ) {
|
2036 |
+
if ( is_home() && $redux_builder_amp['amp-frontpage-select-option'] ) {
|
2037 |
+
$desc = WPSEO_Meta::get_value('metadesc', $post_id );
|
2038 |
+
}
|
2039 |
+
}
|
2040 |
+
}
|
2041 |
+
// for search
|
2042 |
+
if( is_search() ) {
|
2043 |
+
$desc = $redux_builder_amp['amp-translator-search-text'] . ' ' . get_search_query();
|
2044 |
+
}
|
2045 |
+
} else {
|
2046 |
+
if( is_home() ) {
|
2047 |
+
// normal home page
|
2048 |
+
$desc= get_bloginfo( 'description' );
|
2049 |
+
}
|
2050 |
+
|
2051 |
+
if( is_archive() ) {
|
2052 |
+
$desc= get_the_archive_description();
|
2053 |
+
}
|
2054 |
+
|
2055 |
+
if( is_single() || is_page() ) {
|
2056 |
+
if( has_excerpt() ){
|
2057 |
+
$desc = get_the_excerpt();
|
2058 |
+
} else {
|
2059 |
+
global $post;
|
2060 |
+
$id = $post->ID;
|
2061 |
+
$desc = get_post($id)->post_content;
|
2062 |
+
}
|
2063 |
+
$desc = wp_trim_words( strip_tags( strip_shortcodes( $desc ) ) , '15' );
|
2064 |
+
}
|
2065 |
+
|
2066 |
+
if( is_search() ) {
|
2067 |
+
$desc = $redux_builder_amp['amp-translator-search-text'] . ' ' . get_search_query();
|
2068 |
+
}
|
2069 |
+
|
2070 |
+
if( is_home() && $redux_builder_amp['amp-frontpage-select-option'] ) {
|
2071 |
+
$post_id = get_the_excerpt( $redux_builder_amp['amp-frontpage-select-option-pages'] );
|
2072 |
+
$desc = strip_shortcodes( strip_tags( get_post_field('post_content', $post_id) ) );
|
2073 |
+
}
|
2074 |
+
}
|
2075 |
+
echo '<meta name="description" content="'. $desc .'"/>';
|
2076 |
+
}
|
2077 |
+
// Call Feature
|
2078 |
+
add_action('ampforwp_call_button','ampforwp_call_button_html_output');
|
2079 |
+
function ampforwp_call_button_html_output(){
|
2080 |
+
global $redux_builder_amp;
|
2081 |
+
if ($redux_builder_amp['ampforwp-callnow-button']) {
|
2082 |
+
?>
|
2083 |
+
<div class="callnow"><a href="tel:<?php echo $redux_builder_amp['enable-amp-call-numberfield']; ?>"></a></div>
|
2084 |
+
<?php }
|
2085 |
+
}
|
@@ -24,6 +24,7 @@
|
|
24 |
$ampforwp_category_count = $instance[ 'count' ];
|
25 |
$ampforwp_category_id = $instance[ 'category' ];
|
26 |
$ampforwp_category_link = $instance[ 'showButton' ];
|
|
|
27 |
|
28 |
// echo . $args['before_title'] . . $args['after_title']; ?>
|
29 |
|
@@ -55,12 +56,24 @@
|
|
55 |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail', true);
|
56 |
$thumb_url = $thumb_url_array[0];
|
57 |
?>
|
58 |
-
<a href="<?php echo trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR ;?>"><amp-img
|
59 |
<?php } ?>
|
60 |
|
61 |
-
<a href="<?php echo trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR ;?>">
|
62 |
<?php echo get_the_title(); ?>
|
63 |
-
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
</li> <?php
|
65 |
}
|
66 |
|
@@ -88,6 +101,7 @@
|
|
88 |
$selected_category = ! empty( $instance['category'] ) ? $instance['category'] : '';
|
89 |
$ampforwp_category_count = ! empty( $instance['count'] ) ? $instance['count'] : 3 ;
|
90 |
$radio_buttons = ! empty( $instance['showButton'] ) ? $instance['showButton'] : 'yes';
|
|
|
91 |
|
92 |
?>
|
93 |
<!-- Form Ends Here -->
|
@@ -135,8 +149,19 @@
|
|
135 |
<input class="widefat" id="<?php echo $this->get_field_id('show_button_2'); ?>" name="<?php echo $this->get_field_name('showButton'); ?>" type="radio" value="no" <?php if($radio_buttons === 'no'){ echo 'checked="checked"'; } ?> /><?php _e(' No'); ?>
|
136 |
</label>
|
137 |
<!-- radio buttons Ends Here -->
|
|
|
138 |
|
139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
<!-- Form Ends Here -->
|
141 |
|
142 |
<?php
|
@@ -156,6 +181,7 @@
|
|
156 |
$instance[ 'category' ] = '';
|
157 |
}
|
158 |
$instance['showButton'] = strip_tags($new_instance['showButton']);
|
|
|
159 |
return $instance;
|
160 |
}
|
161 |
|
24 |
$ampforwp_category_count = $instance[ 'count' ];
|
25 |
$ampforwp_category_id = $instance[ 'category' ];
|
26 |
$ampforwp_category_link = $instance[ 'showButton' ];
|
27 |
+
$ampforwp_show_excerpt = $instance[ 'showExcerpt' ];
|
28 |
|
29 |
// echo . $args['before_title'] . . $args['after_title']; ?>
|
30 |
|
56 |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail', true);
|
57 |
$thumb_url = $thumb_url_array[0];
|
58 |
?>
|
59 |
+
<a href="<?php echo trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR ;?>"><amp-img class="ampforwp_wc_shortcode_img" src=<?php echo $thumb_url ?> width=150 height=150 layout=responsive></amp-img></a>
|
60 |
<?php } ?>
|
61 |
|
62 |
+
<a class="ampforwp_wc_shortcode_title" href="<?php echo trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR ;?>">
|
63 |
<?php echo get_the_title(); ?>
|
64 |
+
</a> <?php
|
65 |
+
|
66 |
+
if( $ampforwp_show_excerpt == 'yes' ) { ?>
|
67 |
+
<div class="ampforwp_wc_shortcode_excerpt"> <?php
|
68 |
+
if( has_excerpt() ) {
|
69 |
+
$content = get_the_excerpt();
|
70 |
+
} else {
|
71 |
+
$content = get_the_content();
|
72 |
+
} ?>
|
73 |
+
<p class="ampforwp_cat_wdgt_excerpt_text"><?php echo wp_trim_words( strip_tags( strip_shortcodes( $content ) ) , '15' ); ?></p>
|
74 |
+
</div> <?php
|
75 |
+
} ?>
|
76 |
+
|
77 |
</li> <?php
|
78 |
}
|
79 |
|
101 |
$selected_category = ! empty( $instance['category'] ) ? $instance['category'] : '';
|
102 |
$ampforwp_category_count = ! empty( $instance['count'] ) ? $instance['count'] : 3 ;
|
103 |
$radio_buttons = ! empty( $instance['showButton'] ) ? $instance['showButton'] : 'yes';
|
104 |
+
$excerpt_buttons = ! empty( $instance['showExcerpt'] ) ? $instance['showExcerpt'] : 'yes';
|
105 |
|
106 |
?>
|
107 |
<!-- Form Ends Here -->
|
149 |
<input class="widefat" id="<?php echo $this->get_field_id('show_button_2'); ?>" name="<?php echo $this->get_field_name('showButton'); ?>" type="radio" value="no" <?php if($radio_buttons === 'no'){ echo 'checked="checked"'; } ?> /><?php _e(' No'); ?>
|
150 |
</label>
|
151 |
<!-- radio buttons Ends Here -->
|
152 |
+
</p>
|
153 |
|
154 |
+
<p>
|
155 |
+
<!-- Excerpt related code starts Here -->
|
156 |
+
<label for="<?php echo $this->get_field_id( 'showExcerpt' ); ?>" value="<?php echo esc_attr( $ampforwp_title );?>">Show Excerpt:</label><br>
|
157 |
+
<label for="<?php echo $this->get_field_id('show_button_3'); ?>">
|
158 |
+
<input class="widefat" id="<?php echo $this->get_field_id('show_button_3'); ?>" name="<?php echo $this->get_field_name('showExcerpt'); ?>" type="radio" value="yes" <?php if($excerpt_buttons === 'yes'){ echo 'checked="checked"'; } ?> /><?php _e('Yes '); ?>
|
159 |
+
</label>
|
160 |
+
<label for="<?php echo $this->get_field_id('show_button_4'); ?>">
|
161 |
+
<input class="widefat" id="<?php echo $this->get_field_id('show_button_4'); ?>" name="<?php echo $this->get_field_name('showExcerpt'); ?>" type="radio" value="no" <?php if($excerpt_buttons === 'no'){ echo 'checked="checked"'; } ?> /><?php _e(' No'); ?>
|
162 |
+
</label>
|
163 |
+
<!-- Excerpt related code Ends Here -->
|
164 |
+
</p>
|
165 |
<!-- Form Ends Here -->
|
166 |
|
167 |
<?php
|
181 |
$instance[ 'category' ] = '';
|
182 |
}
|
183 |
$instance['showButton'] = strip_tags($new_instance['showButton']);
|
184 |
+
$instance['showExcerpt'] = strip_tags($new_instance['showExcerpt']);
|
185 |
return $instance;
|
186 |
}
|
187 |
|