Clever Fox - Version 12.1

Version Description

  • Flavita Theme Files Added
Download this release

Release Info

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

Code changes from version 12.0 to 12.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 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: 12.0
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
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: 12.1
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
inc/flavita/features/gradiant-client.php ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function gradiant_client_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Client Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'client_setting', array(
9
+ 'title' => esc_html__( 'Client Section', 'gradiant-pro' ),
10
+ 'priority' => 8,
11
+ 'panel' => 'gradiant_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Client Header Section //
16
+ $wp_customize->add_setting(
17
+ 'client_headings'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'gradiant_sanitize_text',
21
+ 'priority' => 3,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'client_headings',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Header','gradiant-pro'),
30
+ 'section' => 'client_setting',
31
+ )
32
+ );
33
+
34
+ // Client Title //
35
+ $wp_customize->add_setting(
36
+ 'client_title',
37
+ array(
38
+ 'default' => 'We are <span class="primary-color">Working With</span>',
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'gradiant_sanitize_html',
41
+ 'transport' => $selective_refresh,
42
+ 'priority' => 4,
43
+ )
44
+ );
45
+
46
+ $wp_customize->add_control(
47
+ 'client_title',
48
+ array(
49
+ 'label' => __('Title','gradiant-pro'),
50
+ 'section' => 'client_setting',
51
+ 'type' => 'text',
52
+ )
53
+ );
54
+
55
+ // Client Description //
56
+ $wp_customize->add_setting(
57
+ 'client_description',
58
+ array(
59
+ 'default' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.','gradiant-pro'),
60
+ 'capability' => 'edit_theme_options',
61
+ 'sanitize_callback' => 'gradiant_sanitize_text',
62
+ 'transport' => $selective_refresh,
63
+ 'priority' => 6,
64
+ )
65
+ );
66
+
67
+ $wp_customize->add_control(
68
+ 'client_description',
69
+ array(
70
+ 'label' => __('Description','gradiant-pro'),
71
+ 'section' => 'client_setting',
72
+ 'type' => 'textarea',
73
+ )
74
+ );
75
+
76
+ // Client content Section //
77
+
78
+ $wp_customize->add_setting(
79
+ 'client_content_head'
80
+ ,array(
81
+ 'capability' => 'edit_theme_options',
82
+ 'sanitize_callback' => 'gradiant_sanitize_text',
83
+ 'priority' => 7,
84
+ )
85
+ );
86
+
87
+ $wp_customize->add_control(
88
+ 'client_content_head',
89
+ array(
90
+ 'type' => 'hidden',
91
+ 'label' => __('Content','gradiant-pro'),
92
+ 'section' => 'client_setting',
93
+ )
94
+ );
95
+
96
+ /**
97
+ * Customizer Repeater for add client
98
+ */
99
+
100
+ $wp_customize->add_setting( 'client_contents',
101
+ array(
102
+ 'sanitize_callback' => 'gradiant_repeater_sanitize',
103
+ 'transport' => $selective_refresh,
104
+ 'priority' => 8,
105
+ 'default' => gradiant_get_client_default()
106
+ )
107
+ );
108
+
109
+ $wp_customize->add_control(
110
+ new Gradiant_Repeater( $wp_customize,
111
+ 'client_contents',
112
+ array(
113
+ 'label' => esc_html__('Client','gradiant-pro'),
114
+ 'section' => 'client_setting',
115
+ 'add_field_label' => esc_html__( 'Add New Client', 'gradiant-pro' ),
116
+ 'item_name' => esc_html__( 'Client', 'gradiant-pro' ),
117
+ 'customizer_repeater_image_control' => true,
118
+ 'customizer_repeater_title_control' => true,
119
+ 'customizer_repeater_subtitle_control' => true,
120
+ 'customizer_repeater_link_control' => true,
121
+ )
122
+ )
123
+ );
124
+
125
+ //Pro feature
126
+ class Gradiant_client_section_upgrade extends WP_Customize_Control {
127
+ public function render_content() {
128
+ ?>
129
+ <a class="customizer_client_upgrade_section up-to-pro" href="https://www.nayrathemes.com/gradiant-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
130
+ <?php
131
+ }
132
+ }
133
+
134
+ $wp_customize->add_setting( 'gradiant_client_upgrade_to_pro', array(
135
+ 'capability' => 'edit_theme_options',
136
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
137
+ 'priority' => 5,
138
+ ));
139
+ $wp_customize->add_control(
140
+ new Gradiant_client_section_upgrade(
141
+ $wp_customize,
142
+ 'gradiant_client_upgrade_to_pro',
143
+ array(
144
+ 'section' => 'client_setting',
145
+ )
146
+ )
147
+ );
148
+ }
149
+
150
+ add_action( 'customize_register', 'gradiant_client_setting' );
151
+
152
+ // client selective refresh
153
+ function gradiant_home_client_section_partials( $wp_customize ){
154
+ // client title
155
+ $wp_customize->selective_refresh->add_partial( 'client_title', array(
156
+ 'selector' => '.client-home .heading-default h3',
157
+ 'settings' => 'client_title',
158
+ 'render_callback' => 'gradiant_client_title_render_callback',
159
+
160
+ ) );
161
+
162
+ // client description
163
+ $wp_customize->selective_refresh->add_partial( 'client_description', array(
164
+ 'selector' => '.client-home .heading-default p',
165
+ 'settings' => 'client_description',
166
+ 'render_callback' => 'gradiant_client_desc_render_callback',
167
+
168
+ ) );
169
+ // client content
170
+ $wp_customize->selective_refresh->add_partial( 'client_contents', array(
171
+ 'selector' => '.client-home .partner-carousel'
172
+
173
+ ) );
174
+
175
+ }
176
+
177
+ add_action( 'customize_register', 'gradiant_home_client_section_partials' );
178
+
179
+ // client title
180
+ function gradiant_client_title_render_callback() {
181
+ return get_theme_mod( 'client_title' );
182
+ }
183
+
184
+ // client description
185
+ function gradiant_client_desc_render_callback() {
186
+ return get_theme_mod( 'client_description' );
187
+ }
inc/flavita/flavita.php CHANGED
@@ -12,8 +12,8 @@ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-header.php';
12
  require CLEVERFOX_PLUGIN_DIR . 'inc/flavita/features/flavita-header.php';
