AMP for WP – Accelerated Mobile Pages - Version 0.9.97.50

Version Description

(29th April 2019) = * Added: New Icon of Telegram in all the Designs #2448 * Added: Swift icon and Font awesome icon option added in Design's global section [Swift theme] #2992 * Added: Category option added in Design's single section [Swift theme] #2551 * Added: Yoast author twitter handle compatibility integrated #2133 * Added: New function ampforwp_get_the_ID() created #2867 * Fixed: Facebook comment and Like option gives an error when the bbPress plugin is enabled #3006 * Fixed: When Gutenberg active left sidebar is not visible in page builder modules #2934 * Fixed: AMP preview functionality showing blank in the preview mode #3029 * Fixed: Image floats CSS improved in mobile mode #2525 * Fixed: Related Posts Randomly in Swift theme #2308 * Fixed: Pricing module content is not center in page builder #2921 * Fixed: Background image of the page builder is zooming in IOS devices when the parallax effect is enabled #2844 * Fixed: Footnotes compatibility code updated #2982 * Fixed: Iframe is not loading when Convert AMP to WP theme (Beta) option is enabled [Swift theme] #2628 * Fixed: PHP Warning Undefined variable #3103

Full changelog available in changelog.txt

Download this release

Release Info

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

Code changes from version 0.9.97.49 to 0.9.97.50

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.1.1
7
- Stable tag: 0.9.97.49
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -183,6 +183,23 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
183
 
184
  == Changelog ==
185
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  = 0.9.97.49 (26th April 2019) =
187
  * Added: Addthis Support integrated #2416
188
  * Added: A3 Lazy Load compatibility #2872
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.1.1
7
+ Stable tag: 0.9.97.50
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
183
 
184
  == Changelog ==
185
 
186
+ = 0.9.97.50 (29th April 2019) =
187
+ * Added: New Icon of Telegram in all the Designs #2448
188
+ * Added: Swift icon and Font awesome icon option added in Design's global section [Swift theme] #2992
189
+ * Added: Category option added in Design's single section [Swift theme] #2551
190
+ * Added: Yoast author twitter handle compatibility integrated #2133
191
+ * Added: New function ampforwp_get_the_ID() created #2867
192
+ * Fixed: Facebook comment and Like option gives an error when the bbPress plugin is enabled #3006
193
+ * Fixed: When Gutenberg active left sidebar is not visible in page builder modules #2934
194
+ * Fixed: AMP preview functionality showing blank in the preview mode #3029
195
+ * Fixed: Image floats CSS improved in mobile mode #2525
196
+ * Fixed: Related Posts Randomly in Swift theme #2308
197
+ * Fixed: Pricing module content is not center in page builder #2921
198
+ * Fixed: Background image of the page builder is zooming in IOS devices when the parallax effect is enabled #2844
199
+ * Fixed: Footnotes compatibility code updated #2982
200
+ * Fixed: Iframe is not loading when Convert AMP to WP theme (Beta) option is enabled [Swift theme] #2628
201
+ * Fixed: PHP Warning Undefined variable #3103
202
+
203
  = 0.9.97.49 (26th April 2019) =
204
  * Added: Addthis Support integrated #2416
205
  * Added: A3 Lazy Load compatibility #2872
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.49
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.49');
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(){
@@ -996,16 +996,18 @@ add_action('parse_query','ampforwp_vendor_is_amp_endpoint');
996
  function ampforwp_vendor_is_amp_endpoint(){
997
  if ( ! function_exists('amp_activate') && ! function_exists('is_amp_endpoint' ) ) {
998
  function is_amp_endpoint(){
999
- _doing_it_wrong(
1000
- __FUNCTION__,
1001
- sprintf(
1002
- /* translators: 1: is_amp_endpoint(), 2: ampforwp_is_amp_endpoint */
1003
- esc_html__( '%1$s is deprecated from AMPforWP, please use %2$s instead. Check %3$s for more info', 'accelerated-mobile-pages' ),
1004
- 'is_amp_endpoint()',
1005
- 'ampforwp_is_amp_endpoint','https://ampforwp.com/tutorials/article/detect-amp-page-function/'
1006
- ),
1007
- '5.1.1'
1008
- );
 
 
1009
  return false !== get_query_var( AMP_QUERY_VAR, false );
1010
  }
1011
  }
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.50
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.50');
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(){
996
  function ampforwp_vendor_is_amp_endpoint(){
997
  if ( ! function_exists('amp_activate') && ! function_exists('is_amp_endpoint' ) ) {
998
  function is_amp_endpoint(){
999
+ if( true == WP_DEBUG_LOG && false == WP_DEBUG_DISPLAY ){
1000
+ _doing_it_wrong(
1001
+ __FUNCTION__,
1002
+ sprintf(
1003
+ /* translators: 1: is_amp_endpoint(), 2: ampforwp_is_amp_endpoint */
1004
+ esc_html__( '%1$s is deprecated from AMPforWP, please use %2$s instead. Check %3$s for more info', 'accelerated-mobile-pages' ),
1005
+ 'is_amp_endpoint()',
1006
+ 'ampforwp_is_amp_endpoint','https://ampforwp.com/tutorials/article/detect-amp-page-function/'
1007
+ ),
1008
+ '5.1.1'
1009
+ );
1010
+ }
1011
  return false !== get_query_var( AMP_QUERY_VAR, false );
1012
  }
1013
  }
changelog.txt CHANGED
@@ -1,5 +1,22 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 0.9.97.49 (26th April 2019) =
4
  * Added: Addthis Support integrated #2416
5
  * Added: A3 Lazy Load compatibility #2872
1
  == Changelog ==
2
 
3
+ = 0.9.97.50 (29th April 2019) =
4
+ * Added: New Icon of Telegram in all the Designs #2448
5
+ * Added: Swift icon and Font awesome icon option added in Design's global section [Swift theme] #2992
6
+ * Added: Category option added in Design's single section [Swift theme] #2551
7
+ * Added: Yoast author twitter handle compatibility integrated #2133
8
+ * Added: New function ampforwp_get_the_ID() created #2867
9
+ * Fixed: Facebook comment and Like option gives an error when the bbPress plugin is enabled #3006
10
+ * Fixed: When Gutenberg active left sidebar is not visible in page builder modules #2934
11
+ * Fixed: AMP preview functionality showing blank in the preview mode #3029
12
+ * Fixed: Image floats CSS improved in mobile mode #2525
13
+ * Fixed: Related Posts Randomly in Swift theme #2308
14
+ * Fixed: Pricing module content is not center in page builder #2921
15
+ * Fixed: Background image of the page builder is zooming in IOS devices when the parallax effect is enabled #2844
16
+ * Fixed: Footnotes compatibility code updated #2982
17
+ * Fixed: Iframe is not loading when Convert AMP to WP theme (Beta) option is enabled [Swift theme] #2628
18
+ * Fixed: PHP Warning Undefined variable #3103
19
+
20
  = 0.9.97.49 (26th April 2019) =
21
  * Added: Addthis Support integrated #2416
22
  * Added: A3 Lazy Load compatibility #2872
components/author-box/author-box.php CHANGED
@@ -79,13 +79,16 @@ if ( isset($args['show_time']) ) {
79
  if ( true == $redux_builder_amp['ampforwp-author-page-url'] ){
80
  if ( function_exists('coauthors_posts_links') ) {
81
  echo '<span class="author-name">' .esc_attr($author_prefix) . esc_attr($author_link) . ' </span>';
 
82
  }
83
  else {
84
  echo '<span class="author-name">' .esc_attr($author_prefix) . ' <a href="'. ampforwp_url_controller($author_link).'"> ' .esc_html( $author_name ).'</a></span>';
 
85
  }
86
  }
87
  else
88
  echo '<span class="author-name">' . esc_attr($author_prefix) . esc_html( $author_name ) . '</span>';
 
89
 
90
  //to show date and time
91
  if ( $show_date || $show_time ) {
79
  if ( true == $redux_builder_amp['ampforwp-author-page-url'] ){
80
  if ( function_exists('coauthors_posts_links') ) {
81
  echo '<span class="author-name">' .esc_attr($author_prefix) . esc_attr($author_link) . ' </span>';
82
+ echo ampforwp_yoast_twitter_handle();
83
  }
84
  else {
85
  echo '<span class="author-name">' .esc_attr($author_prefix) . ' <a href="'. ampforwp_url_controller($author_link).'"> ' .esc_html( $author_name ).'</a></span>';
86
+ echo ampforwp_yoast_twitter_handle();
87
  }
88
  }
89
  else
90
  echo '<span class="author-name">' . esc_attr($author_prefix) . esc_html( $author_name ) . '</span>';
91
+ echo ampforwp_yoast_twitter_handle();
92
 
93
  //to show date and time
94
  if ( $show_date || $show_time ) {
components/categories-tags/categories-tags.php CHANGED
@@ -7,6 +7,7 @@ global $post;
7
  function ampforwp_framework_get_categories_list(){
8
  global $post, $redux_builder_amp;
9
  $ampforwp_categories = get_the_terms( $post->ID, 'category' );
 
10
  if ( $ampforwp_categories ) : ?>
11
  <div class="amp-category">
12
  <span><?php echo esc_html(ampforwp_translation($redux_builder_amp['amp-translator-categories-text'], 'Categories' )); ?></span>
@@ -20,6 +21,7 @@ function ampforwp_framework_get_categories_list(){
20
  </div>
21
  <?php endif;
22
  }
 
23
  function ampforwp_framework_get_tags_list(){
24
  global $post, $redux_builder_amp;
25
  $ampforwp_tags = get_the_terms( $post->ID, 'post_tag' );
7
  function ampforwp_framework_get_categories_list(){
8
  global $post, $redux_builder_amp;
9
  $ampforwp_categories = get_the_terms( $post->ID, 'category' );
10
+ if(ampforwp_get_setting('ampforwp-cats-single') == '1'){
11
  if ( $ampforwp_categories ) : ?>
12
  <div class="amp-category">
13
  <span><?php echo esc_html(ampforwp_translation($redux_builder_amp['amp-translator-categories-text'], 'Categories' )); ?></span>
21
  </div>
22
  <?php endif;
23
  }
24
+ }
25
  function ampforwp_framework_get_tags_list(){
26
  global $post, $redux_builder_amp;
27
  $ampforwp_tags = get_the_terms( $post->ID, 'post_tag' );
components/comments/comments.php CHANGED
@@ -256,8 +256,8 @@ function ampforwp_framework_comments_scripts( $data ) {
256
  $is_pb_enabled = checkAMPforPageBuilderStatus(get_the_ID());
257
  $display_comments_on = "";
258
  $display_comments_on = ampforwp_get_comments_status();
259
-
260
- if ( $facebook_comments_check && $redux_builder_amp['ampforwp-facebook-comments-support'] && $display_comments_on && !is_front_page() && !$is_pb_enabled ) {
261
  if ( empty( $data['amp_component_scripts']['amp-facebook-comments'] ) ) {
262
  $data['amp_component_scripts']['amp-facebook-comments'] = 'https://cdn.ampproject.org/v0/amp-facebook-comments-0.1.js';
263
  }
256
  $is_pb_enabled = checkAMPforPageBuilderStatus(get_the_ID());
257
  $display_comments_on = "";
258
  $display_comments_on = ampforwp_get_comments_status();
259
+ $isBBPress = (function_exists('is_bbpress') ? is_bbpress() : false );
260
+ if ( $facebook_comments_check && true == ampforwp_get_setting('ampforwp-facebook-comments-support') && $display_comments_on && !is_front_page() && !$is_pb_enabled && !$isBBPress ) {
261
  if ( empty( $data['amp_component_scripts']['amp-facebook-comments'] ) ) {
262
  $data['amp_component_scripts']['amp-facebook-comments'] = 'https://cdn.ampproject.org/v0/amp-facebook-comments-0.1.js';
263
  }
components/related-posts/related-posts.php CHANGED
@@ -49,7 +49,7 @@ function ampforwp_related_post_loop_query(){
49
  $int_number_of_related_posts = (int)$string_number_of_related_posts;
50
  $args = null;
51
  $orderby = 'ID';
52
- if( isset( $redux_builder_amp['ampforwp-single-order-of-related-posts'] ) && $redux_builder_amp['ampforwp-single-order-of-related-posts'] ){
53
  $orderby = 'rand';
54
  }
55
  if($redux_builder_amp['ampforwp-single-select-type-of-related']==2){
49
  $int_number_of_related_posts = (int)$string_number_of_related_posts;
50
  $args = null;
51
  $orderby = 'ID';
52
+ if( true == ampforwp_get_setting('ampforwp-single-order-of-related-posts')){
53
  $orderby = 'rand';
54
  }
55
  if($redux_builder_amp['ampforwp-single-select-type-of-related']==2){
images/hatena-img.png ADDED
Binary file
images/vk-img.png ADDED
Binary file
includes/admin-script.js CHANGED
@@ -603,9 +603,14 @@ var redux_title_modify = function(){
603
  }
604
 
605
  });
606
-
607
  $('li.active .redux-group-tab-link-a').click();
608
- }
 
 
 
 
 
 
609
 
610
  });
611
 
603
  }
604
 
605
  });
 
606
  $('li.active .redux-group-tab-link-a').click();
607
+ }
608
+ if($(".amp-preview-button").length>0){
609
+ $(".amp-preview-button").click(function(){
610
+ var srcLink = $("#amp-preview-iframe").attr('data-src');
611
+ $("#amp-preview-iframe").html("<iframe src='"+srcLink+"'></iframe>");
612
+ });
613
+ }
614
 
615
  });
616
 
includes/features/functions.php CHANGED
@@ -722,6 +722,11 @@ if(!function_exists('ampforwp_amp_nonamp_convert')){
722
  $returnData = preg_replace(
723
  '/<amp-youtube\sdata-videoid="(.*?)"(.*?)><\/amp-youtube>/',
724
  '<iframe src="'. esc_url("https://www.youtube.com/embed/$1").'" style="width:100%;height:360px;" ></iframe>', $returnData);
 
 
 
 
 
725
  break;
726
  }
727
  return $returnData;
722
  $returnData = preg_replace(
723
  '/<amp-youtube\sdata-videoid="(.*?)"(.*?)><\/amp-youtube>/',
724
  '<iframe src="'. esc_url("https://www.youtube.com/embed/$1").'" style="width:100%;height:360px;" ></iframe>', $returnData);
725
+ $returnData = preg_replace_callback(
726
+ '/<amp-iframe(.*?)src="(.*?)"(.*?)><\/amp-iframe>/',
727
+ function($matches){
728
+ return '<iframe src="'.esc_url($matches[2]).'" style="width:100%;height:400px;" ></iframe>';
729
+ }, $returnData);
730
  break;
731
  }
732
  return $returnData;
includes/options/admin-config.php CHANGED
@@ -3294,6 +3294,25 @@ Redux::setSection( $opt_name, array(
3294
  'required' => array('gnrl-sidebar', '=' , '1'),
3295
 
3296
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3297
  array(
3298
  'id' => 'design-advanced',
3299
  'type' => 'section',
@@ -4347,7 +4366,6 @@ $single_page_options = array(
4347
  'default' => '1',
4348
  'title' => esc_html__('Categories', 'accelerated-mobile-pages'),
4349
  'tooltip-subtitle' => esc_html__('Enable or Disable Categories in Single', 'accelerated-mobile-pages'),
4350
- 'required' => array( array('amp-design-selector', '!=' , '4') )
4351
  ),
4352
  //Tags ON/OFF
4353
  array(
@@ -5991,8 +6009,7 @@ else{
5991
  )
5992
 
5993
  ) );
5994
- $redux_option = (array) get_option('redux_builder_amp',true);
5995
- if ( 4 == $redux_option['amp-design-selector'] ) {
5996
  $post_builder = '';
5997
  }
5998
  else{
3294
  'required' => array('gnrl-sidebar', '=' , '1'),
3295
 
3296
  ),
3297
+ array(
3298
+ 'id' => 'google-icons',
3299
+ 'type' => 'section',
3300
+ 'title' => esc_html__('Google Icon Library', 'accelerated-mobile-pages'),
3301
+ 'indent' => true,
3302
+ 'layout_type' => 'accordion',
3303
+ 'accordion-open'=> 1,
3304
+ 'required' => array( array('amp-design-selector', '=' , '4') ),
3305
+ ),
3306
+ array(
3307
+ 'id' => 'ampforwp_font_icon',
3308
+ 'type' => 'select',
3309
+ 'title' => esc_html__('Icon Font Library', 'accelerated-mobile-pages'),
3310
+ 'options' => array(
3311
+ 'swift-icons' => 'Swift Icons',
3312
+ 'fontawesome-icons' => 'Font Awesome Icons'
3313
+ ),
3314
+ 'default' => 'swift-icons',
3315
+ ),
3316
  array(
3317
  'id' => 'design-advanced',
3318
  'type' => 'section',
4366
  'default' => '1',
4367
  'title' => esc_html__('Categories', 'accelerated-mobile-pages'),
4368
  'tooltip-subtitle' => esc_html__('Enable or Disable Categories in Single', 'accelerated-mobile-pages'),
 
4369
  ),
4370
  //Tags ON/OFF
4371
  array(
6009
  )
6010
 
6011
  ) );
6012
+ if ( 4 == ampforwp_get_setting('amp-design-selector')) {
 
6013
  $post_builder = '';
6014
  }
6015
  else{
includes/thirdparty-compatibility.php CHANGED
@@ -907,3 +907,18 @@ function ampforwp_seopress_social(){
907
  }
908
  }
909
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
907
  }
908
  }
909
  }
910
+
911
+ // yoast author twitter handle #2133
912
+ if ( ! function_exists('ampforwp_yoast_twitter_handle') ) {
913
+ function ampforwp_yoast_twitter_handle() {
914
+ $twitter = '';
915
+ if ( class_exists('WPSEO_Frontend') ) {
916
+ global $post;
917
+ $twitter = get_the_author_meta( 'twitter', $post->post_author );
918
+ }
919
+ if($twitter){
920
+ return ' <span><a href="https://twitter.com/'.esc_attr($twitter).'" target="_blank">@'.esc_html($twitter).'</a></span>';
921
+ }
922
+ return '';
923
+ }
924
+ }
pagebuilder/config/moduleTemplate.php CHANGED
@@ -85,7 +85,7 @@ $front_css = '
85
  background-position:{{align_type}};
86
  {{if_condition_check_for_parallax==1}}
87
  min-height: 550px;
88
- background-attachment: fixed;
89
  {{ifend_condition_check_for_parallax_1}}
90
  }
