Version Description
- Added Innofit plus feature link in customizer section.
Download this release
Release Info
Developer | spicethemes |
Plugin | Spice Box |
Version | 0.3.9.2 |
Comparing to | |
See all releases |
Code changes from version 0.3.9.1 to 0.3.9.2
- feedback-mail.php +0 -0
- inc/css/feedback-popup.css +0 -0
- inc/feedback-pop-up-form.php +0 -0
- inc/innofit/customizer.php +23 -0
- inc/innofit/customizer/about-section.php +0 -0
- inc/innofit/customizer/callout-section.php +0 -0
- inc/innofit/customizer/client-section.php +133 -0
- inc/innofit/customizer/contact-section.php +0 -0
- inc/innofit/customizer/customizer-render-callbacks.php +0 -0
- inc/innofit/customizer/customizer_color_back_settings.php +90 -0
- inc/innofit/customizer/customizer_layout_manager.php +128 -0
- inc/innofit/customizer/customizer_theme_style.php +240 -0
- inc/innofit/customizer/customizer_typography.php +479 -0
- inc/innofit/customizer/funfact-section.php +74 -0
- inc/innofit/customizer/instagram-section.php +59 -0
- inc/innofit/customizer/map-section.php +61 -0
- inc/innofit/customizer/news-section.php +31 -0
- inc/innofit/customizer/portfolio-section.php +94 -0
- inc/innofit/customizer/pricing-section.php +95 -0
- inc/innofit/customizer/services-section.php +0 -0
- inc/innofit/customizer/slider-section.php +31 -0
- inc/innofit/customizer/subscriber-section.php +0 -0
- inc/innofit/customizer/team-section.php +32 -1
- inc/innofit/customizer/testimonial-section.php +32 -0
- inc/innofit/customizer/wooproduct-section.php +32 -0
- inc/innofit/default-pages/home-custom-menu.php +0 -0
- inc/innofit/default-pages/home-page.php +0 -0
- inc/innofit/default-pages/upload-media.php +0 -0
- inc/innofit/default-widgets/default-widget.php +0 -0
- inc/innofit/images/about/about.jpg +0 -0
- inc/innofit/images/bg-pattern/bg-img0.png +0 -0
- inc/innofit/images/bg-pattern/bg-img1.png +0 -0
- inc/innofit/images/bg-pattern/bg-img10.jpg +0 -0
- inc/innofit/images/bg-pattern/bg-img2.png +0 -0
- inc/innofit/images/bg-pattern/bg-img3.png +0 -0
- inc/innofit/images/bg-pattern/bg-img4.png +0 -0
- inc/innofit/images/bg-pattern/bg-img5.png +0 -0
- inc/innofit/images/bg-pattern/bg-img6.jpg +0 -0
- inc/innofit/images/bg-pattern/bg-img7.jpg +0 -0
- inc/innofit/images/bg-pattern/bg-img8.jpg +0 -0
- inc/innofit/images/bg-pattern/bg-img9.jpg +0 -0
- inc/innofit/images/bg-pattern/blue.png +0 -0
- inc/innofit/images/bg-pattern/bluedark.png +0 -0
- inc/innofit/images/bg-pattern/boxed.png +0 -0
- inc/innofit/images/bg-pattern/brown.png +0 -0
- inc/innofit/images/bg-pattern/dark.png +0 -0
- inc/innofit/images/bg-pattern/gold.png +0 -0
- inc/innofit/images/bg-pattern/green.png +0 -0
- inc/innofit/images/bg-pattern/light.png +0 -0
- inc/innofit/images/bg-pattern/orange.png +0 -0
- inc/innofit/images/bg-pattern/pink.png +0 -0
- inc/innofit/images/bg-pattern/purple.png +0 -0
- inc/innofit/images/bg-pattern/red.png +0 -0
- inc/innofit/images/bg-pattern/regalblue.png +0 -0
- inc/innofit/images/bg-pattern/sd.jpg +0 -0
- inc/innofit/images/bg-pattern/sm0.png +0 -0
- inc/innofit/images/bg-pattern/sm1.png +0 -0
- inc/innofit/images/bg-pattern/sm10.jpg +0 -0
- inc/innofit/images/bg-pattern/sm2.png +0 -0
- inc/innofit/images/bg-pattern/sm3.png +0 -0
- inc/innofit/images/bg-pattern/sm4.png +0 -0
- inc/innofit/images/bg-pattern/sm5.png +0 -0
- inc/innofit/images/bg-pattern/sm6.jpg +0 -0
- inc/innofit/images/bg-pattern/sm7.jpg +0 -0
- inc/innofit/images/bg-pattern/sm8.jpg +0 -0
- inc/innofit/images/bg-pattern/sm9.jpg +0 -0
- inc/innofit/images/bg-pattern/wide.png +0 -0
- inc/innofit/images/bg-pattern/wordpress.png +0 -0
- inc/innofit/images/bg-pattern/yellow.png +0 -0
- inc/innofit/images/logo-footer.png +0 -0
- inc/innofit/images/logo.png +0 -0
- inc/innofit/images/slider/slider.jpg +0 -0
- inc/innofit/images/subscribe/subscribe-bg.jpg +0 -0
- inc/innofit/images/team/team1.jpg +0 -0
- inc/innofit/images/team/team2.jpg +0 -0
- inc/innofit/images/team/team3.jpg +0 -0
- inc/innofit/images/team/team4.jpg +0 -0
- inc/innofit/images/testimonial/testimonial-bg.jpg +0 -0
- inc/innofit/images/testimonial/user1.jpg +0 -0
- inc/innofit/images/testimonial/user2.jpg +0 -0
- inc/innofit/images/testimonial/user3.jpg +0 -0
- inc/innofit/images/testimonial/user4.jpg +0 -0
- inc/innofit/sections/innofit-about-section.php +0 -0
- inc/innofit/sections/innofit-callout-section.php +0 -0
- inc/innofit/sections/innofit-contact-section.php +0 -0
- inc/innofit/sections/innofit-news-section.php +0 -0
- inc/innofit/sections/innofit-services-section.php +0 -0
- inc/innofit/sections/innofit-slider-section.php +0 -0
- inc/innofit/sections/innofit-subscriber-section.php +0 -0
- inc/innofit/sections/innofit-team-section.php +0 -0
- inc/innofit/sections/innofit-testimonial-section.php +0 -0
- inc/innofit/sections/innofit-wooproduct-section.php +0 -0
- inc/js/custom-js.js +0 -0
- inc/spicepress/customizer.php +0 -0
- inc/spicepress/default-pages/about-page.php +0 -0
- inc/spicepress/default-pages/blog-page.php +0 -0
- inc/spicepress/default-pages/contact-page.php +0 -0
- inc/spicepress/default-pages/home-page.php +0 -0
- inc/spicepress/default-pages/portfolio-page.php +0 -0
- inc/spicepress/default-pages/upload-media.php +0 -0
- inc/spicepress/default-widgets/default-widget.php +0 -0
- inc/spicepress/features/feature-portfolio-section.php +0 -0
- inc/spicepress/features/feature-service-section.php +0 -0
- inc/spicepress/features/feature-slider-section.php +0 -0
- inc/spicepress/features/feature-testimonial-section.php +0 -0
- inc/spicepress/images/about/about.jpg +0 -0
- inc/spicepress/images/logo-footer.png +0 -0
- inc/spicepress/images/portfolio/gallery1.jpg +0 -0
- inc/spicepress/images/portfolio/gallery10.jpg +0 -0
- inc/spicepress/images/portfolio/gallery11.jpg +0 -0
- inc/spicepress/images/portfolio/gallery12.jpg +0 -0
- inc/spicepress/images/portfolio/gallery2.jpg +0 -0
- inc/spicepress/images/portfolio/gallery3.jpg +0 -0
- inc/spicepress/images/portfolio/gallery4.jpg +0 -0
- inc/spicepress/images/portfolio/gallery5.jpg +0 -0
- inc/spicepress/images/portfolio/gallery6.jpg +0 -0
- inc/spicepress/images/portfolio/gallery7.jpg +0 -0
- inc/spicepress/images/portfolio/gallery8.jpg +0 -0
- inc/spicepress/images/portfolio/gallery9.jpg +0 -0
- inc/spicepress/images/portfolio/item1.jpg +0 -0
- inc/spicepress/images/portfolio/item2.jpg +0 -0
- inc/spicepress/images/portfolio/item3.jpg +0 -0
- inc/spicepress/images/portfolio/logo.png +0 -0
- inc/spicepress/images/slider/slider.jpg +0 -0
- inc/spicepress/images/testimonial/testi1.jpg +0 -0
- inc/spicepress/images/testimonial/testimonial-bg.jpg +0 -0
- inc/spicepress/sections/spicepress-features-section.php +0 -0
- inc/spicepress/sections/spicepress-portfolio-section.php +0 -0
- inc/spicepress/sections/spicepress-slider-section.php +0 -0
- inc/spicepress/sections/spicepress-testimonail-section.php +0 -0
- readme.txt +6 -2
- spicebox.php +6 -2
feedback-mail.php
CHANGED
File without changes
|
inc/css/feedback-popup.css
CHANGED
File without changes
|
inc/feedback-pop-up-form.php
CHANGED
File without changes
|
inc/innofit/customizer.php
CHANGED
@@ -256,6 +256,29 @@ function innofit_team_default_customize_register( $wp_customize ){
|
|
256 |
),
|
257 |
),
|
258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
) );
|
260 |
|
261 |
}
|
256 |
),
|
257 |
),
|
258 |
|
259 |
+
) );
|
260 |
+
|
261 |
+
}
|
262 |
+
}
|
263 |
+
endif;
|
264 |
+
|
265 |
+
// Innofit Pricing content data
|
266 |
+
if ( ! function_exists( 'innofit_pricing_default_customize_register' ) ) :
|
267 |
+
add_action( 'customize_register', 'innofit_pricing_default_customize_register' );
|
268 |
+
function innofit_pricing_default_customize_register( $wp_customize ){
|
269 |
+
//SpicePrss default team data.
|
270 |
+
$innofit_pricing_content_control = $wp_customize->get_setting( 'innofit_pricing_content' );
|
271 |
+
if ( ! empty( $innofit_pricing_content_control ) )
|
272 |
+
{
|
273 |
+
$innofit_pricing_content_control->default = json_encode(
|
274 |
+
|
275 |
+
array(
|
276 |
+
|
277 |
+
array(
|
278 |
+
'price_heighlight' => 'customizer_repeater_price_heighlight_nonlight',
|
279 |
+
),
|
280 |
+
|
281 |
+
|
282 |
) );
|
283 |
|
284 |
}
|
inc/innofit/customizer/about-section.php
CHANGED
File without changes
|
inc/innofit/customizer/callout-section.php
CHANGED
File without changes
|
inc/innofit/customizer/client-section.php
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//Client Section
|
3 |
+
|
4 |
+
$wp_customize->add_section('home_client_section',array(
|
5 |
+
'title' => __('Clients settings','spicebox'),
|
6 |
+
'panel' => 'section_settings',
|
7 |
+
'priority' => 15,
|
8 |
+
));
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
//Theme Custom typography plus
|
13 |
+
class Innofit_client_section_upgrade extends WP_Customize_Control {
|
14 |
+
public function render_content() { ?>
|
15 |
+
<h3><?php _e('Want to add client section? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
16 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
17 |
+
<?php
|
18 |
+
}
|
19 |
+
}
|
20 |
+
|
21 |
+
|
22 |
+
$wp_customize->add_setting( 'client_upgrade', array(
|
23 |
+
'capability' => 'edit_theme_options',
|
24 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
25 |
+
));
|
26 |
+
$wp_customize->add_control(
|
27 |
+
new Innofit_client_section_upgrade(
|
28 |
+
$wp_customize,
|
29 |
+
'client_upgrade',
|
30 |
+
array(
|
31 |
+
'section' => 'home_client_section',
|
32 |
+
'settings' => 'client_upgrade',
|
33 |
+
)
|
34 |
+
)
|
35 |
+
);
|
36 |
+
|
37 |
+
|
38 |
+
// Enable client section
|
39 |
+
$wp_customize->add_setting( 'client_section_enable' , array( 'default' => 'on') );
|
40 |
+
$wp_customize->add_control( 'client_section_enable' , array(
|
41 |
+
'label' => __( 'Enable Home Client section', 'spicebox' ),
|
42 |
+
'section' => 'home_client_section',
|
43 |
+
'type' => 'radio',
|
44 |
+
'choices' => array(
|
45 |
+
'on'=>__('ON', 'spicebox'),
|
46 |
+
'off'=>__('OFF', 'spicebox')
|
47 |
+
),
|
48 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
49 |
+
));
|
50 |
+
|
51 |
+
|
52 |
+
if ( class_exists( 'Innofit_Repeater' ) ) {
|
53 |
+
$wp_customize->add_setting(
|
54 |
+
'innofit_clients_content', array(
|
55 |
+
)
|
56 |
+
);
|
57 |
+
|
58 |
+
$wp_customize->add_control(
|
59 |
+
new Innofit_Repeater(
|
60 |
+
$wp_customize, 'innofit_clients_content', array(
|
61 |
+
'label' => esc_html__( 'Clients content', 'spicebox' ),
|
62 |
+
'section' => 'home_client_section',
|
63 |
+
'add_field_label' => esc_html__( 'Add new client', 'spicebox' ),
|
64 |
+
'item_name' => esc_html__( 'Client', 'spicebox' ),
|
65 |
+
'customizer_repeater_image_control' => true,
|
66 |
+
'customizer_repeater_link_control' => true,
|
67 |
+
'customizer_repeater_checkbox_control' => true,
|
68 |
+
)
|
69 |
+
)
|
70 |
+
);
|
71 |
+
}
|
72 |
+
|
73 |
+
$wp_customize->add_setting( 'client_background_text_static' , array( 'default' => 'on') );
|
74 |
+
$wp_customize->add_control( 'client_background_text_static' , array(
|
75 |
+
'label' => __( 'Client background text:', 'spicebox' ),
|
76 |
+
'section' => 'home_client_section',
|
77 |
+
'type' => 'radio',
|
78 |
+
'choices' => array(
|
79 |
+
'on'=>__('Marquee', 'spicebox'),
|
80 |
+
'off'=>__('Static', 'spicebox')
|
81 |
+
),
|
82 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
83 |
+
));
|
84 |
+
|
85 |
+
|
86 |
+
$wp_customize->add_setting( 'client_background_text',array(
|
87 |
+
'default' => __('<b>Our sponsors</b> Our sponsors','spicebox'),
|
88 |
+
'sanitize_callback' => 'innofitp_home_page_sanitize_text',
|
89 |
+
));
|
90 |
+
$wp_customize->add_control( 'client_background_text',array(
|
91 |
+
'label' => __('Background scroll text','spicebox'),
|
92 |
+
'section' => 'home_client_section',
|
93 |
+
'type' => 'text',
|
94 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
95 |
+
));
|
96 |
+
|
97 |
+
|
98 |
+
// animation speed
|
99 |
+
$wp_customize->add_setting( 'client_animation_speed', array( 'default' => 3000) );
|
100 |
+
$wp_customize->add_control( 'client_animation_speed',
|
101 |
+
array(
|
102 |
+
'label' => __( 'Animation speed', 'spicebox' ),
|
103 |
+
'section' => 'home_client_section',
|
104 |
+
'type' => 'select',
|
105 |
+
'choices'=>array(
|
106 |
+
'2000'=>'2.0',
|
107 |
+
'3000'=>'3.0',
|
108 |
+
'4000'=>'4.0',
|
109 |
+
'5000'=>'5.0',
|
110 |
+
'6000'=>'6.0',
|
111 |
+
),
|
112 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
113 |
+
));
|
114 |
+
|
115 |
+
|
116 |
+
// animation speed
|
117 |
+
$wp_customize->add_setting( 'client_smoothSpeed', array( 'default' => 1000) );
|
118 |
+
$wp_customize->add_control( 'client_smoothSpeed',
|
119 |
+
array(
|
120 |
+
'label' => __( 'Smooth speed', 'spicebox' ),
|
121 |
+
'section' => 'home_client_section',
|
122 |
+
'type' => 'select',
|
123 |
+
'choices'=>array(
|
124 |
+
'500'=>'0.5',
|
125 |
+
'1000'=>'1.0',
|
126 |
+
'1500'=>'1.5',
|
127 |
+
'2000'=>'2.0',
|
128 |
+
'2500'=>'2.5',
|
129 |
+
'3000'=>'3.0',
|
130 |
+
),
|
131 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
132 |
+
));
|
133 |
+
?>
|
inc/innofit/customizer/contact-section.php
CHANGED
File without changes
|
inc/innofit/customizer/customizer-render-callbacks.php
CHANGED
File without changes
|
inc/innofit/customizer/customizer_color_back_settings.php
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// Copyright section color and background settings
|
4 |
+
|
5 |
+
$wp_customize->add_section( 'footer_copyright_background_color_settings', array(
|
6 |
+
'title' => __('Footer Copyright', 'spicebox'),
|
7 |
+
'panel' => 'colors_back_settings',
|
8 |
+
) );
|
9 |
+
|
10 |
+
//Theme Custom typography plus
|
11 |
+
class Innofit_copyright_color_upgrade extends WP_Customize_Control {
|
12 |
+
public function render_content() { ?>
|
13 |
+
<h3><?php _e('Want to use copyright section color settings ? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
14 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
15 |
+
<?php
|
16 |
+
}
|
17 |
+
}
|
18 |
+
|
19 |
+
|
20 |
+
$wp_customize->add_setting( 'copyright_color_upgrade', array(
|
21 |
+
'capability' => 'edit_theme_options',
|
22 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
23 |
+
));
|
24 |
+
$wp_customize->add_control(
|
25 |
+
new Innofit_copyright_color_upgrade(
|
26 |
+
$wp_customize,
|
27 |
+
'copyright_color_upgrade',
|
28 |
+
array(
|
29 |
+
'section' => 'footer_copyright_background_color_settings',
|
30 |
+
'priority' => 1,
|
31 |
+
'settings' => 'copyright_color_upgrade',
|
32 |
+
)
|
33 |
+
)
|
34 |
+
);
|
35 |
+
|
36 |
+
|
37 |
+
//Copyright Text color
|
38 |
+
$wp_customize->add_setting('copyright_text_color', array(
|
39 |
+
'default' => '#ffffff',
|
40 |
+
'sanitize_callback' => 'sanitize_hex_color',
|
41 |
+
) );
|
42 |
+
|
43 |
+
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'copyright_text_color', array(
|
44 |
+
'label' => __('Text color', 'spicebox' ),
|
45 |
+
'section' => 'footer_copyright_background_color_settings',
|
46 |
+
'priority' => 2,
|
47 |
+
'settings' => 'copyright_text_color',)
|
48 |
+
) );
|
49 |
+
|
50 |
+
|
51 |
+
//Copyright Link color
|
52 |
+
$wp_customize->add_setting('copyright_link_color', array(
|
53 |
+
'default' => '#ffffff',
|
54 |
+
'sanitize_callback' => 'sanitize_hex_color',
|
55 |
+
) );
|
56 |
+
|
57 |
+
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'copyright_link_color', array(
|
58 |
+
'label' => __('Link color', 'spicebox' ),
|
59 |
+
'priority' => 3,
|
60 |
+
'section' => 'footer_copyright_background_color_settings',
|
61 |
+
'settings' => 'copyright_link_color',)
|
62 |
+
) );
|
63 |
+
|
64 |
+
|
65 |
+
//Copyright Link Hover color
|
66 |
+
$wp_customize->add_setting('copyright_link_hover_color', array(
|
67 |
+
'default' => '#ffffff',
|
68 |
+
'sanitize_callback' => 'sanitize_hex_color',
|
69 |
+
) );
|
70 |
+
|
71 |
+
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'copyright_link_hover_color', array(
|
72 |
+
'label' => __('Link Hover color', 'spicebox' ),
|
73 |
+
'priority' => 4,
|
74 |
+
'section' => 'footer_copyright_background_color_settings',
|
75 |
+
'settings' => 'copyright_link_hover_color',)
|
76 |
+
) );
|
77 |
+
|
78 |
+
|
79 |
+
//Copyright background color
|
80 |
+
$wp_customize->add_setting('copyright_background_color', array(
|
81 |
+
'default' => '#2a83e8',
|
82 |
+
'sanitize_callback' => 'sanitize_hex_color',
|
83 |
+
) );
|
84 |
+
|
85 |
+
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'copyright_background_color', array(
|
86 |
+
'label' => __('Footer background color', 'spicebox' ),
|
87 |
+
'section' => 'footer_copyright_background_color_settings',
|
88 |
+
'priority' => 10,
|
89 |
+
'settings' => 'copyright_background_color',)
|
90 |
+
) );
|
inc/innofit/customizer/customizer_layout_manager.php
ADDED
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php // Adding customizer layout manager settings
|
2 |
+
|
3 |
+
class WP_innofit_layout_Customize_Control extends WP_Customize_Control {
|
4 |
+
|
5 |
+
public $type = 'new_menu';
|
6 |
+
|
7 |
+
public function render_content() {
|
8 |
+
|
9 |
+
$front_page = get_theme_mod('front_page_data','services,about,portfolio,funfact,wooproduct,testimonial,team,pricing,news,map,contact,subscriber,client,instagram');
|
10 |
+
$data_enable = explode(",",$front_page);
|
11 |
+
$defaultenableddata=array('services','about','portfolio','funfact','wooproduct','testimonial','team','pricing','news','map','contact','subscriber','client','instagram');
|
12 |
+
$layout_disable=array_diff($defaultenableddata,$data_enable);
|
13 |
+
?>
|
14 |
+
|
15 |
+
<h3><?php esc_attr_e('Enable','spicebox'); ?></h3>
|
16 |
+
<ul class="sortable customizer_layout" id="enable">
|
17 |
+
<?php if( !empty($data_enable[0]) ) { foreach( $data_enable as $value ){ ?>
|
18 |
+
<li class="ui-state" id="<?php echo $value; ?>"><?php echo $value; ?></li>
|
19 |
+
<?php } } ?>
|
20 |
+
</ul>
|
21 |
+
|
22 |
+
|
23 |
+
<h3><?php esc_attr_e('Disable','spicebox'); ?></h3>
|
24 |
+
<ul class="sortable customizer_layout" id="disable">
|
25 |
+
<?php if(!empty($layout_disable)){ foreach($layout_disable as $val){ ?>
|
26 |
+
<li class="ui-state" id="<?php echo $val; ?>"><?php echo $val; ?></li>
|
27 |
+
<?php } } ?>
|
28 |
+
</ul>
|
29 |
+
<div class="section">
|
30 |
+
<p> <b><?php esc_attr_e('Slider has fixed position on homepage','spicebox'); ?></b></p>
|
31 |
+
<p> <b><?php esc_attr_e('Note','spicebox'); ?> </b> <?php esc_attr_e('By default, all sections are enabled on homepage. If you wish not to display a section, just drag it onto the "disabled" box.','spicebox'); ?><p>
|
32 |
+
</div>
|
33 |
+
<script>
|
34 |
+
jQuery(document).ready(function($) {
|
35 |
+
$( ".sortable" ).sortable({
|
36 |
+
connectWith: '.sortable'
|
37 |
+
});
|
38 |
+
});
|
39 |
+
|
40 |
+
jQuery(document).ready(function($){
|
41 |
+
|
42 |
+
// Get items id you can chose
|
43 |
+
function innofitItems(spicethemes)
|
44 |
+
{
|
45 |
+
var columns = [];
|
46 |
+
$(spicethemes + ' #enable').each(function(){
|
47 |
+
columns.push($(this).sortable('toArray').join(','));
|
48 |
+
});
|
49 |
+
return columns.join('|');
|
50 |
+
}
|
51 |
+
|
52 |
+
function spicethemesItems_disable(spicethemes)
|
53 |
+
{
|
54 |
+
var columns = [];
|
55 |
+
$(spicethemes + ' #disable').each(function(){
|
56 |
+
columns.push($(this).sortable('toArray').join(','));
|
57 |
+
});
|
58 |
+
return columns.join('|');
|
59 |
+
}
|
60 |
+
|
61 |
+
//onclick check id
|
62 |
+
$('#enable .ui-state,#disable .ui-state').mouseleave(function(){
|
63 |
+
var enable = innofitItems('#customize-control-layout_manager');
|
64 |
+
$("#customize-control-front_page_data input[type = 'text']").val(enable);
|
65 |
+
$("#customize-control-front_page_data input[type = 'text']").change();
|
66 |
+
});
|
67 |
+
|
68 |
+
});
|
69 |
+
</script>
|
70 |
+
<?php } }
|
71 |
+
/* layout manager section */
|
72 |
+
$wp_customize->add_section( 'frontpage_layout' , array(
|
73 |
+
'title' => __('Theme Layout Manager', 'spicebox'),
|
74 |
+
'priority' => 991,
|
75 |
+
) );
|
76 |
+
|
77 |
+
//Theme Custom typography plus
|
78 |
+
class Innofit_layout_manager_section_upgrade extends WP_Customize_Control {
|
79 |
+
public function render_content() { ?>
|
80 |
+
<h3><?php _e('Want to change home page layout section? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
81 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
82 |
+
<?php
|
83 |
+
}
|
84 |
+
}
|
85 |
+
|
86 |
+
|
87 |
+
$wp_customize->add_setting( 'layoutmanager_upgrade', array(
|
88 |
+
'capability' => 'edit_theme_options',
|
89 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
90 |
+
));
|
91 |
+
$wp_customize->add_control(
|
92 |
+
new Innofit_layout_manager_section_upgrade(
|
93 |
+
$wp_customize,
|
94 |
+
'layoutmanager_upgrade',
|
95 |
+
array(
|
96 |
+
'section' => 'frontpage_layout',
|
97 |
+
'settings' => 'layoutmanager_upgrade',
|
98 |
+
)
|
99 |
+
)
|
100 |
+
);
|
101 |
+
|
102 |
+
$wp_customize->add_setting(
|
103 |
+
'layout_manager',
|
104 |
+
array(
|
105 |
+
'capability' => 'edit_theme_options',
|
106 |
+
'sanitize_callback' => 'sanitize_text_field',
|
107 |
+
|
108 |
+
)
|
109 |
+
);
|
110 |
+
$wp_customize->add_control( new WP_innofit_layout_Customize_Control( $wp_customize, 'layout_manager', array(
|
111 |
+
'section' => 'frontpage_layout',
|
112 |
+
'setting' => 'layout_manager',
|
113 |
+
))
|
114 |
+
);
|
115 |
+
|
116 |
+
$wp_customize->add_setting(
|
117 |
+
'front_page_data',
|
118 |
+
array(
|
119 |
+
'default' =>'services,about,portfolio,funfact,wooproduct,testimonial,team,pricing,news,map,contact,subscriber,client,instagram',
|
120 |
+
'capability' => 'edit_theme_options',
|
121 |
+
'sanitize_callback' => 'sanitize_text_field',
|
122 |
+
)
|
123 |
+
);
|
124 |
+
$wp_customize->add_control('front_page_data', array(
|
125 |
+
'label' => __('Enable','spicebox'),
|
126 |
+
'section' => 'frontpage_layout',
|
127 |
+
'type' => 'text'
|
128 |
+
)); // enable textbox
|
inc/innofit/customizer/customizer_theme_style.php
ADDED
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
//Theme style plus
|
5 |
+
class Innofit_theme_style_upgrade extends WP_Customize_Control {
|
6 |
+
public function render_content() { ?>
|
7 |
+
<h3><?php _e('Want to change your theme style? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
8 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
9 |
+
<?php
|
10 |
+
}
|
11 |
+
}
|
12 |
+
|
13 |
+
|
14 |
+
$wp_customize->add_setting( 'theme_color_upgrade', array(
|
15 |
+
'capability' => 'edit_theme_options',
|
16 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
17 |
+
));
|
18 |
+
$wp_customize->add_control(
|
19 |
+
new Innofit_theme_style_upgrade(
|
20 |
+
$wp_customize,
|
21 |
+
'theme_color_upgrade',
|
22 |
+
array(
|
23 |
+
'section' => 'theme_style',
|
24 |
+
'settings' => 'theme_color_upgrade',
|
25 |
+
)
|
26 |
+
)
|
27 |
+
);
|
28 |
+
|
29 |
+
|
30 |
+
// Adding customizer home page setting
|
31 |
+
$wp_customize->remove_control('header_textcolor');
|
32 |
+
|
33 |
+
//Image Background image
|
34 |
+
class WP_innofit_pre_Customize_Control extends WP_Customize_Control {
|
35 |
+
public $type = 'new_menu';
|
36 |
+
|
37 |
+
function render_content()
|
38 |
+
|
39 |
+
{
|
40 |
+
echo '<h3>'.__('Predefined default background','spicebox').'</h3>';
|
41 |
+
$name = '_customize-image-radio-' . $this->id;
|
42 |
+
$i=1;
|
43 |
+
foreach($this->choices as $key => $value ) {
|
44 |
+
?>
|
45 |
+
<label>
|
46 |
+
<input type="radio" disabled value="<?php echo $key; ?>" name="<?php echo esc_attr( $name ); ?>" data-customize-setting-link="<?php echo esc_attr( $this->id ); ?>" <?php if($this->value() == $key){ echo 'checked'; } ?>>
|
47 |
+
<img src="<?php echo SPICEB_PLUGIN_URL; ?>inc/innofit/images/bg-pattern/<?php echo $value; ?>" alt="<?php echo esc_attr( $value ); ?>" />
|
48 |
+
</label>
|
49 |
+
<?php
|
50 |
+
if($i==4)
|
51 |
+
{
|
52 |
+
echo '<p></p>';
|
53 |
+
$i=0;
|
54 |
+
}
|
55 |
+
$i++;
|
56 |
+
|
57 |
+
} ?>
|
58 |
+
<h3><?php esc_attr_e('Background Image','spicebox'); ?></h3>
|
59 |
+
<p><?php esc_attr_e('Go to','spicebox'); ?> => <?php esc_attr_e('Appearance','spicebox'); ?> => <?php esc_attr_e('Customize','spicebox');?> => <?php esc_attr_e('Background Image','spicebox'); ?></p><br/>
|
60 |
+
<h3><?php esc_attr_e('Background Color','spicebox'); ?></h3>
|
61 |
+
<p> <?php esc_attr_e('Go to','spicebox'); ?> => <?php esc_attr_e('Appearance','spicebox'); ?> => <?php esc_attr_e('Customize','spicebox');?> => <?php esc_attr_e('Colors','spicebox'); ?> </p>
|
62 |
+
<script>
|
63 |
+
jQuery(document).ready(function($) {
|
64 |
+
$("#customize-control-predefined_back_image label img").click(function(){
|
65 |
+
$("#customize-control-predefined_back_image label img").removeClass("color_scheem_active");
|
66 |
+
$(this).addClass("color_scheem_active");
|
67 |
+
});
|
68 |
+
});
|
69 |
+
</script>
|
70 |
+
<?php
|
71 |
+
}
|
72 |
+
|
73 |
+
}
|
74 |
+
|
75 |
+
//Layout Style
|
76 |
+
class WP_innofit_style_layout_Customize_Control extends WP_Customize_Control {
|
77 |
+
public $type = 'new_menu';
|
78 |
+
|
79 |
+
function render_content()
|
80 |
+
|
81 |
+
{
|
82 |
+
echo '<h3>',__('Theme Layout','spicebox').'</h3>';
|
83 |
+
$name = '_customize-layout-radio-' . $this->id;
|
84 |
+
foreach($this->choices as $key => $value ) {
|
85 |
+
?>
|
86 |
+
<label>
|
87 |
+
<input type="radio" disabled value="<?php echo $key; ?>" name="<?php echo esc_attr( $name ); ?>" data-customize-setting-link="<?php echo esc_attr( $this->id ); ?>" <?php if($this->value() == $key){ echo 'checked'; } ?>>
|
88 |
+
<img <?php if($this->value() == $key){ echo 'class="color_scheem_active"'; } ?> src="<?php echo SPICEB_PLUGIN_URL; ?>inc/innofit/images/bg-pattern/<?php echo $value; ?>" alt="<?php echo esc_attr( $value ); ?>" />
|
89 |
+
</label>
|
90 |
+
|
91 |
+
<?php
|
92 |
+
} ?>
|
93 |
+
<script>
|
94 |
+
jQuery(document).ready(function($) {
|
95 |
+
$("#customize-control-innofit_layout_style label img").click(function(){
|
96 |
+
$("#customize-control-innofit_layout_style label img").removeClass("color_scheem_active");
|
97 |
+
$(this).addClass("color_scheem_active");
|
98 |
+
});
|
99 |
+
});
|
100 |
+
</script>
|
101 |
+
<?php
|
102 |
+
}
|
103 |
+
|
104 |
+
}
|
105 |
+
|
106 |
+
// Theme color
|
107 |
+
class WP_innofit_color_Customize_Control extends WP_Customize_Control {
|
108 |
+
public $type = 'new_menu';
|
109 |
+
|
110 |
+
function render_content()
|
111 |
+
|
112 |
+
{
|
113 |
+
echo '<h3>'.__('Predefined Colors','spicebox').'</h3>';
|
114 |
+
$name = '_customize-color-radio-' . $this->id;
|
115 |
+
foreach($this->choices as $key => $value ) {
|
116 |
+
?>
|
117 |
+
<label>
|
118 |
+
<input type="radio" value="<?php echo $key; ?>" name="<?php echo esc_attr( $name ); ?>" data-customize-setting-link="<?php echo esc_attr( $this->id ); ?>" <?php if($this->value() == $key){ echo 'checked="checked"'; } ?>>
|
119 |
+
<img <?php if($this->value() == $key){ echo 'class="color_scheem_active"'; } ?> src="<?php echo SPICEB_PLUGIN_URL; ?>inc/innofit/images/bg-pattern/<?php echo $value; ?>" alt="<?php echo esc_attr( $value ); ?>" />
|
120 |
+
</label>
|
121 |
+
|
122 |
+
<?php
|
123 |
+
}
|
124 |
+
?>
|
125 |
+
<script>
|
126 |
+
jQuery(document).ready(function($) {
|
127 |
+
$("#customize-control-theme_color label img").click(function(){
|
128 |
+
$("#customize-control-theme_color label img").removeClass("color_scheem_active");
|
129 |
+
$(this).addClass("color_scheem_active");
|
130 |
+
});
|
131 |
+
});
|
132 |
+
</script>
|
133 |
+
<?php
|
134 |
+
}
|
135 |
+
|
136 |
+
}
|
137 |
+
|
138 |
+
/* Theme Style settings */
|
139 |
+
$wp_customize->add_section( 'theme_style' , array(
|
140 |
+
'title' => __('Theme style settings', 'spicebox'),
|
141 |
+
'priority' => 105,
|
142 |
+
) );
|
143 |
+
|
144 |
+
// Theme Color Scheme
|
145 |
+
$wp_customize->add_setting(
|
146 |
+
'theme_color', array(
|
147 |
+
'default' => 'default.css',
|
148 |
+
'capability' => 'edit_theme_options',
|
149 |
+
));
|
150 |
+
$wp_customize->add_control( new WP_innofit_color_Customize_Control($wp_customize,'theme_color',
|
151 |
+
array(
|
152 |
+
'label' => __('Predefined colors', 'spicebox'),
|
153 |
+
'section' => 'theme_style',
|
154 |
+
'type' => 'radio',
|
155 |
+
'choices' => array(
|
156 |
+
'default.css' => 'blue.png',
|
157 |
+
'green.css' => 'green.png',
|
158 |
+
'red.css' => 'red.png',
|
159 |
+
'purple.css' => 'purple.png',
|
160 |
+
'orange.css' => 'orange.png',
|
161 |
+
'yellow.css' => 'yellow.png',
|
162 |
+
|
163 |
+
))));
|
164 |
+
|
165 |
+
// enable / disable custom color settings
|
166 |
+
$wp_customize->add_setting(
|
167 |
+
'custom_color_enable',
|
168 |
+
array('capability' => 'edit_theme_options',
|
169 |
+
'default' => false,
|
170 |
+
|
171 |
+
));
|
172 |
+
$wp_customize->add_control(
|
173 |
+
'custom_color_enable',
|
174 |
+
array(
|
175 |
+
'type' => 'checkbox',
|
176 |
+
'label' => __('Enable custom color skin','spicebox'),
|
177 |
+
'section' => 'theme_style',
|
178 |
+
)
|
179 |
+
);
|
180 |
+
|
181 |
+
// link color settings
|
182 |
+
$wp_customize->add_setting(
|
183 |
+
'link_color', array(
|
184 |
+
'capability' => 'edit_theme_options',
|
185 |
+
'default' => '#e32235'
|
186 |
+
));
|
187 |
+
|
188 |
+
$wp_customize->add_control(
|
189 |
+
new WP_Customize_Color_Control(
|
190 |
+
$wp_customize,
|
191 |
+
'link_color',
|
192 |
+
array(
|
193 |
+
'label' => __( 'Skin color', 'spicebox' ),
|
194 |
+
'section' => 'theme_style',
|
195 |
+
'settings' => 'link_color',
|
196 |
+
) ) );
|
197 |
+
|
198 |
+
//Theme Layout
|
199 |
+
$wp_customize->add_setting(
|
200 |
+
'innofit_layout_style', array(
|
201 |
+
'default' => 'wide.jpg',
|
202 |
+
'capability' => 'edit_theme_options',
|
203 |
+
));
|
204 |
+
$wp_customize->add_control(new WP_innofit_style_layout_Customize_Control($wp_customize,'innofit_layout_style',
|
205 |
+
array(
|
206 |
+
'label' => __('Layout style', 'spicebox'),
|
207 |
+
'section' => 'theme_style',
|
208 |
+
'type' => 'radio',
|
209 |
+
'choices' => array(
|
210 |
+
'wide' => 'wide.png',
|
211 |
+
'boxed' => 'boxed.png',
|
212 |
+
)
|
213 |
+
|
214 |
+
)));
|
215 |
+
|
216 |
+
|
217 |
+
//Predefined Background image
|
218 |
+
$wp_customize->add_setting(
|
219 |
+
'predefined_back_image', array(
|
220 |
+
'default' => 'bg-img1.png',
|
221 |
+
'capability' => 'edit_theme_options',
|
222 |
+
));
|
223 |
+
$wp_customize->add_control(new WP_innofit_pre_Customize_Control($wp_customize,'predefined_back_image',
|
224 |
+
array(
|
225 |
+
'label' => __('Predefined default background', 'spicebox'),
|
226 |
+
'section' => 'theme_style',
|
227 |
+
'type' => 'radio',
|
228 |
+
'choices' => array(
|
229 |
+
'bg-img0.png' => 'sm0.png',
|
230 |
+
'bg-img1.png' => 'sm1.png',
|
231 |
+
'bg-img2.png' => 'sm2.png',
|
232 |
+
'bg-img3.png' => 'sm3.png',
|
233 |
+
'bg-img4.png' => 'sm4.png',
|
234 |
+
'bg-img5.png' => 'sm5.png',
|
235 |
+
'bg-img6.jpg' => 'sm6.jpg',
|
236 |
+
'bg-img7.jpg' => 'sm7.jpg',
|
237 |
+
'bg-img8.jpg' => 'sm8.jpg',
|
238 |
+
'bg-img9.jpg' => 'sm9.jpg',
|
239 |
+
'bg-img10.jpg' => 'sm10.jpg',
|
240 |
+
))));
|
inc/innofit/customizer/customizer_typography.php
ADDED
@@ -0,0 +1,479 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$wp_customize->add_panel( 'innofit_typography_setting', array(
|
3 |
+
'priority' => 990,
|
4 |
+
'capability' => 'edit_theme_options',
|
5 |
+
'title' => __('Typography settings','spicebox'),
|
6 |
+
) );
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
// Enble / Disable typography section
|
11 |
+
$wp_customize->add_section( 'innofit_typography_section' , array(
|
12 |
+
'title' => __('Custom typography', 'spicebox'),
|
13 |
+
'panel' => 'innofit_typography_setting',
|
14 |
+
'priority' => 0,
|
15 |
+
) );
|
16 |
+
|
17 |
+
|
18 |
+
//Theme Custom typography plus
|
19 |
+
class Innofit_custom_typography_section_upgrade extends WP_Customize_Control {
|
20 |
+
public function render_content() { ?>
|
21 |
+
<h3><?php _e('Want to use custom typograpgy? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
22 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
23 |
+
<?php
|
24 |
+
}
|
25 |
+
}
|
26 |
+
|
27 |
+
|
28 |
+
$wp_customize->add_setting( 'custom_typography_upgrade', array(
|
29 |
+
'capability' => 'edit_theme_options',
|
30 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
31 |
+
));
|
32 |
+
$wp_customize->add_control(
|
33 |
+
new Innofit_custom_typography_section_upgrade(
|
34 |
+
$wp_customize,
|
35 |
+
'custom_typography_upgrade',
|
36 |
+
array(
|
37 |
+
'section' => 'innofit_typography_section',
|
38 |
+
'settings' => 'custom_typography_upgrade',
|
39 |
+
)
|
40 |
+
)
|
41 |
+
);
|
42 |
+
|
43 |
+
$wp_customize->add_setting(
|
44 |
+
'enable_custom_typography',
|
45 |
+
array(
|
46 |
+
'default' => false,
|
47 |
+
'capability' => 'edit_theme_options',
|
48 |
+
'sanitize_callback' => 'sanitize_text_field',
|
49 |
+
) );
|
50 |
+
|
51 |
+
$wp_customize->add_control('enable_custom_typography', array(
|
52 |
+
'label' => __('Enable custom typography','spicebox'),
|
53 |
+
'section' => 'innofit_typography_section',
|
54 |
+
'setting' => 'enable_custom_typography',
|
55 |
+
'type' => 'checkbox'
|
56 |
+
));
|
57 |
+
|
58 |
+
$font_size = array();
|
59 |
+
for($i=9; $i<=100; $i++)
|
60 |
+
{
|
61 |
+
$font_size[$i] = $i;
|
62 |
+
}
|
63 |
+
|
64 |
+
$font_family = array('ABeeZee' => 'ABeeZee', 'Abel' => 'Abel', 'Abril Fatface' => 'Abril Fatface', 'Aclonica' => 'Aclonica', 'Acme'=> 'Acme', 'Actor'=>'Actor', 'Adamina' => 'Adamina', 'Advent Pro' => 'Advent Pro', 'Aguafina Script' => 'Aguafina Script', 'Akronim' => 'Akronim', 'Aladin'=> 'Aladin', 'Aldrich'=>'Aldrich', 'Alef' => 'Alef', 'Alegreya' => 'Alegreya', 'Alegreya SC' => 'Alegreya SC', 'Alegreya Sans' => 'Alegreya Sans', 'Alegreya Sans SC'=>'Alegreya Sans SC', 'Alex Brush' => 'Alex Brush', 'Alfa Slab One' => 'Alfa Slab One', 'Alice' => 'Alice', 'Alike' => 'Alike', 'Alike Angular' => 'Alike Angular', 'Allan' => 'Allan', 'Allerta' => 'Allerta', 'Allerta Stencil' => 'Allerta Stencil', 'Allura' => 'Allura', 'Almendra' => 'Almendra', 'Almendra Display' => 'Almendra Display', 'Almendra SC' => 'Almendra SC', 'Amarante' => 'Amarante', 'Amaranth' => 'Amaranth', 'Amatic SC' => 'Amatic SC', 'Amatica SC' => 'Amatica SC', 'Amethysta' => 'Amethysta', 'Amiko' => 'Amiko', 'Amiri' => 'Amiri', 'Amita' => 'Amita', 'Anaheim' => 'Anaheim', 'Andada' => 'Andada', 'Andika' => 'Andika', 'Angkor' => 'Angkor', 'Annie Use Your Telescope' => 'Annie Use Your Telescope', 'Anonymous Pro' => 'Anonymous Pro', 'Antic' => 'Antic', 'Antic Didone' => 'Antic Didone', 'Antic Slab' => 'Antic Slab', 'Anton' => 'Anton', 'Arapey' => 'Arapey', 'Arbutus' => 'Arbutus', 'Arbutus Slab' => 'Arbutus Slab', 'Architects Daughter' => 'Architects Daughter', 'Archivo Black' => 'Archivo Black', 'Archivo Narrow' => 'Archivo Narrow', 'Aref Ruqaa' => 'Aref Ruqaa', 'Arima Madurai' => 'Arima Madurai', 'Arimo' => 'Arimo', 'Arizonia' => 'Arizonia', 'Armata' => 'Armata', 'Artifika' => 'Artifika', 'Arvo'=>'Arvo', 'Arya'=>'Arya', 'Asap'=>'Asap', 'Asar'=>'Asar', 'Asset'=>'Asset', 'Assistant'=>'Assistant', 'Astloch'=>'Astloch', 'Asul'=>'Asul', 'Athiti'=>'Athiti', 'Atma'=>'Atma', 'Atomic Age'=>'Atomic Age', 'Aubrey'=>'Aubrey', 'Audiowide'=>'Audiowide', 'Autour One'=>'Autour One', 'Average'=>'Average', 'Average Sans'=>'Average Sans', 'Averia Gruesa Libre'=>'Averia Gruesa Libre', 'Averia Libre'=>'Averia Libre', 'Averia Sans Libre'=> 'Averia Sans Libre', 'Averia Serif Libre'=>'Averia Serif Libre', 'Bad Script'=>'Bad Script', 'Baloo'=>'Baloo', 'Baloo Bhai'=>'Baloo Bhai', 'Baloo Da'=>'Baloo Da', 'Baloo Thambi'=>'Baloo Thambi', 'Balthazar'=>'Balthazar', 'Bangers'=>'Bangers', 'Basic'=>'Basic', 'Battambang'=>'Battambang', 'Baumans'=>'Baumans', 'Bayon'=>'Bayon', 'Belgrano'=>'Belgrano', 'Belleza'=>'Belleza', 'BenchNine'=>'BenchNine', 'Bentham'=>'Bentham', 'Berkshire Swash'=>'Berkshire Swash', 'Bevan'=>'Bevan', 'Bigelow Rules'=>'Bigelow Rules', 'Bigshot One'=>'Bigshot One', 'Bilbo'=>'Bilbo', 'Bilbo Swash Caps'=>'Bilbo Swash Caps', 'BioRhyme'=>'BioRhyme', 'BioRhyme Expanded'=>'BioRhyme Expanded', 'Biryani'=>'Biryani', 'Bitter'=>'Bitter', 'Black Ops One'=>'Black Ops One', 'Bokor'=>'Bokor', 'Bonbon'=>'Bonbon', 'Boogaloo'=>'Boogaloo', 'Bowlby One'=>'Bowlby One', 'Bowlby One SC'=>'Bowlby One SC', 'Brawler'=>'Brawler', 'Bree Serif'=>'Bree Serif', 'Bubblegum Sans'=>'Bubblegum Sans', 'Bubbler One'=>'Bubbler One', 'Buda'=>'Buda', 'Buenard'=>'Buenard', 'Bungee'=>'Bungee', 'Bungee Hairline'=>'Bungee Hairline', 'Bungee Inline'=>'Bungee Inline', 'Bungee Outline'=>'Bungee Outline', 'Bungee Shade'=>'Bungee Shade', 'Butcherman'=>'Butcherman', 'Butterfly Kids'=>'Butterfly Kids', 'Cabin'=>'Cabin', 'Cabin Condensed'=>'Cabin Condensed', 'Cabin Sketch'=>'Cabin Sketch', 'Caesar Dressing'=>'Caesar Dressing', 'Cagliostro'=>'Cagliostro', 'Cairo'=>'Cairo', 'Calligraffitti'=>'Calligraffitti', 'Cambay'=>'Cambay', 'Cambo'=>'Cambo', 'Candal'=>'Candal', 'Cantarell'=>'Cantarell', 'Cantata One'=>'Cantata One', 'Cantora One'=>'Cantora One', 'Capriola'=>'Capriola', 'Cardo'=>'Cardo', 'Carme'=>'Carme', 'Carrois Gothic'=>'Carrois Gothic', 'Carrois Gothic SC'=>'Carrois Gothic SC', 'Carter One'=>'Carter One', 'Catamaran'=>'Catamaran', 'Caudex'=>'Caudex', 'Caveat'=>'Caveat', 'Caveat Brush'=>'Caveat Brush', 'Cedarville Cursive'=>'Cedarville Cursive', 'Ceviche One'=>'Ceviche One', 'Changa'=>'Changa', 'Changa One'=>'Changa One', 'Chango'=>'Chango', 'Chathura'=>'Chathura', 'Chau Philomene One'=>'Chau Philomene One', 'Chela One'=>'Chela One', 'Chelsea Market'=>'Chelsea Market', 'Chenla'=>'Chenla', 'Cherry Cream Soda'=>'Cherry Cream Soda', 'Cherry Swash'=>'Cherry Swash', 'Chewy'=>'Chewy', 'Chicle'=>'Chicle', 'Chivo'=>'Chivo', 'Chonburi'=>'Chonburi', 'Cinzel'=>'Cinzel', 'Cinzel Decorative'=>'Cinzel Decorative', 'Clicker Script'=>'Clicker Script', 'Coda'=>'Coda', 'Coda Caption'=>'Coda Caption', 'Codystar'=>'Codystar', 'Coiny'=>'Coiny', 'Combo'=>'Combo', 'Comfortaa'=>'Comfortaa', 'Coming Soon'=>'Coming Soon', 'Concert One'=>'Concert One', 'Condiment'=>'Condiment', 'Content'=>'Content', 'Contrail One'=>'Contrail One', 'Convergence'=>'Convergence', 'Cookie'=>'Cookie', 'Copse'=>'Copse', 'Corben'=>'Corben', 'Cormorant'=>'Cormorant', 'Cormorant Garamond'=>'Cormorant Garamond', 'Cormorant Infant'=>'Cormorant Infant', 'Cormorant SC'=>'Cormorant SC', 'Cormorant Unicase'=>'Cormorant Unicase', 'Cormorant Upright'=>'Cormorant Upright', 'Courgette'=>'Courgette', 'Cousine'=>'Cousine', 'Coustard'=>'Coustard', 'Covered By Your Grace'=>'Covered By Your Grace', 'Crafty Girls'=>'Crafty Girls', 'Creepster'=>'Creepster', 'Crete Round'=>'Crete Round', 'Crimson Text'=>'Crimson Text', 'Croissant One'=>'Croissant One', 'Crushed'=>'Crushed', 'Cuprum'=>'Cuprum', 'Cutive'=>'Cutive', 'Cutive Mono'=>'Cutive Mono', 'Damion'=>'Damion', 'Dancing Script'=>'Dancing Script', 'Dangrek'=>'Dangrek', 'David Libre'=>'David Libre', 'Dawning of a New Day'=>'Dawning of a New Day', 'Days One'=>'Days One', 'Dekko'=>'Dekko', 'Delius'=>'Delius', 'Delius Swash Caps'=>'Delius Swash Caps', 'Delius Unicase'=>'Delius Unicase', 'Della Respira'=>'Della Respira', 'Denk One'=>'Denk One', 'Devonshire'=>'Devonshire', 'Dhurjati'=>'Dhurjati', 'Didact Gothic'=>'Didact Gothic', 'Diplomata'=>'Diplomata', 'Diplomata SC'=>'Diplomata SC', 'Domine'=>'Domine', 'Donegal One'=>'Donegal One', 'Doppio One'=>'Doppio One', 'Dorsa'=>'Dorsa', 'Dosis'=>'Dosis', 'Dr Sugiyama'=>'Dr Sugiyama', 'Droid Sans'=>'Droid Sans', 'Droid Sans Mono'=>'Droid Sans Mono', 'Droid Serif'=>'Droid Serif', 'Duru Sans'=>'Duru Sans', 'Dynalight'=>'Dynalight', 'EB Garamond'=>'EB Garamond', 'Eagle Lake'=>'Eagle Lake', 'Eater'=>'Eater', 'Economica'=>'Economica', 'Eczar'=>'Eczar', 'Ek Mukta'=>'Ek Mukta', 'El Messiri'=>'El Messiri', 'Electrolize'=>'Electrolize', 'Elsie'=>'Elsie', 'Elsie Swash Caps'=>'Elsie Swash Caps', 'Emblema One'=>'Emblema One', 'Emilys Candy'=>'Emilys Candy', 'Engagement'=>'Engagement', 'Englebert'=>'Englebert', 'Enriqueta'=>'Enriqueta', 'Erica One'=>'Erica One', 'Esteban'=>'Esteban', 'Euphoria Script'=>'Euphoria Script', 'Ewert'=>'Ewert', 'Exo'=>'Exo', 'Exo 2'=>'Exo 2', 'Expletus Sans'=>'Expletus Sans', 'Fanwood Text'=>'Fanwood Text', 'Farsan'=>'Farsan', 'Fascinate'=>'Fascinate', 'Fascinate Inline'=>'Fascinate Inline', 'Faster One'=>'Faster One', 'Fasthand'=>'Fasthand', 'Fauna One'=>'Fauna One', 'Federant'=>'Federant', 'Federo'=>'Federo', 'Felipa'=>'Felipa', 'Fenix'=>'Fenix', 'Finger Paint'=>'Finger Paint', 'Fira Mono'=>'Fira Mono', 'Fira Sans'=>'Fira Sans', 'Fjalla One'=>'Fjalla One', 'Fjord One'=>'Fjord One', 'Flamenco'=>'Flamenco', 'Flavors'=>'Flavors', 'Fondamento'=>'Fondamento', 'Fontdiner Swanky'=>'Fontdiner Swanky', 'Forum'=>'Forum', 'Francois One'=>'Francois One', 'Frank Ruhl Libre'=>'Frank Ruhl Libre', 'Freckle Face'=>'Freckle Face', 'Fredericka the Great'=>'Fredericka the Great', 'Fredoka One'=>'Fredoka One', 'Freehand'=>'Freehand', 'Fresca'=>'Fresca', 'Frijole'=>'Frijole', 'Fruktur'=>'Fruktur', 'Fugaz One'=>'Fugaz One', 'GFS Didot'=>'GFS Didot', 'GFS Neohellenic'=>'GFS Neohellenic', 'Gabriela'=>'Gabriela', 'Gafata'=>'Gafata', 'Galada'=>'Galada', 'Galdeano'=>'Galdeano', 'Galindo'=>'Galindo', 'Gentium Basic'=>'Gentium Basic', 'Gentium Book Basic'=>'Gentium Book Basic','Geo' =>'Geo', 'Geostar'=>'Geostar', 'Geostar Fill'=>'Geostar Fill', 'Germania One'=>'Germania One','Gidugu' =>'Gidugu', 'Gilda Display'=>'Gilda Display', 'Give You Glory'=>'Give You Glory', 'Glass Antiqua'=>'Glass Antiqua', 'Glegoo'=>'Glegoo', 'Gloria Hallelujah'=>'Gloria Hallelujah', 'Goblin One'=>'Goblin One', 'Gochi Hand'=>'Gochi Hand', 'Gorditas'=>'Gorditas', 'Goudy Bookletter 1911'=>'Goudy Bookletter 1911', 'Graduate'=>'Graduate', 'Grand Hotel'=>'Grand Hotel', 'Gravitas One'=>'Gravitas One', 'Great Vibes'=>'Great Vibes', 'Griffy'=>'Griffy', 'Gruppo'=>'Gruppo', 'Gudea'=>'Gudea', 'Gurajada'=>'Gurajada', 'Habibi' => 'Habibi', 'Halant' => 'Halant', 'Hammersmith One' => 'Hammersmith One', 'Hanalei' => 'Hanalei', 'Hanalei Fill' => 'Hanalei Fill', 'Handlee' => 'Handlee', 'Hanuman' => 'Hanuman', 'Happy Monkey' => 'Happy Monkey', 'Harmattan' => 'Harmattan', 'Headland One' => 'Headland One', 'Heebo' => 'Heebo', 'Henny Penny' => 'Henny Penny', 'Herr Von Muellerhoff' => 'Herr Von Muellerhoff', 'Hind' => 'Hind', 'Hind Guntur' => 'Hind Guntur', 'Hind Madurai' => 'Hind Madurai', 'Hind Siliguri' => 'Hind Siliguri', 'Hind Vadodara' => 'Hind Vadodara', 'Holtwood One SC' => 'Holtwood One SC', 'Homemade Apple' => 'Homemade Apple', 'Homenaje' => 'Homenaje', 'IM Fell DW Pica' => 'IM Fell DW Pica', 'IM Fell DW Pica SC' => 'IM Fell DW Pica SC', 'IM Fell Double Pica' => 'IM Fell Double Pica', 'IM Fell Double Pica SC' => 'IM Fell Double Pica SC', 'IM Fell English' => 'IM Fell English', 'IM Fell English SC' => 'IM Fell English SC', 'IM Fell French Canon' => 'IM Fell French Canon', 'IM Fell French Canon SC' => 'IM Fell French Canon SC', 'IM Fell Great Primer' => 'IM Fell Great Primer', 'IM Fell Great Primer SC' => 'IM Fell Great Primer SC', 'Iceberg' => 'Iceberg', 'Iceland' => 'Iceland', 'Imprima' => 'Imprima', 'Inconsolata' => 'Inconsolata', 'Inder' => 'Inder', 'Indie Flower' => 'Indie Flower', 'Inika' => 'Inika', 'Inknut Antiqua' => 'Inknut Antiqua', 'Irish Grover' => 'Irish Grover', 'Istok Web' => 'Istok Web', 'Italiana' => 'Italiana', 'Italianno' => 'Italianno', 'Itim' => 'Itim', 'Jacques Francois' => 'Jacques Francois', 'Jacques Francois Shadow' => 'Jacques Francois Shadow', 'Jaldi' => 'Jaldi', 'Jim Nightshade' => 'Jim Nightshade', 'Jockey One' => 'Jockey One', 'Jolly Lodger' => 'Jolly Lodger', 'Jomhuria' => 'Jomhuria', 'Josefin Sans' => 'Josefin Sans', 'Josefin Slab' => 'Josefin Slab', 'Joti One' => 'Joti One', 'Judson' => 'Judson', 'Julee' => 'Julee', 'Julius Sans One' => 'Julius Sans One', 'Junge' => 'Junge', 'Jura' => 'Jura', 'Just Another Hand' => 'Just Another Hand', 'Just Me Again Down Here' => 'Just Me Again Down Here', 'Kadwa' => 'Kadwa', 'Kalam' => 'Kalam', 'Kameron' => 'Kameron', 'Kanit' => 'Kanit', 'Kantumruy' => 'Kantumruy', 'Karla' => 'Karla', 'Karma' => 'Karma', 'Katibeh' => 'Katibeh', 'Kaushan Script' => 'Kaushan Script', 'Kavivanar' => 'Kavivanar', 'Kavoon' => 'Kavoon', 'Kdam Thmor' => 'Kdam Thmor', 'Keania One' => 'Keania One', 'Kelly Slab' => 'Kelly Slab', 'Kenia' => 'Kenia', 'Khand' => 'Khand', 'Khmer' => 'Khmer', 'Khula' => 'Khula', 'Kite One' => 'Kite One', 'Knewave' => 'Knewave', 'Kotta One' => 'Kotta One', 'Koulen' => 'Koulen', 'Kranky' => 'Kranky', 'Kreon' => 'Kreon', 'Kristi' => 'Kristi', 'Krona One' => 'Krona One', 'Kumar One' => 'Kumar One', 'Kumar One Outline' => 'Kumar One Outline', 'Kurale' => 'Kurale', 'La Belle Aurore' => 'La Belle Aurore', 'Laila' => 'Laila', 'Lakki Reddy' => 'Lakki Reddy', 'Lalezar' => 'Lalezar', 'Lancelot' => 'Lancelot', 'Lateef' => 'Lateef', 'Lato' => 'Lato', 'League Script' => 'League Script', 'Leckerli One' => 'Leckerli One', 'Ledger' =>'Ledger', 'Lekton' => 'Lekton', 'Lemon' => 'Lemon', 'Lemonada' => 'Lemonada', 'Libre Baskerville' => 'Libre Baskerville', 'Libre Franklin' => 'Libre Franklin', 'Life Savers' => 'Life Savers', 'Lilita One' => 'Lilita One', 'Lily Script One' => 'Lily Script One', 'Limelight' => 'Limelight', 'Linden Hill' => 'Linden Hill', 'Lobster' => 'Lobster', 'Lobster Two' => 'Lobster Two', 'Londrina Outline' => 'Londrina Outline', 'Londrina Shadow' => 'Londrina Shadow', 'Londrina Sketch' => 'Londrina Sketch', 'Londrina Solid' => 'Londrina Solid', 'Lora' => 'Lora', 'Love Ya Like A Sister' => 'Love Ya Like A Sister', 'Loved by the King' => 'Loved by the King', 'Lovers Quarrel' => 'Lovers Quarrel', 'Luckiest Guy' => 'Luckiest Guy', 'Lusitana' => 'Lusitana', 'Lustria' => 'Lustria', 'Macondo' => 'Macondo', 'Macondo Swash Caps' => 'Macondo Swash Caps', 'Mada' => 'Mada', 'Magra' => 'Magra', 'Maiden Orange' => 'Maiden Orange', 'Maitree' => 'Maitree', 'Mako' => 'Mako', 'Mallanna' => 'Mallanna', 'Mandali' => 'Mandali', 'Marcellus' => 'Marcellus', 'Marcellus SC' => 'Marcellus SC', 'Marck Script' => 'Marck Script', 'Margarine' => 'Margarine', 'Marko One' => 'Marko One', 'Marmelad' => 'Marmelad', 'Martel' => 'Martel', 'Martel Sans' => 'Martel Sans', 'Marvel' => 'Marvel', 'Mate' => 'Mate', 'Mate SC' => 'Mate SC', 'Maven Pro' => 'Maven Pro', 'McLaren' => 'McLaren', 'Meddon' => 'Meddon', 'MedievalSharp' => 'MedievalSharp', 'Medula One' => 'Medula One', 'Meera Inimai' => 'Meera Inimai', 'Megrim' => 'Megrim', 'Meie Script' => 'Meie Script', 'Merienda' => 'Merienda', 'Merienda One' => 'Merienda One', 'Merriweather' => 'Merriweather', 'Merriweather Sans' => 'Merriweather Sans', 'Metal' => 'Metal', 'Metal Mania' => 'Metal Mania', 'Metamorphous', 'Metrophobic' => 'Metrophobic', 'Michroma' => 'Michroma', 'Milonga' => 'Milonga', 'Miltonian' => 'Miltonian', 'Miltonian Tattoo' => 'Miltonian Tattoo', 'Miniver' => 'Miniver', 'Miriam Libre' => 'Miriam Libre', 'Mirza' => 'Mirza', 'Miss Fajardose' => 'Miss Fajardose', 'Mitr' => 'Mitr', 'Modak' => 'Modak', 'Modern Antiqua' => 'Modern Antiqua', 'Mogra' => 'Mogra', 'Molengo' => 'Molengo', 'Molle' => 'Molle', 'Monda' => 'Monda', 'Monofett' => 'Monofett', 'Monoton' => 'Monoton', 'Monsieur La Doulaise' => 'Monsieur La Doulaise', 'Montaga' => 'Montaga', 'Montez' => 'Montez', 'Montserrat' => 'Montserrat', 'Montserrat Alternates' => 'Montserrat Alternates', 'Montserrat Subrayada' => 'Montserrat Subrayada', 'Moul' => 'Moul', 'Moulpali' => 'Moulpali', 'Mountains of Christmas' => 'Mountains of Christmas', 'Mouse Memoirs' => 'Mouse Memoirs', 'Mr Bedfort' => 'Mr Bedfort', 'Mr Dafoe' => 'Mr Dafoe', 'Mr De Haviland' => 'Mr De Haviland', 'Mrs Saint Delafield' => 'Mrs Saint Delafield', 'Mrs Sheppards' => 'Mrs Sheppards', 'Mukta Vaani' => 'Mukta Vaani', 'Muli' => 'Muli', 'Mystery Quest' => 'Mystery Quest', 'NTR' => 'NTR', 'Neucha' => 'Neucha', 'Neuton' => 'Neuton', 'New Rocker' => 'New Rocker', 'News Cycle' => 'News Cycle', 'Niconne' => 'Niconne', 'Nixie One' => 'Nixie One', 'Nobile' => 'Nobile', 'Nokora' => 'Nokora', 'Norican' => 'Norican', 'Nosifer' => 'Nosifer', 'Nothing You Could Do' => 'Nothing You Could Do', 'Noticia Text' => 'Noticia Text', 'Noto Sans' => 'Noto Sans', 'Noto Serif' => 'Noto Serif', 'Nova Cut' => 'Nova Cut', 'Nova Flat' => 'Nova Flat', 'Nova Mono' => 'Nova Mono', 'Nova Oval' => 'Nova Oval', 'Nova Round' => 'Nova Round', 'Nova Script' => 'Nova Script', 'Nova Slim' => 'Nova Slim', 'Nova Square' => 'Nova Square', 'Numans' => 'Numans', 'Nunito' => 'Nunito', 'Odor Mean Chey' => 'Odor Mean Chey', 'Offside' => 'Offside', 'Old Standard TT' => 'Old Standard TT', 'Oldenburg' => 'Oldenburg', 'Oleo Script' => 'Oleo Script', 'Oleo Script Swash Caps' => 'Oleo Script Swash Caps', 'Open Sans' => 'Open Sans', 'Open Sans Condensed' =>'Open Sans Condensed', 'Oranienbaum' => 'Oranienbaum', 'Orbitron' => 'Orbitron', 'Oregano' => 'Oregano', 'Orienta' => 'Orienta', 'Original Surfer' => 'Original Surfer', 'Oswald' => 'Oswald', 'Over the Rainbow' => 'Over the Rainbow', 'Overlock' => 'Overlock', 'Overlock SC' => 'Overlock SC', 'Ovo' => 'Ovo', 'Oxygen' => 'Oxygen', 'Oxygen Mono' => 'Oxygen Mono', 'PT Mono' => 'PT Mono', 'PT Sans' => 'PT Sans', 'PT Sans Caption' => 'PT Sans Caption', 'PT Sans Narrow' => 'PT Sans Narrow', 'PT Serif' => 'PT Serif', 'PT Serif Caption' => 'PT Serif Caption', 'Pacifico' => 'Pacifico', 'Palanquin' => 'Palanquin', 'Palanquin Dark' => 'Palanquin Dark', 'Paprika' => 'Paprika', 'Parisienne' => 'Parisienne', 'Passero One' => 'Passero One', 'Passion One' => 'Passion One', 'Pathway Gothic One' => 'Pathway Gothic One', 'Patrick Hand' => 'Patrick Hand', 'Patrick Hand SC' => 'Patrick Hand SC', 'Pattaya' => 'Pattaya', 'Patua One' => 'Patua One', 'Pavanam' => 'Pavanam', 'Paytone One' => 'Paytone One', 'Peddana' => 'Peddana', 'Peralta' => 'Peralta', 'Permanent Marker' => 'Permanent Marker', 'Petit Formal Script' => 'Petit Formal Script', 'Petrona' => 'Petrona', 'Philosopher' => 'Philosopher', 'Piedra' => 'Piedra', 'Pinyon Script' => 'Pinyon Script', 'Pirata One' => 'Pirata One', 'Plaster' => 'Plaster', 'Play' => 'Play', 'Playball' => 'Playball', 'Playfair Display' => 'Playfair Display', 'Playfair Display SC' => 'Playfair Display SC', 'Podkova' => 'Podkova', 'Poiret One' => 'Poiret One', 'Poller One' => 'Poller One', 'Poly' => 'Poly', 'Pompiere' => 'Pompiere', 'Pontano Sans' => 'Pontano Sans', 'Poppins' => 'Poppins', 'Port Lligat Sans' => 'Port Lligat Sans', 'Port Lligat Slab' => 'Port Lligat Slab', 'Pragati Narrow' => 'Pragati Narrow', 'Prata' => 'Prata', 'Preahvihear' => 'Preahvihear', 'Press Start 2P' => 'Press Start 2P', 'Pridi' => 'Pridi', 'Princess Sofia' => 'Princess Sofia', 'Prociono' => 'Prociono', 'Prompt' => 'Prompt', 'Prosto One' => 'Prosto One', 'Proza Libre' => 'Proza Libre', 'Puritan' => 'Puritan', 'Purple Purse' => 'Purple Purse', 'Quando' => 'Quando', 'Quantico' => 'Quantico', 'Quattrocento' => 'Quattrocento', 'Quattrocento Sans' => 'Quattrocento Sans', 'Questrial' => 'Questrial', 'Quicksand' => 'Quicksand', 'Quintessential' => 'Quintessential', 'Qwigley' => 'Qwigley', 'Racing Sans One' => 'Racing Sans One', 'Radley' => 'Radley', 'Rajdhani'=> 'Rajdhani', 'Rakkas' => 'Rakkas', 'Raleway' => 'Raleway', 'Raleway Dots' => 'Raleway Dots', 'Ramabhadra' => 'Ramabhadra', 'Ramaraja' => 'Ramaraja', 'Rambla' => 'Rambla', 'Rammetto One' => 'Rammetto One', 'Ranchers' => 'Ranchers', 'Rancho', 'Ranga', 'Rasa', 'Rationale', 'Ravi Prakash', 'Redressed', 'Reem Kufi', 'Reenie Beanie', 'Revalia' => 'Revalia', 'Rhodium Libre' => 'Rhodium Libre', 'Ribeye' => 'Ribeye', 'Ribeye Marrow' => 'Ribeye Marrow', 'Righteous' => 'Righteous', 'Risque' => 'Risque', 'Roboto' => 'Roboto', 'Roboto Condensed' => 'Roboto Condensed', 'Roboto Mono' => 'Roboto Mono', 'Roboto Slab' => 'Roboto Slab', 'Rochester' => 'Rochester', 'Rock Salt' => 'Rock Salt', 'Rokkitt' => 'Rokkitt', 'Romanesco' => 'Romanesco', 'Ropa Sans' => 'Ropa Sans', 'Rosario' => 'Rosario', 'Rosarivo' => 'Rosarivo', 'Rouge Script' => 'Rouge Script', 'Rozha One' => 'Rozha One', 'Rubik' => 'Rubik', 'Rubik Mono One' => 'Rubik Mono One', 'Rubik One' => 'Rubik One', 'Ruda' => 'Ruda', 'Rufina' => 'Rufina', 'Ruge Boogie' => 'Ruge Boogie', 'Ruluko' => 'Ruluko', 'Rum Raisin' => 'Rum Raisin', 'Ruslan Display' => 'Ruslan Display', 'Russo One => Russo One', 'Ruthie' => 'Ruthie', 'Rye' => 'Rye', 'Sacramento' => 'Sacramento', 'Sahitya' => 'Sahitya', 'Sail' => 'Sail', 'Salsa' => 'Salsa', 'Sanchez' => 'Sanchez', 'Sancreek' => 'Sancreek', 'Sansita One' => 'Sansita One', 'Sarala' => 'Sarala', 'Sarina' => 'Sarina', 'Sarpanch' => 'Sarpanch', 'Satisfy' => 'Satisfy', 'Scada' => 'Scada', 'Scheherazade' => 'Scheherazade', 'Schoolbell' => 'Schoolbell', 'Scope One' => 'Scope One', 'Seaweed Script' => 'Seaweed Script', 'Secular One' => 'Secular One', 'Sevillana' => 'Sevillana', 'Seymour One' => 'Seymour One', 'Shadows Into Light' => 'Shadows Into Light', 'Shadows Into Light Two' => 'Shadows Into Light Two', 'Shanti' => 'Shanti', 'Share' => 'Share', 'Share Tech' => 'Share Tech', 'Share Tech Mono' => 'Share Tech Mono', 'Shojumaru' => 'Shojumaru', 'Short Stack' => 'Short Stack', 'Shrikhand' => 'Shrikhand', 'Siemreap' => 'Siemreap' , 'Sigmar One' => 'Sigmar One', 'Signika' => 'Signika', 'Signika Negative' => 'Signika Negative', 'Simonetta' => 'Simonetta', 'Sintony' => 'Sintony', 'Sirin Stencil' => 'Sirin Stencil', 'Six Caps' => 'Six Caps', 'Skranji' => 'Skranji', 'Slabo 13px' => 'Slabo 13px', 'Slabo 27px' => 'Slabo 27px', 'Slackey' => 'Slackey', 'Smokum' => 'Smokum', 'Smythe' => 'Smythe', 'Sniglet' => 'Sniglet', 'Snippet' => 'Snippet', 'Snowburst One' =>'Snowburst One', 'Sofadi One' => 'Sofadi One', 'Sofia' => 'Sofia', 'Sonsie One' => 'Sonsie One', 'Sorts Mill Goudy' => 'Sorts Mill Goudy', 'Source Code Pro' => 'Source Code Pro', 'Source Sans Pro' => 'Source Sans Pro', 'Source Serif Pro' => 'Source Serif Pro', 'Space Mono' => 'Space Mono', 'Special Elite' => 'Special Elite', 'Spicy Rice' => 'Spicy Rice', 'Spinnaker' => 'Spinnaker', 'Spirax' => 'Spirax', 'Squada One' => 'Squada One', 'Sree Krushnadevaraya', 'Sriracha', 'Stalemate', 'Stalinist One', 'Stardos Stencil', 'Stint Ultra Condensed', 'Stint Ultra Expanded' => 'Stint Ultra Expanded', 'Stoke' => 'Stoke', 'Strait' => 'Strait', 'Sue Ellen Francisco' => 'Sue Ellen Francisco', 'Suez One' => 'Suez One', 'Sumana' => 'Sumana', 'Sunshiney' => 'Sunshiney', 'Supermercado One' => 'Supermercado One', 'Sura' => 'Sura', 'Suranna' => 'Suranna', 'Suravaram' => 'Suravaram', 'Suwannaphum' => 'Suwannaphum', 'Swanky and Moo Moo' => 'Swanky and Moo Moo', 'Syncopate' => 'Syncopate', 'Tangerine' => 'Tangerine', 'Taprom' => 'Taprom', 'Tauri' => 'Tauri', 'Taviraj' => 'Taviraj', 'Teko' => 'Teko', 'Telex' => 'Telex', 'Tenali Ramakrishna' => 'Tenali Ramakrishna', 'Tenor Sans' => 'Tenor Sans', 'Text Me One' => 'Text Me One', 'The Girl Next Door' => 'The Girl Next Door', 'Tienne' => 'Tienne', 'Tillana' => 'Tillana', 'Timmana' => 'Timmana', 'Tinos' => 'Tinos', 'Titan One' => 'Titan One', 'Titillium Web' => 'Titillium Web', 'Trade Winds' => 'Trade Winds', 'Trirong' => 'Trirong', 'Trocchi' => 'Trocchi', 'Trochut' =>'Trochut', 'Trykker' => 'Trykker', 'Tulpen One' => 'Tulpen One', 'Ubuntu' => 'Ubuntu', 'Ubuntu Condensed' => 'Ubuntu Condensed', 'Ubuntu Mono' => 'Ubuntu Mono', 'Ultra' => 'Ultra', 'Uncial Antiqua' => 'Uncial Antiqua', 'Underdog' => 'Underdog', 'Unica One' => 'Unica One', 'UnifrakturCook' => 'UnifrakturCook', 'UnifrakturMaguntia' => 'UnifrakturMaguntia', 'Unkempt' => 'Unkempt', 'Unlock' => 'Unlock', 'Unna' => 'Unna', 'VT323' => 'VT323', 'Vampiro One' => 'Vampiro One', 'Varela', 'Varela Round', 'Vast Shadow', 'Vesper Libre', 'Vibur', 'Vidaloka', 'Viga', 'Voces', 'Volkhov' => 'Volkhov', 'Vollkorn' => 'Vollkorn', 'Voltaire' => 'Voltaire', 'Waiting for the Sunrise' => 'Waiting for the Sunrise', 'Wallpoet' => 'Wallpoet', 'Walter Turncoat' => 'Walter Turncoat', 'Warnes' => 'Warnes', 'Wellfleet' => 'Wellfleet', 'Wendy One' => 'Wendy One', 'Wire One' => 'Wire One', 'Work Sans' => 'Work Sans', 'Yanone Kaffeesatz' => 'Yanone Kaffeesatz', 'Yantramanav' => 'Yantramanav', 'Yatra One' => 'Yatra One', 'Yellowtail' => 'Yellowtail' , 'Yeseva One' => 'Yeseva One', 'Yesteryear' => 'Yesteryear', 'Yrsa' => 'Yrsa', 'Zeyada' => 'Zeyada');
|
65 |
+
|
66 |
+
$font_style = array('normal'=>'Normal','italic'=>'Italic');
|
67 |
+
|
68 |
+
// General typography section
|
69 |
+
$wp_customize->add_section( 'innofit_general_typography' , array(
|
70 |
+
'title' => __('General Paragraph','spicebox'),
|
71 |
+
'panel' => 'innofit_typography_setting',
|
72 |
+
'priority' => 1,
|
73 |
+
) );
|
74 |
+
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
//Theme General typography plus
|
79 |
+
class Innofit_general_typography_section_upgrade extends WP_Customize_Control {
|
80 |
+
public function render_content() { ?>
|
81 |
+
<h3><?php _e('Want to Change you theme typograpgy? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
82 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
83 |
+
<?php
|
84 |
+
}
|
85 |
+
}
|
86 |
+
|
87 |
+
|
88 |
+
$wp_customize->add_setting( 'general_typography_upgrade', array(
|
89 |
+
'capability' => 'edit_theme_options',
|
90 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
91 |
+
));
|
92 |
+
$wp_customize->add_control(
|
93 |
+
new Innofit_general_typography_section_upgrade(
|
94 |
+
$wp_customize,
|
95 |
+
'general_typography_upgrade',
|
96 |
+
array(
|
97 |
+
'section' => 'innofit_general_typography',
|
98 |
+
'settings' => 'general_typography_upgrade',
|
99 |
+
)
|
100 |
+
)
|
101 |
+
);
|
102 |
+
|
103 |
+
|
104 |
+
$wp_customize->add_setting(
|
105 |
+
'general_typography_fontsize',
|
106 |
+
array(
|
107 |
+
'default' => 13,
|
108 |
+
'capability' => 'edit_theme_options',
|
109 |
+
'sanitize_callback' => 'sanitize_text_field',
|
110 |
+
)
|
111 |
+
);
|
112 |
+
$wp_customize->add_control('general_typography_fontsize', array(
|
113 |
+
'label' => __('Font size','spicebox'),
|
114 |
+
'section' => 'innofit_general_typography',
|
115 |
+
'setting' => 'general_typography_fontsize',
|
116 |
+
'type' => 'select',
|
117 |
+
'choices'=>$font_size,
|
118 |
+
'description'=>__('Pixels','spicebox'),
|
119 |
+
));
|
120 |
+
$wp_customize->add_setting(
|
121 |
+
'general_typography_fontfamily',
|
122 |
+
array(
|
123 |
+
'default' => 'Dosis',
|
124 |
+
'capability' => 'edit_theme_options',
|
125 |
+
'sanitize_callback' => 'sanitize_text_field',
|
126 |
+
)
|
127 |
+
);
|
128 |
+
$wp_customize->add_control('general_typography_fontfamily', array(
|
129 |
+
'label' => __('Font family','spicebox'),
|
130 |
+
'section' => 'innofit_general_typography',
|
131 |
+
'setting' => 'general_typography_fontfamily',
|
132 |
+
'type' => 'select',
|
133 |
+
'choices'=>$font_family,
|
134 |
+
));
|
135 |
+
$wp_customize->add_setting(
|
136 |
+
'general_typography_fontstyle',
|
137 |
+
array(
|
138 |
+
'capability' => 'edit_theme_options',
|
139 |
+
'sanitize_callback' => 'sanitize_text_field',
|
140 |
+
)
|
141 |
+
);
|
142 |
+
|
143 |
+
|
144 |
+
$wp_customize->add_control('general_typography_fontstyle', array(
|
145 |
+
'label' => __('Font style','spicebox'),
|
146 |
+
'section' => 'innofit_general_typography',
|
147 |
+
'setting' => 'general_typography_fontstyle',
|
148 |
+
'type' => 'select',
|
149 |
+
'choices'=>$font_style,
|
150 |
+
));
|
151 |
+
|
152 |
+
|
153 |
+
// Menus typography section
|
154 |
+
$wp_customize->add_section( 'innofit_menus_typography' , array(
|
155 |
+
'title' => __('Menus', 'spicebox'),
|
156 |
+
'panel' => 'innofit_typography_setting',
|
157 |
+
'priority' => 2,
|
158 |
+
) );
|
159 |
+
|
160 |
+
|
161 |
+
//Theme Menu typography plus
|
162 |
+
class Innofit_menu_typography_section_upgrade extends WP_Customize_Control {
|
163 |
+
public function render_content() { ?>
|
164 |
+
<h3><?php _e('Want to Change you theme menu typograpgy? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
165 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
166 |
+
<?php
|
167 |
+
}
|
168 |
+
}
|
169 |
+
|
170 |
+
|
171 |
+
$wp_customize->add_setting( 'menu_typography_upgrade', array(
|
172 |
+
'capability' => 'edit_theme_options',
|
173 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
174 |
+
));
|
175 |
+
$wp_customize->add_control(
|
176 |
+
new Innofit_menu_typography_section_upgrade(
|
177 |
+
$wp_customize,
|
178 |
+
'menu_typography_upgrade',
|
179 |
+
array(
|
180 |
+
'section' => 'innofit_menus_typography',
|
181 |
+
'settings' => 'menu_typography_upgrade',
|
182 |
+
)
|
183 |
+
)
|
184 |
+
);
|
185 |
+
|
186 |
+
|
187 |
+
$wp_customize->add_setting(
|
188 |
+
'menu_title_fontsize',
|
189 |
+
array(
|
190 |
+
'default' => 18,
|
191 |
+
'capability' => 'edit_theme_options',
|
192 |
+
'sanitize_callback' => 'sanitize_text_field',
|
193 |
+
)
|
194 |
+
);
|
195 |
+
$wp_customize->add_control('menu_title_fontsize', array(
|
196 |
+
'label' => __('Font size','spicebox'),
|
197 |
+
'section' => 'innofit_menus_typography',
|
198 |
+
'setting' => 'menu_title_fontsize',
|
199 |
+
'type' => 'select',
|
200 |
+
'choices'=>$font_size,
|
201 |
+
'description'=>__('Pixels','spicebox')
|
202 |
+
));
|
203 |
+
$wp_customize->add_setting(
|
204 |
+
'menu_title_fontfamily',
|
205 |
+
array(
|
206 |
+
'default' => 'Dosis',
|
207 |
+
'capability' => 'edit_theme_options',
|
208 |
+
'sanitize_callback' => 'sanitize_text_field',
|
209 |
+
)
|
210 |
+
);
|
211 |
+
$wp_customize->add_control('menu_title_fontfamily', array(
|
212 |
+
'label' => __('Font family','spicebox'),
|
213 |
+
'section' => 'innofit_menus_typography',
|
214 |
+
'setting' => 'menu_title_fontfamily',
|
215 |
+
'type' => 'select',
|
216 |
+
'choices'=>$font_family,
|
217 |
+
));
|
218 |
+
$wp_customize->add_setting(
|
219 |
+
'menu_title_fontstyle',
|
220 |
+
array(
|
221 |
+
'default' => 'normal',
|
222 |
+
'capability' => 'edit_theme_options',
|
223 |
+
'sanitize_callback' => 'sanitize_text_field',
|
224 |
+
)
|
225 |
+
);
|
226 |
+
$wp_customize->add_control('menu_title_fontstyle', array(
|
227 |
+
'label' => __('Font style','spicebox'),
|
228 |
+
'section' => 'innofit_menus_typography',
|
229 |
+
'setting' => 'menu_title_fontstyle',
|
230 |
+
'type' => 'select',
|
231 |
+
'choices'=>$font_style,
|
232 |
+
));
|
233 |
+
|
234 |
+
// Section title typography section
|
235 |
+
$wp_customize->add_section( 'innofit_service_typography' , array(
|
236 |
+
'title' => __('Section title', 'spicebox'),
|
237 |
+
'panel' => 'innofit_typography_setting',
|
238 |
+
'priority' => 4,
|
239 |
+
) );
|
240 |
+
|
241 |
+
|
242 |
+
//Theme Section title typography plus
|
243 |
+
class Innofit_section_title_typography_upgrade extends WP_Customize_Control {
|
244 |
+
public function render_content() { ?>
|
245 |
+
<h3><?php _e('Want to Change you theme section title typograpgy? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
246 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
247 |
+
<?php
|
248 |
+
}
|
249 |
+
}
|
250 |
+
|
251 |
+
|
252 |
+
$wp_customize->add_setting( 'section_title_typography_upgrade', array(
|
253 |
+
'capability' => 'edit_theme_options',
|
254 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
255 |
+
));
|
256 |
+
$wp_customize->add_control(
|
257 |
+
new Innofit_section_title_typography_upgrade(
|
258 |
+
$wp_customize,
|
259 |
+
'section_title_typography_upgrade',
|
260 |
+
array(
|
261 |
+
'section' => 'innofit_service_typography',
|
262 |
+
'settings' => 'section_title_typography_upgrade',
|
263 |
+
)
|
264 |
+
)
|
265 |
+
);
|
266 |
+
|
267 |
+
|
268 |
+
$wp_customize->add_setting(
|
269 |
+
'section_title_fontsize',
|
270 |
+
array(
|
271 |
+
'default' => 36,
|
272 |
+
'capability' => 'edit_theme_options',
|
273 |
+
'sanitize_callback' => 'sanitize_text_field',
|
274 |
+
)
|
275 |
+
);
|
276 |
+
$wp_customize->add_control('section_title_fontsize', array(
|
277 |
+
'label' => __('Font size','spicebox'),
|
278 |
+
'section' => 'innofit_service_typography',
|
279 |
+
'setting' => 'section_title_fontsize',
|
280 |
+
'type' => 'select',
|
281 |
+
'choices'=>$font_size,
|
282 |
+
'description'=>__('Pixels','spicebox')
|
283 |
+
));
|
284 |
+
$wp_customize->add_setting(
|
285 |
+
'section_title_fontfamily',
|
286 |
+
array(
|
287 |
+
'default' => 'Dosis',
|
288 |
+
'capability' => 'edit_theme_options',
|
289 |
+
'sanitize_callback' => 'sanitize_text_field',
|
290 |
+
)
|
291 |
+
);
|
292 |
+
$wp_customize->add_control('section_title_fontfamily', array(
|
293 |
+
'label' => __('Font family','spicebox'),
|
294 |
+
'section' => 'innofit_service_typography',
|
295 |
+
'setting' => 'section_title_fontfamily',
|
296 |
+
'type' => 'select',
|
297 |
+
'choices'=>$font_family,
|
298 |
+
));
|
299 |
+
$wp_customize->add_setting(
|
300 |
+
'section_title_fontstyle',
|
301 |
+
array(
|
302 |
+
'capability' => 'edit_theme_options',
|
303 |
+
'sanitize_callback' => 'sanitize_text_field',
|
304 |
+
)
|
305 |
+
);
|
306 |
+
$wp_customize->add_control('section_title_fontstyle', array(
|
307 |
+
'label' => __('Font style','spicebox'),
|
308 |
+
'section' => 'innofit_service_typography',
|
309 |
+
'setting' => 'section_title_fontstyle',
|
310 |
+
'type' => 'select',
|
311 |
+
'choices'=>$font_style,
|
312 |
+
));
|
313 |
+
|
314 |
+
// Section description typography section
|
315 |
+
$wp_customize->add_section( 'innofit_section_description_typography' , array(
|
316 |
+
'title' => __('Section description', 'spicebox'),
|
317 |
+
'panel' => 'innofit_typography_setting',
|
318 |
+
'priority' => 5,
|
319 |
+
) );
|
320 |
+
|
321 |
+
|
322 |
+
|
323 |
+
//Theme Section description typography plus
|
324 |
+
class Innofit_section_description_typography_upgrade extends WP_Customize_Control {
|
325 |
+
public function render_content() { ?>
|
326 |
+
<h3><?php _e('Want to Change you theme section desription typograpgy? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
327 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
328 |
+
<?php
|
329 |
+
}
|
330 |
+
}
|
331 |
+
|
332 |
+
|
333 |
+
$wp_customize->add_setting( 'section_desc_typography_upgrade', array(
|
334 |
+
'capability' => 'edit_theme_options',
|
335 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
336 |
+
));
|
337 |
+
$wp_customize->add_control(
|
338 |
+
new Innofit_section_description_typography_upgrade(
|
339 |
+
$wp_customize,
|
340 |
+
'section_desc_typography_upgrade',
|
341 |
+
array(
|
342 |
+
'section' => 'innofit_section_description_typography',
|
343 |
+
'settings' => 'section_desc_typography_upgrade',
|
344 |
+
)
|
345 |
+
)
|
346 |
+
);
|
347 |
+
|
348 |
+
$wp_customize->add_setting(
|
349 |
+
'section_description_fontsize',
|
350 |
+
array(
|
351 |
+
'default' => 18,
|
352 |
+
'capability' => 'edit_theme_options',
|
353 |
+
'sanitize_callback' => 'sanitize_text_field',
|
354 |
+
)
|
355 |
+
);
|
356 |
+
$wp_customize->add_control('section_description_fontsize', array(
|
357 |
+
'label' => __('Font size','spicebox'),
|
358 |
+
'section' => 'innofit_section_description_typography',
|
359 |
+
'setting' => 'section_description_fontsize',
|
360 |
+
'type' => 'select',
|
361 |
+
'choices'=>$font_size,
|
362 |
+
'description'=>__('Pixels','spicebox')
|
363 |
+
));
|
364 |
+
$wp_customize->add_setting(
|
365 |
+
'section_description_fontfamily',
|
366 |
+
array(
|
367 |
+
'default' => 'Dosis',
|
368 |
+
'capability' => 'edit_theme_options',
|
369 |
+
'sanitize_callback' => 'sanitize_text_field',
|
370 |
+
)
|
371 |
+
);
|
372 |
+
$wp_customize->add_control('section_description_fontfamily', array(
|
373 |
+
'label' => __('Font family','spicebox'),
|
374 |
+
'section' => 'innofit_section_description_typography',
|
375 |
+
'setting' => 'section_description_fontfamily',
|
376 |
+
'type' => 'select',
|
377 |
+
'choices'=>$font_family,
|
378 |
+
));
|
379 |
+
$wp_customize->add_setting(
|
380 |
+
'section_description_fontstyle',
|
381 |
+
array(
|
382 |
+
'capability' => 'edit_theme_options',
|
383 |
+
'sanitize_callback' => 'sanitize_text_field',
|
384 |
+
)
|
385 |
+
);
|
386 |
+
$wp_customize->add_control('section_description_fontstyle', array(
|
387 |
+
'label' => __('Font style','spicebox'),
|
388 |
+
'section' => 'innofit_section_description_typography',
|
389 |
+
'setting' => 'section_description_fontstyle',
|
390 |
+
'type' => 'select',
|
391 |
+
'choices'=>$font_style,
|
392 |
+
));
|
393 |
+
|
394 |
+
|
395 |
+
// Section description typography section
|
396 |
+
$wp_customize->add_section( 'innofit_widget_typography' , array(
|
397 |
+
'title' => __('Widget heading title', 'spicebox'),
|
398 |
+
'panel' => 'innofit_typography_setting',
|
399 |
+
'priority' => 6,
|
400 |
+
) );
|
401 |
+
|
402 |
+
|
403 |
+
|
404 |
+
//Theme Section description typography plus
|
405 |
+
class Innofit_theme_widget_typography_upgrade extends WP_Customize_Control {
|
406 |
+
public function render_content() { ?>
|
407 |
+
<h3><?php _e('Want to Change you theme section desription typograpgy? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
408 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
409 |
+
<?php
|
410 |
+
}
|
411 |
+
}
|
412 |
+
|
413 |
+
$wp_customize->add_setting( 'widget_typography_upgrade', array(
|
414 |
+
'capability' => 'edit_theme_options',
|
415 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
416 |
+
));
|
417 |
+
$wp_customize->add_control(
|
418 |
+
new Innofit_theme_widget_typography_upgrade(
|
419 |
+
$wp_customize,
|
420 |
+
'widget_typography_upgrade',
|
421 |
+
array(
|
422 |
+
'section' => 'innofit_widget_typography',
|
423 |
+
'settings' => 'widget_typography_upgrade',
|
424 |
+
)
|
425 |
+
)
|
426 |
+
);
|
427 |
+
|
428 |
+
|
429 |
+
|
430 |
+
$wp_customize->add_setting(
|
431 |
+
'widgets_title_fontsize',
|
432 |
+
array(
|
433 |
+
'default' => 18,
|
434 |
+
'capability' => 'edit_theme_options',
|
435 |
+
'sanitize_callback' => 'sanitize_text_field',
|
436 |
+
)
|
437 |
+
);
|
438 |
+
$wp_customize->add_control('widgets_title_fontsize', array(
|
439 |
+
'label' => __('Font size','spicebox'),
|
440 |
+
'section' => 'innofit_widget_typography',
|
441 |
+
'setting' => 'widgets_title_fontsize',
|
442 |
+
'type' => 'select',
|
443 |
+
'choices'=>$font_size,
|
444 |
+
'description'=>__('Pixels','spicebox')
|
445 |
+
));
|
446 |
+
|
447 |
+
$wp_customize->add_setting(
|
448 |
+
'widgets_title_fontfamily',
|
449 |
+
array(
|
450 |
+
'default' => 'Dosis',
|
451 |
+
'capability' => 'edit_theme_options',
|
452 |
+
'sanitize_callback' => 'sanitize_text_field',
|
453 |
+
)
|
454 |
+
);
|
455 |
+
$wp_customize->add_control('widgets_title_fontfamily', array(
|
456 |
+
'label' => __('Font family','spicebox'),
|
457 |
+
'section' => 'innofit_widget_typography',
|
458 |
+
'setting' => 'widgets_title_fontfamily',
|
459 |
+
'type' => 'select',
|
460 |
+
'choices'=>$font_family,
|
461 |
+
));
|
462 |
+
$wp_customize->add_setting(
|
463 |
+
'widgets_title_fontstyle',
|
464 |
+
array(
|
465 |
+
'default' => 'normal',
|
466 |
+
'capability' => 'edit_theme_options',
|
467 |
+
'sanitize_callback' => 'sanitize_text_field',
|
468 |
+
)
|
469 |
+
);
|
470 |
+
$wp_customize->add_control('widgets_title_fontstyle', array(
|
471 |
+
'label' => __('Font style','spicebox'),
|
472 |
+
'section' => 'innofit_widget_typography',
|
473 |
+
'setting' => 'widgets_title_fontstyle',
|
474 |
+
'type' => 'select',
|
475 |
+
'choices'=>$font_style,
|
476 |
+
));
|
477 |
+
|
478 |
+
|
479 |
+
?>
|
inc/innofit/customizer/funfact-section.php
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
//Pricing section plus
|
4 |
+
class Innofit_funfact_section_upgrade extends WP_Customize_Control {
|
5 |
+
public function render_content() { ?>
|
6 |
+
<h3><?php _e('Want to add funcfact section? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
7 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
8 |
+
<?php
|
9 |
+
}
|
10 |
+
}
|
11 |
+
|
12 |
+
|
13 |
+
$wp_customize->add_setting( 'funfact_upgrade', array(
|
14 |
+
'capability' => 'edit_theme_options',
|
15 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
16 |
+
));
|
17 |
+
$wp_customize->add_control(
|
18 |
+
new Innofit_funfact_section_upgrade(
|
19 |
+
$wp_customize,
|
20 |
+
'funfact_upgrade',
|
21 |
+
array(
|
22 |
+
'section' => 'funfact_section',
|
23 |
+
'settings' => 'funfact_upgrade',
|
24 |
+
)
|
25 |
+
)
|
26 |
+
);
|
27 |
+
|
28 |
+
|
29 |
+
/* funfact section */
|
30 |
+
$wp_customize->add_setting( 'funfact_section_enabled' , array( 'default' => 'on') );
|
31 |
+
$wp_customize->add_control( 'funfact_section_enabled' , array(
|
32 |
+
'label' => __( 'Enable Funfact on homepage', 'spicebox' ),
|
33 |
+
'section' => 'funfact_section',
|
34 |
+
'type' => 'radio',
|
35 |
+
'choices' => array(
|
36 |
+
'on'=>__('ON', 'spicebox'),
|
37 |
+
'off'=>__('OFF', 'spicebox')
|
38 |
+
)
|
39 |
+
));
|
40 |
+
|
41 |
+
|
42 |
+
$wp_customize->add_section( 'funfact_section' , array(
|
43 |
+
'title' => __('Funfact settings', 'spicebox'),
|
44 |
+
'panel' => 'section_settings',
|
45 |
+
'priority' => 5,
|
46 |
+
) );
|
47 |
+
|
48 |
+
if ( class_exists( 'Innofit_Repeater' ) ) {
|
49 |
+
$wp_customize->add_setting( 'innofit_funfact_content', array(
|
50 |
+
) );
|
51 |
+
|
52 |
+
$wp_customize->add_control( new Innofit_Repeater( $wp_customize, 'innofit_funfact_content', array(
|
53 |
+
'label' => esc_html__( 'Funfact content', 'spicebox' ),
|
54 |
+
'section' => 'funfact_section',
|
55 |
+
'priority' => 10,
|
56 |
+
'add_field_label' => esc_html__( 'Add new Funfact', 'spicebox' ),
|
57 |
+
'item_name' => esc_html__( 'Funfact', 'spicebox' ),
|
58 |
+
'customizer_repeater_icon_control' => true,
|
59 |
+
'customizer_repeater_title_control' => true,
|
60 |
+
'customizer_repeater_text_control' => true,
|
61 |
+
) ) );
|
62 |
+
}
|
63 |
+
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Add selective refresh for Front page funfact section controls.
|
67 |
+
*/
|
68 |
+
|
69 |
+
$wp_customize->selective_refresh->add_partial( 'innofit_funfact_content', array(
|
70 |
+
'selector' => '.funfact .container',
|
71 |
+
'settings' => 'innofit_funfact_content',
|
72 |
+
|
73 |
+
) );
|
74 |
+
?>
|
inc/innofit/customizer/instagram-section.php
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//Gallery Section
|
3 |
+
$wp_customize->add_section('innofit_gellary_section',array(
|
4 |
+
'title' => __('Gallery settings','spicebox'),
|
5 |
+
'panel' => 'section_settings',
|
6 |
+
'priority' => 16,
|
7 |
+
));
|
8 |
+
|
9 |
+
//Gallery plus
|
10 |
+
class Innofit_gallery_section_upgrade extends WP_Customize_Control {
|
11 |
+
public function render_content() { ?>
|
12 |
+
<h3><?php _e('Want to add gallery section? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
13 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
14 |
+
<?php
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
$wp_customize->add_setting( 'gallery_upgrade', array(
|
20 |
+
'capability' => 'edit_theme_options',
|
21 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
22 |
+
));
|
23 |
+
$wp_customize->add_control(
|
24 |
+
new Innofit_gallery_section_upgrade(
|
25 |
+
$wp_customize,
|
26 |
+
'gallery_upgrade',
|
27 |
+
array(
|
28 |
+
'section' => 'innofit_gellary_section',
|
29 |
+
'settings' => 'gallery_upgrade',
|
30 |
+
)
|
31 |
+
)
|
32 |
+
);
|
33 |
+
|
34 |
+
|
35 |
+
// Enable gallery section
|
36 |
+
$wp_customize->add_setting( 'gallery_section_enable' , array( 'default' => 'on') );
|
37 |
+
$wp_customize->add_control( 'gallery_section_enable' , array(
|
38 |
+
'label' => __( 'Enable Home Gallery section', 'spicebox' ),
|
39 |
+
'section' => 'innofit_gellary_section',
|
40 |
+
'type' => 'radio',
|
41 |
+
'choices' => array(
|
42 |
+
'on'=>__('ON', 'spicebox'),
|
43 |
+
'off'=>__('OFF', 'spicebox')
|
44 |
+
),
|
45 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
46 |
+
));
|
47 |
+
|
48 |
+
// Gallery shortcode
|
49 |
+
$wp_customize->add_setting('home_gallery_shortcode',array(
|
50 |
+
'capability' => 'edit_theme_options',
|
51 |
+
|
52 |
+
));
|
53 |
+
$wp_customize->add_control('home_gallery_shortcode',array(
|
54 |
+
'label' => __('Gallery shortcode','spicebox'),
|
55 |
+
'section' => 'innofit_gellary_section',
|
56 |
+
'type' => 'textarea',
|
57 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
58 |
+
));
|
59 |
+
?>
|
inc/innofit/customizer/map-section.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//Google map Section
|
3 |
+
$wp_customize->add_section('innofit_map_section',array(
|
4 |
+
'title' => __('Google Maps settings','spicebox'),
|
5 |
+
'panel' => 'section_settings',
|
6 |
+
'priority' => 12,
|
7 |
+
));
|
8 |
+
|
9 |
+
//Google Map plus
|
10 |
+
class Innofit_google_maps_section_upgrade extends WP_Customize_Control {
|
11 |
+
public function render_content() { ?>
|
12 |
+
<h3><?php _e('Want to add Google map section? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
13 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
14 |
+
<?php
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
$wp_customize->add_setting( 'google_map_upgrade', array(
|
20 |
+
'capability' => 'edit_theme_options',
|
21 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
22 |
+
));
|
23 |
+
$wp_customize->add_control(
|
24 |
+
new Innofit_google_maps_section_upgrade(
|
25 |
+
$wp_customize,
|
26 |
+
'google_map_upgrade',
|
27 |
+
array(
|
28 |
+
'section' => 'innofit_map_section',
|
29 |
+
'settings' => 'google_map_upgrade',
|
30 |
+
)
|
31 |
+
)
|
32 |
+
);
|
33 |
+
|
34 |
+
|
35 |
+
// google map enable / disable
|
36 |
+
$wp_customize->add_setting( 'google_map_enable' , array( 'default' => 'on') );
|
37 |
+
$wp_customize->add_control( 'google_map_enable' , array(
|
38 |
+
'label' => __( 'Enable Google map', 'spicebox' ),
|
39 |
+
'section' => 'innofit_map_section',
|
40 |
+
'type' => 'radio',
|
41 |
+
'choices' => array(
|
42 |
+
'on'=>__('ON', 'spicebox'),
|
43 |
+
'off'=>__('OFF', 'spicebox')
|
44 |
+
),
|
45 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
46 |
+
));
|
47 |
+
|
48 |
+
|
49 |
+
// google map url
|
50 |
+
$wp_customize->add_setting('contact_google_map_shortcode',array(
|
51 |
+
'capability' => 'edit_theme_options',
|
52 |
+
'sanitize_callback' => 'sanitize_text_field',
|
53 |
+
'transport' => $selective_refresh,
|
54 |
+
));
|
55 |
+
$wp_customize->add_control('contact_google_map_shortcode',array(
|
56 |
+
'label' => __('Google Map Shortcode','spicebox'),
|
57 |
+
'section' => 'innofit_map_section',
|
58 |
+
'type' => 'textarea',
|
59 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
60 |
+
));
|
61 |
+
?>
|
inc/innofit/customizer/news-section.php
CHANGED
@@ -60,6 +60,37 @@
|
|
60 |
'section' => 'innofit_latest_news_section',
|
61 |
)
|
62 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
|
65 |
/**
|
60 |
'section' => 'innofit_latest_news_section',
|
61 |
)
|
62 |
);
|
63 |
+
|
64 |
+
//Plus Blog
|
65 |
+
class WP_news_plus_Customize_Control extends WP_Customize_Control {
|
66 |
+
public $type = 'new_menu';
|
67 |
+
/**
|
68 |
+
* Render the control's content.
|
69 |
+
*/
|
70 |
+
public function render_content() {
|
71 |
+
?>
|
72 |
+
<div class="pro-vesrion">
|
73 |
+
<P><?php esc_html_e('More options available for News section in Innofit Plus','spicebox');?></P>
|
74 |
+
</div>
|
75 |
+
<div class="pro-box">
|
76 |
+
<a href="<?php echo esc_url('https://spicethemes.com/innofit-plus/');?>" class="read-more-button" id="review_plus" target="_blank"><?php esc_html_e( 'Upgrade to Plus','spicebox' ); ?></a>
|
77 |
+
<div>
|
78 |
+
<?php
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
$wp_customize->add_setting(
|
83 |
+
'add_plus_news',
|
84 |
+
array(
|
85 |
+
'capability' => 'edit_theme_options',
|
86 |
+
'sanitize_callback' => 'sanitize_text_field',
|
87 |
+
)
|
88 |
+
);
|
89 |
+
$wp_customize->add_control( new WP_news_plus_Customize_Control( $wp_customize, 'add_plus_news', array(
|
90 |
+
'section' => 'innofit_latest_news_section',
|
91 |
+
'setting' => 'add_plus_news',
|
92 |
+
|
93 |
+
)));
|
94 |
|
95 |
|
96 |
/**
|
inc/innofit/customizer/portfolio-section.php
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Portfolio Section */
|
3 |
+
$wp_customize->add_section( 'portfolio_section' , array(
|
4 |
+
'title' => __('Portfolio settings', 'spicebox'),
|
5 |
+
'panel' => 'section_settings',
|
6 |
+
'priority' => 4,
|
7 |
+
) );
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
//Portfolio plus
|
13 |
+
class Innofit_portfolio_section_upgrade extends WP_Customize_Control {
|
14 |
+
public function render_content() { ?>
|
15 |
+
<h3><?php _e('Want to add portfolio section? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
16 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
17 |
+
<?php
|
18 |
+
}
|
19 |
+
}
|
20 |
+
|
21 |
+
|
22 |
+
$wp_customize->add_setting( 'portfolio_upgrade', array(
|
23 |
+
'capability' => 'edit_theme_options',
|
24 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
25 |
+
));
|
26 |
+
$wp_customize->add_control(
|
27 |
+
new Innofit_portfolio_section_upgrade(
|
28 |
+
$wp_customize,
|
29 |
+
'portfolio_upgrade',
|
30 |
+
array(
|
31 |
+
'section' => 'portfolio_section',
|
32 |
+
'settings' => 'portfolio_upgrade',
|
33 |
+
)
|
34 |
+
)
|
35 |
+
);
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
+
// Enable portfolio more btn
|
41 |
+
$wp_customize->add_setting( 'portfolio_section_enable' , array( 'default' => 'on') );
|
42 |
+
$wp_customize->add_control( 'portfolio_section_enable' , array(
|
43 |
+
'label' => __( 'Enable Home Portfolio section', 'spicebox' ),
|
44 |
+
'section' => 'portfolio_section',
|
45 |
+
'type' => 'radio',
|
46 |
+
'choices' => array(
|
47 |
+
'on'=>__('ON', 'spicebox'),
|
48 |
+
'off'=>__('OFF', 'spicebox')
|
49 |
+
),
|
50 |
+
'disabled' => array('disabled' => ''),
|
51 |
+
));
|
52 |
+
|
53 |
+
// room section title
|
54 |
+
$wp_customize->add_setting( 'home_portfolio_section_title',array(
|
55 |
+
'capability' => 'edit_theme_options',
|
56 |
+
'sanitize_callback' => 'innofitp_home_page_sanitize_text',
|
57 |
+
'default' => __('Look at our projects','spicebox'),
|
58 |
+
'transport' => $selective_refresh,
|
59 |
+
));
|
60 |
+
$wp_customize->add_control( 'home_portfolio_section_title',array(
|
61 |
+
'label' => __('Title','spicebox'),
|
62 |
+
'section' => 'portfolio_section',
|
63 |
+
'type' => 'text',
|
64 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
65 |
+
));
|
66 |
+
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
//link
|
71 |
+
class WP_portfolio_Customize_Control extends WP_Customize_Control {
|
72 |
+
public $type = 'new_menu';
|
73 |
+
/**
|
74 |
+
* Render the control's content.
|
75 |
+
*/
|
76 |
+
public function render_content() {
|
77 |
+
?>
|
78 |
+
<a href="#" class="button" disabled target="_blank"><?php _e( 'Click here to add project', 'spicebox' ); ?></a>
|
79 |
+
<?php
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
$wp_customize->add_setting(
|
84 |
+
'plus_project',
|
85 |
+
array(
|
86 |
+
'capability' => 'edit_theme_options',
|
87 |
+
'sanitize_callback' => 'sanitize_text_field',
|
88 |
+
)
|
89 |
+
);
|
90 |
+
$wp_customize->add_control( new WP_portfolio_Customize_Control( $wp_customize, 'plus_project', array(
|
91 |
+
'section' => 'portfolio_section',
|
92 |
+
))
|
93 |
+
);
|
94 |
+
?>
|
inc/innofit/customizer/pricing-section.php
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//Pricing Section
|
3 |
+
$wp_customize->add_section('home_pricing_section',array(
|
4 |
+
'title' => __('Pricing settings','spicebox'),
|
5 |
+
'panel' => 'section_settings',
|
6 |
+
'priority' => 9,
|
7 |
+
));
|
8 |
+
|
9 |
+
//Pricing section plus
|
10 |
+
class Innofit_pricing_section_upgrade extends WP_Customize_Control {
|
11 |
+
public function render_content() { ?>
|
12 |
+
<h3><?php _e('Want to add pricing section? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://spicethemes.com/innofit-plus/' ); ?>" target="_blank">
|
13 |
+
<?php _e('Upgrade to Plus','spicebox'); ?> </a>
|
14 |
+
<?php
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
$wp_customize->add_setting( 'pricing_upgrade', array(
|
20 |
+
'capability' => 'edit_theme_options',
|
21 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
22 |
+
));
|
23 |
+
$wp_customize->add_control(
|
24 |
+
new Innofit_pricing_section_upgrade(
|
25 |
+
$wp_customize,
|
26 |
+
'pricing_upgrade',
|
27 |
+
array(
|
28 |
+
'section' => 'home_pricing_section',
|
29 |
+
'settings' => 'pricing_upgrade',
|
30 |
+
)
|
31 |
+
)
|
32 |
+
);
|
33 |
+
|
34 |
+
|
35 |
+
// Enable pricing section
|
36 |
+
$wp_customize->add_setting( 'pricing_section_enable' , array( 'default' => 'on') );
|
37 |
+
$wp_customize->add_control( 'pricing_section_enable' , array(
|
38 |
+
'label' => __( 'Enable Home Pricing section', 'spicebox' ),
|
39 |
+
'section' => 'home_pricing_section',
|
40 |
+
'type' => 'radio',
|
41 |
+
'choices' => array(
|
42 |
+
'on'=>__('ON', 'spicebox'),
|
43 |
+
'off'=>__('OFF', 'spicebox')
|
44 |
+
),
|
45 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
46 |
+
));
|
47 |
+
|
48 |
+
// Pricing section title
|
49 |
+
$wp_customize->add_setting( 'home_pricing_section_title',array(
|
50 |
+
'default' => __('Affordable pricing','spicebox'),
|
51 |
+
'sanitize_callback' => 'innofitp_home_page_sanitize_text',
|
52 |
+
'transport' => $selective_refresh,
|
53 |
+
));
|
54 |
+
$wp_customize->add_control( 'home_pricing_section_title',array(
|
55 |
+
'label' => __('Title','spicebox'),
|
56 |
+
'section' => 'home_pricing_section',
|
57 |
+
'type' => 'text',
|
58 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
59 |
+
));
|
60 |
+
|
61 |
+
//Pricing section discription
|
62 |
+
$wp_customize->add_setting( 'home_pricing_section_discription',array(
|
63 |
+
'default'=> __('Great price plans for you','spicebox'),
|
64 |
+
'transport' => $selective_refresh,
|
65 |
+
));
|
66 |
+
$wp_customize->add_control( 'home_pricing_section_discription',array(
|
67 |
+
'label' => __('Description','spicebox'),
|
68 |
+
'section' => 'home_pricing_section',
|
69 |
+
'type' => 'textarea',
|
70 |
+
'input_attrs' => array('disabled' => 'disabled'),
|
71 |
+
));
|
72 |
+
|
73 |
+
//Pricing section Content
|
74 |
+
|
75 |
+
if ( class_exists( 'Innofit_Repeater' ) ) {
|
76 |
+
$wp_customize->add_setting( 'innofit_pricing_content', array(
|
77 |
+
) );
|
78 |
+
|
79 |
+
$wp_customize->add_control( new Innofit_Repeater( $wp_customize, 'innofit_pricing_content', array(
|
80 |
+
'label' => esc_html__( 'Pricing content', 'spicebox' ),
|
81 |
+
'section' => 'home_pricing_section',
|
82 |
+
'add_field_label' => esc_html__( 'Add new Pricing', 'spicebox' ),
|
83 |
+
'item_name' => esc_html__( 'Pricing', 'spicebox' ),
|
84 |
+
'customizer_repeater_price_heighlight' => true,
|
85 |
+
'customizer_repeater_title_control' => true,
|
86 |
+
'customizer_repeater_price_control' => true,
|
87 |
+
'customizer_repeater_features_control' => true,
|
88 |
+
'customizer_repeater_button_text_control' => true,
|
89 |
+
'customizer_repeater_link_control' => true,
|
90 |
+
'customizer_repeater_checkbox_control' => true,
|
91 |
+
|
92 |
+
) ) );
|
93 |
+
}
|
94 |
+
|
95 |
+
?>
|
inc/innofit/customizer/services-section.php
CHANGED
File without changes
|
inc/innofit/customizer/slider-section.php
CHANGED
@@ -125,6 +125,37 @@
|
|
125 |
'type' => 'checkbox',
|
126 |
));
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
|
129 |
/**
|
130 |
* Add selective refresh for Front page slider section controls.
|
125 |
'type' => 'checkbox',
|
126 |
));
|
127 |
|
128 |
+
//Plus Slider
|
129 |
+
class WP_slider_plus_Customize_Control extends WP_Customize_Control {
|
130 |
+
public $type = 'new_menu';
|
131 |
+
/**
|
132 |
+
* Render the control's content.
|
133 |
+
*/
|
134 |
+
public function render_content() {
|
135 |
+
?>
|
136 |
+
<div class="pro-vesrion">
|
137 |
+
<P><?php esc_html_e('Want to add more slider and video slider?Then upgrade to Innofit Plus','spicebox');?></P>
|
138 |
+
</div>
|
139 |
+
<div class="pro-box">
|
140 |
+
<a href="<?php echo esc_url('https://spicethemes.com/innofit-plus/');?>" class="read-more-button" id="review_plus" target="_blank"><?php esc_html_e( 'Upgrade to Plus','spicebox' ); ?></a>
|
141 |
+
<div>
|
142 |
+
<?php
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
+
$wp_customize->add_setting(
|
147 |
+
'add_plus_slider',
|
148 |
+
array(
|
149 |
+
'capability' => 'edit_theme_options',
|
150 |
+
'sanitize_callback' => 'sanitize_text_field',
|
151 |
+
)
|
152 |
+
);
|
153 |
+
$wp_customize->add_control( new WP_slider_plus_Customize_Control( $wp_customize, 'add_plus_slider', array(
|
154 |
+
'section' => 'slider_section',
|
155 |
+
'setting' => 'add_plus_slider',
|
156 |
+
|
157 |
+
)));
|
158 |
+
|
159 |
|
160 |
/**
|
161 |
* Add selective refresh for Front page slider section controls.
|
inc/innofit/customizer/subscriber-section.php
CHANGED
File without changes
|
inc/innofit/customizer/team-section.php
CHANGED
@@ -66,7 +66,38 @@
|
|
66 |
)
|
67 |
);
|
68 |
}
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
/**
|
72 |
* Add selective refresh for Front page team section controls.
|
66 |
)
|
67 |
);
|
68 |
}
|
69 |
+
|
70 |
+
//Plus Team
|
71 |
+
class WP_team_plus_Customize_Control extends WP_Customize_Control {
|
72 |
+
public $type = 'new_menu';
|
73 |
+
/**
|
74 |
+
* Render the control's content.
|
75 |
+
*/
|
76 |
+
public function render_content() {
|
77 |
+
?>
|
78 |
+
<div class="pro-vesrion">
|
79 |
+
<P><?php esc_html_e('More options available for Team section in Innofit Plus','spicebox');?></P>
|
80 |
+
</div>
|
81 |
+
<div class="pro-box">
|
82 |
+
<a href="<?php echo esc_url('https://spicethemes.com/innofit-plus/');?>" class="read-more-button" id="review_plus" target="_blank"><?php esc_html_e( 'Upgrade to Plus','spicebox' ); ?></a>
|
83 |
+
<div>
|
84 |
+
<?php
|
85 |
+
}
|
86 |
+
}
|
87 |
+
|
88 |
+
$wp_customize->add_setting(
|
89 |
+
'add_plus_team',
|
90 |
+
array(
|
91 |
+
'capability' => 'edit_theme_options',
|
92 |
+
'sanitize_callback' => 'sanitize_text_field',
|
93 |
+
)
|
94 |
+
);
|
95 |
+
$wp_customize->add_control( new WP_team_plus_Customize_Control( $wp_customize, 'add_plus_team', array(
|
96 |
+
'section' => 'innofit_team_section',
|
97 |
+
'setting' => 'add_plus_team',
|
98 |
+
'priority' => 16,
|
99 |
+
|
100 |
+
)));
|
101 |
|
102 |
/**
|
103 |
* Add selective refresh for Front page team section controls.
|
inc/innofit/customizer/testimonial-section.php
CHANGED
@@ -100,6 +100,38 @@ $wp_customize->add_section( 'testimonial_section' , array(
|
|
100 |
'customizer_repeater_designation_control' => true,
|
101 |
) ) );
|
102 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
|
104 |
|
105 |
/**
|
100 |
'customizer_repeater_designation_control' => true,
|
101 |
) ) );
|
102 |
}
|
103 |
+
|
104 |
+
|
105 |
+
//Plus Team
|
106 |
+
class WP_testimonial_plus_Customize_Control extends WP_Customize_Control {
|
107 |
+
public $type = 'new_menu';
|
108 |
+
/**
|
109 |
+
* Render the control's content.
|
110 |
+
*/
|
111 |
+
public function render_content() {
|
112 |
+
?>
|
113 |
+
<div class="pro-vesrion">
|
114 |
+
<P><?php esc_html_e('More options available for Testimonial section in Innofit Plus','spicebox');?></P>
|
115 |
+
</div>
|
116 |
+
<div class="pro-box">
|
117 |
+
<a href="<?php echo esc_url('https://spicethemes.com/innofit-plus/');?>" class="read-more-button" id="review_plus" target="_blank"><?php esc_html_e( 'Upgrade to Plus','spicebox' ); ?></a>
|
118 |
+
<div>
|
119 |
+
<?php
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
$wp_customize->add_setting(
|
124 |
+
'add_plus_testimonial',
|
125 |
+
array(
|
126 |
+
'capability' => 'edit_theme_options',
|
127 |
+
'sanitize_callback' => 'sanitize_text_field',
|
128 |
+
)
|
129 |
+
);
|
130 |
+
$wp_customize->add_control( new WP_testimonial_plus_Customize_Control( $wp_customize, 'add_plus_testimonial', array(
|
131 |
+
'section' => 'testimonial_section',
|
132 |
+
'setting' => 'add_plus_testimonial',
|
133 |
+
|
134 |
+
)));
|
135 |
|
136 |
|
137 |
/**
|
inc/innofit/customizer/wooproduct-section.php
CHANGED
@@ -40,6 +40,38 @@
|
|
40 |
));
|
41 |
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
/**
|
44 |
* Add selective refresh for Front page shop section controls.
|
45 |
*/
|
40 |
));
|
41 |
|
42 |
|
43 |
+
//Plus Shop
|
44 |
+
class WP_shop_plus_Customize_Control extends WP_Customize_Control {
|
45 |
+
public $type = 'new_menu';
|
46 |
+
/**
|
47 |
+
* Render the control's content.
|
48 |
+
*/
|
49 |
+
public function render_content() {
|
50 |
+
?>
|
51 |
+
<div class="pro-vesrion">
|
52 |
+
<P><?php esc_html_e('More options available for Shop section in Innofit Plus','spicebox');?></P>
|
53 |
+
</div>
|
54 |
+
<div class="pro-box">
|
55 |
+
<a href="<?php echo esc_url('https://spicethemes.com/innofit-plus/');?>" class="read-more-button" id="review_plus" target="_blank"><?php esc_html_e( 'Upgrade to Plus','spicebox' ); ?></a>
|
56 |
+
<div>
|
57 |
+
<?php
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
$wp_customize->add_setting(
|
62 |
+
'add_plus_shop',
|
63 |
+
array(
|
64 |
+
'capability' => 'edit_theme_options',
|
65 |
+
'sanitize_callback' => 'sanitize_text_field',
|
66 |
+
)
|
67 |
+
);
|
68 |
+
$wp_customize->add_control( new WP_shop_plus_Customize_Control( $wp_customize, 'add_plus_shop', array(
|
69 |
+
'section' => 'innofit_shop_section',
|
70 |
+
'setting' => 'add_plus_shop',
|
71 |
+
|
72 |
+
)));
|
73 |
+
|
74 |
+
|
75 |
/**
|
76 |
* Add selective refresh for Front page shop section controls.
|
77 |
*/
|
inc/innofit/default-pages/home-custom-menu.php
CHANGED
File without changes
|
inc/innofit/default-pages/home-page.php
CHANGED
File without changes
|
inc/innofit/default-pages/upload-media.php
CHANGED
File without changes
|
inc/innofit/default-widgets/default-widget.php
CHANGED
File without changes
|
inc/innofit/images/about/about.jpg
CHANGED
File without changes
|
inc/innofit/images/bg-pattern/bg-img0.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bg-img1.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bg-img10.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bg-img2.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bg-img3.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bg-img4.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bg-img5.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bg-img6.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bg-img7.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bg-img8.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bg-img9.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/blue.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/bluedark.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/boxed.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/brown.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/dark.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/gold.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/green.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/light.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/orange.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/pink.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/purple.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/red.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/regalblue.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sd.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm0.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm1.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm10.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm2.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm3.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm4.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm5.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm6.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm7.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm8.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/sm9.jpg
ADDED
Binary file
|
inc/innofit/images/bg-pattern/wide.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/wordpress.png
ADDED
Binary file
|
inc/innofit/images/bg-pattern/yellow.png
ADDED
Binary file
|
inc/innofit/images/logo-footer.png
CHANGED
File without changes
|
inc/innofit/images/logo.png
CHANGED
File without changes
|
inc/innofit/images/slider/slider.jpg
CHANGED
File without changes
|
inc/innofit/images/subscribe/subscribe-bg.jpg
CHANGED
File without changes
|
inc/innofit/images/team/team1.jpg
CHANGED
File without changes
|
inc/innofit/images/team/team2.jpg
CHANGED
File without changes
|
inc/innofit/images/team/team3.jpg
CHANGED
File without changes
|
inc/innofit/images/team/team4.jpg
CHANGED
File without changes
|
inc/innofit/images/testimonial/testimonial-bg.jpg
CHANGED
File without changes
|
inc/innofit/images/testimonial/user1.jpg
CHANGED
File without changes
|
inc/innofit/images/testimonial/user2.jpg
CHANGED
File without changes
|
inc/innofit/images/testimonial/user3.jpg
CHANGED
File without changes
|
inc/innofit/images/testimonial/user4.jpg
CHANGED
File without changes
|
inc/innofit/sections/innofit-about-section.php
CHANGED
File without changes
|
inc/innofit/sections/innofit-callout-section.php
CHANGED
File without changes
|
inc/innofit/sections/innofit-contact-section.php
CHANGED
File without changes
|
inc/innofit/sections/innofit-news-section.php
CHANGED
File without changes
|
inc/innofit/sections/innofit-services-section.php
CHANGED
File without changes
|
inc/innofit/sections/innofit-slider-section.php
CHANGED
File without changes
|
inc/innofit/sections/innofit-subscriber-section.php
CHANGED
File without changes
|
inc/innofit/sections/innofit-team-section.php
CHANGED
File without changes
|
inc/innofit/sections/innofit-testimonial-section.php
CHANGED
File without changes
|
inc/innofit/sections/innofit-wooproduct-section.php
CHANGED
File without changes
|
inc/js/custom-js.js
CHANGED
File without changes
|
inc/spicepress/customizer.php
CHANGED
File without changes
|
inc/spicepress/default-pages/about-page.php
CHANGED
File without changes
|
inc/spicepress/default-pages/blog-page.php
CHANGED
File without changes
|
inc/spicepress/default-pages/contact-page.php
CHANGED
File without changes
|
inc/spicepress/default-pages/home-page.php
CHANGED
File without changes
|
inc/spicepress/default-pages/portfolio-page.php
CHANGED
File without changes
|
inc/spicepress/default-pages/upload-media.php
CHANGED
File without changes
|
inc/spicepress/default-widgets/default-widget.php
CHANGED
File without changes
|
inc/spicepress/features/feature-portfolio-section.php
CHANGED
File without changes
|
inc/spicepress/features/feature-service-section.php
CHANGED
File without changes
|
inc/spicepress/features/feature-slider-section.php
CHANGED
File without changes
|
inc/spicepress/features/feature-testimonial-section.php
CHANGED
File without changes
|
inc/spicepress/images/about/about.jpg
CHANGED
File without changes
|
inc/spicepress/images/logo-footer.png
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery1.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery10.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery11.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery12.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery2.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery3.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery4.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery5.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery6.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery7.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery8.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/gallery9.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/item1.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/item2.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/item3.jpg
CHANGED
File without changes
|
inc/spicepress/images/portfolio/logo.png
CHANGED
File without changes
|
inc/spicepress/images/slider/slider.jpg
CHANGED
File without changes
|
inc/spicepress/images/testimonial/testi1.jpg
CHANGED
File without changes
|
inc/spicepress/images/testimonial/testimonial-bg.jpg
CHANGED
File without changes
|
inc/spicepress/sections/spicepress-features-section.php
CHANGED
File without changes
|
inc/spicepress/sections/spicepress-portfolio-section.php
CHANGED
File without changes
|
inc/spicepress/sections/spicepress-slider-section.php
CHANGED
File without changes
|
inc/spicepress/sections/spicepress-testimonail-section.php
CHANGED
File without changes
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: spicethemes
|
|
3 |
Tags: widget, admin, widgets
|
4 |
Requires at least: 3.3+
|
5 |
Tested up to: 5.0.3
|
6 |
-
Stable tag: 0.3.9.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -107,4 +107,8 @@ This plugin create repeater controls in the customizer settings allowing you to
|
|
107 |
|
108 |
= 0.3.9.1 =
|
109 |
|
110 |
-
1. Fixed menu create issue in innofit.
|
|
|
|
|
|
|
|
3 |
Tags: widget, admin, widgets
|
4 |
Requires at least: 3.3+
|
5 |
Tested up to: 5.0.3
|
6 |
+
Stable tag: 0.3.9.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
107 |
|
108 |
= 0.3.9.1 =
|
109 |
|
110 |
+
1. Fixed menu create issue in innofit.
|
111 |
+
|
112 |
+
= 0.3.9.2 =
|
113 |
+
|
114 |
+
1. Added Innofit plus feature link in customizer section.
|
spicebox.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SpiceBox
|
4 |
Plugin URI:
|
5 |
Description: Enhances SpiceThemes with extra functionality.
|
6 |
-
Version: 0.3.9.
|
7 |
Author: Spicethemes
|
8 |
Author URI: https://github.com
|
9 |
Text Domain: spicebox
|
@@ -48,7 +48,7 @@ function spiceb_activate() {
|
|
48 |
if ( ! function_exists( 'spiceb_innofit_customize_register' ) ) :
|
49 |
function spiceb_innofit_customize_register($wp_customize){
|
50 |
|
51 |
-
$sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct');
|
52 |
|
53 |
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
54 |
|
@@ -59,6 +59,10 @@ function spiceb_activate() {
|
|
59 |
require_once('inc/innofit/customizer/'.$section_customizer_data.'-section.php');
|
60 |
}
|
61 |
}
|
|
|
|
|
|
|
|
|
62 |
|
63 |
}
|
64 |
add_action( 'customize_register', 'spiceb_innofit_customize_register' );
|
3 |
Plugin Name: SpiceBox
|
4 |
Plugin URI:
|
5 |
Description: Enhances SpiceThemes with extra functionality.
|
6 |
+
Version: 0.3.9.2
|
7 |
Author: Spicethemes
|
8 |
Author URI: https://github.com
|
9 |
Text Domain: spicebox
|
48 |
if ( ! function_exists( 'spiceb_innofit_customize_register' ) ) :
|
49 |
function spiceb_innofit_customize_register($wp_customize){
|
50 |
|
51 |
+
$sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct','portfolio','instagram','map','pricing','funfact','client');
|
52 |
|
53 |
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
54 |
|
59 |
require_once('inc/innofit/customizer/'.$section_customizer_data.'-section.php');
|
60 |
}
|
61 |
}
|
62 |
+
require_once('inc/innofit/customizer/customizer_theme_style.php');
|
63 |
+
require_once('inc/innofit/customizer/customizer_typography.php');
|
64 |
+
require_once('inc/innofit/customizer/customizer_layout_manager.php');
|
65 |
+
require_once('inc/innofit/customizer/customizer_color_back_settings.php');
|
66 |
|
67 |
}
|
68 |
add_action( 'customize_register', 'spiceb_innofit_customize_register' );
|