Clever Fox - Version 1.1.29

Version Description

  • Hantus Theme Functionality Improved
Download this release

Release Info

Developer nayrathemes
Plugin Icon 128x128 Clever Fox
Version 1.1.29
Comparing to
See all releases

Code changes from version 1.1.28 to 1.1.29

clever-fox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
6
- Version: 1.1.28
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
6
+ Version: 1.1.29
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
inc/hantus/features/navigation.php CHANGED
@@ -1,94 +1,95 @@
1
  <?php
2
- // Customizer tabs for header social media & address
3
- function hantus_social_customize_register( $wp_customize ) {
 
4
  if ( class_exists( 'Cleverfox_Customize_Control_Tabs' ) ) {
 
 
5
  $wp_customize->add_setting(
6
- 'hantus_social_tabs', array(
7
  'sanitize_callback' => 'sanitize_text_field',
8
  )
9
  );
 
10
  $wp_customize->add_control(
11
  new Cleverfox_Customize_Control_Tabs(
12
- $wp_customize, 'hantus_social_tabs', array(
13
- 'section' => 'header_setting',
14
  'tabs' => array(
15
  'general' => array(
16
- 'nicename' => esc_html__( 'Setting', 'hantus' ),
17
  'icon' => 'cogs',
18
  'controls' => array(
19
- 'hide_show_social_icon',
20
- ),
21
- ),
22
- 'first' => array(
23
- 'nicename' => esc_html__( 'Timing', 'hantus' ),
24
- 'icon' => 'table',
25
- 'controls' => array(
26
- 'hantus_time_icon',
27
- 'hantus_timing'
28
  ),
29
  ),
30
- 'second' => array(
31
- 'nicename' => esc_html__( 'Social Icons', 'hantus' ),
32
  'icon' => 'table',
33
  'controls' => array(
34
- 'social_icons',
 
 
35
  ),
36
  ),
37
  ),
 
38
  )
39
  )
40
  );
41
  }
42
  }
43
- add_action( 'customize_register', 'hantus_social_customize_register' );
 
44
 
45
- // Customizer tabs for header social media & address
46
- function hantus_contact_customize_register( $wp_customize ) {
 
47
  if ( class_exists( 'Cleverfox_Customize_Control_Tabs' ) ) {
48
 
49
-
50
  $wp_customize->add_setting(
51
- 'hantus_contacts_tabs', array(
52
  'sanitize_callback' => 'sanitize_text_field',
53
  )
54
  );
55
 
56
  $wp_customize->add_control(
57
  new Cleverfox_Customize_Control_Tabs(
58
- $wp_customize, 'hantus_contacts_tabs', array(
59
- 'section' => 'header_contact',
60
  'tabs' => array(
61
  'general' => array(
62
  'nicename' => esc_html__( 'Setting', 'hantus' ),
63
  'icon' => 'cogs',
64
  'controls' => array(
65
- 'hide_show_contact_infot',
66
  ),
67
  ),
68
  'first' => array(
69
- 'nicename' => esc_html__( 'Email', 'hantus' ),
70
- 'icon' => 'table',
71
  'controls' => array(
72
- 'header_email_icon',
73
- 'header_email',
74
  ),
75
  ),
76
  'second' => array(
77
- 'nicename' => esc_html__( 'Phone', 'hantus' ),
78
- 'icon' => 'table',
79
  'controls' => array(
80
- 'header_phone_icon',
81
- 'header_phone_number',
82
  ),
83
  ),
84
-
85
  ),
86
  )
87
  )
88
  );
89
  }
90
  }
91
- add_action( 'customize_register', 'hantus_contact_customize_register' );
 
92
 
93
  // Customizer tabs for header Search & cart
