Version Description
- Hantus Theme Features Improved
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 1.1.32 |
Comparing to | |
See all releases |
Code changes from version 1.1.31 to 1.1.32
- clever-fox.php +2 -2
- inc/hantus/default-widgets/default-widget.php +19 -10
- inc/hantus/dynamic-style.php +102 -0
- inc/hantus/features/navigation.php +5 -0
- inc/hantus/features/section-info.php +133 -13
- inc/hantus/features/section-service.php +15 -0
- inc/hantus/features/section-slider.php +108 -5
- inc/hantus/features/section-typography.php +204 -654
- inc/hantus/images/icons/icon01.jpg +0 -0
- inc/hantus/images/icons/icon01.png +0 -0
- inc/hantus/images/icons/icon02.jpg +0 -0
- inc/hantus/images/icons/icon02.png +0 -0
- inc/hantus/images/icons/icon03.jpg +0 -0
- inc/hantus/images/icons/icon03.png +0 -0
- inc/hantus/images/slider/slider.jpg +0 -0
- 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/hantus/sections/section-info.php +62 -31
- inc/hantus/sections/section-service.php +22 -1
- inc/hantus/sections/section-slider.php +55 -53
- inc/hantus/sections/section-testimonial.php +53 -47
- inc/hantus/typography_style.php +0 -143
- readme.txt +3 -0
clever-fox.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Clever Fox
|
4 |
Plugin URI:
|
5 |
Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
|
6 |
-
Version: 1.1.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -98,7 +98,7 @@ function cleverfox_activate() {
|
|
98 |
require_once('inc/hantus/sections/section-service.php');
|
99 |
require_once('inc/hantus/sections/section-testimonial.php');
|
100 |
require_once('inc/hantus/features/section-typography.php');
|
101 |
-
require_once('inc/hantus/
|
102 |
}
|
103 |
}
|
104 |
add_action( 'init', 'cleverfox_activate' );
|
3 |
Plugin Name: Clever Fox
|
4 |
Plugin URI:
|
5 |
Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
|
6 |
+
Version: 1.1.32
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
98 |
require_once('inc/hantus/sections/section-service.php');
|
99 |
require_once('inc/hantus/sections/section-testimonial.php');
|
100 |
require_once('inc/hantus/features/section-typography.php');
|
101 |
+
require_once('inc/hantus/dynamic-style.php');
|
102 |
}
|
103 |
}
|
104 |
add_action( 'init', 'cleverfox_activate' );
|
inc/hantus/default-widgets/default-widget.php
CHANGED
@@ -1,18 +1,16 @@
|
|
1 |
<?php
|
2 |
$activate = array(
|
3 |
-
|
4 |
-
|
5 |
-
// 'recent-posts-1',
|
6 |
-
// 'archives-1',
|
7 |
-
// ),
|
8 |
-
'footer-widget-area' => array(
|
9 |
-
'footer-widget-area',
|
10 |
'recent-posts-1',
|
11 |
'archives-1',
|
12 |
),
|
13 |
-
'footer-widget-area' => array(
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
16 |
);
|
17 |
/* the default titles will appear */
|
18 |
update_option('widget_text', array(
|
@@ -28,6 +26,17 @@ $activate = array(
|
|
28 |
2 => array('title' => 'Recent Posts'),
|
29 |
3 => array('title' => 'Categories'),
|
30 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
update_option('sidebars_widgets', $activate);
|
33 |
$MediaId = get_option('hantus_media_id');
|
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(
|
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');
|
inc/hantus/dynamic-style.php
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if( ! function_exists( 'hantus_customizer_options' ) ):
|
3 |
+
function hantus_customizer_options() {
|
4 |
+
$slider_overlay_enable = get_theme_mod('slider_overlay_enable');
|
5 |
+
$slide_overlay_color = get_theme_mod('slide_overlay_color','#fff');
|
6 |
+
$slider_opacity = get_theme_mod('slider_opacity','0.2');
|
7 |
+
$slide_title_color = get_theme_mod('slide_title_color','#2c3145');
|
8 |
+
$slide_sbtitle_color = get_theme_mod('slide_sbtitle_color','#f22853');
|
9 |
+
$slide_desc_color = get_theme_mod('slide_desc_color','#5e6271');
|
10 |
+
$output_css = '';
|
11 |
+
if($slider_overlay_enable == '1') {
|
12 |
+
$output_css .=".header-single-slider:after {
|
13 |
+
opacity: " .esc_attr($slider_opacity). ";
|
14 |
+
background: " .esc_attr($slide_overlay_color). ";
|
15 |
+
}\n";
|
16 |
+
}
|
17 |
+
|
18 |
+
$output_css .=".header-slider .theme-content h3 {
|
19 |
+
color: " .esc_attr($slide_title_color). ";
|
20 |
+
}.header-slider .theme-content h1 {
|
21 |
+
color: " .esc_attr($slide_sbtitle_color). ";
|
22 |
+
}.header-slider .theme-content p {
|
23 |
+
color: " .esc_attr($slide_desc_color). ";
|
24 |
+
}\n";
|
25 |
+
|
26 |
+
$hide_show_typography= get_theme_mod('hide_show_typography','off');
|
27 |
+
if( $hide_show_typography == '1' ){
|
28 |
+
/**
|
29 |
+
* Typography Body
|
30 |
+
*/
|
31 |
+
$body_typography_font_weight = get_theme_mod('body_typography_font_weight','normal');
|
32 |
+
$body_font_size = get_theme_mod('body_font_size','16');
|
33 |
+
$body_line_height = get_theme_mod('body_line_height','1.6');
|
34 |
+
$output_css .=" body{
|
35 |
+
font-size: " .esc_attr($body_font_size). "px;
|
36 |
+
line-height: " .esc_attr($body_line_height). ";
|
37 |
+
font-style: " .esc_attr($body_typography_font_weight). ";
|
38 |
+
}\n";
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Typography Menu
|
42 |
+
*/
|
43 |
+
$menu_text_transform = get_theme_mod('menu_text_transform','inherit');
|
44 |
+
$menu_font_weight = get_theme_mod('menu_font_weight','normal');
|
45 |
+
$menu_font_size = get_theme_mod('menu_font_size','15');
|
46 |
+
$menu_line_height = get_theme_mod('menu_line_height','1.6');
|
47 |
+
$output_css .=" .main-menu li a{
|
48 |
+
text-transform:" .esc_attr($menu_text_transform). ";
|
49 |
+
font-size: " .esc_attr($menu_font_size). "px;
|
50 |
+
line-height: " .esc_attr($menu_line_height). ";
|
51 |
+
font-style: " .esc_attr($menu_font_weight). ";
|
52 |
+
}\n";
|
53 |
+
|
54 |
+
/**
|
55 |
+
* Typography Section
|
56 |
+
*/
|
57 |
+
$sec_ttl_text_transform = get_theme_mod('sec_ttl_text_transform','inherit');
|
58 |
+
$section_tit_font_weight = get_theme_mod('section_tit_font_weight','normal');
|
59 |
+
$section_tit_font_size = get_theme_mod('section_tit_font_size','36');
|
60 |
+
$section_ttl_line_height = get_theme_mod('section_ttl_line_height','1.6');
|
61 |
+
|
62 |
+
$sec_desc_text_transform = get_theme_mod('sec_desc_text_transform','inherit');
|
63 |
+
$section_des_font_weight = get_theme_mod('section_des_font_weight','normal');
|
64 |
+
$section_desc_font_size = get_theme_mod('section_desc_font_size','16');
|
65 |
+
$section_desc_line_height = get_theme_mod('section_desc_line_height','1.6');
|
66 |
+
|
67 |
+
$output_css .=" .section-title h2{
|
68 |
+
text-transform:" .esc_attr($sec_ttl_text_transform). ";
|
69 |
+
font-size: " .esc_attr($section_tit_font_size). "px;
|
70 |
+
line-height: " .esc_attr($section_ttl_line_height). ";
|
71 |
+
font-style: " .esc_attr($section_tit_font_weight). ";
|
72 |
+
}\n";
|
73 |
+
|
74 |
+
$output_css .=" .section-title p{
|
75 |
+
text-transform:" .esc_attr($sec_desc_text_transform). ";
|
76 |
+
font-size: " .esc_attr($section_desc_font_size). "px;
|
77 |
+
line-height: " .esc_attr($section_desc_line_height). ";
|
78 |
+
font-style: " .esc_attr($section_des_font_weight). ";
|
79 |
+
}\n";
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Typography Heading
|
83 |
+
*/
|
84 |
+
for ( $i = 1; $i <= 6; $i++ ) {
|
85 |
+
if($i == '1'){$j=36;}elseif($i == '2'){$j=32;}elseif($i == '3'){$j=28;}elseif($i == '4'){$j=24;}elseif($i == '5'){$j=20;}else{$j=16;}
|
86 |
+
$heading_font_weight = get_theme_mod('h' . $i . '_font_weight','normal');
|
87 |
+
$heading_font_size = get_theme_mod('h' . $i . '_font_size',$j);
|
88 |
+
$heading_line_height = get_theme_mod('h' . $i . '_line_height','1.2');
|
89 |
+
$heading_text_transform = get_theme_mod('h' . $i . '_text_transform','inherit');
|
90 |
+
|
91 |
+
$output_css .=" h" . $i . "{
|
92 |
+
font-style: " .esc_attr($heading_font_weight). ";
|
93 |
+
text-transform: " .esc_attr($heading_text_transform). ";
|
94 |
+
font-size: " .esc_attr($heading_font_size). "px;
|
95 |
+
line-height: " .esc_attr($heading_line_height). ";
|
96 |
+
}\n";
|
97 |
+
}
|
98 |
+
}
|
99 |
+
wp_add_inline_style( 'hantus-style', $output_css );
|
100 |
+
}
|
101 |
+
endif;
|
102 |
+
add_action( 'wp_enqueue_scripts', 'hantus_customizer_options' );
|
inc/hantus/features/navigation.php
CHANGED
@@ -31,6 +31,11 @@ function hantus_slider_manager_customize_register( $wp_customize ) {
|
|
31 |
'slider',
|
32 |
'hantus_slider_upgrade_to_pro',
|
33 |
'slider_opacity',
|
|
|
|
|
|
|
|
|
|
|
34 |
),
|
35 |
),
|
36 |
),
|
31 |
'slider',
|
32 |
'hantus_slider_upgrade_to_pro',
|
33 |
'slider_opacity',
|
34 |
+
'slider_overlay_enable',
|
35 |
+
'slide_overlay_color',
|
36 |
+
'slide_title_color',
|
37 |
+
'slide_sbtitle_color',
|
38 |
+
'slide_desc_color',
|
39 |
),
|
40 |
),
|
41 |
),
|
inc/hantus/features/section-info.php
CHANGED
@@ -42,7 +42,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
42 |
$wp_customize->add_setting(
|
43 |
'info_first_img_setting' ,
|
44 |
array(
|
45 |
-
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon01.
|
46 |
'capability' => 'edit_theme_options',
|
47 |
'sanitize_callback' => 'hantus_sanitize_url',
|
48 |
)
|
@@ -100,6 +100,44 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
100 |
)
|
101 |
);
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
/*=========================================
|
104 |
Info contents Section second
|
105 |
=========================================*/
|
@@ -108,7 +146,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
108 |
$wp_customize->add_setting(
|
109 |
'info_second_img_setting' ,
|
110 |
array(
|
111 |
-
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon02.
|
112 |
'capability' => 'edit_theme_options',
|
113 |
'sanitize_callback' => 'hantus_sanitize_url',
|
114 |
)
|
@@ -165,6 +203,44 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
165 |
)
|
166 |
);
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
/*=========================================
|
169 |
Info contents Section third
|
170 |
=========================================*/
|
@@ -173,7 +249,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
173 |
$wp_customize->add_setting(
|
174 |
'info_third_img_setting' ,
|
175 |
array(
|
176 |
-
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon03.
|
177 |
'capability' => 'edit_theme_options',
|
178 |
'sanitize_callback' => 'hantus_sanitize_url',
|
179 |
)
|
@@ -230,6 +306,44 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
230 |
)
|
231 |
);
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
}
|
234 |
add_action( 'customize_register', 'hantus_info_setting' );
|
235 |
?>
|
@@ -265,6 +379,8 @@ function hantus_info_customize_register( $wp_customize ) {
|
|
265 |
'info_first_img_setting',
|
266 |
'info_title',
|
267 |
'info_description',
|
|
|
|
|
268 |
),
|
269 |
),
|
270 |
'second' => array(
|
@@ -273,7 +389,9 @@ function hantus_info_customize_register( $wp_customize ) {
|
|
273 |
'controls' => array(
|
274 |
'info_second_img_setting',
|
275 |
'info_title2',
|
276 |
-
'info_description2',
|
|
|
|
|
277 |
),
|
278 |
),
|
279 |
'third' => array(
|
@@ -282,7 +400,9 @@ function hantus_info_customize_register( $wp_customize ) {
|
|
282 |
'controls' => array(
|
283 |
'info_third_img_setting',
|
284 |
'info_title3',
|
285 |
-
'info_description3',
|
|
|
|
|
286 |
),
|
287 |
),
|
288 |
),
|
@@ -301,7 +421,7 @@ function hantus_home_info_section_partials( $wp_customize ){
|
|
301 |
// hide_show_info
|
302 |
$wp_customize->selective_refresh->add_partial(
|
303 |
'hide_show_info', array(
|
304 |
-
'selector' => '#
|
305 |
'container_inclusive' => true,
|
306 |
'render_callback' => 'info_setting',
|
307 |
'fallback_refresh' => true,
|
@@ -310,28 +430,28 @@ function hantus_home_info_section_partials( $wp_customize ){
|
|
310 |
|
311 |
//info section first
|
312 |
$wp_customize->selective_refresh->add_partial( 'info_title', array(
|
313 |
-
'selector' => '#
|
314 |
'settings' => 'info_title',
|
315 |
'render_callback' => 'info_section_title_render_callback',
|
316 |
|
317 |
) );
|
318 |
|
319 |
$wp_customize->selective_refresh->add_partial( 'info_first_img_setting', array(
|
320 |
-
'selector' => '#
|
321 |
'settings' => 'info_first_img_setting',
|
322 |
'render_callback' => 'home_service_section_img_render_callback',
|
323 |
|
324 |
) );
|
325 |
|
326 |
$wp_customize->selective_refresh->add_partial( 'info_description', array(
|
327 |
-
'selector' => '#
|
328 |
'settings' => 'info_description',
|
329 |
'render_callback' => 'home_service_section_description_render_callback',
|
330 |
|
331 |
) );
|
332 |
// info second
|
333 |
$wp_customize->selective_refresh->add_partial( 'info_title2', array(
|
334 |
-
'selector' => '#
|
335 |
'settings' => 'info_title2',
|
336 |
'render_callback' => 'info_second_title_render_callback',
|
337 |
|
@@ -345,14 +465,14 @@ function hantus_home_info_section_partials( $wp_customize ){
|
|
345 |
) );
|
346 |
|
347 |
$wp_customize->selective_refresh->add_partial( 'info_description2', array(
|
348 |
-
'selector' => '#
|
349 |
'settings' => 'info_description2',
|
350 |
'render_callback' => 'info_second_description_render_callback',
|
351 |
|
352 |
) );
|
353 |
// info third
|
354 |
$wp_customize->selective_refresh->add_partial( 'info_title3', array(
|
355 |
-
'selector' => '#
|
356 |
'settings' => 'info_title3',
|
357 |
'render_callback' => 'info_third_title_render_callback',
|
358 |
|
@@ -366,7 +486,7 @@ function hantus_home_info_section_partials( $wp_customize ){
|
|
366 |
) );
|
367 |
|
368 |
$wp_customize->selective_refresh->add_partial( 'info_description3', array(
|
369 |
-
'selector' => '#
|
370 |
'settings' => 'info_description3',
|
371 |
'render_callback' => 'info_third_description_render_callback',
|
372 |
|
42 |
$wp_customize->add_setting(
|
43 |
'info_first_img_setting' ,
|
44 |
array(
|
45 |
+
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon01.jpg',
|
46 |
'capability' => 'edit_theme_options',
|
47 |
'sanitize_callback' => 'hantus_sanitize_url',
|
48 |
)
|
100 |
)
|
101 |
);
|
102 |
|
103 |
+
// info button //
|
104 |
+
$wp_customize->add_setting(
|
105 |
+
'info_btn',
|
106 |
+
array(
|
107 |
+
'default' => __('Read More','hantus'),
|
108 |
+
'capability' => 'edit_theme_options',
|
109 |
+
'sanitize_callback' => 'sanitize_text_field'
|
110 |
+
)
|
111 |
+
);
|
112 |
+
|
113 |
+
$wp_customize->add_control(
|
114 |
+
'info_btn',
|
115 |
+
array(
|
116 |
+
'label' => __('Button Label','hantus'),
|
117 |
+
'section' => 'info_setting',
|
118 |
+
'type' => 'text',
|
119 |
+
)
|
120 |
+
);
|
121 |
+
|
122 |
+
// info link //
|
123 |
+
$wp_customize->add_setting(
|
124 |
+
'info_link',
|
125 |
+
array(
|
126 |
+
'default' => __('#','hantus'),
|
127 |
+
'capability' => 'edit_theme_options',
|
128 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
129 |
+
)
|
130 |
+
);
|
131 |
+
|
132 |
+
$wp_customize->add_control(
|
133 |
+
'info_link',
|
134 |
+
array(
|
135 |
+
'label' => __('Button Link','hantus'),
|
136 |
+
'section' => 'info_setting',
|
137 |
+
'type' => 'text',
|
138 |
+
)
|
139 |
+
);
|
140 |
+
|
141 |
/*=========================================
|
142 |
Info contents Section second
|
143 |
=========================================*/
|
146 |
$wp_customize->add_setting(
|
147 |
'info_second_img_setting' ,
|
148 |
array(
|
149 |
+
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon02.jpg',
|
150 |
'capability' => 'edit_theme_options',
|
151 |
'sanitize_callback' => 'hantus_sanitize_url',
|
152 |
)
|
203 |
)
|
204 |
);
|
205 |
|
206 |
+
// info button //
|
207 |
+
$wp_customize->add_setting(
|
208 |
+
'info_btn2',
|
209 |
+
array(
|
210 |
+
'default' => __('Read More','hantus'),
|
211 |
+
'capability' => 'edit_theme_options',
|
212 |
+
'sanitize_callback' => 'sanitize_text_field'
|
213 |
+
)
|
214 |
+
);
|
215 |
+
|
216 |
+
$wp_customize->add_control(
|
217 |
+
'info_btn2',
|
218 |
+
array(
|
219 |
+
'label' => __('Button Label','hantus'),
|
220 |
+
'section' => 'info_setting',
|
221 |
+
'type' => 'text',
|
222 |
+
)
|
223 |
+
);
|
224 |
+
|
225 |
+
// info link //
|
226 |
+
$wp_customize->add_setting(
|
227 |
+
'info_link2',
|
228 |
+
array(
|
229 |
+
'default' => __('#','hantus'),
|
230 |
+
'capability' => 'edit_theme_options',
|
231 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
232 |
+
)
|
233 |
+
);
|
234 |
+
|
235 |
+
$wp_customize->add_control(
|
236 |
+
'info_link2',
|
237 |
+
array(
|
238 |
+
'label' => __('Button Link','hantus'),
|
239 |
+
'section' => 'info_setting',
|
240 |
+
'type' => 'text',
|
241 |
+
)
|
242 |
+
);
|
243 |
+
|
244 |
/*=========================================
|
245 |
Info contents Section third
|
246 |
=========================================*/
|
249 |
$wp_customize->add_setting(
|
250 |
'info_third_img_setting' ,
|
251 |
array(
|
252 |
+
'default' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/icons/icon03.jpg',
|
253 |
'capability' => 'edit_theme_options',
|
254 |
'sanitize_callback' => 'hantus_sanitize_url',
|
255 |
)
|
306 |
)
|
307 |
);
|
308 |
|
309 |
+
// info button //
|
310 |
+
$wp_customize->add_setting(
|
311 |
+
'info_btn3',
|
312 |
+
array(
|
313 |
+
'default' => __('Read More','hantus'),
|
314 |
+
'capability' => 'edit_theme_options',
|
315 |
+
'sanitize_callback' => 'sanitize_text_field'
|
316 |
+
)
|
317 |
+
);
|
318 |
+
|
319 |
+
$wp_customize->add_control(
|
320 |
+
'info_btn3',
|
321 |
+
array(
|
322 |
+
'label' => __('Button Label','hantus'),
|
323 |
+
'section' => 'info_setting',
|
324 |
+
'type' => 'text',
|
325 |
+
)
|
326 |
+
);
|
327 |
+
|
328 |
+
// info link //
|
329 |
+
$wp_customize->add_setting(
|
330 |
+
'info_link3',
|
331 |
+
array(
|
332 |
+
'default' => __('#','hantus'),
|
333 |
+
'capability' => 'edit_theme_options',
|
334 |
+
'sanitize_callback' => 'hantus_sanitize_url',
|
335 |
+
)
|
336 |
+
);
|
337 |
+
|
338 |
+
$wp_customize->add_control(
|
339 |
+
'info_link3',
|
340 |
+
array(
|
341 |
+
'label' => __('Button Link','hantus'),
|
342 |
+
'section' => 'info_setting',
|
343 |
+
'type' => 'text',
|
344 |
+
)
|
345 |
+
);
|
346 |
+
|
347 |
}
|
348 |
add_action( 'customize_register', 'hantus_info_setting' );
|
349 |
?>
|
379 |
'info_first_img_setting',
|
380 |
'info_title',
|
381 |
'info_description',
|
382 |
+
'info_btn',
|
383 |
+
'info_link',
|
384 |
),
|
385 |
),
|
386 |
'second' => array(
|
389 |
'controls' => array(
|
390 |
'info_second_img_setting',
|
391 |
'info_title2',
|
392 |
+
'info_description2',
|
393 |
+
'info_btn2',
|
394 |
+
'info_link2',
|
395 |
),
|
396 |
),
|
397 |
'third' => array(
|
400 |
'controls' => array(
|
401 |
'info_third_img_setting',
|
402 |
'info_title3',
|
403 |
+
'info_description3',
|
404 |
+
'info_btn3',
|
405 |
+
'info_link3',
|
406 |
),
|
407 |
),
|
408 |
),
|
421 |
// hide_show_info
|
422 |
$wp_customize->selective_refresh->add_partial(
|
423 |
'hide_show_info', array(
|
424 |
+
'selector' => '#contact2',
|
425 |
'container_inclusive' => true,
|
426 |
'render_callback' => 'info_setting',
|
427 |
'fallback_refresh' => true,
|
430 |
|
431 |
//info section first
|
432 |
$wp_customize->selective_refresh->add_partial( 'info_title', array(
|
433 |
+
'selector' => '#contact2 .info-first h4',
|
434 |
'settings' => 'info_title',
|
435 |
'render_callback' => 'info_section_title_render_callback',
|
436 |
|
437 |
) );
|
438 |
|
439 |
$wp_customize->selective_refresh->add_partial( 'info_first_img_setting', array(
|
440 |
+
'selector' => '#contact2 .info-first img',
|
441 |
'settings' => 'info_first_img_setting',
|
442 |
'render_callback' => 'home_service_section_img_render_callback',
|
443 |
|
444 |
) );
|
445 |
|
446 |
$wp_customize->selective_refresh->add_partial( 'info_description', array(
|
447 |
+
'selector' => '#contact2 .info-first p',
|
448 |
'settings' => 'info_description',
|
449 |
'render_callback' => 'home_service_section_description_render_callback',
|
450 |
|
451 |
) );
|
452 |
// info second
|
453 |
$wp_customize->selective_refresh->add_partial( 'info_title2', array(
|
454 |
+
'selector' => '#contact2 .info-second h4',
|
455 |
'settings' => 'info_title2',
|
456 |
'render_callback' => 'info_second_title_render_callback',
|
457 |
|
465 |
) );
|
466 |
|
467 |
$wp_customize->selective_refresh->add_partial( 'info_description2', array(
|
468 |
+
'selector' => '#contact2 .info-second p',
|
469 |
'settings' => 'info_description2',
|
470 |
'render_callback' => 'info_second_description_render_callback',
|
471 |
|
472 |
) );
|
473 |
// info third
|
474 |
$wp_customize->selective_refresh->add_partial( 'info_title3', array(
|
475 |
+
'selector' => '#contact2 .info-third h4',
|
476 |
'settings' => 'info_title3',
|
477 |
'render_callback' => 'info_third_title_render_callback',
|
478 |
|
486 |
) );
|
487 |
|
488 |
$wp_customize->selective_refresh->add_partial( 'info_description3', array(
|
489 |
+
'selector' => '#contact2 .info-third p',
|
490 |
'settings' => 'info_description3',
|
491 |
'render_callback' => 'info_third_description_render_callback',
|
492 |
|
inc/hantus/features/section-service.php
CHANGED
@@ -94,28 +94,40 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
94 |
array(
|
95 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service01.png',
|
96 |
'title' => esc_html__( 'Oil Massage', 'hantus' ),
|
|
|
97 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
|
|
|
|
98 |
'id' => 'customizer_repeater_service_001',
|
99 |
|
100 |
),
|
101 |
array(
|
102 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service02.png',
|
103 |
'title' => esc_html__( 'Skin Care', 'hantus' ),
|
|
|
104 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
|
|
|
|
105 |
'id' => 'customizer_repeater_service_002',
|
106 |
|
107 |
),
|
108 |
array(
|
109 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service03.png',
|
110 |
'title' => esc_html__( 'Natural Relaxation', 'hantus' ),
|
|
|
111 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
|
|
|
|
112 |
'id' => 'customizer_repeater_service_003',
|
113 |
|
114 |
),
|
115 |
array(
|
116 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service04.png',
|
117 |
'title' => esc_html__( 'Nails Design', 'hantus' ),
|
|
|
118 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
|
|
|
|
119 |
'id' => 'customizer_repeater_service_004',
|
120 |
|
121 |
),
|
@@ -135,7 +147,10 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
135 |
'priority' => 1,
|
136 |
'customizer_repeater_image_control' => true,
|
137 |
'customizer_repeater_title_control' => true,
|
|
|
138 |
'customizer_repeater_text_control' => true,
|
|
|
|
|
139 |
)
|
140 |
)
|
141 |
);
|
94 |
array(
|
95 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service01.png',
|
96 |
'title' => esc_html__( 'Oil Massage', 'hantus' ),
|
97 |
+
'subtitle' => esc_html__( '$57.99', 'hantus' ),
|
98 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
99 |
+
'text2' => esc_html__( 'Book now', 'hantus' ),
|
100 |
+
'link' => esc_html__( '#', 'hantus' ),
|
101 |
'id' => 'customizer_repeater_service_001',
|
102 |
|
103 |
),
|
104 |
array(
|
105 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service02.png',
|
106 |
'title' => esc_html__( 'Skin Care', 'hantus' ),
|
107 |
+
'subtitle' => esc_html__( '$57.99', 'hantus' ),
|
108 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
109 |
+
'text2' => esc_html__( 'Book now', 'hantus' ),
|
110 |
+
'link' => esc_html__( '#', 'hantus' ),
|
111 |
'id' => 'customizer_repeater_service_002',
|
112 |
|
113 |
),
|
114 |
array(
|
115 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service03.png',
|
116 |
'title' => esc_html__( 'Natural Relaxation', 'hantus' ),
|
117 |
+
'subtitle' => esc_html__( '$57.99', 'hantus' ),
|
118 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
119 |
+
'text2' => esc_html__( 'Book now', 'hantus' ),
|
120 |
+
'link' => esc_html__( '#', 'hantus' ),
|
121 |
'id' => 'customizer_repeater_service_003',
|
122 |
|
123 |
),
|
124 |
array(
|
125 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service04.png',
|
126 |
'title' => esc_html__( 'Nails Design', 'hantus' ),
|
127 |
+
'subtitle' => esc_html__( '$57.99', 'hantus' ),
|
128 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
129 |
+
'text2' => esc_html__( 'Book now', 'hantus' ),
|
130 |
+
'link' => esc_html__( '#', 'hantus' ),
|
131 |
'id' => 'customizer_repeater_service_004',
|
132 |
|
133 |
),
|
147 |
'priority' => 1,
|
148 |
'customizer_repeater_image_control' => true,
|
149 |
'customizer_repeater_title_control' => true,
|
150 |
+
'customizer_repeater_subtitle_control' => true,
|
151 |
'customizer_repeater_text_control' => true,
|
152 |
+
'customizer_repeater_text2_control'=> true,
|
153 |
+
'customizer_repeater_link_control' => true,
|
154 |
)
|
155 |
)
|
156 |
);
|
inc/hantus/features/section-slider.php
CHANGED
@@ -39,7 +39,9 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
39 |
'default' => json_encode( array(
|
40 |
|
41 |
/*Repeater's first item*/
|
42 |
-
array("image_url" => CLEVERFOX_PLUGIN_URL.'inc/hantus/images/slider/
|
|
|
|
|
43 |
) )
|
44 |
)
|
45 |
);
|
@@ -48,10 +50,10 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
48 |
new Hantus_Repeater( $wp_customize,
|
49 |
'slider',
|
50 |
array(
|
51 |
-
'label' => esc_html__('Slide','hantus
|
52 |
'section' => 'slider_setting',
|
53 |
-
'add_field_label' => esc_html__( 'Add New Slider', 'hantus
|
54 |
-
'item_name' => esc_html__( 'Slider', 'hantus
|
55 |
'priority' => 2,
|
56 |
|
57 |
'customizer_repeater_title_control' => true,
|
@@ -59,7 +61,8 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
59 |
'customizer_repeater_text_control' => true,
|
60 |
'customizer_repeater_text2_control'=> true,
|
61 |
'customizer_repeater_link_control' => true,
|
62 |
-
'customizer_repeater_image_control' => true,
|
|
|
63 |
)
|
64 |
)
|
65 |
);
|
@@ -111,6 +114,106 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
111 |
),
|
112 |
) )
|
113 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
add_action( 'customize_register', 'hantus_slider_setting' );
|
116 |
endif;
|
39 |
'default' => json_encode( array(
|
40 |
|
41 |
/*Repeater's first item*/
|
42 |
+
array("image_url" => CLEVERFOX_PLUGIN_URL.'inc/hantus/images/slider/slider01.jpg' ,"link" => "#", "title" => "Welcome To Hantus Spa","subtitle" => "Beauty & Spa Wellness", "text" => "The Spa at Sun Valley is a serene oasis amid all the exciting activities our iconic valley has delivered for decades.", "text2" => "Make an Appoinment","slide_align" => "left","id" => "customizer_repeater_000101" ),
|
43 |
+
array("image_url" => CLEVERFOX_PLUGIN_URL.'inc/hantus/images/slider/slider02.jpg' ,"link" => "#", "title" => "Welcome To Hantus Spa","subtitle" => "Beauty & Spa Wellness", "text" => "The Spa at Sun Valley is a serene oasis amid all the exciting activities our iconic valley has delivered for decades.", "text2" => "Make an Appoinment","slide_align" => "center","id" => "customizer_repeater_000102" ),
|
44 |
+
array("image_url" => CLEVERFOX_PLUGIN_URL.'inc/hantus/images/slider/slider03.jpg' ,"link" => "#", "title" => "Welcome To Hantus Spa","subtitle" => "Beauty & Spa Wellness", "text" => "The Spa at Sun Valley is a serene oasis amid all the exciting activities our iconic valley has delivered for decades.", "text2" => "Make an Appoinment","slide_align" => "right","id" => "customizer_repeater_000103" ),
|
45 |
) )
|
46 |
)
|
47 |
);
|
50 |
new Hantus_Repeater( $wp_customize,
|
51 |
'slider',
|
52 |
array(
|
53 |
+
'label' => esc_html__('Slide','hantus'),
|
54 |
'section' => 'slider_setting',
|
55 |
+
'add_field_label' => esc_html__( 'Add New Slider', 'hantus' ),
|
56 |
+
'item_name' => esc_html__( 'Slider', 'hantus' ),
|
57 |
'priority' => 2,
|
58 |
|
59 |
'customizer_repeater_title_control' => true,
|
61 |
'customizer_repeater_text_control' => true,
|
62 |
'customizer_repeater_text2_control'=> true,
|
63 |
'customizer_repeater_link_control' => true,
|
64 |
+
'customizer_repeater_image_control' => true,
|
65 |
+
'customizer_repeater_slide_align' => true,
|
66 |
)
|
67 |
)
|
68 |
);
|
114 |
),
|
115 |
) )
|
116 |
);
|
117 |
+
|
118 |
+
//Overlay Enable //
|
119 |
+
if ( class_exists( 'Hantus_Customizer_Toggle_Control' ) ) {
|
120 |
+
$wp_customize->add_setting(
|
121 |
+
'slider_overlay_enable' ,
|
122 |
+
array(
|
123 |
+
'default' => 0,
|
124 |
+
'capability' => 'edit_theme_options',
|
125 |
+
)
|
126 |
+
);
|
127 |
+
|
128 |
+
$wp_customize->add_control( new Hantus_Customizer_Toggle_Control( $wp_customize,
|
129 |
+
'slider_overlay_enable',
|
130 |
+
array(
|
131 |
+
'label' => esc_html__( 'Overlay Enable', 'hantus' ),
|
132 |
+
'section' => 'slider_setting',
|
133 |
+
'type' => 'ios', // light, ios, flat
|
134 |
+
)
|
135 |
+
));
|
136 |
+
}
|
137 |
+
|
138 |
+
// Overlay Color
|
139 |
+
$wp_customize->add_setting(
|
140 |
+
'slide_overlay_color',
|
141 |
+
array(
|
142 |
+
'capability' => 'edit_theme_options',
|
143 |
+
'sanitize_callback' => 'sanitize_text_field',
|
144 |
+
'default' => '#fff'
|
145 |
+
));
|
146 |
+
|
147 |
+
$wp_customize->add_control(
|
148 |
+
new WP_Customize_Color_Control
|
149 |
+
($wp_customize,
|
150 |
+
'slide_overlay_color',
|
151 |
+
array(
|
152 |
+
'label' => __( 'Overlay Color', 'hantus' ),
|
153 |
+
'section' => 'slider_setting'
|
154 |
+
)
|
155 |
+
)
|
156 |
+
);
|
157 |
+
|
158 |
+
// Title Color
|
159 |
+
$wp_customize->add_setting(
|
160 |
+
'slide_title_color',
|
161 |
+
array(
|
162 |
+
'capability' => 'edit_theme_options',
|
163 |
+
'sanitize_callback' => 'sanitize_text_field',
|
164 |
+
'default' => '#2c3145'
|
165 |
+
));
|
166 |
+
|
167 |
+
$wp_customize->add_control(
|
168 |
+
new WP_Customize_Color_Control
|
169 |
+
($wp_customize,
|
170 |
+
'slide_title_color',
|
171 |
+
array(
|
172 |
+
'label' => __( 'Title Color', 'hantus' ),
|
173 |
+
'section' => 'slider_setting'
|
174 |
+
)
|
175 |
+
)
|
176 |
+
);
|
177 |
+
|
178 |
+
// Subtitle Color
|
179 |
+
$wp_customize->add_setting(
|
180 |
+
'slide_sbtitle_color',
|
181 |
+
array(
|
182 |
+
'capability' => 'edit_theme_options',
|
183 |
+
'sanitize_callback' => 'sanitize_text_field',
|
184 |
+
'default' => '#f22853'
|
185 |
+
));
|
186 |
+
|
187 |
+
$wp_customize->add_control(
|
188 |
+
new WP_Customize_Color_Control
|
189 |
+
($wp_customize,
|
190 |
+
'slide_sbtitle_color',
|
191 |
+
array(
|
192 |
+
'label' => __( 'Subtitle Color', 'hantus' ),
|
193 |
+
'section' => 'slider_setting'
|
194 |
+
)
|
195 |
+
)
|
196 |
+
);
|
197 |
+
|
198 |
+
// Description Color
|
199 |
+
$wp_customize->add_setting(
|
200 |
+
'slide_desc_color',
|
201 |
+
array(
|
202 |
+
'capability' => 'edit_theme_options',
|
203 |
+
'sanitize_callback' => 'sanitize_text_field',
|
204 |
+
'default' => '#5e6271'
|
205 |
+
));
|
206 |
+
|
207 |
+
$wp_customize->add_control(
|
208 |
+
new WP_Customize_Color_Control
|
209 |
+
($wp_customize,
|
210 |
+
'slide_desc_color',
|
211 |
+
array(
|
212 |
+
'label' => __( 'Dscription Color', 'hantus' ),
|
213 |
+
'section' => 'slider_setting'
|
214 |
+
)
|
215 |
+
)
|
216 |
+
);
|
217 |
}
|
218 |
add_action( 'customize_register', 'hantus_slider_setting' );
|
219 |
endif;
|
inc/hantus/features/section-typography.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
$wp_customize->add_panel( 'hantus_typography_setting', array(
|
4 |
-
'priority' =>
|
5 |
'capability' => 'edit_theme_options',
|
6 |
-
'title' => __('Typography','hantus
|
7 |
) );
|
8 |
|
9 |
// Typography Hide/ Show Setting //
|
@@ -11,46 +11,44 @@ $wp_customize->add_panel( 'hantus_typography_setting', array(
|
|
11 |
$wp_customize->add_section(
|
12 |
'typography_setting' ,
|
13 |
array(
|
14 |
-
'title' => __('Settings','hantus
|
15 |
'panel' => 'hantus_typography_setting',
|
16 |
'priority' => 1,
|
17 |
) );
|
18 |
-
if ( class_exists( 'Hantus_Customizer_Toggle_Control' ) ) {
|
19 |
-
$wp_customize->add_setting(
|
20 |
-
'hide_show_typography' ,
|
21 |
-
array(
|
22 |
-
'default' => 0,
|
23 |
-
'sanitize_callback' => 'sanitize_text_field',
|
24 |
-
'capability' => 'edit_theme_options',
|
25 |
-
)
|
26 |
-
);
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
$font_size = array();
|
39 |
for($i=9; $i<=100; $i++)
|
40 |
{
|
41 |
$font_size[$i] = $i;
|
42 |
}
|
43 |
|
44 |
-
$
|
45 |
-
|
46 |
-
|
47 |
-
$font_transform = array('lowercase'=>'Lowercase','uppercase'=>'Uppercase','capitalize'=>'Capitalize');
|
48 |
$font_weight = array('normal'=>'normal', 'italic'=>'Italic','oblique'=>'oblique');
|
49 |
// General typography section
|
50 |
$wp_customize->add_section(
|
51 |
'Body_typography' ,
|
52 |
array(
|
53 |
-
'title' => __('Body','hantus
|
54 |
'panel' => 'hantus_typography_setting',
|
55 |
'priority' => 2,
|
56 |
) );
|
@@ -60,25 +58,25 @@ $wp_customize->add_section(
|
|
60 |
$wp_customize->add_setting(
|
61 |
'body_typography_font_weight',
|
62 |
array(
|
63 |
-
'default' => __('normal','hantus
|
64 |
'capability' => 'edit_theme_options',
|
65 |
'sanitize_callback' => 'sanitize_text_field',
|
66 |
)
|
67 |
);
|
68 |
$wp_customize->add_control(
|
69 |
'body_typography_font_weight', array(
|
70 |
-
'label' => __('
|
71 |
'section' => 'Body_typography',
|
72 |
'setting' => 'body_typography_font_weight',
|
73 |
'choices'=>$font_weight,
|
74 |
-
'type'
|
75 |
)
|
76 |
);
|
77 |
// Body font size//
|
78 |
$wp_customize->add_setting(
|
79 |
'body_font_size' ,
|
80 |
array(
|
81 |
-
'default' => __( '14','hantus
|
82 |
'capability' => 'edit_theme_options',
|
83 |
'sanitize_callback' => 'sanitize_text_field',
|
84 |
|
@@ -90,90 +88,35 @@ $wp_customize->add_section(
|
|
90 |
array(
|
91 |
'section' => 'Body_typography',
|
92 |
'settings' => 'body_font_size',
|
93 |
-
'label' => __( 'Font Size','hantus
|
94 |
'input_attrs' => array(
|
95 |
'min' => 10,
|
96 |
-
'max' =>
|
97 |
-
'step' => 1,
|
98 |
-
//'suffix' => 'px', //optional suffix
|
99 |
-
),
|
100 |
-
) )
|
101 |
-
);
|
102 |
-
|
103 |
-
// paragraph typography
|
104 |
-
|
105 |
-
$wp_customize->add_section(
|
106 |
-
'paragraph_typography' ,
|
107 |
-
array(
|
108 |
-
'title' => __('Paragraph','hantus-pro'),
|
109 |
-
'panel' => 'hantus_typography_setting',
|
110 |
-
'priority' => 2,
|
111 |
-
) );
|
112 |
-
//paragraph font weight
|
113 |
-
|
114 |
-
$wp_customize->add_setting(
|
115 |
-
'para_font_weight',
|
116 |
-
array(
|
117 |
-
'default' => 'normal',
|
118 |
-
'capability' => 'edit_theme_options',
|
119 |
-
'sanitize_callback' => 'sanitize_text_field',
|
120 |
-
)
|
121 |
-
);
|
122 |
-
$wp_customize->add_control(
|
123 |
-
'para_font_weight', array(
|
124 |
-
'label' => __('Font Style','hantus-pro'),
|
125 |
-
'section' => 'paragraph_typography',
|
126 |
-
'setting' => 'para_font_weight',
|
127 |
-
'choices'=>$font_weight,
|
128 |
-
'type' => 'select',
|
129 |
-
)
|
130 |
-
);
|
131 |
-
|
132 |
-
// paragraph font size//
|
133 |
-
$wp_customize->add_setting(
|
134 |
-
'paragraph_font_size' ,
|
135 |
-
array(
|
136 |
-
'default' => __( '16','hantus-pro' ),
|
137 |
-
'capability' => 'edit_theme_options',
|
138 |
-
'sanitize_callback' => 'sanitize_text_field',
|
139 |
-
)
|
140 |
-
);
|
141 |
-
|
142 |
-
$wp_customize->add_control(
|
143 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'paragraph_font_size',
|
144 |
-
array(
|
145 |
-
'section' => 'paragraph_typography',
|
146 |
-
'settings' => 'paragraph_font_size',
|
147 |
-
'label' => __( 'Font Size(px)','hantus-pro' ),
|
148 |
-
'input_attrs' => array(
|
149 |
-
'min' => 1,
|
150 |
-
'max' => 30,
|
151 |
'step' => 1,
|
152 |
//'suffix' => 'px', //optional suffix
|
153 |
),
|
154 |
) )
|
155 |
);
|
156 |
|
157 |
-
//
|
158 |
$wp_customize->add_setting(
|
159 |
-
'
|
160 |
array(
|
161 |
-
'default' =>
|
162 |
'capability' => 'edit_theme_options',
|
163 |
-
'sanitize_callback' => 'sanitize_text_field',
|
164 |
)
|
165 |
);
|
166 |
|
167 |
$wp_customize->add_control(
|
168 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, '
|
169 |
array(
|
170 |
-
'section' => '
|
171 |
-
'settings' => '
|
172 |
-
'label' => __( 'Line Height
|
173 |
'input_attrs' => array(
|
174 |
-
'min' =>
|
175 |
-
'max' =>
|
176 |
-
'step' => 1,
|
177 |
//'suffix' => 'px', //optional suffix
|
178 |
),
|
179 |
) )
|
@@ -181,10 +124,12 @@ $wp_customize->add_section(
|
|
181 |
|
182 |
|
183 |
//H1 typography
|
|
|
|
|
184 |
$wp_customize->add_section(
|
185 |
-
'
|
186 |
array(
|
187 |
-
'title' => __('
|
188 |
'panel' => 'hantus_typography_setting',
|
189 |
'priority' => 3,
|
190 |
)
|
@@ -193,7 +138,7 @@ $wp_customize->add_section(
|
|
193 |
//H1 font weight
|
194 |
|
195 |
$wp_customize->add_setting(
|
196 |
-
'
|
197 |
array(
|
198 |
'default' => 'normal',
|
199 |
'capability' => 'edit_theme_options',
|
@@ -201,31 +146,31 @@ $wp_customize->add_section(
|
|
201 |
)
|
202 |
);
|
203 |
$wp_customize->add_control(
|
204 |
-
'
|
205 |
-
'label' => __('Font Style','hantus
|
206 |
-
'section' => '
|
207 |
-
'setting' => '
|
208 |
'choices'=>$font_weight,
|
209 |
-
'type'
|
210 |
)
|
211 |
);
|
212 |
|
213 |
// H1 font size//
|
214 |
$wp_customize->add_setting(
|
215 |
-
'
|
216 |
array(
|
217 |
-
'default' =>
|
218 |
'capability' => 'edit_theme_options',
|
219 |
'sanitize_callback' => 'sanitize_text_field',
|
220 |
)
|
221 |
);
|
222 |
|
223 |
$wp_customize->add_control(
|
224 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, '
|
225 |
array(
|
226 |
-
'section' => '
|
227 |
-
'settings' => '
|
228 |
-
'label' => __( 'Font Size(px)','hantus
|
229 |
'input_attrs' => array(
|
230 |
'min' => 1,
|
231 |
'max' => 50,
|
@@ -237,24 +182,24 @@ $wp_customize->add_section(
|
|
237 |
|
238 |
// paragraph line height//
|
239 |
$wp_customize->add_setting(
|
240 |
-
'
|
241 |
array(
|
242 |
-
'default' =>
|
243 |
'capability' => 'edit_theme_options',
|
244 |
'sanitize_callback' => 'sanitize_text_field',
|
245 |
)
|
246 |
);
|
247 |
|
248 |
$wp_customize->add_control(
|
249 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, '
|
250 |
array(
|
251 |
-
'section' => '
|
252 |
-
'settings' => '
|
253 |
-
'label' => __( 'Line Height
|
254 |
'input_attrs' => array(
|
255 |
-
'min' =>
|
256 |
-
'max' =>
|
257 |
-
'step' => 1,
|
258 |
//'suffix' => 'px', //optional suffix
|
259 |
),
|
260 |
) )
|
@@ -262,244 +207,41 @@ $wp_customize->add_section(
|
|
262 |
//H1 text transform
|
263 |
|
264 |
$wp_customize->add_setting(
|
265 |
-
'
|
266 |
array(
|
267 |
-
'default' => '
|
268 |
'capability' => 'edit_theme_options',
|
269 |
'sanitize_callback' => 'sanitize_text_field',
|
270 |
)
|
271 |
);
|
272 |
|
273 |
$wp_customize->add_control(
|
274 |
-
'
|
275 |
array(
|
276 |
-
'label' => __( 'Text Transform', 'hantus
|
277 |
-
'section' => '
|
278 |
-
'settings' => '
|
279 |
'choices' => $font_transform,
|
280 |
-
'type'
|
281 |
-
)
|
282 |
-
);
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
//H2 typography
|
287 |
-
$wp_customize->add_section(
|
288 |
-
'H2_typography' ,
|
289 |
-
array(
|
290 |
-
'title' => __('H2','hantus-pro'),
|
291 |
-
'panel' => 'hantus_typography_setting',
|
292 |
-
'priority' => 3,
|
293 |
-
)
|
294 |
-
);
|
295 |
-
|
296 |
-
//H2 font weight
|
297 |
-
|
298 |
-
$wp_customize->add_setting(
|
299 |
-
'h2_font_weight',
|
300 |
-
array(
|
301 |
-
'default' => 'normal',
|
302 |
-
'capability' => 'edit_theme_options',
|
303 |
-
'sanitize_callback' => 'sanitize_text_field',
|
304 |
-
)
|
305 |
-
);
|
306 |
-
$wp_customize->add_control(
|
307 |
-
'h2_font_weight', array(
|
308 |
-
'label' => __('Font Style','hantus-pro'),
|
309 |
-
'section' => 'H2_typography',
|
310 |
-
'setting' => 'h2_font_weight',
|
311 |
-
'choices'=>$font_weight,
|
312 |
-
'type' => 'select',
|
313 |
-
)
|
314 |
-
);
|
315 |
-
|
316 |
-
// H2 font size//
|
317 |
-
$wp_customize->add_setting(
|
318 |
-
'h2_font_size' ,
|
319 |
-
array(
|
320 |
-
'default' => __( '32','hantus-pro' ),
|
321 |
-
'capability' => 'edit_theme_options',
|
322 |
-
'sanitize_callback' => 'sanitize_text_field',
|
323 |
-
)
|
324 |
-
);
|
325 |
-
|
326 |
-
$wp_customize->add_control(
|
327 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'h2_font_size',
|
328 |
-
array(
|
329 |
-
'section' => 'H2_typography',
|
330 |
-
'settings' => 'h2_font_size',
|
331 |
-
'label' => __( 'Font Size(px)','hantus-pro' ),
|
332 |
-
'input_attrs' => array(
|
333 |
-
'min' => 1,
|
334 |
-
'max' => 40,
|
335 |
-
'step' => 1,
|
336 |
-
//'suffix' => 'px', //optional suffix
|
337 |
-
),
|
338 |
-
) )
|
339 |
-
);
|
340 |
-
|
341 |
-
// paragraph line height//
|
342 |
-
$wp_customize->add_setting(
|
343 |
-
'h2_line_height' ,
|
344 |
-
array(
|
345 |
-
'default' => '46',
|
346 |
-
'capability' => 'edit_theme_options',
|
347 |
-
'sanitize_callback' => 'sanitize_text_field',
|
348 |
-
)
|
349 |
-
);
|
350 |
-
|
351 |
-
$wp_customize->add_control(
|
352 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'h2_line_height',
|
353 |
-
array(
|
354 |
-
'section' => 'H2_typography',
|
355 |
-
'settings' => 'h2_line_height',
|
356 |
-
'label' => __( 'Line Height(px)','hantus-pro' ),
|
357 |
-
'input_attrs' => array(
|
358 |
-
'min' => 1,
|
359 |
-
'max' => 70,
|
360 |
-
'step' => 1,
|
361 |
-
//'suffix' => 'px', //optional suffix
|
362 |
-
),
|
363 |
-
) )
|
364 |
-
);
|
365 |
-
//H1 text transform
|
366 |
-
|
367 |
-
$wp_customize->add_setting(
|
368 |
-
'h2_text_transform' ,
|
369 |
-
array(
|
370 |
-
'default' => __( 'capitalize', 'hantus-pro' ),
|
371 |
-
'capability' => 'edit_theme_options',
|
372 |
-
'sanitize_callback' => 'sanitize_text_field',
|
373 |
-
)
|
374 |
-
);
|
375 |
-
|
376 |
-
$wp_customize->add_control(
|
377 |
-
'h2_text_transform' ,
|
378 |
-
array(
|
379 |
-
'label' => __( 'Text Transform', 'hantus-pro' ),
|
380 |
-
'section' => 'H2_typography',
|
381 |
-
'settings' => 'h2_text_transform',
|
382 |
-
'choices' => $font_transform,
|
383 |
-
'type' => 'select',
|
384 |
)
|
385 |
);
|
|
|
386 |
|
387 |
-
|
388 |
-
//H3 typography
|
389 |
-
$wp_customize->add_section(
|
390 |
-
'H3_typography' ,
|
391 |
-
array(
|
392 |
-
'title' => __('H3','hantus-pro'),
|
393 |
-
'panel' => 'hantus_typography_setting',
|
394 |
-
'priority' => 3,
|
395 |
-
)
|
396 |
-
);
|
397 |
-
|
398 |
-
//H3 font weight
|
399 |
-
|
400 |
-
$wp_customize->add_setting(
|
401 |
-
'h3_font_weight',
|
402 |
-
array(
|
403 |
-
'default' => 'normal',
|
404 |
-
'capability' => 'edit_theme_options',
|
405 |
-
'sanitize_callback' => 'sanitize_text_field',
|
406 |
-
)
|
407 |
-
);
|
408 |
-
$wp_customize->add_control(
|
409 |
-
'h3_font_weight', array(
|
410 |
-
'label' => __('Font Style','hantus-pro'),
|
411 |
-
'section' => 'H3_typography',
|
412 |
-
'setting' => 'h3_font_weight',
|
413 |
-
'choices'=>$font_weight,
|
414 |
-
'type' => 'select',
|
415 |
-
)
|
416 |
-
);
|
417 |
-
|
418 |
-
// H3 font size//
|
419 |
-
$wp_customize->add_setting(
|
420 |
-
'h3_font_size' ,
|
421 |
-
array(
|
422 |
-
'default' => __( '28','hantus-pro' ),
|
423 |
-
'capability' => 'edit_theme_options',
|
424 |
-
'sanitize_callback' => 'sanitize_text_field',
|
425 |
-
)
|
426 |
-
);
|
427 |
-
|
428 |
-
$wp_customize->add_control(
|
429 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'h3_font_size',
|
430 |
-
array(
|
431 |
-
'section' => 'H3_typography',
|
432 |
-
'settings' => 'h3_font_size',
|
433 |
-
'label' => __( 'Font Size(px)','hantus-pro' ),
|
434 |
-
'input_attrs' => array(
|
435 |
-
'min' => 1,
|
436 |
-
'max' => 40,
|
437 |
-
'step' => 1,
|
438 |
-
//'suffix' => 'px', //optional suffix
|
439 |
-
),
|
440 |
-
) )
|
441 |
-
);
|
442 |
-
|
443 |
-
//h3 line height//
|
444 |
-
$wp_customize->add_setting(
|
445 |
-
'h3_line_height' ,
|
446 |
-
array(
|
447 |
-
'default' => '34',
|
448 |
-
'capability' => 'edit_theme_options',
|
449 |
-
'sanitize_callback' => 'sanitize_text_field',
|
450 |
-
)
|
451 |
-
);
|
452 |
|
453 |
-
|
454 |
-
|
|
|
455 |
array(
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
'min' => 1,
|
461 |
-
'max' => 50,
|
462 |
-
'step' => 1,
|
463 |
-
//'suffix' => 'px', //optional suffix
|
464 |
-
),
|
465 |
-
) )
|
466 |
-
);
|
467 |
-
//H3 text transform
|
468 |
-
|
469 |
-
$wp_customize->add_setting(
|
470 |
-
'h3_text_transform' ,
|
471 |
-
array(
|
472 |
-
'default' => __( 'capitalize','hantus-pro' ),
|
473 |
-
'capability' => 'edit_theme_options',
|
474 |
-
'sanitize_callback' => 'sanitize_text_field',
|
475 |
-
)
|
476 |
-
);
|
477 |
|
478 |
-
|
479 |
-
|
480 |
-
array(
|
481 |
-
'label' => __( 'Text Transform', 'hantus-pro' ),
|
482 |
-
'section' => 'H3_typography',
|
483 |
-
'settings' => 'h3_text_transform',
|
484 |
-
'choices' => $font_transform,
|
485 |
-
'type' => 'select',
|
486 |
-
)
|
487 |
-
);
|
488 |
-
|
489 |
-
//H4 typography
|
490 |
-
$wp_customize->add_section(
|
491 |
-
'H4_typography' ,
|
492 |
-
array(
|
493 |
-
'title' => __('H4','hantus-pro'),
|
494 |
-
'panel' => 'hantus_typography_setting',
|
495 |
-
'priority' => 3,
|
496 |
-
)
|
497 |
-
);
|
498 |
-
|
499 |
-
//H4 font weight
|
500 |
|
501 |
$wp_customize->add_setting(
|
502 |
-
'
|
503 |
array(
|
504 |
'default' => 'normal',
|
505 |
'capability' => 'edit_theme_options',
|
@@ -507,101 +249,99 @@ $wp_customize->add_section(
|
|
507 |
)
|
508 |
);
|
509 |
$wp_customize->add_control(
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
|
|
518 |
|
519 |
-
//
|
520 |
$wp_customize->add_setting(
|
521 |
-
'
|
522 |
array(
|
523 |
-
'default' =>
|
524 |
'capability' => 'edit_theme_options',
|
525 |
'sanitize_callback' => 'sanitize_text_field',
|
526 |
)
|
527 |
);
|
528 |
|
529 |
$wp_customize->add_control(
|
530 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, '
|
531 |
array(
|
532 |
-
'section' => '
|
533 |
-
'settings' => '
|
534 |
-
'label' => __( 'Font Size(px)','hantus
|
535 |
'input_attrs' => array(
|
536 |
'min' => 1,
|
537 |
-
'max' =>
|
538 |
'step' => 1,
|
539 |
//'suffix' => 'px', //optional suffix
|
540 |
),
|
541 |
) )
|
542 |
);
|
543 |
|
544 |
-
//
|
545 |
$wp_customize->add_setting(
|
546 |
-
'
|
547 |
array(
|
548 |
-
'default' =>
|
549 |
'capability' => 'edit_theme_options',
|
550 |
'sanitize_callback' => 'sanitize_text_field',
|
551 |
)
|
552 |
);
|
553 |
|
554 |
$wp_customize->add_control(
|
555 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, '
|
556 |
array(
|
557 |
-
'section' => '
|
558 |
-
'settings' => '
|
559 |
-
'label' => __( 'Line Height
|
560 |
'input_attrs' => array(
|
561 |
-
'min' =>
|
562 |
-
'max' =>
|
563 |
-
'step' => 1,
|
564 |
//'suffix' => 'px', //optional suffix
|
565 |
),
|
566 |
) )
|
567 |
);
|
568 |
-
//
|
569 |
|
570 |
$wp_customize->add_setting(
|
571 |
-
'
|
572 |
array(
|
573 |
-
'default' => '
|
574 |
'capability' => 'edit_theme_options',
|
575 |
'sanitize_callback' => 'sanitize_text_field',
|
576 |
)
|
577 |
);
|
578 |
|
579 |
$wp_customize->add_control(
|
580 |
-
'
|
581 |
array(
|
582 |
-
'label' => __( 'Text Transform', 'hantus
|
583 |
-
'section' => '
|
584 |
-
'settings' => '
|
585 |
'choices' => $font_transform,
|
586 |
-
'type'
|
587 |
)
|
588 |
);
|
589 |
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
//H5 font weight
|
602 |
-
|
603 |
$wp_customize->add_setting(
|
604 |
-
'
|
605 |
array(
|
606 |
'default' => 'normal',
|
607 |
'capability' => 'edit_theme_options',
|
@@ -609,202 +349,90 @@ $wp_customize->add_section(
|
|
609 |
)
|
610 |
);
|
611 |
$wp_customize->add_control(
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
|
|
620 |
|
621 |
-
//
|
622 |
$wp_customize->add_setting(
|
623 |
-
'
|
624 |
array(
|
625 |
-
'default' => '
|
626 |
'capability' => 'edit_theme_options',
|
627 |
'sanitize_callback' => 'sanitize_text_field',
|
628 |
)
|
629 |
);
|
630 |
|
631 |
$wp_customize->add_control(
|
632 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, '
|
633 |
array(
|
634 |
-
'section' => '
|
635 |
-
'settings' => '
|
636 |
-
'label' => __( 'Font Size(px)','hantus
|
637 |
'input_attrs' => array(
|
638 |
'min' => 1,
|
639 |
-
'max' =>
|
640 |
'step' => 1,
|
641 |
//'suffix' => 'px', //optional suffix
|
642 |
),
|
643 |
) )
|
644 |
);
|
645 |
|
646 |
-
//
|
647 |
$wp_customize->add_setting(
|
648 |
-
'
|
649 |
array(
|
650 |
-
'default' =>
|
651 |
'capability' => 'edit_theme_options',
|
652 |
'sanitize_callback' => 'sanitize_text_field',
|
653 |
)
|
654 |
);
|
655 |
|
656 |
$wp_customize->add_control(
|
657 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, '
|
658 |
array(
|
659 |
-
'section' => '
|
660 |
-
'settings' => '
|
661 |
-
'label' => __( 'Line Height
|
662 |
'input_attrs' => array(
|
663 |
-
'min' =>
|
664 |
-
'max' =>
|
665 |
-
'step' => 1,
|
666 |
//'suffix' => 'px', //optional suffix
|
667 |
),
|
668 |
) )
|
669 |
);
|
670 |
-
//H5 text transform
|
671 |
|
|
|
672 |
$wp_customize->add_setting(
|
673 |
-
'
|
674 |
array(
|
675 |
-
'default' => '
|
676 |
'capability' => 'edit_theme_options',
|
677 |
'sanitize_callback' => 'sanitize_text_field',
|
678 |
)
|
679 |
);
|
680 |
|
681 |
-
$wp_customize->add_control(
|
682 |
-
'h5_text_transform' ,
|
683 |
-
array(
|
684 |
-
'label' => __( 'Text Transform', 'hantus-pro' ),
|
685 |
-
'section' => 'H5_typography',
|
686 |
-
'settings' => 'h5_text_transform',
|
687 |
-
'choices' => $font_transform,
|
688 |
-
'type' => 'select',
|
689 |
-
)
|
690 |
-
);
|
691 |
-
|
692 |
-
|
693 |
-
//H6 typography
|
694 |
-
$wp_customize->add_section(
|
695 |
-
'H6_typography' ,
|
696 |
-
array(
|
697 |
-
'title' => __('H6','hantus-pro'),
|
698 |
-
'panel' => 'hantus_typography_setting',
|
699 |
-
'priority' => 3,
|
700 |
-
)
|
701 |
-
);
|
702 |
-
|
703 |
-
//H5 font weight
|
704 |
-
|
705 |
-
$wp_customize->add_setting(
|
706 |
-
'h6_font_weight',
|
707 |
-
array(
|
708 |
-
'default' => 'normal',
|
709 |
-
'capability' => 'edit_theme_options',
|
710 |
-
'sanitize_callback' => 'sanitize_text_field',
|
711 |
-
)
|
712 |
-
);
|
713 |
$wp_customize->add_control(
|
714 |
-
'
|
715 |
-
'label' => __('Font Style','hantus-pro'),
|
716 |
-
'section' => 'H6_typography',
|
717 |
-
'setting' => 'h6_font_weight',
|
718 |
-
'choices'=>$font_weight,
|
719 |
-
'type' => 'select',
|
720 |
-
)
|
721 |
-
);
|
722 |
-
|
723 |
-
// H6 font size//
|
724 |
-
$wp_customize->add_setting(
|
725 |
-
'h6_font_size' ,
|
726 |
-
array(
|
727 |
-
'default' => '16',
|
728 |
-
'capability' => 'edit_theme_options',
|
729 |
-
'sanitize_callback' => 'sanitize_text_field',
|
730 |
-
)
|
731 |
-
);
|
732 |
-
|
733 |
-
$wp_customize->add_control(
|
734 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'h6_font_size',
|
735 |
array(
|
736 |
-
'
|
737 |
-
'
|
738 |
-
'
|
739 |
-
'
|
740 |
-
|
741 |
-
'max' => 30,
|
742 |
-
'step' => 1,
|
743 |
-
//'suffix' => 'px', //optional suffix
|
744 |
-
),
|
745 |
-
) )
|
746 |
-
);
|
747 |
-
|
748 |
-
//h6 line height//
|
749 |
-
$wp_customize->add_setting(
|
750 |
-
'h6_line_height' ,
|
751 |
-
array(
|
752 |
-
'default' => '24',
|
753 |
-
'capability' => 'edit_theme_options',
|
754 |
-
'sanitize_callback' => 'sanitize_text_field',
|
755 |
)
|
756 |
);
|
757 |
-
|
758 |
-
$wp_customize->add_control(
|
759 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'h6_line_height',
|
760 |
-
array(
|
761 |
-
'section' => 'H6_typography',
|
762 |
-
'settings' => 'h6_line_height',
|
763 |
-
'label' => __( 'Line Height(px)','hantus-pro' ),
|
764 |
-
'input_attrs' => array(
|
765 |
-
'min' => 1,
|
766 |
-
'max' => 70,
|
767 |
-
'step' => 1,
|
768 |
-
//'suffix' => 'px', //optional suffix
|
769 |
-
),
|
770 |
-
) )
|
771 |
-
);
|
772 |
-
//H5 text transform
|
773 |
|
774 |
-
|
775 |
-
'h6_text_transform' ,
|
776 |
-
array(
|
777 |
-
'default' => 'capitalize',
|
778 |
-
'capability' => 'edit_theme_options',
|
779 |
-
'sanitize_callback' => 'sanitize_text_field',
|
780 |
-
)
|
781 |
-
);
|
782 |
-
|
783 |
-
$wp_customize->add_control(
|
784 |
-
'h6_text_transform' ,
|
785 |
-
array(
|
786 |
-
'label' => __( 'Text Transform', 'hantus-pro' ),
|
787 |
-
'section' => 'H6_typography',
|
788 |
-
'settings' => 'h6_text_transform',
|
789 |
-
'choices' => $font_transform,
|
790 |
-
'type' => 'select',
|
791 |
-
)
|
792 |
-
);
|
793 |
-
|
794 |
-
|
795 |
-
// menu typography section
|
796 |
-
$wp_customize->add_section(
|
797 |
-
'menu_typography' ,
|
798 |
-
array(
|
799 |
-
'title' => __('Menus','hantus-pro'),
|
800 |
-
'panel' => 'hantus_typography_setting',
|
801 |
-
'priority' => 2,
|
802 |
-
) );
|
803 |
-
|
804 |
-
|
805 |
-
//menu font weight
|
806 |
$wp_customize->add_setting(
|
807 |
-
'
|
808 |
array(
|
809 |
'default' => 'normal',
|
810 |
'capability' => 'edit_theme_options',
|
@@ -812,163 +440,85 @@ $wp_customize->add_section(
|
|
812 |
)
|
813 |
);
|
814 |
$wp_customize->add_control(
|
815 |
-
'
|
816 |
array(
|
817 |
-
'label' => __('Font Style','hantus
|
818 |
-
'section' => '
|
819 |
-
'setting' => '
|
820 |
'choices'=>$font_weight,
|
821 |
-
'type'
|
822 |
)
|
823 |
);
|
824 |
|
825 |
-
//
|
826 |
$wp_customize->add_setting(
|
827 |
-
'
|
828 |
array(
|
829 |
-
'default' => '
|
830 |
'capability' => 'edit_theme_options',
|
831 |
'sanitize_callback' => 'sanitize_text_field',
|
832 |
)
|
833 |
);
|
834 |
|
835 |
$wp_customize->add_control(
|
836 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, '
|
837 |
array(
|
838 |
-
'section' => '
|
839 |
-
'settings' => '
|
840 |
-
'label' => __( 'Font Size(px)','hantus
|
841 |
'input_attrs' => array(
|
842 |
'min' => 1,
|
843 |
-
'max' =>
|
844 |
'step' => 1,
|
845 |
//'suffix' => 'px', //optional suffix
|
846 |
),
|
847 |
) )
|
848 |
);
|
849 |
|
850 |
-
//
|
851 |
-
|
852 |
-
$wp_customize->add_setting(
|
853 |
-
'menu_text_transform' ,
|
854 |
-
array(
|
855 |
-
'default' => 'capitalize',
|
856 |
-
'capability' => 'edit_theme_options',
|
857 |
-
'sanitize_callback' => 'sanitize_text_field',
|
858 |
-
)
|
859 |
-
);
|
860 |
-
|
861 |
-
$wp_customize->add_control(
|
862 |
-
'menu_text_transform' ,
|
863 |
-
array(
|
864 |
-
'label' => __( 'Text Transform', 'hantus-pro' ),
|
865 |
-
'section' => 'menu_typography',
|
866 |
-
'settings' => 'menu_text_transform',
|
867 |
-
'choices' => $font_transform,
|
868 |
-
'type' => 'select',
|
869 |
-
)
|
870 |
-
);
|
871 |
-
|
872 |
-
// Sections typography section
|
873 |
-
$wp_customize->add_section(
|
874 |
-
'section_typography' ,
|
875 |
-
array(
|
876 |
-
'title' => __('Sections','hantus-pro'),
|
877 |
-
'panel' => 'hantus_typography_setting',
|
878 |
-
'priority' => 2,
|
879 |
-
) );
|
880 |
-
|
881 |
-
//section font weight
|
882 |
-
|
883 |
-
$wp_customize->add_setting(
|
884 |
-
'section_tit_font_weight',
|
885 |
-
array(
|
886 |
-
'default' => 'normal',
|
887 |
-
'capability' => 'edit_theme_options',
|
888 |
-
'sanitize_callback' => 'sanitize_text_field',
|
889 |
-
)
|
890 |
-
);
|
891 |
-
$wp_customize->add_control(
|
892 |
-
'section_tit_font_weight',
|
893 |
-
array(
|
894 |
-
'label' => __(' Title Font Style','hantus-pro'),
|
895 |
-
'section' => 'section_typography',
|
896 |
-
'setting' => 'section_tit_font_weight',
|
897 |
-
'choices'=>$font_weight,
|
898 |
-
'type' => 'select',
|
899 |
-
)
|
900 |
-
);
|
901 |
-
|
902 |
-
// section title font size//
|
903 |
$wp_customize->add_setting(
|
904 |
-
'
|
905 |
array(
|
906 |
-
'default' =>
|
907 |
'capability' => 'edit_theme_options',
|
908 |
'sanitize_callback' => 'sanitize_text_field',
|
909 |
)
|
910 |
);
|
911 |
|
912 |
$wp_customize->add_control(
|
913 |
-
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, '
|
914 |
array(
|
915 |
'section' => 'section_typography',
|
916 |
-
'settings' => '
|
917 |
-
'label' => __( '
|
918 |
'input_attrs' => array(
|
919 |
-
'min' =>
|
920 |
-
'max' =>
|
921 |
-
'step' => 1,
|
922 |
//'suffix' => 'px', //optional suffix
|
923 |
),
|
924 |
) )
|
925 |
);
|
926 |
-
|
927 |
-
//section font weight
|
928 |
-
|
929 |
-
$wp_customize->add_setting(
|
930 |
-
'section_des_font_weight',
|
931 |
-
array(
|
932 |
-
'default' => 'normal',
|
933 |
-
'capability' => 'edit_theme_options',
|
934 |
-
'sanitize_callback' => 'sanitize_text_field',
|
935 |
-
)
|
936 |
-
);
|
937 |
-
$wp_customize->add_control(
|
938 |
-
'section_des_font_weight',
|
939 |
-
array(
|
940 |
-
'label' => __('Description Font Style','hantus-pro'),
|
941 |
-
'section' => 'section_typography',
|
942 |
-
'setting' => 'section_des_font_weight',
|
943 |
-
'choices'=>$font_weight,
|
944 |
-
'type' => 'select',
|
945 |
-
)
|
946 |
-
);
|
947 |
|
948 |
-
//
|
949 |
$wp_customize->add_setting(
|
950 |
-
'
|
951 |
array(
|
952 |
-
'default' => '
|
953 |
'capability' => 'edit_theme_options',
|
954 |
'sanitize_callback' => 'sanitize_text_field',
|
955 |
)
|
956 |
);
|
957 |
|
958 |
-
$wp_customize->add_control(
|
959 |
-
|
960 |
array(
|
961 |
-
'
|
962 |
-
'
|
963 |
-
'
|
964 |
-
'
|
965 |
-
|
966 |
-
|
967 |
-
'step' => 1,
|
968 |
-
//'suffix' => 'px', //optional suffix
|
969 |
-
),
|
970 |
-
) )
|
971 |
);
|
972 |
}
|
973 |
-
add_action( 'customize_register', 'hantus_typography_customizer' );
|
974 |
-
?>
|
1 |
+
<?php function hantus_typography_customizer( $wp_customize ) {
|
2 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
3 |
$wp_customize->add_panel( 'hantus_typography_setting', array(
|
4 |
+
'priority' => 38,
|
5 |
'capability' => 'edit_theme_options',
|
6 |
+
'title' => __('Typography','hantus'),
|
7 |
) );
|
8 |
|
9 |
// Typography Hide/ Show Setting //
|
11 |
$wp_customize->add_section(
|
12 |
'typography_setting' ,
|
13 |
array(
|
14 |
+
'title' => __('Settings','hantus'),
|
15 |
'panel' => 'hantus_typography_setting',
|
16 |
'priority' => 1,
|
17 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
if ( class_exists( 'Hantus_Customizer_Toggle_Control' ) ) {
|
20 |
+
$wp_customize->add_setting(
|
21 |
+
'hide_show_typography' ,
|
22 |
+
array(
|
23 |
+
'default' => 0,
|
24 |
+
'sanitize_callback' => 'sanitize_text_field',
|
25 |
+
'capability' => 'edit_theme_options',
|
26 |
+
)
|
27 |
+
);
|
28 |
+
|
29 |
+
$wp_customize->add_control( new Hantus_Customizer_Toggle_Control( $wp_customize,
|
30 |
+
'hide_show_typography',
|
31 |
+
array(
|
32 |
+
'label' => esc_html__( 'Enable Typography', 'hantus' ),
|
33 |
+
'section' => 'typography_setting',
|
34 |
+
'settings' => 'hide_show_typography',
|
35 |
+
'type' => 'ios', // light, ios, flat
|
36 |
+
)
|
37 |
+
));
|
38 |
+
}
|
39 |
$font_size = array();
|
40 |
for($i=9; $i<=100; $i++)
|
41 |
{
|
42 |
$font_size[$i] = $i;
|
43 |
}
|
44 |
|
45 |
+
$font_transform = array('inherit'=>'Inherit','lowercase'=>'Lowercase','uppercase'=>'Uppercase','capitalize'=>'capitalize');
|
|
|
|
|
|
|
46 |
$font_weight = array('normal'=>'normal', 'italic'=>'Italic','oblique'=>'oblique');
|
47 |
// General typography section
|
48 |
$wp_customize->add_section(
|
49 |
'Body_typography' ,
|
50 |
array(
|
51 |
+
'title' => __('Body','hantus'),
|
52 |
'panel' => 'hantus_typography_setting',
|
53 |
'priority' => 2,
|
54 |
) );
|
58 |
$wp_customize->add_setting(
|
59 |
'body_typography_font_weight',
|
60 |
array(
|
61 |
+
'default' => __('normal','hantus'),
|
62 |
'capability' => 'edit_theme_options',
|
63 |
'sanitize_callback' => 'sanitize_text_field',
|
64 |
)
|
65 |
);
|
66 |
$wp_customize->add_control(
|
67 |
'body_typography_font_weight', array(
|
68 |
+
'label' => __('Font Style','hantus'),
|
69 |
'section' => 'Body_typography',
|
70 |
'setting' => 'body_typography_font_weight',
|
71 |
'choices'=>$font_weight,
|
72 |
+
'type' => 'select',
|
73 |
)
|
74 |
);
|
75 |
// Body font size//
|
76 |
$wp_customize->add_setting(
|
77 |
'body_font_size' ,
|
78 |
array(
|
79 |
+
'default' => __( '14','hantus' ),
|
80 |
'capability' => 'edit_theme_options',
|
81 |
'sanitize_callback' => 'sanitize_text_field',
|
82 |
|
88 |
array(
|
89 |
'section' => 'Body_typography',
|
90 |
'settings' => 'body_font_size',
|
91 |
+
'label' => __( 'Font Size','hantus' ),
|
92 |
'input_attrs' => array(
|
93 |
'min' => 10,
|
94 |
+
'max' => 40,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
'step' => 1,
|
96 |
//'suffix' => 'px', //optional suffix
|
97 |
),
|
98 |
) )
|
99 |
);
|
100 |
|
101 |
+
// Body line height//
|
102 |
$wp_customize->add_setting(
|
103 |
+
'body_line_height' ,
|
104 |
array(
|
105 |
+
'default' => 1.6,
|
106 |
'capability' => 'edit_theme_options',
|
|
|
107 |
)
|
108 |
);
|
109 |
|
110 |
$wp_customize->add_control(
|
111 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'body_line_height',
|
112 |
array(
|
113 |
+
'section' => 'Body_typography',
|
114 |
+
'settings' => 'body_line_height',
|
115 |
+
'label' => __( 'Line Height','hantus' ),
|
116 |
'input_attrs' => array(
|
117 |
+
'min' => 0,
|
118 |
+
'max' => 3,
|
119 |
+
'step' => 0.1,
|
120 |
//'suffix' => 'px', //optional suffix
|
121 |
),
|
122 |
) )
|
124 |
|
125 |
|
126 |
//H1 typography
|
127 |
+
for ( $i = 1; $i <= 6; $i++ ) {
|
128 |
+
if($i == '1'){$j=36;}elseif($i == '2'){$j=32;}elseif($i == '3'){$j=28;}elseif($i == '4'){$j=24;}elseif($i == '5'){$j=20;}else{$j=16;}
|
129 |
$wp_customize->add_section(
|
130 |
+
'H' . $i . '_typography' ,
|
131 |
array(
|
132 |
+
'title' => __('H' . $i .'','hantus'),
|
133 |
'panel' => 'hantus_typography_setting',
|
134 |
'priority' => 3,
|
135 |
)
|
138 |
//H1 font weight
|
139 |
|
140 |
$wp_customize->add_setting(
|
141 |
+
'h' . $i . '_font_weight',
|
142 |
array(
|
143 |
'default' => 'normal',
|
144 |
'capability' => 'edit_theme_options',
|
146 |
)
|
147 |
);
|
148 |
$wp_customize->add_control(
|
149 |
+
'h' . $i . '_font_weight', array(
|
150 |
+
'label' => __('Font Style','hantus'),
|
151 |
+
'section' => 'H' . $i . '_typography',
|
152 |
+
'setting' => 'h' . $i . '_font_weight',
|
153 |
'choices'=>$font_weight,
|
154 |
+
'type' => 'select',
|
155 |
)
|
156 |
);
|
157 |
|
158 |
// H1 font size//
|
159 |
$wp_customize->add_setting(
|
160 |
+
'h' . $i . '_font_size' ,
|
161 |
array(
|
162 |
+
'default' => $j,
|
163 |
'capability' => 'edit_theme_options',
|
164 |
'sanitize_callback' => 'sanitize_text_field',
|
165 |
)
|
166 |
);
|
167 |
|
168 |
$wp_customize->add_control(
|
169 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'h' . $i . '_font_size',
|
170 |
array(
|
171 |
+
'section' => 'H' . $i . '_typography',
|
172 |
+
'settings' => 'h' . $i . '_font_size',
|
173 |
+
'label' => __( 'Font Size(px)','hantus' ),
|
174 |
'input_attrs' => array(
|
175 |
'min' => 1,
|
176 |
'max' => 50,
|
182 |
|
183 |
// paragraph line height//
|
184 |
$wp_customize->add_setting(
|
185 |
+
'h' . $i . '_line_height' ,
|
186 |
array(
|
187 |
+
'default' => 1.2,
|
188 |
'capability' => 'edit_theme_options',
|
189 |
'sanitize_callback' => 'sanitize_text_field',
|
190 |
)
|
191 |
);
|
192 |
|
193 |
$wp_customize->add_control(
|
194 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'h' . $i . '_line_height',
|
195 |
array(
|
196 |
+
'section' => 'H' . $i . '_typography',
|
197 |
+
'settings' => 'h' . $i . '_line_height',
|
198 |
+
'label' => __( 'Line Height','hantus' ),
|
199 |
'input_attrs' => array(
|
200 |
+
'min' => 0,
|
201 |
+
'max' => 3,
|
202 |
+
'step' => 0.1,
|
203 |
//'suffix' => 'px', //optional suffix
|
204 |
),
|
205 |
) )
|
207 |
//H1 text transform
|
208 |
|
209 |
$wp_customize->add_setting(
|
210 |
+
'h' . $i . '_text_transform' ,
|
211 |
array(
|
212 |
+
'default' => 'inherit',
|
213 |
'capability' => 'edit_theme_options',
|
214 |
'sanitize_callback' => 'sanitize_text_field',
|
215 |
)
|
216 |
);
|
217 |
|
218 |
$wp_customize->add_control(
|
219 |
+
'h' . $i . '_text_transform' ,
|
220 |
array(
|
221 |
+
'label' => __( 'Text Transform', 'hantus' ),
|
222 |
+
'section' => 'H' . $i . '_typography',
|
223 |
+
'settings' => 'h' . $i . '_text_transform',
|
224 |
'choices' => $font_transform,
|
225 |
+
'type' => 'select',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
)
|
227 |
);
|
228 |
+
}
|
229 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
|
231 |
+
// menu typography section
|
232 |
+
$wp_customize->add_section(
|
233 |
+
'menu_typography' ,
|
234 |
array(
|
235 |
+
'title' => __('Menus','hantus'),
|
236 |
+
'panel' => 'hantus_typography_setting',
|
237 |
+
'priority' => 2,
|
238 |
+
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
|
240 |
+
|
241 |
+
//menu font weight
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
|
243 |
$wp_customize->add_setting(
|
244 |
+
'menu_font_weight',
|
245 |
array(
|
246 |
'default' => 'normal',
|
247 |
'capability' => 'edit_theme_options',
|
249 |
)
|
250 |
);
|
251 |
$wp_customize->add_control(
|
252 |
+
'menu_font_weight',
|
253 |
+
array(
|
254 |
+
'label' => __('Font Style','hantus'),
|
255 |
+
'section' => 'menu_typography',
|
256 |
+
'setting' => 'menu_font_weight',
|
257 |
+
'choices'=>$font_weight,
|
258 |
+
'type' => 'select',
|
259 |
+
)
|
260 |
+
);
|
261 |
|
262 |
+
// menu font size//
|
263 |
$wp_customize->add_setting(
|
264 |
+
'menu_font_size' ,
|
265 |
array(
|
266 |
+
'default' => '15',
|
267 |
'capability' => 'edit_theme_options',
|
268 |
'sanitize_callback' => 'sanitize_text_field',
|
269 |
)
|
270 |
);
|
271 |
|
272 |
$wp_customize->add_control(
|
273 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'menu_font_size',
|
274 |
array(
|
275 |
+
'section' => 'menu_typography',
|
276 |
+
'settings' => 'menu_font_size',
|
277 |
+
'label' => __( 'Font Size(px)','hantus' ),
|
278 |
'input_attrs' => array(
|
279 |
'min' => 1,
|
280 |
+
'max' => 20,
|
281 |
'step' => 1,
|
282 |
//'suffix' => 'px', //optional suffix
|
283 |
),
|
284 |
) )
|
285 |
);
|
286 |
|
287 |
+
// Menu line height//
|
288 |
$wp_customize->add_setting(
|
289 |
+
'menu_line_height' ,
|
290 |
array(
|
291 |
+
'default' => 1.6,
|
292 |
'capability' => 'edit_theme_options',
|
293 |
'sanitize_callback' => 'sanitize_text_field',
|
294 |
)
|
295 |
);
|
296 |
|
297 |
$wp_customize->add_control(
|
298 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'menu_line_height',
|
299 |
array(
|
300 |
+
'section' => 'menu_typography',
|
301 |
+
'settings' => 'menu_line_height',
|
302 |
+
'label' => __( 'Line Height','hantus' ),
|
303 |
'input_attrs' => array(
|
304 |
+
'min' => 0,
|
305 |
+
'max' => 3,
|
306 |
+
'step' => 0.1,
|
307 |
//'suffix' => 'px', //optional suffix
|
308 |
),
|
309 |
) )
|
310 |
);
|
311 |
+
//menu text transform
|
312 |
|
313 |
$wp_customize->add_setting(
|
314 |
+
'menu_text_transform' ,
|
315 |
array(
|
316 |
+
'default' => 'inherit',
|
317 |
'capability' => 'edit_theme_options',
|
318 |
'sanitize_callback' => 'sanitize_text_field',
|
319 |
)
|
320 |
);
|
321 |
|
322 |
$wp_customize->add_control(
|
323 |
+
'menu_text_transform' ,
|
324 |
array(
|
325 |
+
'label' => __( 'Text Transform', 'hantus' ),
|
326 |
+
'section' => 'menu_typography',
|
327 |
+
'settings' => 'menu_text_transform',
|
328 |
'choices' => $font_transform,
|
329 |
+
'type' => 'select',
|
330 |
)
|
331 |
);
|
332 |
|
333 |
+
// Sections typography section
|
334 |
+
$wp_customize->add_section(
|
335 |
+
'section_typography' ,
|
336 |
+
array(
|
337 |
+
'title' => __('Sections','hantus'),
|
338 |
+
'panel' => 'hantus_typography_setting',
|
339 |
+
'priority' => 2,
|
340 |
+
) );
|
341 |
+
|
342 |
+
//section font weight
|
|
|
|
|
|
|
343 |
$wp_customize->add_setting(
|
344 |
+
'section_tit_font_weight',
|
345 |
array(
|
346 |
'default' => 'normal',
|
347 |
'capability' => 'edit_theme_options',
|
349 |
)
|
350 |
);
|
351 |
$wp_customize->add_control(
|
352 |
+
'section_tit_font_weight',
|
353 |
+
array(
|
354 |
+
'label' => __(' Title Font Style','hantus'),
|
355 |
+
'section' => 'section_typography',
|
356 |
+
'setting' => 'section_tit_font_weight',
|
357 |
+
'choices'=>$font_weight,
|
358 |
+
'type' => 'select',
|
359 |
+
)
|
360 |
+
);
|
361 |
|
362 |
+
// section title font size//
|
363 |
$wp_customize->add_setting(
|
364 |
+
'section_tit_font_size' ,
|
365 |
array(
|
366 |
+
'default' => '36',
|
367 |
'capability' => 'edit_theme_options',
|
368 |
'sanitize_callback' => 'sanitize_text_field',
|
369 |
)
|
370 |
);
|
371 |
|
372 |
$wp_customize->add_control(
|
373 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'section_tit_font_size',
|
374 |
array(
|
375 |
+
'section' => 'section_typography',
|
376 |
+
'settings' => 'section_tit_font_size',
|
377 |
+
'label' => __( 'Title Font Size(px)','hantus' ),
|
378 |
'input_attrs' => array(
|
379 |
'min' => 1,
|
380 |
+
'max' => 100,
|
381 |
'step' => 1,
|
382 |
//'suffix' => 'px', //optional suffix
|
383 |
),
|
384 |
) )
|
385 |
);
|
386 |
|
387 |
+
// Section Title Height//
|
388 |
$wp_customize->add_setting(
|
389 |
+
'section_ttl_line_height' ,
|
390 |
array(
|
391 |
+
'default' => 1.6,
|
392 |
'capability' => 'edit_theme_options',
|
393 |
'sanitize_callback' => 'sanitize_text_field',
|
394 |
)
|
395 |
);
|
396 |
|
397 |
$wp_customize->add_control(
|
398 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'section_ttl_line_height',
|
399 |
array(
|
400 |
+
'section' => 'section_typography',
|
401 |
+
'settings' => 'section_ttl_line_height',
|
402 |
+
'label' => __( 'Title Line Height','hantus' ),
|
403 |
'input_attrs' => array(
|
404 |
+
'min' => 0,
|
405 |
+
'max' => 3,
|
406 |
+
'step' => 0.1,
|
407 |
//'suffix' => 'px', //optional suffix
|
408 |
),
|
409 |
) )
|
410 |
);
|
|
|
411 |
|
412 |
+
//Section Title transform
|
413 |
$wp_customize->add_setting(
|
414 |
+
'sec_ttl_text_transform' ,
|
415 |
array(
|
416 |
+
'default' => 'inherit',
|
417 |
'capability' => 'edit_theme_options',
|
418 |
'sanitize_callback' => 'sanitize_text_field',
|
419 |
)
|
420 |
);
|
421 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
422 |
$wp_customize->add_control(
|
423 |
+
'sec_ttl_text_transform' ,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
424 |
array(
|
425 |
+
'label' => __( 'Text Transform', 'hantus' ),
|
426 |
+
'section' => 'section_typography',
|
427 |
+
'settings' => 'sec_ttl_text_transform',
|
428 |
+
'choices' => $font_transform,
|
429 |
+
'type' => 'select',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
)
|
431 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
|
433 |
+
//section font weight
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
$wp_customize->add_setting(
|
435 |
+
'section_des_font_weight',
|
436 |
array(
|
437 |
'default' => 'normal',
|
438 |
'capability' => 'edit_theme_options',
|
440 |
)
|
441 |
);
|
442 |
$wp_customize->add_control(
|
443 |
+
'section_des_font_weight',
|
444 |
array(
|
445 |
+
'label' => __('Description Font Style','hantus'),
|
446 |
+
'section' => 'section_typography',
|
447 |
+
'setting' => 'section_des_font_weight',
|
448 |
'choices'=>$font_weight,
|
449 |
+
'type' => 'select',
|
450 |
)
|
451 |
);
|
452 |
|
453 |
+
// section title font size//
|
454 |
$wp_customize->add_setting(
|
455 |
+
'section_desc_font_size' ,
|
456 |
array(
|
457 |
+
'default' => '16',
|
458 |
'capability' => 'edit_theme_options',
|
459 |
'sanitize_callback' => 'sanitize_text_field',
|
460 |
)
|
461 |
);
|
462 |
|
463 |
$wp_customize->add_control(
|
464 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'section_desc_font_size',
|
465 |
array(
|
466 |
+
'section' => 'section_typography',
|
467 |
+
'settings' => 'section_desc_font_size',
|
468 |
+
'label' => __( 'Description Font Size(px)','hantus' ),
|
469 |
'input_attrs' => array(
|
470 |
'min' => 1,
|
471 |
+
'max' => 50,
|
472 |
'step' => 1,
|
473 |
//'suffix' => 'px', //optional suffix
|
474 |
),
|
475 |
) )
|
476 |
);
|
477 |
|
478 |
+
// Section Description Height//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
$wp_customize->add_setting(
|
480 |
+
'section_desc_line_height' ,
|
481 |
array(
|
482 |
+
'default' => 1.6,
|
483 |
'capability' => 'edit_theme_options',
|
484 |
'sanitize_callback' => 'sanitize_text_field',
|
485 |
)
|
486 |
);
|
487 |
|
488 |
$wp_customize->add_control(
|
489 |
+
new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'section_desc_line_height',
|
490 |
array(
|
491 |
'section' => 'section_typography',
|
492 |
+
'settings' => 'section_desc_line_height',
|
493 |
+
'label' => __( 'Description Line Height','hantus' ),
|
494 |
'input_attrs' => array(
|
495 |
+
'min' => 0,
|
496 |
+
'max' => 3,
|
497 |
+
'step' => 0.1,
|
498 |
//'suffix' => 'px', //optional suffix
|
499 |
),
|
500 |
) )
|
501 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
502 |
|
503 |
+
//Section Description transform
|
504 |
$wp_customize->add_setting(
|
505 |
+
'sec_desc_text_transform' ,
|
506 |
array(
|
507 |
+
'default' => 'inherit',
|
508 |
'capability' => 'edit_theme_options',
|
509 |
'sanitize_callback' => 'sanitize_text_field',
|
510 |
)
|
511 |
);
|
512 |
|
513 |
+
$wp_customize->add_control(
|
514 |
+
'sec_desc_text_transform' ,
|
515 |
array(
|
516 |
+
'label' => __( 'Text Transform', 'hantus' ),
|
517 |
+
'section' => 'section_typography',
|
518 |
+
'settings' => 'sec_desc_text_transform',
|
519 |
+
'choices' => $font_transform,
|
520 |
+
'type' => 'select',
|
521 |
+
)
|
|
|
|
|
|
|
|
|
522 |
);
|
523 |
}
|
524 |
+
add_action( 'customize_register', 'hantus_typography_customizer' );
|
|
inc/hantus/images/icons/icon01.jpg
ADDED
Binary file
|
inc/hantus/images/icons/icon01.png
DELETED
Binary file
|
inc/hantus/images/icons/icon02.jpg
ADDED
Binary file
|
inc/hantus/images/icons/icon02.png
DELETED
Binary file
|
inc/hantus/images/icons/icon03.jpg
ADDED
Binary file
|
inc/hantus/images/icons/icon03.png
DELETED
Binary file
|
inc/hantus/images/slider/slider.jpg
DELETED
Binary file
|
inc/hantus/images/slider/slider01.jpg
ADDED
Binary file
|
inc/hantus/images/slider/slider02.jpg
ADDED
Binary file
|
inc/hantus/images/slider/slider03.jpg
ADDED
Binary file
|
inc/hantus/sections/section-info.php
CHANGED
@@ -2,48 +2,79 @@
|
|
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.
|
6 |
$info_title = get_theme_mod('info_title','Opening Time');
|
7 |
$info_description = get_theme_mod('info_description','Mon - Sat: 10h00 - 18h00');
|
8 |
-
$
|
|
|
|
|
|
|
9 |
$info_title2 = get_theme_mod('info_title2','Address');
|
10 |
$info_description2 = get_theme_mod('info_description2','40 Baria Sreet, NY USAm');
|
11 |
-
$
|
|
|
|
|
|
|
12 |
$info_title3 = get_theme_mod('info_title3','Telephone');
|
13 |
-
$info_description3 = get_theme_mod('info_description3','+12 345 678 9101');
|
|
|
|
|
14 |
?>
|
15 |
<?php if($hide_show_info == '1') { ?>
|
16 |
-
|
17 |
-
<div class="container
|
18 |
<div class="row">
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
</div>
|
41 |
</div>
|
42 |
</section>
|
43 |
-
<?php
|
44 |
-
|
45 |
-
}
|
46 |
-
endif;
|
47 |
if ( function_exists( 'hantus_lite_info' ) ) {
|
48 |
$section_priority = apply_filters( 'hantus_section_priority', 12, 'hantus_lite_info' );
|
49 |
add_action( 'hantus_sections', 'hantus_lite_info', absint( $section_priority ) );
|
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">
|
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">
|
31 |
+
<?php if ( ! empty( $info_first_img_setting ) ) { ?>
|
32 |
+
<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; ?> />
|
33 |
+
<?php } ?>
|
34 |
+
<div class="info-area">
|
35 |
+
<div class="info-caption">
|
36 |
+
<p><?php echo esc_html( $info_description ); ?></p>
|
37 |
+
<h4><?php echo esc_html( $info_title ); ?></h4>
|
38 |
+
</div>
|
39 |
+
<a href="<?php echo esc_url($info_link); ?>" class="btn-info"><?php echo esc_html($info_btn); ?></a>
|
40 |
+
</div>
|
41 |
+
</aside>
|
42 |
+
</li>
|
43 |
+
<li class="info-second">
|
44 |
+
<aside class="single-info">
|
45 |
+
<?php if ( ! empty( $info_second_img_setting ) ) { ?>
|
46 |
+
<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; ?> />
|
47 |
+
<?php } ?>
|
48 |
+
<div class="info-area">
|
49 |
+
<div class="info-caption">
|
50 |
+
<p><?php echo esc_html( $info_description2 ); ?></p>
|
51 |
+
<h4><?php echo esc_html( $info_title2 ); ?></h4>
|
52 |
+
</div>
|
53 |
+
<a href="<?php echo esc_url($info_link2); ?>" class="btn-info"><?php echo esc_html($info_btn2); ?></a>
|
54 |
+
</div>
|
55 |
+
</aside>
|
56 |
+
</li>
|
57 |
+
<li class="info-third">
|
58 |
+
<aside class="single-info">
|
59 |
+
<?php if ( ! empty( $info_third_img_setting ) ) { ?>
|
60 |
+
<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; ?> />
|
61 |
+
<?php } ?>
|
62 |
+
<div class="info-area">
|
63 |
+
<div class="info-caption">
|
64 |
+
<p><?php echo esc_html( $info_description3 ); ?></p>
|
65 |
+
<h4><?php echo esc_html( $info_title3 ); ?></h4>
|
66 |
+
</div>
|
67 |
+
<a href="<?php echo esc_url($info_link3); ?>" class="btn-info"><?php echo esc_html($info_btn3); ?></a>
|
68 |
+
</div>
|
69 |
+
</aside>
|
70 |
+
</li>
|
71 |
+
</ul>
|
72 |
+
</div>
|
73 |
</div>
|
74 |
</div>
|
75 |
</section>
|
76 |
+
<?php }} endif; ?>
|
77 |
+
<?php
|
|
|
|
|
78 |
if ( function_exists( 'hantus_lite_info' ) ) {
|
79 |
$section_priority = apply_filters( 'hantus_section_priority', 12, 'hantus_lite_info' );
|
80 |
add_action( 'hantus_sections', 'hantus_lite_info', absint( $section_priority ) );
|
inc/hantus/sections/section-service.php
CHANGED
@@ -8,28 +8,40 @@ if ( ! function_exists( 'hantus_lite_service' ) ) :
|
|
8 |
array(
|
9 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service01.png',
|
10 |
'title' => esc_html__( 'Oil Massage', 'hantus' ),
|
|
|
11 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
|
|
|
|
12 |
'id' => 'customizer_repeater_service_001',
|
13 |
|
14 |
),
|
15 |
array(
|
16 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service02.png',
|
17 |
'title' => esc_html__( 'Skin Care', 'hantus' ),
|
|
|
18 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
|
|
|
|
19 |
'id' => 'customizer_repeater_service_002',
|
20 |
|
21 |
),
|
22 |
array(
|
23 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service03.png',
|
24 |
'title' => esc_html__( 'Natural Relaxation', 'hantus' ),
|
|
|
25 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
|
|
|
|
26 |
'id' => 'customizer_repeater_service_003',
|
27 |
|
28 |
),
|
29 |
array(
|
30 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/service/service04.png',
|
31 |
'title' => esc_html__( 'Nails Design', 'hantus' ),
|
|
|
32 |
'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting.', 'hantus' ),
|
|
|
|
|
33 |
'id' => 'customizer_repeater_service_004',
|
34 |
|
35 |
),
|
@@ -53,7 +65,7 @@ if ( ! function_exists( 'hantus_lite_service' ) ) :
|
|
53 |
<div class="col-lg-6 offset-lg-3 col-12 text-center">
|
54 |
<div class="section-title service-section">
|
55 |
<h2><?php echo $service_title; ?></h2>
|
56 |
-
<hr style="background: url('<?php echo get_template_directory_uri(); ?>/assets/images/section-icon.png') no-repeat center / cover;">
|
57 |
<p><?php echo $service_description; ?></p>
|
58 |
</div>
|
59 |
</div>
|
@@ -71,7 +83,10 @@ if ( ! function_exists( 'hantus_lite_service' ) ) :
|
|
71 |
$service_contents = json_decode( $service_contents );
|
72 |
foreach ( $service_contents as $service_item ) {
|
73 |
$title = ! empty( $service_item->title ) ? apply_filters( 'hantus_translate_single_string', $service_item->title, 'service section' ) : '';
|
|
|
74 |
$text = ! empty( $service_item->text ) ? apply_filters( 'hantus_translate_single_string', $service_item->text, 'service section' ) : '';
|
|
|
|
|
75 |
$image = ! empty( $service_item->image_url ) ? apply_filters( 'hantus_translate_single_string', $service_item->image_url, 'service section' ) : '';
|
76 |
?>
|
77 |
<div class="col-lg-3 col-md-6 col-sm-6 mb-5 mb-lg-0 serv-cont">
|
@@ -82,6 +97,9 @@ if ( ! function_exists( 'hantus_lite_service' ) ) :
|
|
82 |
<?php endif; ?>
|
83 |
<figcaption>
|
84 |
<div class="inner-text">
|
|
|
|
|
|
|
85 |
</div>
|
86 |
</figcaption>
|
87 |
</figure>
|
@@ -91,6 +109,9 @@ if ( ! function_exists( 'hantus_lite_service' ) ) :
|
|
91 |
<?php if ( ! empty( $text ) ) : ?>
|
92 |
<p><?php echo esc_html( $text ); ?></p>
|
93 |
<?php endif; ?>
|
|
|
|
|
|
|
94 |
</div>
|
95 |
</div>
|
96 |
<?php }}?>
|
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 |
),
|
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>
|
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">
|
97 |
<?php endif; ?>
|
98 |
<figcaption>
|
99 |
<div class="inner-text">
|
100 |
+
<?php if ( ! empty( $text2 ) ) : ?>
|
101 |
+
<a href="<?php echo esc_html( $link ); ?>" class="boxed-btn"><?php echo esc_html( $text2 ); ?></a>
|
102 |
+
<?php endif; ?>
|
103 |
</div>
|
104 |
</figcaption>
|
105 |
</figure>
|
109 |
<?php if ( ! empty( $text ) ) : ?>
|
110 |
<p><?php echo esc_html( $text ); ?></p>
|
111 |
<?php endif; ?>
|
112 |
+
<?php if ( ! empty( $subtitle ) ) : ?>
|
113 |
+
<p class="price"><?php echo esc_html( $subtitle ); ?></p>
|
114 |
+
<?php endif; ?>
|
115 |
</div>
|
116 |
</div>
|
117 |
<?php }}?>
|
inc/hantus/sections/section-slider.php
CHANGED
@@ -9,73 +9,75 @@ if ( ! function_exists( 'hantus_lite_slider' ) ) :
|
|
9 |
return apply_filters(
|
10 |
'hantus_get_slider_default', json_encode(
|
11 |
array(
|
12 |
-
array("image_url" => CLEVERFOX_PLUGIN_URL.'inc/hantus/images/slider/
|
|
|
|
|
|
|
|
|
13 |
))
|
14 |
);
|
15 |
}
|
16 |
$default_content = hantus_get_slider_default();
|
17 |
$slider = get_theme_mod('slider',$default_content);
|
18 |
-
$slider_opacity = get_theme_mod('slider_opacity','0.2');
|
19 |
$hide_show_slider = get_theme_mod('hide_show_slider','1');
|
20 |
|
21 |
if($hide_show_slider == '1') {
|
22 |
?>
|
23 |
-
|
24 |
-
<div class="
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
</div>
|
70 |
</div>
|
71 |
-
</
|
72 |
-
</
|
73 |
</div>
|
74 |
-
<?php }} ?>
|
75 |
</div>
|
76 |
</div>
|
|
|
77 |
</div>
|
78 |
-
</
|
79 |
<?php
|
80 |
}
|
81 |
}
|
9 |
return apply_filters(
|
10 |
'hantus_get_slider_default', json_encode(
|
11 |
array(
|
12 |
+
array("image_url" => CLEVERFOX_PLUGIN_URL.'inc/hantus/images/slider/slider01.jpg' ,"link" => "#", "title" => "Welcome To Hantus Spa","subtitle" => "Beauty & Spa Wellness", "text" => "The Spa at Sun Valley is a serene oasis amid all the exciting activities our iconic valley has delivered for decades.", "text2" => "Make an Appoinment","slide_align" => "left","id" => "customizer_repeater_000101" ),
|
13 |
+
|
14 |
+
array("image_url" => CLEVERFOX_PLUGIN_URL.'inc/hantus/images/slider/slider02.jpg' ,"link" => "#", "title" => "Welcome To Hantus Spa","subtitle" => "Beauty & Spa Wellness", "text" => "The Spa at Sun Valley is a serene oasis amid all the exciting activities our iconic valley has delivered for decades.", "text2" => "Make an Appoinment","slide_align" => "center","id" => "customizer_repeater_000102" ),
|
15 |
+
|
16 |
+
array("image_url" => CLEVERFOX_PLUGIN_URL.'inc/hantus/images/slider/slider03.jpg' ,"link" => "#", "title" => "Welcome To Hantus Spa","subtitle" => "Beauty & Spa Wellness", "text" => "The Spa at Sun Valley is a serene oasis amid all the exciting activities our iconic valley has delivered for decades.", "text2" => "Make an Appoinment","slide_align" => "right","id" => "customizer_repeater_000103" ),
|
17 |
))
|
18 |
);
|
19 |
}
|
20 |
$default_content = hantus_get_slider_default();
|
21 |
$slider = get_theme_mod('slider',$default_content);
|
|
|
22 |
$hide_show_slider = get_theme_mod('hide_show_slider','1');
|
23 |
|
24 |
if($hide_show_slider == '1') {
|
25 |
?>
|
26 |
+
<section id="slider">
|
27 |
+
<div class="header-slider owl-carousel owl-theme">
|
28 |
+
<?php
|
29 |
+
|
30 |
+
if ( ! empty( $slider ) ) {
|
31 |
+
$allowed_html = array(
|
32 |
+
'br' => array(),
|
33 |
+
'em' => array(),
|
34 |
+
'strong' => array(),
|
35 |
+
'b' => array(),
|
36 |
+
'i' => array(),
|
37 |
+
);
|
38 |
+
$slider = json_decode( $slider );
|
39 |
+
foreach ( $slider as $slide_item ) {
|
40 |
+
$title = ! empty( $slide_item->title ) ? apply_filters( 'hantus_translate_single_string', $slide_item->title, 'slider section' ) : '';
|
41 |
+
$subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'hantus_translate_single_string', $slide_item->subtitle, 'slider section' ) : '';
|
42 |
+
$text = ! empty( $slide_item->text ) ? apply_filters( 'hantus_translate_single_string', $slide_item->text, 'slider section' ) : '';
|
43 |
+
$button = ! empty( $slide_item->text2) ? apply_filters( 'hantus_translate_single_string', $slide_item->text2,'Learn More' ) : '';
|
44 |
+
$link = ! empty( $slide_item->link ) ? apply_filters( 'hantus_translate_single_string', $slide_item->link, 'slider section' ) : '';
|
45 |
+
$image = ! empty( $slide_item->image_url ) ? apply_filters( 'hantus_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
|
46 |
+
$align = ! empty( $slide_item->slide_align ) ? apply_filters( 'hantus_translate_single_string', $slide_item->slide_align, 'slider section' ) : '';
|
47 |
+
?>
|
48 |
+
<div class="item">
|
49 |
+
<?php if ( ! empty( $image ) ) : ?>
|
50 |
+
<img src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
|
51 |
+
<?php endif; ?>
|
52 |
+
<div class="header-single-slider theme-slider">
|
53 |
+
<div class="theme-table">
|
54 |
+
<div class="theme-table-cell">
|
55 |
+
<div class="container">
|
56 |
+
<div class="theme-content text-<?php echo esc_attr($align); ?>">
|
57 |
+
<?php if ( ! empty( $title ) ) : ?>
|
58 |
+
<h3><?php echo esc_attr( $title ); ?></h3>
|
59 |
+
<?php endif; ?>
|
60 |
+
|
61 |
+
<?php if ( ! empty( $subtitle ) ) : ?>
|
62 |
+
<h1><?php echo esc_attr( $subtitle ); ?></h1>
|
63 |
+
<?php endif; ?>
|
64 |
+
|
65 |
+
<?php if ( ! empty( $text ) ) : ?>
|
66 |
+
<p><?php echo esc_attr( $text ); ?></p>
|
67 |
+
<?php endif; ?>
|
68 |
+
|
69 |
+
<?php if ( ! empty( $button ) ) : ?>
|
70 |
+
<a href="<?php echo esc_url( $link ); ?>" class="boxed-btn"><?php echo esc_attr( $button ); ?></a>
|
71 |
+
<?php endif; ?>
|
|
|
72 |
</div>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
</div>
|
|
|
76 |
</div>
|
77 |
</div>
|
78 |
+
<?php }} ?>
|
79 |
</div>
|
80 |
+
</section>
|
81 |
<?php
|
82 |
}
|
83 |
}
|
inc/hantus/sections/section-testimonial.php
CHANGED
@@ -6,23 +6,23 @@
|
|
6 |
'hantus_get_testimonial_default', json_encode(
|
7 |
array(
|
8 |
array(
|
9 |
-
'title' => esc_html__( 'Eric Matision', 'hantus
|
10 |
-
'designation' => esc_html__( 'Forest Hills. NY', 'hantus
|
11 |
-
'text' => esc_html__( 'I am very impressed by the efficiency of your service and your excellent returns policy. It is so pleasant to deal with such a customer focussed website.', 'hantus
|
12 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/testimonial/testimonial01.png',
|
13 |
'id' => 'customizer_repeater_testimonial_001',
|
14 |
),
|
15 |
array(
|
16 |
-
'title' => esc_html__( 'Jennifer Lopez', 'hantus
|
17 |
-
'designation' => esc_html__( 'Forest Hills. NY', 'hantus
|
18 |
-
'text' => esc_html__( 'I am very impressed by the efficiency of your service and your excellent returns policy. It is so pleasant to deal with such a customer focussed website.', 'hantus
|
19 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/testimonial/testimonial01.png',
|
20 |
'id' => 'customizer_repeater_testimonial_002',
|
21 |
),
|
22 |
array(
|
23 |
-
'title' => esc_html__( 'Betty Ross', 'hantus
|
24 |
-
'designation' => esc_html__( 'Developer', 'hantus
|
25 |
-
'text' => esc_html__( 'I am very impressed by the efficiency of your service and your excellent returns policy. It is so pleasant to deal with such a customer focussed website.', 'hantus
|
26 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/testimonial/testimonial01.png',
|
27 |
'id' => 'customizer_repeater_testimonial_003',
|
28 |
),
|
@@ -30,12 +30,7 @@
|
|
30 |
)
|
31 |
);
|
32 |
}
|
33 |
-
|
34 |
-
if ( current_user_can( 'edit_theme_options' ) ) {
|
35 |
-
$default_content = hantus_get_testimonial_default();
|
36 |
-
}
|
37 |
-
?>
|
38 |
-
<?php
|
39 |
$hide_show_testimonial= get_theme_mod('hide_show_testimonial','1');
|
40 |
$testimonial_contents= get_theme_mod('testimonial_contents',$default_content);
|
41 |
$testimonial_background_setting= get_theme_mod('testimonial_background_setting',CLEVERFOX_PLUGIN_URL .'inc/hantus/images/testimonial/testimonial-bg.jpg');
|
@@ -49,39 +44,50 @@
|
|
49 |
<div class="container">
|
50 |
<div class="row">
|
51 |
<div class="col-md-12">
|
52 |
-
<div class="testimonial-carousel text-center"
|
53 |
-
|
54 |
-
if ( ! empty( $testimonial_contents ) ) {
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
-
|
84 |
-
|
85 |
</div>
|
86 |
</div>
|
87 |
</div>
|
6 |
'hantus_get_testimonial_default', json_encode(
|
7 |
array(
|
8 |
array(
|
9 |
+
'title' => esc_html__( 'Eric Matision', 'hantus' ),
|
10 |
+
'designation' => esc_html__( 'Forest Hills. NY', 'hantus' ),
|
11 |
+
'text' => esc_html__( 'I am very impressed by the efficiency of your service and your excellent returns policy. It is so pleasant to deal with such a customer focussed website.', 'hantus' ),
|
12 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/testimonial/testimonial01.png',
|
13 |
'id' => 'customizer_repeater_testimonial_001',
|
14 |
),
|
15 |
array(
|
16 |
+
'title' => esc_html__( 'Jennifer Lopez', 'hantus' ),
|
17 |
+
'designation' => esc_html__( 'Forest Hills. NY', 'hantus' ),
|
18 |
+
'text' => esc_html__( 'I am very impressed by the efficiency of your service and your excellent returns policy. It is so pleasant to deal with such a customer focussed website.', 'hantus' ),
|
19 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/testimonial/testimonial01.png',
|
20 |
'id' => 'customizer_repeater_testimonial_002',
|
21 |
),
|
22 |
array(
|
23 |
+
'title' => esc_html__( 'Betty Ross', 'hantus' ),
|
24 |
+
'designation' => esc_html__( 'Developer', 'hantus' ),
|
25 |
+
'text' => esc_html__( 'I am very impressed by the efficiency of your service and your excellent returns policy. It is so pleasant to deal with such a customer focussed website.', 'hantus' ),
|
26 |
'image_url' => CLEVERFOX_PLUGIN_URL . 'inc/hantus/images/testimonial/testimonial01.png',
|
27 |
'id' => 'customizer_repeater_testimonial_003',
|
28 |
),
|
30 |
)
|
31 |
);
|
32 |
}
|
33 |
+
$default_content = hantus_get_testimonial_default();
|
|
|
|
|
|
|
|
|
|
|
34 |
$hide_show_testimonial= get_theme_mod('hide_show_testimonial','1');
|
35 |
$testimonial_contents= get_theme_mod('testimonial_contents',$default_content);
|
36 |
$testimonial_background_setting= get_theme_mod('testimonial_background_setting',CLEVERFOX_PLUGIN_URL .'inc/hantus/images/testimonial/testimonial-bg.jpg');
|
44 |
<div class="container">
|
45 |
<div class="row">
|
46 |
<div class="col-md-12">
|
47 |
+
<div class="testimonial-carousel text-center">
|
48 |
+
<div class="testimonial-content owl-carousel owl-theme">
|
49 |
+
<?php if ( ! empty( $testimonial_contents ) ) {
|
50 |
+
$allowed_html = array(
|
51 |
+
'br' => array(),
|
52 |
+
'em' => array(),
|
53 |
+
'strong' => array(),
|
54 |
+
'b' => array(),
|
55 |
+
'i' => array(),
|
56 |
+
);
|
57 |
+
$testimonial_contents = json_decode( $testimonial_contents );
|
58 |
+
foreach ( $testimonial_contents as $testimonial_item ) {
|
59 |
+
|
60 |
+
$title = ! empty( $testimonial_item->title ) ? apply_filters( 'hantus_translate_single_string', $testimonial_item->title, 'testimonial section' ) : '';
|
61 |
+
$designation = ! empty( $testimonial_item->designation ) ? apply_filters( 'hantus_translate_single_string', $testimonial_item->designation, 'testimonial section' ) : '';
|
62 |
+
$text = ! empty( $testimonial_item->text ) ? apply_filters( 'hantus_translate_single_string', $testimonial_item->text, 'testimonial section' ) : '';
|
63 |
+
$image = ! empty( $testimonial_item->image_url ) ? apply_filters( 'hantus_translate_single_string', $testimonial_item->image_url, 'testimonial section' ) : '';
|
64 |
+
|
65 |
+
?>
|
66 |
+
<div class="single-testimonial">
|
67 |
+
<?php if ( ! empty( $text ) ) : ?>
|
68 |
+
<p>“<?php echo esc_attr( $text ); ?>”</p>
|
69 |
+
<?php endif; ?>
|
70 |
+
<?php if ( ! empty( $title ) ) : ?>
|
71 |
+
<h5><?php echo esc_attr( $title ); ?></h5>
|
72 |
+
<?php endif; ?>
|
73 |
+
<?php if ( ! empty( $designation ) ) : ?>
|
74 |
+
<p class="title"><?php echo esc_attr( $designation ); ?></p>
|
75 |
+
<?php endif; ?>
|
76 |
+
</div>
|
77 |
+
<?php
|
78 |
+
}
|
79 |
+
}
|
80 |
+
?>
|
81 |
+
</div>
|
82 |
+
<div class="testimonial-thumb owl-carousel owl-theme text-center">
|
83 |
+
<?php
|
84 |
+
if ( ! empty( $testimonial_contents ) ) {
|
85 |
+
foreach ( $testimonial_contents as $testimonial_item ) {
|
86 |
+
echo '<img src='.esc_url( $image ).' data-dots="1" class="item" />';
|
87 |
+
}
|
88 |
}
|
89 |
+
?>
|
90 |
+
</div>
|
91 |
</div>
|
92 |
</div>
|
93 |
</div>
|
inc/hantus/typography_style.php
DELETED
@@ -1,143 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function hantus_own_theme_typography() {
|
3 |
-
$hide_show_typography= get_theme_mod('hide_show_typography','off');
|
4 |
-
if( $hide_show_typography == '1' ):
|
5 |
-
|
6 |
-
$body_typography_font_weight = get_theme_mod('body_typography_font_weight','normal');
|
7 |
-
$body_font_size = get_theme_mod('body_font_size','14');
|
8 |
-
|
9 |
-
$para_font_weight = get_theme_mod('para_font_weight','normal');
|
10 |
-
$paragraph_font_size = get_theme_mod('paragraph_font_size','16');
|
11 |
-
$paragraph_line_height = get_theme_mod('paragraph_line_height','21');
|
12 |
-
|
13 |
-
$h1_font_weight = get_theme_mod('h1_font_weight','normal');
|
14 |
-
$h1_font_size = get_theme_mod('h1_font_size','36');
|
15 |
-
$h1_line_height = get_theme_mod('h1_line_height','46');
|
16 |
-
$h1_text_transform = get_theme_mod('h1_text_transform','capitalize');
|
17 |
-
|
18 |
-
$h2_font_weight = get_theme_mod('h2_font_weight','normal');
|
19 |
-
$h2_font_size = get_theme_mod('h2_font_size','32');
|
20 |
-
$h2_line_height = get_theme_mod('h2_line_height','46');
|
21 |
-
$h2_text_transform = get_theme_mod('h2_text_transform','capitalize');
|
22 |
-
|
23 |
-
$h3_font_weight = get_theme_mod('h3_font_weight','normal');
|
24 |
-
$h3_font_size = get_theme_mod('h3_font_size','28');
|
25 |
-
$h3_line_height = get_theme_mod('h3_line_height','34');
|
26 |
-
$h3_text_transform = get_theme_mod('h3_text_transform','capitalize');
|
27 |
-
|
28 |
-
$h4_font_weight = get_theme_mod('h4_font_weight','normal');
|
29 |
-
$h4_font_size = get_theme_mod('h4_font_size','24');
|
30 |
-
$h4_line_height = get_theme_mod('h4_line_height','28');
|
31 |
-
$h4_text_transform = get_theme_mod('h4_text_transform','capitalize');
|
32 |
-
|
33 |
-
$h5_font_weight = get_theme_mod('h5_font_weight','normal');
|
34 |
-
$h5_font_size = get_theme_mod('h5_font_size','20');
|
35 |
-
$h5_line_height = get_theme_mod('h5_line_height','15');
|
36 |
-
$h5_text_transform = get_theme_mod('h5_text_transform','capitalize');
|
37 |
-
|
38 |
-
$h6_font_weight = get_theme_mod('h6_font_weight','normal');
|
39 |
-
$h6_font_size = get_theme_mod('h6_font_size','16');
|
40 |
-
$h6_line_height = get_theme_mod('h6_line_height','24');
|
41 |
-
$h6_text_transform = get_theme_mod('h6_text_transform','capitalize');
|
42 |
-
|
43 |
-
$menu_font_weight = get_theme_mod('menu_font_weight','normal');
|
44 |
-
$menu_font_size = get_theme_mod('menu_font_size','15');
|
45 |
-
$menu_text_transform = get_theme_mod('menu_text_transform','capitalize');
|
46 |
-
|
47 |
-
$section_tit_font_weight = get_theme_mod('section_tit_font_weight','normal');
|
48 |
-
$section_tit_font_size = get_theme_mod('section_tit_font_size','40');
|
49 |
-
|
50 |
-
$section_des_font_weight = get_theme_mod('section_des_font_weight','normal');
|
51 |
-
$section_desc_font_size = get_theme_mod('section_desc_font_size','16');
|
52 |
-
?>
|
53 |
-
<style type="text/css">
|
54 |
-
body {
|
55 |
-
font-weight: 400;
|
56 |
-
font-size: <?php echo $body_font_size; ?>px!important;
|
57 |
-
font-style: <?php echo $body_typography_font_weight; ?>!important;
|
58 |
-
line-height: 22px;
|
59 |
-
}
|
60 |
-
|
61 |
-
h1,
|
62 |
-
h2,
|
63 |
-
h3,
|
64 |
-
h4,
|
65 |
-
h5,
|
66 |
-
h6 {
|
67 |
-
font-family: 'Rubik', sans-serif;
|
68 |
-
font-weight: 500;
|
69 |
-
}
|
70 |
-
|
71 |
-
.section-title h2 {
|
72 |
-
font-style: <?php echo $section_tit_font_weight; ?>!important;
|
73 |
-
font-size:<?php echo $section_tit_font_size; ?>px!important;
|
74 |
-
}
|
75 |
-
|
76 |
-
.section-title p {
|
77 |
-
font-style: <?php echo $section_des_font_weight; ?>!important;
|
78 |
-
font-size:<?php echo $section_desc_font_size; ?>px!important;
|
79 |
-
}
|
80 |
-
|
81 |
-
|
82 |
-
.main-menu li a {
|
83 |
-
font-weight: 500;
|
84 |
-
font-size: <?php echo $menu_font_size; ?>px!important;
|
85 |
-
font-style: <?php echo $menu_font_weight; ?>!important;
|
86 |
-
text-transform: <?php echo $menu_text_transform; ?>!important;
|
87 |
-
}
|
88 |
-
|
89 |
-
h1 {
|
90 |
-
font-size: <?php echo $h1_font_size; ?>px!important;
|
91 |
-
line-height: <?php echo $h1_line_height; ?>px!important;
|
92 |
-
text-transform: <?php echo $h1_text_transform; ?>!important;
|
93 |
-
font-style: <?php echo $h1_font_weight; ?>!important;
|
94 |
-
}
|
95 |
-
|
96 |
-
h2 {
|
97 |
-
font-size: <?php echo $h2_font_size; ?>px!important;
|
98 |
-
line-height: <?php echo $h2_line_height; ?>px!important;
|
99 |
-
text-transform:<?php echo $h2_text_transform; ?>!important;
|
100 |
-
font-style: <?php echo $h2_font_weight; ?>!important;
|
101 |
-
}
|
102 |
-
|
103 |
-
h3 {
|
104 |
-
font-size: <?php echo $h3_font_size; ?>px!important;
|
105 |
-
line-height: <?php echo $h3_line_height; ?>px!important;
|
106 |
-
text-transform: <?php echo $h3_text_transform; ?>!important;
|
107 |
-
font-style: <?php echo $h3_font_weight; ?>!important;
|
108 |
-
}
|
109 |
-
|
110 |
-
h4 {
|
111 |
-
font-size: <?php echo $h4_font_size; ?>px!important;
|
112 |
-
line-height: <?php echo $h4_line_height; ?>px!important;
|
113 |
-
text-transform:<?php echo $h4_text_transform; ?>!important;
|
114 |
-
font-style: <?php echo $h4_font_weight; ?>!important;
|
115 |
-
font-weight: 500;
|
116 |
-
}
|
117 |
-
|
118 |
-
h5 {
|
119 |
-
font-size: <?php echo $h5_font_size; ?>px!important;
|
120 |
-
line-height: <?php echo $h5_line_height; ?>px!important;
|
121 |
-
text-transform: <?php echo $h5_text_transform; ?>!important;
|
122 |
-
font-style: <?php echo $h5_font_weight; ?>!important;
|
123 |
-
}
|
124 |
-
|
125 |
-
h6 {
|
126 |
-
font-size: <?php echo $h6_font_size; ?>px!important;
|
127 |
-
line-height: <?php echo $h6_line_height; ?>px!important;
|
128 |
-
text-transform: <?php echo $h6_text_transform; ?>!important;
|
129 |
-
font-style: <?php echo $h6_font_weight; ?>!important;
|
130 |
-
}
|
131 |
-
p {
|
132 |
-
font-family: 'Roboto', sans-serif;
|
133 |
-
font-size: <?php echo $paragraph_font_size; ?>px;
|
134 |
-
line-height: <?php echo $paragraph_line_height; ?>px;
|
135 |
-
font-style: <?php echo $para_font_weight; ?>;
|
136 |
-
font-weight: 400;
|
137 |
-
}
|
138 |
-
</style>
|
139 |
-
|
140 |
-
<?php endif;
|
141 |
-
}
|
142 |
-
add_action('wp_head','hantus_own_theme_typography');
|
143 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -39,6 +39,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
42 |
= 1.1.31 =
|
43 |
* Typography Feature Improved
|
44 |
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= 1.1.32 =
|
43 |
+
* Hantus Theme Features Improved
|
44 |
+
|
45 |
= 1.1.31 =
|
46 |
* Typography Feature Improved
|
47 |
|