13
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-footer.php';
14
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-slider.php';
15
- require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-info.php';
16
  require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/features/comoxa-service.php';
 
17
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-cta.php';
18
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-typography.php';
19
 
@@ -22,7 +22,7 @@ if ( ! function_exists( 'cleverfox_gradiant_frontpage_sections' ) ) :
22
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-slider.php';
23
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-cta.php';
24
  require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/sections/section-service.php';
25
- require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-info.php';
26
  }
27
  add_action( 'gradiant_sections', 'cleverfox_gradiant_frontpage_sections' );
28
  endif;
12
  require CLEVERFOX_PLUGIN_DIR . 'inc/flavita/features/flavita-header.php';
13
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-footer.php';
14
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-slider.php';
 
15
  require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/features/comoxa-service.php';
16
+ require CLEVERFOX_PLUGIN_DIR . 'inc/flavita/features/gradiant-client.php';
17
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-cta.php';
18
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-typography.php';
19
 
22
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-slider.php';
23
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-cta.php';
24
  require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/sections/section-service.php';
25
+ require CLEVERFOX_PLUGIN_DIR . 'inc/flavita/sections/section-client.php';
26
  }
27
  add_action( 'gradiant_sections', 'cleverfox_gradiant_frontpage_sections' );
28
  endif;
inc/flavita/images/logo.png ADDED
Binary file
inc/flavita/sections/section-client.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $client_title = get_theme_mod('client_title','We are <span class="primary-color">Working With</span>');
3
+ $client_description = get_theme_mod('client_description','Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
4
+ $client_contents = get_theme_mod('client_contents',gradiant_get_client_default());
5
+ ?>
6
+ <section id="client-section" class="client-section av-py-default client-home" data-roller="start:0.5">
7
+ <div class="av-container">
8
+ <?php if(!empty($client_title) || !empty($client_description)): ?>
9
+ <div class="av-columns-area">
10
+ <div class="av-column-12">
11
+ <div class="heading-default heading-white text-center wow fadeInUp">
12
+ <?php if(!empty($client_title)): ?>
13
+ <h3><?php echo wp_kses_post($client_title); ?></h3>
14
+ <span class="separator"><span><span></span></span></span>
15
+ <?php endif; ?>
16
+ <?php if(!empty($client_description)): ?>
17
+ <p><?php echo wp_kses_post($client_description); ?></p>
18
+ <?php endif; ?>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ <?php endif; ?>
23
+ <div class="av-columns-area">
24
+ <div class="av-column-12">
25
+ <div class="partner-carousel owl-carousel owl-theme">
26
+ <?php
27
+ if ( ! empty( $client_contents ) ) {
28
+ $client_contents = json_decode( $client_contents );
29
+ foreach ( $client_contents as $client_item ) {
30
+ $title = ! empty( $client_item->title ) ? apply_filters( 'gradiant_translate_single_string', $client_item->title, 'Client section' ) : '';
31
+ $subtitle = ! empty( $client_item->subtitle ) ? apply_filters( 'gradiant_translate_single_string', $client_item->subtitle, 'Client section' ) : '';
32
+ $link = ! empty( $client_item->link ) ? apply_filters( 'gradiant_translate_single_string', $client_item->link, 'Client section' ) : '';
33
+ $image = ! empty( $client_item->image_url ) ? apply_filters( 'gradiant_translate_single_string', $client_item->image_url, 'Client section' ) : '';
34
+ ?>
35
+ <div class="single-partner">
36
+ <div class="inner-partner">
37
+ <a href="<?php echo esc_url($link); ?>">
38
+ <?php if(!empty($image)): ?>
39
+ <img src="<?php echo esc_url($image); ?>">
40
+ <?php endif; ?>
41
+ <?php if(!empty($title) || !empty($subtitle)): ?>
42
+ <span class="client-name"><?php echo esc_html($title); ?> <strong><?php echo esc_html($subtitle); ?></strong></span>
43
+ <?php endif; ?>
44
+ </a>
45
+ </div>
46
+ </div>
47
+ <?php } } ?>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </section>
inc/gradiant/default-pages/upload-media.php CHANGED
@@ -6,6 +6,9 @@ if( 'Comoxa' == $theme->name){
6
  }elseif('ColorPress' == $theme->name){
7
  $file = CLEVERFOX_PLUGIN_URL .'inc/colorpress/images/logo.png';
8
  $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/colorpress/images';
 
 
 
9
  }else{
10
  $file = CLEVERFOX_PLUGIN_URL .'inc/gradiant/images/logo.png';
11
  $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/gradiant/images';
6
  }elseif('ColorPress' == $theme->name){
7
  $file = CLEVERFOX_PLUGIN_URL .'inc/colorpress/images/logo.png';
8
  $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/colorpress/images';
9
+ }elseif('Flavita' == $theme->name){
10
+ $file = CLEVERFOX_PLUGIN_URL .'inc/flavita/images/logo.png';
11
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/flavita/images';
12
  }else{
13
  $file = CLEVERFOX_PLUGIN_URL .'inc/gradiant/images/logo.png';
14
  $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/gradiant/images';
inc/gradiant/extras.php CHANGED
@@ -344,4 +344,54 @@ function gradiant_get_service_default() {
344
  )
345
  )
346
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
347
  }
