Version Description
(14th December 2019) = * Fixed: Telegram as social profile #3754 * Fixed: Give default styling for tag. #3879 * Fixed: When pagination is enabled in Category Module,translation option should be given in Advanced. #3847 * Fixed: An issue with Code module in AMP page puilder. #3833 * Fixed: Getting an error while validating page when using Disqus comments #3871 * Fixed: Content is updated programatically on /amp/ page view, bad revision is created #3822 * Fixed: Custom Post types and taxonomies option should be only visible when Archives is enabled #3903 * Fixed: After reloading 'Select Categories to Hide AMP', it shows empty #3898 * Fixed: In exclude Categories option the "No items of this type were found." message is displaying #3900 * Fixed: Cannot use a scalar value as an array #3823 * Fixed: Debug warnings. #3932 * Fixed: Google Tag manager not firing properly #3826
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- README.md +15 -1
- accelerated-moblie-pages.php +43 -5
- changelog.txt +14 -0
- includes/features/analytics/analytics-functions.php +2 -3
- includes/features/performance/performance-functions.php +3 -0
- includes/options/admin-config.php +109 -7
- includes/vendor/amp/includes/class-amp-post-template.php +5 -2
- includes/vendor/amp/includes/sanitizers/class-amp-img-sanitizer.php +2 -0
- pagebuilder/functions.php +1 -1
- pagebuilder/inc/adminAjaxContents.php +1 -1
- pagebuilder/inc/viewShowFrontData.php +1 -11
- pagebuilder/modules/contents-module.php +22 -2
- readme.txt +15 -20
- templates/design-manager.php +1 -1
- templates/design-manager/design-1/style.php +1 -0
- templates/design-manager/design-2/style.php +1 -0
- templates/design-manager/design-3/footer.php +3 -1
- templates/design-manager/design-3/header-bar.php +4 -0
- templates/design-manager/design-3/style.php +14 -0
- templates/design-manager/swift/header.php +15 -0
- templates/design-manager/swift/style.php +8 -1
- templates/features.php +1 -1
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,6 +191,20 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
= 1.0.0 (11th December 2019) =
|
195 |
* Improvement: Need to clear amp treeshaking css for reset section button. #3916
|
196 |
* Improvement: Need to add easy table of contents in extension list #3922
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 1.0.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 1.0.1 (14th December 2019) =
|
195 |
+
* Fixed: Telegram as social profile #3754
|
196 |
+
* Fixed: Give default styling for `<small>` tag. #3879
|
197 |
+
* Fixed: When pagination is enabled in Category Module,translation option should be given in Advanced. #3847
|
198 |
+
* Fixed: An issue with Code module in AMP page puilder. #3833
|
199 |
+
* Fixed: Getting an error while validating page when using Disqus comments #3871
|
200 |
+
* Fixed: Content is updated programatically on /amp/ page view, bad revision is created #3822
|
201 |
+
* Fixed: Custom Post types and taxonomies option should be only visible when Archives is enabled #3903
|
202 |
+
* Fixed: After reloading 'Select Categories to Hide AMP', it shows empty #3898
|
203 |
+
* Fixed: In exclude Categories option the "No items of this type were found." message is displaying #3900
|
204 |
+
* Fixed: Cannot use a scalar value as an array #3823
|
205 |
+
* Fixed: Debug warnings. #3932
|
206 |
+
* Fixed: Google Tag manager not firing properly #3826
|
207 |
+
|
208 |
= 1.0.0 (11th December 2019) =
|
209 |
* Improvement: Need to clear amp treeshaking css for reset section button. #3916
|
210 |
* Improvement: Need to add easy table of contents in extension list #3922
|
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
-
Version: 1.0.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
@@ -20,7 +20,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
|
|
20 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
21 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
22 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
23 |
-
define('AMPFORWP_VERSION','1.0.
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
@@ -808,6 +808,9 @@ if ( !function_exists('amp_activate') ) {
|
|
808 |
}
|
809 |
if(is_admin()){
|
810 |
require_once( AMPFORWP_PLUGIN_DIR. 'includes/modules-upgrade.php' );
|
|
|
|
|
|
|
811 |
}
|
812 |
|
813 |
/**
|
@@ -1046,7 +1049,7 @@ function ampforwp_get_all_post_types(){
|
|
1046 |
}
|
1047 |
|
1048 |
$custom_taxonomies = ampforwp_get_setting('ampforwp-custom-taxonomies');
|
1049 |
-
if( !empty($custom_taxonomies) ){
|
1050 |
foreach($custom_taxonomies as $taxonomy){
|
1051 |
$terms = get_taxonomy( $taxonomy );
|
1052 |
$taxonomy_name = ( isset($terms->name) ? $terms->name : '' );
|
@@ -1345,7 +1348,11 @@ function ampforwp_replace_redux_comments(){
|
|
1345 |
$replaced_redux_comments = get_transient('replaced_redux_comments_updated');
|
1346 |
|
1347 |
if(!$replaced_redux_comments){
|
1348 |
-
$redux_val = get_option('redux_builder_amp',
|
|
|
|
|
|
|
|
|
1349 |
|
1350 |
$search = '/******* Paste your Custom CSS in this Editor *******/';
|
1351 |
$rep = str_replace("$search", "", $redux_val);
|
@@ -1416,4 +1423,35 @@ if(!function_exists('ampforwp_get_admin_current_page')){
|
|
1416 |
}
|
1417 |
return $current_page;
|
1418 |
}
|
1419 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
+
Version: 1.0.1
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
20 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
21 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
22 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
23 |
+
define('AMPFORWP_VERSION','1.0.1');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
808 |
}
|
809 |
if(is_admin()){
|
810 |
require_once( AMPFORWP_PLUGIN_DIR. 'includes/modules-upgrade.php' );
|
811 |
+
add_action( "redux/options/redux_builder_amp/saved", 'ampforwp_update_data_when_saved', 10, 2 );
|
812 |
+
add_action( "redux/options/redux_builder_amp/reset", 'ampforwp_update_data_when_reset' );
|
813 |
+
add_action( "redux/options/redux_builder_amp/section/reset", 'ampforwp_update_data_when_reset' );
|
814 |
}
|
815 |
|
816 |
/**
|
1049 |
}
|
1050 |
|
1051 |
$custom_taxonomies = ampforwp_get_setting('ampforwp-custom-taxonomies');
|
1052 |
+
if(ampforwp_get_setting('ampforwp-archive-support') && !empty($custom_taxonomies) ){
|
1053 |
foreach($custom_taxonomies as $taxonomy){
|
1054 |
$terms = get_taxonomy( $taxonomy );
|
1055 |
$taxonomy_name = ( isset($terms->name) ? $terms->name : '' );
|
1348 |
$replaced_redux_comments = get_transient('replaced_redux_comments_updated');
|
1349 |
|
1350 |
if(!$replaced_redux_comments){
|
1351 |
+
$redux_val = get_option('redux_builder_amp',array());
|
1352 |
+
|
1353 |
+
if ( empty($redux_val) || ! is_array($redux_val)) {
|
1354 |
+
return;
|
1355 |
+
}
|
1356 |
|
1357 |
$search = '/******* Paste your Custom CSS in this Editor *******/';
|
1358 |
$rep = str_replace("$search", "", $redux_val);
|
1423 |
}
|
1424 |
return $current_page;
|
1425 |
}
|
1426 |
+
}
|
1427 |
+
function ampforwp_update_data_when_saved($options, $changed_values) {
|
1428 |
+
$updatedDataForTransient = array(
|
1429 |
+
'hide-amp-categories2',
|
1430 |
+
'amp-design-3-category-selector',
|
1431 |
+
'ampforwp-homepage-loop-cats',
|
1432 |
+
'hide-amp-tags-bulk-option2',
|
1433 |
+
'amp-design-3-tag-selector'
|
1434 |
+
);
|
1435 |
+
foreach ( $changed_values as $key => $value ) {
|
1436 |
+
if ( in_array( $key, $updatedDataForTransient ) ) {
|
1437 |
+
delete_transient( $key );
|
1438 |
+
}
|
1439 |
+
}
|
1440 |
+
}
|
1441 |
+
|
1442 |
+
function ampforwp_update_data_when_reset($rest_object = '') {
|
1443 |
+
if ( isset( $rest_object->parent->transients ) ) {
|
1444 |
+
$updatedDataForTransient = array(
|
1445 |
+
'hide-amp-categories2',
|
1446 |
+
'amp-design-3-category-selector',
|
1447 |
+
'ampforwp-homepage-loop-cats',
|
1448 |
+
'hide-amp-tags-bulk-option2',
|
1449 |
+
'amp-design-3-tag-selector'
|
1450 |
+
);
|
1451 |
+
foreach ( $rest_object->parent->transients['changed_values'] as $key => $value ) {
|
1452 |
+
if ( in_array( $key, $updatedDataForTransient ) ) {
|
1453 |
+
delete_transient( $key );
|
1454 |
+
}
|
1455 |
+
}
|
1456 |
+
}
|
1457 |
+
}
|
@@ -1,5 +1,19 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.0 (11th December 2019) =
|
4 |
* Improvement: Need to clear amp treeshaking css for reset section button. #3916
|
5 |
* Improvement: Need to add easy table of contents in extension list #3922
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.1 (14th December 2019) =
|
4 |
+
* Fixed: Telegram as social profile #3754
|
5 |
+
* Fixed: Give default styling for <small> tag. #3879
|
6 |
+
* Fixed: When pagination is enabled in Category Module,translation option should be given in Advanced. #3847
|
7 |
+
* Fixed: An issue with Code module in AMP page puilder. #3833
|
8 |
+
* Fixed: Getting an error while validating page when using Disqus comments #3871
|
9 |
+
* Fixed: Content is updated programatically on /amp/ page view, bad revision is created #3822
|
10 |
+
* Fixed: Custom Post types and taxonomies option should be only visible when Archives is enabled #3903
|
11 |
+
* Fixed: After reloading 'Select Categories to Hide AMP', it shows empty #3898
|
12 |
+
* Fixed: In exclude Categories option the "No items of this type were found." message is displaying #3900
|
13 |
+
* Fixed: Cannot use a scalar value as an array #3823
|
14 |
+
* Fixed: Debug warnings. #3932
|
15 |
+
* Fixed: Google Tag manager not firing properly #3826
|
16 |
+
|
17 |
= 1.0.0 (11th December 2019) =
|
18 |
* Improvement: Need to clear amp treeshaking css for reset section button. #3916
|
19 |
* Improvement: Need to add easy table of contents in extension list #3922
|
@@ -418,9 +418,8 @@ function ampforwp_add_advance_gtm_fields( $ampforwp_adv_gtm_fields ) {
|
|
418 |
$ampforwp_adv_gtm_fields = ampforwp_get_setting('ampforwp-gtm-field-advance');
|
419 |
$ampforwp_adv_gtm_fields = preg_replace('!/\*.*?\*/!s', '', $ampforwp_adv_gtm_fields);
|
420 |
$ampforwp_adv_gtm_fields = preg_replace('/\n\s*\n/', '', $ampforwp_adv_gtm_fields);
|
421 |
-
$ampforwp_adv_gtm_fields = preg_replace('/\/\/(.*?)\s(.*)/m', '$2', $ampforwp_adv_gtm_fields);
|
422 |
-
|
423 |
-
<amp-analytics <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> data-credentials="include" config="https://www.googletagmanager.com/amp.json?id=<?php echo esc_attr(ampforwp_get_setting('amp-gtm-id')); ?>&gtm.url=SOURCE_URL"><script type="application/json"><?php echo sanitize_text_field($ampforwp_adv_gtm_fields) ?></script></amp-analytics>
|
424 |
<?php
|
425 |
}
|
426 |
}
|
418 |
$ampforwp_adv_gtm_fields = ampforwp_get_setting('ampforwp-gtm-field-advance');
|
419 |
$ampforwp_adv_gtm_fields = preg_replace('!/\*.*?\*/!s', '', $ampforwp_adv_gtm_fields);
|
420 |
$ampforwp_adv_gtm_fields = preg_replace('/\n\s*\n/', '', $ampforwp_adv_gtm_fields);
|
421 |
+
$ampforwp_adv_gtm_fields = preg_replace('/\/\/(.*?)\s(.*)/m', '$2', $ampforwp_adv_gtm_fields); ?>
|
422 |
+
<amp-analytics id="googletagmanager-<?php echo ampforwp_get_setting('amp-gtm-id'); ?>" type="gtag" <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> data-credentials="include" config="https://www.googletagmanager.com/amp.json?id=<?php echo esc_attr(ampforwp_get_setting('amp-gtm-id')); ?>&gtm.url=SOURCE_URL"><script type="application/json"><?php echo sanitize_text_field($ampforwp_adv_gtm_fields) ?></script></amp-analytics>
|
|
|
423 |
<?php
|
424 |
}
|
425 |
}
|
@@ -9,6 +9,9 @@ function ampforwp_minify_html_output($content_buffer){
|
|
9 |
//Removed trbidi attribute #3687
|
10 |
$content_buffer = str_replace('trbidi="on"', '', $content_buffer);
|
11 |
$content_buffer = str_replace("trbidi='on'", '', $content_buffer);
|
|
|
|
|
|
|
12 |
global $redux_builder_amp;
|
13 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
14 |
return $content_buffer;
|
9 |
//Removed trbidi attribute #3687
|
10 |
$content_buffer = str_replace('trbidi="on"', '', $content_buffer);
|
11 |
$content_buffer = str_replace("trbidi='on'", '', $content_buffer);
|
12 |
+
if (defined('W3TC') && strpos($content_buffer, 'frameborder') !== false) {
|
13 |
+
add_filter("w3tc_minify_html_enable",'__return_false');
|
14 |
+
}
|
15 |
global $redux_builder_amp;
|
16 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
17 |
return $content_buffer;
|
@@ -1524,6 +1524,61 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
1524 |
'options' => ampforwp_get_cpt_generated_post_types(),
|
1525 |
);
|
1526 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1527 |
function ampforwp_get_user_roles(){
|
1528 |
global $wp_roles;
|
1529 |
$allroles = array();
|
@@ -1567,6 +1622,7 @@ Redux::setArgs( "redux_builder_amp", $args );
|
|
1567 |
'tooltip-subtitle' => esc_html__('Enable AMP Support on Archives for Custom Taxonomies.', 'accelerated-mobile-pages'),
|
1568 |
'multi' => true,
|
1569 |
'options' => ampforwp_get_generated_custom_taxonomies(),
|
|
|
1570 |
);
|
1571 |
}
|
1572 |
$design_types = ampforwp_get_setting('amp-design-selector');
|
@@ -2449,7 +2505,8 @@ Redux::setSection( $opt_name, array(
|
|
2449 |
'tooltip-subtitle' => esc_html__( 'Hide IA from all the posts of a selected category.', 'accelerated-mobile-pages' ),
|
2450 |
'multi' => true,
|
2451 |
'ajax' => true,
|
2452 |
-
'data-action' => 'ampforwp_categories',
|
|
|
2453 |
'data' => 'categories',
|
2454 |
'required' => array('fb-instant-article-switch', '=', 1)
|
2455 |
),
|
@@ -2514,7 +2571,8 @@ Redux::setSection( $opt_name, array(
|
|
2514 |
'title' => __('Select Categories to Hide AMP'),
|
2515 |
'tooltip-subtitle' => __( 'Hide AMP from all the posts of a selected category.', 'accelerated-mobile-pages' ),
|
2516 |
'multi' => true,
|
2517 |
-
'ajax' => true,
|
|
|
2518 |
'data-action' => 'ampforwp_categories',
|
2519 |
'data' => 'categories',
|
2520 |
),
|
@@ -2525,6 +2583,7 @@ Redux::setSection( $opt_name, array(
|
|
2525 |
'tooltip-subtitle' => __( 'Hide AMP from all the posts of a selected tags.', 'accelerated-mobile-pages' ),
|
2526 |
'multi' => true,
|
2527 |
'ajax' => true,
|
|
|
2528 |
'data-action' => 'ampforwp_tags',
|
2529 |
'data' => 'tags',
|
2530 |
|
@@ -4925,6 +4984,7 @@ Redux::setSection( $opt_name, array(
|
|
4925 |
array('amp-design-3-featured-content', '=', '1'),
|
4926 |
),
|
4927 |
'ajax' => true,
|
|
|
4928 |
'data-action' => 'ampforwp_categories',
|
4929 |
'data' => 'categories',
|
4930 |
),
|
@@ -4939,6 +4999,7 @@ Redux::setSection( $opt_name, array(
|
|
4939 |
array('amp-design-3-featured-content', '=' , '2'),
|
4940 |
),
|
4941 |
'ajax' => true,
|
|
|
4942 |
'data-action' => 'ampforwp_tags',
|
4943 |
'data' => 'tags',
|
4944 |
),
|
@@ -5127,11 +5188,14 @@ Redux::setSection( $opt_name, array(
|
|
5127 |
'default' => 'post',
|
5128 |
),
|
5129 |
array(
|
5130 |
-
|
5131 |
-
|
5132 |
-
|
5133 |
-
|
5134 |
-
|
|
|
|
|
|
|
5135 |
),
|
5136 |
array(
|
5137 |
'id' => 'ampforwp-homepage-loop-readmore-link',
|
@@ -7313,6 +7377,24 @@ else{
|
|
7313 |
array('enbl-tbl','=',1)
|
7314 |
)
|
7315 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7316 |
array(
|
7317 |
'id' => 'social-media-profiles-subsection',
|
7318 |
'type' => 'section',
|
@@ -7547,6 +7629,26 @@ else{
|
|
7547 |
array('enable-single-Tumblr-profile', '=' , '1')
|
7548 |
),
|
7549 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7550 |
)
|
7551 |
) );
|
7552 |
|
1524 |
'options' => ampforwp_get_cpt_generated_post_types(),
|
1525 |
);
|
1526 |
}
|
1527 |
+
function ampforwp_get_categories($id){
|
1528 |
+
$data = get_transient($id);
|
1529 |
+
|
1530 |
+
if($data){
|
1531 |
+
return $data;
|
1532 |
+
}
|
1533 |
+
|
1534 |
+
$result = array();
|
1535 |
+
$selected_categories = ampforwp_get_setting($id);
|
1536 |
+
|
1537 |
+
if(is_numeric($selected_categories)){
|
1538 |
+
$temp_array = array();
|
1539 |
+
$temp_array[0] = $selected_categories;
|
1540 |
+
$selected_categories = $temp_array;
|
1541 |
+
}
|
1542 |
+
if(isset($selected_categories) && $selected_categories) {
|
1543 |
+
$get_required_data = array_filter( $selected_categories );
|
1544 |
+
if ( count( $get_required_data ) != 0 ) {
|
1545 |
+
$categories = get_terms( 'category', array( 'include' => $get_required_data ) );
|
1546 |
+
foreach ( $categories as $category ) {
|
1547 |
+
$result[ esc_attr( $category->term_id ) ] = esc_html( $category->name );
|
1548 |
+
}
|
1549 |
+
set_transient( $id, $result);
|
1550 |
+
}
|
1551 |
+
}
|
1552 |
+
return $result;
|
1553 |
+
}
|
1554 |
+
function ampforwp_get_all_tags($id){
|
1555 |
+
|
1556 |
+
$data = get_transient($id);
|
1557 |
+
if ( $data) {
|
1558 |
+
return $data;
|
1559 |
+
}
|
1560 |
+
|
1561 |
+
$result = array();
|
1562 |
+
$selected_tags = ampforwp_get_setting($id);
|
1563 |
+
|
1564 |
+
if ( $selected_tags ){
|
1565 |
+
if(is_numeric($selected_tags)){
|
1566 |
+
$temp_array = array();
|
1567 |
+
$temp_array[0] = $selected_tags;
|
1568 |
+
$selected_tags = $temp_array;
|
1569 |
+
}
|
1570 |
+
$get_required_data = array_filter( $selected_tags );
|
1571 |
+
|
1572 |
+
if ( count( $get_required_data ) != 0 ) {
|
1573 |
+
$tags = get_terms( 'post_tag', array( 'include' => $get_required_data ) );
|
1574 |
+
foreach($tags as $tag ) {
|
1575 |
+
$result[esc_attr($tag->term_id)] = esc_html($tag->name);
|
1576 |
+
}
|
1577 |
+
set_transient( $id, $result);
|
1578 |
+
}
|
1579 |
+
}
|
1580 |
+
return $result;
|
1581 |
+
}
|
1582 |
function ampforwp_get_user_roles(){
|
1583 |
global $wp_roles;
|
1584 |
$allroles = array();
|
1622 |
'tooltip-subtitle' => esc_html__('Enable AMP Support on Archives for Custom Taxonomies.', 'accelerated-mobile-pages'),
|
1623 |
'multi' => true,
|
1624 |
'options' => ampforwp_get_generated_custom_taxonomies(),
|
1625 |
+
'required' => array('ampforwp-archive-support', '=' , '1')
|
1626 |
);
|
1627 |
}
|
1628 |
$design_types = ampforwp_get_setting('amp-design-selector');
|
2505 |
'tooltip-subtitle' => esc_html__( 'Hide IA from all the posts of a selected category.', 'accelerated-mobile-pages' ),
|
2506 |
'multi' => true,
|
2507 |
'ajax' => true,
|
2508 |
+
'data-action' => 'ampforwp_categories',
|
2509 |
+
'options' => ampforwp_get_categories('hide-amp-ia-categories'),
|
2510 |
'data' => 'categories',
|
2511 |
'required' => array('fb-instant-article-switch', '=', 1)
|
2512 |
),
|
2571 |
'title' => __('Select Categories to Hide AMP'),
|
2572 |
'tooltip-subtitle' => __( 'Hide AMP from all the posts of a selected category.', 'accelerated-mobile-pages' ),
|
2573 |
'multi' => true,
|
2574 |
+
'ajax' => true,
|
2575 |
+
'options' => ampforwp_get_categories('hide-amp-categories2'),
|
2576 |
'data-action' => 'ampforwp_categories',
|
2577 |
'data' => 'categories',
|
2578 |
),
|
2583 |
'tooltip-subtitle' => __( 'Hide AMP from all the posts of a selected tags.', 'accelerated-mobile-pages' ),
|
2584 |
'multi' => true,
|
2585 |
'ajax' => true,
|
2586 |
+
'options' => ampforwp_get_all_tags('hide-amp-tags-bulk-option2'),
|
2587 |
'data-action' => 'ampforwp_tags',
|
2588 |
'data' => 'tags',
|
2589 |
|
4984 |
array('amp-design-3-featured-content', '=', '1'),
|
4985 |
),
|
4986 |
'ajax' => true,
|
4987 |
+
'options' => ampforwp_get_categories('amp-design-3-category-selector'),
|
4988 |
'data-action' => 'ampforwp_categories',
|
4989 |
'data' => 'categories',
|
4990 |
),
|
4999 |
array('amp-design-3-featured-content', '=' , '2'),
|
5000 |
),
|
5001 |
'ajax' => true,
|
5002 |
+
'options' => ampforwp_get_all_tags('amp-design-3-tag-selector'),
|
5003 |
'data-action' => 'ampforwp_tags',
|
5004 |
'data' => 'tags',
|
5005 |
),
|
5188 |
'default' => 'post',
|
5189 |
),
|
5190 |
array(
|
5191 |
+
'id' => 'ampforwp-homepage-loop-cats',
|
5192 |
+
'type' => 'select',
|
5193 |
+
'title' => esc_html__( 'Exclude Categories', 'accelerated-mobile-pages' ),
|
5194 |
+
'multi' => true,
|
5195 |
+
'ajax' => true,
|
5196 |
+
'options' => ampforwp_get_categories('ampforwp-homepage-loop-cats'),
|
5197 |
+
'data-action' => 'ampforwp_categories',
|
5198 |
+
'data' => 'categories',
|
5199 |
),
|
5200 |
array(
|
5201 |
'id' => 'ampforwp-homepage-loop-readmore-link',
|
7377 |
array('enbl-tbl','=',1)
|
7378 |
)
|
7379 |
),
|
7380 |
+
array(
|
7381 |
+
'id' => 'enbl-telegram',
|
7382 |
+
'type' => 'switch',
|
7383 |
+
'title' => esc_html__('Telegram', 'accelerated-mobile-pages'),
|
7384 |
+
'default' => 0,
|
7385 |
+
'required' => array(
|
7386 |
+
array('menu-social','=',1)
|
7387 |
+
)
|
7388 |
+
),
|
7389 |
+
array(
|
7390 |
+
'id' => 'enbl-telegram-prfl-url',
|
7391 |
+
'type' => 'text',
|
7392 |
+
'title' => esc_html__('Telegram URL', 'accelerated-mobile-pages'),
|
7393 |
+
'default' => '#',
|
7394 |
+
'required' => array(
|
7395 |
+
array('enbl-telegram','=',1)
|
7396 |
+
)
|
7397 |
+
),
|
7398 |
array(
|
7399 |
'id' => 'social-media-profiles-subsection',
|
7400 |
'type' => 'section',
|
7629 |
array('enable-single-Tumblr-profile', '=' , '1')
|
7630 |
),
|
7631 |
),
|
7632 |
+
//#13
|
7633 |
+
array(
|
7634 |
+
'id' => 'enable-single-telegram-profile',
|
7635 |
+
'type' => 'switch',
|
7636 |
+
'title' => esc_html__('Telegram', 'accelerated-mobile-pages'),
|
7637 |
+
'default' => 0,
|
7638 |
+
'required' => array(
|
7639 |
+
array('amp-design-selector', '=' , '3')
|
7640 |
+
),
|
7641 |
+
),
|
7642 |
+
array(
|
7643 |
+
'id' => 'enable-single-telegram-profile-url',
|
7644 |
+
'type' => 'text',
|
7645 |
+
'title' => esc_html__('Telegram URL', 'accelerated-mobile-pages'),
|
7646 |
+
'default' => '#',
|
7647 |
+
'required' => array(
|
7648 |
+
array('amp-design-selector', '=' , '3'),
|
7649 |
+
array('enable-single-telegram-profile', '=' , '1')
|
7650 |
+
),
|
7651 |
+
),
|
7652 |
)
|
7653 |
) );
|
7654 |
|
@@ -278,8 +278,11 @@ class AMP_Post_Template {
|
|
278 |
}
|
279 |
|
280 |
private function build_post_content() {
|
281 |
-
if(
|
282 |
-
$
|
|
|
|
|
|
|
283 |
// #2001 Filter to remove the unused JS from the paginated post
|
284 |
$new_post_content = apply_filters( 'ampforwp_post_content_filter', $new_post_content );
|
285 |
|
278 |
}
|
279 |
|
280 |
private function build_post_content() {
|
281 |
+
if(false === ampforwp_is_home() && false === is_archive() ){
|
282 |
+
if(!empty($this->post->post_content))
|
283 |
+
$new_post_content = $this->post->post_content;
|
284 |
+
else
|
285 |
+
$new_post_content = '';
|
286 |
// #2001 Filter to remove the unused JS from the paginated post
|
287 |
$new_post_content = apply_filters( 'ampforwp_post_content_filter', $new_post_content );
|
288 |
|
@@ -119,9 +119,11 @@ class AMP_Img_Sanitizer extends AMP_Base_Sanitizer {
|
|
119 |
$width = isset( $this->args['content_max_width'] ) ? $this->args['content_max_width'] : self::FALLBACK_WIDTH;
|
120 |
$height = self::FALLBACK_HEIGHT;
|
121 |
if ( isset( $dimensions['width'] ) ) {
|
|
|
122 |
$width = $dimensions['width'];
|
123 |
}
|
124 |
if ( isset( $dimensions['height'] ) ) {
|
|
|
125 |
$height = $dimensions['height'];
|
126 |
}
|
127 |
|
119 |
$width = isset( $this->args['content_max_width'] ) ? $this->args['content_max_width'] : self::FALLBACK_WIDTH;
|
120 |
$height = self::FALLBACK_HEIGHT;
|
121 |
if ( isset( $dimensions['width'] ) ) {
|
122 |
+
$dimensions['width'] = (int)$dimensions['width'];
|
123 |
$width = $dimensions['width'];
|
124 |
}
|
125 |
if ( isset( $dimensions['height'] ) ) {
|
126 |
+
$dimensions['height'] = (int)$dimensions['height'];
|
127 |
$height = $dimensions['height'];
|
128 |
}
|
129 |
|
@@ -95,7 +95,7 @@ function amppbbase_admin_scripts( $hook_suffix ){
|
|
95 |
foreach ($posts_array as $key => $layoutData) {
|
96 |
$allPostLayout[] = array('post_title'=>$layoutData->post_title,
|
97 |
'post_id'=>$layoutData->ID,
|
98 |
-
'post_content'
|
99 |
);
|
100 |
}
|
101 |
}
|
95 |
foreach ($posts_array as $key => $layoutData) {
|
96 |
$allPostLayout[] = array('post_title'=>$layoutData->post_title,
|
97 |
'post_id'=>$layoutData->ID,
|
98 |
+
'post_content'=>wp_unslash($layoutData->post_content),
|
99 |
);
|
100 |
}
|
101 |
}
|
@@ -92,7 +92,7 @@ function amppb_save_layout_data(){
|
|
92 |
die;
|
93 |
}
|
94 |
$layoutname = sanitize_text_field($_POST['layoutname']);
|
95 |
-
$layoutdata =
|
96 |
$postarr = array(
|
97 |
'post_title' =>$layoutname,
|
98 |
'post_content' =>$layoutdata,
|
92 |
die;
|
93 |
}
|
94 |
$layoutname = sanitize_text_field($_POST['layoutname']);
|
95 |
+
$layoutdata = wp_slash($_POST['layoutdata']);
|
96 |
$postarr = array(
|
97 |
'post_title' =>$layoutname,
|
98 |
'post_content' =>$layoutdata,
|
@@ -22,14 +22,7 @@ function amp_pagebuilder_content(){
|
|
22 |
$postId = pll_get_post($front_page_id);
|
23 |
}
|
24 |
}
|
25 |
-
|
26 |
-
$ampforwp_pagebuilder_enable = get_post_meta($postId,'ampforwp_page_builder_enable', true);
|
27 |
-
|
28 |
-
if (ampforwp_empty_content(get_post($postId)->post_content) && $ampforwp_pagebuilder_enable=='yes') {
|
29 |
-
$arr['ID'] = get_post($postId)->ID;
|
30 |
-
$arr['post_content'] = ' ';
|
31 |
-
wp_update_post($arr);
|
32 |
-
}
|
33 |
add_filter( 'amp_pagebuilder_content', 'ampforwp_insert_pb_content' );
|
34 |
}
|
35 |
|
@@ -1090,9 +1083,6 @@ function sortByIndex($contentArray){
|
|
1090 |
return $contentArray;
|
1091 |
}
|
1092 |
}
|
1093 |
-
function ampforwp_empty_content($str) {
|
1094 |
-
return trim(str_replace(' ','',$str)) == '';
|
1095 |
-
}
|
1096 |
|
1097 |
function ampforwp_get_attachment_id( $url , $imagetype='full') {
|
1098 |
if(filter_var($url, FILTER_VALIDATE_URL) === FALSE){
|
22 |
$postId = pll_get_post($front_page_id);
|
23 |
}
|
24 |
}
|
25 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
add_filter( 'amp_pagebuilder_content', 'ampforwp_insert_pb_content' );
|
27 |
}
|
28 |
|
1083 |
return $contentArray;
|
1084 |
}
|
1085 |
}
|
|
|
|
|
|
|
1086 |
|
1087 |
function ampforwp_get_attachment_id( $url , $imagetype='full') {
|
1088 |
if(filter_var($url, FILTER_VALIDATE_URL) === FALSE){
|
@@ -206,6 +206,24 @@ if ( is_admin() ) {
|
|
206 |
),
|
207 |
'content_type'=>'css',
|
208 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
array(
|
210 |
'type' =>'select',
|
211 |
'name' =>"post_type_selection",
|
@@ -535,8 +553,9 @@ if ( is_admin() ) {
|
|
535 |
|
536 |
$first_page = add_query_arg( array( $pagination_text => 1 ), $queryUrl );
|
537 |
$prev_page = add_query_arg( array( $pagination_text => $paged - 1 ), $queryUrl );
|
|
|
538 |
|
539 |
-
$pagination_links .= "<a class='pagi-first' href = ".esc_url($first_page)."> ".esc_html__(
|
540 |
//$pagination_links .= "<a href = ".$prev_page."> Prev </a>";
|
541 |
}
|
542 |
|
@@ -561,8 +580,9 @@ if ( is_admin() ) {
|
|
561 |
//$pagination_links .= "<a href =".$next_page." '> Next </a>";
|
562 |
}
|
563 |
if( $total_num_pages != $paged ){
|
|
|
564 |
$next_page = add_query_arg( array( $pagination_text => $total_num_pages ), $queryUrl );
|
565 |
-
$pagination_links .= "<a class='pagi-last' href =".esc_url($next_page)." >".esc_html__(
|
566 |
}
|
567 |
$pagination_links .= '</div>';
|
568 |
|
206 |
),
|
207 |
'content_type'=>'css',
|
208 |
),
|
209 |
+
array(
|
210 |
+
'type' =>'text',
|
211 |
+
'name' =>"ampforwp_pb_cat_pagination_next",
|
212 |
+
'label' =>'Pagination For Next Label',
|
213 |
+
'tab' =>'advanced',
|
214 |
+
'default' =>'First',
|
215 |
+
'content_type'=>'html',
|
216 |
+
'required' => array('pagination'=>'1'),
|
217 |
+
),
|
218 |
+
array(
|
219 |
+
'type' =>'text',
|
220 |
+
'name' =>"ampforwp_pb_cat_pagination_last",
|
221 |
+
'label' =>'Pagination For Last Label',
|
222 |
+
'tab' =>'advanced',
|
223 |
+
'default' =>'Last',
|
224 |
+
'content_type'=>'html',
|
225 |
+
'required' => array('pagination'=>'1'),
|
226 |
+
),
|
227 |
array(
|
228 |
'type' =>'select',
|
229 |
'name' =>"post_type_selection",
|
553 |
|
554 |
$first_page = add_query_arg( array( $pagination_text => 1 ), $queryUrl );
|
555 |
$prev_page = add_query_arg( array( $pagination_text => $paged - 1 ), $queryUrl );
|
556 |
+
$nextLabel = (isset($fieldValues['ampforwp_pb_cat_pagination_next']) && !empty($fieldValues['ampforwp_pb_cat_pagination_next'])) ? $fieldValues['ampforwp_pb_cat_pagination_next'] : "Next";
|
557 |
|
558 |
+
$pagination_links .= "<a class='pagi-first' href = ".esc_url($first_page)."> ".esc_html__($nextLabel,'accelerated-mobile-pages')."</a>";
|
559 |
//$pagination_links .= "<a href = ".$prev_page."> Prev </a>";
|
560 |
}
|
561 |
|
580 |
//$pagination_links .= "<a href =".$next_page." '> Next </a>";
|
581 |
}
|
582 |
if( $total_num_pages != $paged ){
|
583 |
+
$lastLabel = (isset($fieldValues['ampforwp_pb_cat_pagination_last']) && !empty($fieldValues['ampforwp_pb_cat_pagination_last'])) ? $fieldValues['ampforwp_pb_cat_pagination_last'] : "Last";
|
584 |
$next_page = add_query_arg( array( $pagination_text => $total_num_pages ), $queryUrl );
|
585 |
+
$pagination_links .= "<a class='pagi-last' href =".esc_url($next_page)." >".esc_html__($lastLabel, 'accelerated-mobile-pages')."</a>";
|
586 |
}
|
587 |
$pagination_links .= '</div>';
|
588 |
|
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,6 +191,20 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
= 1.0.0 (11th December 2019) =
|
195 |
* Improvement: Need to clear amp treeshaking css for reset section button. #3916
|
196 |
* Improvement: Need to add easy table of contents in extension list #3922
|
@@ -220,23 +234,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
220 |
* Fixed: Sidebar Widgets Default CSS should load on Woo commerce Sidebar #3912
|
221 |
* Fixed: Images get streched in new version of the AMP FOR WP Plugin #3914
|
222 |
|
223 |
-
= 0.9.98.21 (3th December 2019) =
|
224 |
-
* Improvement: Fonts support in all three designs one, two and three along with the swift Theme #1914
|
225 |
-
* Improvement: Need to create Testimonial slider in AMP Page Builder #2960
|
226 |
-
* Improvement: Need to create an optional option for the side menu when people click on the text the links should be dropped. links sub links #3428
|
227 |
-
* Improvement: Need to make compatibility with this plugin Stop Generating Image Sizes #3851
|
228 |
-
* Improvement: Improve Matemo analytics integration #3757
|
229 |
-
* Fixed: Breadcrumb breaks when '/' is present in category name #3769
|
230 |
-
* Fixed: Back to top button CSS loading twice in Design 1,2,3. #3835
|
231 |
-
* Fixed: Removing trbidi attribute #3687
|
232 |
-
* Fixed: Upgrade to AdsforWP button not working properly. #3681
|
233 |
-
* Fixed: Tooltip alignment is missing in Advertisement #3625
|
234 |
-
* Fixed: Media queries are removing automatically in media queries merging process #3797
|
235 |
-
* Fixed: Excerpt on homepage is not working properly. #3866
|
236 |
-
* Fixed: Author links are redirecting to AMP even when the Archives is turned off. #3875
|
237 |
-
* Fixed: Issue related to image height and width #3857
|
238 |
-
* Fixed: Gutenberg Gallery Images are not displayed correctly when any option is selected in WordPress Content Gallery. #3868
|
239 |
-
* Fixed: Google Tag manager not firing properly #3826
|
240 |
-
* Fixed: After Update AMP option panel design is changing #3877
|
241 |
-
|
242 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 1.0.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 1.0.1 (14th December 2019) =
|
195 |
+
* Fixed: Telegram as social profile #3754
|
196 |
+
* Fixed: Give default styling for <small> tag. #3879
|
197 |
+
* Fixed: When pagination is enabled in Category Module,translation option should be given in Advanced. #3847
|
198 |
+
* Fixed: An issue with Code module in AMP page puilder. #3833
|
199 |
+
* Fixed: Getting an error while validating page when using Disqus comments #3871
|
200 |
+
* Fixed: Content is updated programatically on /amp/ page view, bad revision is created #3822
|
201 |
+
* Fixed: Custom Post types and taxonomies option should be only visible when Archives is enabled #3903
|
202 |
+
* Fixed: After reloading 'Select Categories to Hide AMP', it shows empty #3898
|
203 |
+
* Fixed: In exclude Categories option the "No items of this type were found." message is displaying #3900
|
204 |
+
* Fixed: Cannot use a scalar value as an array #3823
|
205 |
+
* Fixed: Debug warnings. #3932
|
206 |
+
* Fixed: Google Tag manager not firing properly #3826
|
207 |
+
|
208 |
= 1.0.0 (11th December 2019) =
|
209 |
* Improvement: Need to clear amp treeshaking css for reset section button. #3916
|
210 |
* Improvement: Need to add easy table of contents in extension list #3922
|
234 |
* Fixed: Sidebar Widgets Default CSS should load on Woo commerce Sidebar #3912
|
235 |
* Fixed: Images get streched in new version of the AMP FOR WP Plugin #3914
|
236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
@@ -18,7 +18,7 @@ if ( is_customize_preview() ) {
|
|
18 |
// add_filter( 'ampforwp_design_elements', 'ampforwp_add_element_simple_comment_button' );
|
19 |
}
|
20 |
|
21 |
-
$data = get_option( 'ampforwp_design'
|
22 |
// Adding default Value
|
23 |
if ($data['elements'] == '') {
|
24 |
$data['elements'] = "bread_crumbs:1,meta_info:1,title:1,featured_image:1,content:1,meta_taxonomy:1,social_icons:1,comments:1,related_posts:1";
|
18 |
// add_filter( 'ampforwp_design_elements', 'ampforwp_add_element_simple_comment_button' );
|
19 |
}
|
20 |
|
21 |
+
$data = get_option( 'ampforwp_design',array());
|
22 |
// Adding default Value
|
23 |
if ($data['elements'] == '') {
|
24 |
$data['elements'] = "bread_crumbs:1,meta_info:1,title:1,featured_image:1,content:1,meta_taxonomy:1,social_icons:1,comments:1,related_posts:1";
|
@@ -171,6 +171,7 @@ echo sanitize_text_field($fontFamily); // secondary font family ends here ?>
|
|
171 |
<?php if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>
|
172 |
#pagination .next,#pagination .prev{display:inline-block}.ampforwp-custom-index .amp-wp-content{margin-bottom:30px}.pagination-holder{margin:1.5em 16px}#pagination .next{float:right}.amp-wp-home .amp-wp-content p{display:inline}.home-post-image{float:right;margin:0 0 10px 20px}.amp-wp-article-content amp-img{max-width:100%}.amp-wp-meta.amp-wp-tax-category,.amp-wp-meta.amp-wp-tax-tag{margin:0}.amp-wp-meta.amp-wp-tax-tag{display:initial}
|
173 |
<?php } // AMP Woocommerce CSS Ends ?>
|
|
|
174 |
.ampforwp-social-icons{margin:1.5em 16px}.amp-social-icon{ width: 50px; height: 28px; display: inline-block; background: #5cbe4a;position: relative; top: -8px; padding-top: 0px; margin-bottom:5px; }
|
175 |
.amp-social-icon amp-img{ top: 4px; }
|
176 |
amp-social-share[type="facebookmessenger"] {
|
171 |
<?php if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>
|
172 |
#pagination .next,#pagination .prev{display:inline-block}.ampforwp-custom-index .amp-wp-content{margin-bottom:30px}.pagination-holder{margin:1.5em 16px}#pagination .next{float:right}.amp-wp-home .amp-wp-content p{display:inline}.home-post-image{float:right;margin:0 0 10px 20px}.amp-wp-article-content amp-img{max-width:100%}.amp-wp-meta.amp-wp-tax-category,.amp-wp-meta.amp-wp-tax-tag{margin:0}.amp-wp-meta.amp-wp-tax-tag{display:initial}
|
173 |
<?php } // AMP Woocommerce CSS Ends ?>
|
174 |
+
.the_content small{font-size:11px;line-height:1.2;color:#111;margin-bottom: 5px;display: inline-block;}
|
175 |
.ampforwp-social-icons{margin:1.5em 16px}.amp-social-icon{ width: 50px; height: 28px; display: inline-block; background: #5cbe4a;position: relative; top: -8px; padding-top: 0px; margin-bottom:5px; }
|
176 |
.amp-social-icon amp-img{ top: 4px; }
|
177 |
amp-social-share[type="facebookmessenger"] {
|
@@ -358,6 +358,7 @@ figcaption{ font-size: 11px; margin-bottom: 11px; background: #eee; padding: 6px
|
|
358 |
.single-post main{ padding:12px 15% 10px 15% }
|
359 |
<?php } ?>
|
360 |
.the_content p{ margin-top: 5px; color: #333; font-size: 15px; line-height: 26px; margin-bottom: 15px;word-break: break-word; }
|
|
|
361 |
.amp-wp-tax-tag{ font-size: 13px; border: 0; display: inline-block; margin: 0.5em 0px 0.7em 0px; width: 100%; }
|
362 |
main .amp-wp-content.featured-image-content{ padding: 0px; border: 0; margin-bottom: 0; box-shadow: none }
|
363 |
.amp-wp-article-featured-image amp-img {margin: 0 auto;}
|
358 |
.single-post main{ padding:12px 15% 10px 15% }
|
359 |
<?php } ?>
|
360 |
.the_content p{ margin-top: 5px; color: #333; font-size: 15px; line-height: 26px; margin-bottom: 15px;word-break: break-word; }
|
361 |
+
.the_content small{font-size:11px;line-height:1.2;color:#111;margin-bottom: 5px;display: inline-block;}
|
362 |
.amp-wp-tax-tag{ font-size: 13px; border: 0; display: inline-block; margin: 0.5em 0px 0.7em 0px; width: 100%; }
|
363 |
main .amp-wp-content.featured-image-content{ padding: 0px; border: 0; margin-bottom: 0; box-shadow: none }
|
364 |
.amp-wp-article-featured-image amp-img {margin: 0 auto;}
|
@@ -82,7 +82,9 @@ global $redux_builder_amp;
|
|
82 |
<?php if ( ampforwp_get_setting('enable-single-Tumblr-profile') && '' !== ampforwp_get_setting('enable-single-Tumblr-profile-url') ) { ?>
|
83 |
<li class="icon-tumblr"><a title="tumblr profile" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url($redux_builder_amp['enable-single-Tumblr-profile-url']); ?>" target ="_blank"></a></li>
|
84 |
<?php } ?>
|
85 |
-
|
|
|
|
|
86 |
</ul>
|
87 |
</div>
|
88 |
<?php }
|
82 |
<?php if ( ampforwp_get_setting('enable-single-Tumblr-profile') && '' !== ampforwp_get_setting('enable-single-Tumblr-profile-url') ) { ?>
|
83 |
<li class="icon-tumblr"><a title="tumblr profile" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url($redux_builder_amp['enable-single-Tumblr-profile-url']); ?>" target ="_blank"></a></li>
|
84 |
<?php } ?>
|
85 |
+
<?php if ( ampforwp_get_setting('enable-single-telegram-profile') && '' !== ampforwp_get_setting('enable-single-telegram-profile-url') ) { ?>
|
86 |
+
<li class="icon-telegram"><a title="telegram profile" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url(ampforwp_get_setting('enable-single-telegram-profile-url')); ?>" target ="_blank"><amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIi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KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" height="16" width="16"></amp-img> </a></li>
|
87 |
+
<?php }?>
|
88 |
</ul>
|
89 |
</div>
|
90 |
<?php }
|
@@ -83,6 +83,10 @@ if(isset($redux_builder_amp['ampforwp-amp-menu']) && $redux_builder_amp['ampforw
|
|
83 |
<?php if( ampforwp_get_setting('enable-single-Tumblr-profile') && ampforwp_get_setting('enable-single-Tumblr-profile-url') !== '') { ?>
|
84 |
<li class="icon-tumblr"><a title="tumblr profile" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url($redux_builder_amp['enable-single-Tumblr-profile-url']); ?>" target ="_blank"></a></li>
|
85 |
<?php } ?>
|
|
|
|
|
|
|
|
|
86 |
</ul>
|
87 |
</div>
|
88 |
</div>
|
83 |
<?php if( ampforwp_get_setting('enable-single-Tumblr-profile') && ampforwp_get_setting('enable-single-Tumblr-profile-url') !== '') { ?>
|
84 |
<li class="icon-tumblr"><a title="tumblr profile" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url($redux_builder_amp['enable-single-Tumblr-profile-url']); ?>" target ="_blank"></a></li>
|
85 |
<?php } ?>
|
86 |
+
|
87 |
+
<?php if( ampforwp_get_setting('enable-single-telegram-profile') && ampforwp_get_setting('enable-single-telegram-profile-url') !== '') { ?>
|
88 |
+
<li class="icon-telegram"></i><a title="telegram profile" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url(ampforwp_get_setting('enable-single-telegram-profile-url')); ?>" target ="_blank"><amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbm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M3MC40NDMsOTYuMDgsMzU4Ljg0NCwxMDAuNnogTTMyMC42MzYsMTU1LjgwNkwxNzkuMDgsMjgwLjk4NGMtMS40MTEsMS4yNDgtMi4zMDksMi45NzUtMi41MTksNC44NDcgICBsLTUuNDUsNDguNDQ4Yy0wLjE3OCwxLjU4LTIuMzg5LDEuNzg5LTIuODYxLDAuMjcxbC0yMi40MjMtNzIuMjUzYy0xLjAyNy0zLjMwOCwwLjMxMi02Ljg5MiwzLjI1NS04LjcxN2wxNjcuMTYzLTEwMy42NzYgICBDMzIwLjA4OSwxNDcuNTE4LDMyNC4wMjUsMTUyLjgxLDMyMC42MzYsMTU1LjgwNnoiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" height="16" width="16"></amp-img></a></li>
|
89 |
+
<?php } ?>
|
90 |
</ul>
|
91 |
</div>
|
92 |
</div>
|
@@ -387,6 +387,7 @@ figcaption{ font-size: 11px; line-height: 1.6; margin-bottom: 11px; background:
|
|
387 |
.amp-wp-meta, .amp-wp-meta a{ font-size: 13px; color: #575757; margin: 20px 0px 20px 0px; padding: 0; }
|
388 |
.amp-ad-wrapper{ text-align: center }
|
389 |
.the_content p{ margin-top: 0px; margin-bottom: 30px; word-break: break-word; }
|
|
|
390 |
.amp-wp-tax-tag{ }
|
391 |
main .amp-wp-content.featured-image-content{ padding: 0px; border: 0; margin-bottom: 0; box-shadow: none }
|
392 |
.amp-wp-content .amp-wp-article-featured-image amp-img {margin: 0 auto;}
|
@@ -676,6 +677,19 @@ if( ampforwp_get_setting('ampforwp-advertisement-sticky-type') == 3) {?>
|
|
676 |
-webkit-font-smoothing: antialiased;
|
677 |
-moz-osx-font-smoothing: grayscale;
|
678 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
679 |
.icon-twitter a:before{ content: "\f099";background:#1da1f2 }
|
680 |
.icon-facebook a:before{ content: "\f09a";background:#3b5998 }
|
681 |
.icon-facebook-f a:before{ content: "\f09a";background:#3b5998 }
|
387 |
.amp-wp-meta, .amp-wp-meta a{ font-size: 13px; color: #575757; margin: 20px 0px 20px 0px; padding: 0; }
|
388 |
.amp-ad-wrapper{ text-align: center }
|
389 |
.the_content p{ margin-top: 0px; margin-bottom: 30px; word-break: break-word; }
|
390 |
+
.the_content small{font-size:11px;line-height:1.2;color:#111;margin-bottom: 5px;display: inline-block;}
|
391 |
.amp-wp-tax-tag{ }
|
392 |
main .amp-wp-content.featured-image-content{ padding: 0px; border: 0; margin-bottom: 0; box-shadow: none }
|
393 |
.amp-wp-content .amp-wp-article-featured-image amp-img {margin: 0 auto;}
|
677 |
-webkit-font-smoothing: antialiased;
|
678 |
-moz-osx-font-smoothing: grayscale;
|
679 |
}
|
680 |
+
|
681 |
+
.icon-telegram{
|
682 |
+
position: relative;
|
683 |
+
background: #61a8de;
|
684 |
+
height: 38px;
|
685 |
+
top: 0px;
|
686 |
+
width: 38px;
|
687 |
+
border-radius: 50%;
|
688 |
+
}
|
689 |
+
.icon-telegram amp-img{
|
690 |
+
margin-top:10px;
|
691 |
+
}
|
692 |
+
.icon-telegram a:before{background:#1da1f2 }
|
693 |
.icon-twitter a:before{ content: "\f099";background:#1da1f2 }
|
694 |
.icon-facebook a:before{ content: "\f09a";background:#3b5998 }
|
695 |
.icon-facebook-f a:before{ content: "\f09a";background:#3b5998 }
|
@@ -92,6 +92,11 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
|
|
92 |
<a title="tumblr" class="s_tbl" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url($redux_builder_amp['enbl-tbl-prfl-url']); ?>"></a>
|
93 |
</li>
|
94 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
95 |
</ul>
|
96 |
</div>
|
97 |
<?php } ?>
|
@@ -224,6 +229,11 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
|
|
224 |
<a title="tumblr" class="s_tbl" target="_blank" href="<?php echo esc_url($redux_builder_amp['enbl-tbl-prfl-url']); ?>"></a>
|
225 |
</li>
|
226 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
227 |
</ul>
|
228 |
</div>
|
229 |
<?php } ?>
|
@@ -343,6 +353,11 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
|
|
343 |
<a title="tumblr" class="s_tbl" target="_blank" href="<?php echo esc_url($redux_builder_amp['enbl-tbl-prfl-url']); ?>"></a>
|
344 |
</li>
|
345 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
346 |
</ul>
|
347 |
</div>
|
348 |
<?php } ?>
|
92 |
<a title="tumblr" class="s_tbl" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url($redux_builder_amp['enbl-tbl-prfl-url']); ?>"></a>
|
93 |
</li>
|
94 |
<?php } ?>
|
95 |
+
<?php if(ampforwp_get_setting('enbl-telegram')){?>
|
96 |
+
<li>
|
97 |
+
<a title="telegram" class="s_telegram" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url(ampforwp_get_setting('enbl-telegram-prfl-url')); ?>"><amp-img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZlcnNpb249IjEuMSIgeG1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LDUuNTM4bDAuMzczLC0zLjUwN2MwLDAgNi40ODcsLTUuODUxIDEwLjE4NSwtOS4xODZjMC4xMDgsLTAuMDk4IDAuMTIzLC0wLjI2MiAwLjAzMywtMC4zNzdjLTAuMDg5LC0wLjExNSAtMC4yNTMsLTAuMTQyIC0wLjM3NiwtMC4wNjRjLTQuMjg2LDIuNzM3IC0xMS44OTQsNy41OTYgLTExLjg5NCw3LjU5NloiLz48L3N2Zz4="height="16" width="16"></amp-img></a>
|
98 |
+
</li>
|
99 |
+
<?php } ?>
|
100 |
</ul>
|
101 |
</div>
|
102 |
<?php } ?>
|
229 |
<a title="tumblr" class="s_tbl" target="_blank" href="<?php echo esc_url($redux_builder_amp['enbl-tbl-prfl-url']); ?>"></a>
|
230 |
</li>
|
231 |
<?php } ?>
|
232 |
+
<?php if(ampforwp_get_setting('enbl-telegram')){?>
|
233 |
+
<li>
|
234 |
+
<a title="telegram" class="s_telegram" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url(ampforwp_get_setting('enbl-telegram-prfl-url')); ?>"><amp-img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM6c2VyaWY9Imh0dHA6Ly93d3cuc2VyaWYuY29tLyIgc3R5bGU9ImZpbGwtcnVsZ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MS44OTQsNy41OTYgLTExLjg5NCw3LjU5NloiLz48L3N2Zz4=" height="16" width="16"></amp-img></a>
|
235 |
+
</li>
|
236 |
+
<?php } ?>
|
237 |
</ul>
|
238 |
</div>
|
239 |
<?php } ?>
|
353 |
<a title="tumblr" class="s_tbl" target="_blank" href="<?php echo esc_url($redux_builder_amp['enbl-tbl-prfl-url']); ?>"></a>
|
354 |
</li>
|
355 |
<?php } ?>
|
356 |
+
<?php if(ampforwp_get_setting('enbl-telegram')){?>
|
357 |
+
<li>
|
358 |
+
<a title="telegram" class="s_telegram" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url(ampforwp_get_setting('enbl-telegram-prfl-url')); ?>"><amp-img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM6c2VyaWY9Imh0dHA6Ly93d3cuc2VyaWYuY29tLyIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxLjQxNDIxOyI+PHBhdGggaWQ9InRlbGVncmFtLTEiIGQ9Ik0xOC4zODQsMjIuNzc5YzAuMzIyLDAuMjI4IDAuNzM3LDAuMjg1IDEuMTA3LDAuMTQ1YzAuMzcsLTAuMTQxIDAuNjQyLC0wLjQ1NyAwLjcyNCwtMC44NGMwLjg2OSwtNC4wODQgMi45NzcsLTE0LjQyMSAzLjc2OCwtMTguMTM2YzAuMDYsLTAuMjggLTAuMDQsLTAuNTcxIC0wLjI2LC0wLjc1OGMtMC4yMiwtMC4xODcgLTAuNTI1LC0wLjI0MSAtMC43OTcsLTAuMTRjLTQuMTkzLDEuNTUyIC0xNy4xMDYsNi4zOTcgLTIyLjM4NCw4LjM1Yy0wLjMzNSwwLjEyNCAtMC41NTMsMC40NDYgLTAuNTQyLDAuNzk5YzAuMDEyLDAuMzU0IDAuMjUsMC42NjEgMC41OTMsMC43NjRjMi4zNjcsMC43MDggNS40NzQsMS42OTMgNS40NzQsMS42OTNjMCwwIDEuNDUyLDQuMzg1IDIuMjA5LDYuNjE1YzAuMDk1LDAuMjggMC4zMTQsMC41IDAuNjAzLDAuNTc2YzAuMjg4LDAuMDc1IDAuNTk2LC0wLjAwNCAwLjgxMSwtMC4yMDdjMS4yMTYsLTEuMTQ4IDMuMDk2LC0yLjkyMyAzLjA5NiwtMi45MjNjMCwwIDMuNTcyLDIuNjE5IDUuNTk4LDQuMDYyWm0tMTEuMDEsLTguNjc3bDEuNjc5LDUuNTM4bDAuMzczLC0zLjUwN2MwLDAgNi40ODcsLTUuODUxIDEwLjE4NSwtOS4xODZjMC4xMDgsLTAuMDk4IDAuMTIzLC0wLjI2MiAwLjAzMywtMC4zNzdjLTAuMDg5LC0wLjExNSAtMC4yNTMsLTAuMTQyIC0wLjM3NiwtMC4wNjRjLTQuMjg2LDIuNzM3IC0xMS44OTQsNy41OTYgLTExLjg5NCw3LjU5NloiLz48L3N2Zz4=" width="16" height="16"></amp-img></a>
|
359 |
+
</li>
|
360 |
+
<?php } ?>
|
361 |
</ul>
|
362 |
</div>
|
363 |
<?php } ?>
|
@@ -508,6 +508,7 @@ if( is_page() || ampforwp_is_front_page() || ampforwp_polylang_front_page() ){?>
|
|
508 |
<?php }
|
509 |
else{ ?> .shr-txt {text-transform: uppercase;font-size: 12px;color: #666;font-weight: 400;margin-bottom: 12px;display: block;} <?php } ?>
|
510 |
.cntn-wrp{font-size: 18px;color: #000;line-height: 1.7;}
|
|
|
511 |
.cntn-wrp p, .cntn-wrp ul, .cntn-wrp ol{margin:0px 0px 30px 0px;word-break: break-word;}
|
512 |
<?php } else{ ?>
|
513 |
.cntn-wrp{font-size: 18px;color: #000;line-height: 1.7;}
|
@@ -688,6 +689,7 @@ if($redux_builder_amp['swift-social-position'] == 'below-content'){?>
|
|
688 |
.cntn-wrp h6 {font-size: 15px;}
|
689 |
<?php } // H6 Ends
|
690 |
// swift Content Heading Sizes Ends?>
|
|
|
691 |
.cntn-wrp p, .cntn-wrp ul, .cntn-wrp ol{margin:0px 0px 30px 0px;word-break: break-word;}
|
692 |
.cntn-wrp .wp-block-image,.wp-block-embed{margin:15px 0px;}
|
693 |
.artl-cnt ul li, .artl-cnt ol li{list-style-type: none;position: relative;
|
@@ -2281,4 +2283,9 @@ if(ampforwp_get_setting('ampforwp-gallery-design-type')==3){?>
|
|
2281 |
.amp-carousel-containerd3 figcaption {
|
2282 |
max-width: 150px;
|
2283 |
}
|
2284 |
-
<?php }
|
|
|
|
|
|
|
|
|
|
508 |
<?php }
|
509 |
else{ ?> .shr-txt {text-transform: uppercase;font-size: 12px;color: #666;font-weight: 400;margin-bottom: 12px;display: block;} <?php } ?>
|
510 |
.cntn-wrp{font-size: 18px;color: #000;line-height: 1.7;}
|
511 |
+
.cntn-wrp small {font-size: 11px;line-height: 1.2;color: #111;}
|
512 |
.cntn-wrp p, .cntn-wrp ul, .cntn-wrp ol{margin:0px 0px 30px 0px;word-break: break-word;}
|
513 |
<?php } else{ ?>
|
514 |
.cntn-wrp{font-size: 18px;color: #000;line-height: 1.7;}
|
689 |
.cntn-wrp h6 {font-size: 15px;}
|
690 |
<?php } // H6 Ends
|
691 |
// swift Content Heading Sizes Ends?>
|
692 |
+
.cntn-wrp small{font-size:11px;line-height:1.2;color:#111;}
|
693 |
.cntn-wrp p, .cntn-wrp ul, .cntn-wrp ol{margin:0px 0px 30px 0px;word-break: break-word;}
|
694 |
.cntn-wrp .wp-block-image,.wp-block-embed{margin:15px 0px;}
|
695 |
.artl-cnt ul li, .artl-cnt ol li{list-style-type: none;position: relative;
|
2283 |
.amp-carousel-containerd3 figcaption {
|
2284 |
max-width: 150px;
|
2285 |
}
|
2286 |
+
<?php } ?>
|
2287 |
+
.m-s-i li a.s_telegram{
|
2288 |
+
background: #d0d0d0;
|
2289 |
+
padding: 0px 2px;
|
2290 |
+
border-radius: 2px;
|
2291 |
+
}
|
@@ -3283,7 +3283,7 @@ function ampforwp_add_meta_viewport() {
|
|
3283 |
// 63. Frontpage Comments #682
|
3284 |
function ampforwp_frontpage_comments() {
|
3285 |
global $redux_builder_amp;
|
3286 |
-
$data = get_option( 'ampforwp_design'
|
3287 |
$enable_comments = false;
|
3288 |
$post_id = "";
|
3289 |
|
3283 |
// 63. Frontpage Comments #682
|
3284 |
function ampforwp_frontpage_comments() {
|
3285 |
global $redux_builder_amp;
|
3286 |
+
$data = get_option( 'ampforwp_design',array());
|
3287 |
$enable_comments = false;
|
3288 |
$post_id = "";
|
3289 |
|