AMP for WP – Accelerated Mobile Pages - Version 0.9.97.64

Version Description

(15th July 2019) = * Improvements: Performance improvement -- Meta Value Queries #3392 * Improvements: h1 tag on the archive, search and author pages #3323 * Improvements: Flipboard as a social sharing option in AMP added #3348 * Improvements: Comscore new variable for AMP in Analytics #3378 * Improvements: Option for Leverage Browser Caching in the performance settings #3298 * Fixed: Auto Add AMP in Menu URL option is not working for the product category #3319 * Fixed: Horizontal scrolling issue on the homepage #3217 * Fixed: Vuukle comments Toggle UX bug #3399 * Fixed: Basic amp components to work in the content #2713 * Fixed: Unnecessary CSS is loading in single amp product pages and also on cart pages. #3038 * Fixed: Improper amphtml is getting created in the ngg_tag Url when NextGEN Gallery is used #3381 * Fixed: Tutorial link for Disqus comments section #3362 * Fixed: Empty Display property in menu.php #3387 * Fixed: Images and text does not Zoom in & out with mobile devices in amp version #3233 * Fixed: Custom CSS code got optimized after 0.9.97.61 update #3410 * Fixed: Breadcrumbs icons are not connected to icons font family #3418 * Fixed: In swift Single Design 2 sidebar CSS are not loading in Search page #3430 * Fixed: Notice to be removed after dismissing it after installing AMP #3053 * Fixed: Plugins manager showing twice in options panel #3328 * Fixed: Amp scripts not appending in the head in Search pages when added in sidebar #3404 * Fixed: Conflict issue with Themify Builder #3376 * Fixed: Remove the Gap between Header and AMP Pagebuilder module #2534 * Fixed: Image is not loading when the source of it starting from ../wp-content #3403 * Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434

Full changelog available at changelog.txt

Download this release

Release Info

Developer mohammed_kaludi
Plugin Icon 128x128 AMP for WP – Accelerated Mobile Pages
Version 0.9.97.64
Comparing to
See all releases

Code changes from version 0.9.97.63 to 0.9.97.64

Files changed (39) hide show
  1. README.md +28 -1
  2. accelerated-moblie-pages.php +39 -8
  3. changelog.txt +26 -0
  4. classes/class-ampforwp-walker-nav-menu.php +1 -4
  5. components/loop/loop.php +18 -2
  6. components/menu/menu.php +1 -1
  7. images/flipboard.png +0 -0
  8. images/messenger.png +0 -0
  9. includes/admin-script.js +70 -11
  10. includes/features/analytics/analytics-functions.php +3 -0
  11. includes/features/analytics/analytics-options.php +1 -1
  12. includes/features/functions.php +1 -1
  13. includes/features/performance/performance-functions.php +91 -0
  14. includes/features/performance/performance-options.php +7 -0
  15. includes/options/admin-config.php +22 -5
  16. includes/options/redux-core/framework.php +1 -1
  17. includes/vendor/amp/includes/amp-helper-functions.php +5 -2
  18. includes/vendor/amp/includes/sanitizers/class-amp-img-sanitizer.php +8 -0
  19. includes/vendor/amp/includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php +3 -2
  20. includes/vendor/amp/includes/utils/class-amp-wp-utils.php +1 -1
  21. includes/vendor/vendor-changelog.txt +3 -1
  22. readme.txt +26 -28
  23. templates/design-manager/design-1/archive.php +12 -3
  24. templates/design-manager/design-1/elements/social-icons.php +7 -0
  25. templates/design-manager/design-1/search.php +12 -4
  26. templates/design-manager/design-1/style.php +32 -7
  27. templates/design-manager/design-2/archive.php +12 -2
  28. templates/design-manager/design-2/elements/social-icons.php +7 -0
  29. templates/design-manager/design-2/search.php +12 -2
  30. templates/design-manager/design-2/style.php +14 -1
  31. templates/design-manager/design-3/archive.php +13 -2
  32. templates/design-manager/design-3/elements/social-icons.php +7 -0
  33. templates/design-manager/design-3/search.php +14 -3
  34. templates/design-manager/design-3/style.php +17 -2
  35. templates/design-manager/swift/footer.php +7 -0
  36. templates/design-manager/swift/functions.php +7 -0
  37. templates/design-manager/swift/style.php +37 -14
  38. templates/features.php +23 -1
  39. templates/template-mode/admin-bar.css +1051 -0
README.md CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.2.2
7
- Stable tag: 0.9.97.63
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -188,6 +188,33 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
188
 
189
  == Changelog ==
190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  = 0.9.97.63 (9th July 2019) =
192
  * Improvements: Custom Taxonomy support #3036
193
  * Improvements: Option to change the Navigation part background color and element color for Design-3 #3034
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.2.2
7
+ Stable tag: 0.9.97.64
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
188
 
189
  == Changelog ==
190
 
191
+ = 0.9.97.64 (15th July 2019) =
192
+ * Improvements: Performance improvement -- Meta Value Queries #3392
193
+ * Improvements: h1 tag on the archive, search and author pages #3323
194
+ * Improvements: Flipboard as a social sharing option in AMP added #3348
195
+ * Improvements: Comscore new variable for AMP in Analytics #3378
196
+ * Improvements: Option for Leverage Browser Caching in the performance settings #3298
197
+ * Fixed: Auto Add AMP in Menu URL option is not working for the product category #3319
198
+ * Fixed: Horizontal scrolling issue on the homepage #3217
199
+ * Fixed: Vuukle comments Toggle UX bug #3399
200
+ * Fixed: Basic amp components to work in the content #2713
201
+ * Fixed: Unnecessary CSS is loading in single amp product pages and also on cart pages. #3038
202
+ * Fixed: Improper amphtml is getting created in the ngg_tag Url when NextGEN Gallery is used #3381
203
+ * Fixed: Tutorial link for Disqus comments section #3362
204
+ * Fixed: Empty Display property in menu.php #3387
205
+ * Fixed: Images and text does not Zoom in & out with mobile devices in amp version #3233
206
+ * Fixed: Custom CSS code got optimized after 0.9.97.61 update #3410
207
+ * Fixed: Breadcrumbs icons are not connected to icons font family #3418
208
+ * Fixed: In swift Single Design 2 sidebar CSS are not loading in Search page #3430
209
+ * Fixed: Notice to be removed after dismissing it after installing AMP #3053
210
+ * Fixed: Plugins manager showing twice in options panel #3328
211
+ * Fixed: Amp scripts not appending in the head in Search pages when added in sidebar #3404
212
+ * Fixed: Conflict issue with Themify Builder #3376
213
+ * Fixed: Remove the Gap between Header and AMP Pagebuilder module #2534
214
+ * Fixed: Image is not loading when the source of it starting from ../wp-content #3403
215
+ * Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
216
+
217
+
218
  = 0.9.97.63 (9th July 2019) =
219
  * Improvements: Custom Taxonomy support #3036
220
  * Improvements: Option to change the Navigation part background color and element color for Design-3 #3034
accelerated-moblie-pages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
- Version: 0.9.97.63
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','0.9.97.63');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  // any changes to AMP_QUERY_VAR should be refelected here
26
  function ampforwp_generate_endpoint(){
@@ -207,6 +207,7 @@ function ampforwp_add_custom_rewrite_rules() {
207
  'top'
208
  );
209
  //Rewrite rule for custom Taxonomies
 
210
  if( function_exists('ampforwp_generate_taxonomies_transient')){
211
  //Rewrite rule for custom Taxonomies
212
  $taxonomies = ampforwp_generate_taxonomies_transient();
@@ -434,6 +435,9 @@ function ampforwp_rewrite_deactivate() {
434
 
435
  // Remove transient for Welcome page
436
  delete_transient( 'ampforwp_welcome_screen_activation_redirect');
 
 
 
437
  }
438
 
439
  if( !function_exists('ampforwp_upcomming_layouts_demo') ){
@@ -755,11 +759,6 @@ function ampforwp_ampwptheme_notice() {
755
  </div>
756
  <?php }
757
  }
758
-
759
- // AMP with AMPforWP notice #2287
760
- if ( function_exists('amp_activate') ) { ?>
761
- <div class="notice-warning settings-error notice is-dismissible"><p><?php echo esc_html__('AMP by Automattic is activated so the AMPforWP is now in the "Addon Mode". ','accelerated-mobile-pages') ?><a href="https://ampforwp.com/tutorials/article/guide-to-amp-by-automattic-compatibility-in-ampforwp/" target="_blank"><?php echo esc_html__('Learn More','accelerated-mobile-pages'); ?></a></p></div>
762
- <?php }
763
  }
764
 
765
  function ampforwp_update_notice() {
@@ -904,7 +903,18 @@ function ampforwp_get_all_post_types(){
904
  $post_types['category'] = 'category';
905
  }
906
 
907
- if ( ampforwp_get_setting('ampforwp-custom-type')) {
 
 
 
 
 
 
 
 
 
 
 
908
  foreach (ampforwp_get_setting('ampforwp-custom-type') as $key) {
909
  $selected_post_types[$key] = $key;
910
  }
@@ -1162,4 +1172,25 @@ function ampforwp_redux_options_remover($sections){
1162
  }
1163
  }
1164
  return $sections;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1165
  }
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
+ Version: 0.9.97.64
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','0.9.97.64');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  // any changes to AMP_QUERY_VAR should be refelected here
26
  function ampforwp_generate_endpoint(){
207
  'top'
208
  );
209
  //Rewrite rule for custom Taxonomies
210
+ $taxonomies = array();
211
  if( function_exists('ampforwp_generate_taxonomies_transient')){
212
  //Rewrite rule for custom Taxonomies
213
  $taxonomies = ampforwp_generate_taxonomies_transient();
435
 
436
  // Remove transient for Welcome page
437
  delete_transient( 'ampforwp_welcome_screen_activation_redirect');
438
+ // Remove admin notice after dismissing it
439
+ delete_transient( 'ampforwp_automattic_activation_notice');
440
+
441
  }
442
 
443
  if( !function_exists('ampforwp_upcomming_layouts_demo') ){
759
  </div>
760
  <?php }
761
  }
 
 
 
 
 
762
  }
763
 
764
  function ampforwp_update_notice() {
903
  $post_types['category'] = 'category';
904
  }
905
 
906
+ $custom_taxonomies = ampforwp_get_setting('ampforwp-custom-taxonomies');
907
+ if( !empty($custom_taxonomies) ){
908
+ foreach($custom_taxonomies as $taxonomy){
909
+ $terms = get_taxonomy( $taxonomy );
910
+ $taxonomy_name = $terms->name;
911
+ if( isset($terms->name) && !empty($terms->name)){
912
+ $post_types[$terms->name] = $terms->name;
913
+ }
914
+ }
915
+ }
916
+
917
+ if ( ampforwp_get_setting('ampforwp-custom-type')) {
918
  foreach (ampforwp_get_setting('ampforwp-custom-type') as $key) {
919
  $selected_post_types[$key] = $key;
920
  }
1172
  }
1173
  }
1174
  return $sections;
1175
+ }
1176
+
1177
+ // AMP with AMPforWP notice #2287
1178
+ add_action( 'admin_notices', 'ampforwp_automattic_activation' );
1179
+ function ampforwp_automattic_activation(){
1180
+
1181
+ if ( function_exists('amp_activate') && get_transient( 'ampforwp_automattic_activation_notice' ) == false) {
1182
+ $automattic_wizard_nonce = wp_create_nonce( "automattic_wizard_nonce" );?>
1183
+ <div id="ampforwp-automattic-notice" data-nonce="<?php echo esc_attr($automattic_wizard_nonce);?>"class="updated notice is-dismissible message notice notice-alt ampforwp-setup-notice"><p><?php
1184
+ echo esc_html__('AMP By AMP Project Contributors Plugin is activated so AMPforWP is now in the "Addon Mode". ','accelerated-mobile-pages') ?><a href="https://ampforwp.com/tutorials/article/guide-to-amp-by-automattic-compatibility-in-ampforwp" target="_blank"><?php echo esc_html__('Learn More','accelerated-mobile-pages'); ?></a></p></div><?php
1185
+ }
1186
+ }
1187
+
1188
+ add_action('wp_ajax_ampforwp_automattic_notice_delete','ampforwp_automattic_notice_delete');
1189
+ function ampforwp_automattic_notice_delete(){
1190
+ $automattic_wizard_nonce = $_REQUEST['security'];
1191
+
1192
+ if ( wp_verify_nonce( $automattic_wizard_nonce, 'automattic_wizard_nonce' ) && current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) {
1193
+ set_transient( 'ampforwp_automattic_activation_notice', 1 );
1194
+ }
1195
+ exit();
1196
  }
changelog.txt CHANGED
@@ -1,5 +1,31 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 0.9.97.63 (9th July 2019) =
4
  * Improvements: Custom Taxonomy support #3036
5
  * Improvements: Option to change the Navigation part background color and element color for Design-3 #3034
1
  == Changelog ==
2
 
3
+ = 0.9.97.64 (15th July 2019) =
4
+ * Improvements: Performance improvement -- Meta Value Queries #3392
5
+ * Improvements: h1 tag on the archive, search and author pages #3323
6
+ * Improvements: Flipboard as a social sharing option in AMP added #3348
7
+ * Improvements: Comscore new variable for AMP in Analytics #3378
8
+ * Improvements: Option for Leverage Browser Caching in the performance settings #3298
9
+ * Fixed: Auto Add AMP in Menu URL option is not working for the product category #3319
10
+ * Fixed: Horizontal scrolling issue on the homepage #3217
11
+ * Fixed: Vuukle comments Toggle UX bug #3399
12
+ * Fixed: Basic amp components to work in the content #2713
13
+ * Fixed: Unnecessary CSS is loading in single amp product pages and also on cart pages. #3038
14
+ * Fixed: Improper amphtml is getting created in the ngg_tag Url when NextGEN Gallery is used #3381
15
+ * Fixed: Tutorial link for Disqus comments section #3362
16
+ * Fixed: Empty Display property in menu.php #3387
17
+ * Fixed: Images and text does not Zoom in & out with mobile devices in amp version #3233
18
+ * Fixed: Custom CSS code got optimized after 0.9.97.61 update #3410
19
+ * Fixed: Breadcrumbs icons are not connected to icons font family #3418
20
+ * Fixed: In swift Single Design 2 sidebar CSS are not loading in Search page #3430
21
+ * Fixed: Notice to be removed after dismissing it after installing AMP #3053
22
+ * Fixed: Plugins manager showing twice in options panel #3328
23
+ * Fixed: Amp scripts not appending in the head in Search pages when added in sidebar #3404
24
+ * Fixed: Conflict issue with Themify Builder #3376
25
+ * Fixed: Remove the Gap between Header and AMP Pagebuilder module #2534
26
+ * Fixed: Image is not loading when the source of it starting from ../wp-content #3403
27
+ * Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
28
+
29
  = 0.9.97.63 (9th July 2019) =
30
  * Improvements: Custom Taxonomy support #3036
31
  * Improvements: Option to change the Navigation part background color and element color for Design-3 #3034
classes/class-ampforwp-walker-nav-menu.php CHANGED
@@ -40,10 +40,7 @@ if ( ! defined( 'ABSPATH' ) ) {
40
  $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );
41
  $id = strlen( $id ) ? ' id="' . esc_attr( $id ) . '"' : '';
42
 
43
- $has_children = $wpdb->get_var($wpdb->prepare("SELECT COUNT(meta_id)
44
- FROM {$wpdb->prefix}postmeta
45
- WHERE meta_key='_menu_item_menu_item_parent'
46
- AND meta_value='%d'", $item->ID) );
47
 
48
  $output .= $indent . '<li' . $id . $value . $class_names .'>';
49
 
40
  $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );
41
  $id = strlen( $id ) ? ' id="' . esc_attr( $id ) . '"' : '';
42
 
43
+ $has_children = 1;
 
 
 
44
 
45
  $output .= $indent . '<li' . $id . $value . $class_names .'>';
46
 
components/loop/loop.php CHANGED
@@ -14,7 +14,11 @@ function amp_archive_title(){
14
  }
15
  if ( is_archive() ) {
16
  $description = $sanitizer = $arch_desc = '';
17
- the_archive_title( '<h3 class="amp-archive-title">', '</h3>' );
 
 
 
 
18
  $description = get_the_archive_description();
19
  $sanitizer = new AMPFORWP_Content( $description, array(),
20
  apply_filters( 'ampforwp_content_sanitizers',
@@ -65,7 +69,12 @@ function amp_archive_title(){
65
  if(function_exists('ampforwp_translation')){
66
  $label = ampforwp_translation( $redux_builder_amp['amp-translator-search-text'], 'You searched for:');
67
  }
68
- echo '<h3 class="amp-loop-label">'.esc_attr($label) . ' ' . esc_attr(get_search_query()).'</h3>';
 
 
 
 
 
69
  }
70
  }
71
 
@@ -290,6 +299,13 @@ function amp_pagination($args =array()) {
290
  function amp_loop_title($data=array()){
291
  $data = array_filter($data);
292
  $tag = 'h2';
 
 
 
 
 
 
 
293
  if(isset($data['tag']) && $data['tag']!=""){
294
  $tag = $data['tag'];
295
  }
14
  }
15
  if ( is_archive() ) {
16
  $description = $sanitizer = $arch_desc = '';
17
+ if(ampforwp_default_logo()){
18
+ the_archive_title( '<h1 class="amp-archive-title">', '</h1>' );
19
+ }else{
20
+ the_archive_title( '<h2 class="amp-archive-title">', '</h2>' );
21
+ }
22
  $description = get_the_archive_description();
23
  $sanitizer = new AMPFORWP_Content( $description, array(),
24
  apply_filters( 'ampforwp_content_sanitizers',
69
  if(function_exists('ampforwp_translation')){
70
  $label = ampforwp_translation( $redux_builder_amp['amp-translator-search-text'], 'You searched for:');
71
  }
72
+
73
+ if(ampforwp_default_logo()){
74
+ echo '<h1 class="amp-loop-label">'.$label . ' ' . get_search_query().'</h1>';
75
+ }else{
76
+ echo '<h2 class="amp-loop-label">'.$label . ' ' . get_search_query().'</h2>';
77
+ }
78
  }
79
  }
80
 
299
  function amp_loop_title($data=array()){
300
  $data = array_filter($data);
301
  $tag = 'h2';
302
+ if ( is_archive() || is_search() ) {
303
+ if(ampforwp_default_logo()){
304
+ $tag = 'h2';
305
+ }else{
306
+ $tag = 'h3';
307
+ }
308
+ }
309
  if(isset($data['tag']) && $data['tag']!=""){
310
  $tag = $data['tag'];
311
  }
components/menu/menu.php CHANGED
@@ -72,6 +72,6 @@ function amp_menu_styles(){
72
  <?php
73
  }?>
74
  <?php /*AMP theme framework and AMP layouts and this is required*/ ?>
75
- aside{width:150px}.amp-menu{list-style-type:none;margin:0;padding:0}.amp-menu li{position:relative;display:block}.amp-menu li.menu-item-has-children ul{display:none}.amp-menu li.menu-item-has-children:hover>ul{display:}.amp-menu li.menu-item-has-children>ul>li{padding-left:10px}.amp-menu>li a{padding:7px;display:block;margin-bottom:1px}.amp-menu>li ul{list-style-type:none;margin:0;padding:0;position:relative}.amp-menu input{display:none;}<?php
76
  }
77
  }
72
  <?php
73
  }?>
74
  <?php /*AMP theme framework and AMP layouts and this is required*/ ?>
75
+ aside{width:150px}.amp-menu{list-style-type:none;margin:0;padding:0}.amp-menu li{position:relative;display:block}.amp-menu li.menu-item-has-children ul{display:none}.amp-menu li.menu-item-has-children>ul>li{padding-left:10px}.amp-menu>li a{padding:7px;display:block;margin-bottom:1px}.amp-menu>li ul{list-style-type:none;margin:0;padding:0;position:relative}.amp-menu input{display:none;}<?php
76
  }
77
  }
images/flipboard.png ADDED
Binary file
images/messenger.png ADDED
Binary file
includes/admin-script.js CHANGED
@@ -160,7 +160,17 @@ jQuery(function($) {
160
  })
161
  }
162
  }//Cloesed function = optionSectionDevision
163
-
 
 
 
 
 
 
 
 
 
 
164
  var hideReduxLeftTabs = function(){
165
  jQuery('ul.redux-group-menu > li.redux-group-tab-link-li').siblings('.redux-group-tab-link-li').each(function(key,Data){
166
  if(key>3 && jQuery(this).hasClass("otherSectionFields")){
@@ -638,6 +648,17 @@ function getQueryStringValue (key) {
638
  return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]" + encodeURIComponent(key).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"));
639
  }
640
 
 
 
 
 
 
 
 
 
 
 
 
641
  jQuery(window).on("YoastSEO:ready",function(){
642
  AmpForWpYoastAnalysis = function() {
643
  YoastSEO.app.registerPlugin( 'ampForWpYoastAnalysis', {status: 'ready'} );
@@ -672,14 +693,52 @@ AmpForWpYoastAnalysis = function() {
672
  new AmpForWpYoastAnalysis();
673
  });
674
  jQuery(document).ready(function($){
675
- $("#redux_builder_amp-swift-sidebar").on( 'change', function(){
676
- var value = $('#redux_builder_amp-swift-sidebar #swift-sidebar').val();
677
- if(value == 1){
678
- $("#single-design-type_2").attr('checked', true);
679
- }else {
680
- $("#single-design-type_1").attr('checked', true);
681
- }
682
-
683
- });
684
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
685
  });
160
  })
161
  }
162
  }//Cloesed function = optionSectionDevision
163
+ // Dismiss button functionlaity
164
+ $('#ampforwp-automattic-notice').on('click', 'button', function(){
165
+ var nonce = $('#ampforwp-automattic-notice').attr('data-nonce');
166
+ var data_notice = {
167
+ 'action': 'ampforwp_automattic_notice_delete',
168
+ 'security': nonce,
169
+ };
170
+ jQuery.post(ajaxurl, data_notice, function(response) {
171
+
172
+ });
173
+ });
174
  var hideReduxLeftTabs = function(){
175
  jQuery('ul.redux-group-menu > li.redux-group-tab-link-li').siblings('.redux-group-tab-link-li').each(function(key,Data){
176
  if(key>3 && jQuery(this).hasClass("otherSectionFields")){
648
  return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]" + encodeURIComponent(key).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"));
649
  }