94
  function hantus_search_customize_register( $wp_customize ) {
1
  <?php
2
+ // Customizer tabs for slider section
3
+ if ( ! function_exists( 'hantus_slider_manager_customize_register' ) ) :
4
+ function hantus_slider_manager_customize_register( $wp_customize ) {
5
  if ( class_exists( 'Cleverfox_Customize_Control_Tabs' ) ) {
6
+
7
+ // Pricing Tables Tabs
8
  $wp_customize->add_setting(
9
+ 'hantus_slider_tabs', array(
10
  'sanitize_callback' => 'sanitize_text_field',
11
  )
12
  );
13
+
14
  $wp_customize->add_control(
15
  new Cleverfox_Customize_Control_Tabs(
16
+ $wp_customize, 'hantus_slider_tabs', array(
17
+ 'section' => 'slider_setting',
18
  'tabs' => array(
19
  'general' => array(
20
+ 'nicename' => esc_html__( 'setting', 'startkit' ),
21
  'icon' => 'cogs',
22
  'controls' => array(
23
+ 'hide_show_slider',
24
+
 
 
 
 
 
 
 
25
  ),
26
  ),
27
+ 'Content' => array(
28
+ 'nicename' => esc_html__( 'Default', 'startkit' ),
29
  'icon' => 'table',
30
  'controls' => array(
31
+ 'slider',
32
+ 'hantus_slider_upgrade_to_pro',
33
+ 'slider_opacity',
34
  ),
35
  ),
36
  ),
37
+
38
  )
39
  )
40
  );
41
  }
42
  }
43
+ add_action( 'customize_register', 'hantus_slider_manager_customize_register' );
44
+ endif;
45
 
46
+
47
+ // Customizer tabs blogs
48
+ function hantus_blog_customize_register( $wp_customize ) {
49
  if ( class_exists( 'Cleverfox_Customize_Control_Tabs' ) ) {
50
 
51
+ // Pricing Tables Tabs
52
  $wp_customize->add_setting(
53
+ 'hantus_blog_tabs', array(
54
  'sanitize_callback' => 'sanitize_text_field',
55
  )
56
  );
57
 
58
  $wp_customize->add_control(
59
  new Cleverfox_Customize_Control_Tabs(
60
+ $wp_customize, 'hantus_blog_tabs', array(
61
+ 'section' => 'blog_setting',
62
  'tabs' => array(
63
  'general' => array(
64
  'nicename' => esc_html__( 'Setting', 'hantus' ),
65
  'icon' => 'cogs',
66
  'controls' => array(
67
+ 'hide_show_blog',
68
  ),
69
  ),
70
  'first' => array(
71
+ 'nicename' => esc_html__( 'Header', 'hantus' ),
72
+ 'icon' => 'header',
73
  'controls' => array(
74
+ 'blog_title',
75
+ 'blog_description',
76
  ),
77
  ),
78
  'second' => array(
79
+ 'nicename' => esc_html__( 'Content', 'hantus' ),
80
+ 'icon' => 'info',
81
  'controls' => array(
82
+ 'blog_display_num',
 
83
  ),
84
  ),
 
85
  ),
86
  )
87
  )
88
  );
89
  }
90
  }
91
+
92
+ add_action( 'customize_register', 'hantus_blog_customize_register' );
93
 
94
  // Customizer tabs for header Search & cart
95
  function hantus_search_customize_register( $wp_customize ) {
inc/hantus/features/section-service.php CHANGED
@@ -130,7 +130,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
130
  array(
131
  'label' => esc_html__('Service','hantus'),
132
  'section' => 'service_setting',
133
- 'add_field_label' => esc_html__( 'Add New', 'hantus' ),
134
  'item_name' => esc_html__( 'Service', 'hantus' ),
135
  'priority' => 1,
136
  'customizer_repeater_image_control' => true,
@@ -139,6 +139,30 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
139
  )
140
  )
141
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  }
143
 
144
  add_action( 'customize_register', 'hantus_service_setting' );
@@ -181,6 +205,7 @@ function hantus_servicess_customize_register( $wp_customize ) {
181
  'icon' => 'info',
182
  'controls' => array(
183
  'service_contents',
 
184
  ),
185
  ),
