Version Description
- ColorPress Theme Files Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 11.8 |
Comparing to | |
See all releases |
Code changes from version 11.7 to 11.8
- clever-fox.php +6 -2
- inc/colorpress/colorpress.php +33 -0
- inc/colorpress/features/gradiant-header.php +463 -0
- inc/colorpress/sections/above-header.php +49 -0
- inc/gradiant/block/info-box.php +3 -1
- inc/gradiant/extras.php +23 -0
- readme.txt +4 -1
clever-fox.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Clever Fox
|
4 |
Plugin URI:
|
5 |
Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 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: 11.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -128,6 +128,10 @@ function cleverfox_activate() {
|
|
128 |
require_once('inc/techine/techine.php');
|
129 |
}
|
130 |
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
add_action( 'init', 'cleverfox_activate' );
|
133 |
|
@@ -144,7 +148,7 @@ if( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News'
|
|
144 |
/**
|
145 |
* Gradiant Block
|
146 |
*/
|
147 |
-
if( 'Gradiant' == $theme->name || 'Comoxa' == $theme->name){
|
148 |
require CLEVERFOX_PLUGIN_DIR . '/inc/gradiant/block/info-box.php';
|
149 |
}
|
150 |
|
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: 11.8
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
128 |
require_once('inc/techine/techine.php');
|
129 |
}
|
130 |
|
131 |
+
if( 'ColorPress' == $theme->name){
|
132 |
+
require_once('inc/colorpress/colorpress.php');
|
133 |
+
}
|
134 |
+
|
135 |
}
|
136 |
add_action( 'init', 'cleverfox_activate' );
|
137 |
|
148 |
/**
|
149 |
* Gradiant Block
|
150 |
*/
|
151 |
+
if( 'Gradiant' == $theme->name || 'Comoxa' == $theme->name || 'ColorPress' == $theme->name){
|
152 |
require CLEVERFOX_PLUGIN_DIR . '/inc/gradiant/block/info-box.php';
|
153 |
}
|
154 |
|
inc/colorpress/colorpress.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Gradiant
|
4 |
+
*/
|
5 |
+
|
6 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/extras.php';
|
7 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/dynamic-style.php';
|
8 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/colorpress/sections/above-header.php';
|
9 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/above-footer.php';
|
10 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/colorpress/features/gradiant-header.php';
|
11 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-footer.php';
|
12 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-slider.php';
|
13 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/features/comoxa-slider.php';
|
14 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-info.php';
|
15 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/features/comoxa-service.php';
|
16 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-cta.php';
|
17 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-typography.php';
|
18 |
+
|
19 |
+
if ( ! function_exists( 'cleverfox_gradiant_frontpage_sections' ) ) :
|
20 |
+
function cleverfox_gradiant_frontpage_sections() {
|
21 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-slider.php';
|
22 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-info.php';
|
23 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/sections/section-service.php';
|
24 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-cta.php';
|
25 |
+
}
|
26 |
+
add_action( 'gradiant_sections', 'cleverfox_gradiant_frontpage_sections' );
|
27 |
+
endif;
|
28 |
+
|
29 |
+
|
30 |
+
function cleverfox_gradiant_enqueue_scripts() {
|
31 |
+
wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
|
32 |
+
}
|
33 |
+
add_action( 'wp_enqueue_scripts', 'cleverfox_gradiant_enqueue_scripts' );
|
inc/colorpress/features/gradiant-header.php
ADDED
@@ -0,0 +1,463 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function gradiant_lite_header_settings( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
/*=========================================
|
5 |
+
Gradiant Site Identity
|
6 |
+
=========================================*/
|
7 |
+
// Logo Width //
|
8 |
+
if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
|
9 |
+
$wp_customize->add_setting(
|
10 |
+
'logo_width',
|
11 |
+
array(
|
12 |
+
'default' => '140',
|
13 |
+
'capability' => 'edit_theme_options',
|
14 |
+
'sanitize_callback' => 'gradiant_sanitize_range_value',
|
15 |
+
'transport' => 'postMessage',
|
16 |
+
)
|
17 |
+
);
|
18 |
+
$wp_customize->add_control(
|
19 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'logo_width',
|
20 |
+
array(
|
21 |
+
'label' => __( 'Logo Width', 'clever-fox' ),
|
22 |
+
'section' => 'title_tagline',
|
23 |
+
'input_attrs' => array(
|
24 |
+
'min' => 0,
|
25 |
+
'max' => 500,
|
26 |
+
'step' => 1,
|
27 |
+
//'suffix' => 'px', //optional suffix
|
28 |
+
),
|
29 |
+
) )
|
30 |
+
);
|
31 |
+
}
|
32 |
+
|
33 |
+
|
34 |
+
/*=========================================
|
35 |
+
Above Header Section
|
36 |
+
=========================================*/
|
37 |
+
$wp_customize->add_section(
|
38 |
+
'above_header',
|
39 |
+
array(
|
40 |
+
'priority' => 2,
|
41 |
+
'title' => __('Above Header','clever-fox'),
|
42 |
+
'panel' => 'header_section',
|
43 |
+
)
|
44 |
+
);
|
45 |
+
|
46 |
+
/*=========================================
|
47 |
+
Icon Menu
|
48 |
+
=========================================*/
|
49 |
+
$wp_customize->add_setting(
|
50 |
+
'hdr_top_icon_menu_head'
|
51 |
+
,array(
|
52 |
+
'capability' => 'edit_theme_options',
|
53 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
54 |
+
'priority' => 1,
|
55 |
+
)
|
56 |
+
);
|
57 |
+
|
58 |
+
$wp_customize->add_control(
|
59 |
+
'hdr_top_icon_menu_head',
|
60 |
+
array(
|
61 |
+
'type' => 'hidden',
|
62 |
+
'label' => __('Icon Menu','clever-fox'),
|
63 |
+
'section' => 'above_header',
|
64 |
+
|
65 |
+
)
|
66 |
+
);
|
67 |
+
$wp_customize->add_setting(
|
68 |
+
'hs_hdr_icon_menu' ,
|
69 |
+
array(
|
70 |
+
'default' => '1',
|
71 |
+
'capability' => 'edit_theme_options',
|
72 |
+
'sanitize_callback' => 'gradiant_sanitize_checkbox',
|
73 |
+
'priority' => 1,
|
74 |
+
)
|
75 |
+
);
|
76 |
+
|
77 |
+
$wp_customize->add_control(
|
78 |
+
'hs_hdr_icon_menu',
|
79 |
+
array(
|
80 |
+
'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
|
81 |
+
'section' => 'above_header',
|
82 |
+
'type' => 'checkbox'
|
83 |
+
)
|
84 |
+
);
|
85 |
+
|
86 |
+
/**
|
87 |
+
* Customizer Repeater for add Icon Menu
|
88 |
+
*/
|
89 |
+
|
90 |
+
$wp_customize->add_setting( 'hdr_top_icon_menu',
|
91 |
+
array(
|
92 |
+
'sanitize_callback' => 'gradiant_repeater_sanitize',
|
93 |
+
'transport' => $selective_refresh,
|
94 |
+
'priority' => 2,
|
95 |
+
'default' => gradiant_get_icon_menu_default()
|
96 |
+
)
|
97 |
+
);
|
98 |
+
|
99 |
+
$wp_customize->add_control(
|
100 |
+
new Gradiant_Repeater( $wp_customize,
|
101 |
+
'hdr_top_icon_menu',
|
102 |
+
array(
|
103 |
+
'label' => esc_html__('Icon Menu','clever-fox'),
|
104 |
+
'section' => 'above_header',
|
105 |
+
'add_field_label' => esc_html__( 'Add New', 'clever-fox' ),
|
106 |
+
'item_name' => esc_html__( 'Menu', 'clever-fox' ),
|
107 |
+
'customizer_repeater_icon_control' => true,
|
108 |
+
'customizer_repeater_title_control' => true,
|
109 |
+
'customizer_repeater_link_control' => true,
|
110 |
+
)
|
111 |
+
)
|
112 |
+
);
|
113 |
+
/*=========================================
|
114 |
+
Contact
|
115 |
+
=========================================*/
|
116 |
+
$wp_customize->add_setting(
|
117 |
+
'hdr_top_contact'
|
118 |
+
,array(
|
119 |
+
'capability' => 'edit_theme_options',
|
120 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
121 |
+
'priority' => 3,
|
122 |
+
)
|
123 |
+
);
|
124 |
+
|
125 |
+
$wp_customize->add_control(
|
126 |
+
'hdr_top_contact',
|
127 |
+
array(
|
128 |
+
'type' => 'hidden',
|
129 |
+
'label' => __('Live Chat','clever-fox'),
|
130 |
+
'section' => 'above_header',
|
131 |
+
)
|
132 |
+
);
|
133 |
+
$wp_customize->add_setting(
|
134 |
+
'hide_show_cntct_details' ,
|
135 |
+
array(
|
136 |
+
'default' => '1',
|
137 |
+
'capability' => 'edit_theme_options',
|
138 |
+
'sanitize_callback' => 'gradiant_sanitize_checkbox',
|
139 |
+
'priority' => 4,
|
140 |
+
)
|
141 |
+
);
|
142 |
+
|
143 |
+
$wp_customize->add_control(
|
144 |
+
'hide_show_cntct_details',
|
145 |
+
array(
|
146 |
+
'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
|
147 |
+
'section' => 'above_header',
|
148 |
+
'type' => 'checkbox'
|
149 |
+
)
|
150 |
+
);
|
151 |
+
|
152 |
+
// icon //
|
153 |
+
$wp_customize->add_setting(
|
154 |
+
'tlh_contct_icon',
|
155 |
+
array(
|
156 |
+
'default' => 'fa-support',
|
157 |
+
'sanitize_callback' => 'sanitize_text_field',
|
158 |
+
'capability' => 'edit_theme_options',
|
159 |
+
)
|
160 |
+
);
|
161 |
+
|
162 |
+
$wp_customize->add_control(new Gradiant_Icon_Picker_Control($wp_customize,
|
163 |
+
'tlh_contct_icon',
|
164 |
+
array(
|
165 |
+
'label' => __('Icon','clever-fox'),
|
166 |
+
'section' => 'above_header',
|
167 |
+
'iconset' => 'fa',
|
168 |
+
|
169 |
+
))
|
170 |
+
);
|
171 |
+
// title //
|
172 |
+
$wp_customize->add_setting(
|
173 |
+
'tlh_contact_title',
|
174 |
+
array(
|
175 |
+
'default' => __('Live Chat','clever-fox'),
|
176 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
177 |
+
'transport' => $selective_refresh,
|
178 |
+
'capability' => 'edit_theme_options',
|
179 |
+
'priority' => 5,
|
180 |
+
)
|
181 |
+
);
|
182 |
+
|
183 |
+
$wp_customize->add_control(
|
184 |
+
'tlh_contact_title',
|
185 |
+
array(
|
186 |
+
'label' => __('Title','clever-fox'),
|
187 |
+
'section' => 'above_header',
|
188 |
+
'type' => 'text'
|
189 |
+
)
|
190 |
+
);
|
191 |
+
|
192 |
+
// Link //
|
193 |
+
$wp_customize->add_setting(
|
194 |
+
'tlh_contact_link',
|
195 |
+
array(
|
196 |
+
'sanitize_callback' => 'gradiant_sanitize_url',
|
197 |
+
'capability' => 'edit_theme_options',
|
198 |
+
'priority' => 6,
|
199 |
+
)
|
200 |
+
);
|
201 |
+
|
202 |
+
$wp_customize->add_control(
|
203 |
+
'tlh_contact_link',
|
204 |
+
array(
|
205 |
+
'label' => __('Link','clever-fox'),
|
206 |
+
'section' => 'above_header',
|
207 |
+
'type' => 'text'
|
208 |
+
)
|
209 |
+
);
|
210 |
+
|
211 |
+
|
212 |
+
/*=========================================
|
213 |
+
Email
|
214 |
+
=========================================*/
|
215 |
+
$wp_customize->add_setting(
|
216 |
+
'hdr_top_email'
|
217 |
+
,array(
|
218 |
+
'capability' => 'edit_theme_options',
|
219 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
220 |
+
'priority' => 11,
|
221 |
+
)
|
222 |
+
);
|
223 |
+
|
224 |
+
$wp_customize->add_control(
|
225 |
+
'hdr_top_email',
|
226 |
+
array(
|
227 |
+
'type' => 'hidden',
|
228 |
+
'label' => __('Email','clever-fox'),
|
229 |
+
'section' => 'above_header',
|
230 |
+
)
|
231 |
+
);
|
232 |
+
$wp_customize->add_setting(
|
233 |
+
'hide_show_email_details' ,
|
234 |
+
array(
|
235 |
+
'default' => '1',
|
236 |
+
'capability' => 'edit_theme_options',
|
237 |
+
'sanitize_callback' => 'gradiant_sanitize_checkbox',
|
238 |
+
'priority' => 12,
|
239 |
+
)
|
240 |
+
);
|
241 |
+
|
242 |
+
$wp_customize->add_control(
|
243 |
+
'hide_show_email_details',
|
244 |
+
array(
|
245 |
+
'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
|
246 |
+
'section' => 'above_header',
|
247 |
+
'type' => 'checkbox'
|
248 |
+
)
|
249 |
+
);
|
250 |
+
|
251 |
+
// icon //
|
252 |
+
$wp_customize->add_setting(
|
253 |
+
'tlh_email_icon',
|
254 |
+
array(
|
255 |
+
'default' => 'fa-envelope',
|
256 |
+
'sanitize_callback' => 'sanitize_text_field',
|
257 |
+
'capability' => 'edit_theme_options',
|
258 |
+
)
|
259 |
+
);
|
260 |
+
|
261 |
+
$wp_customize->add_control(new Gradiant_Icon_Picker_Control($wp_customize,
|
262 |
+
'tlh_email_icon',
|
263 |
+
array(
|
264 |
+
'label' => __('Icon','clever-fox'),
|
265 |
+
'section' => 'above_header',
|
266 |
+
'iconset' => 'fa',
|
267 |
+
|
268 |
+
))
|
269 |
+
);
|
270 |
+
// Mobile title //
|
271 |
+
$wp_customize->add_setting(
|
272 |
+
'tlh_email_title',
|
273 |
+
array(
|
274 |
+
'default' => __('info@example.com','clever-fox'),
|
275 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
276 |
+
'capability' => 'edit_theme_options',
|
277 |
+
'transport' => $selective_refresh,
|
278 |
+
'priority' => 13,
|
279 |
+
)
|
280 |
+
);
|
281 |
+
|
282 |
+
$wp_customize->add_control(
|
283 |
+
'tlh_email_title',
|
284 |
+
array(
|
285 |
+
'label' => __('Title','clever-fox'),
|
286 |
+
'section' => 'above_header',
|
287 |
+
'type' => 'text'
|
288 |
+
)
|
289 |
+
);
|
290 |
+
|
291 |
+
// Mobile subtitle //
|
292 |
+
$wp_customize->add_setting(
|
293 |
+
'tlh_email_link',
|
294 |
+
array(
|
295 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
296 |
+
'capability' => 'edit_theme_options',
|
297 |
+
'priority' => 14,
|
298 |
+
)
|
299 |
+
);
|
300 |
+
|
301 |
+
$wp_customize->add_control(
|
302 |
+
'tlh_email_link',
|
303 |
+
array(
|
304 |
+
'label' => __('Link','clever-fox'),
|
305 |
+
'section' => 'above_header',
|
306 |
+
'type' => 'text'
|
307 |
+
)
|
308 |
+
);
|
309 |
+
|
310 |
+
|
311 |
+
|
312 |
+
/*=========================================
|
313 |
+
Mobile
|
314 |
+
=========================================*/
|
315 |
+
$wp_customize->add_setting(
|
316 |
+
'hdr_top_mbl'
|
317 |
+
,array(
|
318 |
+
'capability' => 'edit_theme_options',
|
319 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
320 |
+
'priority' => 16,
|
321 |
+
)
|
322 |
+
);
|
323 |
+
|
324 |
+
$wp_customize->add_control(
|
325 |
+
'hdr_top_mbl',
|
326 |
+
array(
|
327 |
+
'type' => 'hidden',
|
328 |
+
'label' => __('Phone','clever-fox'),
|
329 |
+
'section' => 'above_header',
|
330 |
+
|
331 |
+
)
|
332 |
+
);
|
333 |
+
$wp_customize->add_setting(
|
334 |
+
'hide_show_mbl_details' ,
|
335 |
+
array(
|
336 |
+
'default' => '1',
|
337 |
+
'capability' => 'edit_theme_options',
|
338 |
+
'sanitize_callback' => 'gradiant_sanitize_checkbox',
|
339 |
+
'priority' => 17,
|
340 |
+
)
|
341 |
+
);
|
342 |
+
|
343 |
+
$wp_customize->add_control(
|
344 |
+
'hide_show_mbl_details',
|
345 |
+
array(
|
346 |
+
'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
|
347 |
+
'section' => 'above_header',
|
348 |
+
'type' => 'checkbox'
|
349 |
+
)
|
350 |
+
);
|
351 |
+
// icon //
|
352 |
+
$wp_customize->add_setting(
|
353 |
+
'tlh_mobile_icon',
|
354 |
+
array(
|
355 |
+
'default' => 'fa-whatsapp',
|
356 |
+
'sanitize_callback' => 'sanitize_text_field',
|
357 |
+
'capability' => 'edit_theme_options',
|
358 |
+
)
|
359 |
+
);
|
360 |
+
|
361 |
+
$wp_customize->add_control(new Gradiant_Icon_Picker_Control($wp_customize,
|
362 |
+
'tlh_mobile_icon',
|
363 |
+
array(
|
364 |
+
'label' => __('Icon','clever-fox'),
|
365 |
+
'section' => 'above_header',
|
366 |
+
'iconset' => 'fa',
|
367 |
+
|
368 |
+
))
|
369 |
+
);
|
370 |
+
|
371 |
+
// Mobile title //
|
372 |
+
$wp_customize->add_setting(
|
373 |
+
'tlh_mobile_title',
|
374 |
+
array(
|
375 |
+
'default' => __('+01-9876543210','clever-fox'),
|
376 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
377 |
+
'transport' => $selective_refresh,
|
378 |
+
'capability' => 'edit_theme_options',
|
379 |
+
'priority' => 18,
|
380 |
+
)
|
381 |
+
);
|
382 |
+
|
383 |
+
$wp_customize->add_control(
|
384 |
+
'tlh_mobile_title',
|
385 |
+
array(
|
386 |
+
'label' => __('Title','clever-fox'),
|
387 |
+
'section' => 'above_header',
|
388 |
+
'type' => 'text'
|
389 |
+
)
|
390 |
+
);
|
391 |
+
|
392 |
+
// Link //
|
393 |
+
$wp_customize->add_setting(
|
394 |
+
'tlh_mobile_link',
|
395 |
+
array(
|
396 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
397 |
+
'capability' => 'edit_theme_options',
|
398 |
+
'priority' => 19,
|
399 |
+
)
|
400 |
+
);
|
401 |
+
|
402 |
+
$wp_customize->add_control(
|
403 |
+
'tlh_mobile_link',
|
404 |
+
array(
|
405 |
+
'label' => __('Link','clever-fox'),
|
406 |
+
'section' => 'above_header',
|
407 |
+
'type' => 'text'
|
408 |
+
)
|
409 |
+
);
|
410 |
+
}
|
411 |
+
add_action( 'customize_register', 'gradiant_lite_header_settings' );
|
412 |
+
|
413 |
+
// Header selective refresh
|
414 |
+
function gradiant_lite_header_partials( $wp_customize ){
|
415 |
+
|
416 |
+
// hide_show_nav_btn
|
417 |
+
$wp_customize->selective_refresh->add_partial(
|
418 |
+
'hide_show_nav_btn', array(
|
419 |
+
'selector' => '.navigator .av-button-area',
|
420 |
+
'container_inclusive' => true,
|
421 |
+
'render_callback' => 'header_navigation',
|
422 |
+
'fallback_refresh' => true,
|
423 |
+
)
|
424 |
+
);
|
425 |
+
// tlh_mobile_title
|
426 |
+
$wp_customize->selective_refresh->add_partial( 'tlh_mobile_title', array(
|
427 |
+
'selector' => '#above-header .wgt-3 .title',
|
428 |
+
'settings' => 'tlh_mobile_title',
|
429 |
+
'render_callback' => 'gradiant_tlh_mobile_title_render_callback',
|
430 |
+
) );
|
431 |
+
|
432 |
+
// tlh_email_title
|
433 |
+
$wp_customize->selective_refresh->add_partial( 'tlh_email_title', array(
|
434 |
+
'selector' => '#above-header .wgt-2 .title',
|
435 |
+
'settings' => 'tlh_email_title',
|
436 |
+
'render_callback' => 'gradiant_tlh_email_title_render_callback',
|
437 |
+
) );
|
438 |
+
|
439 |
+
// tlh_contact_title
|
440 |
+
$wp_customize->selective_refresh->add_partial( 'tlh_contact_title', array(
|
441 |
+
'selector' => '#above-header .wgt-1 .title',
|
442 |
+
'settings' => 'tlh_contact_title',
|
443 |
+
'render_callback' => 'gradiant_tlh_contact_title_render_callback',
|
444 |
+
) );
|
445 |
+
}
|
446 |
+
|
447 |
+
add_action( 'customize_register', 'gradiant_lite_header_partials' );
|
448 |
+
|
449 |
+
// tlh_mobile_title
|
450 |
+
function gradiant_tlh_mobile_title_render_callback() {
|
451 |
+
return get_theme_mod( 'tlh_mobile_title' );
|
452 |
+
}
|
453 |
+
|
454 |
+
// tlh_email_title
|
455 |
+
function gradiant_tlh_email_title_render_callback() {
|
456 |
+
return get_theme_mod( 'tlh_email_title' );
|
457 |
+
}
|
458 |
+
|
459 |
+
// tlh_contact_title
|
460 |
+
function gradiant_tlh_contact_title_render_callback() {
|
461 |
+
return get_theme_mod( 'tlh_contact_title' );
|
462 |
+
}
|
463 |
+
|
inc/colorpress/sections/above-header.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'gradiant_above_header' ) ) :
|
3 |
+
function gradiant_above_header() {
|
4 |
+
$hs_hdr_icon_menu = get_theme_mod( 'hs_hdr_icon_menu','1');
|
5 |
+
$hdr_top_icon_menu = get_theme_mod( 'hdr_top_icon_menu',gradiant_get_icon_menu_default());
|
6 |
+
$hide_show_cntct_details = get_theme_mod( 'hide_show_cntct_details','1');
|
7 |
+
$hide_show_email_details = get_theme_mod( 'hide_show_email_details','1');
|
8 |
+
$hide_show_mbl_details = get_theme_mod( 'hide_show_mbl_details','1');
|
9 |
+
if($hs_hdr_icon_menu =='1' || $hide_show_cntct_details =='1' || $hide_show_email_details =='1' || $hide_show_mbl_details =='1'):
|
10 |
+
?>
|
11 |
+
<div id="above-header" class="header-above-info d-av-block d-none">
|
12 |
+
<div class="header-widget">
|
13 |
+
<div class="av-container">
|
14 |
+
<div class="av-columns-area">
|
15 |
+
<div class="av-column-6">
|
16 |
+
<div class="widget-left text-av-left text-center">
|
17 |
+
<?php if($hs_hdr_icon_menu =='1'): ?>
|
18 |
+
<aside class="widget widget_nav_menu">
|
19 |
+
<div class="menu-pages-container">
|
20 |
+
<ul id="menu-footer-menu" class="menu">
|
21 |
+
<?php
|
22 |
+
if ( ! empty( $hdr_top_icon_menu ) ) {
|
23 |
+
$hdr_top_icon_menu = json_decode( $hdr_top_icon_menu );
|
24 |
+
foreach ( $hdr_top_icon_menu as $icon_menu_item ) {
|
25 |
+
$title = ! empty( $icon_menu_item->title ) ? apply_filters( 'gradiant_translate_single_string', $icon_menu_item->title, 'Header section' ) : '';
|
26 |
+
$icon = ! empty( $icon_menu_item->icon_value ) ? apply_filters( 'gradiant_translate_single_string', $icon_menu_item->icon_value, 'Header section' ) : '';
|
27 |
+
$link = ! empty( $icon_menu_item->link ) ? apply_filters( 'gradiant_translate_single_string', $icon_menu_item->link, 'Header section' ) : '';
|
28 |
+
?>
|
29 |
+
<li class="menu-item"><a href="<?php echo esc_url($link); ?>" class="nav-link"><i class="fa <?php echo esc_attr($icon); ?>"></i> <?php echo esc_html($title); ?></a></li>
|
30 |
+
<?php } } ?>
|
31 |
+
</ul>
|
32 |
+
</div>
|
33 |
+
</aside>
|
34 |
+
<?php endif; ?>
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
<div class="av-column-6">
|
38 |
+
<div class="widget-right text-av-right text-center">
|
39 |
+
<?php do_action('gradiant_abv_hdr_contact_info'); ?>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
<?php endif;
|
47 |
+
} endif;
|
48 |
+
add_action('gradiant_above_header', 'gradiant_above_header');
|
49 |
+
?>
|
inc/gradiant/block/info-box.php
CHANGED
@@ -99,6 +99,8 @@ function render_gradiant_info( $attributes ) {
|
|
99 |
$infoType = $infoType ?? 'Style 1';
|
100 |
if($infoType =='Style 2'){
|
101 |
$infoTypes='info-wrapper2';
|
|
|
|
|
102 |
}else{
|
103 |
$infoTypes='info-wrapper';
|
104 |
}
|
@@ -113,7 +115,7 @@ function render_gradiant_info( $attributes ) {
|
|
113 |
$linkEl = $isLink ? "$link" : '';
|
114 |
$iconEl = $isIcon && $icon['class'] ? "<div class='contact-icon'><i class='".$icon['class']."'></i></div>" : '';
|
115 |
|
116 |
-
if($infoType =='Style 2'){
|
117 |
$titleEl = $isTitle ? "<a href='". $linkEl ."' class='contact-info'><span class='text'>$title</span>" : '';
|
118 |
$descEl = $isDesc ? "<span class='description title'>$desc</span></a>" : '';
|
119 |
}else{
|
99 |
$infoType = $infoType ?? 'Style 1';
|
100 |
if($infoType =='Style 2'){
|
101 |
$infoTypes='info-wrapper2';
|
102 |
+
}elseif($infoType =='Style 3'){
|
103 |
+
$infoTypes='info-wrapper2 info-wrapper3';
|
104 |
}else{
|
105 |
$infoTypes='info-wrapper';
|
106 |
}
|
115 |
$linkEl = $isLink ? "$link" : '';
|
116 |
$iconEl = $isIcon && $icon['class'] ? "<div class='contact-icon'><i class='".$icon['class']."'></i></div>" : '';
|
117 |
|
118 |
+
if($infoType =='Style 2' || $infoType =='Style 3'){
|
119 |
$titleEl = $isTitle ? "<a href='". $linkEl ."' class='contact-info'><span class='text'>$title</span>" : '';
|
120 |
$descEl = $isDesc ? "<span class='description title'>$desc</span></a>" : '';
|
121 |
}else{
|
inc/gradiant/extras.php
CHANGED
@@ -321,4 +321,27 @@ function gradiant_get_service_default() {
|
|
321 |
)
|
322 |
)
|
323 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
}
|
321 |
)
|
322 |
)
|
323 |
);
|
324 |
+
}
|
325 |
+
|
326 |
+
/*
|
327 |
+
*
|
328 |
+
* Icon Menu Default
|
329 |
+
*/
|
330 |
+
function gradiant_get_icon_menu_default() {
|
331 |
+
return apply_filters(
|
332 |
+
'gradiant_get_icon_menu_default', json_encode(
|
333 |
+
array(
|
334 |
+
array(
|
335 |
+
'title' => esc_html__( 'Commercial', 'gradiant-pro' ),
|
336 |
+
'icon_value' => 'fa-building',
|
337 |
+
'id' => 'customizer_repeater_hdr_icon_menu_001',
|
338 |
+
),
|
339 |
+
array(
|
340 |
+
'title' => esc_html__( 'Residential', 'gradiant-pro' ),
|
341 |
+
'icon_value' => 'fa-home',
|
342 |
+
'id' => 'customizer_repeater_hdr_icon_menu_002',
|
343 |
+
)
|
344 |
+
)
|
345 |
+
)
|
346 |
+
);
|
347 |
}
|
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: 11.
|
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 |
= 11.7 =
|
132 |
* Tested With WordPress 6.0
|
133 |
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 11.8
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
128 |
|
129 |
== Changelog ==
|
130 |
|
131 |
+
= 11.8 =
|
132 |
+
* ColorPress Theme Files Added
|
133 |
+
|
134 |
= 11.7 =
|
135 |
* Tested With WordPress 6.0
|
136 |
|