91
  {{ifend_condition_background_type_image}}
85
  background-position:{{align_type}};
86
  {{if_condition_check_for_parallax==1}}
87
  min-height: 550px;
88
+ background-attachment: initial;
89
  {{ifend_condition_check_for_parallax_1}}
90
  }
91
  {{ifend_condition_background_type_image}}
pagebuilder/inc/admin-amp-page-builder.css CHANGED
@@ -1358,4 +1358,9 @@ body .modal-footer .del-btn-modal{
1358
  font-style: normal;
1359
  color: #555;
1360
  border-radius: 40px;
 
 
 
 
 
1361
  }
1358
  font-style: normal;
1359
  color: #555;
1360
  border-radius: 40px;
1361
+ }
1362
+ .edit-post-layout__content .modal-container {
1363
+ top: 100px;
1364
+ left: 170px;
1365
+ right: 300px;
1366
  }
pagebuilder/modules/pricing-mod-module.php CHANGED
@@ -25,6 +25,11 @@ $css = '
25
  {{ifend_condition_pricing_layout_type_1}}
26
 
27
  ';
 
 
 
 
 
28
  return array(
29
  'label' =>'Pricing',
30
  'name' =>'pricing-mod',
25
  {{ifend_condition_pricing_layout_type_1}}
26
 
27
  ';
28
+ if( ampforwp_get_setting('amp-design-selector') != 4 ) {
29
+ $css .= '@media(max-width:768px){
30
+ .pri-mod{flex:100%;margin:0px 0px 20px 0px;}
31
+ }';
32
+ }
33
  return array(
34
  'label' =>'Pricing',
35
  'name' =>'pricing-mod',
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.1.1
7
- Stable tag: 0.9.97.49
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -184,21 +184,21 @@ You can contact us from [here](https://ampforwp.com/contact/)
184
 
185
  == Changelog ==
186
 
187
- = 0.9.97.49 (26th April 2019) =
188
- * Added: Addthis Support integrated #2416
189
- * Added: A3 Lazy Load compatibility #2872
190
- * Added: Add support for AMP Linker #2546
191
- * Fixed: Getting validation Error when using the Ivory Search Plugin #2497
192
- * Fixed: Featured images or article images not showing in latest version #3063
193
- * Fixed: Condition improved for author box hook #2608
194
- * Fixed: After Update all AMP Pages Do Not Load and are Not Validated #3062 [ WP Rocket]
195
- * Fixed: PHP notice Undefined variable wp #3085
196
- * Fixed: PHP notice Undefined variable wp_query #2803
197
- * Fixed: Warning message while on WP customizes #3070
198
- * Fixed: Tag meta name 'viewport' appear more than once when Zox news theme is activate #2971
199
- * Fixed: PHP notice errors after activating amp-woocommerce plugin #3054
200
- * Fixed: Fatal error - can't use function return value in write context #3087
201
- * Fixed: AMP Frontpage: The mandatory tag ‘link rel=canonical’ is missing or incorrect with Rank Math #3061
202
- * Fixed: Fatal error - is_amp_endpoint issue #3055
203
 
204
  Full changelog available in changelog.txt
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.1.1
7
+ Stable tag: 0.9.97.50
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
184
 
185
  == Changelog ==
186
 
187
+ = 0.9.97.50 (29th April 2019) =
188
+ * Added: New Icon of Telegram in all the Designs #2448
189
+ * Added: Swift icon and Font awesome icon option added in Design's global section [Swift theme] #2992
190
+ * Added: Category option added in Design's single section [Swift theme] #2551
191
+ * Added: Yoast author twitter handle compatibility integrated #2133
192
+ * Added: New function ampforwp_get_the_ID() created #2867
193
+ * Fixed: Facebook comment and Like option gives an error when the bbPress plugin is enabled #3006
194
+ * Fixed: When Gutenberg active left sidebar is not visible in page builder modules #2934
195
+ * Fixed: AMP preview functionality showing blank in the preview mode #3029
196
+ * Fixed: Image floats CSS improved in mobile mode #2525
197
+ * Fixed: Related Posts Randomly in Swift theme #2308
198
+ * Fixed: Pricing module content is not center in page builder #2921
199
+ * Fixed: Background image of the page builder is zooming in IOS devices when the parallax effect is enabled #2844
200
+ * Fixed: Footnotes compatibility code updated #2982
201
+ * Fixed: Iframe is not loading when Convert AMP to WP theme (Beta) option is enabled [Swift theme] #2628
202
+ * Fixed: PHP Warning Undefined variable #3103
203
 
204
  Full changelog available in changelog.txt
templates/design-manager/design-1/elements/meta-taxonomy.php CHANGED
@@ -64,8 +64,9 @@ if( array_key_exists( 'amp-author-description' , $redux_builder_amp ) && is_sing
64
  <amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
65
  <?php
66
  }
67
- echo ampforwp_get_author_details( $post_author , 'meta-taxonomy' );
68
- echo $post_author->description ;
 
69
  } ?>
70
  </div>
71
  </div> <?php
64
  <amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
65
  <?php
66
  }