186
 
@@ -220,8 +245,6 @@ function hantus_home_service_section_partials( $wp_customize ){
220
  // service content
221
  $wp_customize->selective_refresh->add_partial( 'service_contents', array(
222
  'selector' => '.servicesss',
223
- 'settings' => 'service_contents',
224
- 'render_callback' => 'home_section_service_contents_render_callback',
225
 
226
  ) );
227
 
@@ -238,10 +261,4 @@ function home_section_service_title_render_callback() {
238
  // service description
239
  function home_section_service_desc_render_callback() {
240
  return get_theme_mod( 'service_description' );
241
- }
242
-
243
- // service content
244
- function home_section_service_contents_render_callback() {
245
- $service_contents = get_theme_mod( 'service_contents' );
246
- service_contents( $service_contents, true );
247
  }
130
  array(
131
  'label' => esc_html__('Service','hantus'),
132
  'section' => 'service_setting',
133
+ 'add_field_label' => esc_html__( 'Add New Service', 'hantus' ),
134
  'item_name' => esc_html__( 'Service', 'hantus' ),
135
  'priority' => 1,
136
  'customizer_repeater_image_control' => true,
139
  )
140
  )
141
  );
142
+
143
+ //Pro feature
144
+ class Hantus_service__section_upgrade extends WP_Customize_Control {
145
+ public function render_content() {
146
+ ?>
147
+ <p class="customizer_service_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('More Services Are Available in the Pro Version','hantus'); ?></p>
148
+ <?php
149
+ }
150
+ }
151
+
152
+ $wp_customize->add_setting( 'hantus_service_upgrade_to_pro', array(
153
+ 'capability' => 'edit_theme_options',
154
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
155
+ ));
156
+ $wp_customize->add_control(
157
+ new Hantus_service__section_upgrade(
158
+ $wp_customize,
159
+ 'hantus_service_upgrade_to_pro',
160
+ array(
161
+ 'section' => 'service_setting',
162
+ 'settings' => 'hantus_service_upgrade_to_pro',
163
+ )
164
+ )
165
+ );
166
  }
167
 
168
  add_action( 'customize_register', 'hantus_service_setting' );
205
  'icon' => 'info',
206
  'controls' => array(
207
  'service_contents',
208
+ 'hantus_service_upgrade_to_pro'
209
  ),
210
  ),
211
 
245
  // service content
246
  $wp_customize->selective_refresh->add_partial( 'service_contents', array(
247
  'selector' => '.servicesss',
 
 
248
 
249
  ) );
250
 
261
  // service description
262
  function home_section_service_desc_render_callback() {
263
  return get_theme_mod( 'service_description' );
 
 
 
 
 
 
264
  }
inc/hantus/features/section-slider.php CHANGED
@@ -32,132 +32,64 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
32
  )
33
  ));
34
  }
