Clever Fox - Version 14.7

Version Description

  • Eduvert Theme Files Added
Download this release

Release Info

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

Code changes from version 14.6 to 14.7

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 50000+ trusted websites with Nayra Themes. It provides intuitive features to your website. 20+ Themes compatible with Clever Fox. See below free themes listed here. Avril is one of Popular themes in our collections.
6
- Version: 14.6
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -148,6 +148,10 @@ function cleverfox_activate() {
148
  require_once('inc/ampark/ampark.php');
149
  }
150
 
 
 
 
 
151
  }
152
  add_action( 'init', 'cleverfox_activate' );
153
 
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 50000+ trusted websites with Nayra Themes. It provides intuitive features to your website. 20+ Themes compatible with Clever Fox. See below free themes listed here. Avril is one of Popular themes in our collections.
6
+ Version: 14.7
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
148
  require_once('inc/ampark/ampark.php');
149
  }
150
 
151
+ if( 'Eduvert' == $theme->name){
152
+ require_once('inc/eduvert/eduvert.php');
153
+ }
154
+
155
  }
156
  add_action( 'init', 'cleverfox_activate' );
157
 
inc/cleverfox-activator.php CHANGED
@@ -155,6 +155,12 @@ class Cleverfox_Activator {
155
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-widgets/default-widget.php';
156
  }
157
 
 
 
 
 
 
 
158
  update_option( 'item_details_page', 'Done' );
159
  }
160
  }
155
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-widgets/default-widget.php';
156
  }
157
 
158
+ if ( 'Eduvert' == $theme->name){
159
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/default-pages/upload-media.php';
160
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/default-pages/home-page.php';
161
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/default-widgets/default-widget.php';
162
+ }
163
+
164
  update_option( 'item_details_page', 'Done' );
165
  }
166
  }