67
+ echo '"'.ampforwp_get_author_details( $post_author , 'meta-taxonomy' );
68
+ echo ampforwp_yoast_twitter_handle().' ';
69
+ echo $post_author->description .'."';
70
  } ?>
71
  </div>
72
  </div> <?php
templates/design-manager/design-1/elements/social-icons.php CHANGED
@@ -97,7 +97,7 @@ if ( is_single() || (is_page() && isset($redux_builder_amp['ampforwp-page-social
97
  <?php if ( true == $redux_builder_amp['enable-single-telegram-share'] ) { ?>
98
  <a title="telegram share" href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" target="_blank">
99
  <div class="amp-social-icon amp-social-telegram">
100
- <amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjYgMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAydjguNUwxNSAxMyAwIDE1LjVWMjRsMjYtMTFMMCAyeiI+PC9wYXRoPjwvc3ZnPg==" width="50" height="20" />
101
  </div>
102
  </a>
103
  <?php } ?>
97
  <?php if ( true == $redux_builder_amp['enable-single-telegram-share'] ) { ?>
98
  <a title="telegram share" href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" target="_blank">
99
  <div class="amp-social-icon amp-social-telegram">
100
+ <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ1NS43MzEgNDU1LjczMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDU1LjczMSA0NTUuNzMxOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGc+Cgk8cmVjdCB4PSIwIiB5PSIwIiBzdHlsZT0iZmlsbDojNjFBOERFOyIgd2lkdGg9IjQ1NS43MzEiIGhlaWdodD0iNDU1LjczMSIvPgoJPHBhdGggc3R5bGU9ImZpbGw6I0ZGRkZGRjsiIGQ9Ik0zNTguODQ0LDEwMC42TDU0LjA5MSwyMTkuMzU5Yy05Ljg3MSwzLjg0Ny05LjI3MywxOC4wMTIsMC44ODgsMjEuMDEybDc3LjQ0MSwyMi44NjhsMjguOTAxLDkxLjcwNiAgIGMzLjAxOSw5LjU3OSwxNS4xNTgsMTIuNDgzLDIyLjE4NSw1LjMwOGw0MC4wMzktNDAuODgybDc4LjU2LDU3LjY2NWM5LjYxNCw3LjA1NywyMy4zMDYsMS44MTQsMjUuNzQ3LTkuODU5bDUyLjAzMS0yNDguNzYgICBDMzgyLjQzMSwxMDYuMjMyLDM3MC40NDMsOTYuMDgsMzU4Ljg0NCwxMDAuNnogTTMyMC42MzYsMTU1LjgwNkwxNzkuMDgsMjgwLjk4NGMtMS40MTEsMS4yNDgtMi4zMDksMi45NzUtMi41MTksNC44NDcgICBsLTUuNDUsNDguNDQ4Yy0wLjE3OCwxLjU4LTIuMzg5LDEuNzg5LTIuODYxLDAuMjcxbC0yMi40MjMtNzIuMjUzYy0xLjAyNy0zLjMwOCwwLjMxMi02Ljg5MiwzLjI1NS04LjcxN2wxNjcuMTYzLTEwMy42NzYgICBDMzIwLjA4OSwxNDcuNTE4LDMyNC4wMjUsMTUyLjgxLDMyMC42MzYsMTU1LjgwNnoiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" />
101
  </div>
102
  </a>
103
  <?php } ?>
templates/design-manager/design-1/style.php CHANGED
@@ -433,4 +433,13 @@ if( true == ampforwp_get_setting('ampforwp-infinite-scroll') && ampforwp_get_set
433
  .single-post amp-next-page{
434
  margin-top:30px;
435
  }
 
 
 
 
 
 
 
 
 
436
  <?php } ?>
433
  .single-post amp-next-page{
434
  margin-top:30px;
435
  }
436
+ <?php }
437
+ // image floats removed in mobile view #2525
438
+ if(is_singular() || ampforwp_is_front_page()){?>
439
+ @media(max-width:480px){
440
+ .amp-wp-content .alignright , .amp-wp-content .alignleft {
441
+ float:none;
442
+ margin:0 auto;
443
+ }
444
+ }
445
  <?php } ?>
templates/design-manager/design-2/elements/meta-taxonomy.php CHANGED
@@ -47,10 +47,10 @@ if( array_key_exists( 'amp-author-description' , $redux_builder_amp ) && is_sing
47
  <amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
48
  <?php
49
  }
50
- echo ampforwp_get_author_details( $post_author , 'meta-taxonomy' );
51
- echo $post_author->description; ?>
52
-
53
- <?php } ?>
54
  </div>
55
  </div> <?php
56
  }
47
  <amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
48
  <?php
49
  }
50
+ echo '"'.ampforwp_get_author_details( $post_author , 'meta-taxonomy' );
51
+ echo ampforwp_yoast_twitter_handle().' ';
52
+ echo $post_author->description .'."';
53
+ } ?>
54
  </div>
55
  </div> <?php
56
  }
templates/design-manager/design-2/elements/social-icons.php CHANGED
@@ -97,7 +97,7 @@ if ( is_single() || (is_page() && isset($redux_builder_amp['ampforwp-page-social
97
  <?php if ( true == $redux_builder_amp['enable-single-telegram-share'] ) { ?>
98
  <a title="telegram share" href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>" target="_blank">
99
  <div class="amp-social-icon amp-social-telegram">
100
- <amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjYgMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAydjguNUwxNSAxMyAwIDE1LjVWMjRsMjYtMTFMMCAyeiI+PC9wYXRoPjwvc3ZnPg==" width="50" height="20" />
101
  </div>
102
  </a>
103
  <?php } ?>
97
  <?php if ( true == $redux_builder_amp['enable-single-telegram-share'] ) { ?>
98
  <a title="telegram share" href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>" target="_blank">
99
  <div class="amp-social-icon amp-social-telegram">
100
+ <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ1NS43MzEgNDU1LjczMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDU1LjczMSA0NTUuNzMxOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGc+Cgk8cmVjdCB4PSIwIiB5PSIwIiBzdHlsZT0iZmlsbDojNjFBOERFOyIgd2lkdGg9IjQ1NS43MzEiIGhlaWdodD0iNDU1LjczMSIvPgoJPHBhdGggc3R5bGU9ImZpbGw6I0ZGRkZGRjsiIGQ9Ik0zNTguODQ0LDEwMC42TDU0LjA5MSwyMTkuMzU5Yy05Ljg3MSwzLjg0Ny05LjI3MywxOC4wMTIsMC44ODgsMjEuMDEybDc3LjQ0MSwyMi44NjhsMjguOTAxLDkxLjcwNiAgIGMzLjAxOSw5LjU3OSwxNS4xNTgsMTIuNDgzLDIyLjE4NSw1LjMwOGw0MC4wMzktNDAuODgybDc4LjU2LDU3LjY2NWM5LjYxNCw3LjA1NywyMy4zMDYsMS44MTQsMjUuNzQ3LTkuODU5bDUyLjAzMS0yNDguNzYgICBDMzgyLjQzMSwxMDYuMjMyLDM3MC40NDMsOTYuMDgsMzU4Ljg0NCwxMDAuNnogTTMyMC42MzYsMTU1LjgwNkwxNzkuMDgsMjgwLjk4NGMtMS40MTEsMS4yNDgtMi4zMDksMi45NzUtMi41MTksNC44NDcgICBsLTUuNDUsNDguNDQ4Yy0wLjE3OCwxLjU4LTIuMzg5LDEuNzg5LTIuODYxLDAuMjcxbC0yMi40MjMtNzIuMjUzYy0xLjAyNy0zLjMwOCwwLjMxMi02Ljg5MiwzLjI1NS04LjcxN2wxNjcuMTYzLTEwMy42NzYgICBDMzIwLjA4OSwxNDcuNTE4LDMyNC4wMjUsMTUyLjgxLDMyMC42MzYsMTU1LjgwNnoiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" />
101
  </div>
102
  </a>
103
  <?php } ?>
templates/design-manager/design-2/style.php CHANGED
@@ -572,4 +572,13 @@ if( true == ampforwp_get_setting('ampforwp-infinite-scroll') && ampforwp_get_set
572
  margin: 17px -4.6% 0px -4.6%;
573
  }
574
  }
 
 
 
 
 
 
 
 
 
575
  <?php } ?>
572
  margin: 17px -4.6% 0px -4.6%;
573
  }
574
  }
575
+ <?php }
576
+ // image floats removed in mobile view #2525
577
+ if(is_singular() || ampforwp_is_front_page()){?>
578
+ @media(max-width:480px){
579
+ .amp-wp-content .alignright , .amp-wp-content .alignleft {
580
+ float:none;
581
+ margin:0 auto;
582
+ }
583
+ }
584
  <?php } ?>
templates/design-manager/design-3/elements/meta-taxonomy.php CHANGED
@@ -35,8 +35,9 @@ if( array_key_exists( 'amp-author-description' , $redux_builder_amp ) && is_sing
35
  <amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
36
  <?php
37
  }
38
- echo ampforwp_get_author_details( $post_author , 'meta-taxonomy' );
39
- echo $post_author->description;
 
40
  } ?>
41
  </div>
42
  </div> <?php
35
  <amp-img <?php if(ampforwp_get_data_consent()){?>data-block-on-consent <?php } ?> src="<?php echo esc_url($author_avatar_url); ?>" width="70" height="70" layout="fixed"></amp-img>
36
  <?php
37
  }
38
+ echo '"'.ampforwp_get_author_details( $post_author , 'meta-taxonomy' );
39
+ echo ampforwp_yoast_twitter_handle().' ';
40
+ echo $post_author->description .'."';
41
  } ?>
42
  </div>
43
  </div> <?php