35
- // Background Image //
36
- $wp_customize->add_setting(
37
- 'slide_image' ,
38
- array(
39
- 'default' => CLEVERFOX_PLUGIN_URL .'inc/hantus/images/slider/slider.jpg',
40
- 'capability' => 'edit_theme_options',
41
- 'sanitize_callback' => 'hantus_sanitize_url',
42
-
43
- )
44
- );
45
-
46
- $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'slide_image' ,
47
- array(
48
- 'label' => __( 'Background Image', 'hantus' ),
49
- 'section' => 'slider_setting',
50
- 'settings' => 'slide_image',
51
- )
52
- ));
53
- //slide title//
54
-
55
- $wp_customize->add_setting(
56
- 'slide_title',
57
- array(
58
- 'default' => __('Welcome To Hantus Spa','hantus'),
59
- 'capability' => 'edit_theme_options',
60
- 'sanitize_callback' => 'hantus_sanitize_html',
61
- 'transport' => $selective_refresh,
62
- )
63
- );
64
-
65
- $wp_customize->add_control(
66
- 'slide_title',
67
- array(
68
- 'label' => __('Title','hantus'),
69
- 'section' => 'slider_setting',
70
- 'settings' => 'slide_title',
71
- 'type' => 'text',
72
- )
73
- );
74
-
75
- //slide subtitle//
76
-
77
- $wp_customize->add_setting(
78
- 'slide_subtitle',
79
- array(
80
- 'default' => __('Beauty & Spa Wellness','hantus'),
81
- 'capability' => 'edit_theme_options',
82
- 'sanitize_callback' => 'hantus_sanitize_html',
83
- 'transport' => $selective_refresh,
84
- )
85
- );
86
-
87
- $wp_customize->add_control(
88
- 'slide_subtitle',
89
- array(
90
- 'label' => __('Subtitle','hantus'),
91
- 'section' => 'slider_setting',
92
- 'settings' => 'slide_subtitle',
93
- 'type' => 'text',
94
- )
95
- );
96
-
97
- //slide description//
98
- $wp_customize->add_setting(
99
- 'slide_description',
100
- array(
101
- 'default' => __('The Spa at Sun Valley is a serene oasis amid all the exciting activities our iconic valley has delivered for decades.'),
102
- 'capability' => 'edit_theme_options',
103
- 'sanitize_callback' => 'hantus_sanitize_html',
104
- 'transport' => $selective_refresh,
105
- )
106
- );
107
 
108
- $wp_customize->add_control(
109
- 'slide_description',
110
- array(
111
- 'label' => __('Description','hantus'),
112
- 'section' => 'slider_setting',
113
- 'settings' => 'slide_description',
114
- 'type' => 'textarea',
115
- )
116
- );
117
- // button text
118
- $wp_customize->add_setting(
119
- 'slide_btn_text',
120
- array(
121
- 'default' => __('Make an Appoinment','hantus'),
122
- 'capability' => 'edit_theme_options',
123
- 'sanitize_callback' => 'hantus_sanitize_html',
124
- 'transport' => $selective_refresh,
125
- )
126
- );
127
-
128
- $wp_customize->add_control(
129
- 'slide_btn_text',
130
- array(
131
- 'label' => __('button text','hantus'),
132
- 'section' => 'slider_setting',
133
- 'settings' => 'slide_btn_text',
134
- 'type' => 'text',
135
- )
136
- );
137
-
138
- // Slider button link
139
- $wp_customize->add_setting(
140
- 'slide_btn_link',
141
- array(
142
- 'default' => __('#','hantus'),
143
- 'capability' => 'edit_theme_options',
144
- 'sanitize_callback' => 'hantus_sanitize_url',
145
- 'transport' => $selective_refresh,
146
- )
147
- );
148
-
149
- $wp_customize->add_control(
150
- 'slide_btn_link',
151
- array(
152
- 'label' => __('Link','hantus'),
153
- 'section' => 'slider_setting',
154
- 'settings' => 'slide_btn_link',
155
- 'type' => 'text',
156
- )
157
- );
 
 
 
 
 
 
158
  //slider opacity
159
-
160
- // Slider Text Caption //
161
  $wp_customize->add_setting(
162
  'slider_opacity' ,
163
  array(
32
  )
33
  ));
