Version Description
- Comoxa Theme Functionality Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 10.4 |
Comparing to | |
See all releases |
Code changes from version 10.3 to 10.4
- clever-fox.php +6 -2
- inc/cleverfox-activator.php +1 -1
- inc/comoxa/comoxa.php +33 -0
- inc/comoxa/features/comoxa-service.php +230 -0
- inc/comoxa/features/comoxa-slider.php +46 -0
- inc/comoxa/images/logo.png +0 -0
- inc/comoxa/images/slider/img01.png +0 -0
- inc/comoxa/images/slider/img02.png +0 -0
- inc/comoxa/images/slider/img03.png +0 -0
- inc/comoxa/images/slider/slider-bg.png +0 -0
- inc/comoxa/sections/section-service.php +74 -0
- inc/comoxa/sections/section-slider.php +75 -0
- inc/gradiant/default-pages/upload-media.php +8 -3
- inc/gradiant/dynamic-style.php +26 -1
- inc/gradiant/extras.php +93 -39
- inc/gradiant/features/gradiant-slider.php +35 -2
- 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: 10.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -120,6 +120,10 @@ function cleverfox_activate() {
|
|
120 |
require_once('inc/aviser/aviser.php');
|
121 |
}
|
122 |
|
|
|
|
|
|
|
|
|
123 |
}
|
124 |
add_action( 'init', 'cleverfox_activate' );
|
125 |
|
@@ -136,7 +140,7 @@ if( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News'
|
|
136 |
/**
|
137 |
* Gradiant Block
|
138 |
*/
|
139 |
-
if( 'Gradiant' == $theme->name){
|
140 |
require CLEVERFOX_PLUGIN_DIR . '/inc/gradiant/block/info-box.php';
|
141 |
}
|
142 |
|
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: 10.4
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
120 |
require_once('inc/aviser/aviser.php');
|
121 |
}
|
122 |
|
123 |
+
if( 'Comoxa' == $theme->name){
|
124 |
+
require_once('inc/comoxa/comoxa.php');
|
125 |
+
}
|
126 |
+
|
127 |
}
|
128 |
add_action( 'init', 'cleverfox_activate' );
|
129 |
|
140 |
/**
|
141 |
* Gradiant Block
|
142 |
*/
|
143 |
+
if( 'Gradiant' == $theme->name || 'Comoxa' == $theme->name){
|
144 |
require CLEVERFOX_PLUGIN_DIR . '/inc/gradiant/block/info-box.php';
|
145 |
}
|
146 |
|
inc/cleverfox-activator.php
CHANGED
@@ -131,7 +131,7 @@ class Cleverfox_Activator {
|
|
131 |
require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/default-widgets/default-widget.php';
|
132 |
}
|
133 |
|
134 |
-
if ( 'Gradiant' == $theme->name){
|
135 |
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-pages/upload-media.php';
|
136 |
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-pages/home-page.php';
|
137 |
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-widgets/default-widget.php';
|
131 |
require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/default-widgets/default-widget.php';
|
132 |
}
|
133 |
|
134 |
+
if ( 'Gradiant' == $theme->name || 'Comoxa' == $theme->name){
|
135 |
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-pages/upload-media.php';
|
136 |
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-pages/home-page.php';
|
137 |
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-widgets/default-widget.php';
|
inc/comoxa/comoxa.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/gradiant/sections/above-header.php';
|
9 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/above-footer.php';
|
10 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/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/comoxa/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/comoxa/features/comoxa-service.php
ADDED
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function gradiant_service_setting( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
/*=========================================
|
5 |
+
Service Section
|
6 |
+
=========================================*/
|
7 |
+
$wp_customize->add_section(
|
8 |
+
'service_setting', array(
|
9 |
+
'title' => esc_html__( 'Service Section', 'clever-fox' ),
|
10 |
+
'priority' => 3,
|
11 |
+
'panel' => 'gradiant_frontpage_sections',
|
12 |
+
)
|
13 |
+
);
|
14 |
+
|
15 |
+
// Setting Head
|
16 |
+
$wp_customize->add_setting(
|
17 |
+
'service_setting_head'
|
18 |
+
,array(
|
19 |
+
'capability' => 'edit_theme_options',
|
20 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
21 |
+
'priority' => 1,
|
22 |
+
)
|
23 |
+
);
|
24 |
+
|
25 |
+
$wp_customize->add_control(
|
26 |
+
'service_setting_head',
|
27 |
+
array(
|
28 |
+
'type' => 'hidden',
|
29 |
+
'label' => __('Setting','clever-fox'),
|
30 |
+
'section' => 'service_setting',
|
31 |
+
)
|
32 |
+
);
|
33 |
+
|
34 |
+
// Hide / Show
|
35 |
+
$wp_customize->add_setting(
|
36 |
+
'service_hs'
|
37 |
+
,array(
|
38 |
+
'default' => '1',
|
39 |
+
'capability' => 'edit_theme_options',
|
40 |
+
'sanitize_callback' => 'gradiant_sanitize_checkbox',
|
41 |
+
'priority' => 1,
|
42 |
+
)
|
43 |
+
);
|
44 |
+
|
45 |
+
$wp_customize->add_control(
|
46 |
+
'service_hs',
|
47 |
+
array(
|
48 |
+
'type' => 'checkbox',
|
49 |
+
'label' => __('Hide / Show','clever-fox'),
|
50 |
+
'section' => 'service_setting',
|
51 |
+
)
|
52 |
+
);
|
53 |
+
|
54 |
+
// Service Header Section //
|
55 |
+
$wp_customize->add_setting(
|
56 |
+
'service_headings'
|
57 |
+
,array(
|
58 |
+
'capability' => 'edit_theme_options',
|
59 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
60 |
+
'priority' => 3,
|
61 |
+
)
|
62 |
+
);
|
63 |
+
|
64 |
+
$wp_customize->add_control(
|
65 |
+
'service_headings',
|
66 |
+
array(
|
67 |
+
'type' => 'hidden',
|
68 |
+
'label' => __('Header','clever-fox'),
|
69 |
+
'section' => 'service_setting',
|
70 |
+
)
|
71 |
+
);
|
72 |
+
|
73 |
+
// Service Title //
|
74 |
+
$wp_customize->add_setting(
|
75 |
+
'service_title',
|
76 |
+
array(
|
77 |
+
'default' => 'Our <span class="primary-color">Expertise</span>',
|
78 |
+
'capability' => 'edit_theme_options',
|
79 |
+
'sanitize_callback' => 'gradiant_sanitize_html',
|
80 |
+
'transport' => $selective_refresh,
|
81 |
+
'priority' => 4,
|
82 |
+
)
|
83 |
+
);
|
84 |
+
|
85 |
+
$wp_customize->add_control(
|
86 |
+
'service_title',
|
87 |
+
array(
|
88 |
+
'label' => __('Title','clever-fox'),
|
89 |
+
'section' => 'service_setting',
|
90 |
+
'type' => 'text',
|
91 |
+
)
|
92 |
+
);
|
93 |
+
|
94 |
+
// Service Description //
|
95 |
+
$wp_customize->add_setting(
|
96 |
+
'service_description',
|
97 |
+
array(
|
98 |
+
'default' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.','clever-fox'),
|
99 |
+
'capability' => 'edit_theme_options',
|
100 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
101 |
+
'transport' => $selective_refresh,
|
102 |
+
'priority' => 6,
|
103 |
+
)
|
104 |
+
);
|
105 |
+
|
106 |
+
$wp_customize->add_control(
|
107 |
+
'service_description',
|
108 |
+
array(
|
109 |
+
'label' => __('Description','clever-fox'),
|
110 |
+
'section' => 'service_setting',
|
111 |
+
'type' => 'textarea',
|
112 |
+
)
|
113 |
+
);
|
114 |
+
|
115 |
+
// Service content Section //
|
116 |
+
|
117 |
+
$wp_customize->add_setting(
|
118 |
+
'service_content_head'
|
119 |
+
,array(
|
120 |
+
'capability' => 'edit_theme_options',
|
121 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
122 |
+
'priority' => 7,
|
123 |
+
)
|
124 |
+
);
|
125 |
+
|
126 |
+
$wp_customize->add_control(
|
127 |
+
'service_content_head',
|
128 |
+
array(
|
129 |
+
'type' => 'hidden',
|
130 |
+
'label' => __('Content','clever-fox'),
|
131 |
+
'section' => 'service_setting',
|
132 |
+
)
|
133 |
+
);
|
134 |
+
|
135 |
+
/**
|
136 |
+
* Customizer Repeater for add service
|
137 |
+
*/
|
138 |
+
|
139 |
+
$wp_customize->add_setting( 'service_contents',
|
140 |
+
array(
|
141 |
+
'sanitize_callback' => 'gradiant_repeater_sanitize',
|
142 |
+
'transport' => $selective_refresh,
|
143 |
+
'priority' => 8,
|
144 |
+
'default' => gradiant_get_service_default()
|
145 |
+
)
|
146 |
+
);
|
147 |
+
|
148 |
+
$wp_customize->add_control(
|
149 |
+
new Gradiant_Repeater( $wp_customize,
|
150 |
+
'service_contents',
|
151 |
+
array(
|
152 |
+
'label' => esc_html__('Service','clever-fox'),
|
153 |
+
'section' => 'service_setting',
|
154 |
+
'add_field_label' => esc_html__( 'Add New Service', 'clever-fox' ),
|
155 |
+
'item_name' => esc_html__( 'Service', 'clever-fox' ),
|
156 |
+
'customizer_repeater_icon_control' => true,
|
157 |
+
'customizer_repeater_image_control' => true,
|
158 |
+
'customizer_repeater_title_control' => true,
|
159 |
+
'customizer_repeater_text_control' => true,
|
160 |
+
'customizer_repeater_link_control' => true,
|
161 |
+
)
|
162 |
+
)
|
163 |
+
);
|
164 |
+
|
165 |
+
|
166 |
+
//Pro feature
|
167 |
+
class Gradiant_service__section_upgrade extends WP_Customize_Control {
|
168 |
+
public function render_content() {
|
169 |
+
$theme = wp_get_theme(); // gets the current theme
|
170 |
+
?>
|
171 |
+
<a class="customizer_service_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>
|
172 |
+
|
173 |
+
<?php
|
174 |
+
}
|
175 |
+
}
|
176 |
+
|
177 |
+
$wp_customize->add_setting( 'gradiant_service_upgrade_to_pro', array(
|
178 |
+
'capability' => 'edit_theme_options',
|
179 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
180 |
+
'priority' => 5,
|
181 |
+
));
|
182 |
+
$wp_customize->add_control(
|
183 |
+
new Gradiant_service__section_upgrade(
|
184 |
+
$wp_customize,
|
185 |
+
'gradiant_service_upgrade_to_pro',
|
186 |
+
array(
|
187 |
+
'section' => 'service_setting',
|
188 |
+
)
|
189 |
+
)
|
190 |
+
);
|
191 |
+
}
|
192 |
+
|
193 |
+
add_action( 'customize_register', 'gradiant_service_setting' );
|
194 |
+
|
195 |
+
// service selective refresh
|
196 |
+
function gradiant_home_service_section_partials( $wp_customize ){
|
197 |
+
// service title
|
198 |
+
$wp_customize->selective_refresh->add_partial( 'service_title', array(
|
199 |
+
'selector' => '.service-home .heading-default h3',
|
200 |
+
'settings' => 'service_title',
|
201 |
+
'render_callback' => 'gradiant_service_title_render_callback',
|
202 |
+
|
203 |
+
) );
|
204 |
+
|
205 |
+
// service description
|
206 |
+
$wp_customize->selective_refresh->add_partial( 'service_description', array(
|
207 |
+
'selector' => '.service-home .heading-default p',
|
208 |
+
'settings' => 'service_description',
|
209 |
+
'render_callback' => 'gradiant_service_desc_render_callback',
|
210 |
+
|
211 |
+
) );
|
212 |
+
// service content
|
213 |
+
$wp_customize->selective_refresh->add_partial( 'service_contents', array(
|
214 |
+
'selector' => '.service-home .service-contents'
|
215 |
+
|
216 |
+
) );
|
217 |
+
|
218 |
+
}
|
219 |
+
|
220 |
+
add_action( 'customize_register', 'gradiant_home_service_section_partials' );
|
221 |
+
|
222 |
+
// service title
|
223 |
+
function gradiant_service_title_render_callback() {
|
224 |
+
return get_theme_mod( 'service_title' );
|
225 |
+
}
|
226 |
+
|
227 |
+
// service description
|
228 |
+
function gradiant_service_desc_render_callback() {
|
229 |
+
return get_theme_mod( 'service_description' );
|
230 |
+
}
|
inc/comoxa/features/comoxa-slider.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function comoxa_slider_setting( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
|
5 |
+
// Subtitle Color
|
6 |
+
$wp_customize->add_setting(
|
7 |
+
'slider_subttl_clr',
|
8 |
+
array(
|
9 |
+
'capability' => 'edit_theme_options',
|
10 |
+
'sanitize_callback' => 'sanitize_text_field',
|
11 |
+
'default' => '#252525'
|
12 |
+
));
|
13 |
+
|
14 |
+
$wp_customize->add_control(
|
15 |
+
new WP_Customize_Color_Control
|
16 |
+
($wp_customize,
|
17 |
+
'slider_subttl_clr',
|
18 |
+
array(
|
19 |
+
'label' => __( 'Subtitle Color', 'clever-fox' ),
|
20 |
+
'section' => 'slider_setting',
|
21 |
+
)
|
22 |
+
)
|
23 |
+
);
|
24 |
+
|
25 |
+
// Description Color
|
26 |
+
$wp_customize->add_setting(
|
27 |
+
'slider_desc_clr',
|
28 |
+
array(
|
29 |
+
'capability' => 'edit_theme_options',
|
30 |
+
'sanitize_callback' => 'sanitize_text_field',
|
31 |
+
'default' => '#252525'
|
32 |
+
));
|
33 |
+
|
34 |
+
$wp_customize->add_control(
|
35 |
+
new WP_Customize_Color_Control
|
36 |
+
($wp_customize,
|
37 |
+
'slider_desc_clr',
|
38 |
+
array(
|
39 |
+
'label' => __( 'Description Color', 'clever-fox' ),
|
40 |
+
'section' => 'slider_setting',
|
41 |
+
)
|
42 |
+
)
|
43 |
+
);
|
44 |
+
}
|
45 |
+
|
46 |
+
add_action( 'customize_register', 'comoxa_slider_setting' );
|
inc/comoxa/images/logo.png
ADDED
Binary file
|
inc/comoxa/images/slider/img01.png
ADDED
Binary file
|
inc/comoxa/images/slider/img02.png
ADDED
Binary file
|
inc/comoxa/images/slider/img03.png
ADDED
Binary file
|
inc/comoxa/images/slider/slider-bg.png
ADDED
Binary file
|
inc/comoxa/sections/section-service.php
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$service_hs = get_theme_mod('service_hs','1');
|
3 |
+
$service_title = get_theme_mod('service_title','Our <span class="primary-color">Expertise</span>');
|
4 |
+
$service_description = get_theme_mod('service_description','Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
|
5 |
+
$service_contents = get_theme_mod('service_contents',gradiant_get_service_default());
|
6 |
+
if($service_hs=='1'){
|
7 |
+
?>
|
8 |
+
<section id="features-section" class="features-section av-py-default shapes-section service-home">
|
9 |
+
<div class="av-container">
|
10 |
+
<?php if(!empty($service_title) || !empty($service_description)): ?>
|
11 |
+
<div class="av-columns-area">
|
12 |
+
<div class="av-column-12">
|
13 |
+
<div class="heading-default text-center wow fadeInUp">
|
14 |
+
<?php if(!empty($service_title)): ?>
|
15 |
+
<h3><?php echo wp_kses_post($service_title); ?></h3>
|
16 |
+
<span class="separator"><span><span></span></span></span>
|
17 |
+
<?php endif; ?>
|
18 |
+
<?php if(!empty($service_description)): ?>
|
19 |
+
<p><?php echo wp_kses_post($service_description); ?></p>
|
20 |
+
<?php endif; ?>
|
21 |
+
</div>
|
22 |
+
</div>
|
23 |
+
</div>
|
24 |
+
<?php endif; ?>
|
25 |
+
<div class="av-columns-area wow fadeInUp service-contents">
|
26 |
+
<?php
|
27 |
+
if ( ! empty( $service_contents ) ) {
|
28 |
+
$service_contents = json_decode( $service_contents );
|
29 |
+
foreach ( $service_contents as $service_item ) {
|
30 |
+
$title = ! empty( $service_item->title ) ? apply_filters( 'gradiant_translate_single_string', $service_item->title, 'Service section' ) : '';
|
31 |
+
$text = ! empty( $service_item->text ) ? apply_filters( 'gradiant_translate_single_string', $service_item->text, 'Service section' ) : '';
|
32 |
+
$button = ! empty( $service_item->text2 ) ? apply_filters( 'gradiant_translate_single_string', $service_item->text2, 'Service section' ) : '';
|
33 |
+
$link = ! empty( $service_item->link ) ? apply_filters( 'gradiant_translate_single_string', $service_item->link, 'Service section' ) : '';
|
34 |
+
$image = ! empty( $service_item->image_url ) ? apply_filters( 'gradiant_translate_single_string', $service_item->image_url, 'Service section' ) : '';
|
35 |
+
$icon = ! empty( $service_item->icon_value ) ? apply_filters( 'gradiant_translate_single_string', $service_item->icon_value, 'Service section' ) : '';
|
36 |
+
?>
|
37 |
+
<div class="av-column-4 av-sm-column-6 tilter">
|
38 |
+
<div class="tilter__figure">
|
39 |
+
<div class="features-item">
|
40 |
+
<div class="features-inner tilter__caption">
|
41 |
+
<?php if(!empty($icon)): ?>
|
42 |
+
<div class="features-icon">
|
43 |
+
<i class="fa <?php echo esc_attr($icon); ?>"></i>
|
44 |
+
</div>
|
45 |
+
<?php else: ?>
|
46 |
+
<div class="features-icon">
|
47 |
+
<img src="<?php echo esc_url($image); ?>" />
|
48 |
+
</div>
|
49 |
+
<?php endif; ?>
|
50 |
+
|
51 |
+
<?php if(!empty($title) || !empty($text)): ?>
|
52 |
+
<div class="features-content">
|
53 |
+
<h6 class="features-title"><a href="<?php echo esc_url($link); ?>"><?php echo esc_html($title); ?></a></h6>
|
54 |
+
<p><?php echo esc_html($text); ?></p>
|
55 |
+
</div>
|
56 |
+
<?php endif; ?>
|
57 |
+
|
58 |
+
<?php if(!empty($icon)): ?>
|
59 |
+
<div class="modern-icon"><i class="fa <?php echo esc_attr($icon); ?>"></i></div>
|
60 |
+
<?php endif; ?>
|
61 |
+
</div>
|
62 |
+
<div class="tilter__deco--lines"></div>
|
63 |
+
</div>
|
64 |
+
</div>
|
65 |
+
</div>
|
66 |
+
<?php } } ?>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
<div class="shape1 bg-elements"><img src="<?php echo esc_url(CLEVERFOX_PLUGIN_URL); ?>inc/gradiant/images/service/clipArt/shape1.png" alt="image"></div>
|
70 |
+
<div class="shape2 bg-elements"><img src="<?php echo esc_url(CLEVERFOX_PLUGIN_URL); ?>inc/gradiant/images/service/clipArt/shape2.png" alt="image"></div>
|
71 |
+
<div class="shape3 bg-elements"><img src="<?php echo esc_url(CLEVERFOX_PLUGIN_URL); ?>inc/gradiant/images/service/clipArt/shape3.png" alt="image"></div>
|
72 |
+
<div class="shape4 bg-elements"><img src="<?php echo esc_url(CLEVERFOX_PLUGIN_URL); ?>inc/gradiant/images/service/clipArt/shape4.png" alt="image"></div>
|
73 |
+
</section>
|
74 |
+
<?php } ?>
|
inc/comoxa/sections/section-slider.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!--===// Start: Slider
|
2 |
+
=================================-->
|
3 |
+
<?php
|
4 |
+
$slider_hs = get_theme_mod('slider_hs','1');
|
5 |
+
$slider = get_theme_mod('slider',gradiant_get_slider_default());
|
6 |
+
$slider_autoplay = get_theme_mod('slider_autoplay','false');
|
7 |
+
if($slider_hs=='1'){
|
8 |
+
?>
|
9 |
+
<section id="slider-section" class="slider-wrapper">
|
10 |
+
<div class="main-slider owl-carousel owl-theme">
|
11 |
+
<?php
|
12 |
+
if ( ! empty( $slider ) ) {
|
13 |
+
$slider = json_decode( $slider );
|
14 |
+
foreach ( $slider as $slide_item ) {
|
15 |
+
$title = ! empty( $slide_item->title ) ? apply_filters( 'gradiant_translate_single_string', $slide_item->title, 'slider section' ) : '';
|
16 |
+
$subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'gradiant_translate_single_string', $slide_item->subtitle, 'slider section' ) : '';
|
17 |
+
$subtitle2 = ! empty( $slide_item->subtitle2 ) ? apply_filters( 'gradiant_translate_single_string', $slide_item->subtitle2, 'slider section' ) : '';
|
18 |
+
$text = ! empty( $slide_item->text ) ? apply_filters( 'gradiant_translate_single_string', $slide_item->text, 'slider section' ) : '';
|
19 |
+
$button = ! empty( $slide_item->text2) ? apply_filters( 'gradiant_translate_single_string', $slide_item->text2,'slider section' ) : '';
|
20 |
+
$link = ! empty( $slide_item->link ) ? apply_filters( 'gradiant_translate_single_string', $slide_item->link, 'slider section' ) : '';
|
21 |
+
$image = ! empty( $slide_item->image_url ) ? apply_filters( 'gradiant_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
|
22 |
+
$image2 = ! empty( $slide_item->image_url2 ) ? apply_filters( 'gradiant_translate_single_string', $slide_item->image_url2, 'slider section' ) : '';
|
23 |
+
$open_new_tab = ! empty( $slide_item->open_new_tab ) ? apply_filters( 'gradiant_translate_single_string', $slide_item->open_new_tab, 'slider section' ) : '';
|
24 |
+
$align = ! empty( $slide_item->slide_align ) ? apply_filters( 'gradiant_translate_single_string', $slide_item->slide_align, 'slider section' ) : '';
|
25 |
+
if($align == 'left'): $animation_align='fadeInLeft';
|
26 |
+
elseif($align == 'center'): $animation_align='fadeInUp';
|
27 |
+
else: $animation_align='fadeInRight'; endif;
|
28 |
+
?>
|
29 |
+
<div class="item">
|
30 |
+
<?php if ( ! empty( $image ) ) : ?>
|
31 |
+
<img src="<?php echo esc_url($image); ?>" data-img-url="<?php echo esc_url($image); ?>" alt="">
|
32 |
+
<?php endif; ?>
|
33 |
+
<div class="theme-slider">
|
34 |
+
<div class="theme-table">
|
35 |
+
<div class="theme-table-cell">
|
36 |
+
<div class="av-container">
|
37 |
+
<div class="av-columns-area theme-content text-<?php echo esc_attr($align); ?> wow zoomIn">
|
38 |
+
<?php if(!empty($image2)): ?>
|
39 |
+
<div class="av-column-7 my-auto">
|
40 |
+
<?php else: ?>
|
41 |
+
<div class="av-column-12">
|
42 |
+
<?php endif; ?>
|
43 |
+
<?php if ( ! empty( $title ) ) : ?>
|
44 |
+
<h3 data-animation="fadeInUp" data-delay="150ms"><?php echo esc_html($title); ?></h3>
|
45 |
+
<?php endif; ?>
|
46 |
+
|
47 |
+
<?php if ( ! empty( $subtitle ) || ! empty( $subtitle2 )) : ?>
|
48 |
+
<h1 data-animation="<?php echo esc_attr($animation_align); ?>" data-delay="200ms"><?php echo esc_html($subtitle); ?> <span class="primary-color"><?php echo esc_html($subtitle2); ?></span></h1>
|
49 |
+
<?php endif; ?>
|
50 |
+
|
51 |
+
<?php if ( ! empty( $text ) ) : ?>
|
52 |
+
<p data-animation="<?php echo esc_attr($animation_align); ?>" data-delay="500ms"><?php echo esc_html($text); ?></p>
|
53 |
+
<?php endif; ?>
|
54 |
+
|
55 |
+
<?php if ( ! empty( $button ) ) : ?>
|
56 |
+
<a data-animation="fadeInUp" data-delay="800ms" href="<?php echo esc_url( $link ); ?>" <?php if($open_new_tab== 'yes' || $open_new_tab== '1') { echo "target='_blank'"; } ?> class="av-btn av-btn-primary av-btn-bubble"><?php echo esc_html( $button ); ?> <i class="fa fa-arrow-right"></i> <span class="bubble_effect"><span class="circle top-left"></span> <span class="circle top-left"></span> <span class="circle top-left"></span> <span class="button effect-button"></span> <span class="circle bottom-right"></span> <span class="circle bottom-right"></span> <span class="circle bottom-right"></span></span></a>
|
57 |
+
<?php endif; ?>
|
58 |
+
</div>
|
59 |
+
<?php if(!empty($image2)): ?>
|
60 |
+
<div class="av-column-5 mb-av-0 mx-auto my-auto">
|
61 |
+
<div class="side-img">
|
62 |
+
<img src="<?php echo esc_url($image2); ?>" />
|
63 |
+
</div>
|
64 |
+
</div>
|
65 |
+
<?php endif; ?>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
<?php } } ?>
|
73 |
+
</div>
|
74 |
+
</section>
|
75 |
+
<?php } ?>
|
inc/gradiant/default-pages/upload-media.php
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
<?php
|
2 |
-
$
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
$images = array(
|
6 |
$ImagePath. '/logo.png',
|
7 |
);
|
1 |
<?php
|
2 |
+
$theme = wp_get_theme(); // gets the current theme
|
3 |
+
if( 'Comoxa' == $theme->name){
|
4 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/comoxa/images/logo.png';
|
5 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/comoxa/images';
|
6 |
+
}else{
|
7 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/gradiant/images/logo.png';
|
8 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/gradiant/images';
|
9 |
+
}
|
10 |
$images = array(
|
11 |
$ImagePath. '/logo.png',
|
12 |
);
|
inc/gradiant/dynamic-style.php
CHANGED
@@ -3,6 +3,7 @@ if( ! function_exists( 'cleverfox_gradiant_dynamic_styles' ) ):
|
|
3 |
function cleverfox_gradiant_dynamic_styles() {
|
4 |
$output_css = '';
|
5 |
|
|
|
6 |
|
7 |
/**
|
8 |
* Logo Width
|
@@ -17,7 +18,11 @@ if( ! function_exists( 'cleverfox_gradiant_dynamic_styles' ) ):
|
|
17 |
/**
|
18 |
* Slider
|
19 |
*/
|
20 |
-
|
|
|
|
|
|
|
|
|
21 |
|
22 |
$output_css .=".theme-slider {
|
23 |
background: rgba(0, 0, 0, $slider_opacity);
|
@@ -67,6 +72,26 @@ if( ! function_exists( 'cleverfox_gradiant_dynamic_styles' ) ):
|
|
67 |
font-style: " .esc_attr($gradiant_heading_font_style). ";
|
68 |
}\n";
|
69 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
wp_add_inline_style( 'gradiant-style', $output_css );
|
72 |
}
|
3 |
function cleverfox_gradiant_dynamic_styles() {
|
4 |
$output_css = '';
|
5 |
|
6 |
+
$theme = wp_get_theme(); // gets the current theme
|
7 |
|
8 |
/**
|
9 |
* Logo Width
|
18 |
/**
|
19 |
* Slider
|
20 |
*/
|
21 |
+
$overlay_color = '0.6';
|
22 |
+
if ( 'Comoxa' == $theme->name){
|
23 |
+
$overlay_color = '0';
|
24 |
+
}
|
25 |
+
$slider_opacity = get_theme_mod('slider_opacity',$overlay_color);
|
26 |
|
27 |
$output_css .=".theme-slider {
|
28 |
background: rgba(0, 0, 0, $slider_opacity);
|
72 |
font-style: " .esc_attr($gradiant_heading_font_style). ";
|
73 |
}\n";
|
74 |
}
|
75 |
+
|
76 |
+
|
77 |
+
/**
|
78 |
+
* Slider
|
79 |
+
*/
|
80 |
+
if ( 'Comoxa' == $theme->name){
|
81 |
+
$slider_subttl_clr = get_theme_mod('slider_subttl_clr','#252525');
|
82 |
+
$slider_desc_clr = get_theme_mod('slider_desc_clr','#252525');
|
83 |
+
if(!empty($slider_subttl_clr)) {
|
84 |
+
$output_css .=".theme-slider .theme-content h1 {
|
85 |
+
color: " .esc_attr($slider_subttl_clr). ";
|
86 |
+
}\n";
|
87 |
+
}
|
88 |
+
|
89 |
+
if(!empty($slider_desc_clr)) {
|
90 |
+
$output_css .=".theme-slider .theme-content p {
|
91 |
+
color: " .esc_attr($slider_desc_clr). ";
|
92 |
+
}\n";
|
93 |
+
}
|
94 |
+
}
|
95 |
|
96 |
wp_add_inline_style( 'gradiant-style', $output_css );
|
97 |
}
|
inc/gradiant/extras.php
CHANGED
@@ -181,46 +181,97 @@ function gradiant_get_social_icon_default() {
|
|
181 |
*
|
182 |
* Slider Default
|
183 |
*/
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
)
|
222 |
-
)
|
223 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
}
|
225 |
|
226 |
/*
|
@@ -238,6 +289,7 @@ function gradiant_get_service_default() {
|
|
238 |
'subtitle' => esc_html__( 'Cyber Security', 'clever-fox' ),
|
239 |
'subtitle2' => esc_html__( 'A Trusted Partner', 'clever-fox' ),
|
240 |
'subtitle3' => esc_html__( 'Application Security', 'clever-fox' ),
|
|
|
241 |
'text2' => esc_html__( 'View More', 'clever-fox' ),
|
242 |
'link' => '#',
|
243 |
'id' => 'customizer_repeater_service_001',
|
@@ -249,6 +301,7 @@ function gradiant_get_service_default() {
|
|
249 |
'subtitle' => esc_html__( 'Cyber Security', 'clever-fox' ),
|
250 |
'subtitle2' => esc_html__( 'A Trusted Partner', 'clever-fox' ),
|
251 |
'subtitle3' => esc_html__( 'Application Security', 'clever-fox' ),
|
|
|
252 |
'text2' => esc_html__( 'View More', 'clever-fox' ),
|
253 |
'link' => '#',
|
254 |
'id' => 'customizer_repeater_service_002',
|
@@ -260,6 +313,7 @@ function gradiant_get_service_default() {
|
|
260 |
'subtitle' => esc_html__( 'Cyber Security', 'clever-fox' ),
|
261 |
'subtitle2' => esc_html__( 'A Trusted Partner', 'clever-fox' ),
|
262 |
'subtitle3' => esc_html__( 'Application Security', 'clever-fox' ),
|
|
|
263 |
'text2' => esc_html__( 'View More', 'clever-fox' ),
|
264 |
'link' => '#',
|
265 |
'id' => 'customizer_repeater_service_003',
|
181 |
*
|
182 |
* Slider Default
|
183 |
*/
|
184 |
+
$theme = wp_get_theme(); // gets the current theme
|
185 |
+
if ( 'Comoxa' == $theme->name){
|
186 |
+
function gradiant_get_slider_default() {
|
187 |
+
return apply_filters(
|
188 |
+
'gradiant_get_slider_default', json_encode(
|
189 |
+
array(
|
190 |
+
array(
|
191 |
+
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/comoxa/images/slider/slider-bg.png',
|
192 |
+
'image_url2' => CLEVERFOX_PLUGIN_URL . 'inc/comoxa/images/slider/img01.png',
|
193 |
+
'title' => esc_html__( 'Welcome innovation in business starts here', 'clever-fox' ),
|
194 |
+
'subtitle' => esc_html__( 'Digital Marketing', 'clever-fox' ),
|
195 |
+
'subtitle2' => esc_html__( 'Agency', 'clever-fox' ),
|
196 |
+
'text' => esc_html__( 'We create and build flexible & creative design in your budget. Helping your get increase sales.', 'clever-fox' ),
|
197 |
+
'text2' => esc_html__( 'Get Started', 'clever-fox' ),
|
198 |
+
'link' => esc_html__( '#', 'clever-fox' ),
|
199 |
+
"slide_align" => "left",
|
200 |
+
'id' => 'customizer_repeater_slider_001',
|
201 |
+
),
|
202 |
+
array(
|
203 |
+
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/comoxa/images/slider/slider-bg.png',
|
204 |
+
'image_url2' => CLEVERFOX_PLUGIN_URL . 'inc/comoxa/images/slider/img02.png',
|
205 |
+
'title' => esc_html__( 'Welcome innovation in business starts here', 'clever-fox' ),
|
206 |
+
'subtitle' => esc_html__( 'Digital Marketing', 'clever-fox' ),
|
207 |
+
'subtitle2' => esc_html__( 'Agency', 'clever-fox' ),
|
208 |
+
'text' => esc_html__( 'We create and build flexible & creative design in your budget. Helping your get increase sales.', 'clever-fox' ),
|
209 |
+
'text2' => esc_html__( 'Get Started', 'clever-fox' ),
|
210 |
+
'link' => esc_html__( '#', 'clever-fox' ),
|
211 |
+
"slide_align" => "right",
|
212 |
+
'id' => 'customizer_repeater_slider_002',
|
213 |
+
),
|
214 |
+
array(
|
215 |
+
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/comoxa/images/slider/slider-bg.png',
|
216 |
+
'image_url2' => CLEVERFOX_PLUGIN_URL . 'inc/comoxa/images/slider/img03.png',
|
217 |
+
'title' => esc_html__( 'Welcome innovation in business starts here', 'clever-fox' ),
|
218 |
+
'subtitle' => esc_html__( 'Digital Marketing', 'clever-fox' ),
|
219 |
+
'subtitle2' => esc_html__( 'Agency', 'clever-fox' ),
|
220 |
+
'text' => esc_html__( 'We create and build flexible & creative design in your budget. Helping your get increase sales.', 'clever-fox' ),
|
221 |
+
'text2' => esc_html__( 'Get Started', 'clever-fox' ),
|
222 |
+
'link' => esc_html__( '#', 'clever-fox' ),
|
223 |
+
"slide_align" => "left",
|
224 |
+
'id' => 'customizer_repeater_slider_003',
|
225 |
+
),
|
226 |
+
)
|
227 |
)
|
228 |
+
);
|
229 |
+
}
|
230 |
+
}else{
|
231 |
+
function gradiant_get_slider_default() {
|
232 |
+
return apply_filters(
|
233 |
+
'gradiant_get_slider_default', json_encode(
|
234 |
+
array(
|
235 |
+
array(
|
236 |
+
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/slider/img01.jpg',
|
237 |
+
'image_url2' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/slider/img01.jpg',
|
238 |
+
'title' => esc_html__( 'Welcome innovation in business starts here', 'clever-fox' ),
|
239 |
+
'subtitle' => esc_html__( 'Digital Marketing', 'clever-fox' ),
|
240 |
+
'subtitle2' => esc_html__( 'Agency', 'clever-fox' ),
|
241 |
+
'text' => esc_html__( 'We create and build flexible & creative design in your budget. Helping your get increase sales.', 'clever-fox' ),
|
242 |
+
'text2' => esc_html__( 'Get Started', 'clever-fox' ),
|
243 |
+
'link' => esc_html__( '#', 'clever-fox' ),
|
244 |
+
"slide_align" => "left",
|
245 |
+
'id' => 'customizer_repeater_slider_001',
|
246 |
+
),
|
247 |
+
array(
|
248 |
+
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/slider/img02.jpg',
|
249 |
+
'image_url2' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/slider/img02.jpg',
|
250 |
+
'title' => esc_html__( 'Welcome innovation in business starts here', 'clever-fox' ),
|
251 |
+
'subtitle' => esc_html__( 'Digital Marketing', 'clever-fox' ),
|
252 |
+
'subtitle2' => esc_html__( 'Agency', 'clever-fox' ),
|
253 |
+
'text' => esc_html__( 'We create and build flexible & creative design in your budget. Helping your get increase sales.', 'clever-fox' ),
|
254 |
+
'text2' => esc_html__( 'Get Started', 'clever-fox' ),
|
255 |
+
'link' => esc_html__( '#', 'clever-fox' ),
|
256 |
+
"slide_align" => "center",
|
257 |
+
'id' => 'customizer_repeater_slider_002',
|
258 |
+
),
|
259 |
+
array(
|
260 |
+
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/slider/img03.jpg',
|
261 |
+
'image_url2' => CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/slider/img03.jpg',
|
262 |
+
'title' => esc_html__( 'Welcome innovation in business starts here', 'clever-fox' ),
|
263 |
+
'subtitle' => esc_html__( 'Digital Marketing', 'clever-fox' ),
|
264 |
+
'subtitle2' => esc_html__( 'Agency', 'clever-fox' ),
|
265 |
+
'text' => esc_html__( 'We create and build flexible & creative design in your budget. Helping your get increase sales.', 'clever-fox' ),
|
266 |
+
'text2' => esc_html__( 'Get Started', 'clever-fox' ),
|
267 |
+
'link' => esc_html__( '#', 'clever-fox' ),
|
268 |
+
"slide_align" => "right",
|
269 |
+
'id' => 'customizer_repeater_slider_003',
|
270 |
+
),
|
271 |
+
)
|
272 |
+
)
|
273 |
+
);
|
274 |
+
}
|
275 |
}
|
276 |
|
277 |
/*
|
289 |
'subtitle' => esc_html__( 'Cyber Security', 'clever-fox' ),
|
290 |
'subtitle2' => esc_html__( 'A Trusted Partner', 'clever-fox' ),
|
291 |
'subtitle3' => esc_html__( 'Application Security', 'clever-fox' ),
|
292 |
+
'text' => esc_html__( 'Contrary to popular belief, Lorem ipsum is not simply random text. it has roots in a piece of classical Latin literature Contrary', 'clever-fox' ),
|
293 |
'text2' => esc_html__( 'View More', 'clever-fox' ),
|
294 |
'link' => '#',
|
295 |
'id' => 'customizer_repeater_service_001',
|
301 |
'subtitle' => esc_html__( 'Cyber Security', 'clever-fox' ),
|
302 |
'subtitle2' => esc_html__( 'A Trusted Partner', 'clever-fox' ),
|
303 |
'subtitle3' => esc_html__( 'Application Security', 'clever-fox' ),
|
304 |
+
'text' => esc_html__( 'Contrary to popular belief, Lorem ipsum is not simply random text. it has roots in a piece of classical Latin literature Contrary', 'clever-fox' ),
|
305 |
'text2' => esc_html__( 'View More', 'clever-fox' ),
|
306 |
'link' => '#',
|
307 |
'id' => 'customizer_repeater_service_002',
|
313 |
'subtitle' => esc_html__( 'Cyber Security', 'clever-fox' ),
|
314 |
'subtitle2' => esc_html__( 'A Trusted Partner', 'clever-fox' ),
|
315 |
'subtitle3' => esc_html__( 'Application Security', 'clever-fox' ),
|
316 |
+
'text' => esc_html__( 'Contrary to popular belief, Lorem ipsum is not simply random text. it has roots in a piece of classical Latin literature Contrary', 'clever-fox' ),
|
317 |
'text2' => esc_html__( 'View More', 'clever-fox' ),
|
318 |
'link' => '#',
|
319 |
'id' => 'customizer_repeater_service_003',
|
inc/gradiant/features/gradiant-slider.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
function gradiant_slider_setting( $wp_customize ) {
|
3 |
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
|
|
4 |
/*=========================================
|
5 |
Slider Section Panel
|
6 |
=========================================*/
|
@@ -90,7 +91,8 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
90 |
)
|
91 |
);
|
92 |
|
93 |
-
$
|
|
|
94 |
new Gradiant_Repeater( $wp_customize,
|
95 |
'slider',
|
96 |
array(
|
@@ -109,9 +111,35 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
109 |
'customizer_repeater_slide_align' => true,
|
110 |
'customizer_repeater_checkbox_control' => true,
|
111 |
'customizer_repeater_image_control' => true,
|
|
|
112 |
)
|
113 |
)
|
114 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
//Pro feature
|
117 |
class Gradiant_slider__section_upgrade extends WP_Customize_Control {
|
@@ -141,11 +169,16 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
141 |
|
142 |
|
143 |
// slider opacity
|
|
|
|
|
|
|
|
|
|
|
144 |
if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
|
145 |
$wp_customize->add_setting(
|
146 |
'slider_opacity',
|
147 |
array(
|
148 |
-
'default' =>
|
149 |
'capability' => 'edit_theme_options',
|
150 |
//'sanitize_callback' => 'gradiant_sanitize_range_value',
|
151 |
'priority' => 7,
|
1 |
<?php
|
2 |
function gradiant_slider_setting( $wp_customize ) {
|
3 |
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
$theme = wp_get_theme(); // gets the current theme
|
5 |
/*=========================================
|
6 |
Slider Section Panel
|
7 |
=========================================*/
|
91 |
)
|
92 |
);
|
93 |
|
94 |
+
if ( 'Comoxa' == $theme->name){
|
95 |
+
$wp_customize->add_control(
|
96 |
new Gradiant_Repeater( $wp_customize,
|
97 |
'slider',
|
98 |
array(
|
111 |
'customizer_repeater_slide_align' => true,
|
112 |
'customizer_repeater_checkbox_control' => true,
|
113 |
'customizer_repeater_image_control' => true,
|
114 |
+
'customizer_repeater_image2_control' => true,
|
115 |
)
|
116 |
)
|
117 |
);
|
118 |
+
}else{
|
119 |
+
$wp_customize->add_control(
|
120 |
+
new Gradiant_Repeater( $wp_customize,
|
121 |
+
'slider',
|
122 |
+
array(
|
123 |
+
'label' => esc_html__('Slide','clever-fox'),
|
124 |
+
'section' => 'slider_setting',
|
125 |
+
'add_field_label' => esc_html__( 'Add New Slider', 'clever-fox' ),
|
126 |
+
'item_name' => esc_html__( 'Slider', 'clever-fox' ),
|
127 |
+
|
128 |
+
|
129 |
+
'customizer_repeater_title_control' => true,
|
130 |
+
'customizer_repeater_subtitle_control' => true,
|
131 |
+
'customizer_repeater_subtitle2_control' => true,
|
132 |
+
'customizer_repeater_text_control' => true,
|
133 |
+
'customizer_repeater_text2_control'=> true,
|
134 |
+
'customizer_repeater_link_control' => true,
|
135 |
+
'customizer_repeater_slide_align' => true,
|
136 |
+
'customizer_repeater_checkbox_control' => true,
|
137 |
+
'customizer_repeater_image_control' => true,
|
138 |
+
)
|
139 |
+
)
|
140 |
+
);
|
141 |
+
}
|
142 |
+
|
143 |
|
144 |
//Pro feature
|
145 |
class Gradiant_slider__section_upgrade extends WP_Customize_Control {
|
169 |
|
170 |
|
171 |
// slider opacity
|
172 |
+
$overlay_color = '0.6';
|
173 |
+
if ( 'Comoxa' == $theme->name){
|
174 |
+
$overlay_color = '0';
|
175 |
+
}
|
176 |
+
|
177 |
if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
|
178 |
$wp_customize->add_setting(
|
179 |
'slider_opacity',
|
180 |
array(
|
181 |
+
'default' => $overlay_color,
|
182 |
'capability' => 'edit_theme_options',
|
183 |
//'sanitize_callback' => 'gradiant_sanitize_range_value',
|
184 |
'priority' => 7,
|
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: 5.9
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 10.
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
@@ -124,6 +124,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
124 |
|
125 |
== Changelog ==
|
126 |
|
|
|
|
|
|
|
127 |
= 10.3 =
|
128 |
* Readme Updated
|
129 |
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 10.4
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
+
= 10.4 =
|
128 |
+
* Comoxa Theme Functionality Added
|
129 |
+
|
130 |
= 10.3 =
|
131 |
* Readme Updated
|
132 |
|