Clever Fox - Version 6.6

Version Description

  • Aravalli Theme Functionality Added
Download this release

Release Info

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

Code changes from version 6.5 to 6.6

Files changed (34) hide show
  1. clever-fox.php +5 -1
  2. inc/aravalli/aravalli.php +33 -0
  3. inc/aravalli/default-pages/home-page.php +24 -0
  4. inc/aravalli/default-pages/upload-media.php +32 -0
  5. inc/aravalli/default-widgets/default-widget.php +39 -0
  6. inc/aravalli/dynamic-style.php +64 -0
  7. inc/aravalli/extras.php +274 -0
  8. inc/aravalli/features/aravalli-amenities.php +325 -0
  9. inc/aravalli/features/aravalli-checkin.php +170 -0
  10. inc/aravalli/features/aravalli-features.php +260 -0
  11. inc/aravalli/features/aravalli-header.php +364 -0
  12. inc/aravalli/features/aravalli-room.php +259 -0
  13. inc/aravalli/features/aravalli-slider.php +123 -0
  14. inc/aravalli/features/aravalli-typography.php +265 -0
  15. inc/aravalli/images/amenities-bg.jpg +0 -0
  16. inc/aravalli/images/features/img-1.jpg +0 -0
  17. inc/aravalli/images/features/img-2.jpg +0 -0
  18. inc/aravalli/images/footer-logo.png +0 -0
  19. inc/aravalli/images/logo.png +0 -0
  20. inc/aravalli/images/rooms/img-1.jpg +0 -0
  21. inc/aravalli/images/rooms/img-2.jpg +0 -0
  22. inc/aravalli/images/rooms/img-3.jpg +0 -0
  23. inc/aravalli/images/slider/slider01.jpg +0 -0
  24. inc/aravalli/images/slider/slider02.jpg +0 -0
  25. inc/aravalli/images/slider/slider03.jpg +0 -0
  26. inc/aravalli/sections/above-header.php +63 -0
  27. inc/aravalli/sections/section-amenities.php +59 -0
  28. inc/aravalli/sections/section-checkin.php +13 -0
  29. inc/aravalli/sections/section-features.php +81 -0
  30. inc/aravalli/sections/section-packages.php +131 -0
  31. inc/aravalli/sections/section-room.php +81 -0
  32. inc/aravalli/sections/section-slider.php +57 -0
  33. inc/cleverfox-activator.php +6 -0
  34. readme.txt +4 -1
clever-fox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 40000+ trusted websites with us. Clever Fox contains all features which are required to create a complete website. See below free themes.
6
- Version: 6.5
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -96,6 +96,10 @@ function cleverfox_activate() {
96
  require_once('inc/axtria/axtria.php');
97
  }
98
 
 
 
 
 
99
  }
100
  add_action( 'init', 'cleverfox_activate' );
101
 
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 40000+ trusted websites with us. Clever Fox contains all features which are required to create a complete website. See below free themes.
6
+ Version: 6.6
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
96
  require_once('inc/axtria/axtria.php');
97
  }
98
 
99
+ if( 'Aravalli' == $theme->name){
100
+ require_once('inc/aravalli/aravalli.php');
101
+ }
102
+
103
  }
104
  add_action( 'init', 'cleverfox_activate' );
105
 