34
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
+ $wp_customize->add_setting( 'slider',
37
+ array(
38
+ 'sanitize_callback' => 'hantus_repeater_sanitize',
39
+ 'default' => json_encode( array(
40
+
41
+ /*Repeater's first item*/
42
+ array("image_url" => CLEVERFOX_PLUGIN_URL.'inc/hantus/images/slider/slider.jpg' ,"link" => "#", "title" => "Welcome To Hantus Spa","subtitle" => "Beauty & Spa Wellness", "text" => "The Spa at Sun Valley is a serene oasis amid all the exciting activities our iconic valley has delivered for decades.", "text2" => "Make an Appoinment","id" => "customizer_repeater_00070" ),
43
+ ) )
44
+ )
45
+ );
46
+
47
+ $wp_customize->add_control(
48
+ new Hantus_Repeater( $wp_customize,
49
+ 'slider',
50
+ array(
51
+ 'label' => esc_html__('Slide','hantus-pro'),
52
+ 'section' => 'slider_setting',
53
+ 'add_field_label' => esc_html__( 'Add New Slider', 'hantus-pro' ),
54
+ 'item_name' => esc_html__( 'Slider', 'hantus-pro' ),
55
+ 'priority' => 2,
56
+
57
+ 'customizer_repeater_title_control' => true,
58
+ 'customizer_repeater_subtitle_control' => true,
59
+ 'customizer_repeater_text_control' => true,
60
+ 'customizer_repeater_text2_control'=> true,
61
+ 'customizer_repeater_link_control' => true,
62
+ 'customizer_repeater_image_control' => true,
63
+ )
64
+ )
65
+ );
66
+
67
+
68
+ //Pro feature
69
+ class Hantus_slider__section_upgrade extends WP_Customize_Control {
70
+ public function render_content() {
71
+ ?>
72
+ <p class="customizer_slider_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('More Slides Are Available in the Pro Version','hantus'); ?></p>
73
+ <?php
74
+ }
75
+ }
76
+
77
+ $wp_customize->add_setting( 'hantus_slider_upgrade_to_pro', array(
78
+ 'capability' => 'edit_theme_options',
79
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
80
+ ));
81
+ $wp_customize->add_control(
82
+ new Hantus_slider__section_upgrade(
83
+ $wp_customize,
84
+ 'hantus_slider_upgrade_to_pro',
85
+ array(
86
+ 'section' => 'slider_setting',
87
+ 'settings' => 'hantus_slider_upgrade_to_pro',
88
+ )
89
+ )
90
+ );
91
+
92
  //slider opacity
 
 
93
  $wp_customize->add_setting(
94
  'slider_opacity' ,
95
  array(
inc/hantus/features/section-testimonial.php CHANGED
@@ -80,7 +80,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
80
  array(
81
  'label' => esc_html__('Testimonial','hantus'),
82
  'section' => 'testimonial_setting',
83
- 'add_field_label' => esc_html__( 'Add New', 'hantus' ),
84
  'item_name' => esc_html__( 'Testimonial', 'hantus' ),
85
  'priority' => 1,
86
  'customizer_repeater_image_control' => true,
@@ -90,6 +90,31 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
90
  )
91
  )
92
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  // testimonial Background Section //
94
  // Background Image //
95
  $wp_customize->add_setting(
@@ -141,6 +166,7 @@ function hantus_testimonial_customize_register( $wp_customize ) {
141
  'icon' => 'info',
142
  'controls' => array(
143
  'testimonial_contents',
 
144
  ),
145
  ),
146
  'second' => array(
80
  array(
81
  'label' => esc_html__('Testimonial','hantus'),
82
  'section' => 'testimonial_setting',
83
+ 'add_field_label' => esc_html__( 'Add New Testimonial', 'hantus' ),
84
  'item_name' => esc_html__( 'Testimonial', 'hantus' ),
85
  'priority' => 1,
86
  'customizer_repeater_image_control' => true,
90
  )
91
  )
92
  );
93
+
94
+ //Pro feature
95
+ class hantus_testimonial__upgrade_to_pro extends WP_Customize_Control {
96
+ public function render_content() {
97
+ ?>
98
+ <p class="customizer_testimonial_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('More Testimonials Are Available in the Pro Version','hantus'); ?></p>
99
+ <?php
100
+ }
101
+ }
102
+
103
+ $wp_customize->add_setting( 'hantus_testimonial_upgrade_to_pro', array(
104
+ 'capability' => 'edit_theme_options',
105
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
106
+ ));
107
+ $wp_customize->add_control(
108
+ new hantus_testimonial__upgrade_to_pro(
109
+ $wp_customize,
110
+ 'hantus_testimonial_upgrade_to_pro',
111
+ array(
112
+ 'section' => 'testimonial_setting',
113
+ 'settings' => 'hantus_testimonial_upgrade_to_pro',
114
+ )
115
+ )
116
+ );
117
+
118
  // testimonial Background Section //
119
  // Background Image //
120
  $wp_customize->add_setting(
166
  'icon' => 'info',
167
  'controls' => array(
168
  'testimonial_contents',
169
+ 'hantus_testimonial_upgrade_to_pro'
170
  ),
171
  ),
172
  'second' => array(
inc/hantus/sections/section-service.php CHANGED
@@ -37,19 +37,13 @@ if ( ! function_exists( 'hantus_lite_service' ) ) :
37
  )
38
  );