344
  )
345
  )
346
  );
347
+ }
348
+
349
+
350
+
351
+ /*
352
+ *
353
+ * Client Default
354
+ */
355
+ function gradiant_get_client_default() {
356
+ return apply_filters(
357
+ 'gradiant_get_client_default', json_encode(
358
+ array(
359
+ array(
360
+ 'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/client/client01.png',
361
+ 'title' => esc_html__( 'Creative', 'gradiant-pro' ),
362
+ 'subtitle' => esc_html__( 'Business', 'gradiant-pro' ),
363
+ 'link' => '#',
364
+ 'id' => 'customizer_repeater_client_001',
365
+ ),
366
+ array(
367
+ 'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/client/client02.png',
368
+ 'title' => esc_html__( 'Creative', 'gradiant-pro' ),
369
+ 'subtitle' => esc_html__( 'Logo', 'gradiant-pro' ),
370
+ 'link' => '#',
371
+ 'id' => 'customizer_repeater_client_002',
372
+ ),
373
+ array(
374
+ 'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/client/client03.png',
375
+ 'title' => esc_html__( 'Website', 'gradiant-pro' ),
376
+ 'subtitle' => esc_html__( 'Hosting', 'gradiant-pro' ),
377
+ 'link' => '#',
378
+ 'id' => 'customizer_repeater_client_003',
379
+ ),
380
+ array(
381
+ 'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/client/client04.png',
382
+ 'title' => esc_html__( 'Digital', 'gradiant-pro' ),
383
+ 'subtitle' => esc_html__( 'Marketing', 'gradiant-pro' ),
384
+ 'link' => '#',
385
+ 'id' => 'customizer_repeater_client_004',
386
+ ),
387
+ array(
388
+ 'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/client/client05.png',
389
+ 'title' => esc_html__( 'Business', 'gradiant-pro' ),
390
+ 'subtitle' => esc_html__( 'Group', 'gradiant-pro' ),
391
+ 'link' => '#',
392
+ 'id' => 'customizer_repeater_client_005',
393
+ )
394
+ )
395
+ )
396
+ );
397
  }
inc/gradiant/features/gradiant-header.php CHANGED
@@ -141,6 +141,8 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
141
  )
142
  );
143
 
 
 
144
  /*=========================================
145
  Contact
146
  =========================================*/
@@ -438,6 +440,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
438
  'type' => 'text'
439
  )
440
  );
 
441
  }
442
  add_action( 'customize_register', 'gradiant_lite_header_settings' );
443
 
141
  )
142
  );
143
 
144
+ $theme = wp_get_theme(); // gets the current theme
145
+ if ( 'Flavita' !== $theme->name){
146
  /*=========================================
147
  Contact
148
  =========================================*/
440
  'type' => 'text'
441
  )
442
  );
443
+ }
444
  }
445
  add_action( 'customize_register', 'gradiant_lite_header_settings' );
446
 
inc/gradiant/images/client/client01.png ADDED
Binary file
inc/gradiant/images/client/client02.png ADDED
Binary file
inc/gradiant/images/client/client03.png ADDED
Binary file
inc/gradiant/images/client/client04.png ADDED
Binary file
inc/gradiant/images/client/client05.png ADDED
Binary file
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: 12.0
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -128,6 +128,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
128
 
129
  == Changelog ==
130
 
 
 
 
131
  = 12.0 =
132
  * ColorPress Theme Upsale Links Added
133
 
4
  Requires at least: 4.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 12.1
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
128
 
129
  == Changelog ==
130
 
131
+ = 12.1 =
132
+ * Flavita Theme Files Added
133
+
134
  = 12.0 =
135
  * ColorPress Theme Upsale Links Added
136