inc/aravalli/aravalli.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Aravalli
4
+ */
5
+
6
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/extras.php';
7
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/dynamic-style.php';
8
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/above-header.php';
9
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-header.php';
10
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-slider.php';
11
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-checkin.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-room.php';
13
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-amenities.php';
14
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-features.php';
15
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-typography.php';
16
+
17
+ if ( ! function_exists( 'cleverfox_aravalli_frontpage_sections' ) ) :
18
+ function cleverfox_aravalli_frontpage_sections() {
19
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/section-slider.php';
20
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/section-checkin.php';
21
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/section-room.php';
22
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/section-amenities.php';
23
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/section-features.php';
24
+ }
25
+ add_action( 'aravalli_sections', 'cleverfox_aravalli_frontpage_sections' );
26
+ endif;
27
+
28
+ // function cleverfox_aravalli_enqueue_scripts() {
29
+ // wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
30
+ // wp_enqueue_style('owl-carousel-min',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/owl.carousel.min.css');
31
+ // wp_enqueue_script( 'owl-carousel', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owl.carousel.min.js', array('jquery'), false, true);
32
+ // }
33
+ // add_action( 'wp_enqueue_scripts', 'cleverfox_aravalli_enqueue_scripts' );
inc/aravalli/default-pages/home-page.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //post status and options
3
+ $post = array(
4
+ 'comment_status' => 'closed',
5
+ 'ping_status' => 'closed' ,
6
+ 'post_author' => 1,
7
+ 'post_date' => date('Y-m-d H:i:s'),
8
+ 'post_name' => 'Home',
9
+ 'post_status' => 'publish' ,
10
+ 'post_title' => 'Home',
11
+ 'post_type' => 'page',
12
+ );
13
+ //insert page and save the id
14
+ $newvalue = wp_insert_post( $post, false );
15
+ if ( $newvalue && ! is_wp_error( $newvalue ) ){
16
+ update_post_meta( $newvalue, '_wp_page_template', 'templates/template-homepage.php' );
17
+
18
+ // Use a static front page
19
+ $page = get_page_by_title('Home');
20
+ update_option( 'show_on_front', 'page' );
21
+ update_option( 'page_on_front', $page->ID );
22
+
23
+ }
24
+ ?>
inc/aravalli/default-pages/upload-media.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $file = CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/logo.png';
3
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/aravalli/images';
4
+
5
+ $images = array(
6
+ $ImagePath. '/logo.png',
7
+ );
8
+ $parent_post_id = null;
9
+ foreach($images as $name) {
10
+ $filename = basename($name);
11
+ $upload_file = wp_upload_bits($filename, null, file_get_contents($name));
12
+ if (!$upload_file['error']) {
13
+ $wp_filetype = wp_check_filetype($filename, null );
14
+ $attachment = array(
15
+ 'post_mime_type' => $wp_filetype['type'],
16
+ 'post_parent' => $parent_post_id,
17
+ 'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
18
+ 'post_excerpt' => 'aravalli caption',
19
+ 'post_status' => 'inherit'
20
+ );
21
+ $ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
22
+
23
+ if (!is_wp_error($attachment_id)) {
24
+ require_once(ABSPATH . "wp-admin" . '/includes/image.php');
25
+ $attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
26
+ wp_update_attachment_metadata( $attachment_id, $attachment_data );
27
+ }
28
+ }
29
+
30
+ }
31
+
32
+ update_option( 'aravalli_media_id', $ImageId );
inc/aravalli/default-widgets/default-widget.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $activate = array(
3
+ 'aravalli-sidebar-primary' => array(
4
+ 'search-1',
5
+ 'recent-posts-1',
6
+ 'archives-1',
7
+ ),
8
+ 'aravalli-footer-widget-area' => array(
9
+ 'text-1',
10
+ 'categories-1',
11
+ 'archives-1',
12
+ 'search-1',
13
+ )
14
+ );
15
+ /* the default titles will appear */
16
+ update_option('widget_text', array(
17
+ 1 => array('title' => 'About Aravalli',
18
+ 'text'=>'<div class="footer-logo"><img src="'.CLEVERFOX_PLUGIN_URL.'inc/aravalli/images/footer-logo.png" alt=""></div>
19
+ <p>There are many variations of dummy passages of Lorem Ipsum a available, but the majority have suffered that is alteration in some that form injected humour or randomised.</p>
20
+ '),
21
+ 2 => array('title' => 'Recent Posts'),
22
+ 3 => array('title' => 'Categories'),
23
+ ));
24
+ update_option('widget_categories', array(
25
+ 1 => array('title' => 'Categories'),
26
+ 2 => array('title' => 'Categories')));
27
+
28
+ update_option('widget_archives', array(
29
+ 1 => array('title' => 'Archives'),
30
+ 2 => array('title' => 'Archives')));
31
+
32
+ update_option('widget_search', array(
33
+ 1 => array('title' => 'Search'),
34
+ 2 => array('title' => 'Search')));
35
+
36
+ update_option('sidebars_widgets', $activate);
37
+ $MediaId = get_option('aravalli_media_id');
38
+ set_theme_mod( 'custom_logo', $MediaId[0] );
39
+ ?>
inc/aravalli/dynamic-style.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( ! function_exists( 'cleverfox_aravalli_dynamic_style' ) ):
3
+ function cleverfox_aravalli_dynamic_style() {
4
+
5
+ $output_css = '';
6
+
7
+ /**
8
+ * Logo Width
9
+ */
10
+ $logo_width = get_theme_mod('logo_width','140');
11
+ if($logo_width !== '') {
12
+ $output_css .=".logo img, .mobile-logo img {
13
+ max-width: " .esc_attr($logo_width). "px;
14
+ }\n";
15
+ }
16
+
17
+ /**
18
+ * Slider
19
+ */
20
+ $slide_overlay_color = get_theme_mod('slide_overlay_color','#000000');
21
+ $slider_opacity = get_theme_mod('slider_opacity','0.5');
22
+ list($r, $g, $b) = sscanf($slide_overlay_color, "#%02x%02x%02x");
23
+ $output_css .=".theme-slider {
24
+ background: rgba($r, $g, $b, $slider_opacity);
25
+ }\n";
26
+
27
+
28
+
29
+ /**
30
+ * Typography Body
31
+ */
32
+ $aravalli_body_text_transform = get_theme_mod('aravalli_body_text_transform','inherit');
33
+ $aravalli_body_font_style = get_theme_mod('aravalli_body_font_style','inherit');
34
+ $aravalli_body_font_size = get_theme_mod('aravalli_body_font_size','15');
35
+ $aravalli_body_line_height = get_theme_mod('aravalli_body_line_height','1.5');
36
+
37
+ $output_css .=" body{
38
+ font-size: " .esc_attr($aravalli_body_font_size). "px;
39
+ line-height: " .esc_attr($aravalli_body_line_height). ";
40
+ text-transform: " .esc_attr($aravalli_body_text_transform). ";
41
+ font-style: " .esc_attr($aravalli_body_font_style). ";
42
+ }\n";
43
+
44
+ /**
45
+ * Typography Heading
46
+ */
47
+ for ( $i = 1; $i <= 6; $i++ ) {
48
+ $aravalli_heading_text_transform = get_theme_mod('aravalli_h' . $i . '_text_transform','inherit');
49
+ $aravalli_heading_font_style = get_theme_mod('aravalli_h' . $i . '_font_style','inherit');
50
+ $aravalli_heading_font_size = get_theme_mod('aravalli_h' . $i . '_font_size');
51
+ $aravalli_heading_line_height = get_theme_mod('aravalli_h' . $i . '_line_height');
52
+
53
+ $output_css .=" h" . $i . "{
54
+ font-size: " .esc_attr($aravalli_heading_font_size). "px;
55
+ line-height: " .esc_attr($aravalli_heading_line_height). ";
56
+ text-transform: " .esc_attr($aravalli_heading_text_transform). ";
57
+ font-style: " .esc_attr($aravalli_heading_font_style). ";
58
+ }\n";
59
+ }
60
+
61
+ wp_add_inline_style( 'aravalli-style', $output_css );
62
+ }
63
+ endif;
64
+ add_action( 'wp_enqueue_scripts', 'cleverfox_aravalli_dynamic_style' );
inc/aravalli/extras.php ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ *
4
+ * Social Icon
5
+ */
6
+ function aravalli_get_social_icon_default() {
7
+ return apply_filters(
8
+ 'aravalli_get_social_icon_default', json_encode(
9
+ array(
10
+ array(
11
+ 'icon_value' => esc_html__( 'fa-facebook', 'clever-fox' ),
12
+ 'link' => esc_html__( '#', 'clever-fox' ),
13
+ 'id' => 'customizer_repeater_header_social_001',
14
+ ),
15
+ array(
16
+ 'icon_value' => esc_html__( 'fa-google-plus', 'clever-fox' ),
17
+ 'link' => esc_html__( '#', 'clever-fox' ),
18
+ 'id' => 'customizer_repeater_header_social_002',
19
+ ),
20
+ array(
21
+ 'icon_value' => esc_html__( 'fa-twitter', 'clever-fox' ),
22
+ 'link' => esc_html__( '#', 'clever-fox' ),
23
+ 'id' => 'customizer_repeater_header_social_003',
24
+ ),
25
+ array(
26
+ 'icon_value' => esc_html__( 'fa-linkedin', 'clever-fox' ),
27
+ 'link' => esc_html__( '#', 'clever-fox' ),
28
+ 'id' => 'customizer_repeater_header_social_004',
29
+ ),
30
+ )
31
+ )
32
+ );
33
+ }
34
+
35
+ /*
36
+ *
37
+ * Slider Default
38
+ */
39
+ function aravalli_get_slider_default() {
40
+ return apply_filters(
41
+ 'aravalli_get_slider_default', json_encode(
42
+ array(
43
+ array(
44
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/slider/slider01.jpg',
45
+ 'title' => esc_html__( 'Book Your Room Now', 'clever-fox' ),
46
+ 'text' => esc_html__( "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when.", 'clever-fox' ),
47
+ 'text2' => esc_html__( 'Book Now', 'clever-fox' ),
48
+ 'link' => esc_html__( '#', 'clever-fox' ),
49
+ "slide_align" => "left",
50
+ 'id' => 'customizer_repeater_slider_001',
51
+ ),
52
+ array(
53
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/slider/slider02.jpg',
54
+ 'title' => esc_html__( 'We Are Providing', 'clever-fox' ),
55
+ 'text' => esc_html__( "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when.", 'clever-fox' ),
56
+ 'text2' => esc_html__( 'Book Now', 'clever-fox' ),
57
+ 'link' => esc_html__( '#', 'clever-fox' ),
58
+ "slide_align" => "center",
59
+ 'id' => 'customizer_repeater_slider_002',
60
+ ),
61
+ array(
62
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/slider/slider03.jpg',
63
+ 'title' => esc_html__( 'In Aravalli', 'clever-fox' ),
64
+ 'text' => esc_html__( "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when.", 'clever-fox' ),
65
+ 'text2' => esc_html__( 'Book Now', 'clever-fox' ),
66
+ 'link' => esc_html__( '#', 'clever-fox' ),
67
+ "slide_align" => "right",
68
+ 'id' => 'customizer_repeater_slider_003',
69
+
70
+ ),
71
+ )
72
+ )
73
+ );
74
+ }
75
+
76
+ /*
77
+ *
78
+ * Features Default
79
+ */
80
+ function aravalli_get_features_default() {
81
+ return apply_filters(
82
+ 'aravalli_get_features_default', json_encode(
83
+ array(
84
+ array(
85
+ 'icon_value' => 'fa-cutlery',
86
+ 'title' => esc_html__( 'Restaurant', 'clever-fox' ),
87
+ 'text' => esc_html__( 'It is a long established fact that a reader will be distracted by the readable content of a page. ', 'clever-fox' ),
88
+ 'text2' => esc_html__( 'Book Now ', 'clever-fox' ),
89
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/features/img-1.jpg',
90
+ 'id' => 'customizer_repeater_features_001',
91
+
92
+ ),
93
+ array(
94
+ 'icon_value' => 'fa-user',
95
+ 'title' => esc_html__( 'Wellness Spa', 'clever-fox' ),
96
+ 'text' => esc_html__( 'It is a long established fact that a reader will be distracted by the readable content of a page. ', 'clever-fox' ),
97
+ 'text2' => esc_html__( 'Book Now ', 'clever-fox' ),
98
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/features/img-2.jpg',
99
+ 'id' => 'customizer_repeater_features_002',
100
+ ),
101
+ array(
102
+ 'icon_value' => 'fa-bullseye',
103
+ 'title' => esc_html__( 'Meditation', 'clever-fox' ),
104
+ 'text' => esc_html__( 'It is a long established fact that a reader will be distracted by the readable content of a page. ', 'clever-fox' ),
105
+ 'text2' => esc_html__( 'Book Now ', 'clever-fox' ),
106
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/features/img-1.jpg',
107
+ 'id' => 'customizer_repeater_features_003',
108
+ ),
109
+ array(
110
+ 'icon_value' => 'fa-users',
111
+ 'title' => esc_html__( 'Banquet Hall', 'clever-fox' ),
112
+ 'text' => esc_html__( 'It is a long established fact that a reader will be distracted by the readable content of a page. ', 'clever-fox' ),
113
+ 'text2' => esc_html__( 'Book Now ', 'clever-fox' ),
114
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/features/img-2.jpg',
115
+ 'id' => 'customizer_repeater_features_004',
116
+ ),
117
+ )
118
+ )
119
+ );
120
+ }
121
+
122
+
123
+ /*
124
+ *
125
+ * Amenities Default
126
+ */
127
+ function aravalli_get_amenities_default() {
128
+ return apply_filters(
129
+ 'aravalli_get_amenities_default', json_encode(
130
+ array(
131
+ array(
132
+ 'title' => esc_html__( 'Free Parking', 'clever-fox' ),
133
+ 'icon_value' => 'fa-car',
134
+ 'id' => 'customizer_repeater_amenities_001',
135
+ ),
136
+ array(
137
+ 'title' => esc_html__( 'Wi - Internet', 'clever-fox' ),
138
+ 'icon_value' => 'fa-wifi',
139
+ 'id' => 'customizer_repeater_amenities_002',
140
+ ),
141
+ array(
142
+ 'title' => esc_html__( '24/7 Laundry Searvice', 'clever-fox' ),
143
+ 'icon_value' => 'fa-clock-o',
144
+ 'id' => 'customizer_repeater_amenities_003',
145
+ ),
146
+ array(
147
+ 'title' => esc_html__( 'Gym & Beauty Care', 'clever-fox' ),
148
+ 'icon_value' => 'fa-blind',
149
+ 'id' => 'customizer_repeater_amenities_004',
150
+ ),
151
+ array(
152
+ 'title' => esc_html__( '24 Hour- In Room Dining', 'clever-fox' ),
153
+ 'icon_value' => 'fa-clock-o',
154
+ 'id' => 'customizer_repeater_amenities_005',
155
+ ),
156
+ array(
157
+ 'title' => esc_html__( 'Central Air Condition', 'clever-fox' ),
158
+ 'icon_value' => 'fa-hotel',
159
+ 'id' => 'customizer_repeater_amenities_006',
160
+ ),
161
+ array(
162
+ 'title' => esc_html__( 'Luxery Swimming Pool', 'clever-fox' ),
163
+ 'icon_value' => 'fa-bath',
164
+ 'id' => 'customizer_repeater_amenities_007',
165
+ ),
166
+ array(
167
+ 'title' => esc_html__( 'Airport & Local Transfers', 'clever-fox' ),
168
+ 'icon_value' => 'fa-taxi',
169
+ 'id' => 'customizer_repeater_amenities_008',
170
+ ),
171
+ )
172
+ )
173
+ );
174
+ }
175
+
176
+
177
+
178
+ /*
179
+ *
180
+ * Room Default
181
+ */
182
+ function aravalli_get_room_default() {
183
+ return apply_filters(
184
+ 'aravalli_get_room_default', json_encode(
185
+ array(
186
+ array(
187
+ 'title' => esc_html__( '$1200/Night', 'clever-fox' ),
188
+ 'subtitle' => esc_html__( 'Family Room', 'clever-fox' ),
189
+ 'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the print and industry Lorem Ipsum', 'clever-fox' ),
190
+ 'text2' => esc_html__( 'Book Now ', 'clever-fox' ),
191
+ 'button' => esc_html__( '10% OFF', 'clever-fox' ),
192
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/rooms/img-1.jpg',
193
+ 'id' => 'customizer_repeater_room_001',
194
+
195
+ ),
196
+ array(
197
+ 'title' => esc_html__( '$900/Night', 'clever-fox' ),
198
+ 'subtitle' => esc_html__( 'Executive Room', 'clever-fox' ),
199
+ 'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the print and industry Lorem Ipsum', 'clever-fox' ),
200
+ 'button' => esc_html__( '20% OFF', 'clever-fox' ),
201
+ 'text2' => esc_html__( 'Book Now ', 'clever-fox' ),
202
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/rooms/img-2.jpg',
203
+ 'id' => 'customizer_repeater_room_002',
204
+ ),
205
+ array(
206
+ 'title' => esc_html__( '$2000/Night', 'clever-fox' ),
207
+ 'subtitle' => esc_html__( 'Banquet Hall', 'clever-fox' ),
208
+ 'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the print and industry Lorem Ipsum', 'clever-fox' ),
209
+ 'button' => esc_html__( '30% OFF', 'clever-fox' ),
210
+ 'text2' => esc_html__( 'Book Now ', 'clever-fox' ),
211
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/rooms/img-3.jpg',
212
+ 'id' => 'customizer_repeater_room_003',
213
+ )
214
+ )
215
+ )
216
+ );
217
+ }
218
+
219
+
220
+ if ( ! function_exists( 'cleverfox_aravalli_lite_checkin' ) ) :
221
+ function cleverfox_aravalli_lite_checkin() {
222
+ $checkin_title = get_theme_mod('checkin_title','Find a Room');
223
+ $checkin_desc = get_theme_mod('checkin_desc','When you want to be our guest ?');
224
+ $checkin_shortcode = get_theme_mod('checkin_shortcode');
225
+ ?>
226
+ <div id="checkin-section" class="checkin wow fadeInUp home-checkin">
227
+ <div class="container">
228
+ <div class="checkin-wrapper">
229
+ <div class="row">
230
+ <div class="col-lg-3">
231
+ <?php if(!empty($checkin_title) || !empty($checkin_desc)): ?>
232
+ <div class="checkin-text">
233
+ <h3><?php echo wp_kses_post($checkin_title); ?></h3>
234
+ <p><?php echo wp_kses_post($checkin_desc); ?></p>
235
+ </div>
236
+ <?php endif; ?>
237
+ </div>
238
+ <div class="col-lg-9 my-auto">
239
+ <?php if(!empty($checkin_shortcode) ): echo do_shortcode($checkin_shortcode); else:?>
240
+ <form class="checkin-form form-icons">
241
+ <div class="form-row">
242
+ <div class="form-group form-caret">
243
+ <select id="inputState1" class="form-control">
244
+ <option selected>Room Category</option>
245
+ <option>...</option>
246
+ </select>
247
+ </div>
248
+ <div class="form-group form-caret">
249
+ <select id="inputState2" class="form-control">
250
+ <option selected>Room Features</option>
251
+ <option>...</option>
252
+ </select>
253
+ </div>
254
+ <div class="form-group form-caret">
255
+ <select id="inputState3" class="form-control">
256
+ <option selected>Adult</option>
257
+ <option>...</option>
258
+ </select>
259
+ </div>
260
+ <div class="form-group form-btn">
261
+ <button class="btn-shape btn-line-white">Book Now</button>
262
+ </div>
263
+ </div>
264
+ </form>
265
+ <?php endif; ?>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ </div>
270
+ </div>
271
+ <?php
272
+ }
273
+ add_action('cleverfox_aravalli_lite_checkin','cleverfox_aravalli_lite_checkin');
274
+ endif;
inc/aravalli/features/aravalli-amenities.php ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function aravalli_amenties_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Amenities Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'amenities_setting', array(
9
+ 'title' => esc_html__( 'Amenities Section', 'clever-fox' ),
10
+ 'priority' => 3,
11
+ 'panel' => 'aravalli_frontpage_sections',
12
+ )
13
+ );
14
+
15
+
16
+ // Setting Head //
17
+ $wp_customize->add_setting(
18
+ 'amenities_setting_head'
19
+ ,array(
20
+ 'capability' => 'edit_theme_options',
21
+ 'sanitize_callback' => 'aravalli_sanitize_text',
22
+ 'priority' => 1,
23
+ )
24
+ );
25
+
26
+ $wp_customize->add_control(
27
+ 'amenities_setting_head',
28
+ array(
29
+ 'type' => 'hidden',
30
+ 'label' => __('Setting','clever-fox'),
31
+ 'section' => 'amenities_setting',
32
+ )
33
+ );
34
+
35
+
36
+ // Hide/ Show //
37
+ $wp_customize->add_setting(
38
+ 'hs_pg_about_amenities' ,
39
+ array(
40
+ 'default' => '1',
41
+ 'sanitize_callback' => 'aravalli_sanitize_checkbox',
42
+ 'capability' => 'edit_theme_options',
43
+ 'priority' => 2,
44
+ )
45
+ );
46
+
47
+ $wp_customize->add_control(
48
+ 'hs_pg_about_amenities',
49
+ array(
50
+ 'label' => esc_html__( 'Hide / Show', 'clever-fox' ),
51
+ 'section' => 'amenities_setting',
52
+ 'type' => 'checkbox'
53
+ )
54
+ );
55
+
56
+ // Settings
57
+ $wp_customize->add_setting(
58
+ 'about_pg_why_amenities'
59
+ ,array(
60
+ 'capability' => 'edit_theme_options',
61
+ 'sanitize_callback' => 'aravalli_sanitize_text',
62
+ 'priority' => 31,
63
+ )
64
+ );
65
+
66
+ $wp_customize->add_control(
67
+ 'about_pg_why_amenities',
68
+ array(
69
+ 'type' => 'hidden',
70
+ 'label' => __('header','clever-fox'),
71
+ 'section' => 'amenities_setting',
72
+ )
73
+ );
74
+
75
+ // Title //
76
+ $wp_customize->add_setting(
77
+ 'pg_about_amenities_ttl',
78
+ array(
79
+ 'default' => __('Hotel','clever-fox'),
80
+ 'capability' => 'edit_theme_options',
81
+ 'sanitize_callback' => 'aravalli_sanitize_html',
82
+ 'transport' => $selective_refresh,
83
+ 'priority' => 33,
84
+ )
85
+ );
86
+
87
+ $wp_customize->add_control(
88
+ 'pg_about_amenities_ttl',
89
+ array(
90
+ 'label' => __('Title','clever-fox'),
91
+ 'section' => 'amenities_setting',
92
+ 'type' => 'text',
93
+ )
94
+ );
95
+
96
+
97
+ // Subtitle //
98
+ $wp_customize->add_setting(
99
+ 'pg_about_amenities_sub',
100
+ array(
101
+ 'default' => __('Amenities','clever-fox'),
102
+ 'capability' => 'edit_theme_options',
103
+ 'sanitize_callback' => 'aravalli_sanitize_html',
104
+ 'transport' => $selective_refresh,
105
+ 'priority' => 34,
106
+ )
107
+ );
108
+
109
+ $wp_customize->add_control(
110
+ 'pg_about_amenities_sub',
111
+ array(
112
+ 'label' => __('Subtitle','clever-fox'),
113
+ 'section' => 'amenities_setting',
114
+ 'type' => 'text',
115
+ )
116
+ );
117
+
118
+ // Description //
119
+ $wp_customize->add_setting(
120
+ 'pg_about_amenities_desc',
121
+ array(
122
+ 'default' => __("Lorem Ipsum is simply dummy text of the printing and typesetting industryLorem Ipsum has been the industry's standard dummy text ever since the 1500s.of type and scrambled it to make a type specimen book.",'clever-fox'),
123
+ 'capability' => 'edit_theme_options',
124
+ 'sanitize_callback' => 'aravalli_sanitize_html',
125
+ 'transport' => $selective_refresh,
126
+ 'priority' => 35,
127
+ )
128
+ );
129
+
130
+ $wp_customize->add_control(
131
+ 'pg_about_amenities_desc',
132
+ array(
133
+ 'label' => __('Description','clever-fox'),
134
+ 'section' => 'amenities_setting',
135
+ 'type' => 'textarea',
136
+ )
137
+ );
138
+
139
+
140
+ // Content Head //
141
+ $wp_customize->add_setting(
142
+ 'amenities_content_head'
143
+ ,array(
144
+ 'capability' => 'edit_theme_options',
145
+ 'sanitize_callback' => 'aravalli_sanitize_text',
146
+ 'priority' => 36,
147
+ )
148
+ );
149
+
150
+ $wp_customize->add_control(
151
+ 'amenities_content_head',
152
+ array(
153
+ 'type' => 'hidden',
154
+ 'label' => __('Content','clever-fox'),
155
+ 'section' => 'amenities_setting',
156
+ )
157
+ );
158
+
159
+ /**
160
+ * Customizer Repeater for add amenities
161
+ */
162
+
163
+ $wp_customize->add_setting( 'pg_about_amenities_content',
164
+ array(
165
+ 'sanitize_callback' => 'aravalli_repeater_sanitize',
166
+ 'priority' => 36,
167
+ 'transport' => $selective_refresh,
168
+ 'default' => aravalli_get_amenities_default()
169
+ )
170
+ );
171
+
172
+ $wp_customize->add_control(
173
+ new Aravalli_Repeater( $wp_customize,
174
+ 'pg_about_amenities_content',
175
+ array(
176
+ 'label' => esc_html__('Amenities','clever-fox'),
177
+ 'section' => 'amenities_setting',
178
+ 'add_field_label' => esc_html__( 'Add New Amenities', 'clever-fox' ),
179
+ 'item_name' => esc_html__( 'Amenities', 'clever-fox' ),
180
+ 'customizer_repeater_icon_control' => true,
181
+ 'customizer_repeater_title_control' => true,
182
+ )
183
+ )
184
+ );
185
+
186
+ //Pro feature
187
+ class Aravalli_amenities__section_upgrade extends WP_Customize_Control {
188
+ public function render_content() {
189
+ ?>
190
+ <a class="customizer_amenities_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
191
+
192
+ <?php
193
+ }
194
+ }
195
+
196
+ $wp_customize->add_setting( 'aravalli_amenities_upgrade_to_pro', array(
197
+ 'capability' => 'edit_theme_options',
198
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
199
+ 'priority' => 5,
200
+ ));
201
+ $wp_customize->add_control(
202
+ new Aravalli_amenities__section_upgrade(
203
+ $wp_customize,
204
+ 'aravalli_amenities_upgrade_to_pro',
205
+ array(
206
+ 'section' => 'amenities_setting',
207
+ )
208
+ )
209
+ );
210
+
211
+
212
+ // BG Head //
213
+ $wp_customize->add_setting(
214
+ 'amenities_bg_head'
215
+ ,array(
216
+ 'capability' => 'edit_theme_options',
217
+ 'sanitize_callback' => 'aravalli_sanitize_text',
218
+ 'priority' => 37,
219
+ )
220
+ );
221
+
222
+ $wp_customize->add_control(
223
+ 'amenities_bg_head',
224
+ array(
225
+ 'type' => 'hidden',
226
+ 'label' => __('Background','clever-fox'),
227
+ 'section' => 'amenities_setting',
228
+ )
229
+ );
230
+
231
+ // Background Image //
232
+ $wp_customize->add_setting(
233
+ 'pg_about_amenities_bg_img' ,
234
+ array(
235
+ 'default' => esc_url(CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/amenities-bg.jpg'),
236
+ 'capability' => 'edit_theme_options',
237
+ 'sanitize_callback' => 'aravalli_sanitize_url',
238
+ 'priority' => 37,
239
+ )
240
+ );
241
+
242
+ $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'pg_about_amenities_bg_img' ,
243
+ array(
244
+ 'label' => esc_html__( 'Background Image', 'clever-fox'),
245
+ 'section' => 'amenities_setting',
246
+ )
247
+ ));
248
+
249
+ // Background Attachment //
250
+ $wp_customize->add_setting(
251
+ 'pg_about_amenities_back_attach' ,
252
+ array(
253
+ 'default' => 'scroll',
254
+ 'capability' => 'edit_theme_options',
255
+ 'sanitize_callback' => 'aravalli_sanitize_select',
256
+ 'priority' => 38,
257
+ )
258
+ );
259
+
260
+ $wp_customize->add_control(
261
+ 'pg_about_amenities_back_attach' ,
262
+ array(
263
+ 'label' => __( 'Background Attachment', 'clever-fox' ),
264
+ 'section' => 'amenities_setting',
265
+ 'type' => 'select',
266
+ 'choices' =>
267
+ array(
268
+ 'inherit' => __( 'Inherit', 'clever-fox' ),
269
+ 'scroll' => __( 'Scroll', 'clever-fox' ),
270
+ 'fixed' => __( 'Fixed', 'clever-fox' )
271
+ )
272
+ )
273
+ );
274
+
275
+ }
276
+
277
+ add_action( 'customize_register', 'aravalli_amenties_setting' );
278
+
279
+ // Amenties selective refresh
280
+ function aravalli_amenties_section_partials( $wp_customize ){
281
+ // pg_about_amenities_ttl
282
+ $wp_customize->selective_refresh->add_partial( 'pg_about_amenities_ttl', array(
283
+ 'selector' => '.amenities .heading-default h6',
284
+ 'settings' => 'pg_about_amenities_ttl',
285
+ 'render_callback' => 'aravalli_pg_about_amenities_ttl_render_callback',
286
+ ) );
287
+
288
+ // pg_about_amenities_sub
289
+ $wp_customize->selective_refresh->add_partial( 'pg_about_amenities_sub', array(
290
+ 'selector' => '.amenities .heading-default h3',
291
+ 'settings' => 'pg_about_amenities_sub',
292
+ 'render_callback' => 'aravalli_pg_about_amenities_sub_render_callback',
293
+ ) );
294
+
295
+ // pg_about_amenities_desc
296
+ $wp_customize->selective_refresh->add_partial( 'pg_about_amenities_desc', array(
297
+ 'selector' => '.amenities .heading-default p',
298
+ 'settings' => 'pg_about_amenities_desc',
299
+ 'render_callback' => 'aravalli_pg_about_amenities_desc_render_callback',
300
+ ) );
301
+
302
+ // pg_about_amenities_content
303
+ $wp_customize->selective_refresh->add_partial( 'pg_about_amenities_content', array(
304
+ 'selector' => '.amenities .amenities-content',
305
+ ) );
306
+
307
+ }
308
+
309
+ add_action( 'customize_register', 'aravalli_amenties_section_partials' );
310
+
311
+ // pg_about_amenities_ttl
312
+ function aravalli_pg_about_amenities_ttl_render_callback() {
313
+ return get_theme_mod( 'pg_about_amenities_ttl' );
314
+ }
315
+
316
+ // pg_about_amenities_sub
317
+ function aravalli_pg_about_amenities_sub_render_callback() {
318
+ return get_theme_mod( 'pg_about_amenities_sub' );
319
+ }
320
+
321
+
322
+ // pg_about_amenities_desc
323
+ function aravalli_pg_about_amenities_desc_render_callback() {
324
+ return get_theme_mod( 'pg_about_amenities_desc' );
325
+ }
inc/aravalli/features/aravalli-checkin.php ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function aravalli_checkin_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Checkin Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'checkin_setting', array(
9
+ 'title' => esc_html__( 'Checkin Section', 'clever-fox' ),
10
+ 'priority' => 2,
11
+ 'panel' => 'aravalli_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Setting Head //
16
+ $wp_customize->add_setting(
17
+ 'checkin_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'aravalli_sanitize_text',
21
+ 'priority' => 1,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'checkin_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','clever-fox'),
30
+ 'section' => 'checkin_setting',
31
+ )
32
+ );
33
+
34
+ // Hide Show //
35
+ $wp_customize->add_setting(
36
+ 'checkin_hs'
37
+ ,array(
38
+ 'default' => '1',
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'aravalli_sanitize_checkbox',
41
+ 'priority' => 1,
42
+ )
43
+ );
44
+
45
+ $wp_customize->add_control(
46
+ 'checkin_hs',
47
+ array(
48
+ 'type' => 'checkbox',
49
+ 'label' => __('Hide / Show','clever-fox'),
50
+ 'section' => 'checkin_setting',
51
+ )
52
+ );
53
+
54
+ // Checkin Content Section //
55
+ $wp_customize->add_setting(
56
+ 'checkin_contents'
57
+ ,array(
58
+ 'capability' => 'edit_theme_options',
59
+ 'sanitize_callback' => 'aravalli_sanitize_text',
60
+ 'priority' => 3,
61
+ )
62
+ );
63
+
64
+ $wp_customize->add_control(
65
+ 'checkin_contents',
66
+ array(
67
+ 'type' => 'hidden',
68
+ 'label' => __('Content','clever-fox'),
69
+ 'section' => 'checkin_setting',
70
+ )
71
+ );
72
+
73
+
74
+ // Title //
75
+ $wp_customize->add_setting(
76
+ 'checkin_title',
77
+ array(
78
+ 'default' => __('Find a Room','clever-fox'),
79
+ 'capability' => 'edit_theme_options',
80
+ 'sanitize_callback' => 'aravalli_sanitize_html',
81
+ 'transport' => $selective_refresh,
82
+ 'priority' => 4,
83
+ )
84
+ );
85
+
86
+ $wp_customize->add_control(
87
+ 'checkin_title',
88
+ array(
89
+ 'label' => __('Title','clever-fox'),
90
+ 'section' => 'checkin_setting',
91
+ 'type' => 'text',
92
+ )
93
+ );
94
+
95
+ // Description //
96
+ $wp_customize->add_setting(
97
+ 'checkin_desc',
98
+ array(
99
+ 'default' => __('When you want to be our guest ?','clever-fox'),
100
+ 'capability' => 'edit_theme_options',
101
+ 'sanitize_callback' => 'aravalli_sanitize_html',
102
+ 'transport' => $selective_refresh,
103
+ 'priority' => 6,
104
+ )
105
+ );
106
+
107
+ $wp_customize->add_control(
108
+ 'checkin_desc',
109
+ array(
110
+ 'label' => __('Description','clever-fox'),
111
+ 'section' => 'checkin_setting',
112
+ 'type' => 'textarea',
113
+ )
114
+ );
115
+
116
+
117
+ // shortcode //
118
+ $wp_customize->add_setting(
119
+ 'checkin_shortcode',
120
+ array(
121
+ 'capability' => 'edit_theme_options',
122
+ 'sanitize_callback' => 'aravalli_sanitize_html',
123
+ 'priority' => 6,
124
+ )
125
+ );
126
+
127
+ $wp_customize->add_control(
128
+ 'checkin_shortcode',
129
+ array(
130
+ 'label' => __('Shortcode','clever-fox'),
131
+ 'section' => 'checkin_setting',
132
+ 'type' => 'textarea',
133
+ )
134
+ );
135
+
136
+ }
137
+
138
+ add_action( 'customize_register', 'aravalli_checkin_setting' );
139
+
140
+ // Checkin selective refresh
141
+ function aravalli_checkin_section_partials( $wp_customize ){
142
+
143
+ // checkin_title
144
+ $wp_customize->selective_refresh->add_partial( 'checkin_title', array(
145
+ 'selector' => '.home-checkin .checkin-text h3',
146
+ 'settings' => 'checkin_title',
147
+ 'render_callback' => 'aravalli_checkin_title_render_callback',
148
+
149
+ ) );
150
+
151
+ // checkin_desc
152
+ $wp_customize->selective_refresh->add_partial( 'checkin_desc', array(
153
+ 'selector' => '.home-checkin .checkin-text p',
154
+ 'settings' => 'checkin_desc',
155
+ 'render_callback' => 'aravalli_checkin_desc_render_callback',
156
+ ) );
157
+ }
158
+
159
+ add_action( 'customize_register', 'aravalli_checkin_section_partials' );
160
+
161
+ // checkin_title
162
+ function aravalli_checkin_title_render_callback() {
163
+ return get_theme_mod( 'checkin_title' );
164
+ }
165
+
166
+
167
+ // checkin_desc
168
+ function aravalli_checkin_desc_render_callback() {
169
+ return get_theme_mod( 'checkin_desc' );
170
+ }
inc/aravalli/features/aravalli-features.php ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function aravalli_features_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Features Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'features_setting', array(
9
+ 'title' => esc_html__( 'Features Section', 'clever-fox' ),
10
+ 'priority' => 4,
11
+ 'panel' => 'aravalli_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Setting Head //
16
+ $wp_customize->add_setting(
17
+ 'features_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'aravalli_sanitize_text',
21
+ 'priority' => 1,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'features_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','clever-fox'),
30
+ 'section' => 'features_setting',
31
+ )
32
+ );
33
+
34
+ // Hide Show //
35
+ $wp_customize->add_setting(
36
+ 'features_hs'
37
+ ,array(
38
+ 'default' => '1',
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'aravalli_sanitize_checkbox',
41
+ 'priority' => 1,
42
+ )
43
+ );
44
+
45
+ $wp_customize->add_control(
46
+ 'features_hs',
47
+ array(
48
+ 'type' => 'checkbox',
49
+ 'label' => __('Hide / Show','clever-fox'),
50
+ 'section' => 'features_setting',
51
+ )
52
+ );
53
+
54
+ // Features Header Section //
55
+ $wp_customize->add_setting(
56
+ 'features_headings'
57
+ ,array(
58
+ 'capability' => 'edit_theme_options',
59
+ 'sanitize_callback' => 'aravalli_sanitize_text',
60
+ 'priority' => 3,
61
+ )
62
+ );
63
+
64
+ $wp_customize->add_control(
65
+ 'features_headings',
66
+ array(
67
+ 'type' => 'hidden',
68
+ 'label' => __('Header','clever-fox'),
69
+ 'section' => 'features_setting',
70
+ )
71
+ );
72
+
73
+ // Features Title //
74
+ $wp_customize->add_setting(
75
+ 'features_title',
76
+ array(
77
+ 'default' => __('Explore','clever-fox'),
78
+ 'capability' => 'edit_theme_options',
79
+ 'sanitize_callback' => 'aravalli_sanitize_html',
80
+ 'transport' => $selective_refresh,
81
+ 'priority' => 4,
82
+ )
83
+ );
84
+
85
+ $wp_customize->add_control(
86
+ 'features_title',
87
+ array(
88
+ 'label' => __('Title','clever-fox'),
89
+ 'section' => 'features_setting',
90
+ 'type' => 'text',
91
+ )
92
+ );
93
+
94
+
95
+ // Features Subtitle //
96
+ $wp_customize->add_setting(
97
+ 'features_subtitle',
98
+ array(
99
+ 'default' => __('theme Features','clever-fox'),
100
+ 'capability' => 'edit_theme_options',
101
+ 'sanitize_callback' => 'aravalli_sanitize_html',
102
+ 'transport' => $selective_refresh,
103
+ 'priority' => 4,
104
+ )
105
+ );
106
+
107
+ $wp_customize->add_control(
108
+ 'features_subtitle',
109
+ array(
110
+ 'label' => __('Subtitle','clever-fox'),
111
+ 'section' => 'features_setting',
112
+ 'type' => 'text',
113
+ )
114
+ );
115
+
116
+ // Features Description //
117
+ $wp_customize->add_setting(
118
+ 'features_description',
119
+ array(
120
+ 'default' => __("Lorem Ipsum is simply dummy text of the printing and typesetting industryLorem Ipsum has been the industry's standard dummy text ever since the 1500s.of type and scrambled it to make a type specimen book.",'clever-fox'),
121
+ 'capability' => 'edit_theme_options',
122
+ 'sanitize_callback' => 'aravalli_sanitize_text',
123
+ 'transport' => $selective_refresh,
124
+ 'priority' => 6,
125
+ )
126
+ );
127
+
128
+ $wp_customize->add_control(
129
+ 'features_description',
130
+ array(
131
+ 'label' => __('Description','clever-fox'),
132
+ 'section' => 'features_setting',
133
+ 'type' => 'textarea',
134
+ )
135
+ );
136
+
137
+ // Features content Section //
138
+
139
+ $wp_customize->add_setting(
140
+ 'features_content_head'
141
+ ,array(
142
+ 'capability' => 'edit_theme_options',
143
+ 'sanitize_callback' => 'aravalli_sanitize_text',
144
+ 'priority' => 7,
145
+ )
146
+ );
147
+
148
+ $wp_customize->add_control(
149
+ 'features_content_head',
150
+ array(
151
+ 'type' => 'hidden',
152
+ 'label' => __('Content','clever-fox'),
153
+ 'section' => 'features_setting',
154
+ )
155
+ );
156
+
157
+ /**
158
+ * Customizer Repeater for add features
159
+ */
160
+
161
+ $wp_customize->add_setting( 'features_contents',
162
+ array(
163
+ 'sanitize_callback' => 'aravalli_repeater_sanitize',
164
+ 'transport' => $selective_refresh,
165
+ 'priority' => 8,
166
+ 'default' => aravalli_get_features_default()
167
+ )
168
+ );
169
+
170
+ $wp_customize->add_control(
171
+ new Aravalli_Repeater( $wp_customize,
172
+ 'features_contents',
173
+ array(
174
+ 'label' => esc_html__('Feature','clever-fox'),
175
+ 'section' => 'features_setting',
176
+ 'add_field_label' => esc_html__( 'Add New Feature', 'clever-fox' ),
177
+ 'item_name' => esc_html__( 'Feature', 'clever-fox' ),
178
+ 'customizer_repeater_icon_control' => true,
179
+ 'customizer_repeater_image_control' => true,
180
+ 'customizer_repeater_title_control' => true,
181
+ 'customizer_repeater_text_control' => true,
182
+ 'customizer_repeater_text2_control' => true,
183
+ 'customizer_repeater_link_control' => true,
184
+ )
185
+ )
186
+ );
187
+
188
+ //Pro feature
189
+ class Aravalli_feature__section_upgrade extends WP_Customize_Control {
190
+ public function render_content() {
191
+ ?>
192
+ <a class="customizer_feature_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
193
+
194
+ <?php
195
+ }
196
+ }
197
+
198
+ $wp_customize->add_setting( 'aravalli_feature_upgrade_to_pro', array(
199
+ 'capability' => 'edit_theme_options',
200
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
201
+ 'priority' => 9,
202
+ ));
203
+ $wp_customize->add_control(
204
+ new Aravalli_feature__section_upgrade(
205
+ $wp_customize,
206
+ 'aravalli_feature_upgrade_to_pro',
207
+ array(
208
+ 'section' => 'features_setting',
209
+ )
210
+ )
211
+ );
212
+ }
213
+
214
+ add_action( 'customize_register', 'aravalli_features_setting' );
215
+
216
+ // features selective refresh
217
+ function aravalli_home_features_section_partials( $wp_customize ){
218
+ // features title
219
+ $wp_customize->selective_refresh->add_partial( 'features_title', array(
220
+ 'selector' => '.features-home .heading-default h6',
221
+ 'settings' => 'features_title',
222
+ 'render_callback' => 'aravalli_features_title_render_callback',
223
+ ) );
224
+
225
+ // features_subtitle
226
+ $wp_customize->selective_refresh->add_partial( 'features_subtitle', array(
227
+ 'selector' => '.features-home .heading-default h3',
228
+ 'settings' => 'features_subtitle',
229
+ 'render_callback' => 'aravalli_features_subtitle_render_callback',
230
+ ) );
231
+
232
+ // features description
233
+ $wp_customize->selective_refresh->add_partial( 'features_description', array(
234
+ 'selector' => '.features-home .heading-default p',
235
+ 'settings' => 'features_description',
236
+ 'render_callback' => 'aravalli_features_desc_render_callback',
237
+ ) );
238
+ // features content
239
+ $wp_customize->selective_refresh->add_partial( 'features_contents', array(
240
+ 'selector' => '.features-home .featuress-contents'
241
+ ) );
242
+
243
+ }
244
+
245
+ add_action( 'customize_register', 'aravalli_home_features_section_partials' );
246
+
247
+ // features title
248
+ function aravalli_features_title_render_callback() {
249
+ return get_theme_mod( 'features_title' );
250
+ }
251
+
252
+ // features_subtitle
253
+ function aravalli_features_subtitle_render_callback() {
254
+ return get_theme_mod( 'features_subtitle' );
255
+ }
256
+
257
+ // features description
258
+ function aravalli_features_desc_render_callback() {
259
+ return get_theme_mod( 'features_description' );
260
+ }
inc/aravalli/features/aravalli-header.php ADDED
@@ -0,0 +1,364 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function cleverfox_aravalli_header_settings( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Header Settings Panel
6
+ =========================================*/
7
+ $wp_customize->add_panel(
8
+ 'header_section',
9
+ array(
10
+ 'priority' => 2,
11
+ 'capability' => 'edit_theme_options',
12
+ 'title' => __('Header', 'clever-fox'),
13
+ )
14
+ );
15
+
16
+ /*=========================================
17
+ Aravalli Site Identity
18
+ =========================================*/
19
+ // Logo Width //
20
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
21
+ $wp_customize->add_setting(
22
+ 'logo_width',
23
+ array(
24
+ 'default' => '140',
25
+ 'capability' => 'edit_theme_options',
26
+ 'sanitize_callback' => 'aravalli_sanitize_range_value',
27
+ 'transport' => 'postMessage',
28
+ )
29
+ );
30
+ $wp_customize->add_control(
31
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'logo_width',
32
+ array(
33
+ 'label' => __( 'Logo Width', 'clever-fox' ),
34
+ 'section' => 'title_tagline',
35
+ 'input_attrs' => array(
36
+ 'min' => 0,
37
+ 'max' => 500,
38
+ 'step' => 1,
39
+ //'suffix' => 'px', //optional suffix
40
+ ),
41
+ ) )
42
+ );
43
+ }
44
+
45
+ /*=========================================
46
+ Above Header Section
47
+ =========================================*/
48
+ $wp_customize->add_section(
49
+ 'above_header',
50
+ array(
51
+ 'priority' => 2,
52
+ 'title' => __('Above Header','clever-fox'),
53
+ 'panel' => 'header_section',
54
+ )
55
+ );
56
+
57
+ // Mobile
58
+ $wp_customize->add_setting(
59
+ 'hdr_top_mobile'
60
+ ,array(
61
+ 'capability' => 'edit_theme_options',
62
+ 'sanitize_callback' => 'aravalli_sanitize_text',
63
+ 'priority' => 3,
64
+ )
65
+ );
66
+
67
+ $wp_customize->add_control(
68
+ 'hdr_top_mobile',
69
+ array(
70
+ 'type' => 'hidden',
71
+ 'label' => __('Phone','clever-fox'),
72
+ 'section' => 'above_header',
73
+ )
74
+ );
75
+ $wp_customize->add_setting(
76
+ 'hide_show_phone_details' ,
77
+ array(
78
+ 'default' => '1',
79
+ 'capability' => 'edit_theme_options',
80
+ 'sanitize_callback' => 'aravalli_sanitize_checkbox',
81
+ 'transport' => $selective_refresh,
82
+ 'priority' => 4,
83
+ )
84
+ );
85
+
86
+ $wp_customize->add_control(
87
+ 'hide_show_phone_details',
88
+ array(
89
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
90
+ 'section' => 'above_header',
91
+ 'type' => 'checkbox'
92
+ )
93
+ );
94
+
95
+ // icon //
96
+ $wp_customize->add_setting(
97
+ 'tlh_phone_icon',
98
+ array(
99
+ 'default' => 'fa-mobile-phone',
100
+ 'sanitize_callback' => 'sanitize_text_field',
101
+ 'capability' => 'edit_theme_options',
102
+ 'priority' => 4,
103
+ )
104
+ );
105
+
106
+ $wp_customize->add_control(new Aravalli_Icon_Picker_Control($wp_customize,
107
+ 'tlh_phone_icon',
108
+ array(
109
+ 'label' => __('Icon','clever-fox'),
110
+ 'section' => 'above_header',
111
+ 'iconset' => 'fa',
112
+
113
+ ))
114
+ );
115
+ // Mobile title //
116
+ $wp_customize->add_setting(
117
+ 'tlh_phone_title',
118
+ array(
119
+ 'default' => __('+1514-2861-23','clever-fox'),
120
+ 'sanitize_callback' => 'aravalli_sanitize_text',
121
+ 'transport' => $selective_refresh,
122
+ 'capability' => 'edit_theme_options',
123
+ 'priority' => 5,
124
+ )
125
+ );
126
+
127
+ $wp_customize->add_control(
128
+ 'tlh_phone_title',
129
+ array(
130
+ 'label' => __('Title','clever-fox'),
131
+ 'section' => 'above_header',
132
+ 'type' => 'text'
133
+ )
134
+ );
135
+
136
+ // Email
137
+ $wp_customize->add_setting(
138
+ 'hdr_top_email'
139
+ ,array(
140
+ 'capability' => 'edit_theme_options',
141
+ 'sanitize_callback' => 'aravalli_sanitize_text',
142
+ 'priority' => 5,
143
+ )
144
+ );
145
+
146
+ $wp_customize->add_control(
147
+ 'hdr_top_email',
148
+ array(
149
+ 'type' => 'hidden',
150
+ 'label' => __('Email','clever-fox'),
151
+ 'section' => 'above_header',
152
+ )
153
+ );
154
+
155
+ $wp_customize->add_setting(
156
+ 'hide_show_email_details' ,
157
+ array(
158
+ 'default' => '1',
159
+ 'capability' => 'edit_theme_options',
160
+ 'sanitize_callback' => 'aravalli_sanitize_checkbox',
161
+ 'transport' => $selective_refresh,
162
+ 'priority' => 6,
163
+ )
164
+ );
165
+
166
+ $wp_customize->add_control(
167
+ 'hide_show_email_details',
168
+ array(
169
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
170
+ 'section' => 'above_header',
171
+ 'type' => 'checkbox'
172
+ )
173
+ );
174
+
175
+ // icon //
176
+ $wp_customize->add_setting(
177
+ 'tlh_email_icon',
178
+ array(
179
+ 'default' => 'fa-envelope-o',
180
+ 'sanitize_callback' => 'sanitize_text_field',
181
+ 'capability' => 'edit_theme_options',
182
+ 'priority' => 6,
183
+ )
184
+ );
185
+
186
+ $wp_customize->add_control(new Aravalli_Icon_Picker_Control($wp_customize,
187
+ 'tlh_email_icon',
188
+ array(
189
+ 'label' => __('Icon','clever-fox'),
190
+ 'section' => 'above_header',
191
+ 'iconset' => 'fa',
192
+
193
+ ))
194
+ );
195
+ // Mobile title //
196
+ $wp_customize->add_setting(
197
+ 'tlh_email_title',
198
+ array(
199
+ 'default' => __('email@companyname.com','clever-fox'),
200
+ 'sanitize_callback' => 'aravalli_sanitize_text',
201
+ 'capability' => 'edit_theme_options',
202
+ 'transport' => $selective_refresh,
203
+ 'priority' => 7,
204
+ )
205
+ );
206
+
207
+ $wp_customize->add_control(
208
+ 'tlh_email_title',
209
+ array(
210
+ 'label' => __('Title','clever-fox'),
211
+ 'section' => 'above_header',
212
+ 'type' => 'text'
213
+ )
214
+ );
215
+
216
+
217
+ // Social
218
+ $wp_customize->add_setting(
219
+ 'hdr_top_social'
220
+ ,array(
221
+ 'capability' => 'edit_theme_options',
222
+ 'sanitize_callback' => 'aravalli_sanitize_text',
223
+ 'priority' => 7,
224
+ )
225
+ );
226
+
227
+ $wp_customize->add_control(
228
+ 'hdr_top_social',
229
+ array(
230
+ 'type' => 'hidden',
231
+ 'label' => __('Social Icons','clever-fox'),
232
+ 'section' => 'above_header',
233
+ )
234
+ );
235
+
236
+ $wp_customize->add_setting(
237
+ 'hide_show_social_icon' ,
238
+ array(
239
+ 'default' => '1',
240
+ 'capability' => 'edit_theme_options',
241
+ 'sanitize_callback' => 'aravalli_sanitize_checkbox',
242
+ 'transport' => $selective_refresh,
243
+ 'priority' => 7,
244
+ )
245
+ );
246
+
247
+ $wp_customize->add_control(
248
+ 'hide_show_social_icon',
249
+ array(
250
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
251
+ 'section' => 'above_header',
252
+ 'type' => 'checkbox'
253
+ )
254
+ );
255
+
256
+ /**
257
+ * Customizer Repeater
258
+ */
259
+ $wp_customize->add_setting( 'social_icons',
260
+ array(
261
+ 'sanitize_callback' => 'aravalli_repeater_sanitize',
262
+ 'priority' => 8,
263
+ 'default' => aravalli_get_social_icon_default()
264
+ )
265
+ );
266
+
267
+ $wp_customize->add_control(
268
+ new ARAVALLI_Repeater( $wp_customize,
269
+ 'social_icons',
270
+ array(
271
+ 'label' => esc_html__('Social Icons','clever-fox'),
272
+ 'section' => 'above_header',
273
+ 'add_field_label' => esc_html__( 'Add New Social', 'clever-fox' ),
274
+ 'item_name' => esc_html__( 'Social', 'clever-fox' ),
275
+ 'customizer_repeater_icon_control' => true,
276
+ 'customizer_repeater_link_control' => true,
277
+ )
278
+ )
279
+ );
280
+
281
+ //Pro feature
282
+ class Aravalli_social__section_upgrade extends WP_Customize_Control {
283
+ public function render_content() {
284
+ ?>
285
+ <a class="customizer_social_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
286
+ <?php
287
+ }
288
+ }
289
+
290
+ $wp_customize->add_setting( 'aravalli_social_upgrade_to_pro', array(
291
+ 'capability' => 'edit_theme_options',
292
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
293
+ ));
294
+ $wp_customize->add_control(
295
+ new Aravalli_social__section_upgrade(
296
+ $wp_customize,
297
+ 'aravalli_social_upgrade_to_pro',
298
+ array(
299
+ 'section' => 'above_header',
300
+ )
301
+ )
302
+ );
303
+ }
304
+ add_action( 'customize_register', 'cleverfox_aravalli_header_settings' );
305
+
306
+ // Header selective refresh
307
+ function cleverfox_aravalli_header_partials( $wp_customize ){
308
+
309
+ // hide show Social
310
+ $wp_customize->selective_refresh->add_partial(
311
+ 'hide_show_social_icon', array(
312
+ 'selector' => '#above-header .widget-social',
313
+ 'container_inclusive' => true,
314
+ 'render_callback' => 'header_top_right',
315
+ 'fallback_refresh' => true,
316
+ )
317
+ );
318
+ // hide_show_phone_details
319
+ $wp_customize->selective_refresh->add_partial(
320
+ 'hide_show_phone_details', array(
321
+ 'selector' => '.header-top-info .phone',
322
+ 'container_inclusive' => true,
323
+ 'render_callback' => 'header_top_right',
324
+ 'fallback_refresh' => true,
325
+ )
326
+ );
327
+ // hide_show_email_details
328
+ $wp_customize->selective_refresh->add_partial(
329
+ 'hide_show_email_details', array(
330
+ 'selector' => '.header-top-info .email',
331
+ 'container_inclusive' => true,
332
+ 'render_callback' => 'header_top_right',
333
+ 'fallback_refresh' => true,
334
+ )
335
+ );
336
+
337
+ // tlh_email_title
338
+ $wp_customize->selective_refresh->add_partial( 'tlh_email_title', array(
339
+ 'selector' => '.header-top-info .email span',
340
+ 'settings' => 'tlh_email_title',
341
+ 'render_callback' => 'aravalli_tlh_email_title_render_callback',
342
+ ) );
343
+
344
+
345
+ // tlh_phone_title
346
+ $wp_customize->selective_refresh->add_partial( 'tlh_phone_title', array(
347
+ 'selector' => '.header-top-info .phone span',
348
+ 'settings' => 'tlh_phone_title',
349
+ 'render_callback' => 'aravalli_tlh_phone_title_render_callback',
350
+ ) );
351
+ }
352
+
353
+ add_action( 'customize_register', 'cleverfox_aravalli_header_partials' );
354
+
355
+
356
+ // tlh_email_title
357
+ function aravalli_tlh_email_title_render_callback() {
358
+ return get_theme_mod( 'tlh_email_title' );
359
+ }
360
+
361
+ // tlh_phone_title
362
+ function aravalli_tlh_phone_title_render_callback() {
363
+ return get_theme_mod( 'tlh_phone_title' );
364
+ }
inc/aravalli/features/aravalli-room.php ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function aravalli_room_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Room Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'room_setting', array(
9
+ 'title' => esc_html__( 'Room Section', 'clever-fox' ),
10
+ 'priority' => 3,
11
+ 'panel' => 'aravalli_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Setting Head //
16
+ $wp_customize->add_setting(
17
+ 'room_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'aravalli_sanitize_text',
21
+ 'priority' => 1,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'room_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','clever-fox'),
30
+ 'section' => 'room_setting',
31
+ )
32
+ );
33
+
34
+ // Hide Show //
35
+ $wp_customize->add_setting(
36
+ 'room_hs'
37
+ ,array(
38
+ 'default' => '1',
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'aravalli_sanitize_checkbox',
41
+ 'priority' => 1,
42
+ )
43
+ );
44
+
45
+ $wp_customize->add_control(
46
+ 'room_hs',
47
+ array(
48
+ 'type' => 'checkbox',
49
+ 'label' => __('Hide / Show','clever-fox'),
50
+ 'section' => 'room_setting',
51
+ )
52
+ );
53
+
54
+
55
+ // Room Header Section //
56
+ $wp_customize->add_setting(
57
+ 'room_headings'
58
+ ,array(
59
+ 'capability' => 'edit_theme_options',
60
+ 'sanitize_callback' => 'aravalli_sanitize_text',
61
+ 'priority' => 3,
62
+ )
63
+ );
64
+
65
+ $wp_customize->add_control(
66
+ 'room_headings',
67
+ array(
68
+ 'type' => 'hidden',
69
+ 'label' => __('Header','clever-fox'),
70
+ 'section' => 'room_setting',
71
+ )
72
+ );
73
+
74
+ // Room Title //
75
+ $wp_customize->add_setting(
76
+ 'room_title',
77
+ array(
78
+ 'default' => __('Explore','clever-fox'),
79
+ 'capability' => 'edit_theme_options',
80
+ 'sanitize_callback' => 'aravalli_sanitize_html',
81
+ 'transport' => $selective_refresh,
82
+ 'priority' => 4,
83
+ )
84
+ );
85
+
86
+ $wp_customize->add_control(
87
+ 'room_title',
88
+ array(
89
+ 'label' => __('Title','clever-fox'),
90
+ 'section' => 'room_setting',
91
+ 'type' => 'text',
92
+ )
93
+ );
94
+
95
+ // Room Subtitle //
96
+ $wp_customize->add_setting(
97
+ 'room_subtitle',
98
+ array(
99
+ 'default' => __('Rooms & Suits','clever-fox'),
100
+ 'capability' => 'edit_theme_options',
101
+ 'sanitize_callback' => 'aravalli_sanitize_html',
102
+ 'transport' => $selective_refresh,
103
+ 'priority' => 4,
104
+ )
105
+ );
106
+
107
+ $wp_customize->add_control(
108
+ 'room_subtitle',
109
+ array(
110
+ 'label' => __('Subtitle','clever-fox'),
111
+ 'section' => 'room_setting',
112
+ 'type' => 'text',
113
+ )
114
+ );
115
+
116
+ // Room Description //
117
+ $wp_customize->add_setting(
118
+ 'room_desc',
119
+ array(
120
+ 'default' => __("Lorem Ipsum is simply dummy text of the printing and typesetting industryLorem Ipsum has been the industry's standard dummy text ever since the 1500s.of type and scrambled it to make a type specimen book.",'clever-fox'),
121
+ 'capability' => 'edit_theme_options',
122
+ 'sanitize_callback' => 'aravalli_sanitize_html',
123
+ 'transport' => $selective_refresh,
124
+ 'priority' => 6,
125
+ )
126
+ );
127
+
128
+ $wp_customize->add_control(
129
+ 'room_desc',
130
+ array(
131
+ 'label' => __('Description','clever-fox'),
132
+ 'section' => 'room_setting',
133
+ 'type' => 'textarea',
134
+ )
135
+ );
136
+
137
+ // Room content Section //
138
+
139
+ $wp_customize->add_setting(
140
+ 'room_contents_head'
141
+ ,array(
142
+ 'capability' => 'edit_theme_options',
143
+ 'sanitize_callback' => 'aravalli_sanitize_text',
144
+ 'priority' => 7,
145
+ )
146
+ );
147
+
148
+ $wp_customize->add_control(
149
+ 'room_contents_head',
150
+ array(
151
+ 'type' => 'hidden',
152
+ 'label' => __('Content','clever-fox'),
153
+ 'section' => 'room_setting',
154
+ )
155
+ );
156
+
157
+ /**
158
+ * Customizer Repeater for add Room
159
+ */
160
+
161
+ $wp_customize->add_setting( 'room_contents',
162
+ array(
163
+ 'sanitize_callback' => 'aravalli_repeater_sanitize',
164
+ 'priority' => 5,
165
+ 'default' => aravalli_get_room_default()
166
+ )
167
+ );
168
+
169
+ $wp_customize->add_control(
170
+ new Aravalli_Repeater( $wp_customize,
171
+ 'room_contents',
172
+ array(
173
+ 'label' => esc_html__('Room','clever-fox'),
174
+ 'section' => 'room_setting',
175
+ 'add_field_label' => esc_html__( 'Add New Room', 'clever-fox' ),
176
+ 'item_name' => esc_html__( 'Rooms', 'clever-fox' ),
177
+
178
+ 'customizer_repeater_title_control' => true,
179
+ 'customizer_repeater_subtitle_control' => true,
180
+ 'customizer_repeater_text_control' => true,
181
+ 'customizer_repeater_button_text_control'=> true,
182
+ 'customizer_repeater_text2_control'=> true,
183
+ 'customizer_repeater_link_control' => true,
184
+ 'customizer_repeater_image_control' => true,
185
+ )
186
+ )
187
+ );
188
+
189
+
190
+ //Pro feature
191
+ class Aravalli_room__section_upgrade extends WP_Customize_Control {
192
+ public function render_content() {
193
+ ?>
194
+ <a class="customizer_room_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
195
+
196
+ <?php
197
+ }
198
+ }
199
+
200
+ $wp_customize->add_setting( 'aravalli_room_upgrade_to_pro', array(
201
+ 'capability' => 'edit_theme_options',
202
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
203
+ 'priority' => 5,
204
+ ));
205
+ $wp_customize->add_control(
206
+ new Aravalli_room__section_upgrade(
207
+ $wp_customize,
208
+ 'aravalli_room_upgrade_to_pro',
209
+ array(
210
+ 'section' => 'room_setting',
211
+ )
212
+ )
213
+ );
214
+
215
+ }
216
+
217
+ add_action( 'customize_register', 'aravalli_room_setting' );
218
+
219
+ // room selective refresh
220
+ function aravalli_Room_section_partials( $wp_customize ){
221
+ // room_title
222
+ $wp_customize->selective_refresh->add_partial( 'room_title', array(
223
+ 'selector' => '.room-home .heading-default h6',
224
+ 'settings' => 'room_title',
225
+ 'render_callback' => 'aravalli_room_title_render_callback',
226
+ ) );
227
+
228
+ // room_subtitle
229
+ $wp_customize->selective_refresh->add_partial( 'room_subtitle', array(
230
+ 'selector' => '.room-home .heading-default h3',
231
+ 'settings' => 'room_subtitle',
232
+ 'render_callback' => 'aravalli_room_subtitle_render_callback',
233
+ ) );
234
+
235
+ // room_desc
236
+ $wp_customize->selective_refresh->add_partial( 'room_desc', array(
237
+ 'selector' => '.room-home .heading-default p',
238
+ 'settings' => 'room_desc',
239
+ 'render_callback' => 'aravalli_room_desc_render_callback',
240
+ ) );
241
+
242
+ }
243
+
244
+ add_action( 'customize_register', 'aravalli_Room_section_partials' );
245
+
246
+ // room_title
247
+ function aravalli_room_title_render_callback() {
248
+ return get_theme_mod( 'room_title' );
249
+ }
250
+
251
+ // room_title
252
+ function aravalli_room_subtitle_render_callback() {
253
+ return get_theme_mod( 'room_subtitle' );
254
+ }
255
+
256
+ // room_desc
257
+ function aravalli_room_desc_render_callback() {
258
+ return get_theme_mod( 'room_desc' );
259
+ }
inc/aravalli/features/aravalli-slider.php ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function aravalli_slider_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Slider Section Panel
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'slider_setting', array(
9
+ 'title' => esc_html__( 'Slider Section', 'clever-fox' ),
10
+ 'panel' => 'aravalli_frontpage_sections',
11
+ 'priority' => 1,
12
+ )
13
+ );
14
+
15
+ // slider Contents
16
+ $wp_customize->add_setting(
17
+ 'slider_content_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'aravalli_sanitize_text',
21
+ 'priority' => 4,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'slider_content_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Contents','clever-fox'),
30
+ 'section' => 'slider_setting',
31
+ )
32
+ );
33
+
34
+ /**
35
+ * Customizer Repeater for add slides
36
+ */
37
+
38
+ $wp_customize->add_setting( 'slider',
39
+ array(
40
+ 'sanitize_callback' => 'aravalli_repeater_sanitize',
41
+ 'priority' => 5,
42
+ 'default' => aravalli_get_slider_default()
43
+ )
44
+ );
45
+
46
+ $wp_customize->add_control(
47
+ new Aravalli_Repeater( $wp_customize,
48
+ 'slider',
49
+ array(
50
+ 'label' => esc_html__('Slide','clever-fox'),
51
+ 'section' => 'slider_setting',
52
+ 'add_field_label' => esc_html__( 'Add New Slider', 'clever-fox' ),
53
+ 'item_name' => esc_html__( 'Slider', 'clever-fox' ),
54
+
55
+
56
+ 'customizer_repeater_icon_control' => false,
57
+ 'customizer_repeater_title_control' => true,
58
+ 'customizer_repeater_text_control' => true,
59
+ 'customizer_repeater_text2_control'=> true,
60
+ 'customizer_repeater_link_control' => true,
61
+ 'customizer_repeater_slide_align' => true,
62
+ 'customizer_repeater_image_control' => true,
63
+ 'customizer_repeater_image2_control' => true,
64
+ )
65
+ )
66
+ );
67
+
68
+ //Pro feature
69
+ class Aravalli_slider__section_upgrade extends WP_Customize_Control {
70
+ public function render_content() {
71
+ ?>
72
+ <a class="customizer_slider_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
73
+
74
+ <?php
75
+ }
76
+ }
77
+
78
+ $wp_customize->add_setting( 'aravalli_slider_upgrade_to_pro', array(
79
+ 'capability' => 'edit_theme_options',
80
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
81
+ 'priority' => 5,
82
+ ));
83
+ $wp_customize->add_control(
84
+ new Aravalli_slider__section_upgrade(
85
+ $wp_customize,
86
+ 'aravalli_slider_upgrade_to_pro',
87
+ array(
88
+ 'section' => 'slider_setting',
89
+ )
90
+ )
91
+ );
92
+
93
+ // slider opacity
94
+ if ( class_exists( 'Aravalli_Customizer_Range_Control' ) ) {
95
+ $wp_customize->add_setting(
96
+ 'slider_opacity',
97
+ array(
98
+ 'default' => '0.5',
99
+ 'capability' => 'edit_theme_options',
100
+ 'sanitize_callback' => 'aravalli_sanitize_range_value',
101
+ 'priority' => 7,
102
+ )
103
+ );
104
+ $wp_customize->add_control(
105
+ new Aravalli_Customizer_Range_Control( $wp_customize, 'slider_opacity',
106
+ array(
107
+ 'label' => __( 'opacity', 'clever-fox' ),
108
+ 'section' => 'slider_setting',
109
+ 'media_query' => false,
110
+ 'input_attr' => array(
111
+ 'desktop' => array(
112
+ 'min' => 0,
113
+ 'max' => 0.9,
114
+ 'step' => 0.1,
115
+ 'default_value' => 0,
116
+ ),
117
+ ),
118
+ ) )
119
+ );
120
+ }
121
+ }
122
+
123
+ add_action( 'customize_register', 'aravalli_slider_setting' );
inc/aravalli/features/aravalli-typography.php ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function aravalli_typography( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+
5
+ $wp_customize->add_panel(
6
+ 'aravalli_typography', array(
7
+ 'priority' => 38,
8
+ 'title' => esc_html__( 'Typography', 'clever-fox' ),
9
+ )
10
+ );
11
+
12
+ /*=========================================
13
+ Aravalli Typography
14
+ =========================================*/
15
+ $wp_customize->add_section(
16
+ 'aravalli_typography',
17
+ array(
18
+ 'priority' => 1,
19
+ 'title' => __('Body Typography','clever-fox'),
20
+ 'panel' => 'aravalli_typography',
21
+ )
22
+ );
23
+
24
+ // Body Font Size //
25
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
26
+ $wp_customize->add_setting(
27
+ 'aravalli_body_font_size',
28
+ array(
29
+ 'default' => '15',
30
+ 'capability' => 'edit_theme_options',
31
+ 'sanitize_callback' => 'aravalli_sanitize_range_value',
32
+ 'transport' => 'postMessage',
33
+ )
34
+ );
35
+ $wp_customize->add_control(
36
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'aravalli_body_font_size',
37
+ array(
38
+ 'label' => __( 'Size', 'clever-fox' ),
39
+ 'section' => 'aravalli_typography',
40
+ 'priority' => 2,
41
+ 'input_attrs' => array(
42
+ 'min' => 0,
43
+ 'max' => 50,
44
+ 'step' => 1,
45
+ //'suffix' => 'px', //optional suffix
46
+ ),
47
+ ) )
48
+ );
49
+ }
50
+
51
+ // Body Font Size //
52
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
53
+ $wp_customize->add_setting(
54
+ 'aravalli_body_line_height',
55
+ array(
56
+ 'default' => '1.5',
57
+ 'capability' => 'edit_theme_options',
58
+ 'sanitize_callback' => 'aravalli_sanitize_range_value',
59
+ 'transport' => 'postMessage',
60
+ )
61
+ );
62
+ $wp_customize->add_control(
63
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'aravalli_body_line_height',
64
+ array(
65
+ 'label' => __( 'Line Height', 'clever-fox' ),
66
+ 'section' => 'aravalli_typography',
67
+ 'priority' => 3,
68
+ 'input_attrs' => array(
69
+ 'min' => 0,
70
+ 'max' => 4,
71
+ 'step' => 0.1,
72
+ //'suffix' => 'px', //optional suffix
73
+ ),
74
+ ) )
75
+ );
76
+ }
77
+
78
+ // Body Font style //
79
+ $wp_customize->add_setting( 'aravalli_body_font_style', array(
80
+ 'capability' => 'edit_theme_options',
81
+ 'default' => 'inherit',
82
+ 'transport' => 'postMessage',
83
+ 'sanitize_callback' => 'aravalli_sanitize_select',
84
+ ) );
85
+
86
+ $wp_customize->add_control(
87
+ new WP_Customize_Control(
88
+ $wp_customize, 'aravalli_body_font_style', array(
89
+ 'label' => __( 'Font Style', 'clever-fox' ),
90
+ 'section' => 'aravalli_typography',
91
+ 'type' => 'select',
92
+ 'priority' => 6,
93
+ 'choices' => array(
94
+ 'inherit' => __( 'Inherit', 'clever-fox' ),
95
+ 'normal' => __( 'Normal', 'clever-fox' ),
96
+ 'italic' => __( 'Italic', 'clever-fox' ),
97
+ 'oblique' => __( 'oblique', 'clever-fox' ),
98
+ ),
99
+ )
100
+ )
101
+ );
102
+ // Body Text Transform //
103
+ $wp_customize->add_setting( 'aravalli_body_text_transform', array(
104
+ 'capability' => 'edit_theme_options',
105
+ 'default' => 'inherit',
106
+ 'transport' => 'postMessage',
107
+ 'sanitize_callback' => 'aravalli_sanitize_select',
108
+ ) );
109
+
110
+ $wp_customize->add_control(
111
+ new WP_Customize_Control(
112
+ $wp_customize, 'aravalli_body_text_transform', array(
113
+ 'label' => __( 'Transform', 'clever-fox' ),
114
+ 'section' => 'aravalli_typography',
115
+ 'type' => 'select',
116
+ 'priority' => 7,
117
+ 'choices' => array(
118
+ 'inherit' => __( 'Default', 'clever-fox' ),
119
+ 'uppercase' => __( 'Uppercase', 'clever-fox' ),
120
+ 'lowercase' => __( 'Lowercase', 'clever-fox' ),
121
+ 'capitalize' => __( 'Capitalize', 'clever-fox' ),
122
+ ),
123
+ )
124
+ )
125
+ );
126
+ /*=========================================
127
+ Aravalli Typography Headings
128
+ =========================================*/
129
+ $wp_customize->add_section(
130
+ 'aravalli_headings_typography',
131
+ array(
132
+ 'priority' => 2,
133
+ 'title' => __('Headings','clever-fox'),
134
+ 'panel' => 'aravalli_typography',
135
+ )
136
+ );
137
+
138
+ /*=========================================
139
+ Aravalli Typography H1
140
+ =========================================*/
141
+ for ( $i = 1; $i <= 6; $i++ ) {
142
+ if($i == '1'){$j=36;}elseif($i == '2'){$j=32;}elseif($i == '3'){$j=28;}elseif($i == '4'){$j=24;}elseif($i == '5'){$j=20;}else{$j=16;}
143
+ $wp_customize->add_setting(
144
+ 'h' . $i . '_typography'
145
+ ,array(
146
+ 'capability' => 'edit_theme_options',
147
+ 'sanitize_callback' => 'aravalli_sanitize_text',
148
+ )
149
+ );
150
+
151
+ $wp_customize->add_control(
152
+ 'h' . $i . '_typography',
153
+ array(
154
+ 'type' => 'hidden',
155
+ 'label' => esc_html('H' . $i .'','clever-fox'),
156
+ 'section' => 'aravalli_headings_typography',
157
+ )
158
+ );
159
+
160
+ // Heading Font Size //
161
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
162
+ $wp_customize->add_setting(
163
+ 'aravalli_h' . $i . '_font_size',
164
+ array(
165
+ 'default' => $j,
166
+ 'capability' => 'edit_theme_options',
167
+ 'sanitize_callback' => 'aravalli_sanitize_range_value',
168
+ 'transport' => 'postMessage'
169
+ )
170
+ );
171
+ $wp_customize->add_control(
172
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'aravalli_h' . $i . '_font_size',
173
+ array(
174
+ 'label' => __( 'Font Size', 'clever-fox' ),
175
+ 'section' => 'aravalli_headings_typography',
176
+ 'input_attr' => array(
177
+ 'min' => 1,
178
+ 'max' => 100,
179
+ 'step' => 1,
180
+ )
181
+ ) )
182
+ );
183
+ }
184
+
185
+ // Heading Font Size //
186
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
187
+ $wp_customize->add_setting(
188
+ 'aravalli_h' . $i . '_line_height',
189
+ array(
190
+ 'default' => '1.2',
191
+ 'capability' => 'edit_theme_options',
192
+ 'sanitize_callback' => 'aravalli_sanitize_range_value',
193
+ 'transport' => 'postMessage',
194
+ )
195
+ );
196
+ $wp_customize->add_control(
197
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'aravalli_h' . $i . '_line_height',
198
+ array(
199
+ 'label' => __( 'Line Height', 'clever-fox' ),
200
+ 'section' => 'aravalli_headings_typography',
201
+ 'input_attrs' => array(
202
+ 'min' => 0,
203
+ 'max' => 4,
204
+ 'step' => 0.1,
205
+ //'suffix' => 'px', //optional suffix
206
+ ),
207
+ 'input_attr' => array(
208
+ 'min' => 0,
209
+ 'max' => 3,
210
+ 'step' => 0.1,
211
+ )
212
+ ) )
213
+ );
214
+ }
215
+
216
+ // Heading Font style //
217
+ $wp_customize->add_setting( 'aravalli_h' . $i . '_font_style', array(
218
+ 'capability' => 'edit_theme_options',
219
+ 'default' => 'inherit',
220
+ 'transport' => 'postMessage',
221
+ 'sanitize_callback' => 'aravalli_sanitize_select',
222
+ ) );
223
+
224
+ $wp_customize->add_control(
225
+ new WP_Customize_Control(
226
+ $wp_customize, 'aravalli_h' . $i . '_font_style', array(
227
+ 'label' => __( 'Font Style', 'clever-fox' ),
228
+ 'section' => 'aravalli_headings_typography',
229
+ 'type' => 'select',
230
+ 'choices' => array(
231
+ 'inherit' => __( 'Inherit', 'clever-fox' ),
232
+ 'normal' => __( 'Normal', 'clever-fox' ),
233
+ 'italic' => __( 'Italic', 'clever-fox' ),
234
+ 'oblique' => __( 'oblique', 'clever-fox' ),
235
+ ),
236
+ )
237
+ )
238
+ );
239
+
240
+ // Heading Text Transform //
241
+ $wp_customize->add_setting( 'aravalli_h' . $i . '_text_transform', array(
242
+ 'capability' => 'edit_theme_options',
243
+ 'default' => 'inherit',
244
+ 'transport' => 'postMessage',
245
+ 'sanitize_callback' => 'aravalli_sanitize_select',
246
+ ) );
247
+
248
+ $wp_customize->add_control(
249
+ new WP_Customize_Control(
250
+ $wp_customize, 'aravalli_h' . $i . '_text_transform', array(
251
+ 'label' => __( 'Text Transform', 'clever-fox' ),
252
+ 'section' => 'aravalli_headings_typography',
253
+ 'type' => 'select',
254
+ 'choices' => array(
255
+ 'inherit' => __( 'Default', 'clever-fox' ),
256
+ 'uppercase' => __( 'Uppercase', 'clever-fox' ),
257
+ 'lowercase' => __( 'Lowercase', 'clever-fox' ),
258
+ 'capitalize' => __( 'Capitalize', 'clever-fox' ),
259
+ ),
260
+ )
261
+ )
262
+ );
263
+ }
264
+ }
265
+ add_action( 'customize_register', 'aravalli_typography' );
inc/aravalli/images/amenities-bg.jpg ADDED
Binary file
inc/aravalli/images/features/img-1.jpg ADDED
Binary file
inc/aravalli/images/features/img-2.jpg ADDED
Binary file
inc/aravalli/images/footer-logo.png ADDED
Binary file
inc/aravalli/images/logo.png ADDED
Binary file
inc/aravalli/images/rooms/img-1.jpg ADDED
Binary file
inc/aravalli/images/rooms/img-2.jpg ADDED
Binary file
inc/aravalli/images/rooms/img-3.jpg ADDED
Binary file
inc/aravalli/images/slider/slider01.jpg ADDED
Binary file
inc/aravalli/images/slider/slider02.jpg ADDED
Binary file
inc/aravalli/images/slider/slider03.jpg ADDED
Binary file
inc/aravalli/sections/above-header.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'aravalli_above_header' ) ) :
3
+ function aravalli_above_header() {
4
+ ?>
5
+ <?php
6
+ $hide_show_phone_details = get_theme_mod( 'hide_show_phone_details','1');
7
+ $tlh_phone_icon = get_theme_mod( 'tlh_phone_icon','fa-mobile-phone');
8
+ $tlh_phone_title = get_theme_mod( 'tlh_phone_title','+1514-2861-23');
9
+ $hide_show_email_details = get_theme_mod( 'hide_show_email_details','1');
10
+ $tlh_email_icon = get_theme_mod( 'tlh_email_icon','fa-envelope-o');
11
+ $tlh_email_title = get_theme_mod( 'tlh_email_title','email@companyname.com');
12
+ $hide_show_social_icon = get_theme_mod( 'hide_show_social_icon','1');
13
+ $social_icons = get_theme_mod( 'social_icons',aravalli_get_social_icon_default());
14
+ ?>
15
+ <?php if($hide_show_phone_details == '1' || $hide_show_email_details == '1' || $social_icons == '1') { ?>
16
+ <div id="header-top" class="header-top-info d-lg-block d-sm-none d-none wow fadeInDown">
17
+ <div class="header-widget">
18
+ <div class="container">
19
+ <div class="row">
20
+ <div class="col-lg-6 col-12">
21
+ <div id="header-top-left" class="text-lg-left text-center">
22
+ <?php if($hide_show_phone_details == '1') { ?>
23
+ <div class="widget widget-info phone">
24
+ <i class="fa <?php echo esc_attr($tlh_phone_icon); ?>"></i>
25
+ <span><?php echo esc_html($tlh_phone_title); ?></span>
26
+ </div>
27
+ <?php }
28
+ if($hide_show_email_details == '1') {
29
+ ?>
30
+ <div class="widget widget-info email">
31
+ <i class="fa <?php echo esc_attr($tlh_email_icon); ?>"></i>
32
+ <span><?php echo esc_html($tlh_email_title); ?></span>
33
+ </div>
34
+ <?php } ?>
35
+ </div>
36
+ </div>
37
+ <div class="col-lg-6 col-12">
38
+ <div id="header-top-right" class="text-lg-right text-center">
39
+ <?php if($hide_show_social_icon == '1') { ?>
40
+ <div class="widget widget-social">
41
+ <ul>
42
+ <?php
43
+ $social_icons = json_decode($social_icons);
44
+ if( $social_icons!='' )
45
+ {
46
+ foreach($social_icons as $social_item){
47
+ $social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'aravalli_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
48
+ $social_link = ! empty( $social_item->link ) ? apply_filters( 'aravalli_translate_single_string', $social_item->link, 'Header section' ) : '';
49
+ ?>
50
+ <li><a href="<?php echo esc_url( $social_link ); ?>" class="linkedin"><i class="fa <?php echo esc_attr( $social_icon ); ?>"></i></a></li>
51
+ <?php }} ?>
52
+ </ul>
53
+ </div>
54
+ <?php } ?>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <?php }
62
+ } endif;
63
+ add_action('aravalli_above_header', 'aravalli_above_header');
inc/aravalli/sections/section-amenities.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_aravalli_lite_amenities' ) ) :
3
+ function cleverfox_aravalli_lite_amenities() {
4
+ $hs_pg_about_amenities = get_theme_mod( 'hs_pg_about_amenities','1');
5
+ $pg_about_amenities_ttl = get_theme_mod( 'pg_about_amenities_ttl','Hotel');
6
+ $pg_about_amenities_sub = get_theme_mod( 'pg_about_amenities_sub','Amenities');
7
+ $pg_about_amenities_desc = get_theme_mod( 'pg_about_amenities_desc',"Lorem Ipsum is simply dummy text of the printing and typesetting industryLorem Ipsum has been the industry's standard dummy text ever since the 1500s.of type and scrambled it to make a type specimen book.");
8
+ $pg_about_amenities_content = get_theme_mod( 'pg_about_amenities_content',aravalli_get_amenities_default());
9
+ $pg_about_amenities_bg_img = get_theme_mod( 'pg_about_amenities_bg_img',esc_url(CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/amenities-bg.jpg'));
10
+ $pg_about_amenities_back_attach = get_theme_mod( 'pg_about_amenities_back_attach','scroll');
11
+ if($hs_pg_about_amenities=='1'){
12
+ ?>
13
+ <section id="amenities" class="amenities" style="background-image:url('<?php echo esc_url($pg_about_amenities_bg_img); ?>');background-attachment:<?php echo esc_attr($pg_about_amenities_back_attach); ?>">
14
+ <div class="container">
15
+ <?php if(!empty($pg_about_amenities_ttl) || !empty($pg_about_amenities_sub) || !empty($pg_about_amenities_desc)): ?>
16
+ <div class="row">
17
+ <div class="col-12">
18
+ <div class="heading-default wow fadeInUp">
19
+
20
+ <?php if(!empty($pg_about_amenities_ttl)): ?>
21
+ <h6><?php echo wp_kses_post($pg_about_amenities_ttl); ?></h6>
22
+ <?php endif; ?>
23
+
24
+ <?php if(!empty($pg_about_amenities_sub)): ?>
25
+ <h3><?php echo wp_kses_post($pg_about_amenities_sub); ?><span class="line-circle"></span></h3>
26
+ <?php endif; ?>
27
+
28
+ <?php if(!empty($pg_about_amenities_desc)): ?>
29
+ <p> <?php echo esc_html($pg_about_amenities_desc); ?></p>
30
+ <?php endif; ?>
31
+
32
+ </div>
33
+ </div>
34
+ </div>
35
+ <?php endif; ?>
36
+ <div class="row">
37
+ <div class="col-12">
38
+ <div class="d-flex flex-wrap amenities-content">
39
+ <?php
40
+ if ( ! empty( $pg_about_amenities_content ) ) {
41
+ $pg_about_amenities_content = json_decode( $pg_about_amenities_content );
42
+ foreach ( $pg_about_amenities_content as $amenities_item ) {
43
+ $title = ! empty( $amenities_item->title ) ? apply_filters( 'aravalli_translate_single_string', $amenities_item->title, 'Amenities section' ) : '';
44
+ $icon = ! empty( $amenities_item->icon_value ) ? apply_filters( 'aravalli_translate_single_string', $amenities_item->icon_value, 'Amenities section' ) : '';
45
+ ?>
46
+ <div class="amenities-item"><i class="fa <?php echo esc_attr($icon); ?>"></i> <a href="javascript:void(0)"><?php echo esc_html($title); ?></a></div>
47
+ <?php } } ?>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </section>
53
+ <?php
54
+ }}
55
+ endif;
56
+ if ( function_exists( 'cleverfox_aravalli_lite_amenities' ) ) {
57
+ $section_priority = apply_filters( 'aravalli_section_priority', 14, 'cleverfox_aravalli_lite_amenities' );
58
+ add_action( 'aravalli_sections', 'cleverfox_aravalli_lite_amenities', absint( $section_priority ) );
59
+ }
inc/aravalli/sections/section-checkin.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_aravalli_lite_home_checkin' ) ) :
3
+ function cleverfox_aravalli_lite_home_checkin() {
4
+ $checkin_hs = get_theme_mod('checkin_hs','1');
5
+ if($checkin_hs =='1'){
6
+ do_action('cleverfox_aravalli_lite_checkin');
7
+ }
8
+ }
9
+ endif;
10
+ if ( function_exists( 'cleverfox_aravalli_lite_home_checkin' ) ) {
11
+ $section_priority = apply_filters( 'aravalli_section_priority', 12, 'cleverfox_aravalli_lite_home_checkin' );
12
+ add_action( 'aravalli_sections', 'cleverfox_aravalli_lite_home_checkin', absint( $section_priority ) );
13
+ }
inc/aravalli/sections/section-features.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_aravalli_lite_features' ) ) :
3
+ function cleverfox_aravalli_lite_features() {
4
+ $features_hs = get_theme_mod('features_hs','1');
5
+ $features_title = get_theme_mod('features_title','Explore');
6
+ $features_subtitle = get_theme_mod('features_subtitle','theme Features');
7
+ $features_description = get_theme_mod('features_description',"Lorem Ipsum is simply dummy text of the printing and typesetting industryLorem Ipsum has been the industry's standard dummy text ever since the 1500s.of type and scrambled it to make a type specimen book.");
8
+ $features_contents = get_theme_mod('features_contents',aravalli_get_features_default());
9
+ if($features_hs =='1'){
10
+ ?>
11
+ <section id="features" class="features sec-default features-home">
12
+ <div class="container">
13
+ <?php if(!empty($features_title) || !empty($features_subtitle) || !empty($features_description)): ?>
14
+ <div class="row">
15
+ <div class="col-12">
16
+ <div class="heading-default wow fadeInUp">
17
+
18
+ <?php if(!empty($features_title)): ?>
19
+ <h6><?php echo wp_kses_post($features_title); ?></h6>
20
+ <?php endif; ?>
21
+
22
+ <?php if(!empty($features_subtitle)): ?>
23
+ <h3><?php echo wp_kses_post($features_subtitle); ?><span class="line-circle"></span></h3>
24
+ <?php endif; ?>
25
+
26
+ <?php if(!empty($features_description)): ?>
27
+ <p> <?php echo esc_html($features_description); ?></p>
28
+ <?php endif; ?>
29
+
30
+ </div>
31
+ </div>
32
+ </div>
33
+ <?php endif; ?>
34
+ <div class="row featuress-contents wow fadeInUp">
35
+ <?php
36
+ if ( ! empty( $features_contents ) ) {
37
+ $features_contents = json_decode( $features_contents );
38
+ foreach ( $features_contents as $features_item ) {
39
+ $title = ! empty( $features_item->title ) ? apply_filters( 'aravalli_translate_single_string', $features_item->title, 'Features section' ) : '';
40
+ $text = ! empty( $features_item->text ) ? apply_filters( 'aravalli_translate_single_string', $features_item->text, 'Features section' ) : '';
41
+ $button = ! empty( $features_item->text2) ? apply_filters( 'aravalli_translate_single_string', $features_item->text2,'Features section' ) : '';
42
+ $link = ! empty( $features_item->link ) ? apply_filters( 'aravalli_translate_single_string', $features_item->link, 'Features section' ) : '';
43
+ $icon = ! empty( $features_item->icon_value ) ? apply_filters( 'aravalli_translate_single_string', $features_item->icon_value, 'Features section' ) : '';
44
+ $image = ! empty( $features_item->image_url ) ? apply_filters( 'aravalli_translate_single_string', $features_item->image_url, 'Features section' ) : '';
45
+ ?>
46
+ <div class="col-lg-3 col-sm-6 col-12">
47
+ <div class="feat-grid">
48
+ <div class="inner-grid">
49
+ <?php if ( ! empty( $image ) ) : ?>
50
+ <img src="<?php echo esc_url( $image ); ?>" alt="">
51
+ <?php endif; ?>
52
+ <div class="grid-text">
53
+ <?php if ( ! empty( $icon ) ) : ?>
54
+ <i class="fa <?php echo esc_attr( $icon ); ?>"></i>
55
+ <?php endif; ?>
56
+
57
+ <?php if ( ! empty( $title )) : ?>
58
+ <h2><?php echo esc_html( $title ); ?></h2>
59
+ <?php endif; ?>
60
+
61
+ <?php if ( ! empty( $text ) ) : ?>
62
+ <p><?php echo esc_html( $text ); ?></p>
63
+ <?php endif; ?>
64
+ <?php if ( ! empty( $button ) ) : ?>
65
+ <a href="<?php echo esc_url( $link ); ?>" class="btn-line"><?php echo esc_html( $button ); ?></a>
66
+ <?php endif; ?>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <?php } } ?>
72
+ </div>
73
+ </div>
74
+ </section>
75
+ <?php
76
+ }}
77
+ endif;
78
+ if ( function_exists( 'cleverfox_aravalli_lite_features' ) ) {
79
+ $section_priority = apply_filters( 'aravalli_section_priority', 15, 'cleverfox_aravalli_lite_features' );
80
+ add_action( 'aravalli_sections', 'cleverfox_aravalli_lite_features', absint( $section_priority ) );
81
+ }
inc/aravalli/sections/section-packages.php ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $pg_packages_ttl = get_theme_mod('pg_packages_ttl','Explore');
3
+ $pg_packages_sub = get_theme_mod('pg_packages_sub','Aravalli Packages');
4
+ $pg_packages_desc = get_theme_mod('pg_packages_desc',"Lorem Ipsum is simply dummy text of the printing and typesetting industryLorem Ipsum has been the industry's standard dummy text ever since the 1500s.of type and scrambled it to make a type specimen book.");
5
+ $pg_packages_column = get_theme_mod('pg_packages_column','6');
6
+ $pg_packages_display_num = get_theme_mod('pg_packages_display_num','4');
7
+ $pg_packages_category_id = get_theme_mod('pg_packages_category_id');
8
+ $post_type = 'aravalli_packages';
9
+ $tax = 'packages_categories';
10
+ $tax_terms = get_terms($tax);
11
+ ?>
12
+ <section id="packages-offers" class="packages-offers pg-packages-offers">
13
+ <div class="container">
14
+ <?php if(!empty($pg_packages_ttl) || !empty($pg_packages_sub) || !empty($pg_packages_desc)): ?>
15
+ <div class="row">
16
+ <div class="col-12">
17
+ <div class="heading-default wow fadeInUp">
18
+
19
+ <?php if(!empty($pg_packages_ttl)): ?>
20
+ <h6><?php echo wp_kses_post($pg_packages_ttl); ?></h6>
21
+ <?php endif; ?>
22
+
23
+ <?php if(!empty($pg_packages_sub)): ?>
24
+ <h3><?php echo wp_kses_post($pg_packages_sub); ?><span class="line-circle"></span></h3>
25
+ <?php endif; ?>
26
+
27
+ <?php if(!empty($pg_packages_desc)): ?>
28
+ <p> <?php echo esc_html($pg_packages_desc); ?></p>
29
+ <?php endif; ?>
30
+
31
+ </div>
32
+ </div>
33
+ </div>
34
+ <?php endif; ?>
35
+ <div class="row">
36
+ <?php
37
+ //$args = array( 'post_type' => 'aravalli_packages','posts_per_page' => $pg_packages_display_num);
38
+ $args = array('post_type' => 'aravalli_packages','posts_per_page' => $pg_packages_display_num,
39
+ 'tax_query' => array(
40
+ array(
41
+ 'taxonomy' => 'packages_categories',
42
+ 'field' => 'slug',
43
+ 'terms' => $pg_packages_category_id,
44
+ ),
45
+ ),
46
+ );
47
+ $room = new WP_Query( $args );
48
+ if( $room->have_posts() )
49
+ {
50
+ while ( $room->have_posts() ) : $room->the_post();
51
+
52
+ $popular_badge = sanitize_text_field( get_post_meta( get_the_ID(),'popular_badge', true ));
53
+ $packages_ribbon_text = sanitize_text_field( get_post_meta( get_the_ID(),'packages_ribbon_text', true ));
54
+ $packages_price_badge = sanitize_text_field( get_post_meta( get_the_ID(),'packages_price_badge', true ));
55
+ $packages_price = sanitize_text_field( get_post_meta( get_the_ID(),'packages_price', true ));
56
+ $packages_button_link = sanitize_text_field( get_post_meta( get_the_ID(),'packages_button_link', true ));
57
+ $packages_button_link_target = sanitize_text_field( get_post_meta( get_the_ID(),'packages_button_link_target', true ));
58
+ $packages_star = sanitize_text_field( get_post_meta( get_the_ID(),'packages_star', true ));
59
+
60
+ if($packages_button_link) {
61
+ $packages_button_link;
62
+ }
63
+ else {
64
+ $packages_button_link = get_post_permalink();
65
+ }
66
+
67
+ $terms = get_the_terms( $post->ID, 'packages_categories' );
68
+
69
+ if ( $terms && ! is_wp_error( $terms ) ) :
70
+ $links = array();
71
+
72
+ foreach ( $terms as $term )
73
+ {
74
+ $links[] = $term->slug;
75
+ }
76
+
77
+ $tax = join( ' ', $links );
78
+ else :
79
+ $tax = '';
80
+ endif;
81
+ ?>
82
+ <div class="col-lg-<?php echo esc_attr($pg_packages_column); ?> col-md-6 mb-5">
83
+ <div class="packages-box">
84
+ <div class="thumbnail">
85
+ <?php if ( has_post_thumbnail() ) { ?>
86
+ <div class="packages-img"><?php the_post_thumbnail(); ?></div>
87
+ <?php if (!empty($popular_badge) ){ ?>
88
+ <div class="corner-ribbon"><span class="banget banget-red"><?php echo esc_html($popular_badge); ?></span></div>
89
+ <?php } ?>
90
+ <?php } ?>
91
+
92
+ <?php if (!empty($packages_ribbon_text) ){ ?>
93
+ <div class="balloon-container"><span class="balloon balloon-theme"><?php echo esc_html($packages_ribbon_text); ?></span></div>
94
+ <?php } ?>
95
+
96
+ <?php if (!empty($packages_price_badge) ){ ?>
97
+ <div class="price-bedge"> <?php echo esc_html($packages_price_badge); ?></div>
98
+ <?php } ?>
99
+ </div>
100
+ <div class="packages-panel">
101
+ <div class="packages-details">
102
+ <a href="<?php echo esc_url($packages_button_link); ?>" <?php if($packages_button_link_target) { echo "target='_blank'"; } ?>><?php echo the_title(); ?></a>
103
+ <i class="fa fa-heart"></i>
104
+ </div>
105
+ <div class="post-content-bottom">
106
+ <?php if (!empty($packages_star) ){ ?>
107
+ <ul class="star-rating star-black">
108
+ <?php for ($i=1; $i<=$packages_star; $i++) { ?>
109
+ <li><i class="fa fa-star"></i></li>
110
+ <?php } ?>
111
+ <li><span class="review">/ <?php echo esc_html($packages_star); ?> <?php echo esc_html_e('Review','clever-fox'); ?></span></li>
112
+ </ul>
113
+ <?php } ?>
114
+
115
+ <?php if (!empty($packages_price) ){ ?>
116
+ <div class="comment-box">
117
+ <span><?php echo esc_html_e('From','clever-fox'); ?></span>
118
+ <strong><?php echo esc_html($packages_price); ?></strong>
119
+ </div>
120
+ <?php } ?>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ <?php
126
+ endwhile;
127
+ }
128
+ ?>
129
+ </div>
130
+ </div>
131
+ </section>
inc/aravalli/sections/section-room.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_aravalli_lite_room' ) ) :
3
+ function cleverfox_aravalli_lite_room() {
4
+ $room_hs = get_theme_mod('room_hs','1');
5
+ $room_title = get_theme_mod('room_title','Explore');
6
+ $room_subtitle = get_theme_mod('room_subtitle','Rooms & Suits');
7
+ $room_desc = get_theme_mod('room_desc',"Lorem Ipsum is simply dummy text of the printing and typesetting industryLorem Ipsum has been the industry's standard dummy text ever since the 1500s.of type and scrambled it to make a type specimen book.");
8
+ $room_contents = get_theme_mod('room_contents',aravalli_get_room_default());
9
+ if($room_hs == '1'){
10
+ ?>
11
+ <section id="rooms-section" class="rooms_suits room-home sec-default">
12
+ <div class="container">
13
+ <?php if(!empty($room_title) || !empty($room_subtitle) || !empty($room_desc)): ?>
14
+ <div class="row">
15
+ <div class="col-12">
16
+ <div class="heading-default wow fadeInUp">
17
+
18
+ <?php if(!empty($room_title)): ?>
19
+ <h6><?php echo wp_kses_post($room_title); ?></h6>
20
+ <?php endif; ?>
21
+
22
+ <?php if(!empty($room_subtitle)): ?>
23
+ <h3><?php echo wp_kses_post($room_subtitle); ?><span class="line-circle"></span></h3>
24
+ <?php endif; ?>
25
+
26
+ <?php if(!empty($room_desc)): ?>
27
+ <p> <?php echo esc_html($room_desc); ?></p>
28
+ <?php endif; ?>
29
+
30
+ </div>
31
+ </div>
32
+ </div>
33
+ <?php endif; ?>
34
+ <div class="row">
35
+ <?php
36
+ if ( ! empty( $room_contents ) ) {
37
+ $room_contents = json_decode( $room_contents );
38
+ foreach ( $room_contents as $room_item ) {
39
+ $title = ! empty( $room_item->title ) ? apply_filters( 'aravalli_translate_single_string', $room_item->title, 'Room section' ) : '';
40
+ $subtitle = ! empty( $room_item->subtitle ) ? apply_filters( 'aravalli_translate_single_string', $room_item->subtitle, 'Room section' ) : '';
41
+ $text = ! empty( $room_item->text ) ? apply_filters( 'aravalli_translate_single_string', $room_item->text, 'Room section' ) : '';
42
+ $ribbon_text = ! empty( $room_item->button) ? apply_filters( 'aravalli_translate_single_string', $room_item->button,'Room section' ) : '';
43
+ $button = ! empty( $room_item->text2) ? apply_filters( 'aravalli_translate_single_string', $room_item->text2,'Room section' ) : '';
44
+ $link = ! empty( $room_item->link ) ? apply_filters( 'aravalli_translate_single_string', $room_item->link, 'Room section' ) : '';
45
+ $image = ! empty( $room_item->image_url ) ? apply_filters( 'aravalli_translate_single_string', $room_item->image_url, 'Room section' ) : '';
46
+ ?>
47
+ <div class="col-md-6 col-lg-4 mb-4">
48
+ <article class="post-single wow fadeInUp">
49
+ <?php if ( ! empty( $image ) ) : ?>
50
+ <div class="post-thumbnail">
51
+ <div class="post-img"><img src="<?php echo esc_url( $image ); ?>" alt=""></div>
52
+ <div class="ribbon-container"><span class="ribbon ribbon-red"><?php echo esc_html($ribbon_text); ?></span></div>
53
+ <?php if (!empty($title) ): ?>
54
+ <div class="price-bedge"><?php echo esc_html($title); ?></div>
55
+ <?php endif; ?>
56
+ </div>
57
+ <?php endif; ?>
58
+ <div class="post-content">
59
+ <div class="post-content-inner">
60
+ <?php if (!empty($subtitle) ): ?>
61
+ <h3 class="post-title"><a href="<?php echo esc_url($link); ?>"><?php echo esc_html($subtitle); ?></a></h3>
62
+ <?php endif; ?>
63
+ <p><?php echo esc_html($text); ?></p>
64
+ <?php if(!empty($button)): ?>
65
+ <a href="<?php echo esc_url($link); ?>" class="btn-shape btn-line-primary"><?php echo esc_html($button); ?></a>
66
+ <?php endif; ?>
67
+ </div>
68
+ </div>
69
+ </article>
70
+ </div>
71
+ <?php } } ?>
72
+ </div>
73
+ </div>
74
+ </section>
75
+ <?php
76
+ }}
77
+ endif;
78
+ if ( function_exists( 'cleverfox_aravalli_lite_room' ) ) {
79
+ $section_priority = apply_filters( 'aravalli_section_priority', 13, 'cleverfox_aravalli_lite_room' );
80
+ add_action( 'aravalli_sections', 'cleverfox_aravalli_lite_room', absint( $section_priority ) );
81
+ }
inc/aravalli/sections/section-slider.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_aravalli_lite_slider' ) ) :
3
+ function cleverfox_aravalli_lite_slider() {
4
+ $slider = get_theme_mod('slider',aravalli_get_slider_default());
5
+ ?>
6
+ <section id="slider-section" class="slider-wrapper">
7
+ <div class="main-slider owl-carousel owl-theme">
8
+ <?php
9
+ if ( ! empty( $slider ) ) {
10
+ $slider = json_decode( $slider );
11
+ foreach ( $slider as $slide_item ) {
12
+ $aravalli_slide_title = ! empty( $slide_item->title ) ? apply_filters( 'aravalli_translate_single_string', $slide_item->title, 'slider section' ) : '';
13
+ $text = ! empty( $slide_item->text ) ? apply_filters( 'aravalli_translate_single_string', $slide_item->text, 'slider section' ) : '';
14
+ $button = ! empty( $slide_item->text2) ? apply_filters( 'aravalli_translate_single_string', $slide_item->text2,'slider section' ) : '';
15
+ $link = ! empty( $slide_item->link ) ? apply_filters( 'aravalli_translate_single_string', $slide_item->link, 'slider section' ) : '';
16
+ $image = ! empty( $slide_item->image_url ) ? apply_filters( 'aravalli_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
17
+ $image2 = ! empty( $slide_item->image_url2 ) ? apply_filters( 'aravalli_translate_single_string', $slide_item->image_url2, 'slider section' ) : '';
18
+ $align = ! empty( $slide_item->slide_align ) ? apply_filters( 'aravalli_translate_single_string', $slide_item->slide_align, 'slider section' ) : '';
19
+ ?>
20
+ <div class="item">
21
+ <?php if ( ! empty( $image ) ) : ?>
22
+ <img src="<?php echo esc_url( $image ); ?>" data-img-url="<?php echo esc_url( $image ); ?>" alt="">
23
+ <?php endif; ?>
24
+ <div class="theme-slider">
25
+ <div class="theme-table">
26
+ <div class="theme-table-cell">
27
+ <div class="container">
28
+ <div class="theme-content text-<?php echo esc_attr($align); ?>">
29
+
30
+ <?php if ( ! empty( $aravalli_slide_title )) : ?>
31
+ <h1 data-animation="fadeInLeft" data-delay="200ms"><?php echo esc_html( $aravalli_slide_title ); ?></h1>
32
+ <?php endif; ?>
33
+
34
+ <?php if ( ! empty( $text ) ) : ?>
35
+ <p data-animation="fadeInLeft" data-delay="500ms"><?php echo esc_html( $text ); ?></p>
36
+ <?php endif; ?>
37
+
38
+ <?php if ( ! empty( $button ) ) : ?>
39
+ <a data-animation="fadeInUp" data-delay="800ms" href="<?php echo esc_url( $link ); ?>" class="btn-shape btn-line-primary"><?php echo esc_html( $button ); ?></a>
40
+ <?php endif; ?>
41
+
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <?php } } ?>
49
+ </div>
50
+ </section>
51
+ <?php
52
+ }
53
+ endif;
54
+ if ( function_exists( 'cleverfox_aravalli_lite_slider' ) ) {
55
+ $section_priority = apply_filters( 'aravalli_section_priority', 11, 'cleverfox_aravalli_lite_slider' );
56
+ add_action( 'aravalli_sections', 'cleverfox_aravalli_lite_slider', absint( $section_priority ) );
57
+ }
inc/cleverfox-activator.php CHANGED
@@ -107,6 +107,12 @@ class Cleverfox_Activator {
107
  require CLEVERFOX_PLUGIN_DIR . 'inc/metasoft/default-widgets/default-widget.php';
108
  }
109
 
 
 
 
 
 
 
110
  update_option( 'item_details_page', 'Done' );
111
  }
112
  }
107
  require CLEVERFOX_PLUGIN_DIR . 'inc/metasoft/default-widgets/default-widget.php';
108
  }
109
 
110
+ if ( 'Aravalli' == $theme->name){
111
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-pages/upload-media.php';
112
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-pages/home-page.php';
113
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-widgets/default-widget.php';
114
+ }
115
+
116
  update_option( 'item_details_page', 'Done' );
117
  }
118
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: demo, sections, customizer, widget, settings
4
  Requires at least: 4.0
5
  Tested up to: 5.8
6
  Requires PHP: 5.6
7
- Stable tag: 6.5
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -103,6 +103,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
103
 
104
  == Changelog ==
105
 
 
 
 
106
  = 6.5 =
107
  * Axtria Upsale Links Added
108
  * Readme Updated
4
  Requires at least: 4.0
5
  Tested up to: 5.8
6
  Requires PHP: 5.6
7
+ Stable tag: 6.6
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
103
 
104
  == Changelog ==
105
 
106
+ = 6.6 =
107
+ * Aravalli Theme Functionality Added
108
+
109
  = 6.5 =
110
  * Axtria Upsale Links Added
111
  * Readme Updated