templates/design-manager/design-3/elements/social-icons.php CHANGED
@@ -123,7 +123,8 @@ if ( is_single() || (is_page() && isset($redux_builder_amp['ampforwp-page-social
123
  <?php if ( true == $redux_builder_amp['enable-single-telegram-share'] ) { ?>
124
  <div class="ampforwp-custom-social">
125
  <a title="telegram share" href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>" target="_blank" class="amp-social-icon-rounded amp-social-telegram">
126
- <amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjYgMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAydjguNUwxNSAxMyAwIDE1LjVWMjRsMjYtMTFMMCAyeiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" />
 
127
  </a>
128
  </div>
129
  <?php } ?>
123
  <?php if ( true == $redux_builder_amp['enable-single-telegram-share'] ) { ?>
124
  <div class="ampforwp-custom-social">
125
  <a title="telegram share" href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>" target="_blank" class="amp-social-icon-rounded amp-social-telegram">
126
+ <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ1NS43MzEgNDU1LjczMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDU1LjczMSA0NTUuNzMxOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGc+Cgk8cmVjdCB4PSIwIiB5PSIwIiBzdHlsZT0iZmlsbDojNjFBOERFOyIgd2lkdGg9IjQ1NS43MzEiIGhlaWdodD0iNDU1LjczMSIvPgoJPHBhdGggc3R5bGU9ImZpbGw6I0ZGRkZGRjsiIGQ9Ik0zNTguODQ0LDEwMC42TDU0LjA5MSwyMTkuMzU5Yy05Ljg3MSwzLjg0Ny05LjI3MywxOC4wMTIsMC44ODgsMjEuMDEybDc3LjQ0MSwyMi44NjhsMjguOTAxLDkxLjcwNiAgIGMzLjAxOSw5LjU3OSwxNS4xNTgsMTIuNDgzLDIyLjE4NSw1LjMwOGw0MC4wMzktNDAuODgybDc4LjU2LDU3LjY2NWM5LjYxNCw3LjA1NywyMy4zMDYsMS44MTQsMjUuNzQ3LTkuODU5bDUyLjAzMS0yNDguNzYgICBDMzgyLjQzMSwxMDYuMjMyLDM3MC40NDMsOTYuMDgsMzU4Ljg0NCwxMDAuNnogTTMyMC42MzYsMTU1LjgwNkwxNzkuMDgsMjgwLjk4NGMtMS40MTEsMS4yNDgtMi4zMDksMi45NzUtMi41MTksNC44NDcgICBsLTUuNDUsNDguNDQ4Yy0wLjE3OCwxLjU4LTIuMzg5LDEuNzg5LTIuODYxLDAuMjcxbC0yMi40MjMtNzIuMjUzYy0xLjAyNy0zLjMwOCwwLjMxMi02Ljg5MiwzLjI1NS04LjcxN2wxNjcuMTYzLTEwMy42NzYgICBDMzIwLjA4OSwxNDcuNTE4LDMyNC4wMjUsMTUyLjgxLDMyMC42MzYsMTU1LjgwNnoiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="16" height="16" />
127
+
128
  </a>
129
  </div>
130
  <?php } ?>
templates/design-manager/design-3/style.php CHANGED
@@ -228,7 +228,7 @@ h1.amp-wp-title{ margin: 0; color: #333333; font-size: 48px; line-height: 58px;
228
  .amp-social-reddit{background:#ff4500}
229
  <?php } ?>
230
  <?php if ( true == ampforwp_get_setting('enable-single-telegram-share') ) { ?>
231
- .amp-social-telegram{background:#0088cc}
232
  <?php } ?>
233
  <?php if ( true == ampforwp_get_setting('enable-single-tumblr-share') ) { ?>
234
  .amp-social-tumblr{background:#35465c}
@@ -747,4 +747,13 @@ if( true == ampforwp_get_setting('ampforwp-infinite-scroll') && ampforwp_get_set
747
  .amp_home_body .amp-next-page-default-separator {border:none;}
748
  #headerwrap{position:relative;}
749
  header{padding:0;}
 
 
 
 
 
 
 
 
 
750
  <?php } ?>
228
  .amp-social-reddit{background:#ff4500}
229
  <?php } ?>
230
  <?php if ( true == ampforwp_get_setting('enable-single-telegram-share') ) { ?>
231
+ .amp-social-telegram{background:#61A8DE}
232
  <?php } ?>
233
  <?php if ( true == ampforwp_get_setting('enable-single-tumblr-share') ) { ?>
234
  .amp-social-tumblr{background:#35465c}
747
  .amp_home_body .amp-next-page-default-separator {border:none;}
748
  #headerwrap{position:relative;}
749
  header{padding:0;}
750
+ <?php }
751
+ // image floats removed in mobile view #2525
752
+ if(is_singular() || ampforwp_is_front_page()){?>
753
+ @media(max-width:480px){
754
+ .amp-wp-content .alignright , .amp-wp-content .alignleft {
755
+ float:none;
756
+ margin:0 auto;
757
+ }
758
+ }
759
  <?php } ?>
templates/design-manager/swift/header.php CHANGED
@@ -103,7 +103,7 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
103
  <div class="h-1">
104
  <?php if( true == $redux_builder_amp['amp-swift-search-feature'] ){ ?>
105
  <div class="h-srch h-ic">
106
- <a title="search" class="lb icon-search" href="#search"></a>
107
  <div class="lb-btn">
108
  <div class="lb-t" id="search">
109
  <?php amp_search();?>
@@ -114,7 +114,7 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
114
  <?php } ?>
115
  <?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
116
  <div class="h-shop h-ic">
117
- <a href="<?php echo esc_url(ampforwp_wc_cart_page_url()); ?>" class="icon-shopping-cart"></a>
118
  </div>
119
  <?php } ?>
120
  <?php if ( true == $redux_builder_amp['ampforwp-callnow-button'] ) { ?>
@@ -232,7 +232,7 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
232
  <?php } ?>
233
  <?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
234
  <div class="h-shop h-ic">
235
- <a href="<?php echo ampforwp_wc_cart_page_url(); ?>" class="icon-shopping-cart"></a>
236
  </div>
237
  <?php } ?>
238
  <?php if ( true == $redux_builder_amp['ampforwp-callnow-button'] ) { ?>
@@ -341,7 +341,7 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
341
  <div class="h-3">
342
  <?php if( true == $redux_builder_amp['amp-swift-search-feature'] ){ ?>
343
  <div class="h-srch h-ic">
344
- <a class="lb icon-search" href="#search"></a>
345
  <div class="lb-btn">
346
  <div class="lb-t" id="search">
347
  <?php amp_search();?>
@@ -352,7 +352,7 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
352
  <?php } ?>
353
  <?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
354
  <div class="h-shop h-ic">
355
- <a href="<?php echo ampforwp_wc_cart_page_url(); ?>" class="icon-shopping-cart"></a>
356
  </div>
357
  <?php } ?>
358
  <?php if ( true == $redux_builder_amp['ampforwp-callnow-button'] ) { ?>
103
  <div class="h-1">
104
  <?php if( true == $redux_builder_amp['amp-swift-search-feature'] ){ ?>
105
  <div class="h-srch h-ic">
106
+ <a title="search" class="lb icon-src" href="#search"></a>
107
  <div class="lb-btn">
108
  <div class="lb-t" id="search">
109
  <?php amp_search();?>
114
  <?php } ?>
115
  <?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
116
  <div class="h-shop h-ic">
117
+ <a href="<?php echo esc_url(ampforwp_wc_cart_page_url()); ?>" class="isc"></a>
118
  </div>
119
  <?php } ?>
120
  <?php if ( true == $redux_builder_amp['ampforwp-callnow-button'] ) { ?>
232
  <?php } ?>
233
  <?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
234
  <div class="h-shop h-ic">
235
+ <a href="<?php echo ampforwp_wc_cart_page_url(); ?>" class="isc"></a>
236
  </div>
237
  <?php } ?>
238
  <?php if ( true == $redux_builder_amp['ampforwp-callnow-button'] ) { ?>
341
  <div class="h-3">
342
  <?php if( true == $redux_builder_amp['amp-swift-search-feature'] ){ ?>
343
  <div class="h-srch h-ic">
344
+ <a class="lb icon-src" href="#search"></a>
345
  <div class="lb-btn">
346
  <div class="lb-t" id="search">
347
  <?php amp_search();?>
352
  <?php } ?>
353
  <?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
354
  <div class="h-shop h-ic">
355
+ <a href="<?php echo ampforwp_wc_cart_page_url(); ?>" class="isc"></a>
356
  </div>
357
  <?php } ?>
358
  <?php if ( true == $redux_builder_amp['ampforwp-callnow-button'] ) { ?>
templates/design-manager/swift/style.php CHANGED
@@ -62,8 +62,10 @@ amp-instagram{box-sizing: initial;}
62
  <?php global $post;
63
  if( class_exists('\Elementor\Plugin') && \Elementor\Plugin::$instance->db->is_built_with_elementor($post->ID) && (is_page() || ampforwp_is_front_page() ) && ( function_exists( 'amp_pagebuilder_compatibility_init' ) || class_exists('Elementor_For_Amp') ) ) { }
64
  else{ ?>.cntr {max-width: 1100px;margin: 0 auto;width:100%;padding:0px 20px} <?php } ?>
65
- <?php if(!ampforwp_levelup_compatibility('levelup_elementor') ){ // Level up Condition starts ?>
66
- @font-face {font-family: 'icomoon';font-display: swap;font-style: normal;font-weight: normal;src: local('icomoon'), local('icomoon'), url('<?php echo plugin_dir_url(__FILE__) ?>fonts/icomoon.ttf');}
 
 
67
  header .cntr{
68
  <?php if( ampforwp_get_setting('swift-width-control') ){?>
69
  max-width:<?php echo esc_html(ampforwp_get_setting('swift-width-control'));?>;
@@ -94,9 +96,33 @@ header .cntr{
94
  }
95
  <?php } // Sickt CSS Ends ?>
96
  .h_m_w{width:100%;clear:both;display: inline-flex;<?php if(ampforwp_get_setting('swift-height-control')){?>height:<?php echo esc_html(ampforwp_get_setting('swift-height-control'))?>;<?php } ?>}
97
- .h-ic a:after, .h-ic a:before{font-family: 'icomoon';font-size: 23px;<?php if(isset($redux_builder_amp['swift-element-color-control'] ['rgba']) && $redux_builder_amp['swift-element-color-control'] ['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-color-control']['rgba'])?>;<?php } ?>}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  <?php if ( true == ampforwp_get_setting('ampforwp-callnow-button') ) { ?>
99
- .h-call a:after{content: "\e0cd";}
 
 
 
 
 
 
 
100
  <?php
101
  $callnowcolor = ampforwp_get_setting('amp-opt-color-rgba-colorscheme-call');
102
  if ( !empty($callnowcolor['color']) ) { ?>
@@ -148,7 +174,14 @@ if( true == $redux_builder_amp['amp-swift-search-feature'] ){ ?>
148
  .lb-t {position: fixed;top: -50px;width: 100%;width: 100%;opacity: 0;-webkit-transition: opacity .5s ease-in-out;transition: opacity .5s ease-in-out;overflow: hidden;z-index:9;<?php if($redux_builder_amp['swift-header-overlay']['rgba']){?>background: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-header-overlay'] ['rgba']) ?>;<?php } ?>}
149
  .lb-t img {margin: auto;position: absolute;top: 0;left:0;right:0;bottom: 0;max-height: 0%;max-width: 0%;border: 3px solid white;box-shadow: 0px 0px 8px rgba(0,0,0,.3);box-sizing: border-box;-webkit-transition: .5s ease-in-out;transition: .5s ease-in-out;}
150
  a.lb-x {display: block;width:50px;height:50px;box-sizing: border-box;background: tranparent;color: black;text-decoration: none;position: absolute;top: -80px;right: 0;-webkit-transition: .5s ease-in-out;transition: .5s ease-in-out;}
151
- a.lb-x:after {content: "\e5cd";font-family: 'icomoon';font-size: 30px;line-height: 0;display: block;text-indent: 1px;
 
 
 
 
 
 
 
152
  <?php if($redux_builder_amp['swift-element-overlay-color-control'] ['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?> }
153
  .lb-t:target {opacity: 1;top: 0;bottom: 0;left:0;z-index:1;}
154
  .lb-t:target img {max-height: 100%;max-width: 100%;}
@@ -158,7 +191,14 @@ a.lb-x:after {content: "\e5cd";font-family: 'icomoon';font-size: 30px;line-heigh
158
  .lb-btn #s{padding:10px;}
159
  .lb-btn #amp-search-submit{padding:10px;cursor:pointer;}
160
  .amp-search-wrapper{width: 80%;margin: 0 auto;position: relative;}
161
- .overlay-search:before {content: "\e8b6";position: absolute;right:0;font-size: 24px;font-family: 'icomoon';cursor: pointer;top:4px;
 
 
 
 
 
 
 
162
  <?php if($redux_builder_amp['swift-element-overlay-color-control']['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?>}
163
  .lb-btn #amp-search-submit {cursor: pointer;background:transparent;border: none;display: inline-block;width: 30px;height: 30px;opacity: 0;position: absolute;z-index:100;right: 0;top: 0;}
164
  .lb-btn #s {padding: 10px;background: transparent;border: none;border-bottom: 1px solid #504c4c;width:100%;
@@ -181,14 +221,36 @@ if($redux_builder_amp['menu-type'] == '1'){?>
181
  <?php } ?>
182
  .tg:checked + .hamb-mnu > .fsc{display: block;background: rgba(0,0,0,.9);height:100%;}
183
  .t-btn, .c-btn{cursor: pointer;}
184
- .t-btn:after{content:"\e5d2";display:inline-block;font-family: "icomoon";font-size:28px;<?php if( isset($redux_builder_amp['swift-element-color-control']['rgba']) && $redux_builder_amp['swift-element-color-control']['rgba']){ ?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-color-control']['rgba'])?>;<?php } ?>}
185
- .c-btn:after{content: "\e5cd";font-family: "icomoon";font-size: 20px;<?php if(isset($redux_builder_amp['swift-element-overlay-color-control'] ['rgba']) && $redux_builder_amp['swift-element-overlay-color-control'] ['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?>line-height: 0;display: block;text-indent: 1px;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  .c-btn{float: right;padding: 20px 10px;}
187
  .m-ctr{transition: margin 0.3s ease-in-out;}
188
  .m-ctr{<?php if(ampforwp_get_setting('header-overlay-width')){?>width:<?php echo esc_html(ampforwp_get_setting('header-overlay-width'))?>;<?php } ?>height:100%;position: absolute;z-index:99;padding: 2% 0% 100vh 0%;}
189
  .m-menu{display: inline-block;width: 100%;padding: 2px 20px 10px 20px;}
190
  .m-scrl{overflow-y: auto;display: inline-block;width: 100%;overflow: scroll;max-height: 94vh;}
191
- .m-menu .amp-menu .toggle:after{content: "\e313";font-family: 'icomoon';background-size: 16px;display: inline-block;top: 1px;padding: 5px;font-size:25px;transform: rotate(270deg);cursor: pointer;border-radius: 35px;color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;}
 
 
 
 
 
 
 
192
  .m-menu .amp-menu li.menu-item-has-children:after{display:none;}
193
  .m-menu .amp-menu li ul{font-size:14px;}
194
  .m-menu .amp-menu {list-style-type: none;padding: 0;}
@@ -231,9 +293,21 @@ padding: <?php echo esc_html($redux_builder_amp['primary-menu-padding-control'][
231
  .p-menu li:hover > ul{opacity: 1;transform: translateY(0px);visibility: visible;transition: all 0.2s ease-in-out 0s;}
232
  .p-menu li ul li{display: block;position: relative;}
233
  .p-menu ul li.menu-item-has-children .sub-menu li a{padding:7px;}
234
- .p-menu ul li.menu-item-has-children > a:after{content: "\e313";font-family: 'icomoon';background-size: 16px;display: inline-block;top: 3px;font-size: 16px;color: rgba(0,41,96,1);position:relative;padding-left: 10px;line-height:0;right:10px;color:<?php echo ampforwp_sanitize_color($redux_builder_amp['primary-menu-text-scheme']['rgba'])?>;}
 
 
 
 
 
 
 
235
  .p-menu .amp-menu li.menu-item-has-children>ul>li {padding-left: 0px;margin-right:0;}
236
- .p-menu li.menu-item-has-children:hover > a:after{transform:rotate(180deg);right:0px;}
 
 
 
 
 
237
  <?php } else { ?>
238
  .p-menu .amp-menu li.menu-item-has-children:hover>ul{display:none;}
239
  .p-menu{overflow-x: auto;overflow-y:hidden;white-space: nowrap;}
@@ -639,7 +713,14 @@ border-bottom: 1px solid #eee;
639
  .breadcrumb ul li,.breadcrumbs span{display: inline-block;list-style-type: none;font-size: 10px;text-transform: uppercase;margin-right: 5px;}
640
  .breadcrumb ul li a, .breadcrumbs span a{color: #999;letter-spacing: 1px;}
641
  .breadcrumb ul li a:hover, .breadcrumbs span a:hover{color: <?php echo ampforwp_sanitize_color($hovercolor); ?>;}
642
- .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;}
 
 
 
 
 
 
 
643
  .breadcrumbs li:last-child a:after {display: none;}
644
  <?php } //Breadcrumbs Ends?>
645
  #pagination{margin-top: 30px;border-top: 1px dotted #ccc;padding: 20px 5px 0px 5px;;font-size: 16px;line-height: 24px;font-weight:400;}
@@ -835,9 +916,15 @@ if ( isset($redux_builder_amp['menu-social']) && $redux_builder_amp['menu-social
835
  text-align: center;
836
  }
837
  .m-s-i li{
 
838
  font-family: 'icomoon';
 
 
 
 
 
 
839
  list-style-type: none;
840
- font-size: 20px;
841
  display: inline-block;
842
  margin: 0px 15px 10px 0px;
843
  vertical-align: middle;
@@ -850,34 +937,108 @@ if ( isset($redux_builder_amp['menu-social']) && $redux_builder_amp['menu-social
850
  color:<?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;
851
  }
852
  <?php if($redux_builder_amp['enbl-fb']){?>
853
- .s_fb:after {content: "\e92d";}
 
 
 
 
 
 
 
854
  <?php }
855
  if($redux_builder_amp['enbl-tw']){ ?>
856
- .s_tw:after {content: "\e942";}
 
 
 
 
 
 
 
857
  <?php }
858
  if($redux_builder_amp['enbl-gol']){?>
859
- .s_gp:after {content: "\e931";}
 
 
 
 
 
 
 
860
  <?php }
861
  if($redux_builder_amp['enbl-lk']){?>
862
- .s_lk:after {content: "\e934";}
 
 
 
 
 
 
 
863
  <?php }
864
  if($redux_builder_amp['enbl-pt']){?>
865
- .s_pt:after {content: "\e937";}
 
 
 
 
 
 
 
866
  <?php }
867
  if($redux_builder_amp['enbl-yt']){?>
868
- .s_yt:after {content: "\e947";}
 
 
 
 
 
 
 
869
  <?php }
870
  if($redux_builder_amp['enbl-inst']){?>
871
- .s_inst:after {content: "\e932";}
 
 
 
 
 
 
 
872
  <?php }
873
  if($redux_builder_amp['enbl-vk']){?>
874
- .s_vk:after {content: "\e944";}
 
 
 
 
 
 
 
 
 
 
 
875
  <?php }
876
  if($redux_builder_amp['enbl-rd']){?>
877
- .s_rd:after {content: "\e938";}
 
 
 
 
 
 
 
878
  <?php }
879
  if($redux_builder_amp['enbl-tbl']){?>
880
- .s_tbl:after {content: "\e940";}
 
 
 
 
 
 
 
881
  <?php } ?>
882
  <?php } // Menu social CSS Ends
883
  if( isset($redux_builder_amp['amp-swift-menu-cprt']) && $redux_builder_amp['amp-swift-menu-cprt']){?>
@@ -1213,10 +1374,13 @@ if(ampforwp_get_setting('ftr2-gapping')){
1213
  opacity: 0;
1214
  }
1215
  .w-bl .search-button:after{
1216
- content: "\e8b6";
 
 
 
 
 
1217
  display:inline-block;
1218
- font-family: 'icomoon';
1219
- font-size: 23px;
1220
  cursor: pointer;
1221
  }
1222
  .w-bl .search-field{
@@ -1355,86 +1519,250 @@ else{ // Default Footer CSS ?>
1355
 
1356
  //Sticky Social Icons
1357
  if(is_single() || is_page() ){ ?>
1358
- .ss-ic ul li{font-family: 'icomoon';list-style-type:none;display:inline-block;}
 
 
 
 
 
 
 
 
1359
  .ss-ic li a{color: #fff;padding: 5px;border-radius: 3px;margin: 0px 10px 10px 0px;display: inline-block;}
1360
  <?php if($redux_builder_amp['enable-single-facebook-share'] || $redux_builder_amp['enbl-fb'] ){?>
1361
  .ss-ic ul li .s_fb{ color:#fff;background:#3b5998;}
1362
- .s_fb:after{content: "\e92d";}
1363
- <?php }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1364
  if($redux_builder_amp['enable-single-twitter-share'] || $redux_builder_amp['enbl-tw']){?>
1365
  .s_tw{background:#1da1f2;}
1366
- .s_tw:after{content: "\e942";}
 
 
 
 
 
 
 
1367
  <?php }
1368
  if($redux_builder_amp['enable-single-gplus-share'] || $redux_builder_amp['enbl-gol']){?>
1369
  .s_gp{background:#dd4b39;}
1370
- .s_gp:after{content: "\e931";}
 
 
 
 
 
 
 
1371
  <?php }
1372
  if($redux_builder_amp['enable-single-linkedin-share'] || $redux_builder_amp['enbl-lk']){?>
1373
  .s_lk{background:#0077b5;}
1374
- .s_lk:after{content: "\e934";}
 
 
 
 
 
 
 
1375
  <?php }
1376
  if($redux_builder_amp['enable-single-pinterest-share'] || isset($redux_builder_amp['enbl-pt']) && $redux_builder_amp['enbl-pt']){?>
1377
  .s_pt{background:#bd081c;}
1378
- .s_pt:after{content:"\e937";}
 
 
 
 
 
 
 
1379
  <?php }
1380
  if($redux_builder_amp['enable-single-email-share']){?>
1381
  .s_em{background:#b7b7b7;}
1382
- .s_em:after{content: "\e930";}
 
 
 
 
 
 
 
 
1383
  <?php }
1384
  if($redux_builder_amp['enable-single-whatsapp-share']){?>
1385
  .s_wp{background:#075e54;}
1386
- .s_wp:after{content: "\e946";}
 
 
 
 
 
 
 
1387
  <?php }
1388
  if($redux_builder_amp['enable-single-odnoklassniki-share']){?>
1389
  .s_od{background:#ed812b;}
1390
- .s_od:after{content: "\e936";}
 
 
 
 
 
 
 
1391
  <?php }
1392
  if($redux_builder_amp['enable-single-vk-share']){?>
1393
  .s_vk{background:#45668e;}
1394
- .s_vk:after{content: "\e944";}
 
 
 
 
 
 
 
 
 
 
 
1395
  <?php }
1396
  if(ampforwp_get_setting('enable-single-line-share') == true) { ?>
1397
  .s_li{background:#00cc00;}
1398
- <?php }
 
 
 
1399
  if($redux_builder_amp['enable-single-reddit-share']){?>
1400
  .s_rd{background:#ff4500;}
1401
- .s_rd:after{content: "\e938";}
 
 
 
 
 
 
 
1402
  <?php }
1403
  if($redux_builder_amp['enable-single-tumblr-share']){?>
1404
  .s_tb{background:#35465c;}
1405
- .s_tb:after{content: "\e940";}
 
 
 
 
 
 
 
1406
  <?php }
1407
  if($redux_builder_amp['enable-single-telegram-share']){?>
1408
  .s_tg{background:#0088cc;}
1409
- .s_tg:after{content: "\e93f";}
 
 
 
 
 
 
 
1410
  <?php }
1411
  if($redux_builder_amp['enable-single-digg-share']){?>
1412
  .s_dg{background:#005be2;}
1413
- .s_dg:after{content: "\e919";}
 
 
 
 
 
 
 
1414
  <?php }
1415
  if($redux_builder_amp['enable-single-stumbleupon-share']){?>
1416
  .s_su{background:#eb4924;}
1417
- .s_su:after{content: "\e93e";}
 
 
 
 
 
 
 
1418
  <?php }
1419
  if($redux_builder_amp['enable-single-wechat-share']){?>
1420
  .s_wc{background:#7bb32e;}
1421
- .s_wc:after{content: "\e945";}
 
 
 
 
 
 
 
1422
  <?php }
1423
  if($redux_builder_amp['enable-single-viber-share']){?>
1424
  .s_vb{background:#59267c;}
1425
- .s_vb:after{content: "\e943";}
 
 
 
 
 
 
 
1426
  <?php }
1427
  if(isset($redux_builder_amp['enable-single-yummly-share']) && $redux_builder_amp['enable-single-yummly-share']){?>
1428
  .s_ym{background:#e26426}
1429
- .s_ym:after{content: "\e948";}
 
 
 
 
 
 
 
1430
  <?php }
1431
  if(isset($redux_builder_amp['enable-single-hatena-bookmarks']) && $redux_builder_amp['enable-single-hatena-bookmarks']){?>
1432
  .s_hb{background:#00a4de}
1433
- .s_hb:after{content: "\e948";}
 
 
 
 
 
 
 
 
 
 
 
1434
  <?php }
1435
  if(isset($redux_builder_amp['enable-single-pocket-share']) && $redux_builder_amp['enable-single-pocket-share']){?>
1436
  .s_pk{background:#ef3f56}
1437
- .s_pk:after{content: "\e949";}
 
 
 
 
 
 
 
1438
  <?php } ?>
1439
  .s_stk{background: #f1f1f1;display:inline-block;width: 100%;padding:0;position:fixed;bottom: 0;text-align: center;border: 0;}
1440
  .s_stk ul{width:100%;display:inline-flex;}
@@ -1652,4 +1980,15 @@ if( true == ampforwp_get_setting('ampforwp-infinite-scroll') && ampforwp_get_set
1652
  margin: 0px 0px 0px 0px;
1653
  }
1654
  }
1655
- <?php }
 
 
 
 
 
 
 
 
 
 
 
62
  <?php global $post;
63
  if( class_exists('\Elementor\Plugin') && \Elementor\Plugin::$instance->db->is_built_with_elementor($post->ID) && (is_page() || ampforwp_is_front_page() ) && ( function_exists( 'amp_pagebuilder_compatibility_init' ) || class_exists('Elementor_For_Amp') ) ) { }
64
  else{ ?>.cntr {max-width: 1100px;margin: 0 auto;width:100%;padding:0px 20px} <?php } ?>
65
+ <?php if(!ampforwp_levelup_compatibility('levelup_elementor') ){ // Level up Condition starts
66
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
67
+ @font-face {font-family: 'icomoon';font-display: swap;font-style: normal;font-weight: normal;src: local('icomoon'), local('icomoon'), url('<?php echo plugin_dir_url(__FILE__) ?>fonts/icomoon.ttf');}
68
+ <?php } // Swift icomoon icons condition ends ?>
69
  header .cntr{
70
  <?php if( ampforwp_get_setting('swift-width-control') ){?>
71
  max-width:<?php echo esc_html(ampforwp_get_setting('swift-width-control'));?>;
96
  }
97
  <?php } // Sickt CSS Ends ?>
98
  .h_m_w{width:100%;clear:both;display: inline-flex;<?php if(ampforwp_get_setting('swift-height-control')){?>height:<?php echo esc_html(ampforwp_get_setting('swift-height-control'))?>;<?php } ?>}
99
+ .icon-src:before{
100
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
101
+ content: "\e8b6";font-family: 'icomoon';font-size: 23px;
102
+ <?php }
103
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
104
+ content:"\f002";font-family: "Font Awesome 5 Free";font-weight:600;font-size:18px;
105
+ <?php } ?>
106
+ }
107
+ .isc:after{
108
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
109
+ content: "\e8cc";font-family: 'icomoon';font-size: 20px;
110
+ <?php }
111
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
112
+ content:"\f07a";font-family: "Font Awesome 5 Free";font-weight:600;font-size:16px;
113
+ <?php } ?>
114
+ }
115
+ .h-ic a:after, .h-ic a:before{
116
+ <?php if(isset($redux_builder_amp['swift-element-color-control'] ['rgba']) && $redux_builder_amp['swift-element-color-control'] ['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-color-control']['rgba'])?>;<?php } ?>}
117
  <?php if ( true == ampforwp_get_setting('ampforwp-callnow-button') ) { ?>
118
+ .h-call a:after{
119
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
120
+ content: "\e0cd";font-family: 'icomoon';
121
+ <?php }
122
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
123
+ content:"\f095";font-family: "Font Awesome 5 Free";font-weight:600;font-size:15px;
124
+ <?php } ?>
125
+ }
126
  <?php
127
  $callnowcolor = ampforwp_get_setting('amp-opt-color-rgba-colorscheme-call');
128
  if ( !empty($callnowcolor['color']) ) { ?>
174
  .lb-t {position: fixed;top: -50px;width: 100%;width: 100%;opacity: 0;-webkit-transition: opacity .5s ease-in-out;transition: opacity .5s ease-in-out;overflow: hidden;z-index:9;<?php if($redux_builder_amp['swift-header-overlay']['rgba']){?>background: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-header-overlay'] ['rgba']) ?>;<?php } ?>}
175
  .lb-t img {margin: auto;position: absolute;top: 0;left:0;right:0;bottom: 0;max-height: 0%;max-width: 0%;border: 3px solid white;box-shadow: 0px 0px 8px rgba(0,0,0,.3);box-sizing: border-box;-webkit-transition: .5s ease-in-out;transition: .5s ease-in-out;}
176
  a.lb-x {display: block;width:50px;height:50px;box-sizing: border-box;background: tranparent;color: black;text-decoration: none;position: absolute;top: -80px;right: 0;-webkit-transition: .5s ease-in-out;transition: .5s ease-in-out;}
177
+ a.lb-x:after {
178
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
179
+ content: "\e5cd";font-family: 'icomoon';font-size: 30px;
180
+ <?php }
181
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
182
+ content:"\f00d";font-family: "Font Awesome 5 Free";font-weight:600;font-size:22px;
183
+ <?php } ?>
184
+ line-height: 0;display: block;text-indent: 1px;
185
  <?php if($redux_builder_amp['swift-element-overlay-color-control'] ['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?> }
186
  .lb-t:target {opacity: 1;top: 0;bottom: 0;left:0;z-index:1;}
187
  .lb-t:target img {max-height: 100%;max-width: 100%;}
191
  .lb-btn #s{padding:10px;}
192
  .lb-btn #amp-search-submit{padding:10px;cursor:pointer;}
193
  .amp-search-wrapper{width: 80%;margin: 0 auto;position: relative;}
194
+ .overlay-search:before {
195
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
196
+ content: "\e8b6";font-family: 'icomoon';font-size: 24px;
197
+ <?php }
198
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
199
+ content:"\f002";font-family: "Font Awesome 5 Free";font-weight:600;font-size:18px;
200
+ <?php } ?>
201
+ position: absolute;right:0;cursor: pointer;top:4px;
202
  <?php if($redux_builder_amp['swift-element-overlay-color-control']['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?>}
203
  .lb-btn #amp-search-submit {cursor: pointer;background:transparent;border: none;display: inline-block;width: 30px;height: 30px;opacity: 0;position: absolute;z-index:100;right: 0;top: 0;}
204
  .lb-btn #s {padding: 10px;background: transparent;border: none;border-bottom: 1px solid #504c4c;width:100%;
221
  <?php } ?>
222
  .tg:checked + .hamb-mnu > .fsc{display: block;background: rgba(0,0,0,.9);height:100%;}
223
  .t-btn, .c-btn{cursor: pointer;}
224
+ .t-btn:after{
225
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
226
+ content:"\e5d2";font-family: "icomoon";font-size:28px;
227
+ <?php }
228
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
229
+ content:"\f0c9";font-family: "Font Awesome 5 Free";font-weight:600;font-size:22px;
230
+ <?php } ?>
231
+ display:inline-block;
232
+ <?php if( isset($redux_builder_amp['swift-element-color-control']['rgba']) && $redux_builder_amp['swift-element-color-control']['rgba']){ ?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-color-control']['rgba'])?>;<?php } ?>}
233
+ .c-btn:after{
234
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
235
+ content: "\e5cd";font-family: "icomoon";font-size: 20px;
236
+ <?php }
237
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
238
+ content:"\f00d";font-family: "Font Awesome 5 Free";font-weight:600;font-size:18px;
239
+ <?php } ?>
240
+ <?php if(isset($redux_builder_amp['swift-element-overlay-color-control'] ['rgba']) && $redux_builder_amp['swift-element-overlay-color-control'] ['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?>line-height: 0;display: block;text-indent: 1px;}
241
  .c-btn{float: right;padding: 20px 10px;}
242
  .m-ctr{transition: margin 0.3s ease-in-out;}
243
  .m-ctr{<?php if(ampforwp_get_setting('header-overlay-width')){?>width:<?php echo esc_html(ampforwp_get_setting('header-overlay-width'))?>;<?php } ?>height:100%;position: absolute;z-index:99;padding: 2% 0% 100vh 0%;}
244
  .m-menu{display: inline-block;width: 100%;padding: 2px 20px 10px 20px;}
245
  .m-scrl{overflow-y: auto;display: inline-block;width: 100%;overflow: scroll;max-height: 94vh;}
246
+ .m-menu .amp-menu .toggle:after{
247
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
248
+ content: "\e313";font-family: 'icomoon';font-size:25px;
249
+ <?php }
250
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
251
+ content:"\f107";font-family: "Font Awesome 5 Free";font-weight:600;font-size:20px;
252
+ <?php } ?>
253
+ display: inline-block;top: 1px;padding: 5px;transform: rotate(270deg);cursor: pointer;border-radius: 35px;color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;}
254
  .m-menu .amp-menu li.menu-item-has-children:after{display:none;}
255
  .m-menu .amp-menu li ul{font-size:14px;}
256
  .m-menu .amp-menu {list-style-type: none;padding: 0;}
293
  .p-menu li:hover > ul{opacity: 1;transform: translateY(0px);visibility: visible;transition: all 0.2s ease-in-out 0s;}
294
  .p-menu li ul li{display: block;position: relative;}
295
  .p-menu ul li.menu-item-has-children .sub-menu li a{padding:7px;}
296
+ .p-menu ul li.menu-item-has-children > a:after{
297
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
298
+ content: "\e313";font-family: 'icomoon';font-size: 16px;right:10px;top: 3px;
299
+ <?php }
300
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
301
+ content:"\f107";font-family: "Font Awesome 5 Free";font-weight:600;font-size:14px;right: 6px;top: 1px;
302
+ <?php } ?>
303
+ display: inline-block;top: 3px;font-size: 16px;color: rgba(0,41,96,1);position:relative;padding-left: 10px;line-height:0;right:10px;color:<?php echo ampforwp_sanitize_color($redux_builder_amp['primary-menu-text-scheme']['rgba'])?>;}
304
  .p-menu .amp-menu li.menu-item-has-children>ul>li {padding-left: 0px;margin-right:0;}
305
+ .p-menu li.menu-item-has-children:hover > a:after{transform:rotate(180deg);
306
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
307
+ right:0px;
308
+ <?php } if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
309
+ right:-3px;
310
+ <?php } ?>}
311
  <?php } else { ?>
312
  .p-menu .amp-menu li.menu-item-has-children:hover>ul{display:none;}
313
  .p-menu{overflow-x: auto;overflow-y:hidden;white-space: nowrap;}
713
  .breadcrumb ul li,.breadcrumbs span{display: inline-block;list-style-type: none;font-size: 10px;text-transform: uppercase;margin-right: 5px;}
714
  .breadcrumb ul li a, .breadcrumbs span a{color: #999;letter-spacing: 1px;}
715
  .breadcrumb ul li a:hover, .breadcrumbs span a:hover{color: <?php echo ampforwp_sanitize_color($hovercolor); ?>;}
716
+ .breadcrumbs li a:after, .breadcrumbs span a:after{
717
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
718
+ content: "\e315";font-family: 'icomoon';font-size: 12px;
719
+ <?php }
720
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
721
+ content:"\f105";font-family: "Font Awesome 5 Free";font-weight:600;font-size:11px;
722
+ <?php } ?>
723
+ display: inline-block;color: #bdbdbd;padding-left: 5px;position: relative;top: 1px;}
724
  .breadcrumbs li:last-child a:after {display: none;}
725
  <?php } //Breadcrumbs Ends?>
726
  #pagination{margin-top: 30px;border-top: 1px dotted #ccc;padding: 20px 5px 0px 5px;;font-size: 16px;line-height: 24px;font-weight:400;}
916
  text-align: center;
917
  }
918
  .m-s-i li{
919
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
920
  font-family: 'icomoon';
921
+ font-size: 20px;
922
+ <?php }
923
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
924
+ font-family: "Font Awesome 5 Brands";
925
+ font-size:16px;
926
+ <?php } ?>
927
  list-style-type: none;
 
928
  display: inline-block;
929
  margin: 0px 15px 10px 0px;
930
  vertical-align: middle;
937
  color:<?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;
938
  }
939
  <?php if($redux_builder_amp['enbl-fb']){?>
940
+ .s_fb:after {
941
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
942
+ content: "\e92d";
943
+ <?php }
944
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
945
+ content: "\f082";
946
+ <?php } ?>
947
+ }
948
  <?php }
949
  if($redux_builder_amp['enbl-tw']){ ?>
950
+ .s_tw:after {
951
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
952
+ content: "\e942";
953
+ <?php }
954
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
955
+ content:"\f099";
956
+ <?php } ?>
957
+ }
958
  <?php }
959
  if($redux_builder_amp['enbl-gol']){?>
960
+ .s_gp:after {
961
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
962
+ content: "\e931";
963
+ <?php }
964
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
965
+ content:"\f0d5";
966
+ <?php } ?>
967
+ }
968
  <?php }
969
  if($redux_builder_amp['enbl-lk']){?>
970
+ .s_lk:after {
971
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
972
+ content: "\e934";
973
+ <?php }
974
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
975
+ content:"\f08c";
976
+ <?php } ?>
977
+ }
978
  <?php }
979
  if($redux_builder_amp['enbl-pt']){?>
980
+ .s_pt:after {
981
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
982
+ content:"\e937";
983
+ <?php }
984
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
985
+ content:"\f0d2";
986
+ <?php } ?>
987
+ }
988
  <?php }
989
  if($redux_builder_amp['enbl-yt']){?>
990
+ .s_yt:after {
991
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
992
+ content: "\e947";
993
+ <?php }
994
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
995
+ content:"\f167";
996
+ <?php } ?>
997
+ }
998
  <?php }
999
  if($redux_builder_amp['enbl-inst']){?>
1000
+ .s_inst:after {
1001
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1002
+ content: "\e932";
1003
+ <?php }
1004
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1005
+ content:"\f16d";
1006
+ <?php } ?>
1007
+ }
1008
  <?php }
1009
  if($redux_builder_amp['enbl-vk']){?>
1010
+ .ss-ic .s_vk:after {
1011
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1012
+ content: "\e944";
1013
+ <?php }
1014
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1015
+ content:"";
1016
+ display:inline-block;
1017
+ background-image:url(<?php echo AMPFORWP_IMAGE_DIR . '/vk-img.png' ?>);
1018
+ width:16px;
1019
+ height:16px;
1020
+ <?php } ?>
1021
+ }
1022
  <?php }
1023
  if($redux_builder_amp['enbl-rd']){?>
1024
+ .s_rd:after {
1025
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1026
+ content: "\e938";
1027
+ <?php }
1028
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1029
+ content:"\f281";
1030
+ <?php } ?>;
1031
+ }
1032
  <?php }
1033
  if($redux_builder_amp['enbl-tbl']){?>
1034
+ .s_tbl:after {
1035
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1036
+ content: "\e940";
1037
+ <?php }
1038
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1039
+ content:"\f173";
1040
+ <?php } ?>
1041
+ }
1042
  <?php } ?>
1043
  <?php } // Menu social CSS Ends
1044
  if( isset($redux_builder_amp['amp-swift-menu-cprt']) && $redux_builder_amp['amp-swift-menu-cprt']){?>
1374
  opacity: 0;
1375
  }
1376
  .w-bl .search-button:after{
1377
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1378
+ content: "\e8b6";font-family: 'icomoon';font-size: 23px;
1379
+ <?php }
1380
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1381
+ content:"\f002";font-family: "Font Awesome 5 Free";font-weight:600;font-size:18px;
1382
+ <?php } ?>
1383
  display:inline-block;
 
 
1384
  cursor: pointer;
1385
  }
1386
  .w-bl .search-field{
1519
 
1520
  //Sticky Social Icons
1521
  if(is_single() || is_page() ){ ?>
1522
+ .ss-ic ul li{
1523
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1524
+ font-family: 'icomoon';
1525
+ <?php }
1526
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1527
+ font-family: "Font Awesome 5 Brands";
1528
+ font-size:16px;
1529
+ <?php } ?>
1530
+ list-style-type:none;display:inline-block;}
1531
  .ss-ic li a{color: #fff;padding: 5px;border-radius: 3px;margin: 0px 10px 10px 0px;display: inline-block;}
1532
  <?php if($redux_builder_amp['enable-single-facebook-share'] || $redux_builder_amp['enbl-fb'] ){?>
1533
  .ss-ic ul li .s_fb{ color:#fff;background:#3b5998;}
1534
+ .s_fb:after{
1535
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1536
+ content: "\e92d";
1537
+ <?php }
1538
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1539
+ content:"\f09a";
1540
+ <?php } ?>
1541
+ }
1542
+ <?php }
1543
+ if(ampforwp_get_setting('enable-single-facebook-share-messenger')){?>
1544
+ .s_fb_ms{color:#fff;background:#3b5998;}
1545
+ .s_fb_ms:after{
1546
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1547
+ content: "\e935";
1548
+ <?php }
1549
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1550
+ content:"\f39f";
1551
+ <?php } ?>
1552
+ }
1553
+ <?php }
1554
  if($redux_builder_amp['enable-single-twitter-share'] || $redux_builder_amp['enbl-tw']){?>
1555
  .s_tw{background:#1da1f2;}
1556
+ .s_tw:after{
1557
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1558
+ content: "\e942";
1559
+ <?php }
1560
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1561
+ content:"\f099";
1562
+ <?php } ?>
1563
+ }
1564
  <?php }
1565
  if($redux_builder_amp['enable-single-gplus-share'] || $redux_builder_amp['enbl-gol']){?>
1566
  .s_gp{background:#dd4b39;}
1567
+ .s_gp:after{
1568
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1569
+ content: "\e931";
1570
+ <?php }
1571
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1572
+ content:"\f0d5";
1573
+ <?php } ?>
1574
+ }
1575
  <?php }
1576
  if($redux_builder_amp['enable-single-linkedin-share'] || $redux_builder_amp['enbl-lk']){?>
1577
  .s_lk{background:#0077b5;}
1578
+ .s_lk:after{
1579
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1580
+ content: "\e934";
1581
+ <?php }
1582
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1583
+ content:"\f08c";
1584
+ <?php } ?>
1585
+ }
1586
  <?php }
1587
  if($redux_builder_amp['enable-single-pinterest-share'] || isset($redux_builder_amp['enbl-pt']) && $redux_builder_amp['enbl-pt']){?>
1588
  .s_pt{background:#bd081c;}
1589
+ .s_pt:after{
1590
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1591
+ content:"\e937";
1592
+ <?php }
1593
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1594
+ content:"\f0d2";
1595
+ <?php } ?>
1596
+ }
1597
  <?php }
1598
  if($redux_builder_amp['enable-single-email-share']){?>
1599
  .s_em{background:#b7b7b7;}
1600
+ .s_em:after{
1601
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1602
+ content: "\e930";
1603
+ <?php }
1604
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1605
+ content:"\f0e0";
1606
+ font-family: "Font Awesome 5 Free";
1607
+ <?php } ?>
1608
+ }
1609
  <?php }
1610
  if($redux_builder_amp['enable-single-whatsapp-share']){?>
1611
  .s_wp{background:#075e54;}
1612
+ .s_wp:after{
1613
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1614
+ content: "\e946";
1615
+ <?php }
1616
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1617
+ content:"\f232";
1618
+ <?php } ?>
1619
+ }
1620
  <?php }
1621
  if($redux_builder_amp['enable-single-odnoklassniki-share']){?>
1622
  .s_od{background:#ed812b;}
1623
+ .s_od:after{
1624
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1625
+ content: "\e936";
1626
+ <?php }
1627
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1628
+ content:"\f263";
1629
+ <?php } ?>
1630
+ }
1631
  <?php }
1632
  if($redux_builder_amp['enable-single-vk-share']){?>
1633
  .s_vk{background:#45668e;}
1634
+ .s_vk:after{
1635
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1636
+ content: "\e944";
1637
+ <?php }
1638
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1639
+ content:"";
1640
+ display:inline-block;
1641
+ background-image:url(<?php echo AMPFORWP_IMAGE_DIR . '/vk-img.png' ?>);
1642
+ width:16px;
1643
+ height:16px;
1644
+ <?php } ?>
1645
+ }
1646
  <?php }
1647
  if(ampforwp_get_setting('enable-single-line-share') == true) { ?>
1648
  .s_li{background:#00cc00;}
1649
+ <?php }
1650
+ if(ampforwp_get_setting('enable-single-mewe-share') == true) { ?>
1651
+ .s_mewe{background:#b8d6e6;}
1652
+ <?php }
1653
  if($redux_builder_amp['enable-single-reddit-share']){?>
1654
  .s_rd{background:#ff4500;}
1655
+ .s_rd:after{
1656
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1657
+ content: "\e938";
1658
+ <?php }
1659
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1660
+ content:"\f281";
1661
+ <?php } ?>
1662
+ }
1663
  <?php }
1664
  if($redux_builder_amp['enable-single-tumblr-share']){?>
1665
  .s_tb{background:#35465c;}
1666
+ .s_tb:after{
1667
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1668
+ content: "\e940";
1669
+ <?php }
1670
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1671
+ content:"\f173";
1672
+ <?php } ?>
1673
+ }
1674
  <?php }
1675
  if($redux_builder_amp['enable-single-telegram-share']){?>
1676
  .s_tg{background:#0088cc;}
1677
+ .s_tg:after{
1678
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1679
+ content: "\e93f";
1680
+ <?php }
1681
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1682
+ content:"\f3fe";
1683
+ <?php } ?>
1684
+ }
1685
  <?php }
1686
  if($redux_builder_amp['enable-single-digg-share']){?>
1687
  .s_dg{background:#005be2;}
1688
+ .s_dg:after{
1689
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1690
+ content: "\e919";
1691
+ <?php }
1692
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1693
+ content:"\f1a6";
1694
+ <?php } ?>
1695
+ }
1696
  <?php }
1697
  if($redux_builder_amp['enable-single-stumbleupon-share']){?>
1698
  .s_su{background:#eb4924;}
1699
+ .s_su:after{
1700
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1701
+ content: "\e93e";
1702
+ <?php }
1703
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1704
+ content:"\f1a3";
1705
+ <?php } ?>
1706
+ }
1707
  <?php }
1708
  if($redux_builder_amp['enable-single-wechat-share']){?>
1709
  .s_wc{background:#7bb32e;}
1710
+ .s_wc:after{
1711
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1712
+ content: "\e945";
1713
+ <?php }
1714
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1715
+ content:"\f1d7";
1716
+ <?php } ?>
1717
+ }
1718
  <?php }
1719
  if($redux_builder_amp['enable-single-viber-share']){?>
1720
  .s_vb{background:#59267c;}
1721
+ .s_vb:after{
1722
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1723
+ content: "\e943";
1724
+ <?php }
1725
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1726
+ content:"\f409";
1727
+ <?php } ?>
1728
+ }
1729
  <?php }
1730
  if(isset($redux_builder_amp['enable-single-yummly-share']) && $redux_builder_amp['enable-single-yummly-share']){?>
1731
  .s_ym{background:#e26426}
1732
+ .s_ym:after{
1733
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1734
+ content: "\e948";
1735
+ <?php }
1736
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1737
+ content:"\f39f";
1738
+ <?php } ?>
1739
+ }
1740
  <?php }
1741
  if(isset($redux_builder_amp['enable-single-hatena-bookmarks']) && $redux_builder_amp['enable-single-hatena-bookmarks']){?>
1742
  .s_hb{background:#00a4de}
1743
+ .s_hb:after{
1744
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1745
+ content: "\e948";
1746
+ <?php }
1747
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1748
+ content:"";
1749
+ display:inline-block;
1750
+ background-image:url(<?php echo AMPFORWP_IMAGE_DIR . '/hatena-img.png' ?>);
1751
+ width:16px;
1752
+ height:16px;
1753
+ <?php } ?>
1754
+ }
1755
  <?php }
1756
  if(isset($redux_builder_amp['enable-single-pocket-share']) && $redux_builder_amp['enable-single-pocket-share']){?>
1757
  .s_pk{background:#ef3f56}
1758
+ .s_pk:after{
1759
+ <?php if ( ampforwp_get_setting('ampforwp_font_icon') == 'swift-icons' ){ ?>
1760
+ content: "\e949";
1761
+ <?php }
1762
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
1763
+ content:"\f265";
1764
+ <?php } ?>
1765
+ }
1766
  <?php } ?>
1767
  .s_stk{background: #f1f1f1;display:inline-block;width: 100%;padding:0;position:fixed;bottom: 0;text-align: center;border: 0;}
1768
  .s_stk ul{width:100%;display:inline-flex;}
1980
  margin: 0px 0px 0px 0px;
1981
  }
1982
  }
1983
+ <?php }
1984
+ // image floats removed in mobile view #2525
1985
+ if( function_exists('if_is_levelup') && !if_is_levelup() && !if_levelup_has_builder() ){ // Level up Condition starts
1986
+ if(is_singular() || ampforwp_is_front_page()){?>
1987
+ @media(max-width:480px){
1988
+ .content-wrapper .alignright , .content-wrapper .alignleft {
1989
+ float:none;
1990
+ margin:0 auto;
1991
+ }
1992
+ }
1993
+ <?php } ?>
1994
+ <?php } // levelup condition ends here?>
templates/features.php CHANGED
@@ -610,9 +610,10 @@ function ampforwp_new_dir( $dir ) {
610
 
611
  // Facebook Like Script
612
  $fb_like = false;
 
613
  if ( true == ampforwp_get_setting('ampforwp-facebook-like-button') ){
614
- if ( is_single() && (true == ampforwp_get_setting('enable-single-social-icons') || ( $social_check && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())))) {
615
- $fb_like = true;
616
  }
617
  if ( is_page() && ( true == ampforwp_get_setting('ampforwp-page-sticky-social') || ( $social_check_page && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) ) ) {
618
  $fb_like = true;
@@ -1344,7 +1345,8 @@ function ampforwp_sticky_social_icons(){
1344
  <?php if ( true == $redux_builder_amp['enable-single-telegram-share'] ) { ?>
1345
  <a title="telegram share" href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(get_the_title()); ?>" target="_blank">
1346
  <div class="amp-social-icon amp-social-telegram">
1347
- <amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjYgMjYiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMCAydjguNUwxNSAxMyAwIDE1LjVWMjRsMjYtMTFMMCAyeiI+PC9wYXRoPjwvc3ZnPg==" width="50" height="20" />
 
1348
  </div>
1349
  </a>
1350
  <?php } ?>
@@ -6737,4 +6739,11 @@ function ampforwp_register_addthis_script( $data ){
6737
  }
6738
  }
6739
  return $data;
6740
- }
 
 
 
 
 
 
 
610
 
611
  // Facebook Like Script
612
  $fb_like = false;
613
+ $isBBPress = (function_exists('is_bbpress') ? is_bbpress() : false );
614
  if ( true == ampforwp_get_setting('ampforwp-facebook-like-button') ){
615
+ if ( is_single() && (true == ampforwp_get_setting('enable-single-social-icons') || ( $social_check && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())) && !$isBBPress)) {
616
+ $fb_like = true;
617
  }
618
  if ( is_page() && ( true == ampforwp_get_setting('ampforwp-page-sticky-social') || ( $social_check_page && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) ) ) {
619
  $fb_like = true;
1345
  <?php if ( true == $redux_builder_amp['enable-single-telegram-share'] ) { ?>
1346
  <a title="telegram share" href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(get_the_title()); ?>" target="_blank">
1347
  <div class="amp-social-icon amp-social-telegram">
1348
+ <amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ1NS43MzEgNDU1LjczMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDU1LjczMSA0NTUuNzMxOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGc+Cgk8cmVjdCB4PSIwIiB5PSIwIiBzdHlsZT0iZmlsbDojNjFBOERFOyIgd2lkdGg9IjQ1NS43MzEiIGhlaWdodD0iNDU1LjczMSIvPgoJPHBhdGggc3R5bGU9ImZpbGw6I0ZGRkZGRjsiIGQ9Ik0zNTguODQ0LDEwMC42TDU0LjA5MSwyMTkuMzU5Yy05Ljg3MSwzLjg0Ny05LjI3MywxOC4wMTIsMC44ODgsMjEuMDEybDc3LjQ0MSwyMi44NjhsMjguOTAxLDkxLjcwNiAgIGMzLjAxOSw5LjU3OSwxNS4xNTgsMTIuNDgzLDIyLjE4NSw1LjMwOGw0MC4wMzktNDAuODgybDc4LjU2LDU3LjY2NWM5LjYxNCw3LjA1NywyMy4zMDYsMS44MTQsMjUuNzQ3LTkuODU5bDUyLjAzMS0yNDguNzYgICBDMzgyLjQzMSwxMDYuMjMyLDM3MC40NDMsOTYuMDgsMzU4Ljg0NCwxMDAuNnogTTMyMC42MzYsMTU1LjgwNkwxNzkuMDgsMjgwLjk4NGMtMS40MTEsMS4yNDgtMi4zMDksMi45NzUtMi41MTksNC44NDcgICBsLTUuNDUsNDguNDQ4Yy0wLjE3OCwxLjU4LTIuMzg5LDEuNzg5LTIuODYxLDAuMjcxbC0yMi40MjMtNzIuMjUzYy0xLjAyNy0zLjMwOCwwLjMxMi02Ljg5MiwzLjI1NS04LjcxN2wxNjcuMTYzLTEwMy42NzYgICBDMzIwLjA4OSwxNDcuNTE4LDMyNC4wMjUsMTUyLjgxLDMyMC42MzYsMTU1LjgwNnoiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" width="50" height="20" />
1349
+
1350
  </div>
1351
  </a>
1352
  <?php } ?>
6739
  }
6740
  }
6741
  return $data;
6742
+ }
6743
+ // Font Awesome Icons added for Swift
6744
+ add_action('amp_post_template_head', 'ampforwp_fontawesome_canonical_link');
6745
+ function ampforwp_fontawesome_canonical_link(){
6746
+ if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
6747
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
6748
+ <?php }
6749
+ }