Version Description
- Makeover Theme Functionality Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 3.8 |
Comparing to | |
See all releases |
Code changes from version 3.7 to 3.8
- clever-fox.php +5 -1
- inc/cleverfox-activator.php +7 -0
- inc/hantus/dynamic-style.php +1 -1
- inc/hantus/features/section-slider.php +0 -1
- inc/hantus/images/slider/slider01.jpg +0 -0
- inc/hantus/images/slider/slider02.jpg +0 -0
- inc/hantus/images/slider/slider03.jpg +0 -0
- inc/makeover/default-pages/home-page.php +24 -0
- inc/makeover/default-pages/upload-media.php +34 -0
- inc/makeover/default-widgets/default-widget.php +44 -0
- inc/makeover/features/hantus-above-header.php +459 -0
- inc/makeover/images/footer-logo.png +0 -0
- inc/makeover/images/logo.png +0 -0
- inc/makeover/makeover.php +25 -0
- inc/makeover/sections/above-header.php +57 -0
- inc/makeover/sections/section-info.php +100 -0
- inc/makeover/sections/section-service.php +133 -0
- readme.txt +3 -0
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 WordPress themes made by Nayra Themes. Main motive behind this plugin is to boost up functionality of Nayra themes and focus on a smooth user experience. Clever Fox contains all features which are required to create a complete website. Clever Fox comes with everything you could ever need to build an amazing website that is suitable for business, portfolio, food & restaurant, gym & fitness, spa salon, medical practitioner & hospitals, WooCommerce Websites. You can see below listed free themes.
|
6 |
-
Version: 3.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -43,6 +43,10 @@ function cleverfox_activate() {
|
|
43 |
require_once('inc/hantus/hantus.php');
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
46 |
if( 'Conceptly' == $theme->name){
|
47 |
require_once('inc/conceptly/conceptly.php');
|
48 |
}
|
3 |
Plugin Name: Clever Fox
|
4 |
Plugin URI:
|
5 |
Description: Clever Fox plugin to enhance the functionality of WordPress themes made by Nayra Themes. Main motive behind this plugin is to boost up functionality of Nayra themes and focus on a smooth user experience. Clever Fox contains all features which are required to create a complete website. Clever Fox comes with everything you could ever need to build an amazing website that is suitable for business, portfolio, food & restaurant, gym & fitness, spa salon, medical practitioner & hospitals, WooCommerce Websites. You can see below listed free themes.
|
6 |
+
Version: 3.8
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
43 |
require_once('inc/hantus/hantus.php');
|
44 |
}
|
45 |
|
46 |
+
if( 'Makeover' == $theme->name){
|
47 |
+
require_once('inc/makeover/makeover.php');
|
48 |
+
}
|
49 |
+
|
50 |
if( 'Conceptly' == $theme->name){
|
51 |
require_once('inc/conceptly/conceptly.php');
|
52 |
}
|
inc/cleverfox-activator.php
CHANGED
@@ -45,6 +45,13 @@ class Cleverfox_Activator {
|
|
45 |
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/default-pages/home-page.php';
|
46 |
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/default-widgets/default-widget.php';
|
47 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
if ( 'Conceptly' == $theme->name){
|
49 |
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/default-pages/upload-media.php';
|
50 |
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/default-pages/home-page.php';
|
45 |
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/default-pages/home-page.php';
|
46 |
require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/default-widgets/default-widget.php';
|
47 |
}
|
48 |
+
|
49 |
+
if ( 'Makeover' == $theme->name){
|
50 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/makeover/default-pages/upload-media.php';
|
51 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/makeover/default-pages/home-page.php';
|
52 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/makeover/default-widgets/default-widget.php';
|
53 |
+
}
|
54 |
+
|
55 |
if ( 'Conceptly' == $theme->name){
|
56 |
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/default-pages/upload-media.php';
|
57 |
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/default-pages/home-page.php';
|
inc/hantus/dynamic-style.php
CHANGED
@@ -5,7 +5,7 @@ if( ! function_exists( 'hantus_customizer_options' ) ):
|
|
5 |
$slide_overlay_color = get_theme_mod('slide_overlay_color','#000000');
|
6 |
$slider_opacity = get_theme_mod('slider_opacity','0.4');
|
7 |
$slide_title_color = get_theme_mod('slide_title_color','#fff');
|
8 |
-
$slide_sbtitle_color = get_theme_mod('slide_sbtitle_color'
|
9 |
$slide_desc_color = get_theme_mod('slide_desc_color','#fff');
|
10 |
$output_css = '';
|
11 |
if($slider_overlay_enable == '1') {
|
5 |
$slide_overlay_color = get_theme_mod('slide_overlay_color','#000000');
|
6 |
$slider_opacity = get_theme_mod('slider_opacity','0.4');
|
7 |
$slide_title_color = get_theme_mod('slide_title_color','#fff');
|
8 |
+
$slide_sbtitle_color = get_theme_mod('slide_sbtitle_color');
|
9 |
$slide_desc_color = get_theme_mod('slide_desc_color','#fff');
|
10 |
$output_css = '';
|
11 |
if($slider_overlay_enable == '1') {
|
inc/hantus/features/section-slider.php
CHANGED
@@ -227,7 +227,6 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
227 |
array(
|
228 |
'capability' => 'edit_theme_options',
|
229 |
'sanitize_callback' => 'sanitize_text_field',
|
230 |
-
'default' => '#f22853'
|
231 |
));
|
232 |
|
233 |
$wp_customize->add_control(
|
227 |
array(
|
228 |
'capability' => 'edit_theme_options',
|
229 |
'sanitize_callback' => 'sanitize_text_field',
|
|
|
230 |
));
|
231 |
|
232 |
$wp_customize->add_control(
|
inc/hantus/images/slider/slider01.jpg
CHANGED
Binary file
|
inc/hantus/images/slider/slider02.jpg
CHANGED
Binary file
|
inc/hantus/images/slider/slider03.jpg
CHANGED
Binary file
|
inc/makeover/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/makeover/default-pages/upload-media.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/makeover/images/logo.png';
|
3 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/makeover/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/makeover/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/makeover/images/footer-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/makeover/features/hantus-above-header.php
ADDED
@@ -0,0 +1,459 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function hantus_abv_header_setting( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
/*=========================================
|
5 |
+
Header Settings Section
|
6 |
+
=========================================*/
|
7 |
+
// Header Settings Section //
|
8 |
+
$wp_customize->add_section(
|
9 |
+
'header_setting',
|
10 |
+
array(
|
11 |
+
'priority' => 1,
|
12 |
+
'title' => __('Top Left Header','hantus-pro'),
|
13 |
+
'panel' => 'header_section',
|
14 |
+
)
|
15 |
+
);
|
16 |
+
|
17 |
+
// Setting Head
|
18 |
+
$wp_customize->add_setting(
|
19 |
+
'hdr_setting_head'
|
20 |
+
,array(
|
21 |
+
'capability' => 'edit_theme_options',
|
22 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
23 |
+
'priority' => 1,
|
24 |
+
)
|
25 |
+
);
|
26 |
+
|
27 |
+
$wp_customize->add_control(
|
28 |
+
'hdr_setting_head',
|
29 |
+
array(
|
30 |
+
'type' => 'hidden',
|
31 |
+
'label' => __('Setting','hantus-pro'),
|
32 |
+
'section' => 'header_setting',
|
33 |
+
)
|
34 |
+
);
|
35 |
+
|
36 |
+
// Social Icons Hide/Show Setting //
|
37 |
+
if ( class_exists( 'Hantus_Customizer_Toggle_Control' ) ) {
|
38 |
+
$wp_customize->add_setting(
|
39 |
+
'hide_show_social_icon' ,
|
40 |
+
array(
|
41 |
+
'default' => '1',
|
42 |
+
'capability' => 'edit_theme_options',
|
43 |
+
'sanitize_callback' => 'sanitize_text_field',
|
44 |
+
'transport' => $selective_refresh,
|
45 |
+
'priority' => 2,
|
46 |
+
)
|
47 |
+
);
|
48 |
+
|
49 |
+
$wp_customize->add_control( new Hantus_Customizer_Toggle_Control( $wp_customize,
|
50 |
+
'hide_show_social_icon',
|
51 |
+
array(
|
52 |
+
'label' => esc_html__( 'Hide / Show Section', 'hantus-pro' ),
|
53 |
+
'section' => 'header_setting',
|
54 |
+
'settings' => 'hide_show_social_icon',
|
55 |
+
'type' => 'ios', // light, ios, flat
|
56 |
+
)
|
57 |
+
));
|
58 |
+
}
|
59 |
+
|
60 |
+
// Time Head
|
61 |
+
$wp_customize->add_setting(
|
62 |
+
'hdr_time_head'
|
63 |
+
,array(
|
64 |
+
'capability' => 'edit_theme_options',
|
65 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
66 |
+
'priority' => 4,
|
67 |
+
)
|
68 |
+
);
|
69 |
+
|
70 |
+
$wp_customize->add_control(
|
71 |
+
'hdr_time_head',
|
72 |
+
array(
|
73 |
+
'type' => 'hidden',
|
74 |
+
'label' => __('Time','hantus-pro'),
|
75 |
+
'section' => 'header_setting',
|
76 |
+
)
|
77 |
+
);
|
78 |
+
|
79 |
+
// address info icon hantus //
|
80 |
+
$wp_customize->add_setting(
|
81 |
+
'hantus_time_icon',
|
82 |
+
array(
|
83 |
+
'default' => 'fa-clock-o',
|
84 |
+
'sanitize_callback' => 'sanitize_text_field',
|
85 |
+
'capability' => 'edit_theme_options',
|
86 |
+
'priority' => 5,
|
87 |
+
)
|
88 |
+
);
|
89 |
+
|
90 |
+
$wp_customize->add_control(new Hantus_Icon_Picker_Control($wp_customize,
|
91 |
+
'hantus_time_icon',
|
92 |
+
array(
|
93 |
+
'label' => __('Time Icon','hantus-pro'),
|
94 |
+
'section' => 'header_setting',
|
95 |
+
'iconset' => 'fa',
|
96 |
+
'settings' => 'hantus_time_icon',
|
97 |
+
'description' => __( '', 'hantus-pro' ),
|
98 |
+
|
99 |
+
))
|
100 |
+
);
|
101 |
+
|
102 |
+
// address info hantus //
|
103 |
+
$wp_customize->add_setting(
|
104 |
+
'hantus_timing',
|
105 |
+
array(
|
106 |
+
'default' => __('Opening Hours - 10 Am to 6 PM','hantus-pro'),
|
107 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
108 |
+
'capability' => 'edit_theme_options',
|
109 |
+
'transport' => $selective_refresh,
|
110 |
+
'priority' => 6,
|
111 |
+
)
|
112 |
+
);
|
113 |
+
|
114 |
+
$wp_customize->add_control(
|
115 |
+
'hantus_timing',
|
116 |
+
array(
|
117 |
+
'label' => __('Address','hantus-pro'),
|
118 |
+
'section' => 'header_setting',
|
119 |
+
'settings' => 'hantus_timing',
|
120 |
+
'description' => __( '', 'hantus-pro' ),
|
121 |
+
'type' => 'textarea'
|
122 |
+
)
|
123 |
+
);
|
124 |
+
|
125 |
+
|
126 |
+
// Social Head
|
127 |
+
$wp_customize->add_setting(
|
128 |
+
'hdr_social_head'
|
129 |
+
,array(
|
130 |
+
'capability' => 'edit_theme_options',
|
131 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
132 |
+
'priority' => 9,
|
133 |
+
)
|
134 |
+
);
|
135 |
+
|
136 |
+
$wp_customize->add_control(
|
137 |
+
'hdr_social_head',
|
138 |
+
array(
|
139 |
+
'type' => 'hidden',
|
140 |
+
'label' => __('Social Icon','hantus-pro'),
|
141 |
+
'section' => 'header_setting',
|
142 |
+
)
|
143 |
+
);
|
144 |
+
|
145 |
+
/**
|
146 |
+
* Customizer Repeater
|
147 |
+
*/
|
148 |
+
$wp_customize->add_setting( 'social_icons',
|
149 |
+
array(
|
150 |
+
'sanitize_callback' => 'hantus_repeater_sanitize',
|
151 |
+
'priority' => 10,
|
152 |
+
'default' => hantus_get_social_icon_default(),
|
153 |
+
)
|
154 |
+
);
|
155 |
+
|
156 |
+
$wp_customize->add_control(
|
157 |
+
new Hantus_Repeater( $wp_customize,
|
158 |
+
'social_icons',
|
159 |
+
array(
|
160 |
+
'label' => esc_html__('Social Icons','hantus-pro'),
|
161 |
+
'section' => 'header_setting',
|
162 |
+
'customizer_repeater_icon_control' => true,
|
163 |
+
'customizer_repeater_link_control' => true,
|
164 |
+
)
|
165 |
+
)
|
166 |
+
);
|
167 |
+
/*=========================================
|
168 |
+
Header Contact Settings Section
|
169 |
+
=========================================*/
|
170 |
+
// Header Contact Setting Section //
|
171 |
+
$wp_customize->add_section(
|
172 |
+
'header_contact',
|
173 |
+
array(
|
174 |
+
'priority' => 2,
|
175 |
+
'title' => __('Top Right Header','hantus-pro'),
|
176 |
+
'description' =>'',
|
177 |
+
'panel' => 'header_section',
|
178 |
+
)
|
179 |
+
);
|
180 |
+
|
181 |
+
// Header Contact Indo Hide/Show Setting //
|
182 |
+
// Right Header Setting Head
|
183 |
+
$wp_customize->add_setting(
|
184 |
+
'right_hdr_setting_head'
|
185 |
+
,array(
|
186 |
+
'capability' => 'edit_theme_options',
|
187 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
188 |
+
'priority' => 1,
|
189 |
+
)
|
190 |
+
);
|
191 |
+
|
192 |
+
$wp_customize->add_control(
|
193 |
+
'right_hdr_setting_head',
|
194 |
+
array(
|
195 |
+
'type' => 'hidden',
|
196 |
+
'label' => __('Setting','hantus-pro'),
|
197 |
+
'section' => 'header_contact',
|
198 |
+
)
|
199 |
+
);
|
200 |
+
|
201 |
+
// Social Icons Hide/Show Setting //
|
202 |
+
if ( class_exists( 'Hantus_Customizer_Toggle_Control' ) ) {
|
203 |
+
$wp_customize->add_setting(
|
204 |
+
'hide_show_contact_infot' ,
|
205 |
+
array(
|
206 |
+
'default' => '1',
|
207 |
+
'capability' => 'edit_theme_options',
|
208 |
+
'sanitize_callback' => 'sanitize_text_field',
|
209 |
+
'transport' => $selective_refresh,
|
210 |
+
'priority' => 2,
|
211 |
+
)
|
212 |
+
);
|
213 |
+
|
214 |
+
$wp_customize->add_control( new Hantus_Customizer_Toggle_Control( $wp_customize,
|
215 |
+
'hide_show_contact_infot',
|
216 |
+
array(
|
217 |
+
'label' => esc_html__( 'Hide / Show Section', 'hantus-pro' ),
|
218 |
+
'section' => 'header_contact',
|
219 |
+
'settings' => 'hide_show_contact_infot',
|
220 |
+
'type' => 'ios', // light, ios, flat
|
221 |
+
)
|
222 |
+
));
|
223 |
+
}
|
224 |
+
|
225 |
+
|
226 |
+
// Right Header Email Head
|
227 |
+
$wp_customize->add_setting(
|
228 |
+
'right_hdr_email_head'
|
229 |
+
,array(
|
230 |
+
'capability' => 'edit_theme_options',
|
231 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
232 |
+
'priority' => 3,
|
233 |
+
)
|
234 |
+
);
|
235 |
+
|
236 |
+
$wp_customize->add_control(
|
237 |
+
'right_hdr_email_head',
|
238 |
+
array(
|
239 |
+
'type' => 'hidden',
|
240 |
+
'label' => __('Email','hantus-pro'),
|
241 |
+
'section' => 'header_contact',
|
242 |
+
)
|
243 |
+
);
|
244 |
+
|
245 |
+
// Header Email icon Setting //
|
246 |
+
$wp_customize->add_setting(
|
247 |
+
'header_email_icon',
|
248 |
+
array(
|
249 |
+
'default' => __('fa-envelope-o','hantus-pro'),
|
250 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
251 |
+
'capability' => 'edit_theme_options',
|
252 |
+
'priority' => 4,
|
253 |
+
)
|
254 |
+
);
|
255 |
+
|
256 |
+
$wp_customize->add_control(new Hantus_Icon_Picker_Control($wp_customize,
|
257 |
+
'header_email_icon',
|
258 |
+
array(
|
259 |
+
'label' => __('Email Icon','hantus-pro'),
|
260 |
+
'section' => 'header_contact',
|
261 |
+
'settings'=> 'header_email_icon',
|
262 |
+
'iconset' => 'fa',
|
263 |
+
'description' => __( '', 'hantus-pro' ),
|
264 |
+
))
|
265 |
+
);
|
266 |
+
|
267 |
+
// Header Email Setting //
|
268 |
+
$wp_customize->add_setting(
|
269 |
+
'header_email',
|
270 |
+
array(
|
271 |
+
'default' => __('email@companyname.com','hantus-pro'),
|
272 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
273 |
+
'capability' => 'edit_theme_options',
|
274 |
+
'transport' => $selective_refresh,
|
275 |
+
'priority' => 5,
|
276 |
+
)
|
277 |
+
);
|
278 |
+
|
279 |
+
$wp_customize->add_control(
|
280 |
+
'header_email',
|
281 |
+
array(
|
282 |
+
'label' => __('Email','hantus-pro'),
|
283 |
+
'section' => 'header_contact',
|
284 |
+
'settings'=> 'header_email',
|
285 |
+
'type' => 'text',
|
286 |
+
'description' => __( '', 'hantus-pro' ),
|
287 |
+
)
|
288 |
+
);
|
289 |
+
|
290 |
+
// Right Header Contact Head
|
291 |
+
$wp_customize->add_setting(
|
292 |
+
'right_hdr_contact_head'
|
293 |
+
,array(
|
294 |
+
'capability' => 'edit_theme_options',
|
295 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
296 |
+
'priority' => 6,
|
297 |
+
)
|
298 |
+
);
|
299 |
+
|
300 |
+
$wp_customize->add_control(
|
301 |
+
'right_hdr_contact_head',
|
302 |
+
array(
|
303 |
+
'type' => 'hidden',
|
304 |
+
'label' => __('Phone','hantus-pro'),
|
305 |
+
'section' => 'header_contact',
|
306 |
+
)
|
307 |
+
);
|
308 |
+
|
309 |
+
// Header Contact Number Setting //
|
310 |
+
$wp_customize->add_setting(
|
311 |
+
'header_phone_icon',
|
312 |
+
array(
|
313 |
+
'default' => __('fa-phone','hantus-pro'),
|
314 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
315 |
+
'capability' => 'edit_theme_options',
|
316 |
+
'priority' => 7,
|
317 |
+
)
|
318 |
+
);
|
319 |
+
|
320 |
+
$wp_customize->add_control( new Hantus_Icon_Picker_Control($wp_customize,
|
321 |
+
'header_phone_icon',
|
322 |
+
array(
|
323 |
+
'label' => __('Phone Icon','hantus-pro'),
|
324 |
+
'section' => 'header_contact',
|
325 |
+
'settings'=> 'header_phone_icon',
|
326 |
+
'iconset' => 'fa',
|
327 |
+
'description' => __( '', 'hantus-pro' ),
|
328 |
+
) )
|
329 |
+
);
|
330 |
+
|
331 |
+
$wp_customize->add_setting(
|
332 |
+
'header_phone_number',
|
333 |
+
array(
|
334 |
+
'default' => __('+12 345 678 910','hantus-pro'),
|
335 |
+
'sanitize_callback' => 'hantus_sanitize_text',
|
336 |
+
'capability' => 'edit_theme_options',
|
337 |
+
'transport' => $selective_refresh,
|
338 |
+
'priority' => 8,
|
339 |
+
)
|
340 |
+
);
|
341 |
+
|
342 |
+
$wp_customize->add_control(
|
343 |
+
'header_phone_number',
|
344 |
+
array(
|
345 |
+
'label' => __('Phone Number','hantus-pro'),
|
346 |
+
'section' => 'header_contact',
|
347 |
+
'settings'=> 'header_phone_number',
|
348 |
+
'type' => 'text',
|
349 |
+
'description' => __( '', 'hantus-pro' ),
|
350 |
+
)
|
351 |
+
);
|
352 |
+
}
|
353 |
+
|
354 |
+
add_action( 'customize_register', 'hantus_abv_header_setting' );
|
355 |
+
|
356 |
+
|
357 |
+
// header selective refresh
|
358 |
+
function hantus_above_header_section_partials( $wp_customize ){
|
359 |
+
// hide_show_social_icon
|
360 |
+
$wp_customize->selective_refresh->add_partial(
|
361 |
+
'hide_show_social_icon', array(
|
362 |
+
'selector' => '.header-social, .time-details',
|
363 |
+
'container_inclusive' => true,
|
364 |
+
'render_callback' => 'header_setting',
|
365 |
+
'fallback_refresh' => true,
|
366 |
+
)
|
367 |
+
);
|
368 |
+
// hide_show_contact_infot
|
369 |
+
$wp_customize->selective_refresh->add_partial(
|
370 |
+
'hide_show_contact_infot', array(
|
371 |
+
'selector' => '.header-top-right',
|
372 |
+
'container_inclusive' => true,
|
373 |
+
'render_callback' => 'header_contact',
|
374 |
+
'fallback_refresh' => true,
|
375 |
+
)
|
376 |
+
);
|
377 |
+
|
378 |
+
// social icons
|
379 |
+
$wp_customize->selective_refresh->add_partial( 'social_icons', array(
|
380 |
+
'selector' => '#header-top .header-social',
|
381 |
+
) );
|
382 |
+
|
383 |
+
// hantus_timing
|
384 |
+
$wp_customize->selective_refresh->add_partial( 'hantus_timing', array(
|
385 |
+
'selector' => '#header-top p',
|
386 |
+
'settings' => 'hantus_timing',
|
387 |
+
'render_callback' => 'header_section_hantus_timing_render_callback',
|
388 |
+
) );
|
389 |
+
|
390 |
+
// email text
|
391 |
+
$wp_customize->selective_refresh->add_partial( 'header_email', array(
|
392 |
+
'selector' => '#header-top .h-t-e ',
|
393 |
+
'settings' => 'header_email',
|
394 |
+
'render_callback' => 'header_section_header_email_render_callback',
|
395 |
+
) );
|
396 |
+
|
397 |
+
|
398 |
+
// header_phone_number
|
399 |
+
$wp_customize->selective_refresh->add_partial( 'header_phone_number', array(
|
400 |
+
'selector' => '#header-top .h-t-p ',
|
401 |
+
'settings' => 'header_phone_number',
|
402 |
+
'render_callback' => 'header_section_header_phone_number_render_callback',
|
403 |
+
) );
|
404 |
+
}
|
405 |
+
add_action( 'customize_register', 'hantus_above_header_section_partials' );
|
406 |
+
|
407 |
+
// hantus_timing
|
408 |
+
function header_section_hantus_timing_render_callback() {
|
409 |
+
return get_theme_mod( 'hantus_timing' );
|
410 |
+
}
|
411 |
+
// header_email
|
412 |
+
function header_section_header_email_render_callback() {
|
413 |
+
return get_theme_mod( 'header_email' );
|
414 |
+
}
|
415 |
+
// header_phone_number
|
416 |
+
function header_section_header_phone_number_render_callback() {
|
417 |
+
return get_theme_mod( 'header_phone_number' );
|
418 |
+
}
|
419 |
+
|
420 |
+
|
421 |
+
|
422 |
+
|
423 |
+
/*
|
424 |
+
*
|
425 |
+
* Social Icon
|
426 |
+
*/
|
427 |
+
function hantus_get_social_icon_default() {
|
428 |
+
return apply_filters(
|
429 |
+
'hantus_get_social_icon_default', json_encode(
|
430 |
+
array(
|
431 |
+
array(
|
432 |
+
'icon_value' => esc_html__( 'fa-facebook', 'makeover' ),
|
433 |
+
'link' => esc_html__( '#', 'makeover' ),
|
434 |
+
'id' => 'customizer_repeater_header_social_001',
|
435 |
+
),
|
436 |
+
array(
|
437 |
+
'icon_value' => esc_html__( 'fa-google-plus', 'makeover' ),
|
438 |
+
'link' => esc_html__( '#', 'makeover' ),
|
439 |
+
'id' => 'customizer_repeater_header_social_002',
|
440 |
+
),
|
441 |
+
array(
|
442 |
+
'icon_value' => esc_html__( 'fa-twitter', 'makeover' ),
|
443 |
+
'link' => esc_html__( '#', 'makeover' ),
|
444 |
+
'id' => 'customizer_repeater_header_social_003',
|
445 |
+
),
|
446 |
+
array(
|
447 |
+
'icon_value' => esc_html__( 'fa-linkedin', 'makeover' ),
|
448 |
+
'link' => esc_html__( '#', 'makeover' ),
|
449 |
+
'id' => 'customizer_repeater_header_social_004',
|
450 |
+
),
|
451 |
+
array(
|
452 |
+
'icon_value' => esc_html__( 'fa-behance', 'makeover' ),
|
453 |
+
'link' => esc_html__( '#', 'makeover' ),
|
454 |
+
'id' => 'customizer_repeater_header_social_005',
|
455 |
+
),
|
456 |
+
)
|
457 |
+
)
|
458 |
+
);
|
459 |
+
}
|
inc/makeover/images/footer-logo.png
ADDED
Binary file
|
inc/makeover/images/logo.png
ADDED
Binary file
|
inc/makeover/makeover.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Hantus
|
4 |
+
*/
|
5 |
+
|
6 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/makeover/sections/above-header.php';
|
7 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/makeover/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/hantus/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/makeover/sections/section-info.php';
|
21 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/makeover/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/makeover/sections/above-header.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'hantus_above_header' ) ) :
|
3 |
+
function hantus_above_header() {
|
4 |
+
?>
|
5 |
+
<?php
|
6 |
+
$hide_show_social_icon = get_theme_mod('hide_show_social_icon','1');
|
7 |
+
$social_icons = get_theme_mod('social_icons',hantus_get_social_icon_default());
|
8 |
+
$hantus_time_icon = get_theme_mod('hantus_time_icon','fa-clock-o');
|
9 |
+
$hantus_timing = get_theme_mod('hantus_timing','Opening Hours - 10 Am to 6 PM');
|
10 |
+
$hide_show_contact_infot = get_theme_mod('hide_show_contact_infot','1');
|
11 |
+
$header_email_icon = get_theme_mod('header_email_icon','fa-envelope-o');
|
12 |
+
$header_email = get_theme_mod('header_email','email@companyname.com');
|
13 |
+
$header_phone_icon = get_theme_mod('header_phone_icon','fa-phone');
|
14 |
+
$header_phone_number = get_theme_mod('header_phone_number','+12 345 678 910');
|
15 |
+
?>
|
16 |
+
<div id="header-top">
|
17 |
+
<div class="container">
|
18 |
+
|
19 |
+
<div class="row">
|
20 |
+
|
21 |
+
<div class="col-lg-6 col-md-6 text-center text-md-left left-top-header">
|
22 |
+
<?php if($hide_show_social_icon == '1') { ?>
|
23 |
+
<p class="time-details"><i class="fa <?php echo $hantus_time_icon; ?>"></i><?php echo $hantus_timing; ?></p>
|
24 |
+
<ul class="header-social d-inline-block">
|
25 |
+
<?php
|
26 |
+
$social_icons = json_decode($social_icons);
|
27 |
+
if( $social_icons!='' )
|
28 |
+
{
|
29 |
+
foreach($social_icons as $social_item){
|
30 |
+
$social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'hantus_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
|
31 |
+
$social_link = ! empty( $social_item->link ) ? apply_filters( 'hantus_translate_single_string', $social_item->link, 'Header section' ) : '';
|
32 |
+
?>
|
33 |
+
<li><a href="<?php echo esc_url( $social_link ); ?>" ><i class="fa <?php echo esc_attr( $social_icon ); ?> "></i></a></li>
|
34 |
+
<?php
|
35 |
+
}
|
36 |
+
}
|
37 |
+
?>
|
38 |
+
</ul>
|
39 |
+
<?php
|
40 |
+
}
|
41 |
+
?>
|
42 |
+
</div>
|
43 |
+
<?php ?>
|
44 |
+
<?php if($hide_show_contact_infot == '1' ) { ?>
|
45 |
+
<div class="col-lg-6 col-md-6 text-center text-md-right header-top-right">
|
46 |
+
<ul class="text-details">
|
47 |
+
<li class="h-t-e"><a href="#"><i class="fa <?php echo esc_attr( $header_email_icon ); ?>"></i><?php echo $header_email; ?></a></li>
|
48 |
+
<li class="h-t-p"><a href="#"><i class="fa <?php echo esc_attr( $header_phone_icon ); ?>"></i><?php echo $header_phone_number; ?></a></li>
|
49 |
+
</ul>
|
50 |
+
</div>
|
51 |
+
<?php } ?>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
<?php
|
56 |
+
} endif;
|
57 |
+
add_action('hantus_above_header', 'hantus_above_header');
|
inc/makeover/sections/section-info.php
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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',CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon01.jpg');
|
6 |
+
$info_title = get_theme_mod('info_title','Opening Time');
|
7 |
+
$info_description = get_theme_mod('info_description','Mon - Sat: 10h00 - 18h00');
|
8 |
+
$info_btn = get_theme_mod('info_btn','Read More');
|
9 |
+
$info_link = get_theme_mod('info_link','#');
|
10 |
+
|
11 |
+
$info_second_img_setting= get_theme_mod('info_second_img_setting',CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon02.jpg');
|
12 |
+
$info_title2 = get_theme_mod('info_title2','Address');
|
13 |
+
$info_description2 = get_theme_mod('info_description2','40 Baria Sreet, NY USAm');
|
14 |
+
$info_btn2 = get_theme_mod('info_btn2','Read More');
|
15 |
+
$info_link2 = get_theme_mod('info_link2','#');
|
16 |
+
|
17 |
+
$info_third_img_setting = get_theme_mod('info_third_img_setting',CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon03.jpg');
|
18 |
+
$info_title3 = get_theme_mod('info_title3','Telephone');
|
19 |
+
$info_description3 = get_theme_mod('info_description3','+12 345 678 9101');
|
20 |
+
$info_btn3 = get_theme_mod('info_btn3','Read More');
|
21 |
+
$info_link3 = get_theme_mod('info_link3','#');
|
22 |
+
?>
|
23 |
+
<?php if($hide_show_info == '1') { ?>
|
24 |
+
<section id="contact2" class="info-makeover">
|
25 |
+
<div class="container">
|
26 |
+
<div class="row">
|
27 |
+
<div class="col-md-12">
|
28 |
+
<ul class="info-wrapper">
|
29 |
+
<li class="info-first">
|
30 |
+
<aside class="single-info-makeover strip-hover">
|
31 |
+
<div class="strip-hover-wrap">
|
32 |
+
<div class="strip-overlay">
|
33 |
+
<?php if ( ! empty( $info_first_img_setting ) ) { ?>
|
34 |
+
<div class="icon-info-makeover">
|
35 |
+
<img src="<?php echo esc_url( $info_first_img_setting ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
|
36 |
+
</div>
|
37 |
+
<?php } ?>
|
38 |
+
<div class="info-area-makeover">
|
39 |
+
<div class="info-caption-makeover">
|
40 |
+
<h4><?php echo esc_html( $info_title ); ?></h4>
|
41 |
+
<p><?php echo esc_html( $info_description ); ?></p>
|
42 |
+
<a href="<?php echo esc_url($info_link); ?>" class="btn-info"><?php echo esc_html($info_btn); ?></a>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
</aside>
|
48 |
+
</li>
|
49 |
+
<li class="info-second">
|
50 |
+
<aside class="single-info-makeover strip-hover">
|
51 |
+
<div class="strip-hover-wrap">
|
52 |
+
<div class="strip-overlay">
|
53 |
+
<?php if ( ! empty( $info_second_img_setting ) ) { ?>
|
54 |
+
<div class="icon-info-makeover">
|
55 |
+
<img src="<?php echo esc_url( $info_second_img_setting ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
|
56 |
+
</div>
|
57 |
+
<?php } ?>
|
58 |
+
<div class="info-area-makeover">
|
59 |
+
<div class="info-caption-makeover">
|
60 |
+
<h4><?php echo esc_html( $info_title2 ); ?></h4>
|
61 |
+
<p><?php echo esc_html( $info_description2 ); ?></p>
|
62 |
+
<a href="<?php echo esc_url($info_link2); ?>" class="btn-info"><?php echo esc_html($info_btn2); ?></a>
|
63 |
+
</div>
|
64 |
+
</div>
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
</aside>
|
68 |
+
</li>
|
69 |
+
<li class="info-third">
|
70 |
+
<aside class="single-info-makeover strip-hover">
|
71 |
+
<div class="strip-hover-wrap">
|
72 |
+
<div class="strip-overlay">
|
73 |
+
<?php if ( ! empty( $info_third_img_setting ) ) { ?>
|
74 |
+
<div class="icon-info-makeover">
|
75 |
+
<img src="<?php echo esc_url( $info_third_img_setting ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
|
76 |
+
</div>
|
77 |
+
<?php } ?>
|
78 |
+
<div class="info-area-makeover">
|
79 |
+
<div class="info-caption-makeover">
|
80 |
+
<h4><?php echo esc_html( $info_title3 ); ?></h4>
|
81 |
+
<p><?php echo esc_html( $info_description3 ); ?></p>
|
82 |
+
<a href="<?php echo esc_url($info_link3); ?>" class="btn-info"><?php echo esc_html($info_btn3); ?></a>
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</aside>
|
88 |
+
</li>
|
89 |
+
</ul>
|
90 |
+
</div>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
</section>
|
94 |
+
<?php }} endif; ?>
|
95 |
+
<?php
|
96 |
+
if ( function_exists( 'hantus_lite_info' ) ) {
|
97 |
+
$section_priority = apply_filters( 'hantus_section_priority', 12, 'hantus_lite_info' );
|
98 |
+
add_action( 'hantus_sections', 'hantus_lite_info', absint( $section_priority ) );
|
99 |
+
}
|
100 |
+
?>
|
inc/makeover/sections/section-service.php
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'hantus_lite_service' ) ) :
|
3 |
+
function hantus_lite_service() {
|
4 |
+
function hantus_get_service_default() {
|
5 |
+
return apply_filters(
|
6 |
+
'hantus_get_service_default', json_encode(
|
7 |
+
array(
|
8 |
+
array(
|
9 |
+
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service01.png',
|
10 |
+
'title' => esc_html__( 'Oil Massage', 'hantus' ),
|
11 |
+
'subtitle' => esc_html__( '$57.99', 'hantus' ),
|
12 |
+
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
13 |
+
'text2' => esc_html__( 'Book now', 'hantus' ),
|
14 |
+
'link' => esc_html__( '#', 'hantus' ),
|
15 |
+
'id' => 'customizer_repeater_service_001',
|
16 |
+
|
17 |
+
),
|
18 |
+
array(
|
19 |
+
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service02.png',
|
20 |
+
'title' => esc_html__( 'Skin Care', 'hantus' ),
|
21 |
+
'subtitle' => esc_html__( '$57.99', 'hantus' ),
|
22 |
+
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
23 |
+
'text2' => esc_html__( 'Book now', 'hantus' ),
|
24 |
+
'link' => esc_html__( '#', 'hantus' ),
|
25 |
+
'id' => 'customizer_repeater_service_002',
|
26 |
+
|
27 |
+
),
|
28 |
+
array(
|
29 |
+
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service03.png',
|
30 |
+
'title' => esc_html__( 'Natural Relaxation', 'hantus' ),
|
31 |
+
'subtitle' => esc_html__( '$57.99', 'hantus' ),
|
32 |
+
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
33 |
+
'text2' => esc_html__( 'Book now', 'hantus' ),
|
34 |
+
'link' => esc_html__( '#', 'hantus' ),
|
35 |
+
'id' => 'customizer_repeater_service_003',
|
36 |
+
|
37 |
+
),
|
38 |
+
array(
|
39 |
+
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service04.png',
|
40 |
+
'title' => esc_html__( 'Nails Design', 'hantus' ),
|
41 |
+
'subtitle' => esc_html__( '$57.99', 'hantus' ),
|
42 |
+
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
43 |
+
'text2' => esc_html__( 'Book now', 'hantus' ),
|
44 |
+
'link' => esc_html__( '#', 'hantus' ),
|
45 |
+
'id' => 'customizer_repeater_service_004',
|
46 |
+
|
47 |
+
),
|
48 |
+
)
|
49 |
+
)
|
50 |
+
);
|
51 |
+
}
|
52 |
+
?>
|
53 |
+
<?php
|
54 |
+
$default_content = hantus_get_service_default();
|
55 |
+
$hide_show_service = get_theme_mod('hide_show_service','1');
|
56 |
+
$service_title = get_theme_mod('service_title','Our Services');
|
57 |
+
$service_description = get_theme_mod('service_description','These are the services we provide, these makes us stand apart.');
|
58 |
+
$service_contents = get_theme_mod('service_contents',$default_content);
|
59 |
+
|
60 |
+
?>
|
61 |
+
<?php if($hide_show_service == '1') {?>
|
62 |
+
<section id="services" class="section-padding" style="background: url(http://themes.iamabdus.com/angel/1.2/img/home/pattern-1.jpg) center center / cover fixed;">
|
63 |
+
<div class="container">
|
64 |
+
<div class="row">
|
65 |
+
<div class="col-lg-6 offset-lg-3 col-12 text-center">
|
66 |
+
<div class="section-title service-section">
|
67 |
+
<h2><?php echo $service_title; ?></h2>
|
68 |
+
<!-- <hr style="background: url('<?php //echo get_template_directory_uri(); ?>/assets/images/section-icon.png') no-repeat center / cover;"> -->
|
69 |
+
<p><?php echo $service_description; ?></p>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
</div>
|
73 |
+
<div class="row servicesss">
|
74 |
+
<?php
|
75 |
+
if ( ! empty( $service_contents ) ) {
|
76 |
+
$allowed_html = array(
|
77 |
+
'br' => array(),
|
78 |
+
'em' => array(),
|
79 |
+
'strong' => array(),
|
80 |
+
'b' => array(),
|
81 |
+
'i' => array(),
|
82 |
+
);
|
83 |
+
$service_contents = json_decode( $service_contents );
|
84 |
+
foreach ( $service_contents as $service_item ) {
|
85 |
+
$title = ! empty( $service_item->title ) ? apply_filters( 'hantus_translate_single_string', $service_item->title, 'service section' ) : '';
|
86 |
+
$subtitle = ! empty( $service_item->subtitle ) ? apply_filters( 'hantus_translate_single_string', $service_item->subtitle, 'service section' ) : '';
|
87 |
+
$text = ! empty( $service_item->text ) ? apply_filters( 'hantus_translate_single_string', $service_item->text, 'service section' ) : '';
|
88 |
+
$text2 = ! empty( $service_item->text2) ? apply_filters( 'hantus_translate_single_string', $service_item->text2,'service section' ) : '';
|
89 |
+
$link = ! empty( $service_item->link ) ? apply_filters( 'hantus_translate_single_string', $service_item->link, 'service section' ) : '';
|
90 |
+
$image = ! empty( $service_item->image_url ) ? apply_filters( 'hantus_translate_single_string', $service_item->image_url, 'service section' ) : '';
|
91 |
+
?>
|
92 |
+
<div class="col-lg-3 col-md-6 col-sm-6 mb-5 mb-lg-0 serv-cont">
|
93 |
+
<div class="service-makeover text-center strip-hover">
|
94 |
+
<div class="strip-hover-wrap">
|
95 |
+
<div class="strip-overlay">
|
96 |
+
<?php if ( ! empty( $image ) ) : ?>
|
97 |
+
<img class="services_cols_mn_icon" src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
|
98 |
+
<?php endif; ?>
|
99 |
+
<div class="inner-makeover">
|
100 |
+
<div class="inner-text-makeover">
|
101 |
+
<div class="inner-overlay">
|
102 |
+
<?php if ( ! empty( $title ) ) : ?>
|
103 |
+
<h4><?php echo esc_html( $title ); ?></h4>
|
104 |
+
<?php endif; ?>
|
105 |
+
<?php if ( ! empty( $text ) ) : ?>
|
106 |
+
<p><?php echo esc_html( $text ); ?></p>
|
107 |
+
<?php endif; ?>
|
108 |
+
<?php if ( ! empty( $text2 ) ) : ?>
|
109 |
+
<a href="<?php echo esc_html( $link ); ?>" class="boxed-btn"><?php echo esc_html( $text2 ); ?></a>
|
110 |
+
<?php endif; ?>
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
<?php if ( ! empty( $subtitle ) ) : ?>
|
117 |
+
<div class="price-makeover"><h5><?php echo esc_html( $subtitle ); ?></h5></div>
|
118 |
+
<?php endif; ?>
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
+
<?php }}?>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
</section>
|
125 |
+
<?php
|
126 |
+
}
|
127 |
+
}
|
128 |
+
endif;
|
129 |
+
if ( function_exists( 'hantus_lite_service' ) ) {
|
130 |
+
$section_priority = apply_filters( 'hantus_section_priority', 25, 'hantus_lite_service' );
|
131 |
+
add_action( 'hantus_sections', 'hantus_lite_service', absint( $section_priority ) );
|
132 |
+
}
|
133 |
+
?>
|
readme.txt
CHANGED
@@ -85,6 +85,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
88 |
= 3.7 =
|
89 |
* Avail Theme Link Added in Readme
|
90 |
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 3.8 =
|
89 |
+
* Makeover Theme Functionality Added
|
90 |
+
|
91 |
= 3.7 =
|
92 |
* Avail Theme Link Added in Readme
|
93 |
|