650
 
651
+ jQuery(document).ready(function($){
652
+ // Dismiss button functionlaity
653
+ $('#ampforwp-wizard-notice').on('click', 'button', function(){
654
+ var notice = {
655
+ 'action': 'ampforwp_notice_delete',
656
+ };
657
+ jQuery.post(ajaxurl, notice, function(response) {
658
+ });
659
+ });
660
+ });//(document).ready Closed
661
+
662
  jQuery(window).on("YoastSEO:ready",function(){
663
  AmpForWpYoastAnalysis = function() {
664
  YoastSEO.app.registerPlugin( 'ampForWpYoastAnalysis', {status: 'ready'} );
693
  new AmpForWpYoastAnalysis();
694
  });
695
  jQuery(document).ready(function($){
696
+ $("#redux_builder_amp-swift-sidebar").on( 'change', function(){
697
+ var value = $('#redux_builder_amp-swift-sidebar #swift-sidebar').val();
698
+ if(value == 1){
699
+ $("#single-design-type_2").attr('checked', true);
700
+ }else {
701
+ $("#single-design-type_1").attr('checked', true);
702
+ }
703
+ });
704
+ //Toggle Post and Page comments panel based on options
705
+ if($('#ampforwp-display-on-pages').length>0 && $('#ampforwp-display-on-posts').length>0){
706
+ var pageComments = $('#ampforwp-display-on-pages').val();
707
+ var postComments = $('#ampforwp-display-on-posts').val();
708
+ if( pageComments ==0 && postComments == 0 ){
709
+ $('#section-ampforwp-comments').hide();
710
+ $('#section-table-ampforwp-comments tbody').hide();
711
+ }
712
+ }
713
+ $("#redux_builder_amp-ampforwp-display-on-posts").on('change','input[type=checkbox]', function(){
714
+ var pageComments = $('#ampforwp-display-on-pages').val();
715
+ if($(this).is(":checked")) {
716
+ $('#section-ampforwp-comments').show();
717
+ $('#section-table-ampforwp-comments tbody').show();
718
+ }else{
719
+ if(pageComments==0){
720
+ $('#section-ampforwp-comments').hide();
721
+ $('#section-table-ampforwp-comments tbody').hide();
722
+ }else{
723
+ $('#section-ampforwp-comments').show();
724
+ $('#section-table-ampforwp-comments tbody').show();
725
+ }
726
+ }
727
+ });
728
+ $("#redux_builder_amp-ampforwp-display-on-pages").on('change','input[type=checkbox]', function(){
729
+ var postComments = $('#ampforwp-display-on-posts').val();
730
+ if($(this).is(":checked")) {
731
+ $('#section-ampforwp-comments').show();
732
+ $('#section-table-ampforwp-comments tbody').show();
733
+ }else{
734
+ if(postComments == 0){
735
+ $('#section-ampforwp-comments').hide();
736
+ $('#section-table-ampforwp-comments tbody').hide();
737
+ }else{
738
+ $('#section-ampforwp-comments').show();
739
+ $('#section-table-ampforwp-comments tbody').show();
740
+ }
741
+
742
+ }
743
+ });
744
  });
includes/features/analytics/analytics-functions.php CHANGED
@@ -112,6 +112,9 @@ function ampforwp_analytics() {
112
  'c1'=>$comscore_c1,
113
  'c2'=>$comscore_c2
114
  ),
 
 
 
115
  );
116
  $comscore_fields = apply_filters('ampforwp_comscore_analytics', $comscore_fields );?>
117
  <amp-analytics <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> type="comscore">
112
  'c1'=>$comscore_c1,
113
  'c2'=>$comscore_c2
114
  ),
115
+ 'extraUrlParams'=> array(
116
+ 'comscorekw'=> 'amp'
117
+ ),
118
  );
119
  $comscore_fields = apply_filters('ampforwp_comscore_analytics', $comscore_fields );?>
120
  <amp-analytics <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> type="comscore">
includes/features/analytics/analytics-options.php CHANGED
@@ -326,7 +326,7 @@ function ampforwp_analytics_options($opt_name){
326
  'id' =>'amp-comscore-analytics-code-c1',
327
  'type' => 'text',
328
  'title' => esc_html__('C1','accelerated-mobile-pages'),
329
- 'default' => 1,
330
  'required' => array(
331
  array('ampforwp-comScore-switch', '=' , '1')),
332
  ),
326
  'id' =>'amp-comscore-analytics-code-c1',
327
  'type' => 'text',
328
  'title' => esc_html__('C1','accelerated-mobile-pages'),
329
+ 'default' => '',
330
  'required' => array(
331
  array('ampforwp-comScore-switch', '=' , '1')),
332
  ),
includes/features/functions.php CHANGED
@@ -772,7 +772,7 @@ if ( ! function_exists('ampforwp_wp_update_nav_menu') ) {
772
  }
773
  }
774
  // Delete Menu Transients on Saving AMP Settings #3052
775
- if ( function_exists('ampforwp_menu_transient_on_save') ){
776
  function ampforwp_menu_transient_on_save($redux_builder_amp, $this_transients_changed_values) {
777
  if ( isset($this_transients_changed_values['amp-design-selector']) ) {
778
  if ( false != get_transient('ampforwp_header_menu') ) {
772
  }
773
  }
774
  // Delete Menu Transients on Saving AMP Settings #3052
775
+ if ( ! function_exists('ampforwp_menu_transient_on_save') ){
776
  function ampforwp_menu_transient_on_save($redux_builder_amp, $this_transients_changed_values) {
777
  if ( isset($this_transients_changed_values['amp-design-selector']) ) {
778
  if ( false != get_transient('ampforwp_header_menu') ) {
includes/features/performance/performance-functions.php CHANGED
@@ -73,4 +73,95 @@ function ampforwp_minify_html_output($content_buffer){
73
 
74
  return $content_buffer;
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
73
 
74
  return $content_buffer;
75
 
76
+ }
77
+
78
+
79
+ if( true == ampforwp_get_setting('ampforwp_leverage_browser_caching_mode')){
80
+ ampforwp_leverage_browser_caching();
81
+ }else{
82
+ ampforwp_leverage_browser_caching_remove();
83
+ }
84
+
85
+ function ampforwp_leverage_browser_caching_remove(){
86
+ $htaccess_file = wp_normalize_path( ABSPATH . '.htaccess' );
87
+ if ( file_exists( $htaccess_file ) ) {
88
+
89
+ if ( is_readable( $htaccess_file ) && is_writable( $htaccess_file ) ) {
90
+ $unique_string = 'AMPFORWPLBROWSERCSTART';
91
+ $htaccess_cntn = file_get_contents( $htaccess_file );
92
+ $valid = false;
93
+
94
+ if ( strpos( $htaccess_cntn, $unique_string ) !== false ) {
95
+ $valid = true;
96
+ }
97
+ if ( $valid ) {
98
+ $pattern = '/#\s?AMPFORWPLBROWSERCSTART.*?AMPFORWPLBROWSERCEND/s';
99
+ $htaccess_cntn = preg_replace( $pattern, '', $htaccess_cntn );
100
+ $htaccess_cntn = preg_replace( "/\n+/","\n", $htaccess_cntn );
101
+ file_put_contents( $htaccess_file, $htaccess_cntn );
102
+ }
103
+ } else {
104
+
105
+ }
106
+ } else {
107
+
108
+ }
109
+ }
110
+ function ampforwp_leverage_browser_caching(){
111
+ $htaccess_file = wp_normalize_path( ABSPATH . '.htaccess' );
112
+ if ( file_exists( $htaccess_file ) ) {
113
+ if ( is_readable( $htaccess_file ) && is_writable( $htaccess_file ) ) {
114
+ $unique_string = 'AMPFORWPLBROWSERCSTART';
115
+ $htaccess_cntn = file_get_contents( $htaccess_file );
116
+ $valid = false;
117
+ if ( strpos( $htaccess_cntn, $unique_string ) !== false ) {
118
+ $valid = true;
119
+ }
120
+ if ( ! $valid ) {
121
+ $htaccess_cntn = $htaccess_cntn . ampforwp_code_to_add_in_htaccess();
122
+ file_put_contents( $htaccess_file, $htaccess_cntn );
123
+ }
124
+ } else {
125
+ add_action( 'admin_notices', 'ampforwp_no_htaccess_access_notice' );
126
+ }
127
+ }else {
128
+ add_action( 'admin_notices', 'ampforwp_no_htaccess_notice');
129
+ }
130
+ }
131
+
132
+ function ampforwp_no_htaccess_access_notice(){
133
+ $message = '<div class="error"><p>';
134
+ $message .= esc_html__( 'Accelerated Mobile Pages: htaccess file is not readable or writable for Leverage Browser Caching. Please change permission of htaccess file.', 'accelerated-mobile-pages' );
135
+ $message .= '</p></div>';
136
+ echo wp_kses_post( $message );
137
+ }
138
+ function ampforwp_no_htaccess_notice(){
139
+ $message = '<div class="error"><p>';
140
+ $message .= esc_html__( 'Accelerated Mobile Pages: htaccess file not found. This plugin works only for Apache server. If you are using Apace server, please create it.', 'accelerated-mobile-pages' );
141
+ $message .= '</p></div>';
142
+ echo wp_kses_post( $message );
143
+ }
144
+ function ampforwp_code_to_add_in_htaccess(){
145
+ $htaccess_cntn = "\n";
146
+ $htaccess_cntn .= '# AMPFORWPLBROWSERCSTART Browser Caching' . "\n";
147
+ $htaccess_cntn .= '<IfModule mod_expires.c>' . "\n";
148
+ $htaccess_cntn .= 'ExpiresActive On' . "\n";
149
+ $htaccess_cntn .= 'ExpiresByType image/gif "access 1 year"' . "\n";
150
+ $htaccess_cntn .= 'ExpiresByType image/jpg "access 1 year"' . "\n";
151
+ $htaccess_cntn .= 'ExpiresByType image/jpeg "access 1 year"' . "\n";
152
+ $htaccess_cntn .= 'ExpiresByType image/png "access 1 year"' . "\n";
153
+ $htaccess_cntn .= 'ExpiresByType image/x-icon "access 1 year"' . "\n";
154
+ $htaccess_cntn .= 'ExpiresByType text/css "access 3 month"' . "\n";
155
+ $htaccess_cntn .= 'ExpiresByType text/javascript "access 3 month"' . "\n";
156
+ $htaccess_cntn .= 'ExpiresByType text/html "access 3 month"' . "\n";
157
+ $htaccess_cntn .= 'ExpiresByType application/javascript "access 3 month"' . "\n";
158
+ $htaccess_cntn .= 'ExpiresByType application/x-javascript "access 3 month"' . "\n";
159
+ $htaccess_cntn .= 'ExpiresByType application/xhtml-xml "access 3 month"' . "\n";
160
+ $htaccess_cntn .= 'ExpiresByType application/pdf "access 3 month"' . "\n";
161
+ $htaccess_cntn .= 'ExpiresByType application/x-shockwave-flash "access 3 month"' . "\n";
162
+ $htaccess_cntn .= 'ExpiresDefault "access 3 month"' . "\n";
163
+ $htaccess_cntn .= '</IfModule>' . "\n";
164
+ $htaccess_cntn .= '# END Caching AMPFORWPLBROWSERCEND' . "\n";
165
+
166
+ return $htaccess_cntn;
167
  }
includes/features/performance/performance-options.php CHANGED
@@ -64,6 +64,13 @@ use ReduxCore\ReduxFramework\Redux;
64
  'tooltip-subtitle' => __('Improve the Page Speed and Loading time with Minification option', 'accelerated-mobile-pages'),
65
  'default' => 0
66
  ),
 
 
 
 
 
 
 
67
  )
68
 
69
  )
64
  'tooltip-subtitle' => __('Improve the Page Speed and Loading time with Minification option', 'accelerated-mobile-pages'),
65
  'default' => 0
66
  ),
67
+ array(
68
+ 'id' => 'ampforwp_leverage_browser_caching_mode',
69
+ 'type' => 'switch',
70
+ 'title' => esc_html__('Leverage Browser Caching', 'accelerated-mobile-pages'),
71
+ 'tooltip-subtitle' => esc_html__('Improve the Page Speed and Loading time with Leverage Browser Caching option', 'accelerated-mobile-pages'),
72
+ 'default' => 0
73
+ )
74
  )
75
 
76
  )
includes/options/admin-config.php CHANGED
@@ -1866,7 +1866,8 @@ Redux::setArgs( "redux_builder_amp", $args );
1866
  'id' => 'ampforwp-disqus-comments-support',
1867
  'type' => 'switch',
1868
  'title' => esc_html__('Disqus', 'accelerated-mobile-pages'),
1869
- 'tooltip-subtitle' => esc_html__('Enable/Disable Disqus comments using this switch.', 'accelerated-mobile-pages'),
 
1870
  'default' => 0
1871
  ),
1872
  array(
@@ -5965,6 +5966,13 @@ else{
5965
  'type' => 'switch',
5966
  'title' => esc_html__('MeWe', 'accelerated-mobile-pages'),
5967
  'default' => 0,
 
 
 
 
 
 
 
5968
  ),
5969
  array(
5970
  'id' => 'social-prfl',
@@ -6542,12 +6550,16 @@ if(!ampforwp_check_extensions()){
6542
  'icon' => 'el el-hand-right',
6543
  ) );
6544
  }
 
6545
  // Plugin Manager
6546
  Redux::setSection( $opt_name, array(
6547
  'title' => esc_html__( 'Plugins Manager', 'accelerated-mobile-pages' ),
6548
  'id' => 'opt-plugins-manager',
6549
  'subsection' => false,
6550
- 'desc' => 'You can Disable Plugins only in AMP which are causing AMP validation errors. <a href="http://ampforwp.com/plugins-manager" target="_blank">More Information.</a>',
 
 
 
6551
  'icon' => 'el el-magic',
6552
  'fields' => array(
6553
 
@@ -6560,12 +6572,17 @@ if(!ampforwp_check_extensions()){
6560
  array(
6561
  'id' => 'info_normal',
6562
  'type' => 'info',
6563
- 'required' => array('ampforwp-plugin-manager-core', '=' , '1'),
6564
- 'desc' => '<div style=" background: #FFF9C4;padding: 12px;line-height: 1.6;margin: -45px -14px -18px -17px;"><b>ONE LAST STEP REQUIRED:</b> This feature requires <a href="https://ampforwp.com/plugins-manager" target="_blank">AMP Plugin Manager</a>.<br /> <div style="margin-top:4px;">(<a href="https://ampforwp.com/plugins-manager" target="_blank">Click here for more info</a>)</div></div>',
 
 
 
 
 
6565
  ),
6566
  )
6567
  ) );
6568
-
6569
  Redux::setExtensions( $opt_name, AMPFORWP_PLUGIN_DIR.'includes/options/extensions/demolink_image_select' );
6570
  /*
6571
  * <--- END SECTIONS
1866
  'id' => 'ampforwp-disqus-comments-support',
1867
  'type' => 'switch',
1868
  'title' => esc_html__('Disqus', 'accelerated-mobile-pages'),
1869
+ 'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
1870
+ esc_html__('Enable/Disable Disqus comments using this switch and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-disqus-comments-in-amp/'), esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('to view the tutorial','accelerated-mobile-pages')),
1871
  'default' => 0
1872
  ),
1873
  array(
5966
  'type' => 'switch',
5967
  'title' => esc_html__('MeWe', 'accelerated-mobile-pages'),
5968
  'default' => 0,
5969
+ ),
5970
+ // Flipboard
5971
+ array(
5972
+ 'id' => 'enable-single-flipboard-share',
5973
+ 'type' => 'switch',
5974
+ 'title' => esc_html__('Flipboard', 'accelerated-mobile-pages'),
5975
+ 'default' => 0,
5976
  ),
5977
  array(
5978
  'id' => 'social-prfl',
6550
  'icon' => 'el el-hand-right',
6551
  ) );
6552
  }
6553
+ if(!function_exists('ampforwp_create_controls_for_plugin_manager')){
6554
  // Plugin Manager
6555
  Redux::setSection( $opt_name, array(
6556
  'title' => esc_html__( 'Plugins Manager', 'accelerated-mobile-pages' ),
6557
  'id' => 'opt-plugins-manager',
6558
  'subsection' => false,
6559
+ 'desc' => sprintf('%s <a href="http://ampforwp.com/plugins-manager" target="_blank"> %s</a>',
6560
+ esc_html__('You can Disable Plugins only in AMP which are causing AMP validation errors.','accelerated-mobile-pages'),
6561
+ esc_html__('More Information.','accelerated-mobile-pages')
6562
+ ),
6563
  'icon' => 'el el-magic',
6564
  'fields' => array(
6565
 
6572
  array(
6573
  'id' => 'info_normal',
6574
  'type' => 'info',
6575
+ 'required' => array('ampforwp-plugin-manager-core', '=' , '1'),
6576
+ 'desc' =>sprintf('<div style="background: #FFF9C4;padding: 12px;line-height: 1.6;margin:-45px -14px -18px -17px;"><b>%s</b> %s <a href="https://ampforwp.com/plugins-manager" target="_blank">%s</a>.<br /><div style="margin-top:4px;">(<a href="https://ampforwp.com/plugins-manager" target="_blank">%s</a>)</div></div>',
6577
+ esc_html__('ONE LAST STEP REQUIRED:','accelerated-mobile-pages'),
6578
+ esc_html__('This feature requires','accelerated-mobile-pages'),
6579
+ esc_html__('AMP Plugin Manager','accelerated-mobile-pages'),
6580
+ esc_html__('Click here for more info','accelerated-mobile-pages')
6581
+ ),
6582
  ),
6583
  )
6584
  ) );
6585
+ }
6586
  Redux::setExtensions( $opt_name, AMPFORWP_PLUGIN_DIR.'includes/options/extensions/demolink_image_select' );
6587
  /*
6588
  * <--- END SECTIONS
includes/options/redux-core/framework.php CHANGED
@@ -2864,7 +2864,7 @@
2864
  // unset($process);
2865
  //}
2866
 
2867
- $sanitized_data = esc_url_raw(stripslashes( $_POST['data'] ));
2868
 
2869
  // Old method of saving, in case we need to go back! - kp
2870
  //parse_str( $_POST['data'], $values );
2864
  // unset($process);
2865
  //}
2866
 
2867
+ $sanitized_data = filter_var(stripslashes( $_POST['data'] ), FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
2868
 
2869
  // Old method of saving, in case we need to go back! - kp
2870
  //parse_str( $_POST['data'], $values );
includes/vendor/amp/includes/amp-helper-functions.php CHANGED
@@ -11,8 +11,11 @@ function amp_get_permalink( $post_id ) {
11
  if ( empty( $structure ) ) {
12
  $amp_url = add_query_arg( AMP_QUERY_VAR, 1, get_permalink( $post_id ) );
13
  } else {
14
- $amp_url = trailingslashit( get_permalink( $post_id ) );
15
- $amp_url = ampforwp_end_point_controller($amp_url);
 
 
 
16
  }
17
 
18
  return apply_filters( 'amp_get_permalink', $amp_url, $post_id );
11
  if ( empty( $structure ) ) {
12
  $amp_url = add_query_arg( AMP_QUERY_VAR, 1, get_permalink( $post_id ) );
13
  } else {
14
+ $get_permalink = get_permalink( $post_id );
15
+ if( $get_permalink != false){
16
+ $amp_url = trailingslashit( $get_permalink );
17
+ $amp_url = ampforwp_end_point_controller($amp_url);
18
+ }
19
  }
20
 
21
  return apply_filters( 'amp_get_permalink', $amp_url, $post_id );
includes/vendor/amp/includes/sanitizers/class-amp-img-sanitizer.php CHANGED
@@ -51,6 +51,14 @@ class AMP_Img_Sanitizer extends AMP_Base_Sanitizer {
51
  continue;
52
  }
53
 
 
 
 
 
 
 
 
 
54
  // Determine which images need their dimensions determined/extracted.
55
  if ( ! is_numeric( $node->getAttribute( 'width' ) ) || ! is_numeric( $node->getAttribute( 'height' ) ) ) {
56
  $need_dimensions[ $node->getAttribute( 'src' ) ][] = $node;
51
  continue;
52
  }
53
 
54
+ if( $node->getAttribute( 'src' )){
55
+ if (strpos($node->getAttribute( 'src' ), '../wp-content') !== false) {
56
+ $site_url = content_url();
57
+ $image_complete_src = str_replace('../wp-content', $site_url, $node->getAttribute( 'src' ));
58
+ $node->setAttribute('src',$image_complete_src);
59
+ }
60
+ }
61
+
62
  // Determine which images need their dimensions determined/extracted.
63
  if ( ! is_numeric( $node->getAttribute( 'width' ) ) || ! is_numeric( $node->getAttribute( 'height' ) ) ) {
64
  $need_dimensions[ $node->getAttribute( 'src' ) ][] = $node;
includes/vendor/amp/includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php CHANGED
@@ -214,8 +214,9 @@ class AMP_Tag_And_Attribute_Sanitizer extends AMP_Base_Sanitizer {
214
  $version
215
  );
216
  }
217
- $checking_scripts = array("amp-carousel","amp-accordion");
218
- $script_intersect = array_intersect($checking_scripts,$scriptArray);
 
219
  if(count($script_intersect)>0){
220
  remove_filter('the_content', 'wpautop');
221
  }
214
  $version
215
  );
216
  }
217
+ $present_scripts = array_flip($scriptArray);
218
+ $checking_scripts = array("amp-accordion","amp-carousel");
219
+ $script_intersect = array_intersect($checking_scripts,$present_scripts);
220
  if(count($script_intersect)>0){
221
  remove_filter('the_content', 'wpautop');
222
  }
includes/vendor/amp/includes/utils/class-amp-wp-utils.php CHANGED
@@ -7,7 +7,7 @@ class AMP_WP_Utils {
7
  * This can be removed once 4.8 is out and we bump up our min supported WP version.
8
  */
9
  public static function parse_url( $url, $component = -1 ) {
10
- $parsed = wp_parse_url( $url, $component );
11
 
12
  // Because < 4.7 always returned a full array regardless of component
13
  if ( -1 !== $component && is_array( $parsed ) ) {
7
  * This can be removed once 4.8 is out and we bump up our min supported WP version.
8
  */
9
  public static function parse_url( $url, $component = -1 ) {
10
+ $parsed = \wp_parse_url( $url, $component );
11
 
12
  // Because < 4.7 always returned a full array regardless of component
13
  if ( -1 !== $component && is_array( $parsed ) ) {
includes/vendor/vendor-changelog.txt CHANGED
@@ -77,4 +77,6 @@ Reason: To extend the functionality of sidebars and Pagebuilder
77
  47. class-amp-allowed-tag-generated.php added amp-recaptcha-input support #3315
78
  48. Image sanitizer updated #3112
79
  49. class-amp-blacklist-sanitizer.php updated #3276
80
- 50. Added id atttribute allowed in amp-video sanitizer #3406
 
 
77
  47. class-amp-allowed-tag-generated.php added amp-recaptcha-input support #3315
78
  48. Image sanitizer updated #3112
79
  49. class-amp-blacklist-sanitizer.php updated #3276
80
+ 50. Added id atttribute allowed in amp-video sanitizer #3406
81
+ 51. amp_get_permalink() function updated for the post id zero #3381
82
+ 52. Added code for Image is not loading when source of it starting from ../wp-content issue in class-amp-wistia-embed.php #3403
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.2.2
7
- Stable tag: 0.9.97.63
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,32 +190,30 @@ You can contact us from [here](https://ampforwp.com/contact/)
190
 
191
  == Changelog ==
192
 
193
- = 0.9.97.63 (9th July 2019) =
194
- * Improvements: Custom Taxonomy support #3036
195
- * Improvements: Option to change the Navigation part background color and element color for Design-3 #3034
196
- * Improvements: Compatibility with the SEO Framework Plugin #2670
197
- * Improvements: Facebook Messenger Icon in social share icons #2806
198
- * Improvements: Option to change the Homepage Thumbnail size in design-3 theme #2986
199
- * Improvements: Changed prefix class of whatsapp to Api #3369
200
- * Improvements: Colour changing feature in Navigation bar in a design-2 #3059
201
- * Improvements: Google Lighthouse Audit Score improved #3276
202
- * Improvements: AMP option panel compatibility with a basix theme #3366
203
- * Improvements: Template mode code improved #3357
204
- * Fixed: PHP debug warning #3128
205
- * Fixed: Proper alignment of description in Design-3 #3385
206
- * Fixed: 'Modified Date' option not working when Date Format 'Traditional view' is selected #3383
207
- * Fixed: When Parmalinks in "/index.php/%year%/%monthnum%/%day%/%postname%/" format category not working #3279
208
- * Fixed: Separator Character's of Rank math plugin is not working on AMP pages #3335
209
- * Fixed: SVG images not rendering in AMP #3208
210
- * Fixed: Improvements code in Search form widget #3000
211
- * Fixed: Dynamically change accordion-mod class name to reduce the styling size #3334
212
- * Fixed: Social sticky icons to show on top as well as it is getting hidden behind sticky ads #3126
213
- * Fixed: Font icons not loading in master and beta #3382
214
- * Fixed: Yoast SEO Data not loading in AMP when 'Glue for Yoast SEO & AMP' plugin is active #3338
215
- * Fixed: When AMP Comments is disabled, div of comments is loading #3345
216
- * Fixed: Error 500 PHP 5.3.3 Fallback support #3333
217
- * Fixed: Debug warnings after recent update #3400
218
- * Fixed: Video sanitizer not allowing the "id" attribute #3406
219
- * Fixed: Check if function_exists('get_rocket_option') #3417
220
 
221
  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.2.2
7
+ Stable tag: 0.9.97.64
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
190
 
191
  == Changelog ==
192
 
193
+ = 0.9.97.64 (15th July 2019) =
194
+ * Improvements: Performance improvement -- Meta Value Queries #3392
195
+ * Improvements: h1 tag on the archive, search and author pages #3323
196
+ * Improvements: Flipboard as a social sharing option in AMP added #3348
197
+ * Improvements: Comscore new variable for AMP in Analytics #3378
198
+ * Improvements: Option for Leverage Browser Caching in the performance settings #3298
199
+ * Fixed: Auto Add AMP in Menu URL option is not working for the product category #3319
200
+ * Fixed: Horizontal scrolling issue on the homepage #3217
201
+ * Fixed: Vuukle comments Toggle UX bug #3399
202
+ * Fixed: Basic amp components to work in the content #2713
203
+ * Fixed: Unnecessary CSS is loading in single amp product pages and also on cart pages. #3038
204
+ * Fixed: Improper amphtml is getting created in the ngg_tag Url when NextGEN Gallery is used #3381
205
+ * Fixed: Tutorial link for Disqus comments section #3362
206
+ * Fixed: Empty Display property in menu.php #3387
207
+ * Fixed: Images and text does not Zoom in & out with mobile devices in amp version #3233
208
+ * Fixed: Custom CSS code got optimized after 0.9.97.61 update #3410
209
+ * Fixed: Breadcrumbs icons are not connected to icons font family #3418
210
+ * Fixed: In swift Single Design 2 sidebar CSS are not loading in Search page #3430
211
+ * Fixed: Notice to be removed after dismissing it after installing AMP #3053
212
+ * Fixed: Plugins manager showing twice in options panel #3328
213
+ * Fixed: Amp scripts not appending in the head in Search pages when added in sidebar #3404
214
+ * Fixed: Conflict issue with Themify Builder #3376
215
+ * Fixed: Remove the Gap between Header and AMP Pagebuilder module #2534
216
+ * Fixed: Image is not loading when the source of it starting from ../wp-content #3403
217
+ * Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
 
 
218
 
219
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/design-1/archive.php CHANGED
@@ -58,7 +58,11 @@ global $redux_builder_amp, $wp; ?>
58
  <?php }
59
  }
60
  }
61
- the_archive_title( '<h2 class="page-title">', '</h2>' );
 
 
 
 
62
 
63
  $arch_desc = $sanitizer->get_amp_content();
64
  if( $arch_desc ) {
@@ -103,8 +107,13 @@ global $redux_builder_amp, $wp; ?>
103
  }
104
  } ?>
105
  <div class="amp-wp-content amp-wp-article-header amp-loop-list">
106
-
107
- <h3 class="amp-wp-title"><a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"><?php the_title() ?></a></h3>
 
 
 
 
 
108
 
109
  <div class="amp-wp-content-loop">
110
 
58
  <?php }
59
  }