39
  }
40
- $default_content = null;
41
- if ( current_user_can( 'edit_theme_options' ) ) {
42
- $default_content = hantus_get_service_default();
43
- }
44
  ?>
45
  <?php
46
- $hide_show_service= get_theme_mod('hide_show_service','1');
47
- $service_title= get_theme_mod('service_title','Our Services');
48
- $service_description= get_theme_mod('service_description','These are the services we provide, these makes us stand apart.');
49
- $service_contents= get_theme_mod('service_contents',$default_content);
50
- $service_display_num= get_theme_mod('service_display_num');
51
- $hide_show_service_excerpt= get_theme_mod('hide_show_service_excerpt');
52
- $service_sec_column= get_theme_mod('service_sec_column','3');
53
 
54
  ?>
55
  <?php if($hide_show_service == '1') {?>
@@ -59,7 +53,7 @@ if ( ! function_exists( 'hantus_lite_service' ) ) :
59
  <div class="col-lg-6 offset-lg-3 col-12 text-center">
60
  <div class="section-title service-section">
61
  <h2><?php echo $service_title; ?></h2>
62
- <hr style="background: url('<?php echo get_template_directory_uri(); ?>/images/section-icon.png') no-repeat center / cover;">
63
  <p><?php echo $service_description; ?></p>
64
  </div>
65
  </div>
@@ -80,7 +74,7 @@ if ( ! function_exists( 'hantus_lite_service' ) ) :
80
  $text = ! empty( $service_item->text ) ? apply_filters( 'hantus_translate_single_string', $service_item->text, 'service section' ) : '';
81
  $image = ! empty( $service_item->image_url ) ? apply_filters( 'hantus_translate_single_string', $service_item->image_url, 'service section' ) : '';
82
  ?>
83
- <div class="col-lg-<?php echo $service_sec_column; ?> col-md-6 col-sm-6 mb-5 mb-lg-0 serv-cont">
84
  <div class="service-box text-center">
85
  <figure>
86
  <?php if ( ! empty( $image ) ) : ?>
37
  )
38
  );
39
  }
 
 
 
 
40
  ?>
41
  <?php
42
+ $default_content = hantus_get_service_default();
43
+ $hide_show_service = get_theme_mod('hide_show_service','1');
44
+ $service_title = get_theme_mod('service_title','Our Services');
45
+ $service_description = get_theme_mod('service_description','These are the services we provide, these makes us stand apart.');
46
+ $service_contents = get_theme_mod('service_contents',$default_content);
 
 
47
 
48
  ?>