inc/eduvert/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/eduvert/default-pages/upload-media.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $file = CLEVERFOX_PLUGIN_URL .'inc/eduvert/images/logo.png';
3
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/eduvert/images';
4
+ $images = array(
5
+ $ImagePath. '/logo.png',
6
+ );
7
+ $parent_post_id = null;
8
+ foreach($images as $name) {
9
+ $filename = basename($name);
10
+ $upload_file = wp_upload_bits($filename, null, file_get_contents($name));
11
+ if (!$upload_file['error']) {
12
+ $wp_filetype = wp_check_filetype($filename, null );
13
+ $attachment = array(
14
+ 'post_mime_type' => $wp_filetype['type'],
15
+ 'post_parent' => $parent_post_id,
16
+ 'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
17
+ 'post_excerpt' => 'eduvert caption',
18
+ 'post_status' => 'inherit'
19
+ );
20
+ $ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
21
+
22
+ if (!is_wp_error($attachment_id)) {
23
+ require_once(ABSPATH . "wp-admin" . '/includes/image.php');
24
+ $attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
25
+ wp_update_attachment_metadata( $attachment_id, $attachment_data );
26
+ }
27
+ }
28
+
29
+ }
30
+
31
+ update_option( 'eduvert_media_id', $ImageId );
32
+
33
+ ?>
inc/eduvert/default-widgets/default-widget.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $activate = array(
3
+ 'eduvert-sidebar-primary' => array(
4
+ 'search-1',
5
+ 'recent-posts-1',
6
+ 'archives-1',
7
+ ),
8
+ 'eduvert-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' => '',
18
+ 'text'=>'
19
+ <div class="widget-content">
20
+ <div class="logo">
21
+ <a href=""><img src="'.CLEVERFOX_PLUGIN_URL.'inc/eduvert/images/logo.png"></a>
22
+ </div>
23
+ <p>There are many variations There are many variations of passages of Lorem Ipsum available.</p>
24
+ </div>
25
+ '),
26
+ 2 => array('title' => 'Recent Posts'),
27
+ 3 => array('title' => 'Categories'),
28
+ ));
29
+ update_option('widget_categories', array(
30
+ 1 => array('title' => 'Categories'),
31
+ 2 => array('title' => 'Categories')));
32
+
33
+ update_option('widget_archives', array(
34
+ 1 => array('title' => 'Archives'),
35
+ 2 => array('title' => 'Archives')));
36
+
37
+ update_option('widget_search', array(
38
+ 1 => array('title' => 'Search'),
39
+ 2 => array('title' => 'Search')));
40
+
41
+ update_option('sidebars_widgets', $activate);
42
+ $MediaId = get_option('eduvert_media_id');
43
+ set_theme_mod( 'custom_logo', $MediaId[0] );
44
+ ?>
inc/eduvert/dynamic-style.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( ! function_exists( 'cleverfox_eduvert_dynamic_styles' ) ):
3
+ function cleverfox_eduvert_dynamic_styles() {
4
+ $output_css = '';
5
+
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
+ $slider_overlay_enable = get_theme_mod('slider_overlay_enable','1');
21
+ $slide_overlay_color = get_theme_mod('slide_overlay_color','#1b575b');
22
+ if($slider_overlay_enable == '1') {
23
+ $output_css .=".slider-home {
24
+ background: " .esc_attr($slide_overlay_color). ";
25
+ }\n";
26
+ }
27
+
28
+ /**
29
+ * Typography Body
30
+ */
31
+ $eduvert_body_text_transform = get_theme_mod('eduvert_body_text_transform','inherit');
32
+ $eduvert_body_font_style = get_theme_mod('eduvert_body_font_style','inherit');
33
+ $eduvert_body_font_size = get_theme_mod('eduvert_body_font_size','15');
34
+ $eduvert_body_line_height = get_theme_mod('eduvert_body_line_height','1.5');
35
+
36
+ $output_css .=" body{
37
+ font-size: " .esc_attr($eduvert_body_font_size). "px;
38
+ line-height: " .esc_attr($eduvert_body_line_height). ";
39
+ text-transform: " .esc_attr($eduvert_body_text_transform). ";
40
+ font-style: " .esc_attr($eduvert_body_font_style). ";
41
+ }\n";
42
+
43
+ /**
44
+ * Typography Heading
45
+ */
46
+ for ( $i = 1; $i <= 6; $i++ ) {
47
+ $eduvert_heading_text_transform = get_theme_mod('eduvert_h' . $i . '_text_transform','inherit');
48
+ $eduvert_heading_font_style = get_theme_mod('eduvert_h' . $i . '_font_style','inherit');
49
+ $eduvert_heading_font_size = get_theme_mod('eduvert_h' . $i . '_font_size');
50
+ $eduvert_heading_line_height = get_theme_mod('eduvert_h' . $i . '_line_height');
51
+
52
+ $output_css .=" h" . $i . "{
53
+ font-size: " .esc_attr($eduvert_heading_font_size). "px;
54
+ line-height: " .esc_attr($eduvert_heading_line_height). ";
55
+ text-transform: " .esc_attr($eduvert_heading_text_transform). ";
56
+ font-style: " .esc_attr($eduvert_heading_font_style). ";
57
+ }\n";
58
+ }
59
+
60
+
61
+ wp_add_inline_style( 'eduvert-style', $output_css );
62
+ }
63
+ endif;
64
+ add_action( 'wp_enqueue_scripts', 'cleverfox_eduvert_dynamic_styles' );
65
+ ?>
inc/eduvert/eduvert.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Eduvert
4
+ */
5
+
6
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/extras.php';
7
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/dynamic-style.php';
8
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/features/eduvert-header.php';
9
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/features/eduvert-slider.php';
10
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/features/eduvert-course-category.php';
11
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/features/eduvert-funfact.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/features/eduvert-video.php';
13
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/features/eduvert-typography.php';
14
+
15
+ if ( ! function_exists( 'cleverfox_eduvert_frontpage_sections' ) ) :
16
+ function cleverfox_eduvert_frontpage_sections() {
17
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/sections/section-slider.php';
18
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/sections/section-course-category.php';
19
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/sections/section-video.php';
20
+ require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/sections/section-funfact.php';
21
+ }
22
+ add_action( 'eduvert_sections', 'cleverfox_eduvert_frontpage_sections' );
23
+ endif;
24
+
25
+
26
+ function cleverfox_eduvert_enqueue_scripts() {
27
+ wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
28
+ }
29
+ add_action( 'wp_enqueue_scripts', 'cleverfox_eduvert_enqueue_scripts' );
inc/eduvert/extras.php ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Eduvert Above Header Social
4
+ */
5
+ if ( ! function_exists( 'eduvert_abv_hdr_social' ) ) {
6
+ function eduvert_abv_hdr_social() {
7
+ //above_header_first
8
+ $hide_show_social_icon = get_theme_mod( 'hide_show_social_icon','1');
9
+ $social_icons = get_theme_mod( 'social_icons',eduvert_get_social_icon_default());
10
+
11
+ if($hide_show_social_icon == '1') { ?>
12
+ <li>
13
+ <div class="widget-left text-nt-left text-center">
14
+ <aside class="widget widget-social-widget">
15
+ <ul>
16
+ <?php
17
+ $social_icons = json_decode($social_icons);
18
+ if( $social_icons!='' )
19
+ {
20
+ foreach($social_icons as $social_item){
21
+ $social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'eduvert_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
22
+ $social_link = ! empty( $social_item->link ) ? apply_filters( 'eduvert_translate_single_string', $social_item->link, 'Header section' ) : '';
23
+ ?>
24
+ <li><a class="<?php echo esc_attr(substr(str_replace("-","",$social_icon),2)); ?>" href="<?php echo esc_url( $social_link ); ?>"><i class="fa <?php echo esc_attr( $social_icon ); ?>"></i></a></li>
25
+ <?php }} ?>
26
+ </ul>
27
+ </aside>
28
+ </div>
29
+ </li>
30
+ <?php }
31
+ }
32
+ }
33
+ add_action( 'eduvert_abv_hdr_social', 'eduvert_abv_hdr_social' );
34
+
35
+ /*
36
+ *
37
+ * Social Icon
38
+ */
39
+ function eduvert_get_social_icon_default() {
40
+ return apply_filters(
41
+ 'eduvert_get_social_icon_default', json_encode(
42
+ array(
43
+ array(
44
+ 'icon_value' => esc_html__( 'fa-facebook', 'clever-fox' ),
45
+ 'link' => esc_html__( '#', 'clever-fox' ),
46
+ 'id' => 'customizer_repeater_header_social_001',
47
+ ),
48
+ array(
49
+ 'icon_value' => esc_html__( 'fa-google-plus', 'clever-fox' ),
50
+ 'link' => esc_html__( '#', 'clever-fox' ),
51
+ 'id' => 'customizer_repeater_header_social_002',
52
+ ),
53
+ array(
54
+ 'icon_value' => esc_html__( 'fa-twitter', 'clever-fox' ),
55
+ 'link' => esc_html__( '#', 'clever-fox' ),
56
+ 'id' => 'customizer_repeater_header_social_003',
57
+ )
58
+ )
59
+ )
60
+ );
61
+ }
62
+
63
+
64
+ /*
65
+ *
66
+ * Slider Default
67
+ */
68
+ function eduvert_get_slider_default() {
69
+ return apply_filters(
70
+ 'eduvert_get_slider_default', json_encode(
71
+ array(
72
+ array(
73
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/eduvert/images/slider/slide1.png',
74
+ 'title' => esc_html__( 'The Leader In Online Learning', 'clever-fox' ),
75
+ 'subtitle' => esc_html__( 'Build in increadible learning', 'clever-fox' ),
76
+ 'subtitle2' => esc_html__( 'Experience', 'clever-fox' ),
77
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
78
+ 'text2' => esc_html__( 'Explore Course', 'clever-fox' ),
79
+ 'link' => esc_html__( '#', 'clever-fox' ),
80
+ 'id' => 'customizer_repeater_slider_001',
81
+ ),
82
+ array(
83
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/eduvert/images/slider/slide2.png',
84
+ 'title' => esc_html__( 'The Leader In Online Learning', 'clever-fox' ),
85
+ 'subtitle' => esc_html__( 'Build in increadible learning', 'clever-fox' ),
86
+ 'subtitle2' => esc_html__( 'Experience', 'clever-fox' ),
87
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
88
+ 'text2' => esc_html__( 'Explore Course', 'clever-fox' ),
89
+ 'link' => esc_html__( '#', 'clever-fox' ),
90
+ 'id' => 'customizer_repeater_slider_002',
91
+ ),
92
+ array(
93
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/eduvert/images/slider/slide3.png',
94
+ 'title' => esc_html__( 'The Leader In Online Learning', 'clever-fox' ),
95
+ 'subtitle' => esc_html__( 'Build in increadible learning', 'clever-fox' ),
96
+ 'subtitle2' => esc_html__( 'Experience', 'clever-fox' ),
97
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
98
+ 'text2' => esc_html__( 'Explore Course', 'clever-fox' ),
99
+ 'link' => esc_html__( '#', 'clever-fox' ),
100
+ 'id' => 'customizer_repeater_slider_003',
101
+ ),
102
+ )
103
+ )
104
+ );
105
+ }
106
+
107
+
108
+ /*
109
+ *
110
+ * Course Category Default
111
+ */
112
+ function eduvert_get_course_cat_default() {
113
+ return apply_filters(
114
+ 'eduvert_get_course_cat_default', json_encode(
115
+ array(
116
+ array(
117
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/eduvert/images/categorie/Image.png',
118
+ 'title' => esc_html__( 'All Courses', 'clever-fox' ),
119
+ 'subtitle' => esc_html__( '14 course', 'clever-fox' ),
120
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available', 'clever-fox' ),
121
+ 'link' => esc_html__( '#', 'clever-fox' ),
122
+ 'id' => 'customizer_repeater_course_cat_001',
123
+ ),
124
+ array(
125
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/eduvert/images/categorie/Image-1.png',
126
+ 'title' => esc_html__( 'Business Course', 'clever-fox' ),
127
+ 'subtitle' => esc_html__( '4 course', 'clever-fox' ),
128
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available', 'clever-fox' ),
129
+ 'link' => esc_html__( '#', 'clever-fox' ),
130
+ 'id' => 'customizer_repeater_course_cat_002',
131
+ ),
132
+ array(
133
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/eduvert/images/categorie/Image-2.png',
134
+ 'title' => esc_html__( 'Graphics Design', 'clever-fox' ),
135
+ 'subtitle' => esc_html__( '7 course', 'clever-fox' ),
136
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available', 'clever-fox' ),
137
+ 'link' => esc_html__( '#', 'clever-fox' ),
138
+ 'id' => 'customizer_repeater_course_cat_003',
139
+ ),
140
+ array(
141
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/eduvert/images/categorie/Image-3.png',
142
+ 'title' => esc_html__( 'Web Developer', 'clever-fox' ),
143
+ 'subtitle' => esc_html__( '6 course', 'clever-fox' ),
144
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available', 'clever-fox' ),
145
+ 'link' => esc_html__( '#', 'clever-fox' ),
146
+ 'id' => 'customizer_repeater_course_cat_004',
147
+ )
148
+ )
149
+ )
150
+ );
151
+ }
152
+
153
+
154
+ /*
155
+ *
156
+ * Funfact Default
157
+ */
158
+ function eduvert_get_funfact_default() {
159
+ return apply_filters(
160
+ 'eduvert_get_funfact_default', json_encode(
161
+ array(
162
+ array(
163
+ 'icon_value' => 'fa-user',
164
+ 'title' => esc_html__( '786', 'clever-fox' ),
165
+ 'subtitle' => esc_html__( 'K', 'clever-fox' ),
166
+ 'text' => esc_html__( 'Happy Students', 'clever-fox' ),
167
+ 'id' => 'customizer_repeater_funfact_001'
168
+ ),
169
+ array(
170
+ 'icon_value' => 'fa-calendar-plus-o',
171
+ 'title' => esc_html__( '25', 'clever-fox' ),
172
+ 'subtitle' => esc_html__( '+', 'clever-fox' ),
173
+ 'text' => esc_html__( 'Our Experience', 'clever-fox' ),
174
+ 'id' => 'customizer_repeater_funfact_002'
175
+ ),
176
+ array(
177
+ 'icon_value' => 'fa-trophy',
178
+ 'title' => esc_html__( '456', 'clever-fox' ),
179
+ 'subtitle' => esc_html__( '+', 'clever-fox' ),
180
+ 'text' => esc_html__( 'Award Earned', 'clever-fox' ),
181
+ 'id' => 'customizer_repeater_funfact_003'
182
+ ),
183
+ array(
184
+ 'icon_value' => 'fa-star',
185
+ 'title' => esc_html__( '4.5', 'clever-fox' ),
186
+ 'subtitle' => esc_html__( 'K', 'clever-fox' ),
187
+ 'text' => esc_html__( 'Student Review', 'clever-fox' ),
188
+ 'id' => 'customizer_repeater_funfact_004'
189
+ ),
190
+ )
191
+ )
192
+ );
193
+ }
194
+
195
+
inc/eduvert/features/eduvert-course-category.php ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function eduvert_course_category_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Course Category Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'course_category_setting', array(
9
+ 'title' => esc_html__( 'Course Category Section', 'clever-fox' ),
10
+ 'priority' => 2,
11
+ 'panel' => 'eduvert_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Setting Head
16
+ $wp_customize->add_setting(
17
+ 'course_cat_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'eduvert_sanitize_text',
21
+ 'priority' => 1,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'course_cat_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','clever-fox'),
30
+ 'section' => 'course_category_setting',
31
+ )
32
+ );
33
+
34
+ // Hide / Show
35
+ $wp_customize->add_setting(
36
+ 'course_cat_hs'
37
+ ,array(
38
+ 'default' => '1',
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'eduvert_sanitize_checkbox',
41
+ 'priority' => 1,
42
+ )
43
+ );
44
+
45
+ $wp_customize->add_control(
46
+ 'course_cat_hs',
47
+ array(
48
+ 'type' => 'checkbox',
49
+ 'label' => __('Hide / Show','clever-fox'),
50
+ 'section' => 'course_category_setting',
51
+ )
52
+ );
53
+
54
+ // Course Category Header Section //
55
+ $wp_customize->add_setting(
56
+ 'course_category_headings'
57
+ ,array(
58
+ 'capability' => 'edit_theme_options',
59
+ 'sanitize_callback' => 'eduvert_sanitize_text',
60
+ 'priority' => 3,
61
+ )
62
+ );
63
+
64
+ $wp_customize->add_control(
65
+ 'course_category_headings',
66
+ array(
67
+ 'type' => 'hidden',
68
+ 'label' => __('Header','clever-fox'),
69
+ 'section' => 'course_category_setting',
70
+ )
71
+ );
72
+
73
+ // Course Category Title //
74
+ $wp_customize->add_setting(
75
+ 'course_category_title',
76
+ array(
77
+ 'default' => __('course categories','clever-fox'),
78
+ 'capability' => 'edit_theme_options',
79
+ 'sanitize_callback' => 'eduvert_sanitize_html',
80
+ 'transport' => $selective_refresh,
81
+ 'priority' => 4,
82
+ )
83
+ );
84
+
85
+ $wp_customize->add_control(
86
+ 'course_category_title',
87
+ array(
88
+ 'label' => __('Title','clever-fox'),
89
+ 'section' => 'course_category_setting',
90
+ 'type' => 'text',
91
+ )
92
+ );
93
+
94
+ // Course Category Description //
95
+ $wp_customize->add_setting(
96
+ 'course_category_description',
97
+ array(
98
+ 'default' => __('popular topics to learn','clever-fox'),
99
+ 'capability' => 'edit_theme_options',
100
+ 'sanitize_callback' => 'eduvert_sanitize_text',
101
+ 'transport' => $selective_refresh,
102
+ 'priority' => 6,
103
+ )
104
+ );
105
+
106
+ $wp_customize->add_control(
107
+ 'course_category_description',
108
+ array(
109
+ 'label' => __('Description','clever-fox'),
110
+ 'section' => 'course_category_setting',
111
+ 'type' => 'textarea',
112
+ )
113
+ );
114
+
115
+ // Course Category content Section //
116
+
117
+ $wp_customize->add_setting(
118
+ 'course_category_content_head'
119
+ ,array(
120
+ 'capability' => 'edit_theme_options',
121
+ 'sanitize_callback' => 'eduvert_sanitize_text',
122
+ 'priority' => 7,
123
+ )
124
+ );
125
+
126
+ $wp_customize->add_control(
127
+ 'course_category_content_head',
128
+ array(
129
+ 'type' => 'hidden',
130
+ 'label' => __('Content','clever-fox'),
131
+ 'section' => 'course_category_setting',
132
+ )
133
+ );
134
+
135
+ /**
136
+ * Customizer Repeater for add Course Category
137
+ */
138
+
139
+ $wp_customize->add_setting( 'course_category',
140
+ array(
141
+ 'sanitize_callback' => 'eduvert_repeater_sanitize',
142
+ 'priority' => 7,
143
+ 'default' => eduvert_get_course_cat_default()
144
+ )
145
+ );
146
+
147
+ $wp_customize->add_control(
148
+ new Eduvert_Repeater( $wp_customize,
149
+ 'course_category',
150
+ array(
151
+ 'label' => esc_html__('Course Category','clever-fox'),
152
+ 'section' => 'course_category_setting',
153
+ 'add_field_label' => esc_html__( 'Add New Course', 'clever-fox' ),
154
+ 'item_name' => esc_html__( 'Course', 'clever-fox' ),
155
+
156
+
157
+ 'customizer_repeater_title_control' => true,
158
+ 'customizer_repeater_subtitle_control' => true,
159
+ 'customizer_repeater_text_control' => true,
160
+ 'customizer_repeater_link_control' => true,
161
+ 'customizer_repeater_image_control' => true,
162
+ )
163
+ )
164
+ );
165
+
166
+
167
+ //Pro feature
168
+ class Eduvert_course__section_upgrade extends WP_Customize_Control {
169
+ public function render_content() {
170
+ ?>
171
+ <a class="customizer_course_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
172
+
173
+ <?php
174
+ }
175
+ }
176
+
177
+ $wp_customize->add_setting( 'eduvert_course_upgrade_to_pro', array(
178
+ 'capability' => 'edit_theme_options',
179
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
180
+ 'priority' => 8,
181
+ ));
182
+ $wp_customize->add_control(
183
+ new Eduvert_course__section_upgrade(
184
+ $wp_customize,
185
+ 'eduvert_course_upgrade_to_pro',
186
+ array(
187
+ 'section' => 'course_category_setting',
188
+ 'settings' => 'eduvert_course_upgrade_to_pro',
189
+ )
190
+ )
191
+ );
192
+
193
+ // Course Category Button Label //
194
+ $wp_customize->add_setting(
195
+ 'course_category_btn_lbl',
196
+ array(
197
+ 'default' => __('All Categories','clever-fox'),
198
+ 'capability' => 'edit_theme_options',
199
+ 'sanitize_callback' => 'eduvert_sanitize_html',
200
+ 'transport' => $selective_refresh,
201
+ 'priority' => 9,
202
+ )
203
+ );
204
+
205
+ $wp_customize->add_control(
206
+ 'course_category_btn_lbl',
207
+ array(
208
+ 'label' => __('All Categories Button Label','clever-fox'),
209
+ 'section' => 'course_category_setting',
210
+ 'type' => 'text',
211
+ )
212
+ );
213
+
214
+
215
+ // Course Category Button Link //
216
+ $wp_customize->add_setting(
217
+ 'course_category_btn_link',
218
+ array(
219
+ 'default' => '#',
220
+ 'capability' => 'edit_theme_options',
221
+ 'sanitize_callback' => 'eduvert_sanitize_url',
222
+ 'transport' => $selective_refresh,
223
+ 'priority' => 9,
224
+ )
225
+ );
226
+
227
+ $wp_customize->add_control(
228
+ 'course_category_btn_link',
229
+ array(
230
+ 'label' => __('All Categories Button Link','clever-fox'),
231
+ 'section' => 'course_category_setting',
232
+ 'type' => 'text',
233
+ )
234
+ );
235
+ }
236
+
237
+ add_action( 'customize_register', 'eduvert_course_category_setting' );
238
+
239
+ // selective refresh
240
+ function eduvert_home_course_category_section_partials( $wp_customize ){
241
+ // course_category_title
242
+ $wp_customize->selective_refresh->add_partial( 'course_category_title', array(
243
+ 'selector' => '.section-category.home1-cat .section-title h5',
244
+ 'settings' => 'course_category_title',
245
+ 'render_callback' => 'eduvert_course_category_title_render_callback',
246
+ ) );
247
+
248
+ // course_category_description
249
+ $wp_customize->selective_refresh->add_partial( 'course_category_description', array(
250
+ 'selector' => '.section-category.home1-cat .section-title h3',
251
+ 'settings' => 'course_category_description',
252
+ 'render_callback' => 'eduvert_course_category_desc_render_callback',
253
+ ) );
254
+
255
+ // course_category_btn_lbl
256
+ $wp_customize->selective_refresh->add_partial( 'course_category_btn_lbl', array(
257
+ 'selector' => '.section-category.home1-cat .categorie-btn a',
258
+ 'settings' => 'course_category_btn_lbl',
259
+ 'render_callback' => 'eduvert_course_category_btn_lbl_render_callback',
260
+ ) );
261
+
262
+ }
263
+
264
+ add_action( 'customize_register', 'eduvert_home_course_category_section_partials' );
265
+
266
+ // course_category_title
267
+ function eduvert_course_category_title_render_callback() {
268
+ return get_theme_mod( 'course_category_title' );
269
+ }
270
+
271
+ // course_category_description
272
+ function eduvert_course_category_desc_render_callback() {
273
+ return get_theme_mod( 'course_category_description' );
274
+ }
275
+
276
+ // course_category_btn_lbl
277
+ function eduvert_course_category_btn_lbl_render_callback() {
278
+ return get_theme_mod( 'course_category_btn_lbl' );
279
+ }
inc/eduvert/features/eduvert-funfact.php ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function eduvert_funfact_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Funfact Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'funfact_setting', array(
9
+ 'title' => esc_html__( 'Funfact Section', 'clever-fox' ),
10
+ 'priority' => 6,
11
+ 'panel' => 'eduvert_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Setting Head
16
+ $wp_customize->add_setting(
17
+ 'funfact_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'eduvert_sanitize_text',
21
+ 'priority' => 1,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'funfact_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','clever-fox'),
30
+ 'section' => 'funfact_setting',
31
+ )
32
+ );
33
+
34
+ // Hide / Show
35
+ $wp_customize->add_setting(
36
+ 'funfact_hs'
37
+ ,array(
38
+ 'default' => '1',
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'eduvert_sanitize_checkbox',
41
+ 'priority' => 1,
42
+ )
43
+ );
44
+
45
+ $wp_customize->add_control(
46
+ 'funfact_hs',
47
+ array(
48
+ 'type' => 'checkbox',
49
+ 'label' => __('Hide / Show','clever-fox'),
50
+ 'section' => 'funfact_setting',
51
+ )
52
+ );
53
+
54
+ // Funfact Header Section //
55
+ $wp_customize->add_setting(
56
+ 'funfact_headings'
57
+ ,array(
58
+ 'capability' => 'edit_theme_options',
59
+ 'sanitize_callback' => 'eduvert_sanitize_text',
60
+ 'priority' => 3,
61
+ )
62
+ );
63
+
64
+ $wp_customize->add_control(
65
+ 'funfact_headings',
66
+ array(
67
+ 'type' => 'hidden',
68
+ 'label' => __('Header','clever-fox'),
69
+ 'section' => 'funfact_setting',
70
+ )
71
+ );
72
+
73
+ // Title //
74
+ $wp_customize->add_setting(
75
+ 'funfact_title',
76
+ array(
77
+ 'default' => __('Why Choose us','clever-fox'),
78
+ 'capability' => 'edit_theme_options',
79
+ 'sanitize_callback' => 'eduvert_sanitize_html',
80
+ 'transport' => $selective_refresh,
81
+ 'priority' => 4,
82
+ )
83
+ );
84
+
85
+ $wp_customize->add_control(
86
+ 'funfact_title',
87
+ array(
88
+ 'label' => __('Title','clever-fox'),
89
+ 'section' => 'funfact_setting',
90
+ 'type' => 'text',
91
+ )
92
+ );
93
+
94
+ // Subtitle //
95
+ $wp_customize->add_setting(
96
+ 'funfact_subttl',
97
+ array(
98
+ 'default' => __('we bring new developing idea & design','clever-fox'),
99
+ 'capability' => 'edit_theme_options',
100
+ 'sanitize_callback' => 'eduvert_sanitize_html',
101
+ 'transport' => $selective_refresh,
102
+ 'priority' => 4,
103
+ )
104
+ );
105
+
106
+ $wp_customize->add_control(
107
+ 'funfact_subttl',
108
+ array(
109
+ 'label' => __('Subtitle','clever-fox'),
110
+ 'section' => 'funfact_setting',
111
+ 'type' => 'text',
112
+ )
113
+ );
114
+
115
+ // Description //
116
+ $wp_customize->add_setting(
117
+ 'funfact_description',
118
+ array(
119
+ 'default' => __('There are many variations of passages of Lorem Ipsum available There are many variations of passages of Lorem Ipsum available are many variations of passages of Lorem Ipsum available There are many variations of passages of Lorem Ipsum available','clever-fox'),
120
+ 'capability' => 'edit_theme_options',
121
+ 'sanitize_callback' => 'eduvert_sanitize_html',
122
+ 'transport' => $selective_refresh,
123
+ 'priority' => 6,
124
+ )
125
+ );
126
+
127
+ $wp_customize->add_control(
128
+ 'funfact_description',
129
+ array(
130
+ 'label' => __('Description','clever-fox'),
131
+ 'section' => 'funfact_setting',
132
+ 'type' => 'textarea',
133
+ )
134
+ );
135
+
136
+ // Button Label //
137
+ $wp_customize->add_setting(
138
+ 'funfact_btn_lbl',
139
+ array(
140
+ 'default' => __('Choose Plan','clever-fox'),
141
+ 'capability' => 'edit_theme_options',
142
+ 'sanitize_callback' => 'eduvert_sanitize_html',
143
+ 'transport' => $selective_refresh,
144
+ 'priority' => 6,
145
+ )
146
+ );
147
+
148
+ $wp_customize->add_control(
149
+ 'funfact_btn_lbl',
150
+ array(
151
+ 'label' => __('Button Label','clever-fox'),
152
+ 'section' => 'funfact_setting',
153
+ 'type' => 'text',
154
+ )
155
+ );
156
+
157
+ // Button Link //
158
+ $wp_customize->add_setting(
159
+ 'funfact_btn_link',
160
+ array(
161
+ 'default' => '#',
162
+ 'capability' => 'edit_theme_options',
163
+ 'sanitize_callback' => 'eduvert_sanitize_url',
164
+ 'transport' => $selective_refresh,
165
+ 'priority' => 6,
166
+ )
167
+ );
168
+
169
+ $wp_customize->add_control(
170
+ 'funfact_btn_link',
171
+ array(
172
+ 'label' => __('Button Link','clever-fox'),
173
+ 'section' => 'funfact_setting',
174
+ 'type' => 'text',
175
+ )
176
+ );
177
+
178
+
179
+ // Funfact content Section //
180
+
181
+ $wp_customize->add_setting(
182
+ 'funfact_content_head'
183
+ ,array(
184
+ 'capability' => 'edit_theme_options',
185
+ 'sanitize_callback' => 'eduvert_sanitize_text',
186
+ 'priority' => 7,
187
+ )
188
+ );
189
+
190
+ $wp_customize->add_control(
191
+ 'funfact_content_head',
192
+ array(
193
+ 'type' => 'hidden',
194
+ 'label' => __('Content','clever-fox'),
195
+ 'section' => 'funfact_setting',
196
+ )
197
+ );
198
+
199
+
200
+ /**
201
+ * Customizer Repeater for add Funfact
202
+ */
203
+
204
+ $wp_customize->add_setting( 'funfact_contents',
205
+ array(
206
+ 'sanitize_callback' => 'eduvert_repeater_sanitize',
207
+ 'transport' => $selective_refresh,
208
+ 'priority' => 7,
209
+ 'default' => eduvert_get_funfact_default()
210
+ )
211
+ );
212
+
213
+ $wp_customize->add_control(
214
+ new Eduvert_Repeater( $wp_customize,
215
+ 'funfact_contents',
216
+ array(
217
+ 'label' => esc_html__('Funfact','clever-fox'),
218
+ 'section' => 'funfact_setting',
219
+ 'add_field_label' => esc_html__( 'Add New Funfact', 'clever-fox' ),
220
+ 'item_name' => esc_html__( 'Funfact', 'clever-fox' ),
221
+ 'customizer_repeater_icon_control' => true,
222
+ 'customizer_repeater_title_control' => true,
223
+ 'customizer_repeater_subtitle_control' => true,
224
+ 'customizer_repeater_text_control' => true,
225
+ )
226
+ )
227
+ );
228
+
229
+ //Pro feature
230
+ class Eduvert_funfact__section_upgrade extends WP_Customize_Control {
231
+ public function render_content() {
232
+ ?>
233
+ <a class="customizer_funfact_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
234
+
235
+ <?php
236
+ }
237
+ }
238
+
239
+ $wp_customize->add_setting( 'eduvert_funfact_upgrade_to_pro', array(
240
+ 'capability' => 'edit_theme_options',
241
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
242
+ 'priority' => 7,
243
+ ));
244
+ $wp_customize->add_control(
245
+ new Eduvert_funfact__section_upgrade(
246
+ $wp_customize,
247
+ 'eduvert_funfact_upgrade_to_pro',
248
+ array(
249
+ 'section' => 'funfact_setting',
250
+ 'settings' => 'eduvert_funfact_upgrade_to_pro',
251
+ )
252
+ )
253
+ );
254
+
255
+ }
256
+
257
+ add_action( 'customize_register', 'eduvert_funfact_setting' );
258
+
259
+ // selective refresh
260
+ function eduvert_home_funfact_section_partials( $wp_customize ){
261
+ // funfact_title
262
+ $wp_customize->selective_refresh->add_partial( 'funfact_title', array(
263
+ 'selector' => '.section-funfact.home1-funfact .section-title h5',
264
+ 'settings' => 'funfact_title',
265
+ 'render_callback' => 'eduvert_funfact_title_render_callback',
266
+ ) );
267
+
268
+ // funfact_subttl
269
+ $wp_customize->selective_refresh->add_partial( 'funfact_subttl', array(
270
+ 'selector' => '.section-funfact.home1-funfact .section-title h3',
271
+ 'settings' => 'funfact_subttl',
272
+ 'render_callback' => 'eduvert_funfact_subttl_render_callback',
273
+ ) );
274
+
275
+ // funfact_description
276
+ $wp_customize->selective_refresh->add_partial( 'funfact_description', array(
277
+ 'selector' => '.section-funfact.home1-funfact .section-title p',
278
+ 'settings' => 'funfact_description',
279
+ 'render_callback' => 'eduvert_funfact_desc_render_callback',
280
+ ) );
281
+
282
+ // funfact_btn_lbl
283
+ $wp_customize->selective_refresh->add_partial( 'funfact_btn_lbl', array(
284
+ 'selector' => '.section-funfact.home1-funfact .text-btn',
285
+ 'settings' => 'funfact_btn_lbl',
286
+ 'render_callback' => 'eduvert_funfact_btn_lbl_render_callback',
287
+ ) );
288
+
289
+ }
290
+ add_action( 'customize_register', 'eduvert_home_funfact_section_partials' );
291
+
292
+ // funfact_title
293
+ function eduvert_funfact_title_render_callback() {
294
+ return get_theme_mod( 'funfact_title' );
295
+ }
296
+
297
+ // funfact_subttl
298
+ function eduvert_funfact_subttl_render_callback() {
299
+ return get_theme_mod( 'funfact_subttl' );
300
+ }
301
+
302
+ // funfact_description
303
+ function eduvert_funfact_desc_render_callback() {
304
+ return get_theme_mod( 'funfact_description' );
305
+ }
306
+
307
+ // funfact_btn_lbl
308
+ function eduvert_funfact_btn_lbl_render_callback() {
309
+ return get_theme_mod( 'funfact_btn_lbl' );
310
+ }
inc/eduvert/features/eduvert-header.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function eduvert_lite_header_settings( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Eduvert Site Identity
6
+ =========================================*/
7
+
8
+ // Logo Width //
9
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
10
+ $wp_customize->add_setting(
11
+ 'logo_width',
12
+ array(
13
+ 'default' => '140',
14
+ 'capability' => 'edit_theme_options',
15
+ 'sanitize_callback' => 'eduvert_sanitize_range_value',
16
+ 'transport' => 'postMessage',
17
+ )
18
+ );
19
+ $wp_customize->add_control(
20
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'logo_width',
21
+ array(
22
+ 'label' => __( 'Logo Width', 'clever-fox' ),
23
+ 'section' => 'title_tagline',
24
+ 'input_attrs' => array(
25
+ 'min' => 0,
26
+ 'max' => 500,
27
+ 'step' => 1,
28
+ //'suffix' => 'px', //optional suffix
29
+ )
30
+ ) )
31
+ );
32
+ }
33
+
34
+ /*=========================================
35
+ Social
36
+ =========================================*/
37
+ $wp_customize->add_setting(
38
+ 'hdr_social_head'
39
+ ,array(
40
+ 'capability' => 'edit_theme_options',
41
+ 'sanitize_callback' => 'eduvert_sanitize_text',
42
+ 'priority' => 9,
43
+ )
44
+ );
45
+
46
+ $wp_customize->add_control(
47
+ 'hdr_social_head',
48
+ array(
49
+ 'type' => 'hidden',
50
+ 'label' => __('Social Icons','clever-fox'),
51
+ 'section' => 'header_navigation',
52
+ )
53
+ );
54
+
55
+
56
+ $wp_customize->add_setting(
57
+ 'hide_show_social_icon' ,
58
+ array(
59
+ 'default' => '1',
60
+ 'capability' => 'edit_theme_options',
61
+ 'sanitize_callback' => 'eduvert_sanitize_checkbox',
62
+ 'priority' => 10,
63
+ )
64
+ );
65
+
66
+ $wp_customize->add_control(
67
+ 'hide_show_social_icon',
68
+ array(
69
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
70
+ 'section' => 'header_navigation',
71
+ 'type' => 'checkbox'
72
+ )
73
+ );
74
+
75
+ /**
76
+ * Customizer Repeater
77
+ */
78
+ $wp_customize->add_setting( 'social_icons',
79
+ array(
80
+ 'sanitize_callback' => 'eduvert_repeater_sanitize',
81
+ 'priority' => 11,
82
+ 'default' => eduvert_get_social_icon_default()
83
+ )
84
+ );
85
+
86
+ $wp_customize->add_control(
87
+ new EDUVERT_Repeater( $wp_customize,
88
+ 'social_icons',
89
+ array(
90
+ 'label' => esc_html__('Social Icons','clever-fox'),
91
+ 'section' => 'header_navigation',
92
+ 'add_field_label' => esc_html__( 'Add New Social', 'clever-fox' ),
93
+ 'item_name' => esc_html__( 'Social', 'clever-fox' ),
94
+ 'customizer_repeater_icon_control' => true,
95
+ 'customizer_repeater_link_control' => true,
96
+ )
97
+ )
98
+ );
99
+
100
+ //Pro feature
101
+ class Eduvert_social__section_upgrade extends WP_Customize_Control {
102
+ public function render_content() {
103
+ ?>
104
+ <a class="customizer_social_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
105
+ <?php
106
+ }
107
+ }
108
+
109
+ $wp_customize->add_setting( 'eduvert_social_upgrade_to_pro', array(
110
+ 'capability' => 'edit_theme_options',
111
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
112
+ ));
113
+ $wp_customize->add_control(
114
+ new Eduvert_social__section_upgrade(
115
+ $wp_customize,
116
+ 'eduvert_social_upgrade_to_pro',
117
+ array(
118
+ 'section' => 'header_navigation',
119
+ 'settings' => 'eduvert_social_upgrade_to_pro',
120
+ )
121
+ )
122
+ );
123
+ }
124
+ add_action( 'customize_register', 'eduvert_lite_header_settings' );
125
+
inc/eduvert/features/eduvert-slider.php ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function eduvert_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' => 'eduvert_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' => 'eduvert_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' => 'eduvert_repeater_sanitize',
41
+ 'priority' => 5,
42
+ 'default' => eduvert_get_slider_default()
43
+ )
44
+ );
45
+
46
+ $wp_customize->add_control(
47
+ new Eduvert_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_title_control' => true,
57
+ 'customizer_repeater_subtitle_control' => true,
58
+ 'customizer_repeater_subtitle2_control' => true,
59
+ 'customizer_repeater_text_control' => true,
60
+ 'customizer_repeater_text2_control'=> true,
61
+ 'customizer_repeater_link_control' => true,
62
+ 'customizer_repeater_image_control' => true,
63
+ )
64
+ )
65
+ );
66
+
67
+ //Pro feature
68
+ class Eduvert_slider__section_upgrade extends WP_Customize_Control {
69
+ public function render_content() {
70
+ ?>
71
+ <a class="customizer_slider_upgrade_section up-to-pro" href="#" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
72
+
73
+ <?php
74
+ }
75
+ }
76
+
77
+ $wp_customize->add_setting( 'eduvert_slider_upgrade_to_pro', array(
78
+ 'capability' => 'edit_theme_options',
79
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
80
+ 'priority' => 5,
81
+ ));
82
+ $wp_customize->add_control(
83
+ new Eduvert_slider__section_upgrade(
84
+ $wp_customize,
85
+ 'eduvert_slider_upgrade_to_pro',
86
+ array(
87
+ 'section' => 'slider_setting',
88
+ 'settings' => 'eduvert_slider_upgrade_to_pro',
89
+ )
90
+ )
91
+ );
92
+
93
+ //Overlay Enable //
94
+ $wp_customize->add_setting(
95
+ 'slider_overlay_enable' ,
96
+ array(
97
+ 'default' => '1',
98
+ 'capability' => 'edit_theme_options',
99
+ 'sanitize_callback' => 'eduvert_sanitize_checkbox',
100
+ 'priority' => 6,
101
+ )
102
+ );
103
+
104
+ $wp_customize->add_control(
105
+ 'slider_overlay_enable',
106
+ array(
107
+ 'label' => esc_html__( 'Overlay Enable?', 'clever-fox' ),
108
+ 'section' => 'slider_setting',
109
+ 'type' => 'checkbox'
110
+ )
111
+ );
112
+
113
+ // Overlay Color
114
+ $wp_customize->add_setting(
115
+ 'slide_overlay_color',
116
+ array(
117
+ 'default' => '#1b575b',
118
+ 'capability' => 'edit_theme_options',
119
+ 'sanitize_callback' => 'sanitize_text_field',
120
+ 'priority' => 8,
121
+ ));
122
+
123
+ $wp_customize->add_control(
124
+ new WP_Customize_Color_Control
125
+ ($wp_customize,
126
+ 'slide_overlay_color',
127
+ array(
128
+ 'label' => __( 'Overlay Color', 'clever-fox' ),
129
+ 'section' => 'slider_setting'
130
+ )
131
+ )
132
+ );
133
+
134
+ //BG Element Enable //
135
+ $wp_customize->add_setting(
136
+ 'slider_bg_element_enable' ,
137
+ array(
138
+ 'default' => '1',
139
+ 'capability' => 'edit_theme_options',
140
+ 'sanitize_callback' => 'eduvert_sanitize_checkbox',
141
+ 'priority' => 8,
142
+ )
143
+ );
144
+
145
+ $wp_customize->add_control(
146
+ 'slider_bg_element_enable',
147
+ array(
148
+ 'label' => esc_html__( 'BG Element Enable?', 'clever-fox' ),
149
+ 'section' => 'slider_setting',
150
+ 'type' => 'checkbox'
151
+ )
152
+ );
153
+ }
154
+
155
+ add_action( 'customize_register', 'eduvert_slider_setting' );
inc/eduvert/features/eduvert-typography.php ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function eduvert_typography( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+
5
+ $wp_customize->add_panel(
6
+ 'eduvert_typography', array(
7
+ 'priority' => 38,
8
+ 'title' => esc_html__( 'Typography', 'clever-fox' ),
9
+ )
10
+ );
11
+
12
+ /*=========================================
13
+ Eduvert Typography
14
+ =========================================*/
15
+ $wp_customize->add_section(
16
+ 'eduvert_typography',
17
+ array(
18
+ 'priority' => 1,
19
+ 'title' => __('Body Typography','clever-fox'),
20
+ 'panel' => 'eduvert_typography',
21
+ )
22
+ );
23
+
24
+ // Body Font Size //
25
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
26
+ $wp_customize->add_setting(
27
+ 'eduvert_body_font_size',
28
+ array(
29
+ 'default' => '15',
30
+ 'capability' => 'edit_theme_options',
31
+ 'sanitize_callback' => 'eduvert_sanitize_range_value',
32
+ 'transport' => 'postMessage',
33
+ )
34
+ );
35
+ $wp_customize->add_control(
36
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'eduvert_body_font_size',
37
+ array(
38
+ 'label' => __( 'Size', 'clever-fox' ),
39
+ 'section' => 'eduvert_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
+ 'eduvert_body_line_height',
55
+ array(
56
+ 'default' => '1.5',
57
+ 'capability' => 'edit_theme_options',
58
+ 'sanitize_callback' => 'eduvert_sanitize_range_value',
59
+ 'transport' => 'postMessage',
60
+ )
61
+ );
62
+ $wp_customize->add_control(
63
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'eduvert_body_line_height',
64
+ array(
65
+ 'label' => __( 'Line Height', 'clever-fox' ),
66
+ 'section' => 'eduvert_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( 'eduvert_body_font_style', array(
80
+ 'capability' => 'edit_theme_options',
81
+ 'default' => 'inherit',
82
+ 'transport' => 'postMessage',
83
+ 'sanitize_callback' => 'eduvert_sanitize_select',
84
+ ) );
85
+
86
+ $wp_customize->add_control(
87
+ new WP_Customize_Control(
88
+ $wp_customize, 'eduvert_body_font_style', array(
89
+ 'label' => __( 'Font Style', 'clever-fox' ),
90
+ 'section' => 'eduvert_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( 'eduvert_body_text_transform', array(
104
+ 'capability' => 'edit_theme_options',
105
+ 'default' => 'inherit',
106
+ 'transport' => 'postMessage',
107
+ 'sanitize_callback' => 'eduvert_sanitize_select',
108
+ ) );
109
+
110
+ $wp_customize->add_control(
111
+ new WP_Customize_Control(
112
+ $wp_customize, 'eduvert_body_text_transform', array(
113
+ 'label' => __( 'Transform', 'clever-fox' ),
114
+ 'section' => 'eduvert_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
+ Eduvert Typography Headings
128
+ =========================================*/
129
+ $wp_customize->add_section(
130
+ 'eduvert_headings_typography',
131
+ array(
132
+ 'priority' => 2,
133
+ 'title' => __('Headings','clever-fox'),
134
+ 'panel' => 'eduvert_typography',
135
+ )
136
+ );
137
+
138
+ /*=========================================
139
+ Eduvert 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' => 'eduvert_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' => 'eduvert_headings_typography',
157
+ )
158
+ );
159
+
160
+ // Heading Font Size //
161
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
162
+ $wp_customize->add_setting(
163
+ 'eduvert_h' . $i . '_font_size',
164
+ array(
165
+ 'default' => $j,
166
+ 'capability' => 'edit_theme_options',
167
+ 'sanitize_callback' => 'eduvert_sanitize_range_value',
168
+ 'transport' => 'postMessage'
169
+ )
170
+ );
171
+ $wp_customize->add_control(
172
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'eduvert_h' . $i . '_font_size',
173
+ array(
174
+ 'label' => __( 'Font Size', 'clever-fox' ),
175
+ 'section' => 'eduvert_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
+ 'eduvert_h' . $i . '_line_height',
189
+ array(
190
+ 'default' => '1.2',
191
+ 'capability' => 'edit_theme_options',
192
+ 'sanitize_callback' => 'eduvert_sanitize_range_value',
193
+ 'transport' => 'postMessage',
194
+ )
195
+ );
196
+ $wp_customize->add_control(
197
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'eduvert_h' . $i . '_line_height',
198
+ array(
199
+ 'label' => __( 'Line Height', 'clever-fox' ),
200
+ 'section' => 'eduvert_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( 'eduvert_h' . $i . '_font_style', array(
218
+ 'capability' => 'edit_theme_options',
219
+ 'default' => 'inherit',
220
+ 'transport' => 'postMessage',
221
+ 'sanitize_callback' => 'eduvert_sanitize_select',
222
+ ) );
223
+
224
+ $wp_customize->add_control(
225
+ new WP_Customize_Control(
226
+ $wp_customize, 'eduvert_h' . $i . '_font_style', array(
227
+ 'label' => __( 'Font Style', 'clever-fox' ),
228
+ 'section' => 'eduvert_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( 'eduvert_h' . $i . '_text_transform', array(
242
+ 'capability' => 'edit_theme_options',
243
+ 'default' => 'inherit',
244
+ 'transport' => 'postMessage',
245
+ 'sanitize_callback' => 'eduvert_sanitize_select',
246
+ ) );
247
+
248
+ $wp_customize->add_control(
249
+ new WP_Customize_Control(
250
+ $wp_customize, 'eduvert_h' . $i . '_text_transform', array(
251
+ 'label' => __( 'Text Transform', 'clever-fox' ),
252
+ 'section' => 'eduvert_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', 'eduvert_typography' );
inc/eduvert/features/eduvert-video.php ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function eduvert_video_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Video Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'video_setting', array(
9
+ 'title' => esc_html__( 'Video Section', 'clever-fox' ),
10
+ 'priority' => 5,
11
+ 'panel' => 'eduvert_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Setting Head
16
+ $wp_customize->add_setting(
17
+ 'video_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'eduvert_sanitize_text',
21
+ 'priority' => 1,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'video_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','clever-fox'),
30
+ 'section' => 'video_setting',
31
+ )
32
+ );
33
+
34
+ // Hide / Show
35
+ $wp_customize->add_setting(
36
+ 'video_hs'
37
+ ,array(
38
+ 'default' => '1',
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'eduvert_sanitize_checkbox',
41
+ 'priority' => 1,
42
+ )
43
+ );
44
+
45
+ $wp_customize->add_control(
46
+ 'video_hs',
47
+ array(
48
+ 'type' => 'checkbox',
49
+ 'label' => __('Hide / Show','clever-fox'),
50
+ 'section' => 'video_setting',
51
+ )
52
+ );
53
+
54
+ // Video Header Section //
55
+ $wp_customize->add_setting(
56
+ 'video_headings'
57
+ ,array(
58
+ 'capability' => 'edit_theme_options',
59
+ 'sanitize_callback' => 'eduvert_sanitize_text',
60
+ 'priority' => 3,
61
+ )
62
+ );
63
+
64
+ $wp_customize->add_control(
65
+ 'video_headings',
66
+ array(
67
+ 'type' => 'hidden',
68
+ 'label' => __('Header','clever-fox'),
69
+ 'section' => 'video_setting',
70
+ )
71
+ );
72
+
73
+ // Video Title //
74
+ $wp_customize->add_setting(
75
+ 'video_title',
76
+ array(
77
+ 'default' => __('Live classes','clever-fox'),
78
+ 'capability' => 'edit_theme_options',
79
+ 'sanitize_callback' => 'eduvert_sanitize_html',
80
+ 'transport' => $selective_refresh,
81
+ 'priority' => 4,
82
+ )
83
+ );
84
+
85
+ $wp_customize->add_control(
86
+ 'video_title',
87
+ array(
88
+ 'label' => __('Title','clever-fox'),
89
+ 'section' => 'video_setting',
90
+ 'type' => 'text',
91
+ )
92
+ );
93
+
94
+ // Video Description //
95
+ $wp_customize->add_setting(
96
+ 'video_description',
97
+ array(
98
+ 'default' => __('high quality Live classes','clever-fox'),
99
+ 'capability' => 'edit_theme_options',
100
+ 'sanitize_callback' => 'eduvert_sanitize_text',
101
+ 'transport' => $selective_refresh,
102
+ 'priority' => 6,
103
+ )
104
+ );
105
+
106
+ $wp_customize->add_control(
107
+ 'video_description',
108
+ array(
109
+ 'label' => __('Description','clever-fox'),
110
+ 'section' => 'video_setting',
111
+ 'type' => 'textarea',
112
+ )
113
+ );
114
+
115
+ // Video content Section //
116
+
117
+ $wp_customize->add_setting(
118
+ 'video_content_head'
119
+ ,array(
120
+ 'capability' => 'edit_theme_options',
121
+ 'sanitize_callback' => 'eduvert_sanitize_text',
122
+ 'priority' => 7,
123
+ )
124
+ );
125
+
126
+ $wp_customize->add_control(
127
+ 'video_content_head',
128
+ array(
129
+ 'type' => 'hidden',
130
+ 'label' => __('Content','clever-fox'),
131
+ 'section' => 'video_setting',
132
+ )
133
+ );
134
+
135
+ // Video Link //
136
+ $wp_customize->add_setting(
137
+ 'video_link',
138
+ array(
139
+ 'default' => 'https://www.youtube.com/embed/cdfMgotGKIM',
140
+ 'capability' => 'edit_theme_options',
141
+ 'sanitize_callback' => 'eduvert_sanitize_url',
142
+ 'priority' => 7,
143
+ )
144
+ );
145
+
146
+ $wp_customize->add_control(
147
+ 'video_link',
148
+ array(
149
+ 'label' => __('Video Link','clever-fox'),
150
+ 'section' => 'video_setting',
151
+ 'type' => 'textarea',
152
+ )
153
+ );
154
+ }
155
+
156
+ add_action( 'customize_register', 'eduvert_video_setting' );
157
+
158
+ // selective refresh
159
+ function eduvert_home_video_section_partials( $wp_customize ){
160
+ // video_title
161
+ $wp_customize->selective_refresh->add_partial( 'video_title', array(
162
+ 'selector' => '.section-video.home1-video .section-title h5',
163
+ 'settings' => 'video_title',
164
+ 'render_callback' => 'eduvert_video_title_render_callback',
165
+ ) );
166
+
167
+ // video_description
168
+ $wp_customize->selective_refresh->add_partial( 'video_description', array(
169
+ 'selector' => '.section-video.home1-video .section-title h3',
170
+ 'settings' => 'video_description',
171
+ 'render_callback' => 'eduvert_video_desc_render_callback',
172
+ ) );
173
+
174
+ }
175
+ add_action( 'customize_register', 'eduvert_home_video_section_partials' );
176
+
177
+ // video_title
178
+ function eduvert_video_title_render_callback() {
179
+ return get_theme_mod( 'video_title' );
180
+ }
181
+
182
+ // video_description
183
+ function eduvert_video_desc_render_callback() {
184
+ return get_theme_mod( 'video_description' );
185
+ }
inc/eduvert/images/categorie/Image-1.png ADDED
Binary file
inc/eduvert/images/categorie/Image-2.png ADDED
Binary file
inc/eduvert/images/categorie/Image-3.png ADDED
Binary file
inc/eduvert/images/categorie/Image.png ADDED
Binary file
inc/eduvert/images/logo.png ADDED
Binary file
inc/eduvert/images/slider/slide1.png ADDED
Binary file
inc/eduvert/images/slider/slide2.png ADDED
Binary file
inc/eduvert/images/slider/slide3.png ADDED
Binary file
inc/eduvert/sections/section-course-category.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_eduvert_lite_course_cat' ) ) :
3
+ function cleverfox_eduvert_lite_course_cat() {
4
+ $course_cat_hs = get_theme_mod('course_cat_hs','1');
5
+ $course_category_title = get_theme_mod('course_category_title','course categories');
6
+ $course_category_description= get_theme_mod('course_category_description','popular topics to learn');
7
+ $course_category = get_theme_mod('course_category',eduvert_get_course_cat_default());
8
+ $course_category_column = get_theme_mod('course_category_column','3');
9
+ $course_category_btn_lbl = get_theme_mod('course_category_btn_lbl','All Categories');
10
+ $course_category_btn_link = get_theme_mod('course_category_btn_link','#');
11
+ if($course_cat_hs=='1'):
12
+ ?>
13
+ <section class="section-category wow fadeInUp ptb-80 home1-cat" id="category_one">
14
+ <div class="nt-container">
15
+ <?php if(!empty($course_category_title) || !empty($course_category_description)): ?>
16
+ <div class="section-title">
17
+ <?php if(!empty($course_category_title)): ?>
18
+ <h5><?php echo wp_kses_post($course_category_title); ?></h5>
19
+ <?php endif; ?>
20
+
21
+ <?php if(!empty($course_category_description)): ?>
22
+ <h3><?php echo wp_kses_post($course_category_description); ?></h3>
23
+ <?php endif; ?>
24
+ </div>
25
+ <?php endif; ?>
26
+ <div class="nt-columns-area">
27
+ <?php
28
+ if ( ! empty( $course_category ) ) {
29
+ $course_category = json_decode( $course_category );
30
+ foreach ( $course_category as $cat_item ) {
31
+ $title = ! empty( $cat_item->title ) ? apply_filters( 'eduvert_translate_single_string', $cat_item->title, 'Course Category section' ) : '';
32
+ $subtitle = ! empty( $cat_item->subtitle ) ? apply_filters( 'eduvert_translate_single_string', $cat_item->subtitle, 'Course Category section' ) : '';
33
+ $text = ! empty( $cat_item->text ) ? apply_filters( 'eduvert_translate_single_string', $cat_item->text, 'Course Category section' ) : '';
34
+ $link = ! empty( $cat_item->link ) ? apply_filters( 'eduvert_translate_single_string', $cat_item->link, 'Course Category section' ) : '';
35
+ $image = ! empty( $cat_item->image_url ) ? apply_filters( 'eduvert_translate_single_string', $cat_item->image_url, 'Course Category section' ) : '';
36
+ ?>
37
+ <div class="nt-column-3 nt-sm-column-6">
38
+ <div class="categorie-item">
39
+ <div class="categorie-img">
40
+ <img src="<?php echo esc_url($image); ?>" alt="">
41
+ </div>
42
+ <div class="categorie-content">
43
+ <?php if(!empty($subtitle)): ?>
44
+ <span><?php echo esc_html($subtitle); ?></span>
45
+ <?php endif; ?>
46
+
47
+ <?php if(!empty($title)): ?>
48
+ <h2><a href="<?php echo esc_url($link); ?>"><?php echo esc_html($title); ?></a></h2>
49
+ <?php endif; ?>
50
+
51
+ <?php if(!empty($text)): ?>
52
+ <p><?php echo esc_html($text); ?></p>
53
+ <?php endif; ?>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php }} ?>
58
+ </div>
59
+ <?php if(!empty($course_category_btn_lbl)): ?>
60
+ <div class="nt-columns-area">
61
+ <div class="nt-column-12 nt-sm-column-12 text-center">
62
+ <div class="categorie-btn">
63
+ <a href="<?php echo esc_url($course_category_btn_link); ?>" class="text-btn"><?php echo wp_kses_post($course_category_btn_lbl); ?></a>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ <?php endif; ?>
68
+ </div>
69
+ </section>
70
+ <?php
71
+ endif; }
72
+ endif;
73
+ if ( function_exists( 'cleverfox_eduvert_lite_course_cat' ) ) {
74
+ $section_priority = apply_filters( 'eduvert_section_priority', 12, 'cleverfox_eduvert_lite_course_cat' );
75
+ add_action( 'eduvert_sections', 'cleverfox_eduvert_lite_course_cat', absint( $section_priority ) );
76
+ }
inc/eduvert/sections/section-funfact.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_eduvert_lite_funfact' ) ) :
3
+ function cleverfox_eduvert_lite_funfact() {
4
+ $funfact_hs = get_theme_mod('funfact_hs','1');
5
+ $funfact_title = get_theme_mod('funfact_title','Why Choose us');
6
+ $funfact_subttl = get_theme_mod('funfact_subttl','we bring new developing idea & design');
7
+ $funfact_description= get_theme_mod('funfact_description','There are many variations of passages of Lorem Ipsum available There are many variations of passages of Lorem Ipsum available are many variations of passages of Lorem Ipsum available There are many variations of passages of Lorem Ipsum available');
8
+ $funfact_btn_lbl = get_theme_mod('funfact_btn_lbl','Choose Plan');
9
+ $funfact_btn_link = get_theme_mod('funfact_btn_link','#');
10
+ $funfact_contents = get_theme_mod('funfact_contents',eduvert_get_funfact_default());
11
+ if($funfact_hs=='1'):
12
+ ?>
13
+ <section class="section-funfact ptb-80 home1-funfact" id="funfact-one" style="background-image: url(<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/elements/Shape9.png);">
14
+ <div class="nt-container">
15
+ <div class="nt-columns-area">
16
+ <div class="nt-column-7 nt-sm-column-6 mb-4 mb-nt-0">
17
+ <?php if(!empty($funfact_title) || !empty($funfact_subttl) || !empty($funfact_description)): ?>
18
+ <div class="section-title">
19
+ <?php if(!empty($funfact_title)): ?>
20
+ <h5><?php echo wp_kses_post($funfact_title); ?></h5>
21
+ <?php endif; ?>
22
+
23
+ <?php if(!empty($funfact_subttl)): ?>
24
+ <h3><?php echo wp_kses_post($funfact_subttl); ?></h3>
25
+ <?php endif; ?>
26
+
27
+ <?php if(!empty($funfact_description)): ?>
28
+ <p><?php echo wp_kses_post($funfact_description); ?></p>
29
+ <?php endif; ?>
30
+ </div>
31
+ <?php endif; ?>
32
+
33
+ <?php if(!empty($funfact_btn_lbl)): ?>
34
+ <a href="<?php echo esc_url($funfact_btn_link); ?>" class="text-btn"><?php echo wp_kses_post($funfact_btn_lbl); ?></a>
35
+ <?php endif; ?>
36
+ </div>
37
+ <div class="nt-column-5 nt-sm-column-6">
38
+ <div class="nt-columns-area">
39
+ <?php
40
+ if ( ! empty( $funfact_contents ) ) {
41
+ $funfact_contents = json_decode( $funfact_contents );
42
+ foreach ( $funfact_contents as $funfact_item ) {
43
+ $title = ! empty( $funfact_item->title ) ? apply_filters( 'eduvert_translate_single_string', $funfact_item->title, 'Funfact section' ) : '';
44
+ $subtitle = ! empty( $funfact_item->subtitle ) ? apply_filters( 'eduvert_translate_single_string', $funfact_item->subtitle, 'Funfact section' ) : '';
45
+ $text = ! empty( $funfact_item->text ) ? apply_filters( 'eduvert_translate_single_string', $funfact_item->text, 'Funfact section' ) : '';
46
+ $icon = ! empty( $funfact_item->icon_value ) ? apply_filters( 'eduvert_translate_single_string', $funfact_item->icon_value, 'Funfact section' ) : '';
47
+ ?>
48
+ <div class="nt-column-6 nt-md-column-6">
49
+ <div class="funfact-item">
50
+ <div class="funfact-icon">
51
+ <?php if(!empty($icon)): ?>
52
+ <i class="fa <?php echo esc_attr($icon); ?>"></i>
53
+ <?php endif; ?>
54
+ </div>
55
+
56
+ <?php if(!empty($title) || !empty($subtitle)): ?>
57
+ <h1><span class="counter"><?php echo esc_html($title); ?></span><span><?php echo esc_html($subtitle); ?></span></h1> <?php endif; ?>
58
+
59
+ <?php if(!empty($text)): ?>
60
+ <p><?php echo esc_html($text); ?></p>
61
+ <?php endif; ?>
62
+ </div>
63
+ </div>
64
+ <?php } } ?>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </section>
70
+ <?php
71
+ endif; }
72
+ endif;
73
+ if ( function_exists( 'cleverfox_eduvert_lite_funfact' ) ) {
74
+ $section_priority = apply_filters( 'eduvert_section_priority', 14, 'cleverfox_eduvert_lite_funfact' );
75
+ add_action( 'eduvert_sections', 'cleverfox_eduvert_lite_funfact', absint( $section_priority ) );
76
+ }
inc/eduvert/sections/section-slider.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_eduvert_lite_slider' ) ) :
3
+ function cleverfox_eduvert_lite_slider() {
4
+ $slider = get_theme_mod('slider',eduvert_get_slider_default());
5
+ $slider_bg_element_enable = get_theme_mod('slider_bg_element_enable','1');
6
+ ?>
7
+ <section id="slider-section" class="slider-wrapper slider-home">
8
+ <?php if($slider_bg_element_enable=='1'): ?>
9
+ <div class="bg-shape1"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Group-2.png" alt=""></div>
10
+ <div class="bg-shape2"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Vector-2.png" alt=""></div>
11
+ <div class="bg-shape3"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Vector-9.png" alt=""></div>
12
+ <div class="bg-shape4"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Vector-9.png" alt=""></div>
13
+ <div class="bg-shape5"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Vector-9.png" alt=""></div>
14
+ <div class="bg-shape6"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Vector-9.png" alt=""></div>
15
+ <div class="bg-shape7"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Vector-9.png" alt=""></div>
16
+ <div class="bg-shape8"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Vector-9.png" alt=""></div>
17
+ <div class="bg-shape9"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Vector-9.png" alt=""></div>
18
+ <div class="bg-shape10"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Vector.png" alt=""></div>
19
+ <div class="bg-shape11"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Group-6.png" alt=""></div>
20
+ <div class="bg-shape12"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Group-3.png" alt=""></div>
21
+ <div class="bg-shape13"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Group.png" alt=""></div>
22
+ <div class="bg-shape14"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Group-1.png" alt=""></div>
23
+ <div class="bg-shape15"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Shape.png" alt=""></div>
24
+ <div class="bg-shape16"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Group-5.png" alt=""></div>
25
+ <div class="bg-shape17"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element1/Vector-9.png" alt=""></div>
26
+ <?php endif; ?>
27
+ <div class="main-slider owl-carousel owl-theme">
28
+ <?php
29
+ if ( ! empty( $slider ) ) {
30
+ $slider = json_decode( $slider );
31
+ foreach ( $slider as $slide_item ) {
32
+ $title = ! empty( $slide_item->title ) ? apply_filters( 'eduvert_translate_single_string', $slide_item->title, 'slider section' ) : '';
33
+ $subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'eduvert_translate_single_string', $slide_item->subtitle, 'slider section' ) : '';
34
+ $subtitle2 = ! empty( $slide_item->subtitle2 ) ? apply_filters( 'eduvert_translate_single_string', $slide_item->subtitle2, 'slider section' ) : '';
35
+ $text = ! empty( $slide_item->text ) ? apply_filters( 'eduvert_translate_single_string', $slide_item->text, 'slider section' ) : '';
36
+ $button = ! empty( $slide_item->text2) ? apply_filters( 'eduvert_translate_single_string', $slide_item->text2,'slider section' ) : '';
37
+ $link = ! empty( $slide_item->link ) ? apply_filters( 'eduvert_translate_single_string', $slide_item->link, 'slider section' ) : '';
38
+ $image = ! empty( $slide_item->image_url ) ? apply_filters( 'eduvert_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
39
+ ?>
40
+ <div class="slider">
41
+ <div class="nt-container">
42
+ <div class="nt-columns-area">
43
+ <div class="nt-column-6 nt-sm-column-6">
44
+ <div class="theme-content wow zoomIn">
45
+ <?php if(!empty($title)): ?>
46
+ <h3 data-animation="fadeInUp" data-delay="150ms"><?php echo esc_html($title); ?></h3>
47
+ <?php endif; ?>
48
+ <?php if(!empty($subtitle) || !empty($subtitle2)): ?>
49
+ <h1 data-animation="fadeInUp" data-delay="200ms"><?php echo esc_html($subtitle); ?> <span> <?php echo esc_html($subtitle2); ?></span></h1>
50
+ <?php endif; ?>
51
+
52
+ <?php if(!empty($text)): ?>
53
+ <p data-animation="fadeInUp" data-delay="500ms"><?php echo esc_html($text); ?></p>
54
+ <?php endif; ?>
55
+
56
+ <?php if(!empty($button)): ?>
57
+ <a data-animation="fadeInUp" data-delay="800ms" href=<?php echo esc_url($link); ?>
58
+ class="text-btn"><span><?php echo esc_html($button); ?></span></a>
59
+ <?php endif; ?>
60
+ </div>
61
+ </div>
62
+ <div class="nt-column-6 nt-sm-column-6">
63
+ <div class="side-img" data-delay="800ms">
64
+ <?php if(!empty($image)): ?>
65
+ <img src="<?php echo esc_url($image); ?>" data-img-url="<?php echo esc_url($image); ?>" alt="">
66
+ <?php endif; ?>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </div>
72
+ <?php } } ?>
73
+ </div>
74
+ </section>
75
+ <?php
76
+ }
77
+ endif;
78
+ if ( function_exists( 'cleverfox_eduvert_lite_slider' ) ) {
79
+ $section_priority = apply_filters( 'eduvert_section_priority', 11, 'cleverfox_eduvert_lite_slider' );
80
+ add_action( 'eduvert_sections', 'cleverfox_eduvert_lite_slider', absint( $section_priority ) );
81
+ }
inc/eduvert/sections/section-video.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_eduvert_lite_video' ) ) :
3
+ function cleverfox_eduvert_lite_video() {
4
+ $video_hs = get_theme_mod('video_hs','1');
5
+ $video_title = get_theme_mod('video_title','Live classes');
6
+ $video_description= get_theme_mod('video_description','high quality Live classes');
7
+ $video_link = get_theme_mod('video_link','https://www.youtube.com/embed/cdfMgotGKIM');
8
+ if($video_hs=='1'):
9
+ ?>
10
+ <section class="section-video wow fadeInUp ptb-80 home1-video" id="home1-video">
11
+ <div class="bg11-element"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/course/Vector-1.png" alt=""></div>
12
+ <div class="bg12-element"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/course/Vector.png" alt=""></div>
13
+ <div class="nt-container">
14
+ <div class="nt-columns-area">
15
+ <div class="nt-column-12 video_down">
16
+ <?php if(!empty($video_title) || !empty($video_description)): ?>
17
+ <div class="section-title">
18
+ <?php if(!empty($video_title)): ?>
19
+ <h5><?php echo wp_kses_post($video_title); ?></h5>
20
+ <?php endif; ?>
21
+
22
+ <?php if(!empty($video_description)): ?>
23
+ <h3><?php echo wp_kses_post($video_description); ?></h3>
24
+ <?php endif; ?>
25
+ </div>
26
+ <?php endif; ?>
27
+ <?php if(!empty($video_link)): ?>
28
+ <div class="live-video">
29
+ <iframe src="<?php echo esc_url($video_link); ?>" frameborder="0"></iframe>
30
+ </div>
31
+ <?php endif; ?>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </section>
36
+ <?php
37
+ endif; }
38
+ endif;
39
+ if ( function_exists( 'cleverfox_eduvert_lite_video' ) ) {
40
+ $section_priority = apply_filters( 'eduvert_section_priority', 13, 'cleverfox_eduvert_lite_video' );
41
+ add_action( 'eduvert_sections', 'cleverfox_eduvert_lite_video', absint( $section_priority ) );
42
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: homepage, companion, demo, sections, customizer, widget, settings
4
  Requires at least: 4.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
- Stable tag: 14.6
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -136,6 +136,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
136
 
137
  == Changelog ==
138
 
 
 
 
139
  = 14.6 =
140
  * Envira Funfact Section Escaping Issue Fixed
141
 
4
  Requires at least: 4.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 14.7
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
136
 
137
  == Changelog ==
138
 
139
+ = 14.7 =
140
+ * Eduvert Theme Files Added
141
+
142
  = 14.6 =
143
  * Envira Funfact Section Escaping Issue Fixed
144