60
  }
61
+ if(ampforwp_default_logo()){
62
+ the_archive_title( '<h1 class="page-title">', '</h1>' );
63
+ }else{
64
+ the_archive_title( '<h2 class="page-title">', '</h2>' );
65
+ }
66
 
67
  $arch_desc = $sanitizer->get_amp_content();
68
  if( $arch_desc ) {
107
  }
108
  } ?>
109
  <div class="amp-wp-content amp-wp-article-header amp-loop-list">
110
+ <?php
111
+ $title_name = '<a href="'.esc_url( $ampforwp_amp_post_url ).'">'.get_the_title().'</a>';
112
+ if( ampforwp_default_logo() ){ ?>
113
+ <h2 class="amp-wp-title"><?php echo $title_name; ?></h2>
114
+ <?php }else{ ?>
115
+ <h3 class="amp-wp-title"><?php echo $title_name ?></h3>
116
+ <?php } ?>
117
 
118
  <div class="amp-wp-content-loop">
119
 
templates/design-manager/design-1/elements/social-icons.php CHANGED
@@ -160,6 +160,13 @@ if ( is_single() || (is_page() && isset($redux_builder_amp['ampforwp-page-social
160
  </div>
161
  </a>
162
  <?php } ?>
 
 
 
 
 
 
 
163
  </div>
164
  <?php } ?>
165
 
160
  </div>
161
  </a>
162
  <?php } ?>
163
+ <?php if ( true == ampforwp_get_setting('enable-single-flipboard-share') ) { ?>
164
+ <a title="flipboard share" <?php ampforwp_nofollow_social_links(); ?> href="https://share.flipboard.com/bookmarklet/popout?v=<?php echo esc_html(get_the_title(ampforwp_get_the_ID())); ?>&url=<?php echo urlencode(esc_url($amp_permalink)); ?>" target="_blank">
165
+ <div class="amp-social-icon amp-social-flipboard">
166
+ <amp-img src="<?php echo esc_url(AMPFORWP_IMAGE_DIR . '/flipboard.png') ?>" width="15" height="15" />
167
+ </div>
168
+ </a>
169
+ <?php } ?>
170
  </div>
171
  <?php } ?>
172
 
templates/design-manager/design-1/search.php CHANGED
@@ -55,16 +55,24 @@
55
  ) ) );
56
  if ( function_exists( 'relevanssi_do_query' ) ) {
57
  relevanssi_do_query( $q );
58
- };?>
59
 
 
 
 
60
  <h2 class="amp-wp-content page-title"><?php echo esc_attr(ampforwp_translation($redux_builder_amp['amp-translator-search-text'], 'You searched for:' )) . ' ' . get_search_query();?></h2>
 
61
 
62
  <?php if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();?>
63
 
64
  <div class="amp-wp-content amp-wp-article-header amp-loop-list">
65
-
66
- <h3 class="amp-wp-title"><a href="<?php echo ampforwp_url_controller( get_permalink());?>"><?php the_title() ?></a></h3>
67
-
 
 
 
 
68
  <div class="amp-wp-content-loop">
69
 
70
  <div class="amp-wp-meta">
55
  ) ) );
56
  if ( function_exists( 'relevanssi_do_query' ) ) {
57
  relevanssi_do_query( $q );
58
+ };
59
 
60
+ if( ampforwp_default_logo() ){ ?>
61
+ <h1 class="amp-wp-content page-title"><?php echo ampforwp_translation($redux_builder_amp['amp-translator-search-text'], 'You searched for:' ) . ' ' . get_search_query();?></h1>
62
+ <?php }else{ ?>
63
  <h2 class="amp-wp-content page-title"><?php echo esc_attr(ampforwp_translation($redux_builder_amp['amp-translator-search-text'], 'You searched for:' )) . ' ' . get_search_query();?></h2>
64
+ <?php } ?>
65
 
66
  <?php if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();?>
67
 
68
  <div class="amp-wp-content amp-wp-article-header amp-loop-list">
69
+ <?php
70
+ $title_name = '<a href="'.ampforwp_url_controller( get_permalink() ).'">'.get_the_title().'</a>';
71
+ if( ampforwp_default_logo() ){ ?>
72
+ <h2 class="amp-wp-title"><?php echo $title_name; ?></h2>
73
+ <?php }else{ ?>
74
+ <h3 class="amp-wp-title"><?php echo $title_name ?></h3>
75
+ <?php } ?>
76
  <div class="amp-wp-content-loop">
77
 
78
  <div class="amp-wp-meta">
