Version Description
- Cosmics Theme Files Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 15.7 |
Comparing to | |
See all releases |
Code changes from version 15.6 to 15.7
- clever-fox.php +5 -1
- inc/cleverfox-activator.php +6 -0
- inc/cosmics/cosmics.php +25 -0
- inc/cosmics/default-pages/home-page.php +24 -0
- inc/cosmics/default-pages/upload-media.php +34 -0
- inc/cosmics/default-widgets/default-widget.php +44 -0
- inc/cosmics/features/section-info.php +845 -0
- inc/cosmics/images/logo.png +0 -0
- inc/cosmics/sections/section-info.php +121 -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 60000+ 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: 15.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -156,6 +156,10 @@ function cleverfox_activate() {
|
|
156 |
require_once('inc/varuda/varuda.php');
|
157 |
}
|
158 |
|
|
|
|
|
|
|
|
|
159 |
}
|
160 |
add_action( 'init', 'cleverfox_activate' );
|
161 |
|
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 60000+ 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: 15.7
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
156 |
require_once('inc/varuda/varuda.php');
|
157 |
}
|
158 |
|
159 |
+
if( 'Cosmics' == $theme->name){
|
160 |
+
require_once('inc/cosmics/cosmics.php');
|
161 |
+
}
|
162 |
+
|
163 |
}
|
164 |
add_action( 'init', 'cleverfox_activate' );
|
165 |
|
inc/cleverfox-activator.php
CHANGED
@@ -167,6 +167,12 @@ class Cleverfox_Activator {
|
|
167 |
require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/default-widgets/default-widget.php';
|
168 |
}
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
update_option( 'item_details_page', 'Done' );
|
171 |
}
|
172 |
}
|
167 |
require CLEVERFOX_PLUGIN_DIR . 'inc/eduvert/default-widgets/default-widget.php';
|
168 |
}
|
169 |
|
170 |
+
if ( 'Cosmics' == $theme->name){
|
171 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/cosmics/default-pages/upload-media.php';
|
172 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/cosmics/default-pages/home-page.php';
|
173 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/cosmics/default-widgets/default-widget.php';
|
174 |
+
}
|
175 |
+
|
176 |
update_option( 'item_details_page', 'Done' );
|
177 |
}
|
178 |
}
|
inc/cosmics/cosmics.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Hantus
|
4 |
+
*/
|
5 |
+
|
6 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/thai-spa/sections/above-header.php';
|
7 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/thai-spa/features/hantus-above-header.php';
|
8 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/features/navigation.php';
|
9 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/features/section-slider.php';
|
10 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/cosmics/features/section-info.php';
|
11 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/features/section-service.php';
|
12 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/features/section-testimonial.php';
|
13 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/features/section-typography.php';
|
14 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/dynamic-style.php';
|
15 |
+
|
16 |
+
|
17 |
+
if ( ! function_exists( 'cleverfox_hantus_frontpage_sections' ) ) :
|
18 |
+
function cleverfox_hantus_frontpage_sections() {
|
19 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/sections/section-slider.php';
|
20 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/cosmics/sections/section-info.php';
|
21 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/sections/section-service.php';
|
22 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/sections/section-testimonial.php';
|
23 |
+
}
|
24 |
+
add_action( 'hantus_sections', 'cleverfox_hantus_frontpage_sections' );
|
25 |
+
endif;
|
inc/cosmics/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/cosmics/default-pages/upload-media.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/cosmics/images/logo.png';
|
3 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/cosmics/images';
|
4 |
+
|
5 |
+
$images = array(
|
6 |
+
$ImagePath. '/logo.png',
|
7 |
+
);
|
8 |
+
$parent_post_id = null;
|
9 |
+
foreach($images as $name) {
|
10 |
+
$filename = basename($name);
|
11 |
+
$upload_file = wp_upload_bits($filename, null, file_get_contents($name));
|
12 |
+
if (!$upload_file['error']) {
|
13 |
+
$wp_filetype = wp_check_filetype($filename, null );
|
14 |
+
$attachment = array(
|
15 |
+
'post_mime_type' => $wp_filetype['type'],
|
16 |
+
'post_parent' => $parent_post_id,
|
17 |
+
'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
|
18 |
+
'post_excerpt' => 'hantus caption',
|
19 |
+
'post_status' => 'inherit'
|
20 |
+
);
|
21 |
+
$ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
|
22 |
+
|
23 |
+
if (!is_wp_error($attachment_id)) {
|
24 |
+
require_once(ABSPATH . "wp-admin" . '/includes/image.php');
|
25 |
+
$attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
|
26 |
+
wp_update_attachment_metadata( $attachment_id, $attachment_data );
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
}
|
31 |
+
|
32 |
+
update_option( 'hantus_media_id', $ImageId );
|
33 |
+
|
34 |
+
?>
|
inc/cosmics/default-widgets/default-widget.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$activate = array(
|
3 |
+
'hantus-sidebar-primary' => array(
|
4 |
+
'search-1',
|
5 |
+
'recent-posts-1',
|
6 |
+
'archives-1',
|
7 |
+
),
|
8 |
+
'hantus-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'=>'<div class="footer-logo"><img src="'.CLEVERFOX_PLUGIN_URL.'inc/cosmics/images/logo.png" alt=""></div>
|
19 |
+
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been.</p>
|
20 |
+
<ul class="widget-info">
|
21 |
+
<li><i class="fa fa-map-marker"></i>198 Collins St, Melbourne, NY</li>
|
22 |
+
<li><i class="fa fa-phone"></i>12) 345 678 910</li>
|
23 |
+
<li><i class="fa fa-envelope"></i>email@companyname.com</li>
|
24 |
+
</ul>
|
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('hantus_media_id');
|
43 |
+
set_theme_mod( 'custom_logo', $MediaId[0] );
|
44 |
+
?>
|
inc/cosmics/features/section-info.php
ADDED
@@ -0,0 +1,845 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function hantus_info_setting( $wp_customize ) {
|
3 |
+
|
4 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
5 |
+
/*=========================================
|
6 |
+
Slider Section Panel
|
7 |
+
=========================================*/
|
8 |
+
$wp_customize->add_section(
|
9 |
+
'info_setting', array(
|
10 |
+
'title' => esc_html__( 'Info Section', 'clever-fox' ),
|
11 |
+
'panel' => 'hantus_frontpage_sections',
|
12 |
+
'priority' => apply_filters( 'hantus_section_priority', 12, 'hantus_info' ),
|
13 |
+
)
|
14 |
+
);
|
15 |
+
|
16 |
+
// Setting Head
|
17 |
+
$wp_customize->add_setting(
|
18 |
+
'hnts_info_setting_head'
|
19 |
+
,array(
|
20 |
+
'capability' => 'edit_theme_options',
|
21 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
22 |
+
)
|
23 |
+
);
|
24 |
+
|
25 |
+
$wp_customize->add_control(
|
26 |
+
'hnts_info_setting_head',
|
27 |
+
array(
|
28 |
+
'type' => 'hidden',
|
29 |
+
'label' => __('Setting','clever-fox'),
|
30 |
+
'section' => 'info_setting',
|
31 |
+
'priority' => 1,
|
32 |
+
)
|
33 |
+
);
|
34 |
+
|
35 |
+
// info Hide/ Show Setting //
|
36 |
+
if ( class_exists( 'Hantus_Customizer_Toggle_Control' ) ) {
|
37 |
+
$wp_customize->add_setting(
|
38 |
+
'hide_show_info' ,
|
39 |
+
array(
|
40 |
+
'default' => esc_html__( '1', 'clever-fox' ),
|
41 |
+
'capability' => 'edit_theme_options',
|
42 |
+
'sanitize_callback' => 'sanitize_text_field',
|
43 |
+
'transport' => $selective_refresh,
|
44 |
+
)
|
45 |
+
);
|
46 |
+
|
47 |
+
$wp_customize->add_control( new Hantus_Customizer_Toggle_Control( $wp_customize,
|
48 |
+
'hide_show_info',
|
49 |
+
array(
|
50 |
+
'label' => esc_html__( 'Hide / Show Section', 'clever-fox' ),
|
51 |
+
'section' => 'info_setting',
|
52 |
+
'settings' => 'hide_show_info',
|
53 |
+
'type' => 'ios', // light, ios, flat
|
54 |
+
'priority' => 2,
|
55 |
+
)
|
56 |
+
));
|
57 |
+
}
|
58 |
+
/*=========================================
|
59 |
+
Info contents Section first
|
60 |
+
=========================================*/
|
61 |
+
// Info First Head
|
62 |
+
$wp_customize->add_setting(
|
63 |
+
'hnts_info_first_head'
|
64 |
+
,array(
|
65 |
+
'capability' => 'edit_theme_options',
|
66 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
67 |
+
)
|
68 |
+
);
|
69 |
+
|
70 |
+
$wp_customize->add_control(
|
71 |
+
'hnts_info_first_head',
|
72 |
+
array(
|
73 |
+
'type' => 'hidden',
|
74 |
+
'label' => __('Info First','clever-fox'),
|
75 |
+
'section' => 'info_setting',
|
76 |
+
'priority' => 5,
|
77 |
+
)
|
78 |
+
);
|
79 |
+
|
80 |
+
// Image //
|
81 |
+
$wp_customize->add_setting(
|
82 |
+
'info_first_img_setting' ,
|
83 |
+
array(
|
84 |
+
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon01.jpg',
|
85 |
+
'capability' => 'edit_theme_options',
|
86 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
87 |
+
)
|
88 |
+
);
|
89 |
+
|
90 |
+
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'info_first_img_setting' ,
|
91 |
+
array(
|
92 |
+
'label' => __( 'Image', 'clever-fox' ),
|
93 |
+
'section' => 'info_setting',
|
94 |
+
'settings' => 'info_first_img_setting',
|
95 |
+
'priority' => 6,
|
96 |
+
)
|
97 |
+
));
|
98 |
+
|
99 |
+
// info title //
|
100 |
+
$wp_customize->add_setting(
|
101 |
+
'info_title',
|
102 |
+
array(
|
103 |
+
'default' => __('Pedicure','clever-fox'),
|
104 |
+
'capability' => 'edit_theme_options',
|
105 |
+
'sanitize_callback' => 'sanitize_text_field',
|
106 |
+
'transport' => $selective_refresh,
|
107 |
+
)
|
108 |
+
);
|
109 |
+
|
110 |
+
$wp_customize->add_control(
|
111 |
+
'info_title',
|
112 |
+
array(
|
113 |
+
'label' => __('Title','clever-fox'),
|
114 |
+
'section' => 'info_setting',
|
115 |
+
'settings'=> 'info_title',
|
116 |
+
'type' => 'text',
|
117 |
+
'priority' => 7,
|
118 |
+
)
|
119 |
+
);
|
120 |
+
|
121 |
+
// info Description //
|
122 |
+
$wp_customize->add_setting(
|
123 |
+
'info_description',
|
124 |
+
array(
|
125 |
+
'default' => __('$49','clever-fox'),
|
126 |
+
'capability' => 'edit_theme_options',
|
127 |
+
'sanitize_callback' => 'sanitize_text_field',
|
128 |
+
'transport' => $selective_refresh,
|
129 |
+
)
|
130 |
+
);
|
131 |
+
|
132 |
+
$wp_customize->add_control(
|
133 |
+
'info_description',
|
134 |
+
array(
|
135 |
+
'label' => __('Description','clever-fox'),
|
136 |
+
'section' => 'info_setting',
|
137 |
+
'settings'=> 'info_description',
|
138 |
+
'type' => 'text',
|
139 |
+
'priority' => 8,
|
140 |
+
)
|
141 |
+
);
|
142 |
+
|
143 |
+
// info button //
|
144 |
+
$wp_customize->add_setting(
|
145 |
+
'info_btn',
|
146 |
+
array(
|
147 |
+
'default' => '<i class="fa fa-shopping-cart" aria-hidden="true"></i>',
|
148 |
+
'capability' => 'edit_theme_options',
|
149 |
+
'sanitize_callback' => 'hantus_sanitize_html'
|
150 |
+
)
|
151 |
+
);
|
152 |
+
|
153 |
+
$wp_customize->add_control(
|
154 |
+
'info_btn',
|
155 |
+
array(
|
156 |
+
'label' => __('Button Label','clever-fox'),
|
157 |
+
'section' => 'info_setting',
|
158 |
+
'type' => 'text',
|
159 |
+
'priority' => 9,
|
160 |
+
)
|
161 |
+
);
|
162 |
+
|
163 |
+
// info link //
|
164 |
+
$wp_customize->add_setting(
|
165 |
+
'info_link',
|
166 |
+
array(
|
167 |
+
'default' => __('#','clever-fox'),
|
168 |
+
'capability' => 'edit_theme_options',
|
169 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
170 |
+
)
|
171 |
+
);
|
172 |
+
|
173 |
+
$wp_customize->add_control(
|
174 |
+
'info_link',
|
175 |
+
array(
|
176 |
+
'label' => __('Button Link','clever-fox'),
|
177 |
+
'section' => 'info_setting',
|
178 |
+
'type' => 'text',
|
179 |
+
'priority' => 10,
|
180 |
+
)
|
181 |
+
);
|
182 |
+
|
183 |
+
/*=========================================
|
184 |
+
Info contents Section second
|
185 |
+
=========================================*/
|
186 |
+
// Info Second Head
|
187 |
+
$wp_customize->add_setting(
|
188 |
+
'hnts_info_second_head'
|
189 |
+
,array(
|
190 |
+
'capability' => 'edit_theme_options',
|
191 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
192 |
+
)
|
193 |
+
);
|
194 |
+
|
195 |
+
$wp_customize->add_control(
|
196 |
+
'hnts_info_second_head',
|
197 |
+
array(
|
198 |
+
'type' => 'hidden',
|
199 |
+
'label' => __('Info Second','clever-fox'),
|
200 |
+
'section' => 'info_setting',
|
201 |
+
'priority' => 15,
|
202 |
+
)
|
203 |
+
);
|
204 |
+
|
205 |
+
// Image //
|
206 |
+
$wp_customize->add_setting(
|
207 |
+
'info_second_img_setting' ,
|
208 |
+
array(
|
209 |
+
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon02.jpg',
|
210 |
+
'capability' => 'edit_theme_options',
|
211 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
212 |
+
)
|
213 |
+
);
|
214 |
+
|
215 |
+
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'info_second_img_setting' ,
|
216 |
+
array(
|
217 |
+
'label' => __( 'Image', 'clever-fox' ),
|
218 |
+
'section' => 'info_setting',
|
219 |
+
'settings' => 'info_second_img_setting',
|
220 |
+
'priority' => 16,
|
221 |
+
)
|
222 |
+
));
|
223 |
+
// info title //
|
224 |
+
$wp_customize->add_setting(
|
225 |
+
'info_title2',
|
226 |
+
array(
|
227 |
+
'default' => __('Body Wraps','clever-fox'),
|
228 |
+
'capability' => 'edit_theme_options',
|
229 |
+
'sanitize_callback' => 'sanitize_text_field',
|
230 |
+
'transport' => $selective_refresh,
|
231 |
+
)
|
232 |
+
);
|
233 |
+
|
234 |
+
$wp_customize->add_control(
|
235 |
+
'info_title2',
|
236 |
+
array(
|
237 |
+
'label' => __('Title','clever-fox'),
|
238 |
+
'section' => 'info_setting',
|
239 |
+
'settings'=> 'info_title2',
|
240 |
+
'type' => 'text',
|
241 |
+
'priority' => 17,
|
242 |
+
)
|
243 |
+
);
|
244 |
+
|
245 |
+
// info Description //
|
246 |
+
$wp_customize->add_setting(
|
247 |
+
'info_description2',
|
248 |
+
array(
|
249 |
+
'default' => __('$29','clever-fox'),
|
250 |
+
'capability' => 'edit_theme_options',
|
251 |
+
'sanitize_callback' => 'sanitize_text_field',
|
252 |
+
'transport' => $selective_refresh,
|
253 |
+
)
|
254 |
+
);
|
255 |
+
|
256 |
+
$wp_customize->add_control(
|
257 |
+
'info_description2',
|
258 |
+
array(
|
259 |
+
'label' => __('Description','clever-fox'),
|
260 |
+
'section' => 'info_setting',
|
261 |
+
'settings'=> 'info_description2',
|
262 |
+
'type' => 'text',
|
263 |
+
'priority' => 18,
|
264 |
+
)
|
265 |
+
);
|
266 |
+
|
267 |
+
// info button //
|
268 |
+
$wp_customize->add_setting(
|
269 |
+
'info_btn2',
|
270 |
+
array(
|
271 |
+
'default' => '<i class="fa fa-shopping-cart" aria-hidden="true"></i>',
|
272 |
+
'capability' => 'edit_theme_options',
|
273 |
+
'sanitize_callback' => 'hantus_sanitize_html'
|
274 |
+
)
|
275 |
+
);
|
276 |
+
|
277 |
+
$wp_customize->add_control(
|
278 |
+
'info_btn2',
|
279 |
+
array(
|
280 |
+
'label' => __('Button Label','clever-fox'),
|
281 |
+
'section' => 'info_setting',
|
282 |
+
'type' => 'text',
|
283 |
+
'priority' => 19,
|
284 |
+
)
|
285 |
+
);
|
286 |
+
|
287 |
+
// info link //
|
288 |
+
$wp_customize->add_setting(
|
289 |
+
'info_link2',
|
290 |
+
array(
|
291 |
+
'default' => __('#','clever-fox'),
|
292 |
+
'capability' => 'edit_theme_options',
|
293 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
294 |
+
)
|
295 |
+
);
|
296 |
+
|
297 |
+
$wp_customize->add_control(
|
298 |
+
'info_link2',
|
299 |
+
array(
|
300 |
+
'label' => __('Button Link','clever-fox'),
|
301 |
+
'section' => 'info_setting',
|
302 |
+
'type' => 'text',
|
303 |
+
'priority' => 20,
|
304 |
+
)
|
305 |
+
);
|
306 |
+
|
307 |
+
/*=========================================
|
308 |
+
Info contents Section third
|
309 |
+
=========================================*/
|
310 |
+
|
311 |
+
// Info Third Head
|
312 |
+
$wp_customize->add_setting(
|
313 |
+
'hnts_info_third_head'
|
314 |
+
,array(
|
315 |
+
'capability' => 'edit_theme_options',
|
316 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
317 |
+
)
|
318 |
+
);
|
319 |
+
|
320 |
+
$wp_customize->add_control(
|
321 |
+
'hnts_info_third_head',
|
322 |
+
array(
|
323 |
+
'type' => 'hidden',
|
324 |
+
'label' => __('Info Third','clever-fox'),
|
325 |
+
'section' => 'info_setting',
|
326 |
+
'priority' => 25,
|
327 |
+
)
|
328 |
+
);
|
329 |
+
|
330 |
+
// Image //
|
331 |
+
$wp_customize->add_setting(
|
332 |
+
'info_third_img_setting' ,
|
333 |
+
array(
|
334 |
+
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon03.jpg',
|
335 |
+
'capability' => 'edit_theme_options',
|
336 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
337 |
+
)
|
338 |
+
);
|
339 |
+
|
340 |
+
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'info_third_img_setting' ,
|
341 |
+
array(
|
342 |
+
'label' => __( 'Image', 'clever-fox' ),
|
343 |
+
'section' => 'info_setting',
|
344 |
+
'settings' => 'info_third_img_setting',
|
345 |
+
'priority' => 26,
|
346 |
+
)
|
347 |
+
));
|
348 |
+
// info title //
|
349 |
+
$wp_customize->add_setting(
|
350 |
+
'info_title3',
|
351 |
+
array(
|
352 |
+
'default' => __('Menicures','clever-fox'),
|
353 |
+
'capability' => 'edit_theme_options',
|
354 |
+
'sanitize_callback' => 'sanitize_text_field',
|
355 |
+
'transport' => $selective_refresh,
|
356 |
+
)
|
357 |
+
);
|
358 |
+
|
359 |
+
$wp_customize->add_control(
|
360 |
+
'info_title3',
|
361 |
+
array(
|
362 |
+
'label' => __('Title','clever-fox'),
|
363 |
+
'section' => 'info_setting',
|
364 |
+
'settings'=> 'info_title3',
|
365 |
+
'type' => 'text',
|
366 |
+
'priority' => 27,
|
367 |
+
)
|
368 |
+
);
|
369 |
+
|
370 |
+
// info Description //
|
371 |
+
$wp_customize->add_setting(
|
372 |
+
'info_description3',
|
373 |
+
array(
|
374 |
+
'default' => __('$79','clever-fox'),
|
375 |
+
'capability' => 'edit_theme_options',
|
376 |
+
'sanitize_callback' => 'sanitize_text_field',
|
377 |
+
'transport' => $selective_refresh,
|
378 |
+
)
|
379 |
+
);
|
380 |
+
|
381 |
+
$wp_customize->add_control(
|
382 |
+
'info_description3',
|
383 |
+
array(
|
384 |
+
'label' => __('Description','clever-fox'),
|
385 |
+
'section' => 'info_setting',
|
386 |
+
'settings'=> 'info_description3',
|
387 |
+
'type' => 'text',
|
388 |
+
'priority' => 28,
|
389 |
+
)
|
390 |
+
);
|
391 |
+
|
392 |
+
// info button //
|
393 |
+
$wp_customize->add_setting(
|
394 |
+
'info_btn3',
|
395 |
+
array(
|
396 |
+
'default' => '<i class="fa fa-shopping-cart" aria-hidden="true"></i>',
|
397 |
+
'capability' => 'edit_theme_options',
|
398 |
+
'sanitize_callback' => 'hantus_sanitize_html'
|
399 |
+
)
|
400 |
+
);
|
401 |
+
|
402 |
+
$wp_customize->add_control(
|
403 |
+
'info_btn3',
|
404 |
+
array(
|
405 |
+
'label' => __('Button Label','clever-fox'),
|
406 |
+
'section' => 'info_setting',
|
407 |
+
'type' => 'text',
|
408 |
+
'priority' => 29,
|
409 |
+
)
|
410 |
+
);
|
411 |
+
|
412 |
+
// info link //
|
413 |
+
$wp_customize->add_setting(
|
414 |
+
'info_link3',
|
415 |
+
array(
|
416 |
+
'default' => __('#','clever-fox'),
|
417 |
+
'capability' => 'edit_theme_options',
|
418 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
419 |
+
)
|
420 |
+
);
|
421 |
+
|
422 |
+
$wp_customize->add_control(
|
423 |
+
'info_link3',
|
424 |
+
array(
|
425 |
+
'label' => __('Button Link','clever-fox'),
|
426 |
+
'section' => 'info_setting',
|
427 |
+
'type' => 'text',
|
428 |
+
'priority' => 30,
|
429 |
+
)
|
430 |
+
);
|
431 |
+
|
432 |
+
/*=========================================
|
433 |
+
Info contents Section Four
|
434 |
+
=========================================*/
|
435 |
+
// Info Four Head
|
436 |
+
$wp_customize->add_setting(
|
437 |
+
'hnts_info_four_head'
|
438 |
+
,array(
|
439 |
+
'capability' => 'edit_theme_options',
|
440 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
441 |
+
)
|
442 |
+
);
|
443 |
+
|
444 |
+
$wp_customize->add_control(
|
445 |
+
'hnts_info_four_head',
|
446 |
+
array(
|
447 |
+
'type' => 'hidden',
|
448 |
+
'label' => __('Info Four','clever-fox'),
|
449 |
+
'section' => 'info_setting',
|
450 |
+
'priority' => 31,
|
451 |
+
)
|
452 |
+
);
|
453 |
+
|
454 |
+
// Image //
|
455 |
+
$wp_customize->add_setting(
|
456 |
+
'info_four_img_setting' ,
|
457 |
+
array(
|
458 |
+
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon02.jpg',
|
459 |
+
'capability' => 'edit_theme_options',
|
460 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
461 |
+
)
|
462 |
+
);
|
463 |
+
|
464 |
+
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'info_four_img_setting' ,
|
465 |
+
array(
|
466 |
+
'label' => __( 'Image', 'clever-fox' ),
|
467 |
+
'section' => 'info_setting',
|
468 |
+
'settings' => 'info_four_img_setting',
|
469 |
+
'priority' => 32,
|
470 |
+
)
|
471 |
+
));
|
472 |
+
// info title //
|
473 |
+
$wp_customize->add_setting(
|
474 |
+
'info_title4',
|
475 |
+
array(
|
476 |
+
'default' => __('Facials','clever-fox'),
|
477 |
+
'capability' => 'edit_theme_options',
|
478 |
+
'sanitize_callback' => 'sanitize_text_field',
|
479 |
+
'transport' => $selective_refresh,
|
480 |
+
)
|
481 |
+
);
|
482 |
+
|
483 |
+
$wp_customize->add_control(
|
484 |
+
'info_title4',
|
485 |
+
array(
|
486 |
+
'label' => __('Title','clever-fox'),
|
487 |
+
'section' => 'info_setting',
|
488 |
+
'settings'=> 'info_title4',
|
489 |
+
'type' => 'text',
|
490 |
+
'priority' => 33,
|
491 |
+
)
|
492 |
+
);
|
493 |
+
|
494 |
+
// info Description //
|
495 |
+
$wp_customize->add_setting(
|
496 |
+
'info_description4',
|
497 |
+
array(
|
498 |
+
'default' => __('$29','clever-fox'),
|
499 |
+
'capability' => 'edit_theme_options',
|
500 |
+
'sanitize_callback' => 'sanitize_text_field',
|
501 |
+
'transport' => $selective_refresh,
|
502 |
+
)
|
503 |
+
);
|
504 |
+
|
505 |
+
$wp_customize->add_control(
|
506 |
+
'info_description4',
|
507 |
+
array(
|
508 |
+
'label' => __('Description','clever-fox'),
|
509 |
+
'section' => 'info_setting',
|
510 |
+
'settings'=> 'info_description4',
|
511 |
+
'type' => 'text',
|
512 |
+
'priority' => 34,
|
513 |
+
)
|
514 |
+
);
|
515 |
+
|
516 |
+
// info button //
|
517 |
+
$wp_customize->add_setting(
|
518 |
+
'info_btn4',
|
519 |
+
array(
|
520 |
+
'default' => '<i class="fa fa-shopping-cart" aria-hidden="true"></i>',
|
521 |
+
'capability' => 'edit_theme_options',
|
522 |
+
'sanitize_callback' => 'hantus_sanitize_html'
|
523 |
+
)
|
524 |
+
);
|
525 |
+
|
526 |
+
$wp_customize->add_control(
|
527 |
+
'info_btn4',
|
528 |
+
array(
|
529 |
+
'label' => __('Button Label','clever-fox'),
|
530 |
+
'section' => 'info_setting',
|
531 |
+
'type' => 'text',
|
532 |
+
'priority' => 35,
|
533 |
+
)
|
534 |
+
);
|
535 |
+
|
536 |
+
// info link //
|
537 |
+
$wp_customize->add_setting(
|
538 |
+
'info_link4',
|
539 |
+
array(
|
540 |
+
'default' => __('#','clever-fox'),
|
541 |
+
'capability' => 'edit_theme_options',
|
542 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
543 |
+
)
|
544 |
+
);
|
545 |
+
|
546 |
+
$wp_customize->add_control(
|
547 |
+
'info_link4',
|
548 |
+
array(
|
549 |
+
'label' => __('Button Link','clever-fox'),
|
550 |
+
'section' => 'info_setting',
|
551 |
+
'type' => 'text',
|
552 |
+
'priority' => 36,
|
553 |
+
)
|
554 |
+
);
|
555 |
+
|
556 |
+
|
557 |
+
/*=========================================
|
558 |
+
Info contents Section Five
|
559 |
+
=========================================*/
|
560 |
+
// Info Five Head
|
561 |
+
$wp_customize->add_setting(
|
562 |
+
'hnts_info_five_head'
|
563 |
+
,array(
|
564 |
+
'capability' => 'edit_theme_options',
|
565 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
566 |
+
)
|
567 |
+
);
|
568 |
+
|
569 |
+
$wp_customize->add_control(
|
570 |
+
'hnts_info_five_head',
|
571 |
+
array(
|
572 |
+
'type' => 'hidden',
|
573 |
+
'label' => __('Info Five','clever-fox'),
|
574 |
+
'section' => 'info_setting',
|
575 |
+
'priority' => 37,
|
576 |
+
)
|
577 |
+
);
|
578 |
+
|
579 |
+
// Image //
|
580 |
+
$wp_customize->add_setting(
|
581 |
+
'info_five_img_setting' ,
|
582 |
+
array(
|
583 |
+
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon01.jpg',
|
584 |
+
'capability' => 'edit_theme_options',
|
585 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
586 |
+
)
|
587 |
+
);
|
588 |
+
|
589 |
+
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'info_five_img_setting' ,
|
590 |
+
array(
|
591 |
+
'label' => __( 'Image', 'clever-fox' ),
|
592 |
+
'section' => 'info_setting',
|
593 |
+
'settings' => 'info_five_img_setting',
|
594 |
+
'priority' => 38,
|
595 |
+
)
|
596 |
+
));
|
597 |
+
// info title //
|
598 |
+
$wp_customize->add_setting(
|
599 |
+
'info_title5',
|
600 |
+
array(
|
601 |
+
'default' => __('Waxing','clever-fox'),
|
602 |
+
'capability' => 'edit_theme_options',
|
603 |
+
'sanitize_callback' => 'sanitize_text_field',
|
604 |
+
'transport' => $selective_refresh,
|
605 |
+
)
|
606 |
+
);
|
607 |
+
|
608 |
+
$wp_customize->add_control(
|
609 |
+
'info_title5',
|
610 |
+
array(
|
611 |
+
'label' => __('Title','clever-fox'),
|
612 |
+
'section' => 'info_setting',
|
613 |
+
'settings'=> 'info_title5',
|
614 |
+
'type' => 'text',
|
615 |
+
'priority' => 39,
|
616 |
+
)
|
617 |
+
);
|
618 |
+
|
619 |
+
// info Description //
|
620 |
+
$wp_customize->add_setting(
|
621 |
+
'info_description5',
|
622 |
+
array(
|
623 |
+
'default' => __('$69','clever-fox'),
|
624 |
+
'capability' => 'edit_theme_options',
|
625 |
+
'sanitize_callback' => 'sanitize_text_field',
|
626 |
+
'transport' => $selective_refresh,
|
627 |
+
)
|
628 |
+
);
|
629 |
+
|
630 |
+
$wp_customize->add_control(
|
631 |
+
'info_description5',
|
632 |
+
array(
|
633 |
+
'label' => __('Description','clever-fox'),
|
634 |
+
'section' => 'info_setting',
|
635 |
+
'settings'=> 'info_description5',
|
636 |
+
'type' => 'text',
|
637 |
+
'priority' => 40,
|
638 |
+
)
|
639 |
+
);
|
640 |
+
|
641 |
+
// info button //
|
642 |
+
$wp_customize->add_setting(
|
643 |
+
'info_btn5',
|
644 |
+
array(
|
645 |
+
'default' => '<i class="fa fa-shopping-cart" aria-hidden="true"></i>',
|
646 |
+
'capability' => 'edit_theme_options',
|
647 |
+
'sanitize_callback' => 'hantus_sanitize_html'
|
648 |
+
)
|
649 |
+
);
|
650 |
+
|
651 |
+
$wp_customize->add_control(
|
652 |
+
'info_btn5',
|
653 |
+
array(
|
654 |
+
'label' => __('Button Label','clever-fox'),
|
655 |
+
'section' => 'info_setting',
|
656 |
+
'type' => 'text',
|
657 |
+
'priority' => 41,
|
658 |
+
)
|
659 |
+
);
|
660 |
+
|
661 |
+
// info link //
|
662 |
+
$wp_customize->add_setting(
|
663 |
+
'info_link5',
|
664 |
+
array(
|
665 |
+
'default' => __('#','clever-fox'),
|
666 |
+
'capability' => 'edit_theme_options',
|
667 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
668 |
+
)
|
669 |
+
);
|
670 |
+
|
671 |
+
$wp_customize->add_control(
|
672 |
+
'info_link5',
|
673 |
+
array(
|
674 |
+
'label' => __('Button Link','clever-fox'),
|
675 |
+
'section' => 'info_setting',
|
676 |
+
'type' => 'text',
|
677 |
+
'priority' => 42,
|
678 |
+
)
|
679 |
+
);
|
680 |
+
}
|
681 |
+
add_action( 'customize_register', 'hantus_info_setting' );
|
682 |
+
|
683 |
+
/**
|
684 |
+
* Add selective refresh for Front page section section controls.
|
685 |
+
*/
|
686 |
+
function hantus_home_info_section_partials( $wp_customize ){
|
687 |
+
|
688 |
+
// hide_show_info
|
689 |
+
$wp_customize->selective_refresh->add_partial(
|
690 |
+
'hide_show_info', array(
|
691 |
+
'selector' => '#contact2',
|
692 |
+
'container_inclusive' => true,
|
693 |
+
'render_callback' => 'info_setting',
|
694 |
+
'fallback_refresh' => true,
|
695 |
+
)
|
696 |
+
);
|
697 |
+
|
698 |
+
//info section first
|
699 |
+
$wp_customize->selective_refresh->add_partial( 'info_title', array(
|
700 |
+
'selector' => '#contact2 .info-first h4',
|
701 |
+
'settings' => 'info_title',
|
702 |
+
'render_callback' => 'info_section_title_render_callback',
|
703 |
+
|
704 |
+
) );
|
705 |
+
|
706 |
+
$wp_customize->selective_refresh->add_partial( 'info_first_img_setting', array(
|
707 |
+
'selector' => '#contact2 .info-first img',
|
708 |
+
'settings' => 'info_first_img_setting',
|
709 |
+
'render_callback' => 'home_service_section_img_render_callback',
|
710 |
+
|
711 |
+
) );
|
712 |
+
|
713 |
+
$wp_customize->selective_refresh->add_partial( 'info_description', array(
|
714 |
+
'selector' => '#contact2 .info-first p',
|
715 |
+
'settings' => 'info_description',
|
716 |
+
'render_callback' => 'home_service_section_description_render_callback',
|
717 |
+
|
718 |
+
) );
|
719 |
+
// info second
|
720 |
+
$wp_customize->selective_refresh->add_partial( 'info_title2', array(
|
721 |
+
'selector' => '#contact2 .info-second h4',
|
722 |
+
'settings' => 'info_title2',
|
723 |
+
'render_callback' => 'info_second_title_render_callback',
|
724 |
+
|
725 |
+
) );
|
726 |
+
|
727 |
+
$wp_customize->selective_refresh->add_partial( 'info_second_img_setting', array(
|
728 |
+
'selector' => '#contact .info-second img',
|
729 |
+
'settings' => 'info_second_img_setting',
|
730 |
+
'render_callback' => 'info_second_img_render_callback',
|
731 |
+
|
732 |
+
) );
|
733 |
+
|
734 |
+
$wp_customize->selective_refresh->add_partial( 'info_description2', array(
|
735 |
+
'selector' => '#contact2 .info-second p',
|
736 |
+
'settings' => 'info_description2',
|
737 |
+
'render_callback' => 'info_second_description_render_callback',
|
738 |
+
|
739 |
+
) );
|
740 |
+
// info third
|
741 |
+
$wp_customize->selective_refresh->add_partial( 'info_title3', array(
|
742 |
+
'selector' => '#contact2 .info-third h4',
|
743 |
+
'settings' => 'info_title3',
|
744 |
+
'render_callback' => 'info_third_title_render_callback',
|
745 |
+
|
746 |
+
) );
|
747 |
+
|
748 |
+
$wp_customize->selective_refresh->add_partial( 'info_third_img_setting', array(
|
749 |
+
'selector' => '#contact .info-third img',
|
750 |
+
'settings' => 'info_third_img_setting',
|
751 |
+
'render_callback' => 'info_third_img_render_callback',
|
752 |
+
|
753 |
+
) );
|
754 |
+
|
755 |
+
$wp_customize->selective_refresh->add_partial( 'info_description3', array(
|
756 |
+
'selector' => '#contact2 .info-third p',
|
757 |
+
'settings' => 'info_description3',
|
758 |
+
'render_callback' => 'info_third_description_render_callback',
|
759 |
+
|
760 |
+
) );
|
761 |
+
|
762 |
+
// info Four
|
763 |
+
$wp_customize->selective_refresh->add_partial( 'info_title4', array(
|
764 |
+
'selector' => '#contact2 .info-four h4',
|
765 |
+
'settings' => 'info_title4',
|
766 |
+
'render_callback' => 'info_four_title_render_callback',
|
767 |
+
) );
|
768 |
+
|
769 |
+
$wp_customize->selective_refresh->add_partial( 'info_description4', array(
|
770 |
+
'selector' => '#contact2 .info-four p',
|
771 |
+
'settings' => 'info_description4',
|
772 |
+
'render_callback' => 'info_four_description_render_callback',
|
773 |
+
|
774 |
+
) );
|
775 |
+
|
776 |
+
// info Five
|
777 |
+
$wp_customize->selective_refresh->add_partial( 'info_title5', array(
|
778 |
+
'selector' => '#contact2 .info-five h4',
|
779 |
+
'settings' => 'info_title5',
|
780 |
+
'render_callback' => 'info_five_title_render_callback',
|
781 |
+
) );
|
782 |
+
|
783 |
+
$wp_customize->selective_refresh->add_partial( 'info_description5', array(
|
784 |
+
'selector' => '#contact2 .info-five p',
|
785 |
+
'settings' => 'info_description5',
|
786 |
+
'render_callback' => 'info_five_description_render_callback',
|
787 |
+
|
788 |
+
) );
|
789 |
+
|
790 |
+
|
791 |
+
}
|
792 |
+
|
793 |
+
add_action( 'customize_register', 'hantus_home_info_section_partials' );
|
794 |
+
// info first
|
795 |
+
function info_section_title_render_callback() {
|
796 |
+
return get_theme_mod( 'info_title' );
|
797 |
+
}
|
798 |
+
function home_service_section_img_render_callback() {
|
799 |
+
return get_theme_mod( 'info_first_img_setting' );
|
800 |
+
}
|
801 |
+
|
802 |
+
function home_service_section_description_render_callback() {
|
803 |
+
return get_theme_mod( 'info_description' );
|
804 |
+
}
|
805 |
+
// info second
|
806 |
+
function info_second_title_render_callback() {
|
807 |
+
return get_theme_mod( 'info_title2' );
|
808 |
+
}
|
809 |
+
function info_second_img_render_callback() {
|
810 |
+
return get_theme_mod( 'info_second_img_setting' );
|
811 |
+
}
|
812 |
+
|
813 |
+
function info_second_description_render_callback() {
|
814 |
+
return get_theme_mod( 'info_description2' );
|
815 |
+
}
|
816 |
+
// info third
|
817 |
+
function info_third_title_render_callback() {
|
818 |
+
return get_theme_mod( 'info_title3' );
|
819 |
+
}
|
820 |
+
function info_third_img_render_callback() {
|
821 |
+
return get_theme_mod( 'info_third_img_setting' );
|
822 |
+
}
|
823 |
+
|
824 |
+
function info_third_description_render_callback() {
|
825 |
+
return get_theme_mod( 'info_description3' );
|
826 |
+
}
|
827 |
+
|
828 |
+
|
829 |
+
// info Four
|
830 |
+
function info_four_title_render_callback() {
|
831 |
+
return get_theme_mod( 'info_title4' );
|
832 |
+
}
|
833 |
+
|
834 |
+
function info_four_description_render_callback() {
|
835 |
+
return get_theme_mod( 'info_description4' );
|
836 |
+
}
|
837 |
+
|
838 |
+
// info Five
|
839 |
+
function info_five_title_render_callback() {
|
840 |
+
return get_theme_mod( 'info_title5' );
|
841 |
+
}
|
842 |
+
|
843 |
+
function info_five_description_render_callback() {
|
844 |
+
return get_theme_mod( 'info_description5' );
|
845 |
+
}
|
inc/cosmics/images/logo.png
ADDED
Binary file
|
inc/cosmics/sections/section-info.php
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'hantus_lite_info' ) ) :
|
3 |
+
function hantus_lite_info() {
|
4 |
+
$hide_show_info = get_theme_mod('hide_show_info','1');
|
5 |
+
$info_first_img_setting = get_theme_mod('info_first_img_setting',esc_url(CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon01.jpg'));
|
6 |
+
$info_title = get_theme_mod('info_title','Pedicure');
|
7 |
+
$info_description = get_theme_mod('info_description','$49');
|
8 |
+
$info_btn = get_theme_mod('info_btn','<i class="fa fa-shopping-cart" aria-hidden="true"></i>');
|
9 |
+
$info_link = get_theme_mod('info_link','#');
|
10 |
+
|
11 |
+
$info_second_img_setting= get_theme_mod('info_second_img_setting',esc_url(CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon02.jpg'));
|
12 |
+
$info_title2 = get_theme_mod('info_title2','Body Wraps');
|
13 |
+
$info_description2 = get_theme_mod('info_description2','$29');
|
14 |
+
$info_btn2 = get_theme_mod('info_btn2','<i class="fa fa-shopping-cart" aria-hidden="true"></i>');
|
15 |
+
$info_link2 = get_theme_mod('info_link2','#');
|
16 |
+
|
17 |
+
$info_third_img_setting = get_theme_mod('info_third_img_setting',esc_url(CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon03.jpg'));
|
18 |
+
$info_title3 = get_theme_mod('info_title3','Menicures');
|
19 |
+
$info_description3 = get_theme_mod('info_description3','$79');
|
20 |
+
$info_btn3 = get_theme_mod('info_btn3','<i class="fa fa-shopping-cart" aria-hidden="true"></i>');
|
21 |
+
$info_link3 = get_theme_mod('info_link3','#');
|
22 |
+
|
23 |
+
$info_four_img_setting = get_theme_mod('info_four_img_setting',esc_url(CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon02.jpg'));
|
24 |
+
$info_title4 = get_theme_mod('info_title4','Facials');
|
25 |
+
$info_description4 = get_theme_mod('info_description4','$29');
|
26 |
+
$info_btn4 = get_theme_mod('info_btn4','<i class="fa fa-shopping-cart" aria-hidden="true"></i>');
|
27 |
+
$info_link4 = get_theme_mod('info_link4','#');
|
28 |
+
|
29 |
+
$info_five_img_setting = get_theme_mod('info_five_img_setting',esc_url(CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon01.jpg'));
|
30 |
+
$info_title5 = get_theme_mod('info_title5','Waxing');
|
31 |
+
$info_description5 = get_theme_mod('info_description5','$69');
|
32 |
+
$info_btn5 = get_theme_mod('info_btn5','<i class="fa fa-shopping-cart" aria-hidden="true"></i>');
|
33 |
+
$info_link5 = get_theme_mod('info_link5','#');
|
34 |
+
?>
|
35 |
+
<?php if($hide_show_info == '1') { ?>
|
36 |
+
<section id="contact2" class="info-cosmics">
|
37 |
+
<div class="container">
|
38 |
+
<div class="row">
|
39 |
+
<div class="col-md-12">
|
40 |
+
<ul class="info-wrapper">
|
41 |
+
<li class="info-first">
|
42 |
+
<aside class="single-info-cosmics">
|
43 |
+
<?php if ( ! empty( $info_first_img_setting ) ) { ?>
|
44 |
+
<img src="<?php echo esc_url( $info_first_img_setting ); ?>" <?php if ( ! empty( $info_title ) ) : ?> alt="<?php echo esc_attr( $info_title ); ?>" title="<?php echo esc_attr( $info_title ); ?>" <?php endif; ?> />
|
45 |
+
<?php } ?>
|
46 |
+
<div class="info-area">
|
47 |
+
<div class="info-caption">
|
48 |
+
<h4><?php echo esc_html( $info_title ); ?></h4>
|
49 |
+
<p><?php echo esc_html( $info_description ); ?></p>
|
50 |
+
</div>
|
51 |
+
<a href="<?php echo esc_url($info_link); ?>" class="btn-info"><?php echo wp_kses_post($info_btn); ?></a>
|
52 |
+
</div>
|
53 |
+
</aside>
|
54 |
+
</li>
|
55 |
+
<li class="info-second">
|
56 |
+
<aside class="single-info-cosmics">
|
57 |
+
<?php if ( ! empty( $info_second_img_setting ) ) { ?>
|
58 |
+
<img src="<?php echo esc_url( $info_second_img_setting ); ?>" <?php if ( ! empty( $info_title2 ) ) : ?> alt="<?php echo esc_attr( $info_title2 ); ?>" title="<?php echo esc_attr( $info_title2 ); ?>" <?php endif; ?> />
|
59 |
+
<?php } ?>
|
60 |
+
<div class="info-area">
|
61 |
+
<div class="info-caption">
|
62 |
+
<h4><?php echo esc_html( $info_title2 ); ?></h4>
|
63 |
+
<p><?php echo esc_html( $info_description2 ); ?></p>
|
64 |
+
</div>
|
65 |
+
<a href="<?php echo esc_url($info_link2); ?>" class="btn-info"><?php echo wp_kses_post($info_btn2); ?></a>
|
66 |
+
</div>
|
67 |
+
</aside>
|
68 |
+
</li>
|
69 |
+
<li class="info-third">
|
70 |
+
<aside class="single-info-cosmics">
|
71 |
+
<?php if ( ! empty( $info_third_img_setting ) ) { ?>
|
72 |
+
<img src="<?php echo esc_url( $info_third_img_setting ); ?>" <?php if ( ! empty( $info_title3 ) ) : ?> alt="<?php echo esc_attr( $info_title3 ); ?>" title="<?php echo esc_attr( $info_title3 ); ?>" <?php endif; ?> />
|
73 |
+
<?php } ?>
|
74 |
+
<div class="info-area">
|
75 |
+
<div class="info-caption">
|
76 |
+
<h4><?php echo esc_html( $info_title3 ); ?></h4>
|
77 |
+
<p><?php echo esc_html( $info_description3 ); ?></p>
|
78 |
+
</div>
|
79 |
+
<a href="<?php echo esc_url($info_link3); ?>" class="btn-info"><?php echo wp_kses_post($info_btn3); ?></a>
|
80 |
+
</div>
|
81 |
+
</aside>
|
82 |
+
</li>
|
83 |
+
<li class="info-four">
|
84 |
+
<aside class="single-info-cosmics">
|
85 |
+
<?php if ( ! empty( $info_four_img_setting ) ) { ?>
|
86 |
+
<img src="<?php echo esc_url( $info_four_img_setting ); ?>" <?php if ( ! empty( $info_title4 ) ) : ?> alt="<?php echo esc_attr( $info_title4 ); ?>" title="<?php echo esc_attr( $info_title4 ); ?>" <?php endif; ?> />
|
87 |
+
<?php } ?>
|
88 |
+
<div class="info-area">
|
89 |
+
<div class="info-caption">
|
90 |
+
<h4><?php echo esc_html( $info_title4 ); ?></h4>
|
91 |
+
<p><?php echo esc_html( $info_description4 ); ?></p>
|
92 |
+
</div>
|
93 |
+
<a href="<?php echo esc_url($info_link4); ?>" class="btn-info"><?php echo wp_kses_post($info_btn4); ?></a>
|
94 |
+
</div>
|
95 |
+
</aside>
|
96 |
+
</li>
|
97 |
+
<li class="info-five">
|
98 |
+
<aside class="single-info-cosmics">
|
99 |
+
<?php if ( ! empty( $info_five_img_setting ) ) { ?>
|
100 |
+
<img src="<?php echo esc_url( $info_five_img_setting ); ?>" <?php if ( ! empty( $info_title5 ) ) : ?> alt="<?php echo esc_attr( $info_title5 ); ?>" title="<?php echo esc_attr( $info_title5 ); ?>" <?php endif; ?> />
|
101 |
+
<?php } ?>
|
102 |
+
<div class="info-area">
|
103 |
+
<div class="info-caption">
|
104 |
+
<h4><?php echo esc_html( $info_title5 ); ?></h4>
|
105 |
+
<p><?php echo esc_html( $info_description5 ); ?></p>
|
106 |
+
</div>
|
107 |
+
<a href="<?php echo esc_url($info_link5); ?>" class="btn-info"><?php echo wp_kses_post($info_btn5); ?></a>
|
108 |
+
</div>
|
109 |
+
</aside>
|
110 |
+
</li>
|
111 |
+
</ul>
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
</section>
|
116 |
+
<?php }} endif; ?>
|
117 |
+
<?php
|
118 |
+
if ( function_exists( 'hantus_lite_info' ) ) {
|
119 |
+
$section_priority = apply_filters( 'hantus_section_priority', 12, 'hantus_lite_info' );
|
120 |
+
add_action( 'hantus_sections', 'hantus_lite_info', absint( $section_priority ) );
|
121 |
+
}
|
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.1
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 15.
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
@@ -141,6 +141,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
141 |
== Changelog ==
|
142 |
|
143 |
|
|
|
|
|
|
|
144 |
= 15.6 =
|
145 |
* Readme Updated
|
146 |
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 6.1
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 15.7
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
141 |
== Changelog ==
|
142 |
|
143 |
|
144 |
+
= 15.7 =
|
145 |
+
* Cosmics Theme Files Added
|
146 |
+
|
147 |
= 15.6 =
|
148 |
* Readme Updated
|
149 |
|