Version Description
- Proper Details at http://ampforwp.com/amp-0-8-8-released-translation-panel/
- Translation Panel added. You can now easily translate the AMP version from the backend without any complications.
- Badge Tag was throwing Validation error
- Plusone tag validation error was fixed
- Time tag was validation error was fixed
- User experience for Mobile devices was improved
- Meta info was messing up in smaller devices, it was fixed as well.
- Internal AMP linking added for Categories and Tags
- Future errors for AMP ads was fixed
- Blockquote styling added
- Please Activate parent Plugin settings added for better User Experience.
- Related Post Ux improvement
- Plugin version added in Footer source code for better debugging
- Added Support for Default WordPress Image alignment
- New action hooks added in index page
- Featured Image Size options added
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.8.8 |
Comparing to | |
See all releases |
Code changes from version 0.8.7 to 0.8.8
- README.md +24 -3
- accelerated-moblie-pages.php +22 -5
- images/amp-ads-extension.png +0 -0
- images/amp-ads-normal.png +0 -0
- images/amp-ads-retina.png +0 -0
- images/extension-coming-soon.png +0 -0
- includes/options/options-init.php +141 -19
- includes/options/redux-framework/assets/css/redux-admin.css +14 -5
- readme.txt +24 -3
- templates/features.php +38 -11
- templates/frontpage.php +7 -11
- templates/header.php +5 -5
- templates/index.php +15 -11
- templates/meta-author.php +13 -0
- templates/meta-taxonomy.php +10 -0
- templates/single.php +18 -9
- templates/style.php +146 -46
README.md
CHANGED
@@ -7,7 +7,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
7 |
Donate link: https://www.paypal.me/Kaludi/5
|
8 |
Requires at least: 3.0
|
9 |
Tested up to: 4.6.1
|
10 |
-
Stable tag: 0.8.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -22,8 +22,10 @@ Automatically add Accelerated Mobile Pages (Google AMP Project) functionality on
|
|
22 |
|
23 |
**Features:**
|
24 |
|
25 |
-
* NEW -
|
26 |
-
* NEW -
|
|
|
|
|
27 |
* Automatically integrate AMP to your website.
|
28 |
* Google Adsense (AMP-AD) Support with 4 different Ad slots across the layout! The First Plugin to have this capability.
|
29 |
* 7 Advertisement sizes
|
@@ -48,6 +50,7 @@ Automatically add Accelerated Mobile Pages (Google AMP Project) functionality on
|
|
48 |
* RTL Support
|
49 |
* Custom AMP FrontPage
|
50 |
* Notifications
|
|
|
51 |
* Great Support & Active Development.
|
52 |
|
53 |
**NOTE:** Next Update of this plugin will be released by end of October 2016.
|
@@ -116,6 +119,24 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F
|
|
116 |
|
117 |
|
118 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
= 0.8.7 =
|
120 |
* Proper Details at http://ampforwp.com/amp-0-8-7/
|
121 |
* added option to enable/disable AMP on Archive pages (Ticket #188)
|
7 |
Donate link: https://www.paypal.me/Kaludi/5
|
8 |
Requires at least: 3.0
|
9 |
Tested up to: 4.6.1
|
10 |
+
Stable tag: 0.8.8
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
22 |
|
23 |
**Features:**
|
24 |
|
25 |
+
* NEW - Translation Panel & RTL
|
26 |
+
* NEW - Internal AMP linking - You can browse AMP pages internally
|
27 |
+
* Related posts below the post
|
28 |
+
* Recent Comments list
|
29 |
* Automatically integrate AMP to your website.
|
30 |
* Google Adsense (AMP-AD) Support with 4 different Ad slots across the layout! The First Plugin to have this capability.
|
31 |
* 7 Advertisement sizes
|
50 |
* RTL Support
|
51 |
* Custom AMP FrontPage
|
52 |
* Notifications
|
53 |
+
* Piwik & Segment.com Support
|
54 |
* Great Support & Active Development.
|
55 |
|
56 |
**NOTE:** Next Update of this plugin will be released by end of October 2016.
|
119 |
|
120 |
|
121 |
== Changelog ==
|
122 |
+
= 0.8.8 =
|
123 |
+
* Proper Details at http://ampforwp.com/amp-0-8-8-released-translation-panel/
|
124 |
+
* Translation Panel added. You can now easily translate the AMP version from the backend without any complications.
|
125 |
+
* Badge Tag was throwing Validation error
|
126 |
+
* Plusone tag validation error was fixed
|
127 |
+
* Time tag was validation error was fixed
|
128 |
+
* User experience for Mobile devices was improved
|
129 |
+
* Meta info was messing up in smaller devices, it was fixed as well.
|
130 |
+
* Internal AMP linking added for Categories and Tags
|
131 |
+
* Future errors for AMP ads was fixed
|
132 |
+
* Blockquote styling added
|
133 |
+
* “Please Activate parent Plugin settings” added for better User Experience.
|
134 |
+
* Related Post Ux improvement
|
135 |
+
* Plugin version added in Footer source code for better debugging
|
136 |
+
* Added Support for Default WordPress Image alignment
|
137 |
+
* New action hooks added in index page
|
138 |
+
* Featured Image Size options added
|
139 |
+
|
140 |
= 0.8.7 =
|
141 |
* Proper Details at http://ampforwp.com/amp-0-8-7/
|
142 |
* added option to enable/disable AMP on Archive pages (Ticket #188)
|
accelerated-moblie-pages.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/*
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
-
Description: AMP
|
6 |
-
Version: 0.8.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: http://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/5
|
@@ -23,25 +23,42 @@ function ampforwp_add_custom_post_support() {
|
|
23 |
add_action( 'init', 'ampforwp_add_custom_post_support',11);
|
24 |
|
25 |
define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
|
|
|
|
|
26 |
|
27 |
/*
|
28 |
* Load Files only in the backend
|
29 |
* As we don't need plugin activation code to run everytime the site loads
|
30 |
*/
|
|
|
31 |
if ( is_admin() ) {
|
32 |
require_once AMPFORWP_PLUGIN_DIR . '/classes/class-tgm-plugin-activation.php';
|
33 |
-
|
34 |
// Add Settings Button in Plugin backend
|
35 |
if ( ! function_exists( 'ampforwp_plugin_settings_link' ) ) {
|
|
|
|
|
36 |
add_filter( 'plugin_action_links', 'ampforwp_plugin_settings_link', 10, 5 );
|
37 |
-
|
38 |
function ampforwp_plugin_settings_link( $actions, $plugin_file ) {
|
39 |
static $plugin;
|
40 |
if (!isset($plugin))
|
41 |
$plugin = plugin_basename(__FILE__);
|
42 |
if ($plugin == $plugin_file) {
|
43 |
$settings = array('settings' => '<a href="admin.php?page=amp_options&tab=8">' . __('Settings', 'ampforwp') . '</a>');
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
return $actions;
|
47 |
}
|
2 |
/*
|
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.8.8
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: http://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/5
|
23 |
add_action( 'init', 'ampforwp_add_custom_post_support',11);
|
24 |
|
25 |
define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
|
26 |
+
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
27 |
+
define('AMPFORWP_VERSION','0.8.8');
|
28 |
|
29 |
/*
|
30 |
* Load Files only in the backend
|
31 |
* As we don't need plugin activation code to run everytime the site loads
|
32 |
*/
|
33 |
+
|
34 |
if ( is_admin() ) {
|
35 |
require_once AMPFORWP_PLUGIN_DIR . '/classes/class-tgm-plugin-activation.php';
|
36 |
+
|
37 |
// Add Settings Button in Plugin backend
|
38 |
if ( ! function_exists( 'ampforwp_plugin_settings_link' ) ) {
|
39 |
+
|
40 |
+
|
41 |
add_filter( 'plugin_action_links', 'ampforwp_plugin_settings_link', 10, 5 );
|
42 |
+
|
43 |
function ampforwp_plugin_settings_link( $actions, $plugin_file ) {
|
44 |
static $plugin;
|
45 |
if (!isset($plugin))
|
46 |
$plugin = plugin_basename(__FILE__);
|
47 |
if ($plugin == $plugin_file) {
|
48 |
$settings = array('settings' => '<a href="admin.php?page=amp_options&tab=8">' . __('Settings', 'ampforwp') . '</a>');
|
49 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
50 |
+
if ( is_plugin_active( 'amp/amp.php' ) ) {
|
51 |
+
//if parent plugin is activated
|
52 |
+
$actions = array_merge( $actions, $settings );
|
53 |
+
} else{
|
54 |
+
if(is_plugin_active( 'amp/amp.php' )){
|
55 |
+
$actions = array_merge( $actions, $settings );
|
56 |
+
}else{
|
57 |
+
$please_activate_parent_plugin = array('Please Activate Parent plugin' => '<a href="'.get_admin_url() .'plugins.php?page=tgmpa-install-plugins">' . __('Please Activate Parent plugin', 'ampforwp') . '</a>');
|
58 |
+
$actions = array_merge( $please_activate_parent_plugin,$actions );
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
}
|
63 |
return $actions;
|
64 |
}
|
images/amp-ads-extension.png
ADDED
Binary file
|
images/amp-ads-normal.png
ADDED
Binary file
|
images/amp-ads-retina.png
ADDED
Binary file
|
images/extension-coming-soon.png
ADDED
Binary file
|
includes/options/options-init.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* For full documentation, please visit: http://docs.reduxframework.com/
|
5 |
* For a more extensive sample-config file, you may look at:
|
@@ -280,14 +279,14 @@
|
|
280 |
'default' => '2',
|
281 |
),
|
282 |
|
283 |
-
array(
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
),
|
291 |
|
292 |
array(
|
293 |
'id' => 'amp-footer-link-non-amp-page',
|
@@ -308,14 +307,14 @@
|
|
308 |
'true' => 'true',
|
309 |
'false' => 'false',
|
310 |
),
|
311 |
-
array(
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
),
|
319 |
array(
|
320 |
'id' => 'ampforwp-amp-on-off-catgs-tags',
|
321 |
'type' => 'switch',
|
@@ -336,11 +335,16 @@
|
|
336 |
|
337 |
) ;
|
338 |
|
339 |
-
|
|
|
|
|
|
|
|
|
|
|
340 |
// ADS SECTION
|
341 |
Redux::setSection( $opt_name, array(
|
342 |
'title' => __( 'Advertisement', 'redux-framework-demo' ),
|
343 |
-
'desc'
|
344 |
'id' => 'amp-ads',
|
345 |
'subsection' => true,
|
346 |
'fields' => array(
|
@@ -573,6 +577,25 @@
|
|
573 |
'true' => 'Enabled',
|
574 |
'false' => 'Disabled',
|
575 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
576 |
// Next/Previous Pagination ON/OFF
|
577 |
array(
|
578 |
'id' => 'enable-next-previous-pagination',
|
@@ -785,6 +808,93 @@
|
|
785 |
|
786 |
) );
|
787 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
788 |
|
789 |
// CSS
|
790 |
Redux::setSection( $opt_name, array(
|
@@ -805,6 +915,18 @@
|
|
805 |
),
|
806 |
)
|
807 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
808 |
/*
|
809 |
* <--- END SECTIONS
|
810 |
*/
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* For full documentation, please visit: http://docs.reduxframework.com/
|
4 |
* For a more extensive sample-config file, you may look at:
|
279 |
'default' => '2',
|
280 |
),
|
281 |
|
282 |
+
// array(
|
283 |
+
// 'id' => 'amp-footer-text',
|
284 |
+
// 'title' => __('Footer', 'redux-framework-demo'),
|
285 |
+
// 'type' => 'text',
|
286 |
+
// 'subtitle' => __('Enter Footer text', 'redux-framework-demo'),
|
287 |
+
// 'placeholder' => 'Copyright © 2016',
|
288 |
+
// 'default' => 'Copyright © 2016',
|
289 |
+
// ),
|
290 |
|
291 |
array(
|
292 |
'id' => 'amp-footer-link-non-amp-page',
|
307 |
'true' => 'true',
|
308 |
'false' => 'false',
|
309 |
),
|
310 |
+
// array(
|
311 |
+
// 'id' => 'amp-navigation-text',
|
312 |
+
// 'title' => __('Navigation Text', 'redux-framework-demo'),
|
313 |
+
// 'type' => 'text',
|
314 |
+
// 'subtitle' =>__('Enter text to appear on Navigation Button', 'redux-framework-demo'),
|
315 |
+
// 'placeholder'=>'Navigate',
|
316 |
+
// 'default' => 'Navigate'
|
317 |
+
// ),
|
318 |
array(
|
319 |
'id' => 'ampforwp-amp-on-off-catgs-tags',
|
320 |
'type' => 'switch',
|
335 |
|
336 |
) ;
|
337 |
|
338 |
+
$AD_URL = "http://ampforwp.com/advanced-amp-ads/#utm_source=options-panel&utm_medium=advertisement-tab&utm_campaign=AMP%20Plugin";
|
339 |
+
$desc = '';
|
340 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
341 |
+
if(!is_plugin_active( 'amp-incontent-ads/amptoolkit-incontent-ads.php' ) ){
|
342 |
+
$desc = '<a href="'.$AD_URL.'" target="_blank"><img class="ampforwp-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/amp-ads-retina.png" width="560" height="85" /></a>';
|
343 |
+
}
|
344 |
// ADS SECTION
|
345 |
Redux::setSection( $opt_name, array(
|
346 |
'title' => __( 'Advertisement', 'redux-framework-demo' ),
|
347 |
+
'desc' => $desc,
|
348 |
'id' => 'amp-ads',
|
349 |
'subsection' => true,
|
350 |
'fields' => array(
|
577 |
'true' => 'Enabled',
|
578 |
'false' => 'Disabled',
|
579 |
),
|
580 |
+
// Width and Height of Image
|
581 |
+
array(
|
582 |
+
'id' => 'enable-single-featured-img-width',
|
583 |
+
'type' => 'text',
|
584 |
+
'title' => __('Featured Image Width', 'redux-framework-demo'),
|
585 |
+
'default' => 512,
|
586 |
+
'subtitle' => __('Custom featured image width in Units : Px', 'redux-framework-demo'),
|
587 |
+
'placeholder'=>'Width here',
|
588 |
+
'required' => array('enable-single-featured-img', '=' , '1')
|
589 |
+
),
|
590 |
+
array(
|
591 |
+
'id' => 'enable-single-featured-img-height',
|
592 |
+
'type' => 'text',
|
593 |
+
'title' => __('Featured Image Height', 'redux-framework-demo'),
|
594 |
+
'default' => 300,
|
595 |
+
'subtitle' => __('Custom featured image height in Units : Px', 'redux-framework-demo'),
|
596 |
+
'placeholder'=>'Height here',
|
597 |
+
'required' => array('enable-single-featured-img', '=' , '1')
|
598 |
+
),
|
599 |
// Next/Previous Pagination ON/OFF
|
600 |
array(
|
601 |
'id' => 'enable-next-previous-pagination',
|
808 |
|
809 |
) );
|
810 |
|
811 |
+
// Translation Panel
|
812 |
+
Redux::setSection( $opt_name, array(
|
813 |
+
'title' => __( 'Translation Panel', 'redux-framework-demo' ),
|
814 |
+
'desc' => __( 'Please translate the following words of page accordingly else default content is in English Language', 'redux-framework-demo' ),
|
815 |
+
'id' => 'amp-translator',
|
816 |
+
'subsection' => true,
|
817 |
+
'fields' => array(
|
818 |
+
array(
|
819 |
+
'id' => 'amp-translator-top-text',
|
820 |
+
'type' => 'text',
|
821 |
+
'title' => __('Top', 'redux-framework-demo'),
|
822 |
+
'default' => 'Top',
|
823 |
+
'placeholder'=>'write here'
|
824 |
+
),
|
825 |
+
array(
|
826 |
+
'id' => 'amp-translator-non-amp-page-text',
|
827 |
+
'type' => 'text',
|
828 |
+
'title' => __('View Non-AMP Version', 'redux-framework-demo'),
|
829 |
+
'default' => 'View Non-AMP Version',
|
830 |
+
'placeholder'=>'write here'
|
831 |
+
),
|
832 |
+
array(
|
833 |
+
'id' => 'amp-translator-related-text',
|
834 |
+
'type' => 'text',
|
835 |
+
'title' => __('Related Post', 'redux-framework-demo'),
|
836 |
+
'default' => 'Related Post',
|
837 |
+
'placeholder'=>'write here'
|
838 |
+
),
|
839 |
+
array(
|
840 |
+
'id' => 'amp-translator-navigate-text',
|
841 |
+
'type' => 'text',
|
842 |
+
'title' => __('Navigate', 'redux-framework-demo'),
|
843 |
+
'default' => 'Navigate',
|
844 |
+
'placeholder'=>'write here'
|
845 |
+
),
|
846 |
+
array(
|
847 |
+
'id' => 'amp-translator-on-text',
|
848 |
+
'type' => 'text',
|
849 |
+
'title' => __('On', 'redux-framework-demo'),
|
850 |
+
'default' => 'On',
|
851 |
+
'placeholder'=>'write here'
|
852 |
+
),
|
853 |
+
array(
|
854 |
+
'id' => 'amp-translator-next-text',
|
855 |
+
'type' => 'text',
|
856 |
+
'title' => __('Next', 'redux-framework-demo'),
|
857 |
+
'default' => 'Next',
|
858 |
+
'placeholder'=>'write here'
|
859 |
+
),
|
860 |
+
array(
|
861 |
+
'id' => 'amp-translator-previous-text',
|
862 |
+
'type' => 'text',
|
863 |
+
'title' => __('Previous', 'redux-framework-demo'),
|
864 |
+
'default' => 'Previous',
|
865 |
+
'placeholder'=>'write here'
|
866 |
+
),
|
867 |
+
array(
|
868 |
+
'id' => 'amp-translator-footer-text',
|
869 |
+
'type' => 'text',
|
870 |
+
'title' => __('Footer', 'redux-framework-demo'),
|
871 |
+
'default' => 'Footer',
|
872 |
+
'placeholder'=>'write here'
|
873 |
+
),
|
874 |
+
array(
|
875 |
+
'id' => 'amp-translator-categories-text',
|
876 |
+
'type' => 'text',
|
877 |
+
'title' => __('Categories', 'redux-framework-demo'),
|
878 |
+
'default' => 'Categories',
|
879 |
+
'placeholder'=>'write here'
|
880 |
+
),
|
881 |
+
array(
|
882 |
+
'id' => 'amp-translator-tags-text',
|
883 |
+
'type' => 'text',
|
884 |
+
'title' => __('Tags', 'redux-framework-demo'),
|
885 |
+
'default' => 'Tags',
|
886 |
+
'placeholder'=>'write here'
|
887 |
+
),
|
888 |
+
array(
|
889 |
+
'id' => 'amp-translator-by-text',
|
890 |
+
'type' => 'text',
|
891 |
+
'title' => __('By', 'redux-framework-demo'),
|
892 |
+
'default' => 'By',
|
893 |
+
'placeholder'=>'write here'
|
894 |
+
),
|
895 |
+
)
|
896 |
+
) );
|
897 |
+
|
898 |
|
899 |
// CSS
|
900 |
Redux::setSection( $opt_name, array(
|
915 |
),
|
916 |
)
|
917 |
) );
|
918 |
+
|
919 |
+
// Extension Section
|
920 |
+
Redux::setSection( $opt_name, array(
|
921 |
+
'title' => __( 'Extensions', 'redux-framework-demo' ),
|
922 |
+
// 'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . '<a href="http://docs.reduxframework.com/core/fields/textarea/" target="_blank">http://docs.reduxframework.com/core/fields/textarea/</a>',
|
923 |
+
'id' => 'opt-go-premium',
|
924 |
+
'subsection' => false,
|
925 |
+
'desc' => '<a href=" http://ampforwp.com/advanced-amp-ads/#utm_source=options-panel&utm_medium=extension-tab&utm_campaign=AMP%20Plugin " target="_blank"><img class="ampforwp-extension-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/amp-ads-extension.png" width="345" height="500" /></a>
|
926 |
+
|
927 |
+
<img class="ampforwp-extension-ad-img-banner" src="'.AMPFORWP_IMAGE_DIR . '/extension-coming-soon.png" width="345" height="500" /> ',
|
928 |
+
'icon' => 'el el-info-circle',
|
929 |
+
) );
|
930 |
/*
|
931 |
* <--- END SECTIONS
|
932 |
*/
|
includes/options/redux-framework/assets/css/redux-admin.css
CHANGED
@@ -37,7 +37,7 @@
|
|
37 |
.redux-container #redux-intro-text{
|
38 |
text-align: right
|
39 |
}
|
40 |
-
.redux-container #redux-intro-text{
|
41 |
background: transparent;
|
42 |
border: 0;
|
43 |
margin-top: -1px;
|
@@ -65,7 +65,7 @@
|
|
65 |
color: #444
|
66 |
}
|
67 |
.admin-color-fresh .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a, .wp-customizer .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a{
|
68 |
-
background: #fff;
|
69 |
text-shadow: none !important;
|
70 |
color: #444
|
71 |
}
|
@@ -101,7 +101,7 @@
|
|
101 |
.admin-color-fresh #redux-footer #redux-share a, .wp-customizer #redux-footer #redux-share a{
|
102 |
color: #4452a7
|
103 |
}
|
104 |
-
.amp-faq strong{
|
105 |
color: #666;
|
106 |
margin-bottom: 5px;
|
107 |
margin-top: 5px;
|
@@ -135,8 +135,17 @@
|
|
135 |
color: #fff;
|
136 |
box-shadow: none !important;
|
137 |
border: 0 !important;
|
138 |
-
|
139 |
}
|
140 |
.wp-customizer .redux-container-switch .cb-disable.selected{
|
141 |
background: red !important
|
142 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
.redux-container #redux-intro-text{
|
38 |
text-align: right
|
39 |
}
|
40 |
+
.redux-container #redux-intro-text{
|
41 |
background: transparent;
|
42 |
border: 0;
|
43 |
margin-top: -1px;
|
65 |
color: #444
|
66 |
}
|
67 |
.admin-color-fresh .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a, .wp-customizer .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a{
|
68 |
+
background: #fff;
|
69 |
text-shadow: none !important;
|
70 |
color: #444
|
71 |
}
|
101 |
.admin-color-fresh #redux-footer #redux-share a, .wp-customizer #redux-footer #redux-share a{
|
102 |
color: #4452a7
|
103 |
}
|
104 |
+
.amp-faq strong{
|
105 |
color: #666;
|
106 |
margin-bottom: 5px;
|
107 |
margin-top: 5px;
|
135 |
color: #fff;
|
136 |
box-shadow: none !important;
|
137 |
border: 0 !important;
|
138 |
+
|
139 |
}
|
140 |
.wp-customizer .redux-container-switch .cb-disable.selected{
|
141 |
background: red !important
|
142 |
+
}
|
143 |
+
.ampforwp-ad-img-banner{
|
144 |
+
width: 560px;
|
145 |
+
height: 99px !important;
|
146 |
+
}
|
147 |
+
.ampforwp-extension-ad-img-banner{
|
148 |
+
width: 345px;
|
149 |
+
height: 450px !important;
|
150 |
+
margin-right:20px;
|
151 |
+
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
4 |
Donate link: https://www.paypal.me/Kaludi/5
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.6.1
|
7 |
-
Stable tag: 0.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -19,8 +19,10 @@ Automatically add Accelerated Mobile Pages (Google AMP Project) functionality on
|
|
19 |
|
20 |
**Features:**
|
21 |
|
22 |
-
* NEW -
|
23 |
-
* NEW -
|
|
|
|
|
24 |
* Automatically integrate AMP to your website.
|
25 |
* Google Adsense (AMP-AD) Support with 4 different Ad slots across the layout! The First Plugin to have this capability.
|
26 |
* 7 Advertisement sizes
|
@@ -45,6 +47,7 @@ Automatically add Accelerated Mobile Pages (Google AMP Project) functionality on
|
|
45 |
* RTL Support
|
46 |
* Custom AMP FrontPage
|
47 |
* Notifications
|
|
|
48 |
* Great Support & Active Development.
|
49 |
|
50 |
**NOTE:** Next Update of this plugin will be released by end of October 2016.
|
@@ -113,6 +116,24 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F
|
|
113 |
|
114 |
|
115 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
= 0.8.7 =
|
117 |
* Proper Details at http://ampforwp.com/amp-0-8-7/
|
118 |
* added option to enable/disable AMP on Archive pages (Ticket #188)
|
4 |
Donate link: https://www.paypal.me/Kaludi/5
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.6.1
|
7 |
+
Stable tag: 0.8.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
19 |
|
20 |
**Features:**
|
21 |
|
22 |
+
* NEW - Translation Panel & RTL
|
23 |
+
* NEW - Internal AMP linking - You can browse AMP pages internally
|
24 |
+
* Related posts below the post
|
25 |
+
* Recent Comments list
|
26 |
* Automatically integrate AMP to your website.
|
27 |
* Google Adsense (AMP-AD) Support with 4 different Ad slots across the layout! The First Plugin to have this capability.
|
28 |
* 7 Advertisement sizes
|
47 |
* RTL Support
|
48 |
* Custom AMP FrontPage
|
49 |
* Notifications
|
50 |
+
* Piwik & Segment.com Support
|
51 |
* Great Support & Active Development.
|
52 |
|
53 |
**NOTE:** Next Update of this plugin will be released by end of October 2016.
|
116 |
|
117 |
|
118 |
== Changelog ==
|
119 |
+
= 0.8.8 =
|
120 |
+
* Proper Details at http://ampforwp.com/amp-0-8-8-released-translation-panel/
|
121 |
+
* Translation Panel added. You can now easily translate the AMP version from the backend without any complications.
|
122 |
+
* Badge Tag was throwing Validation error
|
123 |
+
* Plusone tag validation error was fixed
|
124 |
+
* Time tag was validation error was fixed
|
125 |
+
* User experience for Mobile devices was improved
|
126 |
+
* Meta info was messing up in smaller devices, it was fixed as well.
|
127 |
+
* Internal AMP linking added for Categories and Tags
|
128 |
+
* Future errors for AMP ads was fixed
|
129 |
+
* Blockquote styling added
|
130 |
+
* “Please Activate parent Plugin settings” added for better User Experience.
|
131 |
+
* Related Post Ux improvement
|
132 |
+
* Plugin version added in Footer source code for better debugging
|
133 |
+
* Added Support for Default WordPress Image alignment
|
134 |
+
* New action hooks added in index page
|
135 |
+
* Featured Image Size options added
|
136 |
+
|
137 |
= 0.8.7 =
|
138 |
* Proper Details at http://ampforwp.com/amp-0-8-7/
|
139 |
* added option to enable/disable AMP on Archive pages (Ticket #188)
|
templates/features.php
CHANGED
@@ -5,6 +5,8 @@
|
|
5 |
2. Custom Design
|
6 |
3. Custom Style files
|
7 |
4. Custom Header files
|
|
|
|
|
8 |
4.5 Added hook to add more layout.
|
9 |
5. Customize with Width of the site
|
10 |
6. Add required Javascripts for extra AMP features
|
@@ -27,6 +29,8 @@
|
|
27 |
20. Remove the default Google font for performance
|
28 |
21. Remove Schema data from All In One Schema.org Rich Snippets Plugin
|
29 |
22. Removing author links from comments Issue #180
|
|
|
|
|
30 |
*/
|
31 |
// Adding AMP-related things to the main theme
|
32 |
global $redux_builder_amp;
|
@@ -102,7 +106,7 @@
|
|
102 |
}
|
103 |
// Custom Single file
|
104 |
if ( is_single() || is_page() ) {
|
105 |
-
if ( 'single' === $type
|
106 |
$file = AMPFORWP_PLUGIN_DIR . '/templates/single.php';
|
107 |
}
|
108 |
}
|
@@ -127,6 +131,23 @@
|
|
127 |
return $file;
|
128 |
}
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
// 4.5 Added hook to add more layout.
|
131 |
do_action('ampforwp_after_features_include');
|
132 |
|
@@ -171,24 +192,24 @@
|
|
171 |
|
172 |
<footer class="container">
|
173 |
<div id="footer">
|
174 |
-
|
175 |
//24. Added an options button for switching on/off link to non amp page
|
176 |
if($redux_builder_amp['amp-footer-link-non-amp-page']=='1'){ if ( $ampforwp_backto_nonamp ) { ?>
|
177 |
|
|
178 |
-
|
|
|
179 |
</p>
|
180 |
-
<p><?php echo $redux_builder_amp['amp-footer-text']; ?> </p>
|
181 |
</div>
|
182 |
</footer>
|
183 |
-
|
184 |
-
<!-- Cookie Notification Code
|
185 |
-
added by @nicholasgriffintn in pull #121 -->
|
186 |
<?php if($redux_builder_amp['amp-enable-notifications'] == true) { ?>
|
187 |
<amp-user-notification layout=nodisplay id="amp-user-notification1">
|
188 |
<p><?php echo $redux_builder_amp['amp-notification-text']; ?> </p>
|
189 |
<button on="tap:amp-user-notification1.dismiss"><?php echo $redux_builder_amp['amp-accept-button-text']; ?></button>
|
190 |
</amp-user-notification>
|
191 |
-
<?php }
|
192 |
}
|
193 |
|
194 |
// 8. Add Main tag as a Wrapper
|
@@ -365,11 +386,11 @@
|
|
365 |
echo $output;
|
366 |
}
|
367 |
}
|
368 |
-
|
369 |
// 10. Analytics Area
|
370 |
add_action('amp_post_template_footer','ampforwp_analytics',11);
|
371 |
function ampforwp_analytics() {
|
372 |
-
|
373 |
// 10.1 Analytics Support added for Google Analytics
|
374 |
global $redux_builder_amp;
|
375 |
if ( $redux_builder_amp['amp-analytics-select-option']=='1' ){ ?>
|
@@ -431,6 +452,9 @@
|
|
431 |
$content = preg_replace('/style=[^>]*/', '', $content);
|
432 |
$content = preg_replace('/nowrap="nowrap"/', '', $content);
|
433 |
$content = preg_replace('#<comments-count.*?>(.*?)</comments-count>#i', '', $content);
|
|
|
|
|
|
|
434 |
$content = preg_replace('#<col.*?>#i', '', $content);
|
435 |
$content = preg_replace('#<table.*?>#i', '<table width="100%">', $content);
|
436 |
$content = preg_replace('#<style scoped.*?>(.*?)</style>#i', '', $content);
|
@@ -615,7 +639,7 @@ function ampforwp_remove_unwanted_scripts() {
|
|
615 |
// Remove Print Scripts and styles
|
616 |
function ampforwp_remove_print_scripts() {
|
617 |
if ( is_amp_endpoint() ) {
|
618 |
-
|
619 |
function ampforwp_remove_all_scripts() {
|
620 |
global $wp_scripts;
|
621 |
$wp_scripts->queue = array();
|
@@ -697,3 +721,6 @@ if( ! function_exists( "disable_comment_author_links" ) ) {
|
|
697 |
}
|
698 |
add_filter( 'get_comment_author_link', 'ampforwp_disable_comment_author_links' );
|
699 |
}
|
|
|
|
|
|
5 |
2. Custom Design
|
6 |
3. Custom Style files
|
7 |
4. Custom Header files
|
8 |
+
4.1 Custom Meta-Author files
|
9 |
+
4.2 Custom Meta-Taxonomy files
|
10 |
4.5 Added hook to add more layout.
|
11 |
5. Customize with Width of the site
|
12 |
6. Add required Javascripts for extra AMP features
|
29 |
20. Remove the default Google font for performance
|
30 |
21. Remove Schema data from All In One Schema.org Rich Snippets Plugin
|
31 |
22. Removing author links from comments Issue #180
|
32 |
+
23. The analytics tag appears more than once in the document. This will soon be an error
|
33 |
+
|
34 |
*/
|
35 |
// Adding AMP-related things to the main theme
|
36 |
global $redux_builder_amp;
|
106 |
}
|
107 |
// Custom Single file
|
108 |
if ( is_single() || is_page() ) {
|
109 |
+
if ( 'single' === $type ) {
|
110 |
$file = AMPFORWP_PLUGIN_DIR . '/templates/single.php';
|
111 |
}
|
112 |
}
|
131 |
return $file;
|
132 |
}
|
133 |
|
134 |
+
// 4.1 Custom Meta-Author files
|
135 |
+
add_filter( 'amp_post_template_file', 'ampforwp_set_custom_meta_author', 10, 3 );
|
136 |
+
function ampforwp_set_custom_meta_author( $file, $type, $post ) {
|
137 |
+
if ( 'meta-author' === $type ) {
|
138 |
+
$file = AMPFORWP_PLUGIN_DIR . '/templates/meta-author.php';
|
139 |
+
}
|
140 |
+
return $file;
|
141 |
+
}
|
142 |
+
// 4.2 Custom Meta-Taxonomy files
|
143 |
+
add_filter( 'amp_post_template_file', 'ampforwp_set_custom_meta_taxonomy', 10, 3 );
|
144 |
+
function ampforwp_set_custom_meta_taxonomy( $file, $type, $post ) {
|
145 |
+
if ( 'meta-taxonomy' === $type ) {
|
146 |
+
$file = AMPFORWP_PLUGIN_DIR . '/templates/meta-taxonomy.php';
|
147 |
+
}
|
148 |
+
return $file;
|
149 |
+
}
|
150 |
+
|
151 |
// 4.5 Added hook to add more layout.
|
152 |
do_action('ampforwp_after_features_include');
|
153 |
|
192 |
|
193 |
<footer class="container">
|
194 |
<div id="footer">
|
195 |
+
<p><a href="#header"> <?php global $redux_builder_amp; _e($redux_builder_amp['amp-translator-top-text'].'','ampforwp');?></a> <?php
|
196 |
//24. Added an options button for switching on/off link to non amp page
|
197 |
if($redux_builder_amp['amp-footer-link-non-amp-page']=='1'){ if ( $ampforwp_backto_nonamp ) { ?>
|
198 |
|
|
199 |
+
<a href="?<?php echo $ampforwp_backto_nonamp; ?>"><?php
|
200 |
+
global $redux_builder_amp; _e("".$redux_builder_amp['amp-translator-non-amp-page-text'],'ampforwp');?></a> <?php } }?>
|
201 |
</p>
|
202 |
+
<p><?php echo $redux_builder_amp['amp-translator-footer-text']; ?> </p>
|
203 |
</div>
|
204 |
</footer>
|
205 |
+
<!--Plugin Verion :<?php echo (AMPFORWP_VERSION); ?> -->
|
206 |
+
<!-- Thanks to @nicholasgriffintn for Cookie Notification Code-->
|
|
|
207 |
<?php if($redux_builder_amp['amp-enable-notifications'] == true) { ?>
|
208 |
<amp-user-notification layout=nodisplay id="amp-user-notification1">
|
209 |
<p><?php echo $redux_builder_amp['amp-notification-text']; ?> </p>
|
210 |
<button on="tap:amp-user-notification1.dismiss"><?php echo $redux_builder_amp['amp-accept-button-text']; ?></button>
|
211 |
</amp-user-notification>
|
212 |
+
<?php }
|
213 |
}
|
214 |
|
215 |
// 8. Add Main tag as a Wrapper
|
386 |
echo $output;
|
387 |
}
|
388 |
}
|
389 |
+
|
390 |
// 10. Analytics Area
|
391 |
add_action('amp_post_template_footer','ampforwp_analytics',11);
|
392 |
function ampforwp_analytics() {
|
393 |
+
|
394 |
// 10.1 Analytics Support added for Google Analytics
|
395 |
global $redux_builder_amp;
|
396 |
if ( $redux_builder_amp['amp-analytics-select-option']=='1' ){ ?>
|
452 |
$content = preg_replace('/style=[^>]*/', '', $content);
|
453 |
$content = preg_replace('/nowrap="nowrap"/', '', $content);
|
454 |
$content = preg_replace('#<comments-count.*?>(.*?)</comments-count>#i', '', $content);
|
455 |
+
$content = preg_replace('#<time.*?>(.*?)</time>#i', '', $content);
|
456 |
+
$content = preg_replace('#<badge.*?>(.*?)</badge>#i', '', $content);
|
457 |
+
$content = preg_replace('#<plusone.*?>(.*?)</plusone>#i', '', $content);
|
458 |
$content = preg_replace('#<col.*?>#i', '', $content);
|
459 |
$content = preg_replace('#<table.*?>#i', '<table width="100%">', $content);
|
460 |
$content = preg_replace('#<style scoped.*?>(.*?)</style>#i', '', $content);
|
639 |
// Remove Print Scripts and styles
|
640 |
function ampforwp_remove_print_scripts() {
|
641 |
if ( is_amp_endpoint() ) {
|
642 |
+
|
643 |
function ampforwp_remove_all_scripts() {
|
644 |
global $wp_scripts;
|
645 |
$wp_scripts->queue = array();
|
721 |
}
|
722 |
add_filter( 'get_comment_author_link', 'ampforwp_disable_comment_author_links' );
|
723 |
}
|
724 |
+
|
725 |
+
// 23. The analytics tag appears more than once in the document. This will soon be an error
|
726 |
+
remove_action( 'amp_post_template_head', 'quads_amp_add_amp_ad_js');
|
templates/frontpage.php
CHANGED
@@ -20,14 +20,14 @@
|
|
20 |
<div class="amp-wp-content the_content">
|
21 |
<?php do_action( 'ampforwp_before_post_content', $this ); ?>
|
22 |
|
23 |
-
<?php
|
24 |
global $redux_demo;
|
25 |
//echo 'Multi Select value: ' . $redux_builder_amp['amp-frontpage-select-option-pages'];
|
26 |
-
?>
|
27 |
-
|
28 |
<?php $the_query = new WP_Query( 'page_id=' . $redux_builder_amp['amp-frontpage-select-option-pages'] . '' ); ?>
|
29 |
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
|
30 |
-
<?php the_content(); ?>
|
31 |
<?php endwhile;?>
|
32 |
|
33 |
<?php do_action( 'ampforwp_after_post_content', $this ); ?>
|
@@ -37,15 +37,11 @@ global $redux_demo;
|
|
37 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-taxonomy' ) ) ); ?>
|
38 |
|
39 |
|
40 |
-
|
41 |
-
<div class="next"><?php next_post_link(); ?></div>
|
42 |
-
<div class="prev"><?php previous_post_link(); ?></div>
|
43 |
-
<div class="clearfix"></div>
|
44 |
-
</div>
|
45 |
</div>
|
46 |
|
47 |
<?php if($redux_builder_amp['enable-single-social-icons'] == true) { ?>
|
48 |
-
<div class="sticky_social">
|
49 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
50 |
<amp-social-share type="facebook" width="50" height="28"></amp-social-share>
|
51 |
<?php } ?>
|
@@ -70,4 +66,4 @@ global $redux_demo;
|
|
70 |
|
71 |
<?php do_action( 'amp_post_template_footer', $this ); ?>
|
72 |
</body>
|
73 |
-
</html>
|
20 |
<div class="amp-wp-content the_content">
|
21 |
<?php do_action( 'ampforwp_before_post_content', $this ); ?>
|
22 |
|
23 |
+
<?php
|
24 |
global $redux_demo;
|
25 |
//echo 'Multi Select value: ' . $redux_builder_amp['amp-frontpage-select-option-pages'];
|
26 |
+
?>
|
27 |
+
|
28 |
<?php $the_query = new WP_Query( 'page_id=' . $redux_builder_amp['amp-frontpage-select-option-pages'] . '' ); ?>
|
29 |
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
|
30 |
+
<?php the_content(); ?>
|
31 |
<?php endwhile;?>
|
32 |
|
33 |
<?php do_action( 'ampforwp_after_post_content', $this ); ?>
|
37 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-taxonomy' ) ) ); ?>
|
38 |
|
39 |
|
40 |
+
|
|
|
|
|
|
|
|
|
41 |
</div>
|
42 |
|
43 |
<?php if($redux_builder_amp['enable-single-social-icons'] == true) { ?>
|
44 |
+
<div class="sticky_social">
|
45 |
<?php if($redux_builder_amp['enable-single-facebook-share'] == true) { ?>
|
46 |
<amp-social-share type="facebook" width="50" height="28"></amp-social-share>
|
47 |
<?php } ?>
|
66 |
|
67 |
<?php do_action( 'amp_post_template_footer', $this ); ?>
|
68 |
</body>
|
69 |
+
</html>
|
templates/header.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
<header class="container">
|
2 |
<div id="headerwrap">
|
3 |
<div id="header">
|
4 |
-
|
5 |
-
<?php global $redux_builder_amp;
|
6 |
$ampforwp_home_url = trailingslashit( get_bloginfo('url') ) . '?' . AMP_QUERY_VAR;
|
7 |
?>
|
8 |
|
@@ -22,10 +22,10 @@
|
|
22 |
|
23 |
|
24 |
<div on='tap:sidebar.toggle' role="button" tabindex="0" class="nav_container">
|
25 |
-
<a href="#" class="toggle-text"><?php echo $redux_builder_amp['amp-
|
26 |
</div>
|
27 |
|
28 |
-
|
29 |
<amp-sidebar id='sidebar'
|
30 |
layout="nodisplay"
|
31 |
side="right">
|
1 |
+
<header class="container">
|
2 |
<div id="headerwrap">
|
3 |
<div id="header">
|
4 |
+
|
5 |
+
<?php global $redux_builder_amp;
|
6 |
$ampforwp_home_url = trailingslashit( get_bloginfo('url') ) . '?' . AMP_QUERY_VAR;
|
7 |
?>
|
8 |
|
22 |
|
23 |
|
24 |
<div on='tap:sidebar.toggle' role="button" tabindex="0" class="nav_container">
|
25 |
+
<a href="#" class="toggle-text"><?php echo $redux_builder_amp['amp-translator-navigate-text']; ?></a>
|
26 |
</div>
|
27 |
|
28 |
+
|
29 |
<amp-sidebar id='sidebar'
|
30 |
layout="nodisplay"
|
31 |
side="right">
|
templates/index.php
CHANGED
@@ -17,10 +17,12 @@
|
|
17 |
<?php do_action( 'ampforwp_after_header', $this ); ?>
|
18 |
|
19 |
<?php if ( have_posts() ) :
|
20 |
-
while ( have_posts() ) : the_post();
|
21 |
-
|
22 |
$ampforwp_amp_post_url = trailingslashit( get_permalink() ) . AMP_QUERY_VAR ;
|
23 |
-
|
|
|
|
|
24 |
?>
|
25 |
|
26 |
<div class="amp-wp-content amp-loop-list">
|
@@ -28,8 +30,8 @@
|
|
28 |
<?php
|
29 |
$thumb_id = get_post_thumbnail_id();
|
30 |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail', true);
|
31 |
-
$thumb_url = $thumb_url_array[0];
|
32 |
-
?>
|
33 |
<div class="home-post_image"><a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"><amp-img src=<?php echo $thumb_url ?> width=100 height=75></amp-img></a></div>
|
34 |
<?php } ?>
|
35 |
|
@@ -45,21 +47,23 @@
|
|
45 |
|
46 |
</div>
|
47 |
|
48 |
-
<?php
|
|
|
|
|
49 |
|
50 |
-
|
51 |
-
<div class="amp-wp-content pagination-holder">
|
52 |
|
53 |
<div id="pagination">
|
54 |
-
<div class="next"><?php next_posts_link( '
|
55 |
-
<div class="prev"><?php previous_posts_link( '«
|
56 |
<div class="clearfix"></div>
|
57 |
</div>
|
58 |
|
59 |
</div>
|
60 |
|
61 |
<?php endif; ?>
|
62 |
-
|
63 |
|
64 |
<?php do_action( 'amp_post_template_footer', $this ); ?>
|
65 |
</body>
|
17 |
<?php do_action( 'ampforwp_after_header', $this ); ?>
|
18 |
|
19 |
<?php if ( have_posts() ) :
|
20 |
+
while ( have_posts() ) : the_post();
|
21 |
+
|
22 |
$ampforwp_amp_post_url = trailingslashit( get_permalink() ) . AMP_QUERY_VAR ;
|
23 |
+
|
24 |
+
do_action('ampforwp_index_page_before_post');
|
25 |
+
|
26 |
?>
|
27 |
|
28 |
<div class="amp-wp-content amp-loop-list">
|
30 |
<?php
|
31 |
$thumb_id = get_post_thumbnail_id();
|
32 |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail', true);
|
33 |
+
$thumb_url = $thumb_url_array[0];
|
34 |
+
?>
|
35 |
<div class="home-post_image"><a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"><amp-img src=<?php echo $thumb_url ?> width=100 height=75></amp-img></a></div>
|
36 |
<?php } ?>
|
37 |
|
47 |
|
48 |
</div>
|
49 |
|
50 |
+
<?php
|
51 |
+
do_action('ampforwp_index_page_after_post');
|
52 |
+
endwhile; ?>
|
53 |
|
54 |
+
|
55 |
+
<div class="amp-wp-content pagination-holder">
|
56 |
|
57 |
<div id="pagination">
|
58 |
+
<div class="next"><?php global $redux_builder_amp; next_posts_link( $redux_builder_amp['amp-translator-next-text']." »", 0 ) ?></div>
|
59 |
+
<div class="prev"><?php previous_posts_link( '«'.$redux_builder_amp['amp-translator-previous-text'] ); ?></div>
|
60 |
<div class="clearfix"></div>
|
61 |
</div>
|
62 |
|
63 |
</div>
|
64 |
|
65 |
<?php endif; ?>
|
66 |
+
|
67 |
|
68 |
<?php do_action( 'amp_post_template_footer', $this ); ?>
|
69 |
</body>
|
templates/meta-author.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $post_author = $this->get( 'post_author' ); ?>
|
2 |
+
<?php if ( $post_author ) : ?>
|
3 |
+
<?php $author_avatar_url = get_avatar_url( $post_author->user_email, array( 'size' => 24 ) ); ?>
|
4 |
+
<div class="amp-wp-meta amp-wp-byline">
|
5 |
+
<?php if ( function_exists( 'get_avatar_url' ) ) : ?>
|
6 |
+
<amp-img src="<?php echo esc_url( $author_avatar_url ); ?>" width="24" height="24" layout="fixed"></amp-img>
|
7 |
+
<?php endif; ?>
|
8 |
+
<span class="amp-wp-author author vcard"><?php echo esc_html( $post_author->display_name ); ?></span>
|
9 |
+
|
10 |
+
<li class="amp-wp-meta-date"> <?php global $redux_builder_amp; _e($redux_builder_amp['amp-translator-on-text']." ",'ampforwp'); the_time( get_option( 'date_format' ) ) ?></li>
|
11 |
+
|
12 |
+
</div>
|
13 |
+
<?php endif; ?>
|
templates/meta-taxonomy.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$ampforwp_categories = get_the_terms( $this->ID, 'category' );
|
3 |
+
if ( $ampforwp_categories ) : ?>
|
4 |
+
<div class="amp-wp-meta amp-wp-tax-category ampforwp-tax-category">
|
5 |
+
<span><?php global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-categories-text'] .': ', 'amp' )); ?></span>
|
6 |
+
<?php foreach ($ampforwp_categories as $cat ) {
|
7 |
+
echo ('<a href="'.get_site_url().'/category/' . $cat->slug .'/?amp" >'.$cat->name .'</a>');
|
8 |
+
} ?>
|
9 |
+
</div>
|
10 |
+
<?php endif; ?>
|
templates/single.php
CHANGED
@@ -18,10 +18,9 @@
|
|
18 |
|
19 |
<div class="amp-wp-content post-title-meta">
|
20 |
<?php if($redux_builder_amp['enable-single-post-meta'] == true) { ?>
|
21 |
-
<ul class="amp-wp-meta">
|
22 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-author') ) ); ?>
|
23 |
|
24 |
-
<li> <?php _e(' on ','ampforwp'); the_time( get_option( 'date_format' ) ) ?></li>
|
25 |
|
26 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array('meta-taxonomy' ) ) ); ?>
|
27 |
|
@@ -38,7 +37,9 @@
|
|
38 |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'large', true);
|
39 |
$thumb_url = $thumb_url_array[0];
|
40 |
?>
|
41 |
-
<div class="post-featured-img"><amp-img src=<?php echo $thumb_url ?>
|
|
|
|
|
42 |
<?php } } ?>
|
43 |
</div>
|
44 |
<div class="amp-wp-content the_content">
|
@@ -51,21 +52,29 @@
|
|
51 |
|
52 |
<div class="amp-wp-content post-pagination-meta">
|
53 |
<?php if($redux_builder_amp['ampforwp-single-tags-on-off'] == true) {
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
} ?>
|
56 |
-
|
57 |
<?php if($redux_builder_amp['enable-next-previous-pagination'] == true) { ?>
|
58 |
<div id="pagination">
|
59 |
<div class="next">
|
60 |
<?php $next_post = get_next_post();
|
61 |
if (!empty( $next_post )) { ?>
|
62 |
-
<a href="<?php echo get_permalink( $next_post->ID ) . AMP_QUERY_VAR; ?>"><?php echo $next_post->post_title;
|
63 |
-
} ?>
|
64 |
</div>
|
65 |
<div class="prev">
|
66 |
<?php $prev_post = get_previous_post();
|
67 |
if (!empty( $prev_post )) { ?>
|
68 |
-
<a href="<?php echo get_permalink( $prev_post->ID ). AMP_QUERY_VAR; ?>"
|
69 |
} ?>
|
70 |
</div>
|
71 |
<div class="clearfix"></div>
|
@@ -142,7 +151,7 @@
|
|
142 |
<div class="amp-wp-content relatedpost">
|
143 |
<div class="related_posts">
|
144 |
<ol class="clearfix">
|
145 |
-
<h3
|
146 |
<?php
|
147 |
while( $my_query->have_posts() ) {
|
148 |
$my_query->the_post();
|
18 |
|
19 |
<div class="amp-wp-content post-title-meta">
|
20 |
<?php if($redux_builder_amp['enable-single-post-meta'] == true) { ?>
|
21 |
+
<ul class="amp-wp-meta amp-meta-wrapper">
|
22 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-author') ) ); ?>
|
23 |
|
|
|
24 |
|
25 |
<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array('meta-taxonomy' ) ) ); ?>
|
26 |
|
37 |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'large', true);
|
38 |
$thumb_url = $thumb_url_array[0];
|
39 |
?>
|
40 |
+
<div class="post-featured-img"><amp-img src=<?php echo $thumb_url ?>
|
41 |
+
width=<?php global $redux_builder_amp; echo $redux_builder_amp['enable-single-featured-img-width'] ?>
|
42 |
+
height=<?php echo $redux_builder_amp['enable-single-featured-img-height']?> layout=responsive></amp-img></div>
|
43 |
<?php } } ?>
|
44 |
</div>
|
45 |
<div class="amp-wp-content the_content">
|
52 |
|
53 |
<div class="amp-wp-content post-pagination-meta">
|
54 |
<?php if($redux_builder_amp['ampforwp-single-tags-on-off'] == true) {
|
55 |
+
$ampforwp_tags= get_the_terms( $this->ID, 'post_tag' );
|
56 |
+
if ( $ampforwp_tags && ! is_wp_error( $ampforwp_tags ) ) : ?>
|
57 |
+
<div class="amp-wp-meta amp-wp-tax-tag ampforwp-tax-tag">
|
58 |
+
<?php global $redux_builder_amp; printf( __($redux_builder_amp['amp-translator-tags-text'] .': ', 'amp' ));
|
59 |
+
foreach ($ampforwp_tags as $tag) {
|
60 |
+
echo ('<a href="'.get_site_url().'/tag/' . $tag->slug .'/?amp" >'.$tag->name .'</a>');
|
61 |
+
} ?>
|
62 |
+
</div>
|
63 |
+
<?php endif;
|
64 |
} ?>
|
65 |
+
|
66 |
<?php if($redux_builder_amp['enable-next-previous-pagination'] == true) { ?>
|
67 |
<div id="pagination">
|
68 |
<div class="next">
|
69 |
<?php $next_post = get_next_post();
|
70 |
if (!empty( $next_post )) { ?>
|
71 |
+
<a href="<?php echo get_permalink( $next_post->ID ) . AMP_QUERY_VAR; ?>"><?php echo $next_post->post_title; ?> »</a> <?php
|
72 |
+
} ?>
|
73 |
</div>
|
74 |
<div class="prev">
|
75 |
<?php $prev_post = get_previous_post();
|
76 |
if (!empty( $prev_post )) { ?>
|
77 |
+
<a href="<?php echo get_permalink( $prev_post->ID ). AMP_QUERY_VAR; ?>"> « <?php echo $prev_post->post_title ?></a> <?php
|
78 |
} ?>
|
79 |
</div>
|
80 |
<div class="clearfix"></div>
|
151 |
<div class="amp-wp-content relatedpost">
|
152 |
<div class="related_posts">
|
153 |
<ol class="clearfix">
|
154 |
+
<h3><?php global $redux_builder_amp; echo $redux_builder_amp['amp-translator-related-text'] ?></h3>
|
155 |
<?php
|
156 |
while( $my_query->have_posts() ) {
|
157 |
$my_query->the_post();
|
templates/style.php
CHANGED
@@ -4,7 +4,7 @@ body{
|
|
4 |
background: #f1f1f1;
|
5 |
font: 16px/1.4 Sans-serif;
|
6 |
}
|
7 |
-
a {
|
8 |
color: #312C7E;
|
9 |
text-decoration: none
|
10 |
}
|
@@ -29,7 +29,7 @@ a {
|
|
29 |
text-align: center
|
30 |
}
|
31 |
amp-sidebar {
|
32 |
-
width: 250px;
|
33 |
}
|
34 |
.amp-sidebar-image {
|
35 |
line-height: 100px;
|
@@ -45,7 +45,7 @@ amp-sidebar {
|
|
45 |
list-style-type: none;
|
46 |
margin: 0;
|
47 |
padding: 0;
|
48 |
-
}
|
49 |
.toggle-navigationv2 ul ul li a {
|
50 |
padding-left: 35px;
|
51 |
background: #fff;
|
@@ -131,7 +131,7 @@ amp-sidebar {
|
|
131 |
.toggle-navigation:focus{
|
132 |
display: inline-block;
|
133 |
width: 100%;
|
134 |
-
}
|
135 |
|
136 |
|
137 |
/* Pagination */
|
@@ -142,7 +142,7 @@ amp-sidebar {
|
|
142 |
height: auto;
|
143 |
min-height: auto;
|
144 |
}
|
145 |
-
#pagination{
|
146 |
width: 100%;
|
147 |
margin-top: 15px;
|
148 |
}
|
@@ -163,7 +163,7 @@ amp-sidebar {
|
|
163 |
-webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
164 |
box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
165 |
padding: 11px 15px;
|
166 |
-
font-size: 12px;
|
167 |
color: #666;
|
168 |
}
|
169 |
|
@@ -193,7 +193,7 @@ amp-sidebar {
|
|
193 |
/* Header */
|
194 |
#header{
|
195 |
background: #fff;
|
196 |
-
text-align: center;
|
197 |
}
|
198 |
#header h1{
|
199 |
text-align: center;
|
@@ -204,8 +204,8 @@ amp-sidebar {
|
|
204 |
margin: 0;
|
205 |
}
|
206 |
.amp-logo{
|
207 |
-
margin: 15px 0px 10px 0px;
|
208 |
-
}
|
209 |
|
210 |
main {
|
211 |
padding: 30px 15% 10px 15%;
|
@@ -219,7 +219,7 @@ main .amp-wp-content{
|
|
219 |
-moz-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
220 |
-webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
221 |
box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
222 |
-
padding: 15px;
|
223 |
}
|
224 |
.home-post_image {
|
225 |
float: right;
|
@@ -248,7 +248,7 @@ h2.amp-wp-title , .amp-wp-post-content p{
|
|
248 |
}
|
249 |
|
250 |
|
251 |
-
/* Footer */
|
252 |
#footer{
|
253 |
background : #fff;
|
254 |
font-size: 13px;
|
@@ -284,9 +284,9 @@ h1.amp-wp-title {
|
|
284 |
margin: 20px 0px 18px 0px;
|
285 |
font-size: 1.5em;
|
286 |
}
|
287 |
-
.amp-wp-content.post-title-meta,
|
288 |
.amp-wp-content.post-pagination-meta {
|
289 |
-
background: none;
|
290 |
padding: 0;
|
291 |
box-shadow:none
|
292 |
}
|
@@ -298,7 +298,10 @@ h1.amp-wp-title {
|
|
298 |
}
|
299 |
.post-pagination-meta .amp-wp-tax-category,
|
300 |
.post-title-meta .amp-wp-tax-tag {
|
301 |
-
display : none;
|
|
|
|
|
|
|
302 |
}
|
303 |
.amp-wp-meta {
|
304 |
padding-left: 0;
|
@@ -317,7 +320,7 @@ li.amp-wp-tax-category {
|
|
317 |
.amp-wp-byline, .amp-wp-posted-on {
|
318 |
float: left
|
319 |
}
|
320 |
-
|
321 |
.amp-wp-content amp-img {
|
322 |
max-width: 100%;
|
323 |
}
|
@@ -329,21 +332,19 @@ li.amp-wp-tax-category {
|
|
329 |
color: #555;
|
330 |
}
|
331 |
.amp-wp-author{
|
332 |
-
margin-right:
|
333 |
}
|
334 |
.amp-wp-meta {
|
335 |
font-size: 12px;
|
336 |
padding-bottom: 10px;
|
337 |
color: #555;
|
338 |
-
border-bottom: 1px solid #DADADA;
|
339 |
-
|
340 |
}
|
341 |
.amp-ad-wrapper {
|
342 |
text-align: center
|
343 |
}
|
344 |
.single-post main{
|
345 |
padding:12px 15% 10px 15%
|
346 |
-
}
|
347 |
.the_content p{
|
348 |
margin-top: 5px;
|
349 |
color: #333;
|
@@ -367,12 +368,13 @@ main .amp-wp-content.relatedpost {
|
|
367 |
background: none;
|
368 |
box-shadow: none;
|
369 |
max-width: 1030px;
|
|
|
370 |
}
|
371 |
.related_posts h3, .comments_list h3{
|
372 |
font-size: 14px;
|
373 |
font-weight: bold;
|
374 |
letter-spacing: 0.4px;
|
375 |
-
margin:
|
376 |
color: #333;
|
377 |
}
|
378 |
.related_posts ol{
|
@@ -426,9 +428,10 @@ main .amp-wp-content.comments_list {
|
|
426 |
background: none;
|
427 |
box-shadow: none;
|
428 |
max-width: 1030px;
|
|
|
429 |
}
|
430 |
.comments_list div{
|
431 |
-
display:inline-block;
|
432 |
}
|
433 |
.comments_list ul{
|
434 |
margin:0;
|
@@ -445,7 +448,7 @@ main .amp-wp-content.comments_list {
|
|
445 |
}
|
446 |
.comments_list ul li{
|
447 |
font-size:13px;
|
448 |
-
list-style-type:none;
|
449 |
margin-bottom: 12px;
|
450 |
background: #fefefe;
|
451 |
-moz-border-radius: 2px;
|
@@ -465,7 +468,7 @@ main .amp-wp-content.comments_list {
|
|
465 |
.single-post footer.comment-meta{
|
466 |
/* float:right */
|
467 |
padding-bottom: 0;
|
468 |
-
}
|
469 |
.comments_list li li{
|
470 |
margin: 20px 20px 10px 20px;
|
471 |
background: #f7f7f7;
|
@@ -475,7 +478,7 @@ main .amp-wp-content.comments_list {
|
|
475 |
.comments_list li li li{
|
476 |
margin:20px 20px 10px 20px
|
477 |
}
|
478 |
-
|
479 |
/* ADS */
|
480 |
.amp_ad_1{
|
481 |
margin-top: -15px;
|
@@ -508,35 +511,36 @@ amp-user-notification button {
|
|
508 |
amp-user-notification button:hover {
|
509 |
cursor: pointer
|
510 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
511 |
|
512 |
/* Responsive */
|
513 |
-
@media screen and (max-width: 800px) {
|
514 |
.single-post main{
|
515 |
padding: 12px 10px 10px 10px
|
516 |
}
|
517 |
}
|
518 |
-
@media screen and (max-width: 340px) {
|
519 |
-
.single-post main{
|
520 |
-
padding: 12px 0px 10px 0px
|
521 |
-
}
|
522 |
-
.the_content .amp-ad-wrapper{
|
523 |
-
text-align: center;
|
524 |
-
margin-left: -13px;
|
525 |
-
}
|
526 |
-
}
|
527 |
-
@media screen and (max-width: 630px) {
|
528 |
-
.related_posts ol li amp-img{
|
529 |
-
display:none
|
530 |
-
}
|
531 |
|
|
|
|
|
|
|
|
|
532 |
.related_link {
|
533 |
margin: 16px 18px 20px 19px;
|
534 |
}
|
535 |
}
|
536 |
@media screen and (max-width: 510px) {
|
537 |
-
|
|
|
|
|
|
|
538 |
line-height: 1.6;
|
539 |
-
margin: 7px 0 0 0;
|
540 |
}
|
541 |
.related_posts .related_link {
|
542 |
margin: 17px 18px 17px 19px;
|
@@ -545,7 +549,7 @@ amp-user-notification button:hover {
|
|
545 |
width:auto
|
546 |
}
|
547 |
}
|
548 |
-
@media screen and (max-width: 425px) {
|
549 |
.related_posts .related_link p{
|
550 |
display:none
|
551 |
}
|
@@ -556,6 +560,66 @@ amp-user-notification button:hover {
|
|
556 |
font-size: 18px;
|
557 |
line-height: 1.7;
|
558 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
}
|
560 |
@media screen and (max-width: 400px) {
|
561 |
.amp-wp-title{
|
@@ -569,10 +633,10 @@ amp-user-notification button:hover {
|
|
569 |
}
|
570 |
.amp-wp-post-content p{
|
571 |
display: none
|
572 |
-
}
|
573 |
-
|
574 |
main{
|
575 |
-
padding: 25px 18px 25px 18px;
|
576 |
}
|
577 |
.toggle-navigation ul li{
|
578 |
width: 50%
|
@@ -582,7 +646,7 @@ amp-user-notification button:hover {
|
|
582 |
h2.amp-wp-title a{
|
583 |
font-size: 17px;
|
584 |
line-height: 26px;
|
585 |
-
}
|
586 |
}
|
587 |
|
588 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
@@ -598,6 +662,9 @@ main .amp-loop-list {
|
|
598 |
margin-left:0;
|
599 |
margin-right:15px;
|
600 |
}
|
|
|
|
|
|
|
601 |
#pagination .next{
|
602 |
float:left
|
603 |
}
|
@@ -618,6 +685,9 @@ a,
|
|
618 |
.amp-wp-author {
|
619 |
color: <?php echo $color ?>;
|
620 |
}
|
|
|
|
|
|
|
621 |
.nav_container, .comment-button-wrapper a {
|
622 |
background: <?php echo $color ?>;
|
623 |
}
|
@@ -627,11 +697,41 @@ amp-user-notification {
|
|
627 |
amp-user-notification button {
|
628 |
background-color: <?php echo $color ?>;
|
629 |
}
|
630 |
-
<?php if( $redux_builder_amp['enable-single-social-icons'] == true ) { ?>
|
631 |
.single-post footer {
|
632 |
padding-bottom: 40px;
|
633 |
}
|
634 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
635 |
|
636 |
/* Custom Style Code */
|
637 |
<?php echo $redux_builder_amp['css_editor']; ?>
|
4 |
background: #f1f1f1;
|
5 |
font: 16px/1.4 Sans-serif;
|
6 |
}
|
7 |
+
a {
|
8 |
color: #312C7E;
|
9 |
text-decoration: none
|
10 |
}
|
29 |
text-align: center
|
30 |
}
|
31 |
amp-sidebar {
|
32 |
+
width: 250px;
|
33 |
}
|
34 |
.amp-sidebar-image {
|
35 |
line-height: 100px;
|
45 |
list-style-type: none;
|
46 |
margin: 0;
|
47 |
padding: 0;
|
48 |
+
}
|
49 |
.toggle-navigationv2 ul ul li a {
|
50 |
padding-left: 35px;
|
51 |
background: #fff;
|
131 |
.toggle-navigation:focus{
|
132 |
display: inline-block;
|
133 |
width: 100%;
|
134 |
+
}
|
135 |
|
136 |
|
137 |
/* Pagination */
|
142 |
height: auto;
|
143 |
min-height: auto;
|
144 |
}
|
145 |
+
#pagination{
|
146 |
width: 100%;
|
147 |
margin-top: 15px;
|
148 |
}
|
163 |
-webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
164 |
box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
165 |
padding: 11px 15px;
|
166 |
+
font-size: 12px;
|
167 |
color: #666;
|
168 |
}
|
169 |
|
193 |
/* Header */
|
194 |
#header{
|
195 |
background: #fff;
|
196 |
+
text-align: center;
|
197 |
}
|
198 |
#header h1{
|
199 |
text-align: center;
|
204 |
margin: 0;
|
205 |
}
|
206 |
.amp-logo{
|
207 |
+
margin: 15px 0px 10px 0px;
|
208 |
+
}
|
209 |
|
210 |
main {
|
211 |
padding: 30px 15% 10px 15%;
|
219 |
-moz-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
220 |
-webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
221 |
box-shadow: 0 2px 3px rgba(0,0,0,.05);
|
222 |
+
padding: 15px;
|
223 |
}
|
224 |
.home-post_image {
|
225 |
float: right;
|
248 |
}
|
249 |
|
250 |
|
251 |
+
/* Footer */
|
252 |
#footer{
|
253 |
background : #fff;
|
254 |
font-size: 13px;
|
284 |
margin: 20px 0px 18px 0px;
|
285 |
font-size: 1.5em;
|
286 |
}
|
287 |
+
.amp-wp-content.post-title-meta,
|
288 |
.amp-wp-content.post-pagination-meta {
|
289 |
+
background: none;
|
290 |
padding: 0;
|
291 |
box-shadow:none
|
292 |
}
|
298 |
}
|
299 |
.post-pagination-meta .amp-wp-tax-category,
|
300 |
.post-title-meta .amp-wp-tax-tag {
|
301 |
+
display : none;
|
302 |
+
}
|
303 |
+
.amp-meta-wrapper{
|
304 |
+
border-bottom: 1px solid #DADADA;
|
305 |
}
|
306 |
.amp-wp-meta {
|
307 |
padding-left: 0;
|
320 |
.amp-wp-byline, .amp-wp-posted-on {
|
321 |
float: left
|
322 |
}
|
323 |
+
|
324 |
.amp-wp-content amp-img {
|
325 |
max-width: 100%;
|
326 |
}
|
332 |
color: #555;
|
333 |
}
|
334 |
.amp-wp-author{
|
335 |
+
margin-right: 1px;
|
336 |
}
|
337 |
.amp-wp-meta {
|
338 |
font-size: 12px;
|
339 |
padding-bottom: 10px;
|
340 |
color: #555;
|
|
|
|
|
341 |
}
|
342 |
.amp-ad-wrapper {
|
343 |
text-align: center
|
344 |
}
|
345 |
.single-post main{
|
346 |
padding:12px 15% 10px 15%
|
347 |
+
}
|
348 |
.the_content p{
|
349 |
margin-top: 5px;
|
350 |
color: #333;
|
368 |
background: none;
|
369 |
box-shadow: none;
|
370 |
max-width: 1030px;
|
371 |
+
padding:1px 0 0 0;
|
372 |
}
|
373 |
.related_posts h3, .comments_list h3{
|
374 |
font-size: 14px;
|
375 |
font-weight: bold;
|
376 |
letter-spacing: 0.4px;
|
377 |
+
margin: 15px 0 10px 0;
|
378 |
color: #333;
|
379 |
}
|
380 |
.related_posts ol{
|
428 |
background: none;
|
429 |
box-shadow: none;
|
430 |
max-width: 1030px;
|
431 |
+
padding:0
|
432 |
}
|
433 |
.comments_list div{
|
434 |
+
display:inline-block;
|
435 |
}
|
436 |
.comments_list ul{
|
437 |
margin:0;
|
448 |
}
|
449 |
.comments_list ul li{
|
450 |
font-size:13px;
|
451 |
+
list-style-type:none;
|
452 |
margin-bottom: 12px;
|
453 |
background: #fefefe;
|
454 |
-moz-border-radius: 2px;
|
468 |
.single-post footer.comment-meta{
|
469 |
/* float:right */
|
470 |
padding-bottom: 0;
|
471 |
+
}
|
472 |
.comments_list li li{
|
473 |
margin: 20px 20px 10px 20px;
|
474 |
background: #f7f7f7;
|
478 |
.comments_list li li li{
|
479 |
margin:20px 20px 10px 20px
|
480 |
}
|
481 |
+
|
482 |
/* ADS */
|
483 |
.amp_ad_1{
|
484 |
margin-top: -15px;
|
511 |
amp-user-notification button:hover {
|
512 |
cursor: pointer
|
513 |
}
|
514 |
+
.amp-wp-content blockquote {
|
515 |
+
background-color: #fff;
|
516 |
+
border-left: 3px solid;
|
517 |
+
margin: 0;
|
518 |
+
padding: 15px 20px 8px 24px;
|
519 |
+
background: #f3f3f3;
|
520 |
+
}
|
521 |
|
522 |
/* Responsive */
|
523 |
+
@media screen and (max-width: 800px) {
|
524 |
.single-post main{
|
525 |
padding: 12px 10px 10px 10px
|
526 |
}
|
527 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
|
529 |
+
@media screen and (max-width: 630px) {
|
530 |
+
.related_posts ol li p{
|
531 |
+
display:none
|
532 |
+
}
|
533 |
.related_link {
|
534 |
margin: 16px 18px 20px 19px;
|
535 |
}
|
536 |
}
|
537 |
@media screen and (max-width: 510px) {
|
538 |
+
.ampforwp-tax-category span{
|
539 |
+
display:none
|
540 |
+
}
|
541 |
+
.related_posts ol li p{
|
542 |
line-height: 1.6;
|
543 |
+
margin: 7px 0 0 0;
|
544 |
}
|
545 |
.related_posts .related_link {
|
546 |
margin: 17px 18px 17px 19px;
|
549 |
width:auto
|
550 |
}
|
551 |
}
|
552 |
+
@media screen and (max-width: 425px) {
|
553 |
.related_posts .related_link p{
|
554 |
display:none
|
555 |
}
|
560 |
font-size: 18px;
|
561 |
line-height: 1.7;
|
562 |
}
|
563 |
+
.amp-meta-wrapper{
|
564 |
+
display: inline-block;
|
565 |
+
margin-bottom: 0px;
|
566 |
+
margin-top: 8px;
|
567 |
+
width:100%
|
568 |
+
}
|
569 |
+
.ampforwp-tax-category{
|
570 |
+
padding-bottom:0
|
571 |
+
}
|
572 |
+
h1.amp-wp-title{
|
573 |
+
margin: 16px 0px 13px 0px;
|
574 |
+
}
|
575 |
+
.amp-wp-byline{
|
576 |
+
padding:0
|
577 |
+
}
|
578 |
+
.amp-meta-wrapper .amp-wp-meta-date{
|
579 |
+
display:none
|
580 |
+
}
|
581 |
+
.related_posts .related_link a {
|
582 |
+
font-size: 17px;
|
583 |
+
line-height: 1.5;
|
584 |
+
}
|
585 |
+
}
|
586 |
+
@media screen and (max-width: 375px) {
|
587 |
+
#pagination .next a, #pagination .prev a{
|
588 |
+
padding: 10px 6px;
|
589 |
+
font-size: 11px;
|
590 |
+
color: #666;
|
591 |
+
}
|
592 |
+
.related_posts h3, .comments_list h3{
|
593 |
+
margin-top:15px;
|
594 |
+
}
|
595 |
+
#pagination .next{
|
596 |
+
margin-bottom:15px;
|
597 |
+
}
|
598 |
+
.related_posts .related_link a {
|
599 |
+
font-size: 15px;
|
600 |
+
line-height: 1.6;
|
601 |
+
}
|
602 |
+
}
|
603 |
+
@media screen and (max-width: 340px) {
|
604 |
+
.related_posts .related_link a {
|
605 |
+
font-size: 15px;
|
606 |
+
}
|
607 |
+
.single-post main{
|
608 |
+
padding: 10px 5px 10px 5px
|
609 |
+
}
|
610 |
+
.the_content .amp-ad-wrapper{
|
611 |
+
text-align: center;
|
612 |
+
margin-left: -13px;
|
613 |
+
}
|
614 |
+
}
|
615 |
+
@media screen and (max-width: 320px) {
|
616 |
+
.related_posts .related_link a {
|
617 |
+
font-size: 13px;
|
618 |
+
}
|
619 |
+
h1.amp-wp-title{
|
620 |
+
font-size:17px;
|
621 |
+
padding:0px 4px
|
622 |
+
}
|
623 |
}
|
624 |
@media screen and (max-width: 400px) {
|
625 |
.amp-wp-title{
|
633 |
}
|
634 |
.amp-wp-post-content p{
|
635 |
display: none
|
636 |
+
}
|
637 |
+
|
638 |
main{
|
639 |
+
padding: 25px 18px 25px 18px;
|
640 |
}
|
641 |
.toggle-navigation ul li{
|
642 |
width: 50%
|
646 |
h2.amp-wp-title a{
|
647 |
font-size: 17px;
|
648 |
line-height: 26px;
|
649 |
+
}
|
650 |
}
|
651 |
|
652 |
<?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
|
662 |
margin-left:0;
|
663 |
margin-right:15px;
|
664 |
}
|
665 |
+
#pagination{
|
666 |
+
display:inline-block
|
667 |
+
}
|
668 |
#pagination .next{
|
669 |
float:left
|
670 |
}
|
685 |
.amp-wp-author {
|
686 |
color: <?php echo $color ?>;
|
687 |
}
|
688 |
+
.amp-wp-content blockquote{
|
689 |
+
border-color:<?php echo $color ?>;
|
690 |
+
}
|
691 |
.nav_container, .comment-button-wrapper a {
|
692 |
background: <?php echo $color ?>;
|
693 |
}
|
697 |
amp-user-notification button {
|
698 |
background-color: <?php echo $color ?>;
|
699 |
}
|
700 |
+
<?php if( $redux_builder_amp['enable-single-social-icons'] == true ) { ?>
|
701 |
.single-post footer {
|
702 |
padding-bottom: 40px;
|
703 |
}
|
704 |
<?php } ?>
|
705 |
+
/**/
|
706 |
+
.alignleft{
|
707 |
+
margin-right: 12px;
|
708 |
+
margin-bottom:5px;
|
709 |
+
float: left;
|
710 |
+
}
|
711 |
+
.alignright{
|
712 |
+
float:right;
|
713 |
+
margin-left: 12px;
|
714 |
+
margin-bottom:5px;
|
715 |
+
}
|
716 |
+
.aligncenter{
|
717 |
+
text-align:center;
|
718 |
+
margin: 0 auto
|
719 |
+
}
|
720 |
+
|
721 |
+
.amp-wp-author:before{
|
722 |
+
content: " <?php global $redux_builder_amp; echo $redux_builder_amp['amp-translator-by-text']; ?> ";
|
723 |
+
}
|
724 |
+
|
725 |
+
.ampforwp-tax-category a:after,
|
726 |
+
.ampforwp-tax-tag a:after {
|
727 |
+
content: ', ';
|
728 |
+
}
|
729 |
+
.ampforwp-tax-category a:last-child:after,
|
730 |
+
.ampforwp-tax-tag a:last-child:after {
|
731 |
+
content: ' ';
|
732 |
+
}
|
733 |
+
|
734 |
+
|
735 |
|
736 |
/* Custom Style Code */
|
737 |
<?php echo $redux_builder_amp['css_editor']; ?>
|