templates/design-manager/design-1/style.php CHANGED
@@ -66,6 +66,8 @@ blockquote {color: <?php echo sanitize_hex_color( $text_color ); ?>;background:
66
  .amp-wp-meta,.amp-wp-header .ampforwp-logo-area,.amp-wp-title,.wp-caption-text,.amp-wp-tax-category,.amp-wp-tax-tag,.amp-wp-comments-link,.amp-wp-footer p,.back-to-top {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;}
67
  .amp-wp-header {background-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;}
68
  .amp-wp-header .ampforwp-logo-area {color: <?php echo sanitize_hex_color( $header_color ); ?>;font-size: 1em;font-weight: 400;margin: 0 auto;max-width: calc(840px - 32px);padding: .875em 16px;position: relative;} .amp-wp-header .amp-wp-site-icon {background-color: <?php echo sanitize_hex_color( $header_color ); ?>;border: 1px solid <?php echo sanitize_hex_color( $header_color ); ?>;border-radius: 50%;position: absolute;right: 18px;top: 10px;}
 
 
69
  .amp-wp-article {color: <?php echo sanitize_hex_color( $text_color ); ?>;font-weight: 400;margin: 1.5em auto;max-width: 840px;overflow-wrap: break-word;word-wrap: break-word;} .amp-wp-article-header {align-items: center;align-content: stretch;display: flex;flex-wrap: wrap;justify-content: space-between;margin: 1.5em 16px 1.5em;}
70
  .amp-wp-title {color: <?php echo sanitize_hex_color( $text_color ); ?>;display: block;flex: 1 0 100%;font-weight: 900;font-size:1.5em;margin: 0;width: 100%;}.amp-wp-meta {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;display: inline-block;flex: 2 1 50%;font-size: .875em;line-height: 1.7em;margin: 0;padding: 0;}.ampforwp-meta-info{margin-top: 0px;}.amp-wp-article-header .amp-wp-meta:last-of-type {text-align: right;float:right;display:initial}.amp-wp-article-header .amp-wp-meta:first-of-type {text-align: left;}.amp-wp-byline amp-img,.amp-wp-byline .amp-wp-author {display: inline-block;vertical-align: middle;}.amp-wp-byline amp-img {border: 1px solid <?php echo sanitize_hex_color( $link_color ); ?>;border-radius: 50%;position: relative;margin-right: 6px;}.amp-wp-posted-on {text-align: right;}.hide-meta-info{ display: none; }
71
  .amp-wp-article-featured-image {margin: 1.5em 16px 1.5em;}.amp-wp-article-featured-image amp-img {margin: 0 auto;}.amp-wp-article-featured-image.wp-caption .wp-caption-text, .ampforwp-gallery-item .wp-caption-text {margin: 0 18px;}.amp-wp-frontpage .the_content {padding: 10px;}
@@ -74,12 +76,21 @@ blockquote {color: <?php echo sanitize_hex_color( $text_color ); ?>;background:
74
  <?php if ( isset($redux_builder_amp['ampforwp-disqus-comments-support']) && $redux_builder_amp['ampforwp-disqus-comments-support'] ) {?>
75
  .amp-disqus-comments { text-align:center } .amp-disqus-comments {padding: 15px;}.amp-disqus-comments amp-iframe{background: none;} <?php
76
  } ?>
77
- .wp-caption {padding: 0;}.wp-caption.alignleft {margin-right: 16px;}.wp-caption.alignright { margin-left: 16px;}.wp-caption-text {border-bottom: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 0;padding: .66em 10px .75em;text-align: center;} amp-carousel {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em;} amp-iframe,amp-youtube,amp-instagram,amp-vine {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em; } .amp-wp-article-content amp-carousel amp-img {border: none;} amp-carousel > amp-img > img {object-fit: contain; } .amp-wp-iframe-placeholder { background: <?php echo sanitize_hex_color( $border_color ); ?> url( <?php echo esc_url( $get_customizer->get( 'placeholder_image_url' ) ); ?> ) no-repeat center 40%;background-size: 48px 48px;min-height: 48px;} .amp-wp-article-footer .amp-wp-meta {display: block;} .amp-wp-tags{ list-style-type: none; padding: 0; margin: 0 0 9px 0; display: inline-flex; } .amp-wp-tags li{display:inline; padding-left: 5px; } .amp-wp-tax-category span{margin-right:5px;} .amp-wp-tax-category, .amp-wp-tax-tag { color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 1.5em 16px;}.ampforwp-comment-button {margin-bottom:20px;} .amp-wp-comments-link {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;text-align: center;margin: 2.25em 0 1.5em;} .amp-wp-comments-link a { border-style: solid;border-color: <?php echo sanitize_hex_color( $border_color ); ?>;border-width: 1px 1px 2px;border-radius: 4px;background-color: transparent;color: <?php echo sanitize_hex_color( $link_color ); ?>;cursor: pointer; display: block;font-size: 14px;font-weight: 600;line-height: 18px;margin: 0 auto;max-width: 200px;padding: 11px 16px;text-decoration: none;width: 50%;-webkit-transition: background-color 0.2s ease;transition: background-color 0.2s ease;} .page-title {margin: 0 15px; font-size: 1.17em; }.amp-sub-archives li{width: 50%;} .amp-sub-archives ul{padding: 0;list-style: none;display: flex;font-size: 12px;line-height: 1.2;margin: 5px 1.5em 10px 1.5em;} .author-archive amp-img{border-radius: 50%;margin: 0px 8px 10px;display: block;}.author-archive{float: left;} .amp-wp-content.taxonomy-description{margin: 0 15px;} .amp-wp-footer {border-top: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;margin: calc(1.5em - 1px) 0 0;padding-bottom:25px;}
 
 
 
78
  .amp-wp-footer div{margin:0 auto;max-width:calc(840px - 32px);padding:1.25em 16px;position:relative}.amp-wp-footer h2{font-size:1em;line-height:1.375em;margin:0 0 .5em}
79
  .amp-wp-footer p {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .8em;line-height: 1.5em;margin: 0 15px 0 0;}
80
- .amp-wp-footer a{text-decoration:none}.copyright_txt{float:left}.back-to-top{float:right}.amp-wp-header .nav_container{float: right;top: 16px;line-height: 1; right: 65px; position: absolute}.toggle-text{position:absolute;right:0;height:22px;width:28px}.toggle-text span{display:block;position:absolute;height:2px;width:25px;background:#fff;border-radius:19px;opacity:1;left:0}.toggle-text span:nth-child(2){top:9px}.toggle-text span:nth-child(3){top:18px}.amp-wp-home .amp-wp-meta{margin:5px 0}.amp-wp-home .amp-wp-content p{display:inline-block;width:100%}.ampforwp-custom-index .amp-wp-title a {text-decoration: none;color: <?php echo sanitize_hex_color( $text_color ); ?>;}.comment-button-wrapper a,.related_posts ol{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.amp-wp-meta{display:flex}.amp-wp-posted-on{display:initial}
 
 
 
 
81
  <?php if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>
82
- #pagination .next,#pagination .prev{display:inline-block}.ampforwp-custom-index .amp-wp-content{margin-bottom:30px}.pagination-holder{margin:1.5em 16px}#pagination .next{float:right}.amp-wp-home .amp-wp-content p{display:inline}.home-post-image{float:right;margin:0 0 10px 20px}.amp-wp-article-content amp-img{max-width:100%}.amp-wp-meta.amp-wp-tax-category,.amp-wp-meta.amp-wp-tax-tag{margin:0}.amp-wp-meta.amp-wp-tax-tag{display:initial}.ampforwp-social-icons{margin:1.5em 16px}.amp-social-icon{ width: 50px; height: 28px; display: inline-block; background: #5cbe4a;position: relative; top: -8px; padding-top: 0px; margin-bottom:5px; }
 
 
83
  .amp-social-icon amp-img{ top: 4px; }
84
  amp-social-share[type="facebookmessenger"] {
85
  background-image: url(https://img.icons8.com/color/100/000000/facebook-messenger.png);
@@ -128,11 +139,21 @@ amp-social-share[type="facebookmessenger"] {
128
  .custom-amp-socialsharing-mewe{background:#b8d6e6}
129
  .amp-social-mewe{background:#b8d6e6}
130
  <?php } ?>
 
 
 
 
 
 
131
  .comment-button-wrapper a{border-style:solid;border-color:#c2c2c2;border-width:1px 1px 2px;border-radius:4px;background-color:transparent;color:#0a89c0;cursor:pointer;display:block;font-size:14px;font-weight:600;text-align:center;line-height:18px;margin:0 auto;max-width:200px;padding:11px 16px;text-decoration:none;width:50%;-webkit-transition:background-color .2s ease;transition:background-color .2s ease}.close-nav,.comments_list div,.related_posts ol li,.toggle-navigation ul,.toggle-navigationv2 ul li a{display:inline-block}main .amp-wp-content.comments_list{background:0 0;box-shadow:none;max-width:1030px}.comments_list h3{font-size:14px;font-weight:700;letter-spacing:.4px;margin:25px 0 10px;color:#333}.comments_list{margin:2.5em 16px}.comments_list ul{margin:0;padding:0}.comments_list ul.children{padding-bottom:10px;margin-left:4%;width:96%}
132
 
133
 
134
  .comments_list ul li p{margin:0;font-size:14px;clear:both;padding-top:5px; word-break:break-word;}
135
- .comments_list ul li{font-family:sans-serif;font-size:11px;list-style-type:none;margin-bottom:12px;background:#fefefe;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:0 2px 3px rgba(0,0,0,.05);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.05);box-shadow:0 2px 3px rgba(0,0,0,.05);padding:0;max-width:1000px;width:96%}.comments_list ul li .says{margin-right:4px}.comments_list li li,.comments_list li li li{margin:20px 20px 10px}.comments_list ul li p{font-family:Merriweather,'Times New Roman',Times,Serif}.comments_list ul li .comment-body{padding:10px 0 15px}.comment-author{float:left}.single-post footer.comment-meta{padding-bottom:0; line-height: 1.9;}.comments_list li li{background:#f7f7f7;box-shadow:none;border:1px solid #eee} .page-numbers{ padding: 9px 10px; background: #fff; font-size: 14px; } .comment-author-img{float: left; margin-right: 5px; border-radius: 60px;} .comment-content amp-img{max-width: 300px;}<?php } ?>amp-sidebar{width:250px}.amp-sidebar-image{line-height:100px;vertical-align:middle}.amp-close-image{top:15px;left:225px;cursor:pointer}.toggle-navigationv2 ul{list-style-type:none;margin:0;font-family:sans-serif;padding:0}.toggle-navigationv2 ul ul li a{padding-left:35px;background:#fff;display:inline-block}.toggle-navigationv2 ul li a{padding:10px 15px 10px 25px;width:100%;text-decoration:none;background:#fafafa;font-size:13px;border-bottom:1px solid #efefef}.close-nav{font-size:12px;font-family:sans-serif;background:rgba(0,0,0,.25);letter-spacing:1px;padding:10px;border-radius:100px;line-height:8px;margin:14px;left:191px;color:#fff}.close-nav:hover{background:rgba(0,0,0,.45)}.toggle-navigation ul{list-style-type:none;margin:0;padding:0;width:100%}.menu-all-pages-container:after{content:"";clear:both}.toggle-navigation ul li{font-size:13px;border-bottom:1px solid rgba(0,0,0,.11);padding:11px 0;width:25%;float:left;text-align:center;margin-top:6px}.toggle-navigation ul ul{display:none}.toggle-navigation ul li a{color:#eee;padding:15px}.toggle-navigation{display:none;background:#444}.nav_container:hover+.toggle-navigation,.toggle-navigation:active,.toggle-navigation:focus,.toggle-navigation:hover{display:inline-block;width:100%}#amp-user-notification1 p{display:inline-block}amp-user-notification{padding:5px;text-align:center;background:#fff;border-top:1px solid} amp-user-notification button {padding: 8px 10px;background: <?php echo sanitize_hex_color( $header_background_color ); ?>;color: <?php echo sanitize_hex_color( $header_color ); ?>;margin-left: 5px;border: 0;}.amp-not-privacy{color:<?php echo sanitize_hex_color( $header_background_color ); ?>;text-decoration: none;font-size: 15px;}amp-user-notification button:hover {cursor: pointer} .amp-ad-wrapper {text-align: center} <?php if( ampforwp_get_setting('enable-single-social-icons') == true && is_single() ) { ?>
 
 
 
 
136
  body {padding-bottom: 43px;}
137
  .body.single-post .sticky_social{z-index:99999;}
138
  .body.single-post .adsforwp-stick-ad, .body.single-post amp-sticky-ad{padding-top:4px;padding-bottom:52px;}
@@ -147,7 +168,7 @@ amp-social-share[type="facebookmessenger"] {
147
  <?php if( ampforwp_get_setting('ampforwp-advertisement-sticky-type') == 3) {?>
148
  .btt{z-index:9999;}
149
  <?php } // advanced ads type 3 ends here ?>
150
-
151
  .whatsapp-share-icon{width:50px;height:28px;display:inline-block;background:#5cbe4a;padding:4px 0;position:relative;top:-4px}.amp-wp-tax-category span:first-child:after{content:' '}.amp-wp-tax-category span:after,.amp-wp-tax-tag span:after{content:', '}.amp-wp-tax-category span:last-child:after,.amp-wp-tax-tag span:last-child:after{content:' '}pre{white-space:pre-wrap}.amp-ad-wrapper.amp_ad_1{padding-top:20px}
152
  .amp-wp-content-loop{width:100%}
153
  .amp-wp-content-loop ul{margin:0}
@@ -158,6 +179,8 @@ amp-social-share[type="facebookmessenger"] {
158
  figure.aligncenter amp-img {
159
  margin: 0 auto;
160
  }
 
 
161
  /* Footer */
162
  <?php $footer_back_color = $redux_builder_amp['ampforwp-footer-background-color-1']['color'];
163
  if (empty($footer_back_color)) {
@@ -190,6 +213,7 @@ a.btt:hover {
190
  .searchmenu button{ background:transparent; border:none }
191
  .closebutton{ background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 30px; width: 32px; height: 32px; font-size: 12px; text-align: center; position: absolute; top: 12px; right: 20px; outline:none }
192
  amp-lightbox{ background: rgba(0, 0, 0,0.85); }
 
193
  <?php if( true == ampforwp_get_setting('ampforwp-single-select-type-of-related') && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ){ ?>
194
  .related_posts span{display: block;}.related_posts ol{list-style-type:none;margin:0;padding:0}.related_posts ol li{width:100%;margin-bottom:12px;padding:0}.related_posts .related_link a{color:#000;font-size:18px}.related_posts ol li amp-img{width:100px;float:left;margin-right:15px}.related_posts ol li p{font-size:12px;color:#999;line-height:1.2;margin:7px 0 0}.no_related_thumbnail{padding:15px 18px} main .amp-wp-content.relatedpost{background:0 0;box-shadow:none;max-width:1030px}.relatedpost{margin:2em 16px}.related_posts span{font-size:14px;font-weight:700;letter-spacing:.4px;margin:25px 0 10px;color:#333; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;}
195
  .related_posts ol li{display:inline-block}
@@ -263,7 +287,8 @@ amp-carousel{direction: ltr;} .tt-lb{float:right;margin-left:5px;}
263
  @media(max-width:768px){
264
  .amp-wp-content.widget-wrapper{margin: 15px;}
265
  }
266
- <?php } ?>
 
267
  <?php if ($redux_builder_amp['ampforwp-callnow-button']) { ?>
268
  .callnow{ position: relative; top: -27px; right: 100px; }
269
  .callnow a:before { content: ""; position: absolute; right: 23px; width: 5px; height: 11px; border-width: 6px 0 6px 3px; border-style: solid; border-color:<?php echo ampforwp_sanitize_color($redux_builder_amp['amp-opt-color-rgba-colorscheme-call']['color']); ?>; background: transparent; transform: rotate(-30deg); box-sizing: initial; border-top-left-radius: 3px 5px; border-bottom-left-radius: 3px 5px; }
@@ -290,7 +315,7 @@ if( !is_home() && ( (is_single() && true == ampforwp_get_setting('ampforwp-bread
290
  .amp-carousel-container {position: relative;width: 100%;height: 100%;}
291
  .amp-carousel-img img {object-fit: contain;}
292
  /* Slide Navigation code */
293
- .amp-menu li{position:relative}
294
  .amp-menu li.menu-item-has-children ul{display:none;margin:0;background:#222}
295
  .amp-menu li.menu-item-has-children ul ul{background:#444}
296
  .amp-menu input{display:none;}
66
  .amp-wp-meta,.amp-wp-header .ampforwp-logo-area,.amp-wp-title,.wp-caption-text,.amp-wp-tax-category,.amp-wp-tax-tag,.amp-wp-comments-link,.amp-wp-footer p,.back-to-top {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;}
67
  .amp-wp-header {background-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;}
68
  .amp-wp-header .ampforwp-logo-area {color: <?php echo sanitize_hex_color( $header_color ); ?>;font-size: 1em;font-weight: 400;margin: 0 auto;max-width: calc(840px - 32px);padding: .875em 16px;position: relative;} .amp-wp-header .amp-wp-site-icon {background-color: <?php echo sanitize_hex_color( $header_color ); ?>;border: 1px solid <?php echo sanitize_hex_color( $header_color ); ?>;border-radius: 50%;position: absolute;right: 18px;top: 10px;}
69
+
70
+ <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
71
  .amp-wp-article {color: <?php echo sanitize_hex_color( $text_color ); ?>;font-weight: 400;margin: 1.5em auto;max-width: 840px;overflow-wrap: break-word;word-wrap: break-word;} .amp-wp-article-header {align-items: center;align-content: stretch;display: flex;flex-wrap: wrap;justify-content: space-between;margin: 1.5em 16px 1.5em;}
72
  .amp-wp-title {color: <?php echo sanitize_hex_color( $text_color ); ?>;display: block;flex: 1 0 100%;font-weight: 900;font-size:1.5em;margin: 0;width: 100%;}.amp-wp-meta {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;display: inline-block;flex: 2 1 50%;font-size: .875em;line-height: 1.7em;margin: 0;padding: 0;}.ampforwp-meta-info{margin-top: 0px;}.amp-wp-article-header .amp-wp-meta:last-of-type {text-align: right;float:right;display:initial}.amp-wp-article-header .amp-wp-meta:first-of-type {text-align: left;}.amp-wp-byline amp-img,.amp-wp-byline .amp-wp-author {display: inline-block;vertical-align: middle;}.amp-wp-byline amp-img {border: 1px solid <?php echo sanitize_hex_color( $link_color ); ?>;border-radius: 50%;position: relative;margin-right: 6px;}.amp-wp-posted-on {text-align: right;}.hide-meta-info{ display: none; }
73
  .amp-wp-article-featured-image {margin: 1.5em 16px 1.5em;}.amp-wp-article-featured-image amp-img {margin: 0 auto;}.amp-wp-article-featured-image.wp-caption .wp-caption-text, .ampforwp-gallery-item .wp-caption-text {margin: 0 18px;}.amp-wp-frontpage .the_content {padding: 10px;}
76
  <?php if ( isset($redux_builder_amp['ampforwp-disqus-comments-support']) && $redux_builder_amp['ampforwp-disqus-comments-support'] ) {?>
77
  .amp-disqus-comments { text-align:center } .amp-disqus-comments {padding: 15px;}.amp-disqus-comments amp-iframe{background: none;} <?php
78
  } ?>
79
+ .wp-caption {padding: 0;}.wp-caption.alignleft {margin-right: 16px;}.wp-caption.alignright { margin-left: 16px;}.wp-caption-text {border-bottom: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 0;padding: .66em 10px .75em;text-align: center;} amp-carousel {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em;} amp-iframe,amp-youtube,amp-instagram,amp-vine {background: <?php echo sanitize_hex_color( $border_color ); ?>;margin: 0 -16px 1.5em; } .amp-wp-article-content amp-carousel amp-img {border: none;} amp-carousel > amp-img > img {object-fit: contain; } .amp-wp-iframe-placeholder { background: <?php echo sanitize_hex_color( $border_color ); ?> url( <?php echo esc_url( $get_customizer->get( 'placeholder_image_url' ) ); ?> ) no-repeat center 40%;background-size: 48px 48px;min-height: 48px;} .amp-wp-article-footer .amp-wp-meta {display: block;} .amp-wp-tags{ list-style-type: none; padding: 0; margin: 0 0 9px 0; display: inline-flex; } .amp-wp-tags li{display:inline; padding-left: 5px; } .amp-wp-tax-category span{margin-right:5px;} .amp-wp-tax-category, .amp-wp-tax-tag { color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;margin: 1.5em 16px;}.ampforwp-comment-button {margin-bottom:20px;} .amp-wp-comments-link {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .875em;line-height: 1.5em;text-align: center;margin: 2.25em 0 1.5em;} .amp-wp-comments-link a { border-style: solid;border-color: <?php echo sanitize_hex_color( $border_color ); ?>;border-width: 1px 1px 2px;border-radius: 4px;background-color: transparent;color: <?php echo sanitize_hex_color( $link_color ); ?>;cursor: pointer; display: block;font-size: 14px;font-weight: 600;line-height: 18px;margin: 0 auto;max-width: 200px;padding: 11px 16px;text-decoration: none;width: 50%;-webkit-transition: background-color 0.2s ease;transition: background-color 0.2s ease;} .page-title {margin: 0 15px; font-size: 1.17em; }.amp-sub-archives li{width: 50%;} .amp-sub-archives ul{padding: 0;list-style: none;display: flex;font-size: 12px;line-height: 1.2;margin: 5px 1.5em 10px 1.5em;} .author-archive amp-img{border-radius: 50%;margin: 0px 8px 10px;display: block;}.author-archive{float: left;} .amp-wp-content.taxonomy-description{margin: 0 15px;}
80
+ <?php } // AMP Woocommerce CSS Ends ?>
81
+
82
+ .amp-wp-footer {border-top: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;margin: calc(1.5em - 1px) 0 0;padding-bottom:25px;}
83
  .amp-wp-footer div{margin:0 auto;max-width:calc(840px - 32px);padding:1.25em 16px;position:relative}.amp-wp-footer h2{font-size:1em;line-height:1.375em;margin:0 0 .5em}
84
  .amp-wp-footer p {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;font-size: .8em;line-height: 1.5em;margin: 0 15px 0 0;}
85
+ .amp-wp-footer a{text-decoration:none}.copyright_txt{float:left}.back-to-top{float:right}.amp-wp-header .nav_container{float: right;top: 16px;line-height: 1; right: 65px; position: absolute}.toggle-text{position:absolute;right:0;height:22px;width:28px}.toggle-text span{display:block;position:absolute;height:2px;width:25px;background:#fff;border-radius:19px;opacity:1;left:0}.toggle-text span:nth-child(2){top:9px}.toggle-text span:nth-child(3){top:18px}
86
+
87
+ <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
88
+ .amp-wp-home .amp-wp-meta{margin:5px 0}
89
+ .amp-wp-home .amp-wp-content p{display:inline-block;width:100%}.ampforwp-custom-index .amp-wp-title a {text-decoration: none;color: <?php echo sanitize_hex_color( $text_color ); ?>;}.comment-button-wrapper a,.related_posts ol{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.amp-wp-meta{display:flex}.amp-wp-posted-on{display:initial}
90
  <?php if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>
91
+ #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}
92
+ <?php } // AMP Woocommerce CSS Ends ?>
93
+ .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; }
94
  .amp-social-icon amp-img{ top: 4px; }
95
  amp-social-share[type="facebookmessenger"] {
96
  background-image: url(https://img.icons8.com/color/100/000000/facebook-messenger.png);
139
  .custom-amp-socialsharing-mewe{background:#b8d6e6}
140
  .amp-social-mewe{background:#b8d6e6}
141
  <?php } ?>
142
+ <?php if ( true == ampforwp_get_setting('enable-single-flipboard-share') ) { ?>
143
+ .custom-amp-socialsharing-flipboard{background:#f52828}
144
+ .amp-social-flipboard{background:#f52828;text-align: center;}
145
+ .amp-social-flipboard amp-img , .amp-social-icon.custom-amp-socialsharing-flipboard amp-img {top: 2px;}
146
+ <?php } ?>
147
+ <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
148
  .comment-button-wrapper a{border-style:solid;border-color:#c2c2c2;border-width:1px 1px 2px;border-radius:4px;background-color:transparent;color:#0a89c0;cursor:pointer;display:block;font-size:14px;font-weight:600;text-align:center;line-height:18px;margin:0 auto;max-width:200px;padding:11px 16px;text-decoration:none;width:50%;-webkit-transition:background-color .2s ease;transition:background-color .2s ease}.close-nav,.comments_list div,.related_posts ol li,.toggle-navigation ul,.toggle-navigationv2 ul li a{display:inline-block}main .amp-wp-content.comments_list{background:0 0;box-shadow:none;max-width:1030px}.comments_list h3{font-size:14px;font-weight:700;letter-spacing:.4px;margin:25px 0 10px;color:#333}.comments_list{margin:2.5em 16px}.comments_list ul{margin:0;padding:0}.comments_list ul.children{padding-bottom:10px;margin-left:4%;width:96%}
149
 
150
 
151
  .comments_list ul li p{margin:0;font-size:14px;clear:both;padding-top:5px; word-break:break-word;}
152
+ .comments_list ul li{font-family:sans-serif;font-size:11px;list-style-type:none;margin-bottom:12px;background:#fefefe;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:0 2px 3px rgba(0,0,0,.05);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.05);box-shadow:0 2px 3px rgba(0,0,0,.05);padding:0;max-width:1000px;width:96%}.comments_list ul li .says{margin-right:4px}.comments_list li li,.comments_list li li li{margin:20px 20px 10px}.comments_list ul li p{font-family:Merriweather,'Times New Roman',Times,Serif}.comments_list ul li .comment-body{padding:10px 0 15px}.comment-author{float:left}.single-post footer.comment-meta{padding-bottom:0; line-height: 1.9;}.comments_list li li{background:#f7f7f7;box-shadow:none;border:1px solid #eee} .page-numbers{ padding: 9px 10px; background: #fff; font-size: 14px; } .comment-author-img{float: left; margin-right: 5px; border-radius: 60px;} .comment-content amp-img{max-width: 300px;}<?php } ?>
153
+ <?php } // AMP Woocommerce CSS Ends ?>
154
+
155
+ /** Menu CSS **/
156
+ amp-sidebar{width:250px}.amp-sidebar-image{line-height:100px;vertical-align:middle}.amp-close-image{top:15px;left:225px;cursor:pointer}.toggle-navigationv2 ul{list-style-type:none;margin:0;font-family:sans-serif;padding:0}.toggle-navigationv2 ul ul li a{padding-left:35px;background:#fff;display:inline-block}.toggle-navigationv2 ul li a{padding:10px 15px 10px 25px;width:100%;text-decoration:none;background:#fafafa;font-size:13px;border-bottom:1px solid #efefef}.close-nav{font-size:12px;font-family:sans-serif;background:rgba(0,0,0,.25);letter-spacing:1px;padding:10px;border-radius:100px;line-height:8px;margin:14px;left:191px;color:#fff}.close-nav:hover{background:rgba(0,0,0,.45)}.toggle-navigation ul{list-style-type:none;margin:0;padding:0;width:100%}.menu-all-pages-container:after{content:"";clear:both}.toggle-navigation ul li{font-size:13px;border-bottom:1px solid rgba(0,0,0,.11);padding:11px 0;width:25%;float:left;text-align:center;margin-top:6px}.toggle-navigation ul ul{display:none}.toggle-navigation ul li a{color:#eee;padding:15px}.toggle-navigation{display:none;background:#444}.nav_container:hover+.toggle-navigation,.toggle-navigation:active,.toggle-navigation:focus,.toggle-navigation:hover{display:inline-block;width:100%}#amp-user-notification1 p{display:inline-block}amp-user-notification{padding:5px;text-align:center;background:#fff;border-top:1px solid} amp-user-notification button {padding: 8px 10px;background: <?php echo sanitize_hex_color( $header_background_color ); ?>;color: <?php echo sanitize_hex_color( $header_color ); ?>;margin-left: 5px;border: 0;}.amp-not-privacy{color:<?php echo sanitize_hex_color( $header_background_color ); ?>;text-decoration: none;font-size: 15px;}amp-user-notification button:hover {cursor: pointer} .amp-ad-wrapper {text-align: center} <?php if( ampforwp_get_setting('enable-single-social-icons') == true && is_single() ) { ?>
157
  body {padding-bottom: 43px;}
158
  .body.single-post .sticky_social{z-index:99999;}
159
  .body.single-post .adsforwp-stick-ad, .body.single-post amp-sticky-ad{padding-top:4px;padding-bottom:52px;}
168
  <?php if( ampforwp_get_setting('ampforwp-advertisement-sticky-type') == 3) {?>
169
  .btt{z-index:9999;}
170
  <?php } // advanced ads type 3 ends here ?>
171
+ <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
172
  .whatsapp-share-icon{width:50px;height:28px;display:inline-block;background:#5cbe4a;padding:4px 0;position:relative;top:-4px}.amp-wp-tax-category span:first-child:after{content:' '}.amp-wp-tax-category span:after,.amp-wp-tax-tag span:after{content:', '}.amp-wp-tax-category span:last-child:after,.amp-wp-tax-tag span:last-child:after{content:' '}pre{white-space:pre-wrap}.amp-ad-wrapper.amp_ad_1{padding-top:20px}
173
  .amp-wp-content-loop{width:100%}
174
  .amp-wp-content-loop ul{margin:0}
179
  figure.aligncenter amp-img {
180
  margin: 0 auto;
181
  }
182
+ <?php } // AMP Woocommerce CSS Ends ?>
183
+
184
  /* Footer */
185
  <?php $footer_back_color = $redux_builder_amp['ampforwp-footer-background-color-1']['color'];
186
  if (empty($footer_back_color)) {
213
  .searchmenu button{ background:transparent; border:none }
214
  .closebutton{ background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 30px; width: 32px; height: 32px; font-size: 12px; text-align: center; position: absolute; top: 12px; right: 20px; outline:none }
215
  amp-lightbox{ background: rgba(0, 0, 0,0.85); }
216
+ <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
217
  <?php if( true == ampforwp_get_setting('ampforwp-single-select-type-of-related') && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ){ ?>
218
  .related_posts span{display: block;}.related_posts ol{list-style-type:none;margin:0;padding:0}.related_posts ol li{width:100%;margin-bottom:12px;padding:0}.related_posts .related_link a{color:#000;font-size:18px}.related_posts ol li amp-img{width:100px;float:left;margin-right:15px}.related_posts ol li p{font-size:12px;color:#999;line-height:1.2;margin:7px 0 0}.no_related_thumbnail{padding:15px 18px} main .amp-wp-content.relatedpost{background:0 0;box-shadow:none;max-width:1030px}.relatedpost{margin:2em 16px}.related_posts span{font-size:14px;font-weight:700;letter-spacing:.4px;margin:25px 0 10px;color:#333; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;}
219
  .related_posts ol li{display:inline-block}
287
  @media(max-width:768px){
288
  .amp-wp-content.widget-wrapper{margin: 15px;}
289
  }
290
+ <?php }
291
+ } // AMP Woocommerce CSS Ends ?>
292
  <?php if ($redux_builder_amp['ampforwp-callnow-button']) { ?>
293
  .callnow{ position: relative; top: -27px; right: 100px; }
294
  .callnow a:before { content: ""; position: absolute; right: 23px; width: 5px; height: 11px; border-width: 6px 0 6px 3px; border-style: solid; border-color:<?php echo ampforwp_sanitize_color($redux_builder_amp['amp-opt-color-rgba-colorscheme-call']['color']); ?>; background: transparent; transform: rotate(-30deg); box-sizing: initial; border-top-left-radius: 3px 5px; border-bottom-left-radius: 3px 5px; }
315
  .amp-carousel-container {position: relative;width: 100%;height: 100%;}
316
  .amp-carousel-img img {object-fit: contain;}
317
  /* Slide Navigation code */
318
+ .amp-menu li{position:relative;margin:0;}
319
  .amp-menu li.menu-item-has-children ul{display:none;margin:0;background:#222}
320
  .amp-menu li.menu-item-has-children ul ul{background:#444}
321
  .amp-menu input{display:none;}
templates/design-manager/design-2/archive.php CHANGED
@@ -61,7 +61,11 @@
61
  <?php }
62
  }
63
  }
64
- the_archive_title( '<h2 class="page-title">', '</h2>' );
 
 
 
 
65
  $arch_desc = $sanitizer->get_amp_content();
66
  if( $arch_desc ) {
67
  if ( get_query_var( 'paged' ) ) {
@@ -119,7 +123,13 @@
119
  <?php } ?>
120
 
121
  <div class="amp-wp-post-content">
122
- <h3 class="amp-wp-title"><a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"><?php the_title(); ?></a></h3>
 
 
 
 
 
 
123
  <?php if( ampforwp_check_excerpt() ) {
124
  $class = 'large-screen-excerpt';
125
  if ( true == $redux_builder_amp['excerpt-option-design-2'] ) {
61
  <?php }
62
  }
63
  }
64
+ if(ampforwp_default_logo()){
65
+ the_archive_title( '<h1 class="page-title">', '</h1>' );
66
+ }else{
67
+ the_archive_title( '<h2 class="page-title">', '</h2>' );
68
+ }
69
  $arch_desc = $sanitizer->get_amp_content();
70
  if( $arch_desc ) {
71
  if ( get_query_var( 'paged' ) ) {
123
  <?php } ?>
124
 
125
  <div class="amp-wp-post-content">
126
+ <?php
127
+ $title_name = '<a href="'.esc_url( $ampforwp_amp_post_url ).'">'.get_the_title().'</a>';
128
+ if( ampforwp_default_logo() ){ ?>
129
+ <h2 class="amp-wp-title"><?php echo $title_name; ?></h2>
130
+ <?php }else{ ?>
131
+ <h3 class="amp-wp-title"><?php echo $title_name ?></h3>
132
+ <?php } ?>
133
  <?php if( ampforwp_check_excerpt() ) {
134
  $class = 'large-screen-excerpt';
135
  if ( true == $redux_builder_amp['excerpt-option-design-2'] ) {
templates/design-manager/design-2/elements/social-icons.php CHANGED
@@ -162,6 +162,13 @@ if ( is_single() || (is_page() && isset($redux_builder_amp['ampforwp-page-social
162
  </div>
163
  </a>
164
  <?php } ?>
 
 
 
 
 
 
 
165
  </div>
166
  <?php } ?>
167
  <?php do_action('ampforwp_after_social_icons_hook',$this);
162
  </div>
163
  </a>
164
  <?php } ?>
165
+ <?php if ( true == ampforwp_get_setting('enable-single-flipboard-share') ) { ?>
166
+ <a title="flipboard share" <?php ampforwp_nofollow_social_links(); ?> href="https://share.flipboard.com/bookmarklet/popout?v=<?php echo esc_html(get_the_title(ampforwp_get_the_ID())); ?>&url=<?php echo urlencode(esc_url($amp_permalink)); ?>" target="_blank">
167
+ <div class="amp-social-icon amp-social-flipboard">
168
+ <amp-img src="<?php echo esc_url(AMPFORWP_IMAGE_DIR . '/flipboard.png') ?>" width="15" height="15" />
169
+ </div>
170
+ </a>
171
+ <?php } ?>
172
  </div>
173
  <?php } ?>
174
  <?php do_action('ampforwp_after_social_icons_hook',$this);
templates/design-manager/design-2/search.php CHANGED
@@ -55,7 +55,11 @@
55
  };?>
56
 
57
  <div class="amp-wp-content amp-archive-heading">
58
- <h2 class="page-title"><?php echo esc_attr(ampforwp_translation($redux_builder_amp['amp-translator-search-text'], 'You searched for:' ) . ' ' . get_search_query());?></h2>
 
 
 
 
59
  </div>
60
  <?php if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();
61
  $ampforwp_amp_post_url = ampforwp_url_controller( get_permalink() ); ?>
@@ -67,7 +71,13 @@
67
  <?php amp_loop_image($image_args); ?>
68
  <?php } ?>
69
  <div class="amp-wp-post-content">
70
- <h3 class="amp-wp-title"><a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"><?php the_title(); ?></a></h3>
 
 
 
 
 
 
71
  <?php if( ampforwp_check_excerpt() ) {
72
  $class = 'large-screen-excerpt';
73
  if ( true == $redux_builder_amp['excerpt-option-design-2'] ) {
55
  };?>
56
 
57
  <div class="amp-wp-content amp-archive-heading">
58
+ <?php if( ampforwp_default_logo() ){ ?>
59
+ <h1 class="page-title"><?php echo ampforwp_translation($redux_builder_amp['amp-translator-search-text'], 'You searched for:' ) . ' ' . get_search_query();?></h1>
60
+ <?php }else{ ?>
61
+ <h2 class="page-title"><?php echo esc_attr(ampforwp_translation($redux_builder_amp['amp-translator-search-text'], 'You searched for:' ) . ' ' . get_search_query());?></h2>
62
+ <?php } ?>
63
  </div>
64
  <?php if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();
65
  $ampforwp_amp_post_url = ampforwp_url_controller( get_permalink() ); ?>
71
  <?php amp_loop_image($image_args); ?>
72
  <?php } ?>
73
  <div class="amp-wp-post-content">
74
+ <?php
75
+ $title_name = '<a href="'.esc_url( $ampforwp_amp_post_url ).'">'.get_the_title().'</a>';
76
+ if( ampforwp_default_logo() ){ ?>
77
+ <h2 class="amp-wp-title"><?php echo $title_name; ?></h2>
78
+ <?php }else{ ?>
79
+ <h3 class="amp-wp-title"><?php echo $title_name ?></h3>
80
+ <?php } ?>
81
  <?php if( ampforwp_check_excerpt() ) {
82
  $class = 'large-screen-excerpt';
83
  if ( true == $redux_builder_amp['excerpt-option-design-2'] ) {
templates/design-manager/design-2/style.php CHANGED
@@ -99,12 +99,14 @@ amp-lightbox{ background: rgba(0, 0, 0,0.85); }
99
  #searchsubmit{opacity:0}
100
  .hide{display:none}
101
  .headerlogo a, [class*=icono-]{ color: #F42F42 }
 
102
  /* Pagination */
103
  .amp-wp-content.pagination-holder { background: none; padding: 0; box-shadow: none; height: auto; min-height: auto; }
104
  #pagination{ width: 100%; margin-top: 15px; }
105
  #pagination .next{ float: right; margin-bottom: 10px; }
106
  #pagination .prev{ float: left }
107
  #pagination .next a, #pagination .prev a{ margin-bottom: 12px; background: #fefefe; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; -moz-box-shadow: 0 2px 3px rgba(0,0,0,.05); -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05); box-shadow: 0 2px 3px rgba(0,0,0,.05); padding: 11px 15px; font-size: 12px; color: #666; }
 
108
  <?php
109
  if(ampforwp_get_setting('enable-single-social-icons') == true && is_single() || is_page() ){?>
110
  /* Sticky Social bar in Single */
@@ -126,6 +128,12 @@ amp-social-share[type="facebookmessenger"] {
126
  .custom-amp-socialsharing-mewe{background:#b8d6e6}
127
  .amp-social-mewe{background:#b8d6e6}
128
  <?php } ?>
 
 
 
 
 
 
129
  <?php if ( true == ampforwp_get_setting('enable-single-vk-share') ) { ?>
130
  .ampforwp-social-icons .custom-amp-socialsharing-vk, .amp-social-vk{background:#45668e}
131
  <?php } ?>
@@ -204,6 +212,10 @@ a.btt:hover {
204
  .nav_container {
205
  background: <?php echo ampforwp_sanitize_color($header_bg_clr); ?>
206
  }
 
 
 
 
207
  <?php if(is_singular() || is_home() && true == ampforwp_get_setting('amp-frontpage-select-option') && ampforwp_get_blog_details() == false && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ){ ?>
208
  /* Single */
209
  .comment-button-wrapper{ margin-bottom: 0px; margin-top: 60px; text-align:center }
@@ -402,6 +414,7 @@ if( ampforwp_get_setting('ampforwp-advertisement-sticky-type') == 3) {?>
402
  @media (min-width: 768px) and (max-width: 1600px) {.tablepress { overflow-x: none; } }
403
  @media (min-width: 320px) and (max-width: 767px) {.tablepress { display: inline-block; overflow-x: scroll; } }
404
  <?php } ?>
 
405
  .design_2_wrapper .amp-loop-list .amp-wp-meta {display: none;}
406
  <?php if(!is_home() && ((is_single() && true == ampforwp_get_setting('ampforwp-bread-crumb') ) || (is_page() && ampforwp_get_setting('ampforwp_pages_breadcrumbs')) ) && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) { ?>
407
  .breadcrumb{line-height: 1;margin-bottom:6px;}
@@ -418,7 +431,7 @@ if( ampforwp_get_setting('ampforwp-advertisement-sticky-type') == 3) {?>
418
  .amp-carousel-container {position: relative;width: 100%;height: 100%;}
419
  .amp-carousel-img img {object-fit: contain;}
420
  /* Slide Navigation code */
421
- .amp-menu li{position:relative}
422
  .amp-menu li.menu-item-has-children ul{display:none;margin:0;background:#222}
423
  .amp-menu li.menu-item-has-children ul ul{background:#444}
424
  .amp-menu input{display:none}
99
  #searchsubmit{opacity:0}
100
  .hide{display:none}
101
  .headerlogo a, [class*=icono-]{ color: #F42F42 }
102
+ <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
103
  /* Pagination */
104
  .amp-wp-content.pagination-holder { background: none; padding: 0; box-shadow: none; height: auto; min-height: auto; }
105
  #pagination{ width: 100%; margin-top: 15px; }
106
  #pagination .next{ float: right; margin-bottom: 10px; }
107
  #pagination .prev{ float: left }
108
  #pagination .next a, #pagination .prev a{ margin-bottom: 12px; background: #fefefe; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; -moz-box-shadow: 0 2px 3px rgba(0,0,0,.05); -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05); box-shadow: 0 2px 3px rgba(0,0,0,.05); padding: 11px 15px; font-size: 12px; color: #666; }
109
+ <?php } // AMP Woocommerce condition ends ?>
110
  <?php
111
  if(ampforwp_get_setting('enable-single-social-icons') == true && is_single() || is_page() ){?>
112
  /* Sticky Social bar in Single */
128
  .custom-amp-socialsharing-mewe{background:#b8d6e6}
129
  .amp-social-mewe{background:#b8d6e6}
130
  <?php } ?>
131
+ <?php if ( true == ampforwp_get_setting('enable-single-flipboard-share') ) { ?>
132
+ .custom-amp-socialsharing-flipboard{background:#f52828;position: relative;
133
+ top: -12px;}
134
+ .amp-social-flipboard{background:#f52828;text-align: center;position: relative;
135
+ top: -12px;}
136
+ <?php } ?>
137
  <?php if ( true == ampforwp_get_setting('enable-single-vk-share') ) { ?>
138
  .ampforwp-social-icons .custom-amp-socialsharing-vk, .amp-social-vk{background:#45668e}
139
  <?php } ?>
212
  .nav_container {
213
  background: <?php echo ampforwp_sanitize_color($header_bg_clr); ?>
214
  }
215
+ .nav_container a, .nav_container a:hover, .nav_container a:focus{
216
+ color:<?php echo sanitize_hex_color( $header_color ); ?>
217
+ }
218
+ <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
219
  <?php if(is_singular() || is_home() && true == ampforwp_get_setting('amp-frontpage-select-option') && ampforwp_get_blog_details() == false && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ){ ?>
220
  /* Single */
221
  .comment-button-wrapper{ margin-bottom: 0px; margin-top: 60px; text-align:center }
414
  @media (min-width: 768px) and (max-width: 1600px) {.tablepress { overflow-x: none; } }
415
  @media (min-width: 320px) and (max-width: 767px) {.tablepress { display: inline-block; overflow-x: scroll; } }
416
  <?php } ?>
417
+ <?php } // AMP Woocommerce condition Ends Here?>
418
  .design_2_wrapper .amp-loop-list .amp-wp-meta {display: none;}
419
  <?php if(!is_home() && ((is_single() && true == ampforwp_get_setting('ampforwp-bread-crumb') ) || (is_page() && ampforwp_get_setting('ampforwp_pages_breadcrumbs')) ) && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) { ?>
420
  .breadcrumb{line-height: 1;margin-bottom:6px;}
431
  .amp-carousel-container {position: relative;width: 100%;height: 100%;}
432
  .amp-carousel-img img {object-fit: contain;}
433
  /* Slide Navigation code */
434
+ .amp-menu li{position:relative;margin:0;}
435
  .amp-menu li.menu-item-has-children ul{display:none;margin:0;background:#222}
436
  .amp-menu li.menu-item-has-children ul ul{background:#444}
437
  .amp-menu input{display:none}
templates/design-manager/design-3/archive.php CHANGED
@@ -84,7 +84,12 @@ if ( get_query_var( 'paged' ) ) {
84
  <?php }
85
  }
86
  }
87
- the_archive_title( '<h2 class="amp-wp-content page-title archive-heading">', '</h2>' );
 
 
 
 
 
88
  $arch_desc = $sanitizer->get_amp_content();
89
  if( $arch_desc ) {
90
  if($paged <= '1') {?>
@@ -157,7 +162,13 @@ if ( get_query_var( 'paged' ) ) {
157
  <?php }
158
  } ?>
159
  </ul>
160
- <h3 class="amp-wp-title"><a href="<?php echo esc_url( $ampforwp_amp_post_url ); ?>"> <?php the_title(); ?></a></h3>
 
 
 
 
 
 
161
  <?php if( ampforwp_check_excerpt() ) {
162
  $class = 'large-screen-excerpt-design-3';
163
  if ( true == $redux_builder_amp['excerpt-option-design-3'] ) {
84
  <?php }
85
  }
86
  }
87
+
88
+ if(ampforwp_default_logo()){
89
+ the_archive_title( '<h1 class="amp-wp-content page-title archive-heading">', '</h1>' );
90
+ }else{
91
+ the_archive_title( '<h2 class="amp-wp-content page-title archive-heading">', '</h2>' );
92
+ }
93
  $arch_desc = $sanitizer->get_amp_content();
94
  if( $arch_desc ) {
95
  if($paged <= '1') {?>
162
  <?php }
163
  } ?>
164
  </ul>
165
+ <?php
166
+ $title_name = '<a href="'.esc_url( $ampforwp_amp_post_url ).'">'.get_the_title().'</a>';
167
+ if( ampforwp_default_logo() ){ ?>
168
+ <h2 class="amp-wp-title"><?php echo $title_name; ?></h2>
169
+ <?php }else{ ?>
170
+ <h3 class="amp-wp-title"><?php echo $title_name ?></h3>
171
+ <?php } ?>
172
  <?php if( ampforwp_check_excerpt() ) {
173
  $class = 'large-screen-excerpt-design-3';
174
  if ( true == $redux_builder_amp['excerpt-option-design-3'] ) {
templates/design-manager/design-3/elements/social-icons.php CHANGED
@@ -186,6 +186,13 @@ if ( is_single() || (is_page() && isset($redux_builder_amp['ampforwp-page-social
186
  </a>
187
  </div>
188
  <?php } ?>
 
 
 
 
 
 
 
189
  </div>
190
  <?php } ?>
191
  <?php do_action('ampforwp_after_social_icons_hook',$this);
186
  </a>
187
  </div>
188
  <?php } ?>
189
+ <?php if ( true == ampforwp_get_setting('enable-single-flipboard-share') ) { ?>
190
+ <a title="flipboard share" <?php ampforwp_nofollow_social_links(); ?> href="https://share.flipboard.com/bookmarklet/popout?v=<?php echo esc_html(get_the_title(ampforwp_get_the_ID())); ?>&url=<?php echo urlencode(esc_url($amp_permalink)); ?>" target="_blank" class="amp-social-icon-rounded amp-social-flipboard">
191
+ <div class="amp-social-icon amp-social-flipboard">
192
+ <amp-img src="<?php echo esc_url(AMPFORWP_IMAGE_DIR . '/flipboard.png') ?>" width="16" height="16" />
193
+ </div>
194
+ </a>
195
+ <?php } ?>
196
  </div>
197
  <?php } ?>
198
  <?php do_action('ampforwp_after_social_icons_hook',$this);
templates/design-manager/design-3/search.php CHANGED
@@ -59,8 +59,12 @@
59
  relevanssi_do_query( $q );
60
  }; ?>
61
 
62
- <?php global $redux_builder_amp; ?>
63
- <h2 class="amp-wp-content page-title archive-heading"><?php echo esc_attr(ampforwp_translation( $redux_builder_amp['amp-translator-search-text'], 'You searched for:') . ' ' . get_search_query());?></h2>
 
 
 
 
64
 
65
  <?php if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();?>
66
 
@@ -86,7 +90,14 @@
86
  <?php }
87
  } ?>
88
  </ul>
89
- <h3 class="amp-wp-title"><a href="<?php echo ampforwp_url_controller( get_permalink() ); ?>"> <?php the_title(); ?></a></h3>
 
 
 
 
 
 
 
90
  <?php if( ampforwp_check_excerpt() ) {
91
  $class = 'large-screen-excerpt-design-3';
92
  if ( true == $redux_builder_amp['excerpt-option-design-3'] ) {
59
  relevanssi_do_query( $q );
60
  }; ?>
61
 
62
+ <?php global $redux_builder_amp;
63
+ if( ampforwp_default_logo() ){ ?>
64
+ <h1 class="amp-wp-content page-title archive-heading"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-search-text'], 'You searched for:') . ' ' . get_search_query();?></h1>
65
+ <?php }else{?>
66
+ <h2 class="amp-wp-content page-title archive-heading"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-search-text'], 'You searched for:') . ' ' . get_search_query();?></h2>
67
+ <?php } ?>
68
 
69
  <?php if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();?>
70
 
90
  <?php }
91
  } ?>
92
  </ul>
93
+ <?php
94
+ $title_name = '<a href="'.ampforwp_url_controller( get_permalink() ).'">'.get_the_title().'</a>';
95
+ if( ampforwp_default_logo() ){ ?>
96
+ <h2 class="amp-wp-title"><?php echo $title_name; ?></h2>
97
+ <?php }else{ ?>
98
+ <h3 class="amp-wp-title"><?php echo $title_name ?></h3>
99
+ <?php } ?>
100
+
101
  <?php if( ampforwp_check_excerpt() ) {
102
  $class = 'large-screen-excerpt-design-3';
103
  if ( true == $redux_builder_amp['excerpt-option-design-3'] ) {
templates/design-manager/design-3/style.php CHANGED
@@ -119,7 +119,7 @@ amp-sidebar{ width: 280px;font-family: 'Roboto Slab', serif;background:<?php ech
119
  .navigation_heading{ padding: 20px 20px 15px 20px; color: <?php echo ampforwp_sanitize_color($menulblcolor); ?>; font-size: 10px; font-family: sans-serif; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid <?php echo ampforwp_sanitize_color($menubdrcolor); ?>; display: inline-block; width: 100%}
120
  .toggle-navigationv2 ul{ list-style-type: none; margin: 15px 0 0 0; padding: 0}
121
  .toggle-navigationv2 ul.amp-menu li a{ padding: 10px 15px 10px 20px; display: inline-block; font-size: 14px; color:<?php echo ampforwp_sanitize_color($navmenucolor); ?>; width:100% }
122
- .amp-menu li{position:relative}
123
  .toggle-navigationv2 ul.amp-menu li a:hover{background:<?php echo ampforwp_sanitize_color($submenuhovercolor); ?>;color:<?php echo ampforwp_sanitize_color($navmenucolor); ?>;}
124
  .amp-menu li.menu-item-has-children ul{display:none;margin:0;position:relative;
125
  background:<?php echo ampforwp_sanitize_color($submenucolor);?>;
@@ -162,6 +162,7 @@ background:<?php echo ampforwp_sanitize_color($submenucolor);?>;
162
  font-weight: normal;
163
  }
164
  .cl-btn{background: #131313;border:none;}
 
165
  <?php if ( ! is_singular() ) { ?>
166
  /* Pagination */
167
  .amp-wp-content.pagination-holder{ background: none; padding: 0; box-shadow: none; height: auto; min-height: auto; }
@@ -169,11 +170,13 @@ background:<?php echo ampforwp_sanitize_color($submenucolor);?>;
169
  #pagination .next, #pagination .prev{ margin: 0px 6% 10px 6%; }
170
  #pagination .next a, #pagination .prev a{ opacity:0.9; background: #f42f42; width: 100%; color: #fff; display: inline-block; text-align: center; font-size: 16px; line-height: 1; padding: 18px 0%; border-radius: 4px; }
171
  <?php }
 
172
  if ( ampforwp_get_setting('enable-single-social-icons') == true && is_single() || is_page() ) {?>
173
  /* Sticky Social bar in Single */
174
  .sticky_social{ width: 100%; bottom: 0; display: block; left: 0; box-shadow: 0px 4px 7px #000; background: #fff; padding: 7px 0px 0px 0px; position: fixed; margin: 0; z-index: 10; text-align: center; }
175
  .amp-social-icon{ width: 50px; height: 28px; display: inline-block; background: #5cbe4a;position: relative; top: -8px; padding-top: 0px; }
176
  .amp-social-icon amp-img{ top: 4px; }
 
177
  a.amp-social-facebook-messenger,.amp-social-facebookmessenger{background:#d5e1e6;}
178
  .custom-amp-socialsharing-line{background:#00b900}
179
  .custom-amp-socialsharing-mewe{background:#b8d6e6}
@@ -189,6 +192,7 @@ header{ padding-bottom:50px; }
189
  #headerwrap{ position: relative;}
190
  <?php } ?>
191
  #header <?php if(is_single()){ ?> h2 <?php } else{?>h1<?php }?>{ text-align: center; font-size: 16px; position: relative; font-weight: bold; line-height: 50px; padding: 0; margin: 0; text-transform: uppercase }
 
192
  main .amp-wp-content{ font-size: 18px; line-height: 29px; color:#111 }
193
  .amp-wp-meta.amp-meta-wrapper{list-style-type:none;}
194
  .single-post main .amp-wp-article-content h1{ font-size:2em}
@@ -209,6 +213,7 @@ body .amp-loop-list-noimg .amp-wp-post-content{ width:100% }
209
  /* For Excerpt */
210
  .amp-wp-post-content .small-screen-excerpt-design-3 {display: none;} .amp-wp-post-content .large-screen-excerpt-design-3 { display: block; }
211
  <?php } ?>
 
212
  /* Footer */
213
  <?php $footer_back_color = ampforwp_get_setting('ampforwp-footer-background-color-3','color','ampforwp_sanitize_color');
214
  if (empty($footer_back_color)) {
@@ -231,6 +236,7 @@ if (empty($footer_back_color)) {
231
  a.btt:hover {
232
  cursor: pointer;
233
  }
 
234
  <?php if ( is_singular() || true == ampforwp_get_setting('amp-frontpage-select-option') && ampforwp_get_blog_details() == false && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) { ?>
235
  /* Single */
236
  .single-post main{ margin: 20px 17px 17px 17px; }
@@ -258,6 +264,12 @@ h1.amp-wp-title{ margin: 0; color: #333333; font-size: 48px; line-height: 58px;
258
  if(ampforwp_get_setting('enable-single-mewe-share') == true) { ?>
259
  .amp-social-mewe{background:#b8d6e6;}
260
  <?php }
 
 
 
 
 
 
261
  if ( true == ampforwp_get_setting('enable-single-vk-share') ) { ?>
262
  .amp-social-vk{background:#45668e}
263
  <?php } ?>
@@ -369,6 +381,7 @@ main .amp-wp-content.comments_list{ background: none; box-shadow: none; padding:
369
  <?php if ( isset($redux_builder_amp['ampforwp-disqus-comments-support']) && $redux_builder_amp['ampforwp-disqus-comments-support'] ) {?>
370
  .amp-disqus-comments { text-align:center } <?php
371
  } ?>
 
372
  /* ADS */
373
  .amp_ad_1{ margin-top: 15px; margin-bottom: 10px; }
374
  .single-post .amp_ad_1{ margin-bottom: -15px; }
@@ -454,6 +467,7 @@ amp-lightbox{ background: rgba(0, 0, 0,0.85); }
454
  .featured_meta_left{ float:left }
455
  .featured_meta_right{ float:right }
456
  <?php }
 
457
  if ( is_singular() || is_home() && $redux_builder_amp['amp-frontpage-select-option'] && ampforwp_get_blog_details() == false ) { ?>
458
  /* Tables */
459
  table { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; overflow-x: auto; }
@@ -473,7 +487,8 @@ table tr:last-child td {border-bottom: 0;}
473
  table tr:last-child td:first-child { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
474
  table tr:last-child td:last-child { -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
475
  table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f0f0f0)); background: -moz-linear-gradient(top, #f2f2f2, #f0f0f0); }
476
- <?php } ?>
 
477
  <?php if ( 1 == $redux_builder_amp['amp-enable-notifications'] || isset($redux_builder_amp['ampforwp-cta-subsection-notification-sticky']) && 1 == $redux_builder_amp['ampforwp-cta-subsection-notification-sticky'] ) {?>
478
  /* Notifications */
479
  #amp-user-notification1 p{ display: inline-block; }
119
  .navigation_heading{ padding: 20px 20px 15px 20px; color: <?php echo ampforwp_sanitize_color($menulblcolor); ?>; font-size: 10px; font-family: sans-serif; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid <?php echo ampforwp_sanitize_color($menubdrcolor); ?>; display: inline-block; width: 100%}
120
  .toggle-navigationv2 ul{ list-style-type: none; margin: 15px 0 0 0; padding: 0}
121
  .toggle-navigationv2 ul.amp-menu li a{ padding: 10px 15px 10px 20px; display: inline-block; font-size: 14px; color:<?php echo ampforwp_sanitize_color($navmenucolor); ?>; width:100% }
122
+ .amp-menu li{position:relative;margin:0;}
123
  .toggle-navigationv2 ul.amp-menu li a:hover{background:<?php echo ampforwp_sanitize_color($submenuhovercolor); ?>;color:<?php echo ampforwp_sanitize_color($navmenucolor); ?>;}
124
  .amp-menu li.menu-item-has-children ul{display:none;margin:0;position:relative;
125
  background:<?php echo ampforwp_sanitize_color($submenucolor);?>;
162
  font-weight: normal;
163
  }
164
  .cl-btn{background: #131313;border:none;}
165
+ <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
166
  <?php if ( ! is_singular() ) { ?>
167
  /* Pagination */
168
  .amp-wp-content.pagination-holder{ background: none; padding: 0; box-shadow: none; height: auto; min-height: auto; }
170
  #pagination .next, #pagination .prev{ margin: 0px 6% 10px 6%; }
171
  #pagination .next a, #pagination .prev a{ opacity:0.9; background: #f42f42; width: 100%; color: #fff; display: inline-block; text-align: center; font-size: 16px; line-height: 1; padding: 18px 0%; border-radius: 4px; }
172
  <?php }
173
+ } // AMP Woocommerce CSS Ends
174
  if ( ampforwp_get_setting('enable-single-social-icons') == true && is_single() || is_page() ) {?>
175
  /* Sticky Social bar in Single */
176
  .sticky_social{ width: 100%; bottom: 0; display: block; left: 0; box-shadow: 0px 4px 7px #000; background: #fff; padding: 7px 0px 0px 0px; position: fixed; margin: 0; z-index: 10; text-align: center; }
177
  .amp-social-icon{ width: 50px; height: 28px; display: inline-block; background: #5cbe4a;position: relative; top: -8px; padding-top: 0px; }
178
  .amp-social-icon amp-img{ top: 4px; }
179
+ .amp-social-icon.custom-amp-socialsharing-flipboard amp-img ,.amp-social-icon.amp-social-flipboard amp-img {top: 6px;}
180
  a.amp-social-facebook-messenger,.amp-social-facebookmessenger{background:#d5e1e6;}
181
  .custom-amp-socialsharing-line{background:#00b900}
182
  .custom-amp-socialsharing-mewe{background:#b8d6e6}
192
  #headerwrap{ position: relative;}
193
  <?php } ?>
194
  #header <?php if(is_single()){ ?> h2 <?php } else{?>h1<?php }?>{ text-align: center; font-size: 16px; position: relative; font-weight: bold; line-height: 50px; padding: 0; margin: 0; text-transform: uppercase }
195
+ <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
196
  main .amp-wp-content{ font-size: 18px; line-height: 29px; color:#111 }
197
  .amp-wp-meta.amp-meta-wrapper{list-style-type:none;}
198
  .single-post main .amp-wp-article-content h1{ font-size:2em}
213
  /* For Excerpt */
214
  .amp-wp-post-content .small-screen-excerpt-design-3 {display: none;} .amp-wp-post-content .large-screen-excerpt-design-3 { display: block; }
215
  <?php } ?>
216
+ <?php } // AMP Woocommerce CSS ends ?>
217
  /* Footer */
218
  <?php $footer_back_color = ampforwp_get_setting('ampforwp-footer-background-color-3','color','ampforwp_sanitize_color');
219
  if (empty($footer_back_color)) {
236
  a.btt:hover {
237
  cursor: pointer;
238
  }
239
+ <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
240
  <?php if ( is_singular() || true == ampforwp_get_setting('amp-frontpage-select-option') && ampforwp_get_blog_details() == false && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) { ?>
241
  /* Single */
242
  .single-post main{ margin: 20px 17px 17px 17px; }
264
  if(ampforwp_get_setting('enable-single-mewe-share') == true) { ?>
265
  .amp-social-mewe{background:#b8d6e6;}
266
  <?php }
267
+ if ( true == ampforwp_get_setting('enable-single-flipboard-share') ) { ?>
268
+ .custom-amp-socialsharing-flipboard{background:#f52828;position: relative;
269
+ top: -12px;}
270
+ .amp-social-flipboard{background:#f52828;text-align: center;max-width: 18px;
271
+ max-height: 16px;}
272
+ <?php }
273
  if ( true == ampforwp_get_setting('enable-single-vk-share') ) { ?>
274
  .amp-social-vk{background:#45668e}
275
  <?php } ?>
381
  <?php if ( isset($redux_builder_amp['ampforwp-disqus-comments-support']) && $redux_builder_amp['ampforwp-disqus-comments-support'] ) {?>
382
  .amp-disqus-comments { text-align:center } <?php
383
  } ?>
384
+ <?php } // AMP Woocommerce Condition Ends Here?>
385
  /* ADS */
386
  .amp_ad_1{ margin-top: 15px; margin-bottom: 10px; }
387
  .single-post .amp_ad_1{ margin-bottom: -15px; }
467
  .featured_meta_left{ float:left }
468
  .featured_meta_right{ float:right }
469
  <?php }
470
+ if( !ampforwp_woocommerce_conditional_check() ) {
471
  if ( is_singular() || is_home() && $redux_builder_amp['amp-frontpage-select-option'] && ampforwp_get_blog_details() == false ) { ?>
472
  /* Tables */
473
  table { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; overflow-x: auto; }
487
  table tr:last-child td:first-child { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
488
  table tr:last-child td:last-child { -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
489
  table tr:hover td { background: #f2f2f2; background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f0f0f0)); background: -moz-linear-gradient(top, #f2f2f2, #f0f0f0); }
490
+ <?php }
491
+ } //AMP Woocommerce CSS Ends ?>
492
  <?php if ( 1 == $redux_builder_amp['amp-enable-notifications'] || isset($redux_builder_amp['ampforwp-cta-subsection-notification-sticky']) && 1 == $redux_builder_amp['ampforwp-cta-subsection-notification-sticky'] ) {?>
493
  /* Notifications */
494
  #amp-user-notification1 p{ display: inline-block; }
templates/design-manager/swift/footer.php CHANGED
@@ -215,6 +215,13 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
215
  <amp-img src="<?php echo esc_url(AMPFORWP_IMAGE_DIR . '/favicon-mewe.svg') ?>" width="15" height="15" /></a>
216
  </li>
217
  <?php } ?>
 
 
 
 
 
 
 
218
  </ul>
219
  </div>
220
  <?php }
215
  <amp-img src="<?php echo esc_url(AMPFORWP_IMAGE_DIR . '/favicon-mewe.svg') ?>" width="15" height="15" /></a>
216
  </li>
217
  <?php } ?>
218
+ <?php if ( true == ampforwp_get_setting('enable-single-flipboard-share') ) { ?>
219
+ <li>
220
+ <a title="flipboard share" class="s_flipboard" <?php ampforwp_nofollow_social_links(); ?> href="https://share.flipboard.com/bookmarklet/popout?v=<?php echo esc_html(get_the_title(ampforwp_get_the_ID())); ?>&url=<?php echo urlencode(esc_url($amp_permalink)); ?>" target="_blank">
221
+ <amp-img src="<?php echo esc_url(AMPFORWP_IMAGE_DIR . '/flipboard.png') ?>" width="15" height="15" />
222
+ </a>
223
+ </li>
224
+ <?php } ?>
225
  </ul>
226
  </div>
227
  <?php }
templates/design-manager/swift/functions.php CHANGED
@@ -184,6 +184,13 @@ function ampforwp_swift_social_icons(){
184
  <a title="mewe share" class="s_mewe" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://mewe.com/share?link=<?php echo esc_url($amp_permalink); ?>">
185
  <amp-img src="<?php echo esc_url(AMPFORWP_IMAGE_DIR . '/favicon-mewe.svg') ?>" width="15" height="15" /></a>
186
  </li>
 
 
 
 
 
 
 
187
  <?php } ?>
188
  <?php if($redux_builder_amp['ampforwp-facebook-like-button']){?>
189
  <li>
184
  <a title="mewe share" class="s_mewe" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://mewe.com/share?link=<?php echo esc_url($amp_permalink); ?>">
185
  <amp-img src="<?php echo esc_url(AMPFORWP_IMAGE_DIR . '/favicon-mewe.svg') ?>" width="15" height="15" /></a>
186
  </li>
187
+ <?php } ?>
188
+ <?php if ( true == ampforwp_get_setting('enable-single-flipboard-share') ) { ?>
189
+ <li>
190
+ <a title="flipboard share" class="s_flipboard" <?php ampforwp_nofollow_social_links(); ?> href="https://share.flipboard.com/bookmarklet/popout?v=<?php echo esc_html(get_the_title(ampforwp_get_the_ID())); ?>&url=<?php echo urlencode(esc_url($amp_permalink)); ?>" target="_blank">
191
+ <amp-img src="<?php echo esc_url(AMPFORWP_IMAGE_DIR . '/flipboard.png') ?>" width="15" height="15" />
192
+ </a>
193
+ </li>
194
  <?php } ?>
195
  <?php if($redux_builder_amp['ampforwp-facebook-like-button']){?>
196
  <li>
templates/design-manager/swift/style.php CHANGED
@@ -361,10 +361,10 @@ if( ampforwp_is_home() || is_archive() || is_search() || (function_exists('is_sh
361
  .loop-category li:hover a{color: <?php echo ampforwp_sanitize_color($hovercolor); ?>;}
362
  .fbp-cnt p, .fsp-cnt p{color:#444;font-size:13px;line-height:1.5;letter-spacing: 0.10px;word-break: break-word;}
363
  .fbp:hover h2 a, .fsp:hover h2 a{color: <?php echo ampforwp_sanitize_color($hovercolor); ?>;}
364
- .fsp h2 a{color:#191919;}
365
  .fsp{margin: 15px;flex-basis: calc(33.33% - 30px);}
366
  .fsp-img {margin-bottom:10px;}
367
- .fsp h2{margin:0px 0px 5px 0px;font-size:20px;line-height:1.4;font-weight:500;}
368
  .at-dt{font-size:11px;color:#808080;margin:12px 0px 9px 0px; display: inline-flex;}
369
  .pt-dt{font-size:11px;color:#808080;margin: 8px 0px 0px 0px;display: inline-flex;}
370
  .arch-tlt{margin:30px 0px 30px;display:inline-block;width:100%;}
@@ -427,8 +427,9 @@ echo $fontFamily;
427
  .fbp-cnt{margin:0;padding:12px;}
428
  }
429
  @media(max-width:425px){
430
- .fbp {margin: 0px 15px 15px 15px;}
431
- .fsp{margin:15px;}
 
432
  .amp-archive-title, .amp-loop-label{padding:0 20px;}
433
  .amp-sub-archives {margin: 10px 0px 0px 30px;}
434
  .author-img {padding-left: 20px;}
@@ -505,6 +506,8 @@ if(is_page()){ ?>
505
  .pg table{display: -webkit-box;}
506
  }
507
  <?php } // page table css ends ?>
 
 
508
  <?php if(is_singular()){ ?>
509
  /** Pre tag Styling **/
510
  pre {padding: 30px 15px;background: #f7f7f7;white-space: pre-wrap;;font-size: 14px;color: #666666;border-left: 3px solid;border-color: <?php echo ampforwp_sanitize_color($swift_cs_color); ?>;margin-bottom: 20px;}
@@ -520,7 +523,7 @@ echo $fontFamily;
520
  ?>
521
  }
522
  <?php } ?>
523
- <?php if($redux_builder_amp['single-design-type'] == '1' || $redux_builder_amp['single-design-type'] == '4'){?>
524
  <?php // Single
525
 
526
  if(is_single() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())) { ?>
@@ -784,10 +787,10 @@ letter-spacing: 0.10px;margin-top: 5px;font-weight: 400;}
784
  .loop-category li:hover a{color:#005be2;}
785
  .fsp-cnt p{color:#444;font-size:13px;line-height:20px;letter-spacing: 0.10px;word-break: break-word;}
786
  .fsp:hover h2 a{color: <?php echo ampforwp_sanitize_color($hovercolor); ?>;}
787
- .fsp h2 a{color:#191919;}
788
  .fsp{margin: 15px;flex-basis: calc(33.33% - 30px);}
789
  .fsp-img {margin-bottom:10px;}
790
- .fsp h2{margin:0px 0px 5px 0px;font-size:20px;line-height:25px;font-weight:500;}
791
  .fsp-cnt .loop-category{margin-bottom:8px;}
792
  .fsp-cnt .loop-category li {font-weight: 500;}
793
  .pt-dt{font-size:11px;color:#808080;margin: 8px 0px 0px 0px;display: inline-flex;}
@@ -883,7 +886,7 @@ if ( true == ampforwp_get_setting('ampforwp-disqus-comments-support') ) {?>
883
  @media(max-width:425px){
884
  .sp-rt .amp-author {margin-bottom: 10px;}
885
  #pagination {margin: 20px 0px 10px 0px;}
886
- .fsp h2 {font-size: 24px;font-weight:600;}
887
  .r-pf h3{padding: 15px 0px 0px 15px;}
888
  }
889
  @media(max-width:320px){
@@ -905,6 +908,7 @@ if ( true == ampforwp_get_setting('ampforwp-disqus-comments-support') ) {?>
905
  <?php } ?>
906
  }
907
  <?php } //Drop Cap CSS ends
 
908
  // Menu Search CSS
909
  if( !ampforwp_levelup_compatibility('levelup_elementor') ){ // Level up Condition starts
910
  if ( isset($redux_builder_amp['menu-search']) && $redux_builder_amp['menu-search'] ) { ?>
@@ -1099,7 +1103,9 @@ a.btt:hover {
1099
  }
1100
  <?php } //Menu Copy Right CSS Ends
1101
  } //level up CSS Ends
1102
- if($redux_builder_amp['single-design-type'] == '4'){
 
 
1103
  if(is_single() ) { ?>
1104
  .sp-rt{
1105
  margin:0;
@@ -1159,7 +1165,8 @@ if ( true == ampforwp_get_setting('gnrl-sidebar') && true == ampforwp_get_setti
1159
 
1160
  }
1161
  <?php } // sidebar CSS ends
1162
- } // single design 4 ends?>
 
1163
  <?php // Header and Archive Sidebar
1164
  if ( ampforwp_get_setting('gbl-sidebar') && ampforwp_get_setting('gnrl-sidebar') && is_active_sidebar( 'swift-sidebar' ) ) { ?>
1165
  .b-w, .arch-dsgn{
@@ -1212,7 +1219,9 @@ if ( ampforwp_get_setting('gbl-sidebar') && ampforwp_get_setting('gnrl-sidebar')
1212
  }
1213
  }
1214
  <?php }
1215
- if ( ( true == ampforwp_get_setting('gbl-sidebar') && (ampforwp_is_front_page() || ampforwp_is_home()) || is_archive() || ampforwp_is_blog()) || ( true == ampforwp_get_setting('swift-sidebar') && is_singular() ) ) { ?>
 
 
1216
  /*** Sidebar CSS ***/
1217
  <?php if ( is_active_sidebar( 'swift-sidebar' ) ) : ?>
1218
  .sdbr-right{
@@ -1320,7 +1329,8 @@ thead th {
1320
  flex-basis: calc(100% - 30px);
1321
  }
1322
  }
1323
- <?php } //Header and Archive Sidebar CSS Ends ?>
 
1324
  <?php
1325
  if( !ampforwp_levelup_compatibility('levelup_elementor') ){ // Level up Condition starts
1326
  //Footer
@@ -1687,7 +1697,10 @@ if(ampforwp_get_setting('enable-single-line-share') == true) { ?>
1687
  <?php }
1688
  if(ampforwp_get_setting('enable-single-mewe-share') == true) { ?>
1689
  .s_mewe{background:#b8d6e6;}
1690
- <?php }
 
 
 
1691
  if($redux_builder_amp['enable-single-reddit-share']){?>
1692
  .s_rd{background:#ff4500;}
1693
  .s_rd:after{
@@ -1802,6 +1815,9 @@ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
1802
  <?php } ?>
1803
  }
1804
  <?php } ?>
 
 
 
1805
  <?php if( ampforwp_get_setting('enable-single-social-icons') ){ ?>
1806
  .s_stk{background: #f1f1f1;display:inline-block;width: 100%;padding:0;position:fixed;bottom: 0;text-align: center;border: 0;}
1807
  .s_stk ul{width:100%;display:inline-flex;}
@@ -2000,7 +2016,14 @@ border-bottom: 1px solid #eee;
2000
  .breadcrumb ul li,.breadcrumbs span{display: inline-block;list-style-type: none;font-size: 10px;text-transform: uppercase;margin-right: 5px;}
2001
  .breadcrumb ul li a, .breadcrumbs span a, .breadcrumbs .bread-post{color: #999;letter-spacing: 1px;}
2002
  .breadcrumb ul li a:hover, .breadcrumbs span a:hover{color: <?php echo $hovercolor; ?>;}
2003
- .breadcrumbs li a:after, .breadcrumbs span a:after{content: "\e315";display: inline-block;color: #bdbdbd;font-family: 'icomoon';padding-left: 5px;font-size: 12px;position: relative;top: 1px;}
 
 
 
 
 
 
 
2004
  .breadcrumbs li:last-child a:after {display: none;}
2005
  <?php } //Breadcrumbs Ends?>
2006
  <?php if(true == ampforwp_get_setting('ampforwp-smooth-scrolling-for-links')){?>
361
  .loop-category li:hover a{color: <?php echo ampforwp_sanitize_color($hovercolor); ?>;}
362
  .fbp-cnt p, .fsp-cnt p{color:#444;font-size:13px;line-height:1.5;letter-spacing: 0.10px;word-break: break-word;}
363
  .fbp:hover h2 a, .fsp:hover h2 a{color: <?php echo ampforwp_sanitize_color($hovercolor); ?>;}
364
+ .fsp h2 a, .fsp h3 a{color:#191919;}
365
  .fsp{margin: 15px;flex-basis: calc(33.33% - 30px);}
366
  .fsp-img {margin-bottom:10px;}
367
+ .fsp h2, .fsp h3{margin:0px 0px 5px 0px;font-size:20px;line-height:1.4;font-weight:500;}
368
  .at-dt{font-size:11px;color:#808080;margin:12px 0px 9px 0px; display: inline-flex;}
369
  .pt-dt{font-size:11px;color:#808080;margin: 8px 0px 0px 0px;display: inline-flex;}
370
  .arch-tlt{margin:30px 0px 30px;display:inline-block;width:100%;}
427
  .fbp-cnt{margin:0;padding:12px;}
428
  }
429
  @media(max-width:425px){
430
+ .hmp .loop-wrapper {margin: 0;}
431
+ .hmp .fbp {margin: 0px 0px 15px 0px;}
432
+ .hmp .fsp {flex-basis: calc(100% - 0px);margin:15px 0px;}
433
  .amp-archive-title, .amp-loop-label{padding:0 20px;}
434
  .amp-sub-archives {margin: 10px 0px 0px 30px;}
435
  .author-img {padding-left: 20px;}
506
  .pg table{display: -webkit-box;}
507
  }
508
  <?php } // page table css ends ?>
509
+ <?php //AMP Woocommerce condition starts
510
+ if( !ampforwp_woocommerce_conditional_check() ) { ?>
511
  <?php if(is_singular()){ ?>
512
  /** Pre tag Styling **/
513
  pre {padding: 30px 15px;background: #f7f7f7;white-space: pre-wrap;;font-size: 14px;color: #666666;border-left: 3px solid;border-color: <?php echo ampforwp_sanitize_color($swift_cs_color); ?>;margin-bottom: 20px;}
523
  ?>
524
  }
525
  <?php } ?>
526
+ <?php if( ampforwp_get_setting('single-design-type') == '1' || ampforwp_get_setting('single-design-type') == '4' ){ ?>
527
  <?php // Single
528
 
529
  if(is_single() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())) { ?>
787
  .loop-category li:hover a{color:#005be2;}
788
  .fsp-cnt p{color:#444;font-size:13px;line-height:20px;letter-spacing: 0.10px;word-break: break-word;}
789
  .fsp:hover h2 a{color: <?php echo ampforwp_sanitize_color($hovercolor); ?>;}
790
+ .fsp h2 a, .fsp h3 a{color:#191919;}
791
  .fsp{margin: 15px;flex-basis: calc(33.33% - 30px);}
792
  .fsp-img {margin-bottom:10px;}
793
+ .fsp h2, .fsp h3{margin:0px 0px 5px 0px;font-size:20px;line-height:25px;font-weight:500;}
794
  .fsp-cnt .loop-category{margin-bottom:8px;}
795
  .fsp-cnt .loop-category li {font-weight: 500;}
796
  .pt-dt{font-size:11px;color:#808080;margin: 8px 0px 0px 0px;display: inline-flex;}
886
  @media(max-width:425px){
887
  .sp-rt .amp-author {margin-bottom: 10px;}
888
  #pagination {margin: 20px 0px 10px 0px;}
889
+ .fsp h2, .fsp h3 {font-size: 24px;font-weight:600;}
890
  .r-pf h3{padding: 15px 0px 0px 15px;}
891
  }
892
  @media(max-width:320px){
908
  <?php } ?>
909
  }
910
  <?php } //Drop Cap CSS ends
911
+ } // //AMP Woocommerce condition Ends
912
  // Menu Search CSS
913
  if( !ampforwp_levelup_compatibility('levelup_elementor') ){ // Level up Condition starts
914
  if ( isset($redux_builder_amp['menu-search']) && $redux_builder_amp['menu-search'] ) { ?>
1103
  }
1104
  <?php } //Menu Copy Right CSS Ends
1105
  } //level up CSS Ends
1106
+ //AMP Woocommerce condition starts
1107
+ if( !ampforwp_woocommerce_conditional_check() ) {
1108
+ if( ampforwp_get_setting('single-design-type') == '4' ){
1109
  if(is_single() ) { ?>
1110
  .sp-rt{
1111
  margin:0;
1165
 
1166
  }
1167
  <?php } // sidebar CSS ends
1168
+ } // single design 4 ends
1169
+ } // AMP woocommerce Condition ends ?>
1170
  <?php // Header and Archive Sidebar
1171
  if ( ampforwp_get_setting('gbl-sidebar') && ampforwp_get_setting('gnrl-sidebar') && is_active_sidebar( 'swift-sidebar' ) ) { ?>
1172
  .b-w, .arch-dsgn{
1219
  }
1220
  }
1221
  <?php }
1222
+ if ( ( true == ampforwp_get_setting('gbl-sidebar') && (ampforwp_is_front_page() || ampforwp_is_home()) || is_archive() || is_search() || ampforwp_is_blog()) || ( true == ampforwp_get_setting('swift-sidebar') && is_singular() ) ) {
1223
+ // AMP woocommerce condition starts
1224
+ if( !ampforwp_woocommerce_conditional_check() ) { ?>
1225
  /*** Sidebar CSS ***/
1226
  <?php if ( is_active_sidebar( 'swift-sidebar' ) ) : ?>
1227
  .sdbr-right{
1329
  flex-basis: calc(100% - 30px);
1330
  }
1331
  }
1332
+ <?php } // AMP woocommerce condition ends
1333
+ } //Header and Archive Sidebar CSS Ends ?>
1334
  <?php
1335
  if( !ampforwp_levelup_compatibility('levelup_elementor') ){ // Level up Condition starts
1336
  //Footer
1697
  <?php }
1698
  if(ampforwp_get_setting('enable-single-mewe-share') == true) { ?>
1699
  .s_mewe{background:#b8d6e6;}
1700
+ <?php }
1701
+ if(ampforwp_get_setting('enable-single-flipboard-share') == true) { ?>
1702
+ .s_flipboard{background:#f52828;}
1703
+ <?php }
1704
  if($redux_builder_amp['enable-single-reddit-share']){?>
1705
  .s_rd{background:#ff4500;}
1706
  .s_rd:after{
1815
  <?php } ?>
1816
  }
1817
  <?php } ?>
1818
+ <?php if ( true == ampforwp_get_setting('enable-single-flipboard-share') ) {?>
1819
+ .s_fd{background:#f52828}
1820
+ <?php } ?>
1821
  <?php if( ampforwp_get_setting('enable-single-social-icons') ){ ?>
1822
  .s_stk{background: #f1f1f1;display:inline-block;width: 100%;padding:0;position:fixed;bottom: 0;text-align: center;border: 0;}
1823
  .s_stk ul{width:100%;display:inline-flex;}
2016
  .breadcrumb ul li,.breadcrumbs span{display: inline-block;list-style-type: none;font-size: 10px;text-transform: uppercase;margin-right: 5px;}
2017
  .breadcrumb ul li a, .breadcrumbs span a, .breadcrumbs .bread-post{color: #999;letter-spacing: 1px;}
2018
  .breadcrumb ul li a:hover, .breadcrumbs span a:hover{color: <?php echo $hovercolor; ?>;}
2019
+ .breadcrumbs li a:after, .breadcrumbs span a:after{
2020
+ <?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
2021
+ content: "\e315";font-family: 'icomoon';font-size: 12px;
2022
+ <?php }
2023
+ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
2024
+ content:"\f105";font-family: "Font Awesome 5 Free";font-weight:600;font-size:11px;
2025
+ <?php } ?>
2026
+ display: inline-block;color: #bdbdbd;padding-left: 5px;position: relative;top: 1px;}
2027
  .breadcrumbs li:last-child a:after {display: none;}
2028
  <?php } //Breadcrumbs Ends?>
2029
  <?php if(true == ampforwp_get_setting('ampforwp-smooth-scrolling-for-links')){?>
templates/features.php CHANGED
@@ -1101,6 +1101,10 @@ function ampforwp_remove_schema_data() {
1101
  ampforwp_remove_filters_for_class( 'the_content', 'A3_Lazy_Load', 'filter_content_images', 100 );
1102
  //optimole plugin images get removed in AMP #3073
1103
  ampforwp_remove_filters_for_class( 'optml_content_url', 'Optml_Url_Replacer', 'build_image_url', 1, 2 );
 
 
 
 
1104
  // Yoast Schema Compatibility #3332
1105
  if( ampforwp_get_setting('ampforwp-seo-selection') != "yoast"){
1106
  ampforwp_remove_filters_for_class( 'amp_post_template_head', 'WPSEO_Schema', 'json_ld', 9 );
@@ -1378,6 +1382,13 @@ function ampforwp_sticky_social_icons(){
1378
  </div>
1379
  </a>
1380
  <?php } ?>
 
 
 
 
 
 
 
1381
  </div>
1382
  <?php }
1383
  }
@@ -2698,7 +2709,7 @@ function ampforwp_sidebar_blacklist_tags($tags) {
2698
  return $tags;
2699
  }
2700
  // Sidebar Scripts
2701
- add_filter( 'amp_post_template_data', 'ampforwp_add_sidebar_data', 25 );
2702
  function ampforwp_add_sidebar_data( $data ) {
2703
  $sanitized_data_above_loop = '';
2704
  $sanitized_data_below_loop = '';
@@ -3244,6 +3255,17 @@ function ampforwp_add_meta_viewport() {
3244
  $output = '';
3245
  $output = '<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=2,user-scalable=yes">
3246
  ';
 
 
 
 
 
 
 
 
 
 
 
3247
  echo apply_filters('ampforwp_modify_meta_viewport_filter',$output);
3248
 
3249
  }
1101
  ampforwp_remove_filters_for_class( 'the_content', 'A3_Lazy_Load', 'filter_content_images', 100 );
1102
  //optimole plugin images get removed in AMP #3073
1103
  ampforwp_remove_filters_for_class( 'optml_content_url', 'Optml_Url_Replacer', 'build_image_url', 1, 2 );
1104
+ //Removed style tag appending before Html tag for themify pagebuilder #3376
1105
+ ampforwp_remove_filters_for_class( 'the_content', 'Themify_Builder', 'builder_show_on_front', 11 );
1106
+ ampforwp_remove_filters_for_class( 'the_content', 'Themify_Builder', 'builder_clear_static_content', 1 );
1107
+
1108
  // Yoast Schema Compatibility #3332
1109
  if( ampforwp_get_setting('ampforwp-seo-selection') != "yoast"){
1110
  ampforwp_remove_filters_for_class( 'amp_post_template_head', 'WPSEO_Schema', 'json_ld', 9 );
1382
  </div>
1383
  </a>
1384
  <?php } ?>
1385
+ <?php if ( true == ampforwp_get_setting('enable-single-flipboard-share') ) { ?>
1386
+ <a title="flipboard share" <?php ampforwp_nofollow_social_links(); ?> href="https://share.flipboard.com/bookmarklet/popout?v=<?php echo esc_html(get_the_title(ampforwp_get_the_ID())); ?>&url=<?php echo urlencode(esc_url($amp_permalink)); ?>" target="_blank">
1387
+ <div class="amp-social-icon custom-amp-socialsharing-flipboard">
1388
+ <amp-img src="<?php echo esc_url(AMPFORWP_IMAGE_DIR . '/flipboard.png') ?>" width="15" height="15" />
1389
+ </div>
1390
+ </a>
1391
+ <?php } ?>
1392
  </div>
1393
  <?php }
1394
  }
2709
  return $tags;
2710
  }
2711
  // Sidebar Scripts
2712
+ add_filter( 'amp_post_template_data', 'ampforwp_add_sidebar_data', 85 );
2713
  function ampforwp_add_sidebar_data( $data ) {
2714
  $sanitized_data_above_loop = '';
2715
  $sanitized_data_below_loop = '';
3255
  $output = '';
3256
  $output = '<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=2,user-scalable=yes">
3257
  ';
3258
+ if(!class_exists( 'AMPforWP_Mobile_Detect') && !ampforwp_get_setting('amp-mobile-redirection')){
3259
+ ampforwp_require_file( AMPFORWP_PLUGIN_DIR.'/includes/vendor/Mobile_Detect.php ');
3260
+ }
3261
+ if(class_exists('AMPforWP_Mobile_Detect')){
3262
+ $mobile_detect = new AMPforWP_Mobile_Detect;
3263
+ $isMobile = $mobile_detect->isMobile();
3264
+ $isTablet = $mobile_detect->isTablet();
3265
+ if( $isMobile || $isTablet ){
3266
+ $output = '<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,user-scalable=yes">';
3267
+ }
3268
+ }
3269
  echo apply_filters('ampforwp_modify_meta_viewport_filter',$output);
3270
 
3271
  }
templates/template-mode/admin-bar.css ADDED
@@ -0,0 +1,1051 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ #wpadminbar * {
3
+ height: auto;
4
+ width: auto;
5
+ margin: 0;
6
+ padding: 0;
7
+ /* Removed because interferes with amp-img>img: position: static; */
8
+ text-shadow: none;
9
+ text-transform: none;
10
+ letter-spacing: normal;
11
+ font-size: 13px;
12
+ font-weight: 400;
13
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
14
+ line-height: 32px;
15
+ border-radius: 0;
16
+ box-sizing: content-box;
17
+ transition: none;
18
+ -webkit-font-smoothing: subpixel-antialiased; /* Prevent Safari from switching to standard antialiasing on hover */
19
+ -moz-osx-font-smoothing: auto; /* Prevent Firefox from inheriting from themes that use other values */
20
+ }
21
+
22
+ .rtl #wpadminbar * {
23
+ font-family: Tahoma, sans-serif;
24
+ }
25
+
26
+ html:lang(he-il) .rtl #wpadminbar * {
27
+ font-family: Arial, sans-serif;
28
+ }
29
+
30
+ #wpadminbar .ab-empty-item {
31
+ cursor: default;
32
+ }
33
+
34
+ #wpadminbar .ab-empty-item,
35
+ #wpadminbar a.ab-item,
36
+ #wpadminbar > #wp-toolbar span.ab-label,
37
+ #wpadminbar > #wp-toolbar span.noticon {
38
+ color: #eee;
39
+ }
40
+
41
+ #wpadminbar #wp-admin-bar-site-name a.ab-item,
42
+ #wpadminbar #wp-admin-bar-my-sites a.ab-item {
43
+ white-space: nowrap;
44
+ overflow: hidden;
45
+ text-overflow: ellipsis;
46
+ }
47
+
48
+ #wpadminbar ul li:before,
49
+ #wpadminbar ul li:after {
50
+ content: normal;
51
+ }
52
+
53
+ #wpadminbar a,
54
+ #wpadminbar a:hover,
55
+ #wpadminbar a img,
56
+ #wpadminbar a img:hover {
57
+ outline: none;
58
+ border: none;
59
+ text-decoration: none;
60
+ background: none;
61
+ }
62
+
63
+ #wpadminbar a:focus,
64
+ #wpadminbar a:active,
65
+ #wpadminbar input[type="text"],
66
+ #wpadminbar input[type="password"],
67
+ #wpadminbar input[type="number"],
68
+ #wpadminbar input[type="search"],
69
+ #wpadminbar input[type="email"],
70
+ #wpadminbar input[type="url"],
71
+ #wpadminbar select,
72
+ #wpadminbar textarea,
73
+ #wpadminbar div {
74
+ box-shadow: none;
75
+ outline: none;
76
+ }
77
+
78
+ #wpadminbar {
79
+ direction: ltr;
80
+ color: #ccc;
81
+ font-size: 13px;
82
+ font-weight: 400;
83
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
84
+ line-height: 32px;
85
+ height: 32px;
86
+ position: fixed;
87
+ top: 0;
88
+ left: 0;
89
+ width: 100%;
90
+ min-width: 600px; /* match the min-width of the body in wp-admin.css */
91
+ z-index: 99999;
92
+ background: #23282d;
93
+ }
94
+
95
+ #wpadminbar .ab-sub-wrapper,
96
+ #wpadminbar ul,
97
+ #wpadminbar ul li {
98
+ background: none;
99
+ clear: none;
100
+ list-style: none;
101
+ margin: 0;
102
+ padding: 0;
103
+ position: relative;
104
+ text-indent: 0;
105
+ z-index: 99999;
106
+ }
107
+
108
+ #wpadminbar ul#wp-admin-bar-root-default>li {
109
+ margin-right: 0;
110
+ }
111
+
112
+ #wpadminbar .quicklinks ul {
113
+ text-align: left;
114
+ }
115
+
116
+ #wpadminbar li {
117
+ float: left;
118
+ }
119
+
120
+ #wpadminbar .ab-empty-item {
121
+ outline: none;
122
+ }
123
+
124
+ #wpadminbar .quicklinks .ab-top-secondary > li {
125
+ float: right;
126
+ }
127
+
128
+ #wpadminbar .quicklinks a,
129
+ #wpadminbar .quicklinks .ab-empty-item,
130
+ #wpadminbar .shortlink-input {
131
+ height: 32px;
132
+ display: block;
133
+ padding: 0 10px;
134
+ margin: 0;
135
+ }
136
+
137
+ #wpadminbar .quicklinks > ul > li > a {
138
+ padding: 0 8px 0 7px;
139
+ }
140
+
141
+ #wpadminbar .menupop .ab-sub-wrapper,
142
+ #wpadminbar .shortlink-input {
143
+ margin: 0;
144
+ padding: 0;
145
+ box-shadow: 0 3px 5px rgba(0,0,0,0.2);
146
+ background: #32373c;
147
+ display: none;
148
+ position: absolute;
149
+ float: none;
150
+ }
151
+
152
+ #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
153
+ min-width: 100%;
154
+ }
155
+
156
+ #wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper {
157
+ right: 0;
158
+ left: auto;
159
+ }
160
+
161
+ #wpadminbar .ab-submenu {
162
+ padding: 6px 0;
163
+ }
164
+
165
+ #wpadminbar .selected .shortlink-input {
166
+ display: block;
167
+ }
168
+
169
+ #wpadminbar .quicklinks .menupop ul li {
170
+ float: none;
171
+ }
172
+
173
+ #wpadminbar .quicklinks .menupop ul li a strong {
174
+ font-weight: 600;
175
+ }
176
+
177
+ #wpadminbar .quicklinks .menupop ul li .ab-item,
178
+ #wpadminbar .quicklinks .menupop ul li a strong,
179
+ #wpadminbar .quicklinks .menupop:focus-within ul li .ab-item,
180
+ #wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item,
181
+ #wpadminbar .shortlink-input {
182
+ line-height: 26px;
183
+ height: 26px;
184
+ white-space: nowrap;
185
+ min-width: 140px;
186
+ }
187
+
188
+ #wpadminbar .shortlink-input {
189
+ width: 200px;
190
+ }
191
+
192
+ #wpadminbar.nojs li:hover > .ab-sub-wrapper,
193
+ #wpadminbar li:focus-within > .ab-sub-wrapper {
194
+ display: block;
195
+ }
196
+
197
+ #wpadminbar .menupop li:hover > .ab-sub-wrapper,
198
+ #wpadminbar .menupop li:focus-within > .ab-sub-wrapper {
199
+ margin-left: 100%;
200
+ margin-top: -32px;
201
+ }
202
+
203
+ #wpadminbar .ab-top-secondary .menupop li:hover > .ab-sub-wrapper,
204
+ #wpadminbar .ab-top-secondary .menupop li:focus-within > .ab-sub-wrapper {
205
+ margin-left: 0;
206
+ left: inherit;
207
+ right: 100%;
208
+ }
209
+
210
+ #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus,
211
+ #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
212
+ #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
213
+ #wpadminbar .ab-top-menu > li:focus-within > .ab-item {
214
+ background: #32373c;
215
+ color: #00b9eb;
216
+ }
217
+ #wpadminbar .ab-top-menu > li:focus-within > .ab-item {
218
+ background: #32373c;
219
+ color: #00b9eb;
220
+ }
221
+
222
+ #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
223
+ #wpadminbar > #wp-toolbar li:focus-within span.ab-label,
224
+ #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
225
+ color: #00b9eb;
226
+ }
227
+
228
+ #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
229
+ #wpadminbar .ab-icon,
230
+ #wpadminbar .ab-item:before {
231
+ position: relative;
232
+ float: left;
233
+ font: normal 20px/1 dashicons;
234
+ speak: none;
235
+ padding: 4px 0;
236
+ -webkit-font-smoothing: antialiased;
237
+ -moz-osx-font-smoothing: grayscale;
238
+ background-image: none !important;
239
+ margin-right: 6px;
240
+ }
241
+
242
+ #wpadminbar .ab-icon:before,
243
+ #wpadminbar .ab-item:before,
244
+ #wpadminbar #adminbarsearch:before {
245
+ color: #a0a5aa;
246
+ color: rgba(240,245,250,0.6);
247
+ }
248
+
249
+ #wpadminbar .ab-icon:before,
250
+ #wpadminbar .ab-item:before,
251
+ #wpadminbar #adminbarsearch:before {
252
+ position: relative;
253
+ transition: all .1s ease-in-out;
254
+ }
255
+
256
+ #wpadminbar .ab-label {
257
+ display: inline-block;
258
+ height: 32px;
259
+ }
260
+
261
+ #wpadminbar .ab-submenu .ab-item {
262
+ color: #b4b9be;
263
+ color: rgba(240,245,250,0.7);
264
+ }
265
+
266
+ #wpadminbar .quicklinks .menupop ul li a,
267
+ #wpadminbar .quicklinks .menupop ul li a strong,
268
+ #wpadminbar .quicklinks .menupop:focus-within ul li a,
269
+ #wpadminbar.nojs .quicklinks .menupop:hover ul li a {
270
+ color: #b4b9be;
271
+ color: rgba(240,245,250,0.7);
272
+ }
273
+
274
+ #wpadminbar .quicklinks .menupop ul li a:hover,
275
+ #wpadminbar .quicklinks .menupop ul li a:focus,
276
+ #wpadminbar .quicklinks .menupop ul li a:hover strong,
277
+ #wpadminbar .quicklinks .menupop ul li a:focus strong,
278
+ #wpadminbar .quicklinks .ab-sub-wrapper .menupop:focus-within > a,
279
+ #wpadminbar .quicklinks .menupop:focus-within ul li a:hover,
280
+ #wpadminbar .quicklinks .menupop:focus-within ul li a:focus,
281
+ #wpadminbar .quicklinks .menupop:focus-within ul li div[tabindex]:hover,
282
+ #wpadminbar .quicklinks .menupop:focus-within ul li div[tabindex]:focus,
283
+ #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
284
+ #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
285
+ #wpadminbar li:hover .ab-icon:before,
286
+ #wpadminbar li:hover .ab-item:before,
287
+ #wpadminbar li a:focus .ab-icon:before,
288
+ #wpadminbar li .ab-item:focus:before,
289
+ #wpadminbar li .ab-item:focus .ab-icon:before,
290
+ #wpadminbar li:focus-within .ab-icon:before,
291
+ #wpadminbar li:focus-within .ab-item:before,
292
+ #wpadminbar li:hover #adminbarsearch:before,
293
+ #wpadminbar li #adminbarsearch.adminbar-focused:before {
294
+ color: #00b9eb;
295
+ }
296
+
297
+ #wpadminbar.mobile .quicklinks .ab-icon:before,
298
+ #wpadminbar.mobile .quicklinks .ab-item:before {
299
+ color: #b4b9be;
300
+ }
301
+
302
+ #wpadminbar .menupop .menupop > .ab-item:before,
303
+ #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
304
+ position: absolute;
305
+ font: normal 17px/1 dashicons;
306
+ speak: none;
307
+ -webkit-font-smoothing: antialiased;
308
+ -moz-osx-font-smoothing: grayscale;
309
+ }
310
+
311
+ #wpadminbar .menupop .menupop > .ab-item {
312
+ display: block;
313
+ padding-right: 2em;
314
+ }
315
+
316
+ #wpadminbar .menupop .menupop > .ab-item:before {
317
+ top: 1px;
318
+ right: 4px;
319
+ content: "\f139";
320
+ color: inherit;
321
+ }
322
+
323
+ #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item {
324
+ padding-left: 2em;
325
+ padding-right: 1em;
326
+ }
327
+
328
+ #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
329
+ top: 1px;
330
+ left: 6px;
331
+ content: "\f141";
332
+ }
333
+
334
+ #wpadminbar .quicklinks .menupop ul.ab-sub-secondary {
335
+ display: block;
336
+ position: relative;
337
+ right: auto;
338
+ margin: 0;
339
+ box-shadow: none;
340
+ }
341
+
342
+ #wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
343
+ #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
344
+ background: #464b50;
345
+ }
346
+
347
+ #wpadminbar .quicklinks .menupop .ab-sub-secondary > li > a:hover,
348
+ #wpadminbar .quicklinks .menupop .ab-sub-secondary > li .ab-item:focus a {
349
+ color: #00b9eb;
350
+ }
351
+
352
+ #wpadminbar .quicklinks a span#ab-updates {
353
+ background: #eee;
354
+ color: #32373c;
355
+ display: inline;
356
+ padding: 2px 5px;
357
+ font-size: 10px;
358
+ font-weight: 600;
359
+ border-radius: 10px;
360
+ }
361
+
362
+ #wpadminbar .quicklinks a:hover span#ab-updates {
363
+ background: #fff;
364
+ color: #000;
365
+ }
366
+
367
+ #wpadminbar .ab-top-secondary {
368
+ float: right;
369
+ }
370
+
371
+ #wpadminbar ul li:last-child,
372
+ #wpadminbar ul li:last-child .ab-item {
373
+ box-shadow: none;
374
+ }
375
+
376
+ /**
377
+ * My Account
378
+ */
379
+ #wp-admin-bar-my-account > ul {
380
+ min-width: 198px;
381
+ }
382
+
383
+ #wp-admin-bar-my-account > .ab-item:before {
384
+ content: "\f110";
385
+ top: 2px;
386
+ float: right;
387
+ margin-left: 6px;
388
+ margin-right: 0;
389
+ }
390
+
391
+ #wp-admin-bar-my-account.with-avatar > .ab-item:before {
392
+ display: none;
393
+ content: none;
394
+ }
395
+
396
+ #wp-admin-bar-my-account.with-avatar > ul {
397
+ min-width: 270px;
398
+ }
399
+
400
+ #wpadminbar #wp-admin-bar-user-actions > li {
401
+ margin-left: 16px;
402
+ margin-right: 16px;
403
+ }
404
+
405
+ #wpadminbar #wp-admin-bar-user-actions.ab-submenu {
406
+ padding: 6px 0 12px;
407
+ }
408
+
409
+ #wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li {
410
+ margin-left: 88px;
411
+ }
412
+
413
+ #wpadminbar #wp-admin-bar-user-info {
414
+ margin-top: 6px;
415
+ margin-bottom: 15px;
416
+ height: auto;
417
+ background: none;
418
+ }
419
+
420
+ #wp-admin-bar-user-info .avatar {
421
+ /* TODO: The amp-img>img does not get loaded since the container is initially hidden, and :hover does not trigger a re-calc. Resizing the window does, however. */
422
+ position: absolute;
423
+ left: -72px;
424
+ top: 4px;
425
+ width: 64px;
426
+ height: 64px;
427
+ }
428
+
429
+ #wpadminbar #wp-admin-bar-user-info a {
430
+ background: none;
431
+ height: auto;
432
+ }
433
+
434
+ #wpadminbar #wp-admin-bar-user-info span {
435
+ background: none;
436
+ padding: 0;
437
+ height: 18px;
438
+ }
439
+
440
+ #wpadminbar #wp-admin-bar-user-info .display-name,
441
+ #wpadminbar #wp-admin-bar-user-info .username {
442
+ display: block;
443
+ }
444
+
445
+ #wpadminbar #wp-admin-bar-user-info .username {
446
+ color: #a0a5aa;
447
+ font-size: 11px;
448
+ }
449
+
450
+ #wpadminbar #wp-admin-bar-my-account.with-avatar > .ab-empty-item img,
451
+ #wpadminbar #wp-admin-bar-my-account.with-avatar > a img {
452
+ width: 16px; /* Was auto. */
453
+ height: 16px;
454
+ padding: 0;
455
+ border: 1px solid #82878c;
456
+ background: #eee;
457
+ line-height: 24px;
458
+ vertical-align: middle;
459
+ margin: -4px 0 0 6px;
460
+ float: none;
461
+ display: inline-block; /* Was inline. */
462
+ }
463
+
464
+ /**
465
+ * WP Logo
466
+ */
467
+ #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
468
+ width: 15px;
469
+ height: 20px;
470
+ margin-right: 0;
471
+ padding: 6px 0 5px;
472
+ }
473
+
474
+ #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
475
+ padding: 0 7px;
476
+ }
477
+
478
+ #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
479
+ content: "\f120";
480
+ top: 2px;
481
+ }
482
+
483
+ /*
484
+ * My Sites & Site Title
485
+ */
486
+ #wpadminbar .quicklinks li .blavatar {
487
+ float: left;
488
+ font: normal 16px/1 dashicons !important;
489
+ speak: none;
490
+ -webkit-font-smoothing: antialiased;
491
+ -moz-osx-font-smoothing: grayscale;
492
+ color: #eee;
493
+ }
494
+
495
+ #wpadminbar .quicklinks li a:hover .blavatar,
496
+ #wpadminbar .quicklinks li a:focus .blavatar,
497
+ #wpadminbar .quicklinks .ab-sub-wrapper .menupop:focus-within > a .blavatar {
498
+ color: #00b9eb;
499
+ }
500
+
501
+ #wpadminbar .quicklinks li .blavatar:before {
502
+ content: "\f120";
503
+ height: 16px;
504
+ width: 16px;
505
+ display: inline-block;
506
+ margin: 6px 8px 0 -2px;
507
+ }
508
+
509
+ #wpadminbar #wp-admin-bar-appearance {
510
+ margin-top: -12px;
511
+ }
512
+
513
+ #wpadminbar #wp-admin-bar-my-sites > .ab-item:before,
514
+ #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
515
+ content: "\f541";
516
+ top: 2px;
517
+ }
518
+
519
+ #wpadminbar #wp-admin-bar-customize > .ab-item:before {
520
+ content: "\f540";
521
+ top: 2px;
522
+ }
523
+
524
+
525
+ #wpadminbar #wp-admin-bar-edit > .ab-item:before {
526
+ content: "\f464";
527
+ top: 2px;
528
+ }
529
+
530
+ #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
531
+ content: "\f226";
532
+ }
533
+
534
+ .wp-admin #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
535
+ content: "\f102";
536
+ }
537
+
538
+
539
+
540
+ /**
541
+ * Comments
542
+ */
543
+ #wpadminbar #wp-admin-bar-comments .ab-icon {
544
+ margin-right: 6px;
545
+ }
546
+
547
+ #wpadminbar #wp-admin-bar-comments .ab-icon:before {
548
+ content: "\f101";
549
+ top: 3px;
550
+ }
551
+
552
+ #wpadminbar #wp-admin-bar-comments .count-0 {
553
+ opacity: .5;
554
+ }
555
+
556
+ /**
557
+ * New Content
558
+ */
559
+ #wpadminbar #wp-admin-bar-new-content .ab-icon:before {
560
+ content: "\f132";
561
+ top: 4px;
562
+ }
563
+
564
+ /**
565
+ * Updates
566
+ */
567
+ #wpadminbar #wp-admin-bar-updates .ab-icon:before {
568
+ content: "\f463";
569
+ top: 2px;
570
+ }
571
+
572
+ /**
573
+ * Search
574
+ */
575
+ #wpadminbar #wp-admin-bar-search .ab-item {
576
+ padding: 0;
577
+ background: transparent;
578
+ }
579
+
580
+ #wpadminbar #adminbarsearch {
581
+ position: relative;
582
+ height: 32px;
583
+ padding: 0 2px;
584
+ z-index: 1;
585
+ }
586
+
587
+ #wpadminbar #adminbarsearch:before {
588
+ position: absolute;
589
+ top: 6px;
590
+ left: 5px;
591
+ z-index: 20;
592
+ font: normal 20px/1 dashicons !important;
593
+ content: "\f179";
594
+ speak: none;
595
+ -webkit-font-smoothing: antialiased;
596
+ -moz-osx-font-smoothing: grayscale;
597
+ }
598
+
599
+ /* The admin bar search field needs to reset many styles that might be inherited from the active Theme CSS. See ticket #40313. */
600
+ #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
601
+ display: inline-block;
602
+ float: none;
603
+ position: relative;
604
+ z-index: 30;
605
+ font-size: 13px;
606
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
607
+ line-height: 24px;
608
+ text-indent: 0;
609
+ height: 24px;
610
+ width: 24px;
611
+ max-width: none;
612
+ padding: 0 3px 0 24px;
613
+ margin: 0;
614
+ color: #ccc;
615
+ background-color: rgba( 255, 255, 255, 0 );
616
+ border: none;
617
+ outline: none;
618
+ cursor: pointer;
619
+ box-shadow: none;
620
+ box-sizing: border-box;
621
+ transition-duration: 400ms;
622
+ transition-property: width, background;
623
+ transition-timing-function: ease;
624
+ }
625
+
626
+ #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
627
+ z-index: 10;
628
+ color: #000;
629
+ width: 200px;
630
+ background-color: rgba( 255, 255, 255, 0.9 );
631
+ cursor: text;
632
+ border: 0;
633
+ }
634
+
635
+ /* Removed IE hacks. */
636
+
637
+ #wpadminbar #adminbarsearch .adminbar-button {
638
+ display: none;
639
+ }
640
+
641
+ /**
642
+ * Customize support classes
643
+ */
644
+ .no-customize-support .hide-if-no-customize,
645
+ .customize-support .hide-if-customize,
646
+ .no-customize-support #wpadminbar .hide-if-no-customize,
647
+ .no-customize-support.wp-core-ui .hide-if-no-customize,
648
+ .no-customize-support .wp-core-ui .hide-if-no-customize,
649
+ .customize-support #wpadminbar .hide-if-customize,
650
+ .customize-support.wp-core-ui .hide-if-customize,
651
+ .customize-support .wp-core-ui .hide-if-customize {
652
+ display: none;
653
+ }
654
+
655
+ /* Skip link */
656
+ #wpadminbar .screen-reader-text,
657
+ #wpadminbar .screen-reader-text span {
658
+ border: 0;
659
+ clip: rect(1px, 1px, 1px, 1px);
660
+ -webkit-clip-path: inset(50%);
661
+ clip-path: inset(50%);
662
+ height: 1px;
663
+ margin: -1px;
664
+ overflow: hidden;
665
+ padding: 0;
666
+ position: absolute;
667
+ width: 1px;
668
+ word-wrap: normal !important;
669
+ }
670
+
671
+ #wpadminbar .screen-reader-shortcut {
672
+ position: absolute;
673
+ top: -1000em;
674
+ }
675
+
676
+ #wpadminbar .screen-reader-shortcut:focus {
677
+ left: 6px;
678
+ top: 7px;
679
+ height: auto;
680
+ width: auto;
681
+ display: block;
682
+ font-size: 14px;
683
+ font-weight: 600;
684
+ padding: 15px 23px 14px;
685
+ background: #f1f1f1;
686
+ color: #0073aa;
687
+ z-index: 100000;
688
+ line-height: normal;
689
+ text-decoration: none;
690
+ box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
691
+ }
692
+
693
+ /**
694
+ * Removed IE 6-targeted rules
695
+ */
696
+
697
+ /* Removed No @font-face support */
698
+
699
+ @media screen and ( max-width: 782px ) {
700
+ /* Toolbar Touchification*/
701
+ html #wpadminbar {
702
+ height: 46px;
703
+ min-width: 300px;
704
+ }
705
+
706
+ #wpadminbar * {
707
+ font-size: 14px;
708
+ font-weight: 400;
709
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
710
+ line-height: 32px;
711
+ }
712
+
713
+ #wpadminbar .quicklinks > ul > li > a,
714
+ #wpadminbar .quicklinks .ab-empty-item {
715
+ padding: 0;
716
+ height: 46px;
717
+ line-height: 46px;
718
+ width: auto;
719
+ }
720
+
721
+ #wpadminbar .ab-icon {
722
+ font: 40px/1 dashicons !important;
723
+ margin: 0;
724
+ padding: 0;
725
+ width: 52px;
726
+ height: 46px;
727
+ text-align: center;
728
+ }
729
+
730
+ #wpadminbar .ab-icon:before {
731
+ text-align: center;
732
+ }
733
+
734
+ #wpadminbar .ab-submenu {
735
+ padding: 0;
736
+ }
737
+
738
+ #wpadminbar #wp-admin-bar-site-name a.ab-item,
739
+ #wpadminbar #wp-admin-bar-my-sites a.ab-item,
740
+ #wpadminbar #wp-admin-bar-my-account a.ab-item {
741
+ text-overflow: clip;
742
+ }
743
+
744
+ #wpadminbar .ab-label {
745
+ display: none;
746
+ }
747
+
748
+ #wpadminbar .menupop li:hover > .ab-sub-wrapper,
749
+ #wpadminbar .menupop li:focus-within > .ab-sub-wrapper {
750
+ margin-top: -46px;
751
+ }
752
+
753
+ #wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop > .ab-item {
754
+ padding-right: 30px;
755
+ }
756
+
757
+ #wpadminbar .menupop .menupop > .ab-item:before {
758
+ top: 10px;
759
+ right: 6px;
760
+ }
761
+
762
+ #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper .ab-item {
763
+ font-size: 16px;
764
+ padding: 8px 16px;
765
+ }
766
+
767
+ #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper a:empty {
768
+ display: none;
769
+ }
770
+
771
+ /* WP logo */
772
+ #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
773
+ padding: 0;
774
+ }
775
+
776
+ #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
777
+ padding: 0;
778
+ width: 52px;
779
+ height: 46px;
780
+ text-align: center;
781
+ vertical-align: top;
782
+ }
783
+
784
+ #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
785
+ font: 28px/1 dashicons !important;
786
+ top: -3px;
787
+ }
788
+
789
+ #wpadminbar .ab-icon,
790
+ #wpadminbar .ab-item:before {
791
+ padding: 0;
792
+ }
793
+
794
+ /* My Sites and "Site Title" menu */
795
+ #wpadminbar #wp-admin-bar-my-sites > .ab-item,
796
+ #wpadminbar #wp-admin-bar-site-name > .ab-item,
797
+ #wpadminbar #wp-admin-bar-customize > .ab-item,
798
+ #wpadminbar #wp-admin-bar-edit > .ab-item,
799
+ #wpadminbar #wp-admin-bar-my-account > .ab-item {
800
+ text-indent: 100%;
801
+ white-space: nowrap;
802
+ overflow: hidden;
803
+ width: 52px;
804
+ padding: 0;
805
+ color: #a0a5aa; /* @todo not needed? this text is hidden */
806
+ position: relative;
807
+ }
808
+
809
+ #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
810
+ #wpadminbar .ab-icon,
811
+ #wpadminbar .ab-item:before {
812
+ padding: 0;
813
+ margin-right: 0;
814
+ }
815
+
816
+ #wpadminbar #wp-admin-bar-edit > .ab-item:before,
817
+ #wpadminbar #wp-admin-bar-my-sites > .ab-item:before,
818
+ #wpadminbar #wp-admin-bar-site-name > .ab-item:before,
819
+ #wpadminbar #wp-admin-bar-customize > .ab-item:before,
820
+ #wpadminbar #wp-admin-bar-my-account > .ab-item:before {
821
+ display: block;
822
+ text-indent: 0;
823
+ font: normal 32px/1 dashicons;
824
+ speak: none;
825
+ top: 7px;
826
+ width: 52px;
827
+ text-align: center;
828
+ -webkit-font-smoothing: antialiased;
829
+ -moz-osx-font-smoothing: grayscale;
830
+ }
831
+
832
+ #wpadminbar #wp-admin-bar-appearance {
833
+ margin-top: 0;
834
+ }
835
+
836
+ #wpadminbar .quicklinks li .blavatar:before {
837
+ display: none;
838
+ }
839
+
840
+ /* Search */
841
+ #wpadminbar #wp-admin-bar-search {
842
+ display: none;
843
+ }
844
+
845
+ /* New Content */
846
+ #wpadminbar #wp-admin-bar-new-content .ab-icon:before {
847
+ top: 0;
848
+ line-height: 53px;
849
+ height: 46px !important;
850
+ text-align: center;
851
+ width: 52px;
852
+ display: block;
853
+ }
854
+
855
+ /* Updates */
856
+ #wpadminbar #wp-admin-bar-updates {
857
+ text-align: center;
858
+ }
859
+
860
+ #wpadminbar #wp-admin-bar-updates .ab-icon:before {
861
+ top: 3px;
862
+ }
863
+
864
+ /* Comments */
865
+ #wpadminbar #wp-admin-bar-comments .ab-icon {
866
+ margin: 0;
867
+ }
868
+
869
+ #wpadminbar #wp-admin-bar-comments .ab-icon:before {
870
+ display: block;
871
+ font-size: 34px;
872
+ height: 46px;
873
+ line-height: 47px;
874
+ top: 0;
875
+ }
876
+
877
+ /* My Account */
878
+ #wpadminbar #wp-admin-bar-my-account > a {
879
+ position: relative;
880
+ white-space: nowrap;
881
+ text-indent: 150%; /* More than 100% indention is needed since this element has padding */
882
+ width: 28px;
883
+ padding: 0 10px;
884
+ overflow: hidden; /* Prevent link text from forcing horizontal scrolling on mobile */
885
+ }
886
+
887
+ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
888
+ position: absolute;
889
+ top: 13px;
890
+ right: 10px;
891
+ width: 26px;
892
+ height: 26px;
893
+ }
894
+
895
+ #wpadminbar #wp-admin-bar-user-actions.ab-submenu {
896
+ padding: 0;
897
+ }
898
+
899
+ #wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar {
900
+ display: none;
901
+ }
902
+
903
+ #wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li {
904
+ margin: 0;
905
+ }
906
+
907
+ #wpadminbar #wp-admin-bar-user-info .display-name {
908
+ height: auto;
909
+ font-size: 16px;
910
+ line-height: 24px;
911
+ color: #eee;
912
+ }
913
+
914
+ #wpadminbar #wp-admin-bar-user-info a {
915
+ padding-top: 4px;
916
+ }
917
+
918
+ #wpadminbar #wp-admin-bar-user-info .username {
919
+ line-height: 0.8 !important;
920
+ margin-bottom: -2px;
921
+ }
922
+
923
+ /* Show only default top level items */
924
+ #wp-toolbar > ul > li {
925
+ display: none;
926
+ }
927
+
928
+ #wpadminbar li#wp-admin-bar-menu-toggle,
929
+ #wpadminbar li#wp-admin-bar-wp-logo,
930
+ #wpadminbar li#wp-admin-bar-my-sites,
931
+ #wpadminbar li#wp-admin-bar-updates,
932
+ #wpadminbar li#wp-admin-bar-site-name,
933
+ #wpadminbar li#wp-admin-bar-customize,
934
+ #wpadminbar li#wp-admin-bar-new-content,
935
+ #wpadminbar li#wp-admin-bar-edit,
936
+ #wpadminbar li#wp-admin-bar-comments,
937
+ #wpadminbar li#wp-admin-bar-my-account {
938
+ display: block;
939
+ }
940
+
941
+ /* Allow dropdown list items to appear normally */
942
+ #wpadminbar li:hover ul li,
943
+ #wpadminbar li:focus-within ul li,
944
+ #wpadminbar li:hover ul li:hover ul li {
945
+ display: list-item;
946
+ }
947
+
948
+ /* Override default min-width so dropdown lists aren't stretched
949
+ to 100% viewport width at responsive sizes. */
950
+ #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
951
+ min-width: -webkit-fit-content;
952
+ min-width: -moz-fit-content;
953
+ min-width: fit-content;
954
+ }
955
+
956
+ #wpadminbar ul#wp-admin-bar-root-default > li {
957
+ margin-right: 0;
958
+ }
959
+
960
+ /* Experimental fix for touch toolbar dropdown positioning */
961
+ #wpadminbar .ab-top-menu,
962
+ #wpadminbar .ab-top-secondary,
963
+ #wpadminbar #wp-admin-bar-wp-logo,
964
+ #wpadminbar #wp-admin-bar-my-sites,
965
+ #wpadminbar #wp-admin-bar-site-name,
966
+ #wpadminbar #wp-admin-bar-updates,
967
+ #wpadminbar #wp-admin-bar-comments,
968
+ #wpadminbar #wp-admin-bar-new-content,
969
+ #wpadminbar #wp-admin-bar-edit,
970
+ #wpadminbar #wp-admin-bar-my-account {
971
+ position: static;
972
+ }
973
+
974
+ #wpadminbar #wp-admin-bar-my-account {
975
+ float: right;
976
+ }
977
+
978
+ .network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
979
+ margin-right: 0;
980
+ }
981
+
982
+ /* Realign arrows on taller responsive submenus */
983
+
984
+ #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
985
+ top: 10px;
986
+ left: 0;
987
+ }
988
+ }
989
+
990
+ /* Smartphone */
991
+ @media screen and (max-width: 600px) {
992
+ /* Removed: #wpadminbar { position: absolute; } */
993
+
994
+ #wp-responsive-overlay {
995
+ position: fixed;
996
+ top: 0;
997
+ left: 0;
998
+ width: 100%;
999
+ height: 100%;
1000
+ z-index: 400;
1001
+ }
1002
+
1003
+ #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
1004
+ width: 100%;
1005
+ left: 0;
1006
+ }
1007
+
1008
+ #wpadminbar .menupop .menupop > .ab-item:before {
1009
+ display: none;
1010
+ }
1011
+
1012
+ #wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper {
1013
+ margin-left: 0;
1014
+ }
1015
+
1016
+ #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
1017
+ margin: 0;
1018
+ width: 100%;
1019
+ top: auto;
1020
+ left: auto;
1021
+ position: relative;
1022
+ }
1023
+
1024
+ #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper .ab-item {
1025
+ font-size: 16px;
1026
+ padding: 6px 15px 19px 30px;
1027
+ }
1028
+
1029
+ #wpadminbar li:hover ul li ul li {
1030
+ display: list-item;
1031
+ }
1032
+
1033
+ #wpadminbar li#wp-admin-bar-wp-logo,
1034
+ #wpadminbar li#wp-admin-bar-updates {
1035
+ display: none;
1036
+ }
1037
+
1038
+ /* Make submenus full-width at this size */
1039
+
1040
+ #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
1041
+ position: static;
1042
+ box-shadow: none;
1043
+ }
1044
+ }
1045
+
1046
+ /* Very narrow screens */
1047
+ @media screen and (max-width: 400px) {
1048
+ #wpadminbar li#wp-admin-bar-comments {
1049
+ display: none;
1050
+ }
1051
+ }