49
  <?php if($hide_show_service == '1') {?>
53
  <div class="col-lg-6 offset-lg-3 col-12 text-center">
54
  <div class="section-title service-section">
55
  <h2><?php echo $service_title; ?></h2>
56
+ <hr style="background: url('<?php echo get_template_directory_uri(); ?>/assets/images/section-icon.png') no-repeat center / cover;">
57
  <p><?php echo $service_description; ?></p>
58
  </div>
59
  </div>
74
  $text = ! empty( $service_item->text ) ? apply_filters( 'hantus_translate_single_string', $service_item->text, 'service section' ) : '';
75
  $image = ! empty( $service_item->image_url ) ? apply_filters( 'hantus_translate_single_string', $service_item->image_url, 'service section' ) : '';
76
  ?>
77
+ <div class="col-lg-3 col-md-6 col-sm-6 mb-5 mb-lg-0 serv-cont">
78
  <div class="service-box text-center">
79
  <figure>
80
  <?php if ( ! empty( $image ) ) : ?>
inc/hantus/sections/section-slider.php CHANGED
@@ -5,15 +5,18 @@
5
  if ( ! function_exists( 'hantus_lite_slider' ) ) :
6
 
7
  function hantus_lite_slider() {
8
-
9
- $slide_image = get_theme_mod('slide_image',CLEVERFOX_PLUGIN_URL .'inc/hantus/images/slider/slider.jpg');
10
- $slide_title = get_theme_mod('slide_title','Welcome To Hantus Spa');
11
- $slide_subtitle = get_theme_mod('slide_subtitle','Beauty & Spa Wellness');
12
- $slide_description = get_theme_mod('slide_description','The Spa at Sun Valley is a serene oasis amid all the exciting activities our iconic valley has delivered for decades.');
13
- $slide_btn_text = get_theme_mod('slide_btn_text','Make an Appoinment');
14
- $slide_btn_link = get_theme_mod('slide_btn_link','#');
15
- $slider_opacity = get_theme_mod('slider_opacity');
16
- $hide_show_slider = get_theme_mod('hide_show_slider','1');
 
 
 
17
 
18
  if($hide_show_slider == '1') {
19
  ?>
@@ -21,21 +24,54 @@ if ( ! function_exists( 'hantus_lite_slider' ) ) :
21
  <div class="row">
22
  <div class="col-md-12">
23
  <div class="header-slider">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  <div class="header-single-slider">
25
  <figure>
26
- <img src="<?php echo esc_url( $slide_image ); ?>" alt="">
 
 
27
  <figcaption>
28
  <div class="content" style="background: rgba(35, 48, 73,<?php echo $slider_opacity; ?>);">
29
  <div class="container inner-content text-left">
30
- <h3><?php echo esc_html( $slide_title ); ?></h3>
31
- <h1><?php echo esc_html( $slide_subtitle ); ?></h1>
32
- <p><?php echo esc_html( $slide_description ); ?></p>
33
- <a href="<?php echo esc_url( $slide_btn_link ); ?>" class="boxed-btn"><?php echo esc_html( $slide_btn_text ); ?></a>
 
 
 
 
 
 
 
 
 
 
 
34
  </div>
35
  </div>
36
  </figcaption>
37
  </figure>
38
  </div>
 
39
  </div>
40
  </div>
41
  </div>
5
  if ( ! function_exists( 'hantus_lite_slider' ) ) :
6
 
7
  function hantus_lite_slider() {
8
+ function hantus_get_slider_default() {
9
+ return apply_filters(
10
+ 'hantus_get_slider_default', json_encode(
11
+ array(
12
+ array("image_url" => CLEVERFOX_PLUGIN_URL.'inc/hantus/images/slider/slider.jpg' ,"link" => "#", "title" => "Welcome To Hantus Spa","subtitle" => "Beauty & Spa Wellness", "text" => "The Spa at Sun Valley is a serene oasis amid all the exciting activities our iconic valley has delivered for decades.", "text2" => "Make an Appoinment","id" => "customizer_repeater_00070" ),
13
+ ))
14
+ );
15
+ }
16
+ $default_content = hantus_get_slider_default();
17
+ $slider = get_theme_mod('slider',$default_content);
18
+ $slider_opacity = get_theme_mod('slider_opacity');
19
+ $hide_show_slider = get_theme_mod('hide_show_slider','1');
20
 
21
  if($hide_show_slider == '1') {
22
  ?>
24
  <div class="row">
25
  <div class="col-md-12">
26
  <div class="header-slider">
27
+ <?php
28
+
29
+ if ( ! empty( $slider ) ) {
30
+ $allowed_html = array(
31
+ 'br' => array(),
32
+ 'em' => array(),
33
+ 'strong' => array(),
34
+ 'b' => array(),
35
+ 'i' => array(),
36
+ );
37
+ $slider = json_decode( $slider );
38
+ foreach ( $slider as $slide_item ) {
39
+ $title = ! empty( $slide_item->title ) ? apply_filters( 'hantus_translate_single_string', $slide_item->title, 'slider section' ) : '';
40
+ $subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'hantus_translate_single_string', $slide_item->subtitle, 'slider section' ) : '';
41
+ $text = ! empty( $slide_item->text ) ? apply_filters( 'hantus_translate_single_string', $slide_item->text, 'slider section' ) : '';
42
+ $button = ! empty( $slide_item->text2) ? apply_filters( 'hantus_translate_single_string', $slide_item->text2,'Learn More' ) : '';
43
+ $link = ! empty( $slide_item->link ) ? apply_filters( 'hantus_translate_single_string', $slide_item->link, 'slider section' ) : '';
44
+ $image = ! empty( $slide_item->image_url ) ? apply_filters( 'hantus_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
45
+ ?>
46
  <div class="header-single-slider">
47
  <figure>
48
+ <?php if ( ! empty( $image ) ) : ?>
49
+ <img src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
50
+ <?php endif; ?>
51
  <figcaption>
52
  <div class="content" style="background: rgba(35, 48, 73,<?php echo $slider_opacity; ?>);">
53
  <div class="container inner-content text-left">
54
+ <?php if ( ! empty( $title ) ) : ?>
55
+ <h3><?php echo esc_attr( $title ); ?></h3>
56
+ <?php endif; ?>
57
+
58
+ <?php if ( ! empty( $subtitle ) ) : ?>
59
+ <h1><?php echo esc_attr( $subtitle ); ?></h1>
60
+ <?php endif; ?>
61
+
62
+ <?php if ( ! empty( $text ) ) : ?>
63
+ <p><?php echo esc_attr( $text ); ?></p>
64
+ <?php endif; ?>
65
+
66
+ <?php if ( ! empty( $button ) ) : ?>
67
+ <a href="<?php echo esc_url( $link ); ?>" class="boxed-btn"><?php echo esc_attr( $button ); ?></a>
68
+ <?php endif; ?>
69
  </div>
70
  </div>
71
  </figcaption>
72
  </figure>
73
  </div>
74
+ <?php }} ?>
75
  </div>
76
  </div>
77
  </div>
inc/hantus/sections/section-testimonial.php CHANGED
@@ -42,7 +42,7 @@
42
  ?>
43
  <?php if($hide_show_testimonial == '1') { ?>
44
  <?php if ( ! empty( $testimonial_background_setting ) ) { ?>
45
- <section id="testimonial" class="section-padding" style="background: url('<?php echo esc_url($testimonial_background_setting); ?>') no-repeat center scroll/ 100% 100% ">
46
  <?php }else{ ?>
47
  <section id="testimonial" class="section-padding" style="background:#f7f7f7;">
48
  <?php } ?>
42
  ?>
43
  <?php if($hide_show_testimonial == '1') { ?>
44
  <?php if ( ! empty( $testimonial_background_setting ) ) { ?>
45
+ <section id="testimonial" class="section-padding" style="background: url('<?php echo esc_url($testimonial_background_setting); ?>') no-repeat center / 100% 100%; ">
46
  <?php }else{ ?>
47
  <section id="testimonial" class="section-padding" style="background:#f7f7f7;">
48
  <?php } ?>
readme.txt CHANGED
@@ -38,6 +38,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
38
 
39
 
40
  == Changelog ==
 
 
 
41
  = 1.1.28 =
42
  * Readme Updated
43
  * Banner Changed
38
 
39
 
40
  == Changelog ==
41
+ = 1.1.29 =
42
+ * Hantus Theme Functionality Improved
43
+
44
  = 1.1.28 =
45
  * Readme Updated
46
  * Banner Changed