Version Description
- Initial Released
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 1.0.1 |
Comparing to | |
See all releases |
Version 1.0.1
- clever-fox.php +61 -0
- inc/js/custom-js.js +30 -0
- inc/startkit/default-pages/about-page.php +44 -0
- inc/startkit/default-pages/blog-page.php +22 -0
- inc/startkit/default-pages/contact-page.php +54 -0
- inc/startkit/default-pages/home-page.php +24 -0
- inc/startkit/default-pages/service-page.php +98 -0
- inc/startkit/default-pages/upload-media.php +34 -0
- inc/startkit/default-widgets/default-widget.php +30 -0
- inc/startkit/features/footer-section.php +183 -0
- inc/startkit/features/header-section.php +806 -0
- inc/startkit/features/info-section.php +467 -0
- inc/startkit/features/section-style-configurator.php +102 -0
- inc/startkit/features/section-typography.php +1735 -0
- inc/startkit/features/service-section.php +266 -0
- inc/startkit/features/slider-section.php +280 -0
- inc/startkit/features/testimonial-section.php +269 -0
- inc/startkit/images/about/play-icon.png +0 -0
- inc/startkit/images/about/video-bg.jpg +0 -0
- inc/startkit/images/footerlogo.png +0 -0
- inc/startkit/images/logo.png +0 -0
- inc/startkit/images/service/serviceicon01.png +0 -0
- inc/startkit/images/service/serviceicon02.png +0 -0
- inc/startkit/images/service/serviceicon03.png +0 -0
- inc/startkit/images/service/serviceicon04.png +0 -0
- inc/startkit/images/slider/slider.jpg +0 -0
- inc/startkit/images/testimonial/testimonial01.png +0 -0
- inc/startkit/images/testimonial/testimonial02.png +0 -0
- inc/startkit/images/testimonial/testimonial03.png +0 -0
- inc/startkit/own-theme.php +634 -0
- inc/startkit/sections/section-flash.php +57 -0
- inc/startkit/sections/section-service.php +150 -0
- inc/startkit/sections/section-slider.php +50 -0
- inc/startkit/sections/section-testimonial.php +127 -0
- inc/startkit/typography_style.php +196 -0
- readme.txt +36 -0
clever-fox.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Clever Fox
|
4 |
+
Plugin URI:
|
5 |
+
Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
|
6 |
+
Version: 1.0.1
|
7 |
+
Author: nayrathemes
|
8 |
+
Author URI: https://nayrathemes.com
|
9 |
+
Text Domain: clever-fox
|
10 |
+
*/
|
11 |
+
define( 'CLEVERFOX_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
12 |
+
define( 'CLEVERFOX_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
13 |
+
|
14 |
+
function cleverfox_activate() {
|
15 |
+
$theme = wp_get_theme(); // gets the current theme
|
16 |
+
require_once('inc/startkit/features/header-section.php');
|
17 |
+
require_once('inc/startkit/features/slider-section.php');
|
18 |
+
require_once('inc/startkit/features/info-section.php');
|
19 |
+
require_once('inc/startkit/features/service-section.php');
|
20 |
+
require_once('inc/startkit/features/testimonial-section.php');
|
21 |
+
require_once('inc/startkit/features/footer-section.php');
|
22 |
+
require_once('inc/startkit/sections/section-slider.php');
|
23 |
+
require_once('inc/startkit/sections/section-flash.php');
|
24 |
+
require_once('inc/startkit/sections/section-service.php');
|
25 |
+
require_once('inc/startkit/sections/section-testimonial.php');
|
26 |
+
require_once('inc/startkit/typography_style.php');
|
27 |
+
require_once('inc/startkit/features/section-typography.php');
|
28 |
+
require_once('inc/startkit/features/section-style-configurator.php');
|
29 |
+
require_once('inc/startkit/own-theme.php');
|
30 |
+
}
|
31 |
+
add_action( 'init', 'cleverfox_activate' );
|
32 |
+
|
33 |
+
$theme = wp_get_theme();
|
34 |
+
register_activation_hook( __FILE__, 'cleverfox_install_function');
|
35 |
+
function cleverfox_install_function()
|
36 |
+
{
|
37 |
+
$item_details_page = get_option('item_details_page');
|
38 |
+
if(!$item_details_page){
|
39 |
+
require_once('inc/startkit/default-pages/upload-media.php');
|
40 |
+
require_once('inc/startkit/default-pages/home-page.php');
|
41 |
+
require_once('inc/startkit/default-pages/about-page.php');
|
42 |
+
require_once('inc/startkit/default-pages/blog-page.php');
|
43 |
+
require_once('inc/startkit/default-pages/service-page.php');
|
44 |
+
require_once('inc/startkit/default-pages/contact-page.php');
|
45 |
+
require_once('inc/startkit/default-widgets/default-widget.php');
|
46 |
+
update_option( 'item_details_page', 'Done' );
|
47 |
+
}
|
48 |
+
}
|
49 |
+
//Sanatize text
|
50 |
+
function cleverfox_startkit_home_page_sanitize_text( $input ) {
|
51 |
+
|
52 |
+
return wp_kses_post( force_balance_tags( $input ) );
|
53 |
+
|
54 |
+
}
|
55 |
+
|
56 |
+
function cleverfox_innofit_home_page_sanitize_text( $input ) {
|
57 |
+
|
58 |
+
return wp_kses_post( force_balance_tags( $input ) );
|
59 |
+
|
60 |
+
}
|
61 |
+
?>
|
inc/js/custom-js.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function($) {
|
2 |
+
$(document).ready(function(){
|
3 |
+
$('#submit').click(function(e) {
|
4 |
+
var ajaxurl = $('#ajaxurl').val();
|
5 |
+
var resaon = $('input[name=reason_key]:checked').val();
|
6 |
+
var SiteAdminEmail = $('#admin_mail').val();
|
7 |
+
var SiteUrl = $('#plugin_site').val();
|
8 |
+
var reasontext = '';
|
9 |
+
if(resaon=="I want to try a new design, I don't like Startkit style"){
|
10 |
+
reasontext = $('#reason_found_a_better_plugin').val();
|
11 |
+
}else if(resaon == 'Other'){
|
12 |
+
reasontext = $('#reason_other').val();
|
13 |
+
} else if(resaon == 'Is not working with a plugin that I need'){
|
14 |
+
reasontext = $('#reason_not_working_with_needed_plugin').val();
|
15 |
+
}
|
16 |
+
var dataString = 'Resason='+resaon+'&TextReason='+reasontext+'&SiteUrl='+SiteUrl+'&SiteAdminEmail='+SiteAdminEmail;
|
17 |
+
|
18 |
+
$.ajax({
|
19 |
+
type:'POST',
|
20 |
+
data:dataString,
|
21 |
+
url:ajaxurl,
|
22 |
+
success:function(data) {
|
23 |
+
location.reload();
|
24 |
+
|
25 |
+
}
|
26 |
+
});
|
27 |
+
|
28 |
+
});
|
29 |
+
});
|
30 |
+
}(jQuery));
|
inc/startkit/default-pages/about-page.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Create a about us page
|
3 |
+
$post = array(
|
4 |
+
'comment_status' => 'closed',
|
5 |
+
'ping_status' => 'closed' ,
|
6 |
+
'post_author' => 1,
|
7 |
+
'post_date' => date('Y-m-d H:i:s'),
|
8 |
+
'post_name' => 'About',
|
9 |
+
'post_status' => 'publish' ,
|
10 |
+
'post_title' => 'About',
|
11 |
+
'post_type' => 'page',
|
12 |
+
'post_content' => '<section class="about-section">
|
13 |
+
<div class="container">
|
14 |
+
<div class="row">
|
15 |
+
<div class="col-lg-6 mb-lg-0 mb-4">
|
16 |
+
<div class="section-header text-left">
|
17 |
+
<span class="section-before"></span>
|
18 |
+
<h2>Who we are</h2>
|
19 |
+
<p class="wow fadeInUp" data-wow-delay="0.1s">Publishing packages and web page editors now use Lorem Ipsum as their default model text</p>
|
20 |
+
</div>
|
21 |
+
<div class="section-info">
|
22 |
+
<p>Torem ipsum dolor sit amet, consectetur adipiscing elit. Integer adipiscing erat eget risus sollicitudin pellentesque et non erat. Maecenas nibh dolor, malesuada et bibendum a, sagittis accumsan ipsum. Pellentesque ultrices ultrices sapien, nec tincidunt nunc posuere ut. Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>
|
23 |
+
<br>
|
24 |
+
<p>sollicitudin pellentesque et non erat. Maecenas nibh dolor, malesuada et bibendum a, sagittis accumsan ipsum. Pellentesque ultrices ultrices sapien, nec tincidunt nunc posuere.</p>
|
25 |
+
</div>
|
26 |
+
<a href="#" class="boxed-btn">Contact Us <i class="icofont icofont-long-arrow-right"></i></a>
|
27 |
+
</div>
|
28 |
+
<div class="col-lg-6">
|
29 |
+
<div class="video-section" style="background:url('. CLEVERFOX_PLUGIN_URL .'inc/startkit/images/about/video-bg.jpg);">
|
30 |
+
<div class="play-icon">
|
31 |
+
<a href="https://www.youtube.com/watch?v=pGbIOC83-So&t=35s" class="playbtn mfp-iframe"><img src="'. CLEVERFOX_PLUGIN_URL .'inc/startkit/images/about/play-icon.png" alt=""></a>
|
32 |
+
</div>
|
33 |
+
<div class="watch-more">
|
34 |
+
<a href="#">Watch more <i class="fa fa-youtube"></i></a>
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
</div></div></div></section>'
|
38 |
+
);
|
39 |
+
//insert page and save the id
|
40 |
+
$newvalue = wp_insert_post( $post, false );
|
41 |
+
if ( $newvalue && ! is_wp_error( $newvalue ) ){
|
42 |
+
update_post_meta( $newvalue, '_wp_page_template', 'template/template_about.php' );
|
43 |
+
}
|
44 |
+
?>
|
inc/startkit/default-pages/blog-page.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$post = array(
|
3 |
+
'comment_status' => 'closed',
|
4 |
+
'ping_status' => 'closed' ,
|
5 |
+
'post_author' => 1,
|
6 |
+
'post_date' => date('Y-m-d H:i:s'),
|
7 |
+
'post_name' => 'Blog',
|
8 |
+
'post_status' => 'publish' ,
|
9 |
+
'post_title' => 'Blog',
|
10 |
+
'post_type' => 'page',
|
11 |
+
);
|
12 |
+
//insert page and save the id
|
13 |
+
$newvalue = wp_insert_post( $post, false );
|
14 |
+
if ( $newvalue && ! is_wp_error( $newvalue ) ){
|
15 |
+
update_post_meta( $newvalue, '_wp_page_template', 'index.php' );
|
16 |
+
|
17 |
+
// Use a static front page
|
18 |
+
$page = get_page_by_title('Blog');
|
19 |
+
update_option( 'show_on_front', 'page' );
|
20 |
+
update_option( 'page_for_posts', $page->ID );
|
21 |
+
}
|
22 |
+
?>
|
inc/startkit/default-pages/contact-page.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Create a Contact us page
|
3 |
+
$post = array(
|
4 |
+
'comment_status' => 'closed',
|
5 |
+
'ping_status' => 'closed' ,
|
6 |
+
'post_author' => 1,
|
7 |
+
'post_date' => date('Y-m-d H:i:s'),
|
8 |
+
'post_name' => 'Contact',
|
9 |
+
'post_status' => 'publish' ,
|
10 |
+
'post_title' => 'Contact',
|
11 |
+
'post_type' => 'page',
|
12 |
+
'post_content' => '<div class="row">
|
13 |
+
<div class="col-lg-5 col-md-12">
|
14 |
+
<div class="contact-us-info">
|
15 |
+
<h3>Contact Us</h3>
|
16 |
+
<ul class="contact-info">
|
17 |
+
<li class="contact-address">
|
18 |
+
<i class="icofont icofont-location-pin"></i>
|
19 |
+
<p>South Windsor, CT Build 06074 sarts</p>
|
20 |
+
</li>
|
21 |
+
<li class="contact-email">
|
22 |
+
<i class="icofont icofont-email"></i>
|
23 |
+
<p>mail@company.com
|
24 |
+
<br> info@domain.com</p>
|
25 |
+
</li>
|
26 |
+
<li class="contact-phone">
|
27 |
+
<i class="icofont icofont-ui-call"></i>
|
28 |
+
<p>+1-202-555-0104
|
29 |
+
<br> +5-402-555-0107</p>
|
30 |
+
</li>
|
31 |
+
</ul>
|
32 |
+
<a href="#" class="live-chat boxed-btn">Live Chat</a>
|
33 |
+
</div>
|
34 |
+
</div>
|
35 |
+
<div class="col-lg-7 col-md-12">
|
36 |
+
<div class="get-in-touch">
|
37 |
+
<h3>Get in Touch</h3>
|
38 |
+
<p>Feel free to contact with us</p>
|
39 |
+
<form action="index.html" method="post">
|
40 |
+
<input type="text" name="your_name" class="form-control" id="name" placeholder="Your name*" required>
|
41 |
+
<input type="email" name="your_mail" class="form-control" id="email" placeholder="Email here*" required>
|
42 |
+
<textarea name="your_message" class="form-control" rows="1" placeholder="Type your message*" required></textarea>
|
43 |
+
<button type="submit" class="boxed-btn"> Submit</button>
|
44 |
+
</form>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
</div>'
|
48 |
+
);
|
49 |
+
//insert page and save the id
|
50 |
+
$newvalue = wp_insert_post( $post, false );
|
51 |
+
if ( $newvalue && ! is_wp_error( $newvalue ) ){
|
52 |
+
update_post_meta( $newvalue, '_wp_page_template', 'templates/template_contact.php' );
|
53 |
+
}
|
54 |
+
?>
|
inc/startkit/default-pages/home-page.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//post status and options
|
3 |
+
$post = array(
|
4 |
+
'comment_status' => 'closed',
|
5 |
+
'ping_status' => 'closed' ,
|
6 |
+
'post_author' => 1,
|
7 |
+
'post_date' => date('Y-m-d H:i:s'),
|
8 |
+
'post_name' => 'Home',
|
9 |
+
'post_status' => 'publish' ,
|
10 |
+
'post_title' => 'Home',
|
11 |
+
'post_type' => 'page',
|
12 |
+
);
|
13 |
+
//insert page and save the id
|
14 |
+
$newvalue = wp_insert_post( $post, false );
|
15 |
+
if ( $newvalue && ! is_wp_error( $newvalue ) ){
|
16 |
+
update_post_meta( $newvalue, '_wp_page_template', 'templates/template-homepage-one.php' );
|
17 |
+
|
18 |
+
// Use a static front page
|
19 |
+
$page = get_page_by_title('Home');
|
20 |
+
update_option( 'show_on_front', 'page' );
|
21 |
+
update_option( 'page_on_front', $page->ID );
|
22 |
+
|
23 |
+
}
|
24 |
+
?>
|
inc/startkit/default-pages/service-page.php
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Create a service page
|
3 |
+
$post = array(
|
4 |
+
'comment_status' => 'closed',
|
5 |
+
'ping_status' => 'closed' ,
|
6 |
+
'post_author' => 1,
|
7 |
+
'post_date' => date('Y-m-d H:i:s'),
|
8 |
+
'post_name' => 'Service',
|
9 |
+
'post_status' => 'publish' ,
|
10 |
+
'post_title' => 'Service',
|
11 |
+
'post_type' => 'page',
|
12 |
+
'post_content' => '<div class="row"><div class="col-lg-3 col-md-4 col-sm-6 col-12 text-center mb-5">
|
13 |
+
<div class="servicepage-item">
|
14 |
+
<div class="service-icon">
|
15 |
+
<i class="icofont icofont-circuit"></i>
|
16 |
+
</div>
|
17 |
+
<h4>UI/UX Design</h4>
|
18 |
+
<p>There are many variaton passages of Lorem Ipsum available.</p>
|
19 |
+
<a href="#" class="learn-more">Learn More <i class="icofont icofont-long-arrow-right"></i></a>
|
20 |
+
</div>
|
21 |
+
</div>
|
22 |
+
<div class="col-lg-3 col-md-4 col-sm-6 col-12 text-center mb-5">
|
23 |
+
<div class="servicepage-item">
|
24 |
+
<div class="service-icon">
|
25 |
+
<i class="icofont icofont-canoe"></i>
|
26 |
+
</div>
|
27 |
+
<h4>Web Development</h4>
|
28 |
+
<p>There are many variaton passages of Lorem Ipsum available.</p>
|
29 |
+
<a href="#" class="learn-more">Learn More <i class="icofont icofont-long-arrow-right"></i></a>
|
30 |
+
</div>
|
31 |
+
</div>
|
32 |
+
<div class="col-lg-3 col-md-4 col-sm-6 col-12 text-center mb-5">
|
33 |
+
<div class="servicepage-item">
|
34 |
+
<div class="service-icon">
|
35 |
+
<i class="icofont icofont-butterfly-alt"></i>
|
36 |
+
</div>
|
37 |
+
<h4>Investent Solution</h4>
|
38 |
+
<p>There are many variaton passages of Lorem Ipsum available.</p>
|
39 |
+
<a href="#" class="learn-more">Learn More <i class="icofont icofont-long-arrow-right"></i></a>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
<div class="col-lg-3 col-md-4 col-sm-6 col-12 text-center mb-5">
|
43 |
+
<div class="servicepage-item">
|
44 |
+
<div class="service-icon">
|
45 |
+
<i class="icofont icofont-unity-hand"></i>
|
46 |
+
</div>
|
47 |
+
<h4>Marketing</h4>
|
48 |
+
<p>There are many variaton passages of Lorem Ipsum available.</p>
|
49 |
+
<a href="#" class="learn-more">Learn More <i class="icofont icofont-long-arrow-right"></i></a>
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
+
<div class="col-lg-3 col-md-4 col-sm-6 col-12 text-center mb-5 mb-lg-0">
|
53 |
+
<div class="servicepage-item">
|
54 |
+
<div class="service-icon">
|
55 |
+
<img src="'. CLEVERFOX_PLUGIN_URL .'inc/startkit/images/service/serviceicon01.png" alt="">
|
56 |
+
</div>
|
57 |
+
<h4>UI/UX Design</h4>
|
58 |
+
<p>There are many variaton passages of Lorem Ipsum available.</p>
|
59 |
+
<a href="#" class="learn-more">Learn More <i class="icofont icofont-long-arrow-right"></i></a>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
<div class="col-lg-3 col-md-4 col-sm-6 col-12 text-center mb-5 mb-lg-0">
|
63 |
+
<div class="servicepage-item">
|
64 |
+
<div class="service-icon">
|
65 |
+
<img src="'. CLEVERFOX_PLUGIN_URL .'inc/startkit/images/service/serviceicon02.png" alt="">
|
66 |
+
</div>
|
67 |
+
<h4>Web Development</h4>
|
68 |
+
<p>There are many variaton passages of Lorem Ipsum available.</p>
|
69 |
+
<a href="#" class="learn-more">Learn More <i class="icofont icofont-long-arrow-right"></i></a>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
<div class="col-lg-3 col-md-4 col-sm-6 col-12 text-center mb-5 mb-lg-0">
|
73 |
+
<div class="servicepage-item">
|
74 |
+
<div class="service-icon">
|
75 |
+
<img src="'. CLEVERFOX_PLUGIN_URL .'inc/startkit/images/service/serviceicon03.png" alt="">
|
76 |
+
</div>
|
77 |
+
<h4>Investent Solution</h4>
|
78 |
+
<p>There are many variaton passages of Lorem Ipsum available.</p>
|
79 |
+
<a href="#" class="learn-more">Learn More <i class="icofont icofont-long-arrow-right"></i></a>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
<div class="col-lg-3 col-md-4 col-sm-6 col-12 text-center mb-5 mb-lg-0">
|
83 |
+
<div class="servicepage-item">
|
84 |
+
<div class="service-icon">
|
85 |
+
<img src="'. CLEVERFOX_PLUGIN_URL .'inc/startkit/images/service/serviceicon04.png" alt="">
|
86 |
+
</div>
|
87 |
+
<h4>Marketing</h4>
|
88 |
+
<p>There are many variaton passages of Lorem Ipsum available.</p>
|
89 |
+
<a href="#" class="learn-more">Learn More <i class="icofont icofont-long-arrow-right"></i></a>
|
90 |
+
</div>
|
91 |
+
</div></div>'
|
92 |
+
);
|
93 |
+
//insert page and save the id
|
94 |
+
$newvalue = wp_insert_post( $post, false );
|
95 |
+
if ( $newvalue && ! is_wp_error( $newvalue ) ){
|
96 |
+
update_post_meta( $newvalue, '_wp_page_template', 'templates/template_service2.php' );
|
97 |
+
}
|
98 |
+
?>
|
inc/startkit/default-pages/upload-media.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/startkit/images/logo.png';
|
3 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/startkit/images';
|
4 |
+
|
5 |
+
$images = array(
|
6 |
+
$ImagePath. '/logo.png',
|
7 |
+
);
|
8 |
+
|
9 |
+
foreach($images as $name) {
|
10 |
+
$filename = basename($name);
|
11 |
+
$upload_file = wp_upload_bits($filename, null, file_get_contents($name));
|
12 |
+
if (!$upload_file['error']) {
|
13 |
+
$wp_filetype = wp_check_filetype($filename, null );
|
14 |
+
$attachment = array(
|
15 |
+
'post_mime_type' => $wp_filetype['type'],
|
16 |
+
'post_parent' => $parent_post_id,
|
17 |
+
'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
|
18 |
+
'post_excerpt' => 'startkit caption',
|
19 |
+
'post_status' => 'inherit'
|
20 |
+
);
|
21 |
+
$ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
|
22 |
+
|
23 |
+
if (!is_wp_error($attachment_id)) {
|
24 |
+
require_once(ABSPATH . "wp-admin" . '/includes/image.php');
|
25 |
+
$attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
|
26 |
+
wp_update_attachment_metadata( $attachment_id, $attachment_data );
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
}
|
31 |
+
|
32 |
+
update_option( 'startkit_media_id', $ImageId );
|
33 |
+
|
34 |
+
?>
|
inc/startkit/default-widgets/default-widget.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$activate = array(
|
3 |
+
'sidebar-primary' => array(
|
4 |
+
'search-1',
|
5 |
+
'recent-posts-1',
|
6 |
+
'archives-1',
|
7 |
+
),
|
8 |
+
'footer-widget-area' => array(
|
9 |
+
'footer-widget-area',
|
10 |
+
'recent-posts-1',
|
11 |
+
'archives-1',
|
12 |
+
),
|
13 |
+
'footer-widget-area' => array(
|
14 |
+
'text-1',
|
15 |
+
),
|
16 |
+
);
|
17 |
+
/* the default titles will appear */
|
18 |
+
update_option('widget_text', array(
|
19 |
+
1 => array('title' => '',
|
20 |
+
'text'=>'<div class="footer-logo"><img class="img-responsive" src="'.CLEVERFOX_PLUGIN_URL.'inc/startkit/images/footerlogo.png" alt="Logo" /><div>
|
21 |
+
<p class="widget-text">Gonsectetur adipi sicing elit, sed do eiusmod tempor incididunt labore et.dolore magna aliquauis a irure dolor eiusmod.</p><a href="#">Go for details <i class="icofont icofont-long-arrow-right"></i></a>
|
22 |
+
'),
|
23 |
+
2 => array('title' => 'Recent Posts'),
|
24 |
+
3 => array('title' => 'Categories'),
|
25 |
+
));
|
26 |
+
|
27 |
+
update_option('sidebars_widgets', $activate);
|
28 |
+
$MediaId = get_option('startkit_media_id');
|
29 |
+
set_theme_mod( 'custom_logo', $MediaId[0] );
|
30 |
+
?>
|
inc/startkit/features/footer-section.php
ADDED
@@ -0,0 +1,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function startkit_footer( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
// Footer Panel //
|
5 |
+
$wp_customize->add_panel(
|
6 |
+
'footer_section',
|
7 |
+
array(
|
8 |
+
'priority' => 131,
|
9 |
+
'capability' => 'edit_theme_options',
|
10 |
+
'title' => __('Footer Section', 'startkit'),
|
11 |
+
)
|
12 |
+
);
|
13 |
+
|
14 |
+
// Footer Setting Section //
|
15 |
+
$wp_customize->add_section(
|
16 |
+
'footer_copyright',
|
17 |
+
array(
|
18 |
+
'title' => __('Copyright Content','startkit'),
|
19 |
+
'description' =>'',
|
20 |
+
'panel' => 'footer_section',
|
21 |
+
)
|
22 |
+
);
|
23 |
+
|
24 |
+
|
25 |
+
// Copyright Content Hide/Show Setting //
|
26 |
+
// Team Hide/ Show Setting //
|
27 |
+
$wp_customize->add_setting(
|
28 |
+
'hide_show_copyright' ,
|
29 |
+
array(
|
30 |
+
'default' => '1',
|
31 |
+
'capability' => 'edit_theme_options',
|
32 |
+
)
|
33 |
+
);
|
34 |
+
|
35 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
36 |
+
'hide_show_copyright',
|
37 |
+
array(
|
38 |
+
'label' => esc_html__( 'Hide / Show Section', 'startkit' ),
|
39 |
+
'section' => 'footer_copyright',
|
40 |
+
'settings' => 'hide_show_copyright',
|
41 |
+
'type' => 'ios', // light, ios, flat
|
42 |
+
)
|
43 |
+
));
|
44 |
+
|
45 |
+
// Copyright Content Setting //
|
46 |
+
$wp_customize->add_setting(
|
47 |
+
'copyright_content',
|
48 |
+
array(
|
49 |
+
'default' => __('©2017 All Rights Reserved - Designed and Developed by Nayra Themes','startkit'),
|
50 |
+
'capability' => 'edit_theme_options',
|
51 |
+
//'sanitize_callback' => 'startkit_sanitize_html',
|
52 |
+
'transport' => $selective_refresh,
|
53 |
+
)
|
54 |
+
);
|
55 |
+
|
56 |
+
$wp_customize->add_control(
|
57 |
+
'copyright_content',
|
58 |
+
array(
|
59 |
+
'label' => __('Copyright Content','startkit'),
|
60 |
+
'section' => 'footer_copyright',
|
61 |
+
'settings' => 'copyright_content',
|
62 |
+
'type' => 'textarea',
|
63 |
+
'description' => __( '', 'startkit' ),
|
64 |
+
)
|
65 |
+
);
|
66 |
+
}
|
67 |
+
|
68 |
+
add_action( 'customize_register', 'startkit_footer' );
|
69 |
+
|
70 |
+
|
71 |
+
|
72 |
+
// Customizer tabs for copyright_content
|
73 |
+
|
74 |
+
function startkit_copyright_content_customize_register( $wp_customize ) {
|
75 |
+
if ( class_exists( 'startkit_Customize_Control_Tabs' ) ) {
|
76 |
+
|
77 |
+
// Pricing Tables Tabs
|
78 |
+
$wp_customize->add_setting(
|
79 |
+
'startkit_copyrights_tabs', array(
|
80 |
+
'sanitize_callback' => 'sanitize_text_field',
|
81 |
+
)
|
82 |
+
);
|
83 |
+
|
84 |
+
$wp_customize->add_control(
|
85 |
+
new startkit_Customize_Control_Tabs(
|
86 |
+
$wp_customize, 'startkit_copyrights_tabs', array(
|
87 |
+
'section' => 'footer_copyright',
|
88 |
+
'tabs' => array(
|
89 |
+
'general' => array(
|
90 |
+
'nicename' => esc_html__( 'Settings', 'startkit' ),
|
91 |
+
'icon' => 'cogs',
|
92 |
+
'controls' => array(
|
93 |
+
'hide_show_copyright',
|
94 |
+
|
95 |
+
),
|
96 |
+
),
|
97 |
+
'first' => array(
|
98 |
+
'nicename' => esc_html__( 'Content', 'startkit' ),
|
99 |
+
'icon' => 'table',
|
100 |
+
'controls' => array(
|
101 |
+
'copyright_content',
|
102 |
+
),
|
103 |
+
),
|
104 |
+
|
105 |
+
|
106 |
+
),
|
107 |
+
)
|
108 |
+
)
|
109 |
+
);
|
110 |
+
}
|
111 |
+
}
|
112 |
+
|
113 |
+
add_action( 'customize_register', 'startkit_copyright_content_customize_register' );
|
114 |
+
|
115 |
+
|
116 |
+
// Customizer tabs for Payment
|
117 |
+
function startkit_payment_content_customize_register( $wp_customize ) {
|
118 |
+
if ( class_exists( 'startkit_Customize_Control_Tabs' ) ) {
|
119 |
+
|
120 |
+
// Pricing Tables Tabs
|
121 |
+
$wp_customize->add_setting(
|
122 |
+
'startkit_copyright_tabs', array(
|
123 |
+
'sanitize_callback' => 'sanitize_text_field',
|
124 |
+
)
|
125 |
+
);
|
126 |
+
|
127 |
+
$wp_customize->add_control(
|
128 |
+
new startkit_Customize_Control_Tabs(
|
129 |
+
$wp_customize, 'startkit_copyright_tabs', array(
|
130 |
+
'section' => 'footer_icon',
|
131 |
+
'tabs' => array(
|
132 |
+
'general' => array(
|
133 |
+
'nicename' => esc_html__( 'Settings', 'startkit' ),
|
134 |
+
'icon' => 'cogs',
|
135 |
+
'controls' => array(
|
136 |
+
'hide_show_payment',
|
137 |
+
|
138 |
+
|
139 |
+
|
140 |
+
|
141 |
+
),
|
142 |
+
),
|
143 |
+
'first' => array(
|
144 |
+
'nicename' => esc_html__( 'Content', 'startkit' ),
|
145 |
+
'icon' => 'table',
|
146 |
+
'controls' => array(
|
147 |
+
'footer_Payment_icon',
|
148 |
+
|
149 |
+
|
150 |
+
),
|
151 |
+
),
|
152 |
+
|
153 |
+
|
154 |
+
),
|
155 |
+
)
|
156 |
+
)
|
157 |
+
);
|
158 |
+
}
|
159 |
+
}
|
160 |
+
|
161 |
+
add_action( 'customize_register', 'startkit_payment_content_customize_register' );
|
162 |
+
|
163 |
+
// footer selective refresh
|
164 |
+
function startkit_home_footer_section_partials( $wp_customize ){
|
165 |
+
|
166 |
+
|
167 |
+
// copyright_content
|
168 |
+
$wp_customize->selective_refresh->add_partial( 'copyright_content', array(
|
169 |
+
'selector' => '#footer-copyright p ',
|
170 |
+
'settings' => 'copyright_content',
|
171 |
+
'render_callback' => 'home_section_copyright_render_callback',
|
172 |
+
|
173 |
+
) );
|
174 |
+
|
175 |
+
}
|
176 |
+
|
177 |
+
add_action( 'customize_register', 'startkit_home_footer_section_partials' );
|
178 |
+
|
179 |
+
// social icons
|
180 |
+
function home_section_copyright_render_callback() {
|
181 |
+
return get_theme_mod( 'copyright_content' );
|
182 |
+
}
|
183 |
+
?>
|
inc/startkit/features/header-section.php
ADDED
@@ -0,0 +1,806 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function startkit_header_setting( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
/*=========================================
|
5 |
+
Header Settings Panel
|
6 |
+
=========================================*/
|
7 |
+
$wp_customize->add_panel(
|
8 |
+
'header_section',
|
9 |
+
array(
|
10 |
+
'priority' => 12,
|
11 |
+
'capability' => 'edit_theme_options',
|
12 |
+
'title' => __('Header Section', 'startkit'),
|
13 |
+
)
|
14 |
+
);
|
15 |
+
|
16 |
+
|
17 |
+
/*=========================================
|
18 |
+
Header Settings Section
|
19 |
+
=========================================*/
|
20 |
+
// Header Settings Section //
|
21 |
+
$wp_customize->add_section(
|
22 |
+
'header_setting',
|
23 |
+
array(
|
24 |
+
'priority' => 1,
|
25 |
+
'title' => __('Top Left Header','startkit'),
|
26 |
+
'panel' => 'header_section',
|
27 |
+
)
|
28 |
+
);
|
29 |
+
// Social Icons Hide/Show Setting //
|
30 |
+
$wp_customize->add_setting(
|
31 |
+
'hide_show_social_icon' ,
|
32 |
+
array(
|
33 |
+
'default' => '1',
|
34 |
+
'capability' => 'edit_theme_options',
|
35 |
+
//'transport' => $selective_refresh,
|
36 |
+
)
|
37 |
+
);
|
38 |
+
|
39 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
40 |
+
'hide_show_social_icon',
|
41 |
+
array(
|
42 |
+
'label' => esc_html__( 'Hide / Show Section', 'startkit' ),
|
43 |
+
'section' => 'header_setting',
|
44 |
+
'settings' => 'hide_show_social_icon',
|
45 |
+
'type' => 'ios', // light, ios, flat
|
46 |
+
)
|
47 |
+
));
|
48 |
+
/**
|
49 |
+
* Customizer Repeater
|
50 |
+
*/
|
51 |
+
$wp_customize->add_setting( 'social_icons',
|
52 |
+
array(
|
53 |
+
'sanitize_callback' => 'startkit_repeater_sanitize',
|
54 |
+
//'transport' => $selective_refresh,
|
55 |
+
'default' => json_encode(
|
56 |
+
array(
|
57 |
+
array(
|
58 |
+
|
59 |
+
'id' => 'customizer_repeater_56d7ea7f40c56',
|
60 |
+
'social_repeater' => json_encode(
|
61 |
+
array(
|
62 |
+
array(
|
63 |
+
'id' => 'customizer-repeater-social-repeater-57fb908674e06',
|
64 |
+
'link' => 'facebook.com',
|
65 |
+
'icon' => 'fa-facebook',
|
66 |
+
),
|
67 |
+
array(
|
68 |
+
'id' => 'customizer-repeater-social-repeater-57fb9148530ft',
|
69 |
+
'link' => 'plus.google.com',
|
70 |
+
'icon' => 'fa-google-plus',
|
71 |
+
),
|
72 |
+
array(
|
73 |
+
'id' => 'customizer-repeater-social-repeater-57fb9148530fc',
|
74 |
+
'link' => 'twitter.com',
|
75 |
+
'icon' => 'fa-twitter',
|
76 |
+
),
|
77 |
+
array(
|
78 |
+
'id' => 'customizer-repeater-social-repeater-57fb9150e1e89',
|
79 |
+
'link' => 'linkedin.com',
|
80 |
+
'icon' => 'fa-linkedin',
|
81 |
+
),
|
82 |
+
)
|
83 |
+
),
|
84 |
+
),
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
)
|
89 |
+
)
|
90 |
+
)
|
91 |
+
);
|
92 |
+
|
93 |
+
$wp_customize->add_control(
|
94 |
+
new Startkit_Repeater( $wp_customize,
|
95 |
+
'social_icons',
|
96 |
+
array(
|
97 |
+
'label' => esc_html__('Social Icons','startkit'),
|
98 |
+
'section' => 'header_setting',
|
99 |
+
'priority' => 2,
|
100 |
+
'customizer_repeater_repeater_control' => true
|
101 |
+
)
|
102 |
+
)
|
103 |
+
);
|
104 |
+
|
105 |
+
|
106 |
+
|
107 |
+
|
108 |
+
|
109 |
+
|
110 |
+
|
111 |
+
// address info icon startkit //
|
112 |
+
$wp_customize->add_setting(
|
113 |
+
'startkit_address_icon',
|
114 |
+
array(
|
115 |
+
'default' => __('icofont icofont-social-google-map','startkit'),
|
116 |
+
'sanitize_callback' => 'startkit_repeater_sanitize',
|
117 |
+
'capability' => 'edit_theme_options',
|
118 |
+
'transport' => $selective_refresh,
|
119 |
+
|
120 |
+
|
121 |
+
)
|
122 |
+
);
|
123 |
+
|
124 |
+
$wp_customize->add_control(
|
125 |
+
'startkit_address_icon',
|
126 |
+
array(
|
127 |
+
'label' => __('Address Icon','startkit'),
|
128 |
+
'section' => 'header_setting',
|
129 |
+
'settings' => 'startkit_address_icon',
|
130 |
+
'description' => __( '', 'startkit' ),
|
131 |
+
|
132 |
+
)
|
133 |
+
);
|
134 |
+
|
135 |
+
// address info startkit //
|
136 |
+
$wp_customize->add_setting(
|
137 |
+
'startkit_address',
|
138 |
+
array(
|
139 |
+
'default' => __('South Windsor, CT 06074','startkit'),
|
140 |
+
'sanitize_callback' => 'startkit_repeater_sanitize',
|
141 |
+
'capability' => 'edit_theme_options',
|
142 |
+
'transport' => $selective_refresh,
|
143 |
+
|
144 |
+
|
145 |
+
)
|
146 |
+
);
|
147 |
+
|
148 |
+
$wp_customize->add_control(
|
149 |
+
'startkit_address',
|
150 |
+
array(
|
151 |
+
'label' => __('Address','startkit'),
|
152 |
+
'section' => 'header_setting',
|
153 |
+
'settings' => 'startkit_address',
|
154 |
+
'description' => __( '', 'startkit' ),
|
155 |
+
'type' => 'textarea'
|
156 |
+
)
|
157 |
+
);
|
158 |
+
/*=========================================
|
159 |
+
Header Contact Settings Section
|
160 |
+
=========================================*/
|
161 |
+
// Header Contact Setting Section //
|
162 |
+
$wp_customize->add_section(
|
163 |
+
'header_contact',
|
164 |
+
array(
|
165 |
+
'priority' => 2,
|
166 |
+
'title' => __('Top Right Header','startkit'),
|
167 |
+
'description' =>'',
|
168 |
+
'panel' => 'header_section',
|
169 |
+
)
|
170 |
+
);
|
171 |
+
|
172 |
+
// Header Contact Indo Hide/Show Setting //
|
173 |
+
|
174 |
+
// Social Icons Hide/Show Setting //
|
175 |
+
$wp_customize->add_setting(
|
176 |
+
'hide_show_contact_infot' ,
|
177 |
+
array(
|
178 |
+
'default' => '1',
|
179 |
+
'capability' => 'edit_theme_options',
|
180 |
+
'transport' => $selective_refresh,
|
181 |
+
)
|
182 |
+
);
|
183 |
+
|
184 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
185 |
+
'hide_show_contact_infot',
|
186 |
+
array(
|
187 |
+
'label' => esc_html__( 'Hide / Show Section', 'startkit' ),
|
188 |
+
'section' => 'header_contact',
|
189 |
+
'settings' => 'hide_show_contact_infot',
|
190 |
+
'type' => 'ios', // light, ios, flat
|
191 |
+
)
|
192 |
+
));
|
193 |
+
|
194 |
+
// Header Email icon Setting //
|
195 |
+
$wp_customize->add_setting(
|
196 |
+
'header_email_icon',
|
197 |
+
array(
|
198 |
+
'default' => __('fa fa-envelope-o','startkit'),
|
199 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
200 |
+
'capability' => 'edit_theme_options',
|
201 |
+
'transport' => $selective_refresh,
|
202 |
+
)
|
203 |
+
);
|
204 |
+
|
205 |
+
$wp_customize->add_control(
|
206 |
+
'header_email_icon',
|
207 |
+
array(
|
208 |
+
'label' => __('Email Icon','startkit'),
|
209 |
+
'section' => 'header_contact',
|
210 |
+
'settings'=> 'header_email_icon',
|
211 |
+
'type' => 'text',
|
212 |
+
'description' => __( '', 'startkit' ),
|
213 |
+
)
|
214 |
+
);
|
215 |
+
|
216 |
+
// Header Email Setting //
|
217 |
+
$wp_customize->add_setting(
|
218 |
+
'header_email',
|
219 |
+
array(
|
220 |
+
'default' => __('Quick Email','startkit'),
|
221 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
222 |
+
'capability' => 'edit_theme_options',
|
223 |
+
'transport' => $selective_refresh,
|
224 |
+
)
|
225 |
+
);
|
226 |
+
|
227 |
+
$wp_customize->add_control(
|
228 |
+
'header_email',
|
229 |
+
array(
|
230 |
+
'label' => __('Email','startkit'),
|
231 |
+
'section' => 'header_contact',
|
232 |
+
'settings'=> 'header_email',
|
233 |
+
'type' => 'text',
|
234 |
+
'description' => __( '', 'startkit' ),
|
235 |
+
)
|
236 |
+
);
|
237 |
+
|
238 |
+
// Header Contact Number Setting //
|
239 |
+
|
240 |
+
$wp_customize->add_setting(
|
241 |
+
'header_phone_icon',
|
242 |
+
array(
|
243 |
+
'default' => __('fa fa-phone','startkit'),
|
244 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
245 |
+
'capability' => 'edit_theme_options',
|
246 |
+
'transport' => $selective_refresh,
|
247 |
+
)
|
248 |
+
);
|
249 |
+
|
250 |
+
$wp_customize->add_control(
|
251 |
+
'header_phone_icon',
|
252 |
+
array(
|
253 |
+
'label' => __('Phone Icon','startkit'),
|
254 |
+
'section' => 'header_contact',
|
255 |
+
'settings'=> 'header_phone_icon',
|
256 |
+
'type' => 'text',
|
257 |
+
'description' => __( '', 'startkit' ),
|
258 |
+
)
|
259 |
+
);
|
260 |
+
|
261 |
+
$wp_customize->add_setting(
|
262 |
+
'header_phone_number',
|
263 |
+
array(
|
264 |
+
'default' => __('+1-900-242-23-23','startkit'),
|
265 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
266 |
+
'capability' => 'edit_theme_options',
|
267 |
+
'transport' => $selective_refresh,
|
268 |
+
)
|
269 |
+
);
|
270 |
+
|
271 |
+
$wp_customize->add_control(
|
272 |
+
'header_phone_number',
|
273 |
+
array(
|
274 |
+
'label' => __('Phone Number','startkit'),
|
275 |
+
'section' => 'header_contact',
|
276 |
+
'settings'=> 'header_phone_number',
|
277 |
+
'type' => 'text',
|
278 |
+
'description' => __( '', 'startkit' ),
|
279 |
+
)
|
280 |
+
);
|
281 |
+
|
282 |
+
|
283 |
+
|
284 |
+
|
285 |
+
|
286 |
+
/*=========================================
|
287 |
+
Header search & cart Settings Section
|
288 |
+
=========================================*/
|
289 |
+
// Header search & cart Setting Section //
|
290 |
+
$wp_customize->add_section(
|
291 |
+
'header_contact_cart',
|
292 |
+
array(
|
293 |
+
'priority' => 3,
|
294 |
+
'title' => __('Header Search & Cart','startkit'),
|
295 |
+
'description' =>'',
|
296 |
+
'panel' => 'header_section',
|
297 |
+
)
|
298 |
+
);
|
299 |
+
// hide/show search & cart settings
|
300 |
+
$wp_customize->add_setting(
|
301 |
+
'cart_header_setting' ,
|
302 |
+
array(
|
303 |
+
'default' => '1',
|
304 |
+
'capability' => 'edit_theme_options',
|
305 |
+
|
306 |
+
)
|
307 |
+
);
|
308 |
+
|
309 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
310 |
+
'cart_header_setting',
|
311 |
+
array(
|
312 |
+
'label' => esc_html__( 'Hide / Show Section', 'startkit' ),
|
313 |
+
'section' => 'header_contact_cart',
|
314 |
+
'settings' => 'cart_header_setting',
|
315 |
+
'type' => 'ios', // light, ios, flat
|
316 |
+
)
|
317 |
+
));
|
318 |
+
|
319 |
+
// Header search Setting //
|
320 |
+
$wp_customize->add_setting(
|
321 |
+
'header_search',
|
322 |
+
array(
|
323 |
+
'default' => __('icofont icofont-search','startkit'),
|
324 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
325 |
+
'capability' => 'edit_theme_options',
|
326 |
+
//'transport' => $selective_refresh,
|
327 |
+
)
|
328 |
+
);
|
329 |
+
|
330 |
+
$wp_customize->add_control(
|
331 |
+
'header_search',
|
332 |
+
array(
|
333 |
+
'label' => __('Search Icon','startkit'),
|
334 |
+
'section' => 'header_contact_cart',
|
335 |
+
'settings'=> 'header_search',
|
336 |
+
'type' => 'text',
|
337 |
+
'description' => __( '', 'startkit' ),
|
338 |
+
)
|
339 |
+
);
|
340 |
+
|
341 |
+
// Header cart Setting //
|
342 |
+
$wp_customize->add_setting(
|
343 |
+
'header_cart',
|
344 |
+
array(
|
345 |
+
'default' => __('icofont icofont-shopping-cart','startkit'),
|
346 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
347 |
+
'capability' => 'edit_theme_options',
|
348 |
+
//'transport' => $selective_refresh,
|
349 |
+
)
|
350 |
+
);
|
351 |
+
|
352 |
+
$wp_customize->add_control(
|
353 |
+
'header_cart',
|
354 |
+
array(
|
355 |
+
'label' => __('Cart Icon','startkit'),
|
356 |
+
'section' => 'header_contact_cart',
|
357 |
+
'settings'=> 'header_cart',
|
358 |
+
'type' => 'text',
|
359 |
+
'description' => __( '', 'startkit' ),
|
360 |
+
)
|
361 |
+
);
|
362 |
+
|
363 |
+
|
364 |
+
|
365 |
+
|
366 |
+
/*=========================================
|
367 |
+
Header booknow button Section
|
368 |
+
=========================================*/
|
369 |
+
$wp_customize->add_section(
|
370 |
+
'header_booknow',
|
371 |
+
array(
|
372 |
+
'priority' => 4,
|
373 |
+
'title' => __('Button Setting','startkit'),
|
374 |
+
'description' =>'',
|
375 |
+
'panel' => 'header_section',
|
376 |
+
)
|
377 |
+
);
|
378 |
+
|
379 |
+
// hide/show search & cart settings
|
380 |
+
$wp_customize->add_setting(
|
381 |
+
'booknow_setting' ,
|
382 |
+
array(
|
383 |
+
'default' => '1',
|
384 |
+
'capability' => 'edit_theme_options',
|
385 |
+
)
|
386 |
+
);
|
387 |
+
|
388 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
389 |
+
'booknow_setting',
|
390 |
+
array(
|
391 |
+
'label' => esc_html__( 'Hide / Show Section', 'startkit' ),
|
392 |
+
'section' => 'header_booknow',
|
393 |
+
'settings' => 'booknow_setting',
|
394 |
+
'type' => 'ios', // light, ios, flat
|
395 |
+
)
|
396 |
+
));
|
397 |
+
// Header button icon Setting //
|
398 |
+
$wp_customize->add_setting(
|
399 |
+
'header_btn_icon',
|
400 |
+
array(
|
401 |
+
'default' => __('fa fa-search','startkit'),
|
402 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
403 |
+
'capability' => 'edit_theme_options',
|
404 |
+
)
|
405 |
+
);
|
406 |
+
|
407 |
+
$wp_customize->add_control(
|
408 |
+
'header_btn_icon',
|
409 |
+
array(
|
410 |
+
'label' => __('Button Icon','startkit'),
|
411 |
+
'section' => 'header_booknow',
|
412 |
+
'settings'=> 'header_btn_icon',
|
413 |
+
'type' => 'text',
|
414 |
+
'description' => __( '', 'startkit' ),
|
415 |
+
)
|
416 |
+
);
|
417 |
+
// Header button label Setting //
|
418 |
+
$wp_customize->add_setting(
|
419 |
+
'header_btn_lbl',
|
420 |
+
array(
|
421 |
+
'default' => __('Book Now','startkit'),
|
422 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
423 |
+
'capability' => 'edit_theme_options',
|
424 |
+
)
|
425 |
+
);
|
426 |
+
|
427 |
+
$wp_customize->add_control(
|
428 |
+
'header_btn_lbl',
|
429 |
+
array(
|
430 |
+
'label' => __('Button label','startkit'),
|
431 |
+
'section' => 'header_booknow',
|
432 |
+
'settings'=> 'header_btn_lbl',
|
433 |
+
'type' => 'text',
|
434 |
+
'description' => __( '', 'startkit' ),
|
435 |
+
)
|
436 |
+
);
|
437 |
+
|
438 |
+
// Header button link Setting //
|
439 |
+
$wp_customize->add_setting(
|
440 |
+
'header_btn_link',
|
441 |
+
array(
|
442 |
+
'default' => __('#','startkit'),
|
443 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
444 |
+
'capability' => 'edit_theme_options',
|
445 |
+
)
|
446 |
+
);
|
447 |
+
|
448 |
+
$wp_customize->add_control(
|
449 |
+
'header_btn_link',
|
450 |
+
array(
|
451 |
+
'label' => __('Button link','startkit'),
|
452 |
+
'section' => 'header_booknow',
|
453 |
+
'settings'=> 'header_btn_link',
|
454 |
+
'type' => 'text',
|
455 |
+
'description' => __( '', 'startkit' ),
|
456 |
+
)
|
457 |
+
);
|
458 |
+
/*=========================================
|
459 |
+
Sticky Header Section
|
460 |
+
=========================================*/
|
461 |
+
$wp_customize->add_section(
|
462 |
+
'sticky_header',
|
463 |
+
array(
|
464 |
+
'priority' => 3,
|
465 |
+
'title' => __('Sticky Header','startkit'),
|
466 |
+
'description' =>'',
|
467 |
+
'panel' => 'header_section',
|
468 |
+
)
|
469 |
+
);
|
470 |
+
|
471 |
+
|
472 |
+
$wp_customize->add_setting(
|
473 |
+
'sticky_header_setting' ,
|
474 |
+
array(
|
475 |
+
'default' => '1',
|
476 |
+
'capability' => 'edit_theme_options',
|
477 |
+
)
|
478 |
+
);
|
479 |
+
|
480 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
481 |
+
'sticky_header_setting',
|
482 |
+
array(
|
483 |
+
'label' => esc_html__( 'Hide / Show Section', 'startkit' ),
|
484 |
+
'section' => 'sticky_header',
|
485 |
+
'settings' => 'sticky_header_setting',
|
486 |
+
'type' => 'ios', // light, ios, flat
|
487 |
+
)
|
488 |
+
));
|
489 |
+
}
|
490 |
+
|
491 |
+
add_action( 'customize_register', 'startkit_header_setting' );
|
492 |
+
?>
|
493 |
+
|
494 |
+
<?php
|
495 |
+
// Customizer tabs for header social media & address
|
496 |
+
|
497 |
+
function startkit_social_customize_register( $wp_customize ) {
|
498 |
+
if ( class_exists( 'startkit_Customize_Control_Tabs' ) ) {
|
499 |
+
|
500 |
+
|
501 |
+
$wp_customize->add_setting(
|
502 |
+
'startkit_social_tabs', array(
|
503 |
+
'sanitize_callback' => 'sanitize_text_field',
|
504 |
+
)
|
505 |
+
);
|
506 |
+
|
507 |
+
$wp_customize->add_control(
|
508 |
+
new startkit_Customize_Control_Tabs(
|
509 |
+
$wp_customize, 'startkit_social_tabs', array(
|
510 |
+
'section' => 'header_setting',
|
511 |
+
'tabs' => array(
|
512 |
+
'general' => array(
|
513 |
+
'nicename' => esc_html__( 'Setting', 'startkit' ),
|
514 |
+
'icon' => 'cogs',
|
515 |
+
'controls' => array(
|
516 |
+
'hide_show_social_icon',
|
517 |
+
|
518 |
+
),
|
519 |
+
),
|
520 |
+
'first' => array(
|
521 |
+
'nicename' => esc_html__( 'Social Icons', 'startkit' ),
|
522 |
+
'icon' => 'table',
|
523 |
+
'controls' => array(
|
524 |
+
'social_icons',
|
525 |
+
|
526 |
+
|
527 |
+
),
|
528 |
+
),
|
529 |
+
'second' => array(
|
530 |
+
'nicename' => esc_html__( 'Address', 'startkit' ),
|
531 |
+
'icon' => 'table',
|
532 |
+
'controls' => array(
|
533 |
+
'startkit_address_icon',
|
534 |
+
'startkit_address',
|
535 |
+
|
536 |
+
),
|
537 |
+
),
|
538 |
+
),
|
539 |
+
)
|
540 |
+
)
|
541 |
+
);
|
542 |
+
}
|
543 |
+
}
|
544 |
+
|
545 |
+
add_action( 'customize_register', 'startkit_social_customize_register' );
|
546 |
+
|
547 |
+
|
548 |
+
|
549 |
+
// Customizer tabs for header social media & address
|
550 |
+
|
551 |
+
function startkit_contact_customize_register( $wp_customize ) {
|
552 |
+
if ( class_exists( 'startkit_Customize_Control_Tabs' ) ) {
|
553 |
+
|
554 |
+
|
555 |
+
$wp_customize->add_setting(
|
556 |
+
'startkit_contact_tabs', array(
|
557 |
+
'sanitize_callback' => 'sanitize_text_field',
|
558 |
+
)
|
559 |
+
);
|
560 |
+
|
561 |
+
$wp_customize->add_control(
|
562 |
+
new startkit_Customize_Control_Tabs(
|
563 |
+
$wp_customize, 'startkit_contact_tabs', array(
|
564 |
+
'section' => 'header_contact',
|
565 |
+
'tabs' => array(
|
566 |
+
'general' => array(
|
567 |
+
'nicename' => esc_html__( 'Setting', 'startkit' ),
|
568 |
+
'icon' => 'cogs',
|
569 |
+
'controls' => array(
|
570 |
+
'hide_show_contact_infot',
|
571 |
+
|
572 |
+
),
|
573 |
+
),
|
574 |
+
'first' => array(
|
575 |
+
'nicename' => esc_html__( 'Email', 'startkit' ),
|
576 |
+
'icon' => 'table',
|
577 |
+
'controls' => array(
|
578 |
+
'header_email_icon',
|
579 |
+
'header_email',
|
580 |
+
|
581 |
+
),
|
582 |
+
),
|
583 |
+
'second' => array(
|
584 |
+
'nicename' => esc_html__( 'Phone', 'startkit' ),
|
585 |
+
'icon' => 'table',
|
586 |
+
'controls' => array(
|
587 |
+
'header_phone_icon',
|
588 |
+
'header_phone_number',
|
589 |
+
),
|
590 |
+
),
|
591 |
+
|
592 |
+
),
|
593 |
+
)
|
594 |
+
)
|
595 |
+
);
|
596 |
+
}
|
597 |
+
}
|
598 |
+
|
599 |
+
add_action( 'customize_register', 'startkit_contact_customize_register' );
|
600 |
+
|
601 |
+
|
602 |
+
// Customizer tabs for header Search & cart
|
603 |
+
|
604 |
+
function startkit_search_customize_register( $wp_customize ) {
|
605 |
+
if ( class_exists( 'startkit_Customize_Control_Tabs' ) ) {
|
606 |
+
|
607 |
+
|
608 |
+
$wp_customize->add_setting(
|
609 |
+
'startkit_search_tabs', array(
|
610 |
+
'sanitize_callback' => 'sanitize_text_field',
|
611 |
+
)
|
612 |
+
);
|
613 |
+
|
614 |
+
$wp_customize->add_control(
|
615 |
+
new startkit_Customize_Control_Tabs(
|
616 |
+
$wp_customize, 'startkit_search_tabs', array(
|
617 |
+
'section' => 'header_contact_cart',
|
618 |
+
'tabs' => array(
|
619 |
+
'general' => array(
|
620 |
+
'nicename' => esc_html__( 'Setting', 'startkit' ),
|
621 |
+
'icon' => 'cogs',
|
622 |
+
'controls' => array(
|
623 |
+
'cart_header_setting',
|
624 |
+
|
625 |
+
),
|
626 |
+
),
|
627 |
+
'first' => array(
|
628 |
+
'nicename' => esc_html__( 'Search', 'startkit' ),
|
629 |
+
'icon' => 'table',
|
630 |
+
'controls' => array(
|
631 |
+
'header_search',
|
632 |
+
|
633 |
+
|
634 |
+
),
|
635 |
+
),
|
636 |
+
'second' => array(
|
637 |
+
'nicename' => esc_html__( 'Cart', 'startkit' ),
|
638 |
+
'icon' => 'table',
|
639 |
+
'controls' => array(
|
640 |
+
'header_cart',
|
641 |
+
|
642 |
+
),
|
643 |
+
),
|
644 |
+
|
645 |
+
),
|
646 |
+
)
|
647 |
+
)
|
648 |
+
);
|
649 |
+
}
|
650 |
+
}
|
651 |
+
|
652 |
+
add_action( 'customize_register', 'startkit_search_customize_register' );
|
653 |
+
|
654 |
+
// book now button control tabs
|
655 |
+
|
656 |
+
function startkit_booknow_customize_register( $wp_customize ) {
|
657 |
+
if ( class_exists( 'startkit_Customize_Control_Tabs' ) ) {
|
658 |
+
|
659 |
+
|
660 |
+
$wp_customize->add_setting(
|
661 |
+
'startkit_booknow_tabs', array(
|
662 |
+
'sanitize_callback' => 'sanitize_text_field',
|
663 |
+
)
|
664 |
+
);
|
665 |
+
|
666 |
+
$wp_customize->add_control(
|
667 |
+
new startkit_Customize_Control_Tabs(
|
668 |
+
$wp_customize, 'startkit_booknow_tabs', array(
|
669 |
+
'section' => 'header_booknow',
|
670 |
+
'tabs' => array(
|
671 |
+
'general' => array(
|
672 |
+
'nicename' => esc_html__( 'Setting', 'startkit' ),
|
673 |
+
'icon' => 'cogs',
|
674 |
+
'controls' => array(
|
675 |
+
'booknow_setting',
|
676 |
+
|
677 |
+
),
|
678 |
+
),
|
679 |
+
'first' => array(
|
680 |
+
'nicename' => esc_html__( 'Book Now', 'startkit' ),
|
681 |
+
'icon' => 'table',
|
682 |
+
'controls' => array(
|
683 |
+
'header_btn_icon',
|
684 |
+
'header_btn_lbl',
|
685 |
+
'header_btn_link',
|
686 |
+
|
687 |
+
|
688 |
+
|
689 |
+
),
|
690 |
+
),
|
691 |
+
|
692 |
+
|
693 |
+
),
|
694 |
+
)
|
695 |
+
)
|
696 |
+
);
|
697 |
+
}
|
698 |
+
}
|
699 |
+
|
700 |
+
add_action( 'customize_register', 'startkit_booknow_customize_register' );
|
701 |
+
|
702 |
+
|
703 |
+
// header selective refresh
|
704 |
+
function startkit_home_header_section_partials( $wp_customize ){
|
705 |
+
// email hide/show
|
706 |
+
$wp_customize->selective_refresh->add_partial( 'hide_show_contact_infot', array(
|
707 |
+
//'selector' => '#header-top .header-social',
|
708 |
+
'settings' => 'hide_show_contact_infot',
|
709 |
+
'render_callback' => 'header_section_cont_hide_render_callback',
|
710 |
+
|
711 |
+
) );
|
712 |
+
|
713 |
+
// social icons
|
714 |
+
$wp_customize->selective_refresh->add_partial( 'social_icons', array(
|
715 |
+
'selector' => '#header-top .header-social',
|
716 |
+
'settings' => 'social_icons',
|
717 |
+
'render_callback' => 'header_section_social_render_callback',
|
718 |
+
|
719 |
+
) );
|
720 |
+
// address
|
721 |
+
$wp_customize->selective_refresh->add_partial( 'startkit_address_icon', array(
|
722 |
+
'selector' => '#header-top .address i',
|
723 |
+
'settings' => 'startkit_address_icon',
|
724 |
+
'render_callback' => 'header_section_add_icon_render_callback',
|
725 |
+
|
726 |
+
) );
|
727 |
+
|
728 |
+
// email
|
729 |
+
|
730 |
+
$wp_customize->selective_refresh->add_partial( 'header_email_icon', array(
|
731 |
+
'selector' => '#header-top .email i',
|
732 |
+
'settings' => 'header_email_icon',
|
733 |
+
'render_callback' => 'header_section_email_render_callback',
|
734 |
+
|
735 |
+
) );
|
736 |
+
|
737 |
+
// header_phone_icon
|
738 |
+
|
739 |
+
$wp_customize->selective_refresh->add_partial( 'header_phone_icon', array(
|
740 |
+
'selector' => '#header-top .phone i',
|
741 |
+
'settings' => 'header_phone_icon',
|
742 |
+
'render_callback' => 'header_section_phone_render_callback',
|
743 |
+
|
744 |
+
) );
|
745 |
+
// header_search_icon
|
746 |
+
|
747 |
+
$wp_customize->selective_refresh->add_partial( 'header_search', array(
|
748 |
+
'selector' => '#header .header-right-bar .search-button i',
|
749 |
+
'settings' => 'header_search',
|
750 |
+
'render_callback' => 'header_section_search_render_callback',
|
751 |
+
|
752 |
+
) );
|
753 |
+
|
754 |
+
// header_cart_icon
|
755 |
+
|
756 |
+
$wp_customize->selective_refresh->add_partial( 'header_cart', array(
|
757 |
+
'selector' => '#header .header-right-bar .cart-icon i',
|
758 |
+
'settings' => 'header_cart',
|
759 |
+
'render_callback' => 'header_section_cart_render_callback',
|
760 |
+
|
761 |
+
) );
|
762 |
+
// book now button
|
763 |
+
|
764 |
+
$wp_customize->selective_refresh->add_partial( 'header_btn_lbl', array(
|
765 |
+
'selector' => '#header .header-right-bar .book-now-btn',
|
766 |
+
'settings' => 'header_btn_lbl',
|
767 |
+
'render_callback' => 'header_section_booknow_render_callback',
|
768 |
+
|
769 |
+
) );
|
770 |
+
}
|
771 |
+
|
772 |
+
add_action( 'customize_register', 'startkit_home_header_section_partials' );
|
773 |
+
|
774 |
+
// social icons
|
775 |
+
function header_section_cont_hide_render_callback() {
|
776 |
+
return get_theme_mod( 'hide_show_contact_infot' );
|
777 |
+
}
|
778 |
+
function header_section_social_render_callback() {
|
779 |
+
return get_theme_mod( 'social_icons' );
|
780 |
+
}
|
781 |
+
// address icon
|
782 |
+
function header_section_add_icon_render_callback() {
|
783 |
+
return get_theme_mod( 'startkit_address_icon' );
|
784 |
+
}
|
785 |
+
// email
|
786 |
+
function header_section_email_render_callback() {
|
787 |
+
return get_theme_mod( 'header_email_icon' );
|
788 |
+
}
|
789 |
+
// phone
|
790 |
+
function header_section_phone_render_callback() {
|
791 |
+
return get_theme_mod( 'header_phone_icon' );
|
792 |
+
}
|
793 |
+
|
794 |
+
// search
|
795 |
+
function header_section_search_render_callback() {
|
796 |
+
return get_theme_mod( 'header_search' );
|
797 |
+
}
|
798 |
+
// cart
|
799 |
+
function header_section_cart_render_callback() {
|
800 |
+
return get_theme_mod( 'header_cart' );
|
801 |
+
}
|
802 |
+
// book now button
|
803 |
+
function header_section_booknow_render_callback() {
|
804 |
+
return get_theme_mod( 'header_btn_lbl' );
|
805 |
+
}
|
806 |
+
?>
|
inc/startkit/features/info-section.php
ADDED
@@ -0,0 +1,467 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function startkit_info_setting( $wp_customize ) {
|
4 |
+
|
5 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
6 |
+
/*=========================================
|
7 |
+
Slider Section Panel
|
8 |
+
=========================================*/
|
9 |
+
if ( class_exists( 'startkit_Hiding_Section' ) ) {
|
10 |
+
$wp_customize->add_section(
|
11 |
+
new startkit_Hiding_Section(
|
12 |
+
$wp_customize, 'info_setting', array(
|
13 |
+
'title' => esc_html__( 'Info Section', 'startkit' ),
|
14 |
+
'panel' => 'startkit_frontpage_sections',
|
15 |
+
'priority' => apply_filters( 'startkit_section_priority', 10, 'startkit_info' ),
|
16 |
+
'hiding_control' => 'startkit_pricing_hide',
|
17 |
+
)
|
18 |
+
)
|
19 |
+
);
|
20 |
+
} else {
|
21 |
+
$wp_customize->add_section(
|
22 |
+
'info_setting', array(
|
23 |
+
'title' => esc_html__( 'Info Section', 'startkit' ),
|
24 |
+
'panel' => 'startkit_frontpage_sections',
|
25 |
+
'priority' => apply_filters( 'startkit_section_priority', 10, 'startkit_info' ),
|
26 |
+
)
|
27 |
+
);
|
28 |
+
}
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
// info Hide/ Show Setting //
|
33 |
+
$wp_customize->add_setting(
|
34 |
+
'hide_show_info' ,
|
35 |
+
array(
|
36 |
+
'default' => '1',
|
37 |
+
'capability' => 'edit_theme_options',
|
38 |
+
)
|
39 |
+
);
|
40 |
+
|
41 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
42 |
+
'hide_show_info',
|
43 |
+
array(
|
44 |
+
'label' => esc_html__( 'Hide / Show Section', 'startkit' ),
|
45 |
+
'section' => 'info_setting',
|
46 |
+
'settings' => 'hide_show_info',
|
47 |
+
'type' => 'ios', // light, ios, flat
|
48 |
+
)
|
49 |
+
));
|
50 |
+
/*=========================================
|
51 |
+
Info contents Section first
|
52 |
+
=========================================*/
|
53 |
+
|
54 |
+
|
55 |
+
// info icon //
|
56 |
+
$wp_customize->add_setting(
|
57 |
+
'info_icons',
|
58 |
+
array(
|
59 |
+
'default' => __('icofont icofont-triangle','startkit'),
|
60 |
+
'capability' => 'edit_theme_options',
|
61 |
+
//'transport' => $selective_refresh,
|
62 |
+
)
|
63 |
+
);
|
64 |
+
|
65 |
+
$wp_customize->add_control(
|
66 |
+
'info_icons',
|
67 |
+
array(
|
68 |
+
'label' => __('Icon','startkit'),
|
69 |
+
'section' => 'info_setting',
|
70 |
+
'settings'=> 'info_icons',
|
71 |
+
'type' => 'text',
|
72 |
+
'description' => __('', 'startkit' ),
|
73 |
+
)
|
74 |
+
);
|
75 |
+
|
76 |
+
// info title //
|
77 |
+
$wp_customize->add_setting(
|
78 |
+
'info_title',
|
79 |
+
array(
|
80 |
+
'default' => __('Design For Business','startkit'),
|
81 |
+
'capability' => 'edit_theme_options',
|
82 |
+
'transport' => $selective_refresh,
|
83 |
+
)
|
84 |
+
);
|
85 |
+
|
86 |
+
$wp_customize->add_control(
|
87 |
+
'info_title',
|
88 |
+
array(
|
89 |
+
'label' => __('Title','startkit'),
|
90 |
+
'section' => 'info_setting',
|
91 |
+
'settings'=> 'info_title',
|
92 |
+
'type' => 'text',
|
93 |
+
'description' => __('', 'startkit' ),
|
94 |
+
)
|
95 |
+
);
|
96 |
+
|
97 |
+
// info Description //
|
98 |
+
$wp_customize->add_setting(
|
99 |
+
'info_description',
|
100 |
+
array(
|
101 |
+
'default' => __('The chunk standard of Lorem Ipsum used since the 900s is reproduced below','startkit'),
|
102 |
+
'capability' => 'edit_theme_options',
|
103 |
+
'transport' => $selective_refresh,
|
104 |
+
)
|
105 |
+
);
|
106 |
+
|
107 |
+
$wp_customize->add_control(
|
108 |
+
'info_description',
|
109 |
+
array(
|
110 |
+
'label' => __('Description','startkit'),
|
111 |
+
'section' => 'info_setting',
|
112 |
+
'settings'=> 'info_description',
|
113 |
+
'type' => 'text',
|
114 |
+
'description' => __('', 'startkit' ),
|
115 |
+
)
|
116 |
+
);
|
117 |
+
|
118 |
+
|
119 |
+
/*=========================================
|
120 |
+
Info contents Section second
|
121 |
+
=========================================*/
|
122 |
+
|
123 |
+
|
124 |
+
// info icon //
|
125 |
+
$wp_customize->add_setting(
|
126 |
+
'info_icons2',
|
127 |
+
array(
|
128 |
+
'default' => __('icofont icofont-brand-airtel','startkit'),
|
129 |
+
'capability' => 'edit_theme_options',
|
130 |
+
//'transport' => $selective_refresh,
|
131 |
+
)
|
132 |
+
);
|
133 |
+
|
134 |
+
$wp_customize->add_control(
|
135 |
+
'info_icons2',
|
136 |
+
array(
|
137 |
+
'label' => __('Icon','startkit'),
|
138 |
+
'section' => 'info_setting',
|
139 |
+
'settings'=> 'info_icons2',
|
140 |
+
'type' => 'text',
|
141 |
+
'description' => __('', 'startkit' ),
|
142 |
+
)
|
143 |
+
);
|
144 |
+
|
145 |
+
// info title //
|
146 |
+
$wp_customize->add_setting(
|
147 |
+
'info_title2',
|
148 |
+
array(
|
149 |
+
'default' => __('Develop For Work','startkit'),
|
150 |
+
'capability' => 'edit_theme_options',
|
151 |
+
'transport' => $selective_refresh,
|
152 |
+
)
|
153 |
+
);
|
154 |
+
|
155 |
+
$wp_customize->add_control(
|
156 |
+
'info_title2',
|
157 |
+
array(
|
158 |
+
'label' => __('Title','startkit'),
|
159 |
+
'section' => 'info_setting',
|
160 |
+
'settings'=> 'info_title2',
|
161 |
+
'type' => 'text',
|
162 |
+
'description' => __('', 'startkit' ),
|
163 |
+
)
|
164 |
+
);
|
165 |
+
|
166 |
+
// info Description //
|
167 |
+
$wp_customize->add_setting(
|
168 |
+
'info_description2',
|
169 |
+
array(
|
170 |
+
'default' => __('The chunk standard of Lorem Ipsum used since the 900s is reproduced below','startkit'),
|
171 |
+
'capability' => 'edit_theme_options',
|
172 |
+
'transport' => $selective_refresh,
|
173 |
+
)
|
174 |
+
);
|
175 |
+
|
176 |
+
$wp_customize->add_control(
|
177 |
+
'info_description2',
|
178 |
+
array(
|
179 |
+
'label' => __('Description','startkit'),
|
180 |
+
'section' => 'info_setting',
|
181 |
+
'settings'=> 'info_description2',
|
182 |
+
'type' => 'text',
|
183 |
+
'description' => __('', 'startkit' ),
|
184 |
+
)
|
185 |
+
);
|
186 |
+
|
187 |
+
|
188 |
+
|
189 |
+
/*=========================================
|
190 |
+
Info contents Section third
|
191 |
+
=========================================*/
|
192 |
+
|
193 |
+
// info icon //
|
194 |
+
$wp_customize->add_setting(
|
195 |
+
'info_icons3',
|
196 |
+
array(
|
197 |
+
'default' => __('icofont icofont-brand-teliasonera','startkit'),
|
198 |
+
'capability' => 'edit_theme_options',
|
199 |
+
//'transport' => $selective_refresh,
|
200 |
+
)
|
201 |
+
);
|
202 |
+
|
203 |
+
$wp_customize->add_control(
|
204 |
+
'info_icons3',
|
205 |
+
array(
|
206 |
+
'label' => __('Icon','startkit'),
|
207 |
+
'section' => 'info_setting',
|
208 |
+
'settings'=> 'info_icons3',
|
209 |
+
'type' => 'text',
|
210 |
+
'description' => __('', 'startkit' ),
|
211 |
+
)
|
212 |
+
);
|
213 |
+
|
214 |
+
// info title //
|
215 |
+
$wp_customize->add_setting(
|
216 |
+
'info_title3',
|
217 |
+
array(
|
218 |
+
'default' => __('Maketing For Blast','startkit'),
|
219 |
+
'capability' => 'edit_theme_options',
|
220 |
+
'transport' => $selective_refresh,
|
221 |
+
)
|
222 |
+
);
|
223 |
+
|
224 |
+
$wp_customize->add_control(
|
225 |
+
'info_title3',
|
226 |
+
array(
|
227 |
+
'label' => __('Title','startkit'),
|
228 |
+
'section' => 'info_setting',
|
229 |
+
'settings'=> 'info_title3',
|
230 |
+
'type' => 'text',
|
231 |
+
'description' => __('', 'startkit' ),
|
232 |
+
)
|
233 |
+
);
|
234 |
+
|
235 |
+
// info Description //
|
236 |
+
$wp_customize->add_setting(
|
237 |
+
'info_description3',
|
238 |
+
array(
|
239 |
+
'default' => __('The chunk standard of Lorem Ipsum used since the 900s is reproduced below','startkit'),
|
240 |
+
'capability' => 'edit_theme_options',
|
241 |
+
'transport' => $selective_refresh,
|
242 |
+
)
|
243 |
+
);
|
244 |
+
|
245 |
+
$wp_customize->add_control(
|
246 |
+
'info_description3',
|
247 |
+
array(
|
248 |
+
'label' => __('Description','startkit'),
|
249 |
+
'section' => 'info_setting',
|
250 |
+
'settings'=> 'info_description3',
|
251 |
+
'type' => 'text',
|
252 |
+
'description' => __('', 'startkit' ),
|
253 |
+
)
|
254 |
+
);
|
255 |
+
|
256 |
+
|
257 |
+
}
|
258 |
+
add_action( 'customize_register', 'startkit_info_setting' );
|
259 |
+
?>
|
260 |
+
|
261 |
+
|
262 |
+
<?php
|
263 |
+
// Customizer tabs
|
264 |
+
|
265 |
+
function startkit_info_customize_register( $wp_customize ) {
|
266 |
+
if ( class_exists( 'startkit_Customize_Control_Tabs' ) ) {
|
267 |
+
|
268 |
+
// Pricing Tables Tabs
|
269 |
+
$wp_customize->add_setting(
|
270 |
+
'startkit_info_tabs', array(
|
271 |
+
'sanitize_callback' => 'sanitize_text_field',
|
272 |
+
)
|
273 |
+
);
|
274 |
+
|
275 |
+
$wp_customize->add_control(
|
276 |
+
new startkit_Customize_Control_Tabs(
|
277 |
+
$wp_customize, 'startkit_info_tabs', array(
|
278 |
+
'section' => 'info_setting',
|
279 |
+
'tabs' => array(
|
280 |
+
'general' => array(
|
281 |
+
'nicename' => esc_html__( 'Setting', 'startkit' ),
|
282 |
+
'icon' => 'cogs',
|
283 |
+
'controls' => array(
|
284 |
+
'hide_show_info',
|
285 |
+
|
286 |
+
),
|
287 |
+
),
|
288 |
+
'first' => array(
|
289 |
+
'nicename' => esc_html__( 'First', 'startkit' ),
|
290 |
+
'icon' => 'info',
|
291 |
+
'controls' => array(
|
292 |
+
'info_icons',
|
293 |
+
'info_title',
|
294 |
+
'info_description',
|
295 |
+
),
|
296 |
+
),
|
297 |
+
'second' => array(
|
298 |
+
'nicename' => esc_html__( 'Second', 'startkit' ),
|
299 |
+
'icon' => 'info',
|
300 |
+
'controls' => array(
|
301 |
+
'info_icons2',
|
302 |
+
'info_title2',
|
303 |
+
'info_description2',
|
304 |
+
),
|
305 |
+
),
|
306 |
+
'third' => array(
|
307 |
+
'nicename' => esc_html__( 'Third', 'startkit' ),
|
308 |
+
'icon' => 'info',
|
309 |
+
'controls' => array(
|
310 |
+
'info_icons3',
|
311 |
+
'info_title3',
|
312 |
+
'info_description3',
|
313 |
+
),
|
314 |
+
),
|
315 |
+
),
|
316 |
+
)
|
317 |
+
)
|
318 |
+
);
|
319 |
+
}
|
320 |
+
}
|
321 |
+
|
322 |
+
add_action( 'customize_register', 'startkit_info_customize_register' );
|
323 |
+
|
324 |
+
|
325 |
+
|
326 |
+
/**
|
327 |
+
* Add selective refresh for Front page section section controls.
|
328 |
+
*/
|
329 |
+
function startkit_home_info_section_partials( $wp_customize ){
|
330 |
+
|
331 |
+
|
332 |
+
//info section first
|
333 |
+
$wp_customize->selective_refresh->add_partial( 'info_title', array(
|
334 |
+
'selector' => '#features-list .first h4',
|
335 |
+
'settings' => 'info_title',
|
336 |
+
'render_callback' => 'info_section_title_render_callback',
|
337 |
+
|
338 |
+
) );
|
339 |
+
|
340 |
+
$wp_customize->selective_refresh->add_partial( 'info_icons', array(
|
341 |
+
'selector' => '#features-list .first .icon',
|
342 |
+
'settings' => 'info_icons',
|
343 |
+
'render_callback' => 'home_service_section_icon_render_callback',
|
344 |
+
|
345 |
+
) );
|
346 |
+
|
347 |
+
$wp_customize->selective_refresh->add_partial( 'info_description', array(
|
348 |
+
'selector' => '#features-list .first p',
|
349 |
+
'settings' => 'info_description',
|
350 |
+
'render_callback' => 'home_service_section_description_render_callback',
|
351 |
+
|
352 |
+
) );
|
353 |
+
|
354 |
+
$wp_customize->selective_refresh->add_partial( 'info_btn_lbl', array(
|
355 |
+
'selector' => '#features-list .first a',
|
356 |
+
'settings' => 'info_btn_lbl',
|
357 |
+
'render_callback' => 'home_service_section_label_render_callback',
|
358 |
+
|
359 |
+
) );
|
360 |
+
// info second
|
361 |
+
$wp_customize->selective_refresh->add_partial( 'info_title2', array(
|
362 |
+
'selector' => '#features-list .second h4',
|
363 |
+
'settings' => 'info_title2',
|
364 |
+
'render_callback' => 'info_second_title_render_callback',
|
365 |
+
|
366 |
+
) );
|
367 |
+
|
368 |
+
$wp_customize->selective_refresh->add_partial( 'info_icons2', array(
|
369 |
+
'selector' => '#features-list .second .icon',
|
370 |
+
'settings' => 'info_icons2',
|
371 |
+
'render_callback' => 'info_second_icon_render_callback',
|
372 |
+
|
373 |
+
) );
|
374 |
+
|
375 |
+
$wp_customize->selective_refresh->add_partial( 'info_description2', array(
|
376 |
+
'selector' => '#features-list .second p',
|
377 |
+
'settings' => 'info_description2',
|
378 |
+
'render_callback' => 'info_second_description_render_callback',
|
379 |
+
|
380 |
+
) );
|
381 |
+
|
382 |
+
$wp_customize->selective_refresh->add_partial( 'info_btn_lbl2', array(
|
383 |
+
'selector' => '#features-list .second a',
|
384 |
+
'settings' => 'info_btn_lbl2',
|
385 |
+
'render_callback' => 'info_second_label_render_callback',
|
386 |
+
|
387 |
+
) );
|
388 |
+
// info third
|
389 |
+
$wp_customize->selective_refresh->add_partial( 'info_title3', array(
|
390 |
+
'selector' => '#features-list .third h4',
|
391 |
+
'settings' => 'info_title3',
|
392 |
+
'render_callback' => 'info_third_title_render_callback',
|
393 |
+
|
394 |
+
) );
|
395 |
+
|
396 |
+
$wp_customize->selective_refresh->add_partial( 'info_icons3', array(
|
397 |
+
'selector' => '#features-list .third .icon',
|
398 |
+
'settings' => 'info_icons3',
|
399 |
+
'render_callback' => 'info_third_icon_render_callback',
|
400 |
+
|
401 |
+
) );
|
402 |
+
|
403 |
+
$wp_customize->selective_refresh->add_partial( 'info_description3', array(
|
404 |
+
'selector' => '#features-list .third p',
|
405 |
+
'settings' => 'info_description',
|
406 |
+
'render_callback' => 'info_third_description_render_callback',
|
407 |
+
|
408 |
+
) );
|
409 |
+
|
410 |
+
$wp_customize->selective_refresh->add_partial( 'info_btn_lbl3', array(
|
411 |
+
'selector' => '#features-list .third a',
|
412 |
+
'settings' => 'info_btn_lbl3',
|
413 |
+
'render_callback' => 'info_third_label_render_callback',
|
414 |
+
|
415 |
+
) );
|
416 |
+
|
417 |
+
}
|
418 |
+
|
419 |
+
add_action( 'customize_register', 'startkit_home_info_section_partials' );
|
420 |
+
// info first
|
421 |
+
function info_section_title_render_callback() {
|
422 |
+
return get_theme_mod( 'info_title' );
|
423 |
+
}
|
424 |
+
function home_service_section_icon_render_callback() {
|
425 |
+
return get_theme_mod( 'info_icons' );
|
426 |
+
}
|
427 |
+
|
428 |
+
function home_service_section_description_render_callback() {
|
429 |
+
return get_theme_mod( 'info_description' );
|
430 |
+
}
|
431 |
+
|
432 |
+
function home_service_section_label_render_callback() {
|
433 |
+
return get_theme_mod( 'info_btn_lbl' );
|
434 |
+
}
|
435 |
+
|
436 |
+
// info second
|
437 |
+
function info_second_title_render_callback() {
|
438 |
+
return get_theme_mod( 'info_title2' );
|
439 |
+
}
|
440 |
+
function info_second_icon_render_callback() {
|
441 |
+
return get_theme_mod( 'info_icons2' );
|
442 |
+
}
|
443 |
+
|
444 |
+
function info_second_description_render_callback() {
|
445 |
+
return get_theme_mod( 'info_description2' );
|
446 |
+
}
|
447 |
+
|
448 |
+
function info_second_label_render_callback() {
|
449 |
+
return get_theme_mod( 'info_btn_lbl2' );
|
450 |
+
}
|
451 |
+
// info third
|
452 |
+
function info_third_title_render_callback() {
|
453 |
+
return get_theme_mod( 'info_title3' );
|
454 |
+
}
|
455 |
+
function info_third_icon_render_callback() {
|
456 |
+
return get_theme_mod( 'info_icons3' );
|
457 |
+
}
|
458 |
+
|
459 |
+
function info_third_description_render_callback() {
|
460 |
+
return get_theme_mod( 'info_description3' );
|
461 |
+
}
|
462 |
+
|
463 |
+
function info_third_label_render_callback() {
|
464 |
+
return get_theme_mod( 'info_btn_lbl3' );
|
465 |
+
}
|
466 |
+
|
467 |
+
?>
|
inc/startkit/features/section-style-configurator.php
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function starkit_style_configurator( $wp_customize ) {
|
3 |
+
|
4 |
+
/*=========================================
|
5 |
+
Style Configurator Settings Section
|
6 |
+
=========================================*/
|
7 |
+
$wp_customize->add_panel(
|
8 |
+
'style_configurator',
|
9 |
+
array(
|
10 |
+
'priority' => 131,
|
11 |
+
'capability' => 'edit_theme_options',
|
12 |
+
'title' => __('Style Configurator', 'starkit'),
|
13 |
+
)
|
14 |
+
);
|
15 |
+
|
16 |
+
/*=========================================
|
17 |
+
Page Layout Settings Section
|
18 |
+
=========================================*/
|
19 |
+
$wp_customize->add_section(
|
20 |
+
'page_layout',
|
21 |
+
array(
|
22 |
+
'title' => __('Page Layout','starkit'),
|
23 |
+
'description' =>'',
|
24 |
+
'panel' => 'style_configurator',
|
25 |
+
)
|
26 |
+
);
|
27 |
+
|
28 |
+
|
29 |
+
/*=========================================
|
30 |
+
Make Your Own Theme Color
|
31 |
+
=========================================*/
|
32 |
+
$wp_customize->add_section(
|
33 |
+
'make_theme',
|
34 |
+
array(
|
35 |
+
'title' => __('Make Own Theme Color','starkit'),
|
36 |
+
'panel' => 'style_configurator',
|
37 |
+
)
|
38 |
+
);
|
39 |
+
|
40 |
+
// Enable / Disable Color
|
41 |
+
$wp_customize->add_setting(
|
42 |
+
'theme_color_enable' ,
|
43 |
+
array(
|
44 |
+
'default' => 'off',
|
45 |
+
'capability' => 'edit_theme_options',
|
46 |
+
)
|
47 |
+
);
|
48 |
+
|
49 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
50 |
+
'theme_color_enable',
|
51 |
+
array(
|
52 |
+
'label' => esc_html__( 'Enable Custom Color', 'starkit' ),
|
53 |
+
'section' => 'make_theme',
|
54 |
+
'settings' => 'theme_color_enable',
|
55 |
+
'type' => 'ios', // light, ios, flat
|
56 |
+
)
|
57 |
+
));
|
58 |
+
|
59 |
+
// Primary Theme Color
|
60 |
+
$wp_customize->add_setting(
|
61 |
+
'primary_color',
|
62 |
+
array(
|
63 |
+
'capability' => 'edit_theme_options',
|
64 |
+
'default' => '#e84c3d'
|
65 |
+
));
|
66 |
+
|
67 |
+
$wp_customize->add_control(
|
68 |
+
new WP_Customize_Color_Control
|
69 |
+
($wp_customize,
|
70 |
+
'primary_color',
|
71 |
+
array(
|
72 |
+
'label' => __( 'Primary Theme Color', 'starkit' ),
|
73 |
+
'section' => 'make_theme',
|
74 |
+
'settings' => 'primary_color',
|
75 |
+
)
|
76 |
+
)
|
77 |
+
);
|
78 |
+
|
79 |
+
// Secondary Theme Color
|
80 |
+
$wp_customize->add_setting(
|
81 |
+
'secondary_color',
|
82 |
+
array(
|
83 |
+
'capability' => 'edit_theme_options',
|
84 |
+
'default' => '#1c314c'
|
85 |
+
));
|
86 |
+
|
87 |
+
$wp_customize->add_control(
|
88 |
+
new WP_Customize_Color_Control
|
89 |
+
($wp_customize,
|
90 |
+
'secondary_color',
|
91 |
+
array(
|
92 |
+
'label' => __( 'Secondary Theme Color', 'starkit' ),
|
93 |
+
'section' => 'make_theme',
|
94 |
+
'settings' => 'secondary_color',
|
95 |
+
)
|
96 |
+
)
|
97 |
+
);
|
98 |
+
|
99 |
+
}
|
100 |
+
|
101 |
+
add_action( 'customize_register', 'starkit_style_configurator' );
|
102 |
+
?>
|
inc/startkit/features/section-typography.php
ADDED
@@ -0,0 +1,1735 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php function startkit_typography_customizer( $wp_customize ) {
|
2 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
3 |
+
$wp_customize->add_panel( 'startkit_typography_setting', array(
|
4 |
+
'priority' => 134,
|
5 |
+
'capability' => 'edit_theme_options',
|
6 |
+
'title' => __('Typography','startkit'),
|
7 |
+
) );
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
// Typography Hide/ Show Setting //
|
12 |
+
|
13 |
+
$wp_customize->add_section(
|
14 |
+
'typography_setting' ,
|
15 |
+
array(
|
16 |
+
'title' => __('Settings','startkit'),
|
17 |
+
'panel' => 'startkit_typography_setting',
|
18 |
+
'priority' => 1,
|
19 |
+
) );
|
20 |
+
$wp_customize->add_setting(
|
21 |
+
'hide_show_typography' ,
|
22 |
+
array(
|
23 |
+
'default' => __('0','startkit'),
|
24 |
+
'capability' => 'edit_theme_options',
|
25 |
+
)
|
26 |
+
);
|
27 |
+
|
28 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
29 |
+
'hide_show_typography',
|
30 |
+
array(
|
31 |
+
'label' => esc_html__( 'Enable Typography', 'startkit' ),
|
32 |
+
'section' => 'typography_setting',
|
33 |
+
'settings' => 'hide_show_typography',
|
34 |
+
'type' => 'ios', // light, ios, flat
|
35 |
+
)
|
36 |
+
));
|
37 |
+
|
38 |
+
$font_size = array();
|
39 |
+
for($i=9; $i<=100; $i++)
|
40 |
+
{
|
41 |
+
$font_size[$i] = $i;
|
42 |
+
}
|
43 |
+
|
44 |
+
$font_family = array('Dosis'=>'Dosis','Raleway'=>'Raleway','Arial, sans-serif'=>'Arial','Georgia, serif'=>'Georgia','Times New Roman, serif'=>'Times New Roman','Tahoma, Geneva, Verdana, sans-serif'=>'Tahoma','Palatino, Palatino Linotype, serif'=>'Palatino','Helvetica Neue, Helvetica, sans-serif'=>'Helvetica*','Calibri, Candara, Segoe, Optima, sans-serif'=>'Calibri*','Myriad Pro, Myriad, sans-serif'=>'Myriad Pro*','Lucida Grande, Lucida Sans Unicode, Lucida Sans, sans-serif'=>'Lucida','Arial Black, sans-serif'=>'Arial Black','Gill Sans, Gill Sans MT, Calibri, sans-serif'=>'Gill Sans*','Geneva, Tahoma, Verdana, sans-serif'=>'Geneva*','Impact, Charcoal, sans-serif'=>'Impact','Courier, Courier New, monospace'=>'Courier','Abel'=>'Abel','Abril Fatface'=>'Abril Fatface','Aclonica'=>'Aclonica','Actor'=>'Actor','Adamina'=>'Adamina','Aldrich'=>'Aldrich','Alice'=>'Alice','Alike'=>'Alike','Alike Angular'=>'Alike Angular','Allan'=>'Allan','Allerta'=>'Allerta','Allerta Stencil'=>'Allerta Stencil','Amaranth'=>'Amaranth','Amatic SC'=>'Amatic SC','Andada'=>'Andada','Andika'=>'Andika','Annie Use Your Telescope'=>'Annie Use Your Telescope','Anonymous Pro'=>'Anonymous Pro','Antic'=>'Antic','Anton'=>'Anton','Architects Daughter'=>'Architects Daughter','Arimo'=>'Arimo','Artifika'=>'Artifika','Arvo'=>'Arvo','Asset'=>'Asset','Astloch'=>'Astloch','Atomic Age'=>'Atomic Age','Aubrey'=>'Aubrey','Bangers'=>'Bangers','Bentham'=>'Bentham','Bevan'=>'Bevan','Bigshot One'=>'Bigshot One','Black Ops One'=>'Black Ops One','Bowlby One'=>'Bowlby One','Bowlby One SC'=>'Bowlby One SC','Brawler'=>'Brawler','Butcherman Caps'=>'Butcherman Caps','Cabin'=>'Cabin','Cabin Sketch'=>'Cabin Sketch','Cabin Sketch'=>'Cabin Sketch','Calligraffitti'=>'Calligraffitti','Candal'=>'Candal','Cantarell'=>'Cantarell','Cardo'=>'Cardo','Carme'=>'Carme','Carter One'=>'Carter One','Caudex'=>'Caudex','Cedarville Cursive'=>'Cedarville Cursive','Changa One'=>'Changa One','Cherry Cream Soda'=>'Cherry Cream Soda','Chewy'=>'Chewy','Chivo'=>'Chivo','Coda'=>'Coda','Comfortaa'=>'Comfortaa','Coming Soon'=>'Coming Soon','Contrail One'=>'Contrail One','Copse'=>'Copse','Corben'=>'Corben','Corben'=>'Corben','Cousine'=>'Cousine','Coustard'=>'Coustard','Covered By Your Grace'=>'Covered By Your Grace','Crafty Girls'=>'Crafty Girls','Creepster Caps'=>'Creepster Caps','Crimson Text'=>'Crimson Text','Crushed'=>'Crushed','Cuprum'=>'Cuprum','Damion'=>'Damion','Dancing Script'=>'Dancing Script','Dawning of a New Day'=>'Dawning of a New Day','Days One'=>'Days One','Delius'=>'Delius','Delius Swash Caps'=>'Delius Swash Caps','Delius Unicase'=>'Delius Unicase','Didact Gothic'=>'Didact Gothic','Dorsa'=>'Dorsa','Droid Sans'=>'Droid Sans','Droid Sans Mono'=>'Droid Sans Mono','Droid Serif'=>'Droid Serif','EB Garamond'=>'EB Garamond','Eater Caps'=>'Eater Caps','Expletus Sans'=>'Expletus Sans','Fanwood Text'=>'Fanwood Text','Federant'=>'Federant','Federo'=>'Federo','Roboto' => 'Roboto','Fontdiner Swanky'=>'Fontdiner Swanky','Forum'=>'Forum','Francois One'=>'Francois One','Gentium Book Basic'=>'Gentium Book Basic','Geo'=>'Geo','Geostar'=>'Geostar','Geostar Fill'=>'Geostar Fill','Give You Glory'=>'Give You Glory','Gloria Hallelujah'=>'Gloria Hallelujah','Goblin One'=>'Goblin One','Gochi Hand'=>'Gochi Hand','Goudy Bookletter 1911'=>'Goudy Bookletter 1911','Gravitas One'=>'Gravitas One','Gruppo'=>'Gruppo','Hammersmith One'=>'Hammersmith One','Holtwood One SC'=>'Holtwood One SC','Homemade Apple'=>'Homemade Apple','IM Fell DW Pica'=>'IM Fell DW Pica','IM Fell English'=>'IM Fell English','IM Fell English SC'=>'IM Fell English SC','Inconsolata'=>'Inconsolata','Indie Flower'=>'Indie Flower','Irish Grover'=>'Irish Grover','Irish Growler'=>'Irish Growler','Istok Web'=>'Istok Web','Jockey One'=>'Jockey One','Josefin Sans'=>'Josefin Sans','Josefin Slab'=>'Josefin Slab','Judson'=>'Judson','Julee'=>'Julee','Jura'=>'Jura','Just Another Hand'=>'Just Another Hand','Just Me Again Down Here'=>'Just Me Again Down Here','Kameron'=>'Kameron','Kelly Slab'=>'Kelly Slab','Kenia'=>'Kenia','Kranky'=>'Kranky','Kreon'=>'Kreon','Kristi'=>'Kristi','La Belle Aurore'=>'La Belle Aurore','Lato'=>'Lato','League Script'=>'League Script','Leckerli One'=>'Leckerli One','Lekton'=>'Lekton','Limelight'=>'Limelight','Linden Hill'=>'Linden Hill','Lobster'=>'Lobster','Lobster Two'=>'Lobster Two','Lora'=>'Lora','Love Ya Like A Sister'=>'Love Ya Like A Sister','Loved by the King'=>'Loved by the King','Luckiest Guy'=>'LuckiestGuy','Maiden Orange'=>'Maiden Orange');
|
45 |
+
|
46 |
+
|
47 |
+
$font_transform = array('lowercase'=>'Lowercase','uppercase'=>'Uppercase','normal'=>'Normal');
|
48 |
+
//$font_style = array('normal'=>'Normal','italic'=>'Italic');
|
49 |
+
$font_weight = array('normal'=>'normal', 'italic'=>'Italic','oblique'=>'oblique');
|
50 |
+
// General typography section
|
51 |
+
$wp_customize->add_section(
|
52 |
+
'Body_typography' ,
|
53 |
+
array(
|
54 |
+
'title' => __('Body','startkit'),
|
55 |
+
'panel' => 'startkit_typography_setting',
|
56 |
+
'priority' => 2,
|
57 |
+
) );
|
58 |
+
|
59 |
+
|
60 |
+
//base font family
|
61 |
+
|
62 |
+
$wp_customize->add_setting(
|
63 |
+
'base_font_family' ,
|
64 |
+
array(
|
65 |
+
'default' => 'Dosis',
|
66 |
+
'capability' => 'edit_theme_options',
|
67 |
+
)
|
68 |
+
);
|
69 |
+
|
70 |
+
$wp_customize->add_control(
|
71 |
+
'base_font_family' ,
|
72 |
+
array(
|
73 |
+
'label' => __( 'Base Font Family', 'startkit' ),
|
74 |
+
'section' => 'Body_typography',
|
75 |
+
'settings' => 'base_font_family',
|
76 |
+
'type' => 'select',
|
77 |
+
'choices' => $font_family,
|
78 |
+
)
|
79 |
+
);
|
80 |
+
|
81 |
+
//Secondary font family
|
82 |
+
|
83 |
+
$wp_customize->add_setting(
|
84 |
+
'secondary_typography_fontfamily',
|
85 |
+
array(
|
86 |
+
'default' => 'Dosis',
|
87 |
+
'capability' => 'edit_theme_options',
|
88 |
+
'sanitize_callback' => 'sanitize_text_field',
|
89 |
+
'transport' => $selective_refresh,
|
90 |
+
)
|
91 |
+
);
|
92 |
+
$wp_customize->add_control('secondary_typography_fontfamily', array(
|
93 |
+
'label' => __('Secondary Font Family','spicepress'),
|
94 |
+
'section' => 'Body_typography',
|
95 |
+
'setting' => 'secondary_typography_fontfamily',
|
96 |
+
'type' => 'select',
|
97 |
+
'choices'=>$font_family,
|
98 |
+
'description'=>__('','startkit'),
|
99 |
+
)
|
100 |
+
);
|
101 |
+
|
102 |
+
//Secondary font weight
|
103 |
+
|
104 |
+
$wp_customize->add_setting(
|
105 |
+
'body_typography_font_weight',
|
106 |
+
array(
|
107 |
+
'default' => 'normal',
|
108 |
+
'capability' => 'edit_theme_options',
|
109 |
+
'sanitize_callback' => 'sanitize_text_field',
|
110 |
+
'transport' => $selective_refresh,
|
111 |
+
)
|
112 |
+
);
|
113 |
+
$wp_customize->add_control('body_typography_font_weight', array(
|
114 |
+
'label' => __('Secondary Font Family','spicepress'),
|
115 |
+
'section' => 'Body_typography',
|
116 |
+
'setting' => 'body_typography_font_weight',
|
117 |
+
'type' => 'select',
|
118 |
+
'choices'=>$font_weight,
|
119 |
+
'description'=>__('','startkit'),
|
120 |
+
)
|
121 |
+
);
|
122 |
+
// Body font size//
|
123 |
+
$wp_customize->add_setting(
|
124 |
+
'body_font_size' ,
|
125 |
+
array(
|
126 |
+
'default' => '15',
|
127 |
+
'capability' => 'edit_theme_options',
|
128 |
+
'transport' => $selective_refresh,
|
129 |
+
|
130 |
+
)
|
131 |
+
);
|
132 |
+
|
133 |
+
$wp_customize->add_control(
|
134 |
+
new Customizer_Range_Value_Control( $wp_customize, 'body_font_size',
|
135 |
+
array(
|
136 |
+
'type' => 'range-value',
|
137 |
+
'section' => 'Body_typography',
|
138 |
+
'settings' => 'body_font_size',
|
139 |
+
'label' => __( 'Font Size','startkit' ),
|
140 |
+
'input_attrs' => array(
|
141 |
+
'min' => 1,
|
142 |
+
'max' => 500,
|
143 |
+
'step' => 1,
|
144 |
+
//'suffix' => 'px', //optional suffix
|
145 |
+
),
|
146 |
+
) )
|
147 |
+
);
|
148 |
+
|
149 |
+
// paragraph typography
|
150 |
+
|
151 |
+
$wp_customize->add_section(
|
152 |
+
'paragraph_typography' ,
|
153 |
+
array(
|
154 |
+
'title' => __('Paragraph','startkit'),
|
155 |
+
'panel' => 'startkit_typography_setting',
|
156 |
+
'priority' => 2,
|
157 |
+
) );
|
158 |
+
//paragraph font weight
|
159 |
+
|
160 |
+
$wp_customize->add_setting(
|
161 |
+
'para_font_weight',
|
162 |
+
array(
|
163 |
+
'default' => 'normal',
|
164 |
+
'capability' => 'edit_theme_options',
|
165 |
+
'sanitize_callback' => 'sanitize_text_field',
|
166 |
+
'transport' => $selective_refresh,
|
167 |
+
)
|
168 |
+
);
|
169 |
+
$wp_customize->add_control('para_font_weight', array(
|
170 |
+
'label' => __('Font Weight','startkit'),
|
171 |
+
'section' => 'paragraph_typography',
|
172 |
+
'setting' => 'para_font_weight',
|
173 |
+
'type' => 'select',
|
174 |
+
'choices'=>$font_weight,
|
175 |
+
'description'=>__('','startkit'),
|
176 |
+
)
|
177 |
+
);
|
178 |
+
|
179 |
+
// paragraph font size//
|
180 |
+
$wp_customize->add_setting(
|
181 |
+
'paragraph_font_size' ,
|
182 |
+
array(
|
183 |
+
'default' => '15',
|
184 |
+
'capability' => 'edit_theme_options',
|
185 |
+
'transport' => $selective_refresh,
|
186 |
+
|
187 |
+
)
|
188 |
+
);
|
189 |
+
|
190 |
+
$wp_customize->add_control(
|
191 |
+
new Customizer_Range_Value_Control( $wp_customize, 'paragraph_font_size',
|
192 |
+
array(
|
193 |
+
'type' => 'range-value',
|
194 |
+
'section' => 'paragraph_typography',
|
195 |
+
'settings' => 'paragraph_font_size',
|
196 |
+
'label' => __( 'Font Size(px)','startkit' ),
|
197 |
+
'input_attrs' => array(
|
198 |
+
'min' => 1,
|
199 |
+
'max' => 500,
|
200 |
+
'step' => 1,
|
201 |
+
//'suffix' => 'px', //optional suffix
|
202 |
+
),
|
203 |
+
) )
|
204 |
+
);
|
205 |
+
|
206 |
+
// paragraph line height//
|
207 |
+
$wp_customize->add_setting(
|
208 |
+
'paragraph_line_height' ,
|
209 |
+
array(
|
210 |
+
'default' => '26',
|
211 |
+
'capability' => 'edit_theme_options',
|
212 |
+
'transport' => $selective_refresh,
|
213 |
+
|
214 |
+
)
|
215 |
+
);
|
216 |
+
|
217 |
+
$wp_customize->add_control(
|
218 |
+
new Customizer_Range_Value_Control( $wp_customize, 'paragraph_line_height',
|
219 |
+
array(
|
220 |
+
'type' => 'range-value',
|
221 |
+
'section' => 'paragraph_typography',
|
222 |
+
'settings' => 'paragraph_line_height',
|
223 |
+
'label' => __( 'Line Height(px)','startkit' ),
|
224 |
+
'input_attrs' => array(
|
225 |
+
'min' => 1,
|
226 |
+
'max' => 500,
|
227 |
+
'step' => 1,
|
228 |
+
//'suffix' => 'px', //optional suffix
|
229 |
+
),
|
230 |
+
) )
|
231 |
+
);
|
232 |
+
|
233 |
+
|
234 |
+
//H1 typography
|
235 |
+
$wp_customize->add_section(
|
236 |
+
'H1_typography' ,
|
237 |
+
array(
|
238 |
+
'title' => __('H1','startkit'),
|
239 |
+
'panel' => 'startkit_typography_setting',
|
240 |
+
'priority' => 3,
|
241 |
+
)
|
242 |
+
);
|
243 |
+
|
244 |
+
//H1 font weight
|
245 |
+
|
246 |
+
$wp_customize->add_setting(
|
247 |
+
'h1_font_weight',
|
248 |
+
array(
|
249 |
+
'default' => 'normal',
|
250 |
+
'capability' => 'edit_theme_options',
|
251 |
+
'sanitize_callback' => 'sanitize_text_field',
|
252 |
+
'transport' => $selective_refresh,
|
253 |
+
)
|
254 |
+
);
|
255 |
+
$wp_customize->add_control('h1_font_weight', array(
|
256 |
+
'label' => __('Font Weight','startkit'),
|
257 |
+
'section' => 'H1_typography',
|
258 |
+
'setting' => 'h1_font_weight',
|
259 |
+
'type' => 'select',
|
260 |
+
'choices'=>$font_weight,
|
261 |
+
'description'=>__('','startkit'),
|
262 |
+
)
|
263 |
+
);
|
264 |
+
|
265 |
+
// H1 font size//
|
266 |
+
$wp_customize->add_setting(
|
267 |
+
'h1_font_size' ,
|
268 |
+
array(
|
269 |
+
'default' => '40',
|
270 |
+
'capability' => 'edit_theme_options',
|
271 |
+
'transport' => $selective_refresh,
|
272 |
+
|
273 |
+
)
|
274 |
+
);
|
275 |
+
|
276 |
+
$wp_customize->add_control(
|
277 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h1_font_size',
|
278 |
+
array(
|
279 |
+
'type' => 'range-value',
|
280 |
+
'section' => 'H1_typography',
|
281 |
+
'settings' => 'h1_font_size',
|
282 |
+
'label' => __( 'Font Size(px)','startkit' ),
|
283 |
+
'input_attrs' => array(
|
284 |
+
'min' => 1,
|
285 |
+
'max' => 500,
|
286 |
+
'step' => 1,
|
287 |
+
//'suffix' => 'px', //optional suffix
|
288 |
+
),
|
289 |
+
) )
|
290 |
+
);
|
291 |
+
|
292 |
+
// paragraph line height//
|
293 |
+
$wp_customize->add_setting(
|
294 |
+
'h1_line_height' ,
|
295 |
+
array(
|
296 |
+
'default' => '50',
|
297 |
+
'capability' => 'edit_theme_options',
|
298 |
+
'transport' => $selective_refresh,
|
299 |
+
|
300 |
+
)
|
301 |
+
);
|
302 |
+
|
303 |
+
$wp_customize->add_control(
|
304 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h1_line_height',
|
305 |
+
array(
|
306 |
+
'type' => 'range-value',
|
307 |
+
'section' => 'H1_typography',
|
308 |
+
'settings' => 'h1_line_height',
|
309 |
+
'label' => __( 'Line Height(px)','startkit' ),
|
310 |
+
'input_attrs' => array(
|
311 |
+
'min' => 1,
|
312 |
+
'max' => 500,
|
313 |
+
'step' => 1,
|
314 |
+
//'suffix' => 'px', //optional suffix
|
315 |
+
),
|
316 |
+
) )
|
317 |
+
);
|
318 |
+
//H1 text transform
|
319 |
+
|
320 |
+
$wp_customize->add_setting(
|
321 |
+
'h1_text_transform' ,
|
322 |
+
array(
|
323 |
+
'default' => 'lowercase',
|
324 |
+
'capability' => 'edit_theme_options',
|
325 |
+
'transport' => $selective_refresh,
|
326 |
+
)
|
327 |
+
);
|
328 |
+
|
329 |
+
$wp_customize->add_control(
|
330 |
+
'h1_text_transform' ,
|
331 |
+
array(
|
332 |
+
'label' => __( 'Text Transform', 'startkit' ),
|
333 |
+
'section' => 'H1_typography',
|
334 |
+
'settings' => 'h1_text_transform',
|
335 |
+
'type' => 'select',
|
336 |
+
'choices' => $font_transform,
|
337 |
+
)
|
338 |
+
);
|
339 |
+
|
340 |
+
|
341 |
+
|
342 |
+
//H2 typography
|
343 |
+
$wp_customize->add_section(
|
344 |
+
'H2_typography' ,
|
345 |
+
array(
|
346 |
+
'title' => __('H2','startkit'),
|
347 |
+
'panel' => 'startkit_typography_setting',
|
348 |
+
'priority' => 3,
|
349 |
+
)
|
350 |
+
);
|
351 |
+
|
352 |
+
//H2 font weight
|
353 |
+
|
354 |
+
$wp_customize->add_setting(
|
355 |
+
'h2_font_weight',
|
356 |
+
array(
|
357 |
+
'default' => 'normal',
|
358 |
+
'capability' => 'edit_theme_options',
|
359 |
+
'sanitize_callback' => 'sanitize_text_field',
|
360 |
+
'transport' => $selective_refresh,
|
361 |
+
)
|
362 |
+
);
|
363 |
+
$wp_customize->add_control('h2_font_weight', array(
|
364 |
+
'label' => __('Font Weight','startkit'),
|
365 |
+
'section' => 'H2_typography',
|
366 |
+
'setting' => 'h2_font_weight',
|
367 |
+
'type' => 'select',
|
368 |
+
'choices'=>$font_weight,
|
369 |
+
'description'=>__('','startkit'),
|
370 |
+
)
|
371 |
+
);
|
372 |
+
|
373 |
+
// H2 font size//
|
374 |
+
$wp_customize->add_setting(
|
375 |
+
'h2_font_size' ,
|
376 |
+
array(
|
377 |
+
'default' => '36',
|
378 |
+
'capability' => 'edit_theme_options',
|
379 |
+
'transport' => $selective_refresh,
|
380 |
+
|
381 |
+
)
|
382 |
+
);
|
383 |
+
|
384 |
+
$wp_customize->add_control(
|
385 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h2_font_size',
|
386 |
+
array(
|
387 |
+
'type' => 'range-value',
|
388 |
+
'section' => 'H2_typography',
|
389 |
+
'settings' => 'h2_font_size',
|
390 |
+
'label' => __( 'Font Size(px)','startkit' ),
|
391 |
+
'input_attrs' => array(
|
392 |
+
'min' => 1,
|
393 |
+
'max' => 500,
|
394 |
+
'step' => 1,
|
395 |
+
//'suffix' => 'px', //optional suffix
|
396 |
+
),
|
397 |
+
) )
|
398 |
+
);
|
399 |
+
|
400 |
+
// paragraph line height//
|
401 |
+
$wp_customize->add_setting(
|
402 |
+
'h2_line_height' ,
|
403 |
+
array(
|
404 |
+
'default' => '46',
|
405 |
+
'capability' => 'edit_theme_options',
|
406 |
+
'transport' => $selective_refresh,
|
407 |
+
|
408 |
+
)
|
409 |
+
);
|
410 |
+
|
411 |
+
$wp_customize->add_control(
|
412 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h2_line_height',
|
413 |
+
array(
|
414 |
+
'type' => 'range-value',
|
415 |
+
'section' => 'H2_typography',
|
416 |
+
'settings' => 'h2_line_height',
|
417 |
+
'label' => __( 'Line Height(px)','startkit' ),
|
418 |
+
'input_attrs' => array(
|
419 |
+
'min' => 1,
|
420 |
+
'max' => 500,
|
421 |
+
'step' => 1,
|
422 |
+
//'suffix' => 'px', //optional suffix
|
423 |
+
),
|
424 |
+
) )
|
425 |
+
);
|
426 |
+
//H1 text transform
|
427 |
+
|
428 |
+
$wp_customize->add_setting(
|
429 |
+
'h2_text_transform' ,
|
430 |
+
array(
|
431 |
+
'default' => 'lowercase',
|
432 |
+
'capability' => 'edit_theme_options',
|
433 |
+
'transport' => $selective_refresh,
|
434 |
+
)
|
435 |
+
);
|
436 |
+
|
437 |
+
$wp_customize->add_control(
|
438 |
+
'h2_text_transform' ,
|
439 |
+
array(
|
440 |
+
'label' => __( 'Text Transform', 'startkit' ),
|
441 |
+
'section' => 'H2_typography',
|
442 |
+
'settings' => 'h2_text_transform',
|
443 |
+
'type' => 'select',
|
444 |
+
'choices' => $font_transform,
|
445 |
+
)
|
446 |
+
);
|
447 |
+
|
448 |
+
|
449 |
+
//H3 typography
|
450 |
+
$wp_customize->add_section(
|
451 |
+
'H3_typography' ,
|
452 |
+
array(
|
453 |
+
'title' => __('H3','startkit'),
|
454 |
+
'panel' => 'startkit_typography_setting',
|
455 |
+
'priority' => 3,
|
456 |
+
'transport' => $selective_refresh,
|
457 |
+
)
|
458 |
+
);
|
459 |
+
|
460 |
+
//H3 font weight
|
461 |
+
|
462 |
+
$wp_customize->add_setting(
|
463 |
+
'h3_font_weight',
|
464 |
+
array(
|
465 |
+
'default' => 'normal',
|
466 |
+
'capability' => 'edit_theme_options',
|
467 |
+
'sanitize_callback' => 'sanitize_text_field',
|
468 |
+
'transport' => $selective_refresh,
|
469 |
+
)
|
470 |
+
);
|
471 |
+
$wp_customize->add_control('h3_font_weight', array(
|
472 |
+
'label' => __('Font Weight','startkit'),
|
473 |
+
'section' => 'H3_typography',
|
474 |
+
'setting' => 'h3_font_weight',
|
475 |
+
'type' => 'select',
|
476 |
+
'choices'=>$font_weight,
|
477 |
+
'description'=>__('','startkit'),
|
478 |
+
)
|
479 |
+
);
|
480 |
+
|
481 |
+
// H3 font size//
|
482 |
+
$wp_customize->add_setting(
|
483 |
+
'h3_font_size' ,
|
484 |
+
array(
|
485 |
+
'default' => '24',
|
486 |
+
'capability' => 'edit_theme_options',
|
487 |
+
'transport' => $selective_refresh,
|
488 |
+
|
489 |
+
)
|
490 |
+
);
|
491 |
+
|
492 |
+
$wp_customize->add_control(
|
493 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h3_font_size',
|
494 |
+
array(
|
495 |
+
'type' => 'range-value',
|
496 |
+
'section' => 'H3_typography',
|
497 |
+
'settings' => 'h3_font_size',
|
498 |
+
'label' => __( 'Font Size(px)','startkit' ),
|
499 |
+
'input_attrs' => array(
|
500 |
+
'min' => 1,
|
501 |
+
'max' => 500,
|
502 |
+
'step' => 1,
|
503 |
+
//'suffix' => 'px', //optional suffix
|
504 |
+
),
|
505 |
+
) )
|
506 |
+
);
|
507 |
+
|
508 |
+
//h3 line height//
|
509 |
+
$wp_customize->add_setting(
|
510 |
+
'h3_line_height' ,
|
511 |
+
array(
|
512 |
+
'default' => '34',
|
513 |
+
'capability' => 'edit_theme_options',
|
514 |
+
'transport' => $selective_refresh,
|
515 |
+
|
516 |
+
)
|
517 |
+
);
|
518 |
+
|
519 |
+
$wp_customize->add_control(
|
520 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h3_line_height',
|
521 |
+
array(
|
522 |
+
'type' => 'range-value',
|
523 |
+
'section' => 'H3_typography',
|
524 |
+
'settings' => 'h3_line_height',
|
525 |
+
'label' => __( 'Line Height(px)','startkit' ),
|
526 |
+
'input_attrs' => array(
|
527 |
+
'min' => 1,
|
528 |
+
'max' => 500,
|
529 |
+
'step' => 1,
|
530 |
+
//'suffix' => 'px', //optional suffix
|
531 |
+
),
|
532 |
+
) )
|
533 |
+
);
|
534 |
+
//H3 text transform
|
535 |
+
|
536 |
+
$wp_customize->add_setting(
|
537 |
+
'h3_text_transform' ,
|
538 |
+
array(
|
539 |
+
'default' => 'lowercase',
|
540 |
+
'capability' => 'edit_theme_options',
|
541 |
+
'transport' => $selective_refresh,
|
542 |
+
)
|
543 |
+
);
|
544 |
+
|
545 |
+
$wp_customize->add_control(
|
546 |
+
'h3_text_transform' ,
|
547 |
+
array(
|
548 |
+
'label' => __( 'Text Transform', 'startkit' ),
|
549 |
+
'section' => 'H3_typography',
|
550 |
+
'settings' => 'h3_text_transform',
|
551 |
+
'type' => 'select',
|
552 |
+
'choices' => $font_transform,
|
553 |
+
)
|
554 |
+
);
|
555 |
+
|
556 |
+
//H4 typography
|
557 |
+
$wp_customize->add_section(
|
558 |
+
'H4_typography' ,
|
559 |
+
array(
|
560 |
+
'title' => __('H4','startkit'),
|
561 |
+
'panel' => 'startkit_typography_setting',
|
562 |
+
'priority' => 3,
|
563 |
+
)
|
564 |
+
);
|
565 |
+
|
566 |
+
//H4 font weight
|
567 |
+
|
568 |
+
$wp_customize->add_setting(
|
569 |
+
'h4_font_weight',
|
570 |
+
array(
|
571 |
+
'default' => 'normal',
|
572 |
+
'capability' => 'edit_theme_options',
|
573 |
+
'sanitize_callback' => 'sanitize_text_field',
|
574 |
+
'transport' => $selective_refresh,
|
575 |
+
)
|
576 |
+
);
|
577 |
+
$wp_customize->add_control('h4_font_weight', array(
|
578 |
+
'label' => __('Font Weight','startkit'),
|
579 |
+
'section' => 'H4_typography',
|
580 |
+
'setting' => 'h4_font_weight',
|
581 |
+
'type' => 'select',
|
582 |
+
'choices'=>$font_weight,
|
583 |
+
'description'=>__('','startkit'),
|
584 |
+
)
|
585 |
+
);
|
586 |
+
|
587 |
+
// H4 font size//
|
588 |
+
$wp_customize->add_setting(
|
589 |
+
'h4_font_size' ,
|
590 |
+
array(
|
591 |
+
'default' => '18',
|
592 |
+
'capability' => 'edit_theme_options',
|
593 |
+
'transport' => $selective_refresh,
|
594 |
+
|
595 |
+
)
|
596 |
+
);
|
597 |
+
|
598 |
+
$wp_customize->add_control(
|
599 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h4_font_size',
|
600 |
+
array(
|
601 |
+
'type' => 'range-value',
|
602 |
+
'section' => 'H4_typography',
|
603 |
+
'settings' => 'h4_font_size',
|
604 |
+
'label' => __( 'Font Size(px)','startkit' ),
|
605 |
+
'input_attrs' => array(
|
606 |
+
'min' => 1,
|
607 |
+
'max' => 500,
|
608 |
+
'step' => 1,
|
609 |
+
//'suffix' => 'px', //optional suffix
|
610 |
+
),
|
611 |
+
) )
|
612 |
+
);
|
613 |
+
|
614 |
+
//h3 line height//
|
615 |
+
$wp_customize->add_setting(
|
616 |
+
'h4_line_height' ,
|
617 |
+
array(
|
618 |
+
'default' => '28',
|
619 |
+
'capability' => 'edit_theme_options',
|
620 |
+
'transport' => $selective_refresh,
|
621 |
+
|
622 |
+
)
|
623 |
+
);
|
624 |
+
|
625 |
+
$wp_customize->add_control(
|
626 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h4_line_height',
|
627 |
+
array(
|
628 |
+
'type' => 'range-value',
|
629 |
+
'section' => 'H4_typography',
|
630 |
+
'settings' => 'h4_line_height',
|
631 |
+
'label' => __( 'Line Height(px)','startkit' ),
|
632 |
+
'input_attrs' => array(
|
633 |
+
'min' => 1,
|
634 |
+
'max' => 500,
|
635 |
+
'step' => 1,
|
636 |
+
//'suffix' => 'px', //optional suffix
|
637 |
+
),
|
638 |
+
) )
|
639 |
+
);
|
640 |
+
//H4 text transform
|
641 |
+
|
642 |
+
$wp_customize->add_setting(
|
643 |
+
'h4_text_transform' ,
|
644 |
+
array(
|
645 |
+
'default' => 'lowercase',
|
646 |
+
'capability' => 'edit_theme_options',
|
647 |
+
'transport' => $selective_refresh,
|
648 |
+
)
|
649 |
+
);
|
650 |
+
|
651 |
+
$wp_customize->add_control(
|
652 |
+
'h4_text_transform' ,
|
653 |
+
array(
|
654 |
+
'label' => __( 'Text Transform', 'startkit' ),
|
655 |
+
'section' => 'H4_typography',
|
656 |
+
'settings' => 'h4_text_transform',
|
657 |
+
'type' => 'select',
|
658 |
+
'choices' => $font_transform,
|
659 |
+
)
|
660 |
+
);
|
661 |
+
|
662 |
+
|
663 |
+
//H5 typography
|
664 |
+
$wp_customize->add_section(
|
665 |
+
'H5_typography' ,
|
666 |
+
array(
|
667 |
+
'title' => __('H5','startkit'),
|
668 |
+
'panel' => 'startkit_typography_setting',
|
669 |
+
'priority' => 3,
|
670 |
+
)
|
671 |
+
);
|
672 |
+
|
673 |
+
//H5 font weight
|
674 |
+
|
675 |
+
$wp_customize->add_setting(
|
676 |
+
'h5_font_weight',
|
677 |
+
array(
|
678 |
+
'default' => 'normal',
|
679 |
+
'capability' => 'edit_theme_options',
|
680 |
+
'sanitize_callback' => 'sanitize_text_field',
|
681 |
+
'transport' => $selective_refresh,
|
682 |
+
)
|
683 |
+
);
|
684 |
+
$wp_customize->add_control('h5_font_weight', array(
|
685 |
+
'label' => __('Font Weight','startkit'),
|
686 |
+
'section' => 'H5_typography',
|
687 |
+
'setting' => 'h5_font_weight',
|
688 |
+
'type' => 'select',
|
689 |
+
'choices'=>$font_weight,
|
690 |
+
'description'=>__('','startkit'),
|
691 |
+
)
|
692 |
+
);
|
693 |
+
|
694 |
+
// H5 font size//
|
695 |
+
$wp_customize->add_setting(
|
696 |
+
'h5_font_size' ,
|
697 |
+
array(
|
698 |
+
'default' => '16',
|
699 |
+
'capability' => 'edit_theme_options',
|
700 |
+
'transport' => $selective_refresh,
|
701 |
+
|
702 |
+
)
|
703 |
+
);
|
704 |
+
|
705 |
+
$wp_customize->add_control(
|
706 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h5_font_size',
|
707 |
+
array(
|
708 |
+
'type' => 'range-value',
|
709 |
+
'section' => 'H5_typography',
|
710 |
+
'settings' => 'h5_font_size',
|
711 |
+
'label' => __( 'Font Size(px)','startkit' ),
|
712 |
+
'input_attrs' => array(
|
713 |
+
'min' => 1,
|
714 |
+
'max' => 500,
|
715 |
+
'step' => 1,
|
716 |
+
//'suffix' => 'px', //optional suffix
|
717 |
+
),
|
718 |
+
) )
|
719 |
+
);
|
720 |
+
|
721 |
+
//h5 line height//
|
722 |
+
$wp_customize->add_setting(
|
723 |
+
'h5_line_height' ,
|
724 |
+
array(
|
725 |
+
'default' => '15',
|
726 |
+
'capability' => 'edit_theme_options',
|
727 |
+
'transport' => $selective_refresh,
|
728 |
+
|
729 |
+
)
|
730 |
+
);
|
731 |
+
|
732 |
+
$wp_customize->add_control(
|
733 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h5_line_height',
|
734 |
+
array(
|
735 |
+
'type' => 'range-value',
|
736 |
+
'section' => 'H5_typography',
|
737 |
+
'settings' => 'h5_line_height',
|
738 |
+
'label' => __( 'Line Height(px)','startkit' ),
|
739 |
+
'input_attrs' => array(
|
740 |
+
'min' => 1,
|
741 |
+
'max' => 500,
|
742 |
+
'step' => 1,
|
743 |
+
//'suffix' => 'px', //optional suffix
|
744 |
+
),
|
745 |
+
) )
|
746 |
+
);
|
747 |
+
//H5 text transform
|
748 |
+
|
749 |
+
$wp_customize->add_setting(
|
750 |
+
'h5_text_transform' ,
|
751 |
+
array(
|
752 |
+
'default' => 'lowercase',
|
753 |
+
'capability' => 'edit_theme_options',
|
754 |
+
'transport' => $selective_refresh,
|
755 |
+
)
|
756 |
+
);
|
757 |
+
|
758 |
+
$wp_customize->add_control(
|
759 |
+
'h5_text_transform' ,
|
760 |
+
array(
|
761 |
+
'label' => __( 'Text Transform', 'startkit' ),
|
762 |
+
'section' => 'H5_typography',
|
763 |
+
'settings' => 'h5_text_transform',
|
764 |
+
'type' => 'select',
|
765 |
+
'choices' => $font_transform,
|
766 |
+
)
|
767 |
+
);
|
768 |
+
|
769 |
+
|
770 |
+
//H6 typography
|
771 |
+
$wp_customize->add_section(
|
772 |
+
'H6_typography' ,
|
773 |
+
array(
|
774 |
+
'title' => __('H6','startkit'),
|
775 |
+
'panel' => 'startkit_typography_setting',
|
776 |
+
'priority' => 3,
|
777 |
+
)
|
778 |
+
);
|
779 |
+
|
780 |
+
//H5 font weight
|
781 |
+
|
782 |
+
$wp_customize->add_setting(
|
783 |
+
'h6_font_weight',
|
784 |
+
array(
|
785 |
+
'default' => 'normal',
|
786 |
+
'capability' => 'edit_theme_options',
|
787 |
+
'sanitize_callback' => 'sanitize_text_field',
|
788 |
+
'transport' => $selective_refresh,
|
789 |
+
)
|
790 |
+
);
|
791 |
+
$wp_customize->add_control('h6_font_weight', array(
|
792 |
+
'label' => __('Font Weight','startkit'),
|
793 |
+
'section' => 'H6_typography',
|
794 |
+
'setting' => 'h6_font_weight',
|
795 |
+
'type' => 'select',
|
796 |
+
'choices'=>$font_weight,
|
797 |
+
'description'=>__('','startkit'),
|
798 |
+
)
|
799 |
+
);
|
800 |
+
|
801 |
+
// H6 font size//
|
802 |
+
$wp_customize->add_setting(
|
803 |
+
'h6_font_size' ,
|
804 |
+
array(
|
805 |
+
'default' => '16',
|
806 |
+
'capability' => 'edit_theme_options',
|
807 |
+
'transport' => $selective_refresh,
|
808 |
+
|
809 |
+
)
|
810 |
+
);
|
811 |
+
|
812 |
+
$wp_customize->add_control(
|
813 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h6_font_size',
|
814 |
+
array(
|
815 |
+
'type' => 'range-value',
|
816 |
+
'section' => 'H6_typography',
|
817 |
+
'settings' => 'h6_font_size',
|
818 |
+
'label' => __( 'Font Size(px)','startkit' ),
|
819 |
+
'input_attrs' => array(
|
820 |
+
'min' => 1,
|
821 |
+
'max' => 500,
|
822 |
+
'step' => 1,
|
823 |
+
//'suffix' => 'px', //optional suffix
|
824 |
+
),
|
825 |
+
) )
|
826 |
+
);
|
827 |
+
|
828 |
+
//h6 line height//
|
829 |
+
$wp_customize->add_setting(
|
830 |
+
'h6_line_height' ,
|
831 |
+
array(
|
832 |
+
'default' => '26',
|
833 |
+
'capability' => 'edit_theme_options',
|
834 |
+
'transport' => $selective_refresh,
|
835 |
+
|
836 |
+
)
|
837 |
+
);
|
838 |
+
|
839 |
+
$wp_customize->add_control(
|
840 |
+
new Customizer_Range_Value_Control( $wp_customize, 'h6_line_height',
|
841 |
+
array(
|
842 |
+
'type' => 'range-value',
|
843 |
+
'section' => 'H6_typography',
|
844 |
+
'settings' => 'h6_line_height',
|
845 |
+
'label' => __( 'Line Height(px)','startkit' ),
|
846 |
+
'input_attrs' => array(
|
847 |
+
'min' => 1,
|
848 |
+
'max' => 500,
|
849 |
+
'step' => 1,
|
850 |
+
//'suffix' => 'px', //optional suffix
|
851 |
+
),
|
852 |
+
) )
|
853 |
+
);
|
854 |
+
//H5 text transform
|
855 |
+
|
856 |
+
$wp_customize->add_setting(
|
857 |
+
'h6_text_transform' ,
|
858 |
+
array(
|
859 |
+
'default' => 'lowercase',
|
860 |
+
'capability' => 'edit_theme_options',
|
861 |
+
'transport' => $selective_refresh,
|
862 |
+
)
|
863 |
+
);
|
864 |
+
|
865 |
+
$wp_customize->add_control(
|
866 |
+
'h6_text_transform' ,
|
867 |
+
array(
|
868 |
+
'label' => __( 'Text Transform', 'startkit' ),
|
869 |
+
'section' => 'H6_typography',
|
870 |
+
'settings' => 'h6_text_transform',
|
871 |
+
'type' => 'select',
|
872 |
+
'choices' => $font_transform,
|
873 |
+
)
|
874 |
+
);
|
875 |
+
|
876 |
+
|
877 |
+
// menu typography section
|
878 |
+
$wp_customize->add_section(
|
879 |
+
'menu_typography' ,
|
880 |
+
array(
|
881 |
+
'title' => __('Menus','startkit'),
|
882 |
+
'panel' => 'startkit_typography_setting',
|
883 |
+
'priority' => 2,
|
884 |
+
) );
|
885 |
+
|
886 |
+
|
887 |
+
//menu font family
|
888 |
+
|
889 |
+
$wp_customize->add_setting(
|
890 |
+
'menu_font_family' ,
|
891 |
+
array(
|
892 |
+
'default' => 'Dosis',
|
893 |
+
'capability' => 'edit_theme_options',
|
894 |
+
'transport' => $selective_refresh,
|
895 |
+
)
|
896 |
+
);
|
897 |
+
|
898 |
+
$wp_customize->add_control(
|
899 |
+
'menu_font_family' ,
|
900 |
+
array(
|
901 |
+
'label' => __( 'Font Family', 'startkit' ),
|
902 |
+
'section' => 'menu_typography',
|
903 |
+
'settings' => 'menu_font_family',
|
904 |
+
'type' => 'select',
|
905 |
+
'choices' => $font_family,
|
906 |
+
)
|
907 |
+
);
|
908 |
+
|
909 |
+
//menu font weight
|
910 |
+
|
911 |
+
$wp_customize->add_setting(
|
912 |
+
'menu_font_weight',
|
913 |
+
array(
|
914 |
+
'default' => 'normal',
|
915 |
+
'capability' => 'edit_theme_options',
|
916 |
+
'sanitize_callback' => 'sanitize_text_field',
|
917 |
+
'transport' => $selective_refresh,
|
918 |
+
)
|
919 |
+
);
|
920 |
+
$wp_customize->add_control(
|
921 |
+
'menu_font_weight',
|
922 |
+
array(
|
923 |
+
'label' => __('Font Weight','startkit'),
|
924 |
+
'section' => 'menu_typography',
|
925 |
+
'setting' => 'menu_font_weight',
|
926 |
+
'type' => 'select',
|
927 |
+
'choices'=>$font_weight,
|
928 |
+
'description'=>__('','startkit'),
|
929 |
+
)
|
930 |
+
);
|
931 |
+
|
932 |
+
// menu font size//
|
933 |
+
$wp_customize->add_setting(
|
934 |
+
'menu_font_size' ,
|
935 |
+
array(
|
936 |
+
'default' => '15',
|
937 |
+
'capability' => 'edit_theme_options',
|
938 |
+
'transport' => $selective_refresh,
|
939 |
+
|
940 |
+
)
|
941 |
+
);
|
942 |
+
|
943 |
+
$wp_customize->add_control(
|
944 |
+
new Customizer_Range_Value_Control( $wp_customize, 'menu_font_size',
|
945 |
+
array(
|
946 |
+
'type' => 'range-value',
|
947 |
+
'section' => 'menu_typography',
|
948 |
+
'settings' => 'menu_font_size',
|
949 |
+
'label' => __( 'Font Size(px)','startkit' ),
|
950 |
+
'input_attrs' => array(
|
951 |
+
'min' => 1,
|
952 |
+
'max' => 500,
|
953 |
+
'step' => 1,
|
954 |
+
//'suffix' => 'px', //optional suffix
|
955 |
+
),
|
956 |
+
) )
|
957 |
+
);
|
958 |
+
|
959 |
+
// Sections typography section
|
960 |
+
$wp_customize->add_section(
|
961 |
+
'section_typography' ,
|
962 |
+
array(
|
963 |
+
'title' => __('Sections','startkit'),
|
964 |
+
'panel' => 'startkit_typography_setting',
|
965 |
+
'priority' => 2,
|
966 |
+
) );
|
967 |
+
|
968 |
+
|
969 |
+
//section title label
|
970 |
+
|
971 |
+
$wp_customize->add_setting(
|
972 |
+
'sample_simple_notice',
|
973 |
+
array(
|
974 |
+
'default' => '',
|
975 |
+
'transport' => 'postMessage',
|
976 |
+
'sanitize_callback' => 'skyrocket_text_sanitization'
|
977 |
+
|
978 |
+
)
|
979 |
+
);
|
980 |
+
// $wp_customize->add_control(
|
981 |
+
// new startkit_Simple_Notice_Custom_control( $wp_customize,
|
982 |
+
// 'sample_simple_notice',
|
983 |
+
// array(
|
984 |
+
// 'label' => __( 'Section Titles Typography' ),
|
985 |
+
// 'description' => __('' ),
|
986 |
+
// 'section' => 'section_typography'
|
987 |
+
// )
|
988 |
+
// ) );
|
989 |
+
|
990 |
+
|
991 |
+
//section font family
|
992 |
+
|
993 |
+
$wp_customize->add_setting(
|
994 |
+
'section_tit_font_family' ,
|
995 |
+
array(
|
996 |
+
'default' => 'Dosis',
|
997 |
+
'capability' => 'edit_theme_options',
|
998 |
+
'transport' => $selective_refresh,
|
999 |
+
)
|
1000 |
+
);
|
1001 |
+
|
1002 |
+
$wp_customize->add_control(
|
1003 |
+
'section_tit_font_family' ,
|
1004 |
+
array(
|
1005 |
+
'label' => __( 'Title Font Family', 'startkit' ),
|
1006 |
+
'section' => 'section_typography',
|
1007 |
+
'settings' => 'section_tit_font_family',
|
1008 |
+
'type' => 'select',
|
1009 |
+
'choices' => $font_family,
|
1010 |
+
)
|
1011 |
+
);
|
1012 |
+
|
1013 |
+
//section font weight
|
1014 |
+
|
1015 |
+
$wp_customize->add_setting(
|
1016 |
+
'section_tit_font_weight',
|
1017 |
+
array(
|
1018 |
+
'default' => 'normal',
|
1019 |
+
'capability' => 'edit_theme_options',
|
1020 |
+
'sanitize_callback' => 'sanitize_text_field',
|
1021 |
+
'transport' => $selective_refresh,
|
1022 |
+
)
|
1023 |
+
);
|
1024 |
+
$wp_customize->add_control(
|
1025 |
+
'section_tit_font_weight',
|
1026 |
+
array(
|
1027 |
+
'label' => __(' Title Font Weight','startkit'),
|
1028 |
+
'section' => 'section_typography',
|
1029 |
+
'setting' => 'section_tit_font_weight',
|
1030 |
+
'type' => 'select',
|
1031 |
+
'choices'=>$font_weight,
|
1032 |
+
'description'=>__('','startkit'),
|
1033 |
+
)
|
1034 |
+
);
|
1035 |
+
|
1036 |
+
// section title font size//
|
1037 |
+
$wp_customize->add_setting(
|
1038 |
+
'section_tit_font_size' ,
|
1039 |
+
array(
|
1040 |
+
'default' => '15',
|
1041 |
+
'capability' => 'edit_theme_options',
|
1042 |
+
'transport' => $selective_refresh,
|
1043 |
+
|
1044 |
+
)
|
1045 |
+
);
|
1046 |
+
|
1047 |
+
$wp_customize->add_control(
|
1048 |
+
new Customizer_Range_Value_Control( $wp_customize, 'section_tit_font_size',
|
1049 |
+
array(
|
1050 |
+
'type' => 'range-value',
|
1051 |
+
'section' => 'section_typography',
|
1052 |
+
'settings' => 'section_tit_font_size',
|
1053 |
+
'label' => __( 'Title Font Size(px)','startkit' ),
|
1054 |
+
'input_attrs' => array(
|
1055 |
+
'min' => 1,
|
1056 |
+
'max' => 500,
|
1057 |
+
'step' => 1,
|
1058 |
+
//'suffix' => 'px', //optional suffix
|
1059 |
+
),
|
1060 |
+
) )
|
1061 |
+
);
|
1062 |
+
|
1063 |
+
// section description label
|
1064 |
+
|
1065 |
+
//section title label
|
1066 |
+
|
1067 |
+
// $wp_customize->add_setting(
|
1068 |
+
// 'section_desc_notice',
|
1069 |
+
// array(
|
1070 |
+
// 'default' => '',
|
1071 |
+
// 'transport' => 'postMessage',
|
1072 |
+
// 'sanitize_callback' => 'startkit_text_sanitization'
|
1073 |
+
// )
|
1074 |
+
// );
|
1075 |
+
// $wp_customize->add_control(
|
1076 |
+
// new startkit_Simple_Notice_Custom_control( $wp_customize,
|
1077 |
+
// 'section_desc_notice',
|
1078 |
+
// array(
|
1079 |
+
// 'label' => __( 'Section Description Typography' ),
|
1080 |
+
// 'description' => __('' ),
|
1081 |
+
// 'section' => 'section_typography'
|
1082 |
+
// )
|
1083 |
+
// ) );
|
1084 |
+
|
1085 |
+
|
1086 |
+
|
1087 |
+
|
1088 |
+
//section font family
|
1089 |
+
|
1090 |
+
$wp_customize->add_setting(
|
1091 |
+
'section_des_font_family' ,
|
1092 |
+
array(
|
1093 |
+
'default' => 'Roboto',
|
1094 |
+
'capability' => 'edit_theme_options',
|
1095 |
+
'transport' => $selective_refresh,
|
1096 |
+
)
|
1097 |
+
);
|
1098 |
+
|
1099 |
+
$wp_customize->add_control(
|
1100 |
+
'section_des_font_family' ,
|
1101 |
+
array(
|
1102 |
+
'label' => __( 'Description Font Family', 'startkit' ),
|
1103 |
+
'section' => 'section_typography',
|
1104 |
+
'settings' => 'section_des_font_family',
|
1105 |
+
'type' => 'select',
|
1106 |
+
'choices' => $font_family,
|
1107 |
+
)
|
1108 |
+
);
|
1109 |
+
|
1110 |
+
//section font weight
|
1111 |
+
|
1112 |
+
$wp_customize->add_setting(
|
1113 |
+
'section_des_font_weight',
|
1114 |
+
array(
|
1115 |
+
'default' => 'normal',
|
1116 |
+
'capability' => 'edit_theme_options',
|
1117 |
+
'sanitize_callback' => 'sanitize_text_field',
|
1118 |
+
'transport' => $selective_refresh,
|
1119 |
+
)
|
1120 |
+
);
|
1121 |
+
$wp_customize->add_control(
|
1122 |
+
'section_des_font_weight',
|
1123 |
+
array(
|
1124 |
+
'label' => __('Description Font Weight','startkit'),
|
1125 |
+
'section' => 'section_typography',
|
1126 |
+
'setting' => 'section_des_font_weight',
|
1127 |
+
'type' => 'select',
|
1128 |
+
'choices'=>$font_weight,
|
1129 |
+
'description'=>__('','startkit'),
|
1130 |
+
)
|
1131 |
+
);
|
1132 |
+
|
1133 |
+
// section title font size//
|
1134 |
+
$wp_customize->add_setting(
|
1135 |
+
'section_desc_font_size' ,
|
1136 |
+
array(
|
1137 |
+
'default' => '15',
|
1138 |
+
'capability' => 'edit_theme_options',
|
1139 |
+
'transport' => $selective_refresh,
|
1140 |
+
|
1141 |
+
)
|
1142 |
+
);
|
1143 |
+
|
1144 |
+
$wp_customize->add_control(
|
1145 |
+
new Customizer_Range_Value_Control( $wp_customize, 'section_desc_font_size',
|
1146 |
+
array(
|
1147 |
+
'type' => 'range-value',
|
1148 |
+
'section' => 'section_typography',
|
1149 |
+
'settings' => 'section_desc_font_size',
|
1150 |
+
'label' => __( 'Description Font Size(px)','startkit' ),
|
1151 |
+
'input_attrs' => array(
|
1152 |
+
'min' => 1,
|
1153 |
+
'max' => 500,
|
1154 |
+
'step' => 1,
|
1155 |
+
//'suffix' => 'px', //optional suffix
|
1156 |
+
),
|
1157 |
+
) )
|
1158 |
+
);
|
1159 |
+
|
1160 |
+
// widget typography section
|
1161 |
+
$wp_customize->add_section(
|
1162 |
+
'widget_typography' ,
|
1163 |
+
array(
|
1164 |
+
'title' => __('widget','startkit'),
|
1165 |
+
'panel' => 'startkit_typography_setting',
|
1166 |
+
'priority' => 2,
|
1167 |
+
) );
|
1168 |
+
|
1169 |
+
|
1170 |
+
//widget font family
|
1171 |
+
|
1172 |
+
$wp_customize->add_setting(
|
1173 |
+
'widget_font_family' ,
|
1174 |
+
array(
|
1175 |
+
'default' => 'Dosis',
|
1176 |
+
'capability' => 'edit_theme_options',
|
1177 |
+
'transport' => $selective_refresh,
|
1178 |
+
)
|
1179 |
+
);
|
1180 |
+
|
1181 |
+
$wp_customize->add_control(
|
1182 |
+
'widget_font_family' ,
|
1183 |
+
array(
|
1184 |
+
'label' => __( 'Font Family', 'startkit' ),
|
1185 |
+
'section' => 'widget_typography',
|
1186 |
+
'settings' => 'widget_font_family',
|
1187 |
+
'type' => 'select',
|
1188 |
+
'choices' => $font_family,
|
1189 |
+
)
|
1190 |
+
);
|
1191 |
+
|
1192 |
+
//section font weight
|
1193 |
+
|
1194 |
+
$wp_customize->add_setting(
|
1195 |
+
'widget_font_weight',
|
1196 |
+
array(
|
1197 |
+
'default' => 'normal',
|
1198 |
+
'capability' => 'edit_theme_options',
|
1199 |
+
'sanitize_callback' => 'sanitize_text_field',
|
1200 |
+
'transport' => $selective_refresh,
|
1201 |
+
)
|
1202 |
+
);
|
1203 |
+
$wp_customize->add_control(
|
1204 |
+
'widget_font_weight',
|
1205 |
+
array(
|
1206 |
+
'label' => __('Font Weight','startkit'),
|
1207 |
+
'section' => 'widget_typography',
|
1208 |
+
'setting' => 'widget_font_weight',
|
1209 |
+
'type' => 'select',
|
1210 |
+
'choices'=>$font_weight,
|
1211 |
+
'description'=>__('','startkit'),
|
1212 |
+
)
|
1213 |
+
);
|
1214 |
+
|
1215 |
+
$wp_customize->add_setting(
|
1216 |
+
// widget font size//
|
1217 |
+
'widget_font_size' ,
|
1218 |
+
array(
|
1219 |
+
'default' => __('16','startkit'),
|
1220 |
+
'capability' => 'edit_theme_options',
|
1221 |
+
'sanitize_callback' => 'sanitize_text_field',
|
1222 |
+
'transport' => $selective_refresh,
|
1223 |
+
|
1224 |
+
)
|
1225 |
+
);
|
1226 |
+
|
1227 |
+
$wp_customize->add_control(
|
1228 |
+
new Customizer_Range_Value_Control( $wp_customize, 'widget_font_size',
|
1229 |
+
array(
|
1230 |
+
'type' => 'range-value',
|
1231 |
+
'section' => 'widget_typography',
|
1232 |
+
'settings' => 'widget_font_size',
|
1233 |
+
'label' => __( 'Font Size(px)','startkit' ),
|
1234 |
+
'input_attrs' => array(
|
1235 |
+
'min' => 1,
|
1236 |
+
'max' => 500,
|
1237 |
+
'step' => 1,
|
1238 |
+
//'suffix' => 'px', //optional suffix
|
1239 |
+
),
|
1240 |
+
) )
|
1241 |
+
);
|
1242 |
+
}
|
1243 |
+
add_action( 'customize_register', 'startkit_typography_customizer' );
|
1244 |
+
|
1245 |
+
|
1246 |
+
// header selective refresh
|
1247 |
+
function startkit_home_typography_partials( $wp_customize ){
|
1248 |
+
// h1_font_size
|
1249 |
+
$wp_customize->selective_refresh->add_partial( 'h1_font_size', array(
|
1250 |
+
//'selector' => '#header-top .header-social',
|
1251 |
+
'settings' => 'h1_font_size',
|
1252 |
+
'render_callback' => 'startkit_home_h1_typography_render_callback',
|
1253 |
+
|
1254 |
+
) );
|
1255 |
+
|
1256 |
+
// h1_font_weight
|
1257 |
+
$wp_customize->selective_refresh->add_partial( 'h1_font_weight', array(
|
1258 |
+
'settings' => 'h1_font_weight',
|
1259 |
+
'render_callback' => 'startkit_home_h1_font_weight_render_callback',
|
1260 |
+
|
1261 |
+
) );
|
1262 |
+
|
1263 |
+
// h1_line_height
|
1264 |
+
$wp_customize->selective_refresh->add_partial( 'h1_line_height', array(
|
1265 |
+
'settings' => 'h1_line_height',
|
1266 |
+
'render_callback' => 'startkit_home_h1_line_height_render_callback',
|
1267 |
+
|
1268 |
+
) );
|
1269 |
+
|
1270 |
+
// h1_text_transform
|
1271 |
+
$wp_customize->selective_refresh->add_partial( 'h1_text_transform', array(
|
1272 |
+
'settings' => 'h1_text_transform',
|
1273 |
+
'render_callback' => 'startkit_home_h1_text_transform_render_callback',
|
1274 |
+
|
1275 |
+
) );
|
1276 |
+
|
1277 |
+
// h2_font_size
|
1278 |
+
$wp_customize->selective_refresh->add_partial( 'h2_font_size', array(
|
1279 |
+
//'selector' => '#header-top .header-social',
|
1280 |
+
'settings' => 'h2_font_size',
|
1281 |
+
'render_callback' => 'startkit_home_typography_render_callback',
|
1282 |
+
|
1283 |
+
) );
|
1284 |
+
|
1285 |
+
// h2_font_weight
|
1286 |
+
$wp_customize->selective_refresh->add_partial( 'h2_font_weight', array(
|
1287 |
+
'settings' => 'h2_font_weight',
|
1288 |
+
'render_callback' => 'startkit_home_h2_font_weight_render_callback',
|
1289 |
+
|
1290 |
+
) );
|
1291 |
+
|
1292 |
+
// h2_line_height
|
1293 |
+
$wp_customize->selective_refresh->add_partial( 'h2_line_height', array(
|
1294 |
+
'settings' => 'h2_line_height',
|
1295 |
+
'render_callback' => 'startkit_home_h2_line_height_render_callback',
|
1296 |
+
|
1297 |
+
) );
|
1298 |
+
|
1299 |
+
// h2_text_transform
|
1300 |
+
$wp_customize->selective_refresh->add_partial( 'h2_text_transform', array(
|
1301 |
+
'settings' => 'h2_text_transform',
|
1302 |
+
'render_callback' => 'startkit_home_h2_text_transform_render_callback',
|
1303 |
+
|
1304 |
+
) );
|
1305 |
+
|
1306 |
+
// h3_font_size
|
1307 |
+
$wp_customize->selective_refresh->add_partial( 'h3_font_size', array(
|
1308 |
+
//'selector' => '#header-top .header-social',
|
1309 |
+
'settings' => 'h3_font_size',
|
1310 |
+
'render_callback' => 'startkit_home_h3_typography_render_callback',
|
1311 |
+
|
1312 |
+
) );
|
1313 |
+
|
1314 |
+
// h3_font_weight
|
1315 |
+
$wp_customize->selective_refresh->add_partial( 'h3_font_weight', array(
|
1316 |
+
'settings' => 'h3_font_weight',
|
1317 |
+
'render_callback' => 'startkit_home_h3_font_weight_render_callback',
|
1318 |
+
|
1319 |
+
) );
|
1320 |
+
|
1321 |
+
// h3_line_height
|
1322 |
+
$wp_customize->selective_refresh->add_partial( 'h3_line_height', array(
|
1323 |
+
'settings' => 'h3_line_height',
|
1324 |
+
'render_callback' => 'startkit_home_h3_line_height_render_callback',
|
1325 |
+
|
1326 |
+
) );
|
1327 |
+
|
1328 |
+
// h3_text_transform
|
1329 |
+
$wp_customize->selective_refresh->add_partial( 'h3_text_transform', array(
|
1330 |
+
'settings' => 'h3_text_transform',
|
1331 |
+
'render_callback' => 'startkit_home_h3_text_transform_render_callback',
|
1332 |
+
|
1333 |
+
) );
|
1334 |
+
|
1335 |
+
// h4_font_size
|
1336 |
+
$wp_customize->selective_refresh->add_partial( 'h4_font_size', array(
|
1337 |
+
//'selector' => '#header-top .header-social',
|
1338 |
+
'settings' => 'h4_font_size',
|
1339 |
+
'render_callback' => 'startkit_home_h4_typography_render_callback',
|
1340 |
+
|
1341 |
+
) );
|
1342 |
+
|
1343 |
+
// h4_font_weight
|
1344 |
+
$wp_customize->selective_refresh->add_partial( 'h4_font_weight', array(
|
1345 |
+
'settings' => 'h4_font_weight',
|
1346 |
+
'render_callback' => 'startkit_home_h4_font_weight_render_callback',
|
1347 |
+
|
1348 |
+
) );
|
1349 |
+
|
1350 |
+
// h4_line_height
|
1351 |
+
$wp_customize->selective_refresh->add_partial( 'h4_line_height', array(
|
1352 |
+
'settings' => 'h4_line_height',
|
1353 |
+
'render_callback' => 'startkit_home_h4_line_height_render_callback',
|
1354 |
+
|
1355 |
+
) );
|
1356 |
+
|
1357 |
+
// h4_text_transform
|
1358 |
+
$wp_customize->selective_refresh->add_partial( 'h4_text_transform', array(
|
1359 |
+
'settings' => 'h4_text_transform',
|
1360 |
+
'render_callback' => 'startkit_home_h4_text_transform_render_callback',
|
1361 |
+
|
1362 |
+
) );
|
1363 |
+
|
1364 |
+
// h5_font_size
|
1365 |
+
$wp_customize->selective_refresh->add_partial( 'h5_font_size', array(
|
1366 |
+
'settings' => 'h5_font_size',
|
1367 |
+
'render_callback' => 'startkit_home_h5_typography_render_callback',
|
1368 |
+
) );
|
1369 |
+
|
1370 |
+
// h5_font_weight
|
1371 |
+
$wp_customize->selective_refresh->add_partial( 'h5_font_weight', array(
|
1372 |
+
'settings' => 'h5_font_weight',
|
1373 |
+
'render_callback' => 'startkit_home_h5_font_weight_render_callback',
|
1374 |
+
|
1375 |
+
) );
|
1376 |
+
|
1377 |
+
// h5_line_height
|
1378 |
+
$wp_customize->selective_refresh->add_partial( 'h5_line_height', array(
|
1379 |
+
'settings' => 'h5_line_height',
|
1380 |
+
'render_callback' => 'startkit_home_h5_line_height_render_callback',
|
1381 |
+
|
1382 |
+
) );
|
1383 |
+
|
1384 |
+
// h5_text_transform
|
1385 |
+
$wp_customize->selective_refresh->add_partial( 'h5_text_transform', array(
|
1386 |
+
'settings' => 'h5_text_transform',
|
1387 |
+
'render_callback' => 'startkit_home_h5_text_transform_render_callback',
|
1388 |
+
|
1389 |
+
) );
|
1390 |
+
|
1391 |
+
// h6_font_size
|
1392 |
+
$wp_customize->selective_refresh->add_partial( 'h6_font_size', array(
|
1393 |
+
//'selector' => '#header-top .header-social',
|
1394 |
+
'settings' => 'h6_font_size',
|
1395 |
+
'render_callback' => 'startkit_home_h6_typography_render_callback',
|
1396 |
+
|
1397 |
+
) );
|
1398 |
+
|
1399 |
+
// h6_font_weight
|
1400 |
+
$wp_customize->selective_refresh->add_partial( 'h6_font_weight', array(
|
1401 |
+
'settings' => 'h6_font_weight',
|
1402 |
+
'render_callback' => 'startkit_home_h6_font_weight_render_callback',
|
1403 |
+
|
1404 |
+
) );
|
1405 |
+
|
1406 |
+
// h6_line_height
|
1407 |
+
$wp_customize->selective_refresh->add_partial( 'h6_line_height', array(
|
1408 |
+
'settings' => 'h6_line_height',
|
1409 |
+
'render_callback' => 'startkit_home_h6_line_height_render_callback',
|
1410 |
+
|
1411 |
+
) );
|
1412 |
+
|
1413 |
+
// h6_text_transform
|
1414 |
+
$wp_customize->selective_refresh->add_partial( 'h6_text_transform', array(
|
1415 |
+
'settings' => 'h6_text_transform',
|
1416 |
+
'render_callback' => 'startkit_home_h6_text_transform_render_callback',
|
1417 |
+
|
1418 |
+
) );
|
1419 |
+
|
1420 |
+
// para_font_weight
|
1421 |
+
$wp_customize->selective_refresh->add_partial( 'para_font_weight', array(
|
1422 |
+
'settings' => 'para_font_weight',
|
1423 |
+
'render_callback' => 'startkit_home_para_font_weight_render_callback',
|
1424 |
+
|
1425 |
+
) );
|
1426 |
+
|
1427 |
+
// paragraph_font_size
|
1428 |
+
$wp_customize->selective_refresh->add_partial( 'paragraph_font_size', array(
|
1429 |
+
'settings' => 'paragraph_font_size',
|
1430 |
+
'render_callback' => 'startkit_home_paragraph_font_size_render_callback',
|
1431 |
+
|
1432 |
+
) );
|
1433 |
+
|
1434 |
+
// paragraph_line_height
|
1435 |
+
$wp_customize->selective_refresh->add_partial( 'paragraph_line_height', array(
|
1436 |
+
'settings' => 'paragraph_line_height',
|
1437 |
+
'render_callback' => 'startkit_home_paragraph_line_height_render_callback',
|
1438 |
+
|
1439 |
+
) );
|
1440 |
+
|
1441 |
+
// menu_font_family
|
1442 |
+
$wp_customize->selective_refresh->add_partial( 'menu_font_family', array(
|
1443 |
+
'settings' => 'menu_font_family',
|
1444 |
+
'render_callback' => 'startkit_home_menu_font_family_render_callback',
|
1445 |
+
|
1446 |
+
) );
|
1447 |
+
|
1448 |
+
// menu_font_weight
|
1449 |
+
$wp_customize->selective_refresh->add_partial( 'menu_font_weight', array(
|
1450 |
+
'settings' => 'menu_font_weight',
|
1451 |
+
'render_callback' => 'startkit_home_menu_font_weight_render_callback',
|
1452 |
+
|
1453 |
+
) );
|
1454 |
+
|
1455 |
+
// menu_font_size
|
1456 |
+
$wp_customize->selective_refresh->add_partial( 'menu_font_size', array(
|
1457 |
+
'settings' => 'menu_font_size',
|
1458 |
+
'render_callback' => 'startkit_home_menu_font_size_render_callback',
|
1459 |
+
|
1460 |
+
) );
|
1461 |
+
|
1462 |
+
// section_des_font_family
|
1463 |
+
$wp_customize->selective_refresh->add_partial( 'section_des_font_family', array(
|
1464 |
+
'settings' => 'section_des_font_family',
|
1465 |
+
'render_callback' => 'startkit_home_section_des_font_family_render_callback',
|
1466 |
+
|
1467 |
+
) );
|
1468 |
+
|
1469 |
+
// section_des_font_weight
|
1470 |
+
$wp_customize->selective_refresh->add_partial( 'section_des_font_weight', array(
|
1471 |
+
'settings' => 'section_des_font_weight',
|
1472 |
+
'render_callback' => 'startkit_home_section_des_font_weight_render_callback',
|
1473 |
+
|
1474 |
+
) );
|
1475 |
+
|
1476 |
+
// section_desc_font_size
|
1477 |
+
$wp_customize->selective_refresh->add_partial( 'section_desc_font_size', array(
|
1478 |
+
'settings' => 'section_desc_font_size',
|
1479 |
+
'render_callback' => 'startkit_home_section_desc_font_size_render_callback',
|
1480 |
+
|
1481 |
+
) );
|
1482 |
+
|
1483 |
+
// section_tit_font_family
|
1484 |
+
$wp_customize->selective_refresh->add_partial( 'section_tit_font_family', array(
|
1485 |
+
'settings' => 'section_tit_font_family',
|
1486 |
+
'render_callback' => 'startkit_home_section_section_tit_font_family_render_callback',
|
1487 |
+
|
1488 |
+
) );
|
1489 |
+
|
1490 |
+
// section_tit_font_weight
|
1491 |
+
$wp_customize->selective_refresh->add_partial( 'section_tit_font_weight', array(
|
1492 |
+
'settings' => 'section_tit_font_weight',
|
1493 |
+
'render_callback' => 'startkit_home_section_section_tit_font_weight_render_callback',
|
1494 |
+
|
1495 |
+
) );
|
1496 |
+
|
1497 |
+
// section_tit_font_size
|
1498 |
+
$wp_customize->selective_refresh->add_partial( 'section_tit_font_size', array(
|
1499 |
+
'settings' => 'section_tit_font_size',
|
1500 |
+
'render_callback' => 'startkit_home_section_section_tit_font_size_render_callback',
|
1501 |
+
|
1502 |
+
) );
|
1503 |
+
|
1504 |
+
// base_font_family
|
1505 |
+
$wp_customize->selective_refresh->add_partial( 'base_font_family', array(
|
1506 |
+
'settings' => 'base_font_family',
|
1507 |
+
'render_callback' => 'startkit_home_section_base_font_family_render_callback',
|
1508 |
+
|
1509 |
+
) );
|
1510 |
+
|
1511 |
+
// body_font_size
|
1512 |
+
$wp_customize->selective_refresh->add_partial( 'body_font_size', array(
|
1513 |
+
'settings' => 'body_font_size',
|
1514 |
+
'render_callback' => 'startkit_home_section_body_font_size_render_callback',
|
1515 |
+
|
1516 |
+
) );
|
1517 |
+
|
1518 |
+
// body_typography_font_weight
|
1519 |
+
$wp_customize->selective_refresh->add_partial( 'body_typography_font_weight', array(
|
1520 |
+
'settings' => 'body_typography_font_weight',
|
1521 |
+
'render_callback' => 'startkit_home_section_body_typography_font_weight_render_callback',
|
1522 |
+
|
1523 |
+
) );
|
1524 |
+
|
1525 |
+
// widget_font_family
|
1526 |
+
$wp_customize->selective_refresh->add_partial( 'widget_font_family', array(
|
1527 |
+
'settings' => 'widget_font_family',
|
1528 |
+
'render_callback' => 'startkit_home_widget_font_family_render_callback',
|
1529 |
+
|
1530 |
+
) );
|
1531 |
+
|
1532 |
+
// widget_font_weight
|
1533 |
+
$wp_customize->selective_refresh->add_partial( 'widget_font_weight', array(
|
1534 |
+
'settings' => 'widget_font_weight',
|
1535 |
+
'render_callback' => 'startkit_home_widget_font_weight_size_render_callback',
|
1536 |
+
|
1537 |
+
) );
|
1538 |
+
|
1539 |
+
// widget_font_size
|
1540 |
+
$wp_customize->selective_refresh->add_partial( 'widget_font_size', array(
|
1541 |
+
'settings' => 'widget_font_size',
|
1542 |
+
'render_callback' => 'startkit_home_widget_font_size_render_callback',
|
1543 |
+
|
1544 |
+
) );
|
1545 |
+
|
1546 |
+
|
1547 |
+
}
|
1548 |
+
|
1549 |
+
add_action( 'customize_register', 'startkit_home_typography_partials' );
|
1550 |
+
// h1_font_size
|
1551 |
+
function startkit_home_h1_typography_render_callback() {
|
1552 |
+
return get_theme_mod( 'h1_font_size' );
|
1553 |
+
}
|
1554 |
+
|
1555 |
+
// h1_font_weight
|
1556 |
+
function startkit_home_h1_font_weight_render_callback() {
|
1557 |
+
return get_theme_mod( 'h1_font_weight' );
|
1558 |
+
}
|
1559 |
+
// h1_line_height
|
1560 |
+
function startkit_home_h1_line_height_render_callback() {
|
1561 |
+
return get_theme_mod( 'h1_line_height' );
|
1562 |
+
}
|
1563 |
+
// h1_text_transform
|
1564 |
+
function startkit_home_h1_text_transform_render_callback() {
|
1565 |
+
return get_theme_mod( 'h1_text_transform' );
|
1566 |
+
}
|
1567 |
+
|
1568 |
+
// h2_font_size
|
1569 |
+
function startkit_home_typography_render_callback() {
|
1570 |
+
return get_theme_mod( 'h2_font_size' );
|
1571 |
+
}
|
1572 |
+
|
1573 |
+
// h2_font_weight
|
1574 |
+
function startkit_home_h2_font_weight_render_callback() {
|
1575 |
+
return get_theme_mod( 'h2_font_weight' );
|
1576 |
+
}
|
1577 |
+
// h2_line_height
|
1578 |
+
function startkit_home_h2_line_height_render_callback() {
|
1579 |
+
return get_theme_mod( 'h2_line_height' );
|
1580 |
+
}
|
1581 |
+
// h2_text_transform
|
1582 |
+
function startkit_home_h2_text_transform_render_callback() {
|
1583 |
+
return get_theme_mod( 'h2_text_transform' );
|
1584 |
+
}
|
1585 |
+
|
1586 |
+
// h3_font_size
|
1587 |
+
function startkit_home_h3_typography_render_callback() {
|
1588 |
+
return get_theme_mod( 'h3_font_size' );
|
1589 |
+
}
|
1590 |
+
|
1591 |
+
// h3_font_weight
|
1592 |
+
function startkit_home_h3_font_weight_render_callback() {
|
1593 |
+
return get_theme_mod( 'h3_font_weight' );
|
1594 |
+
}
|
1595 |
+
// h3_line_height
|
1596 |
+
function startkit_home_h3_line_height_render_callback() {
|
1597 |
+
return get_theme_mod( 'h3_line_height' );
|
1598 |
+
}
|
1599 |
+
// h3_text_transform
|
1600 |
+
function startkit_home_h3_text_transform_render_callback() {
|
1601 |
+
return get_theme_mod( 'h3_text_transform' );
|
1602 |
+
}
|
1603 |
+
|
1604 |
+
// h4_font_size
|
1605 |
+
function startkit_home_h4_typography_render_callback() {
|
1606 |
+
return get_theme_mod( 'h4_font_size' );
|
1607 |
+
}
|
1608 |
+
|
1609 |
+
// h4_font_weight
|
1610 |
+
function startkit_home_h4_font_weight_render_callback() {
|
1611 |
+
return get_theme_mod( 'h4_font_weight' );
|
1612 |
+
}
|
1613 |
+
// h3_line_height
|
1614 |
+
function startkit_home_h4_line_height_render_callback() {
|
1615 |
+
return get_theme_mod( 'h4_line_height' );
|
1616 |
+
}
|
1617 |
+
// h3_text_transform
|
1618 |
+
function startkit_home_h4_text_transform_render_callback() {
|
1619 |
+
return get_theme_mod( 'h4_text_transform' );
|
1620 |
+
}
|
1621 |
+
|
1622 |
+
// h5_font_size
|
1623 |
+
function startkit_home_h5_typography_render_callback() {
|
1624 |
+
return get_theme_mod( 'h5_font_size' );
|
1625 |
+
}
|
1626 |
+
|
1627 |
+
// h5_font_weight
|
1628 |
+
function startkit_home_h5_font_weight_render_callback() {
|
1629 |
+
return get_theme_mod( 'h5_font_weight' );
|
1630 |
+
}
|
1631 |
+
// h5_line_height
|
1632 |
+
function startkit_home_h5_line_height_render_callback() {
|
1633 |
+
return get_theme_mod( 'h5_line_height' );
|
1634 |
+
}
|
1635 |
+
// h5_text_transform
|
1636 |
+
function startkit_home_h5_text_transform_render_callback() {
|
1637 |
+
return get_theme_mod( 'h5_text_transform' );
|
1638 |
+
}
|
1639 |
+
|
1640 |
+
// h6_font_size
|
1641 |
+
function startkit_home_h6_typography_render_callback() {
|
1642 |
+
return get_theme_mod( 'h6_font_size' );
|
1643 |
+
}
|
1644 |
+
|
1645 |
+
// h6_font_weight
|
1646 |
+
function startkit_home_h6_font_weight_render_callback() {
|
1647 |
+
return get_theme_mod( 'h6_font_weight' );
|
1648 |
+
}
|
1649 |
+
// h6_line_height
|
1650 |
+
function startkit_home_h6_line_height_render_callback() {
|
1651 |
+
return get_theme_mod( 'h6_line_height' );
|
1652 |
+
}
|
1653 |
+
// h6_text_transform
|
1654 |
+
function startkit_home_h6_text_transform_render_callback() {
|
1655 |
+
return get_theme_mod( 'h6_text_transform' );
|
1656 |
+
}
|
1657 |
+
|
1658 |
+
// para_font_weight
|
1659 |
+
function startkit_home_para_font_weight_render_callback() {
|
1660 |
+
return get_theme_mod( 'para_font_weight' );
|
1661 |
+
}
|
1662 |
+
// paragraph_font_size
|
1663 |
+
function startkit_home_paragraph_font_size_render_callback() {
|
1664 |
+
return get_theme_mod( 'paragraph_font_size' );
|
1665 |
+
}
|
1666 |
+
// paragraph_line_height
|
1667 |
+
function startkit_home_paragraph_line_height_render_callback() {
|
1668 |
+
return get_theme_mod( 'paragraph_line_height' );
|
1669 |
+
}
|
1670 |
+
|
1671 |
+
// menu_font_family
|
1672 |
+
function startkit_home_menu_font_family_render_callback() {
|
1673 |
+
return get_theme_mod( 'menu_font_family' );
|
1674 |
+
}
|
1675 |
+
// menu_font_weight
|
1676 |
+
function startkit_home_menu_font_weight_render_callback() {
|
1677 |
+
return get_theme_mod( 'menu_font_weight' );
|
1678 |
+
}
|
1679 |
+
// menu_font_size
|
1680 |
+
function startkit_home_menu_font_size_render_callback() {
|
1681 |
+
return get_theme_mod( 'menu_font_size' );
|
1682 |
+
}
|
1683 |
+
|
1684 |
+
// section_des_font_family
|
1685 |
+
function startkit_home_section_des_font_family_render_callback() {
|
1686 |
+
return get_theme_mod( 'section_des_font_family' );
|
1687 |
+
}
|
1688 |
+
// section_des_font_weight
|
1689 |
+
function startkit_home_section_des_font_weight_render_callback() {
|
1690 |
+
return get_theme_mod( 'section_des_font_weight' );
|
1691 |
+
}
|
1692 |
+
// section_desc_font_size
|
1693 |
+
function startkit_home_section_desc_font_size_render_callback() {
|
1694 |
+
return get_theme_mod( 'section_desc_font_size' );
|
1695 |
+
}
|
1696 |
+
|
1697 |
+
// section_tit_font_family
|
1698 |
+
function startkit_home_section_section_tit_font_family_render_callback() {
|
1699 |
+
return get_theme_mod( 'section_tit_font_family' );
|
1700 |
+
}
|
1701 |
+
// section_tit_font_weight
|
1702 |
+
function startkit_home_section_section_tit_font_weight_render_callback() {
|
1703 |
+
return get_theme_mod( 'section_tit_font_weight' );
|
1704 |
+
}
|
1705 |
+
// section_tit_font_size
|
1706 |
+
function startkit_home_section_section_tit_font_size_render_callback() {
|
1707 |
+
return get_theme_mod( 'section_tit_font_size' );
|
1708 |
+
}
|
1709 |
+
|
1710 |
+
// base_font_family
|
1711 |
+
function startkit_home_section_base_font_family_render_callback() {
|
1712 |
+
return get_theme_mod( 'base_font_family' );
|
1713 |
+
}
|
1714 |
+
// body_font_size
|
1715 |
+
function startkit_home_section_body_font_size_render_callback() {
|
1716 |
+
return get_theme_mod( 'body_font_size' );
|
1717 |
+
}
|
1718 |
+
// body_typography_font_weight
|
1719 |
+
function startkit_home_section_body_typography_font_weight_render_callback() {
|
1720 |
+
return get_theme_mod( 'body_typography_font_weight' );
|
1721 |
+
}
|
1722 |
+
|
1723 |
+
// widget_font_family
|
1724 |
+
function startkit_home_widget_font_family_render_callback() {
|
1725 |
+
return get_theme_mod( 'widget_font_family' );
|
1726 |
+
}
|
1727 |
+
// widget_font_weight
|
1728 |
+
function startkit_home_widget_font_weight_size_render_callback() {
|
1729 |
+
return get_theme_mod( 'widget_font_weight' );
|
1730 |
+
}
|
1731 |
+
// widget_font_size
|
1732 |
+
function startkit_home_widget_font_size_render_callback() {
|
1733 |
+
return get_theme_mod( 'widget_font_size' );
|
1734 |
+
}
|
1735 |
+
?>
|
inc/startkit/features/service-section.php
ADDED
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function startkit_service_setting( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
|
5 |
+
/*=========================================
|
6 |
+
Service Settings Section
|
7 |
+
=========================================*/
|
8 |
+
|
9 |
+
if ( class_exists( 'startkit_Hiding_Section' ) ) {
|
10 |
+
$wp_customize->add_section(
|
11 |
+
new startkit_Hiding_Section(
|
12 |
+
$wp_customize, 'service_setting', array(
|
13 |
+
'title' => esc_html__( 'Service Section', 'startkit' ),
|
14 |
+
'panel' => 'startkit_frontpage_sections',
|
15 |
+
'priority' => apply_filters( 'startkit_section_priority', 26, 'startkit_pricing' ),
|
16 |
+
)
|
17 |
+
)
|
18 |
+
);
|
19 |
+
} else {
|
20 |
+
$wp_customize->add_section(
|
21 |
+
'service_setting', array(
|
22 |
+
'title' => esc_html__( 'Service Section', 'startkit' ),
|
23 |
+
'priority' => apply_filters( 'startkit_section_priority', 26, 'startkit_pricing' ),
|
24 |
+
'panel' => 'startkit_frontpage_sections',
|
25 |
+
)
|
26 |
+
);
|
27 |
+
}
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
// service Hide/ Show Setting //
|
32 |
+
$wp_customize->add_setting(
|
33 |
+
'hide_show_service' ,
|
34 |
+
array(
|
35 |
+
'default' => '1',
|
36 |
+
'capability' => 'edit_theme_options',
|
37 |
+
)
|
38 |
+
);
|
39 |
+
|
40 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
41 |
+
'hide_show_service',
|
42 |
+
array(
|
43 |
+
'label' => esc_html__( 'Hide / Show Section', 'startkit' ),
|
44 |
+
'section' => 'service_setting',
|
45 |
+
'settings' => 'hide_show_service',
|
46 |
+
'type' => 'ios', // light, ios, flat
|
47 |
+
)
|
48 |
+
));
|
49 |
+
|
50 |
+
// Service Header Section //
|
51 |
+
|
52 |
+
|
53 |
+
// Service Title //
|
54 |
+
$wp_customize->add_setting(
|
55 |
+
'service_title',
|
56 |
+
array(
|
57 |
+
'default' => __('Services','startkit'),
|
58 |
+
'capability' => 'edit_theme_options',
|
59 |
+
'sanitize_callback' => 'startkit_sanitize_html',
|
60 |
+
'transport' => $selective_refresh,
|
61 |
+
)
|
62 |
+
);
|
63 |
+
|
64 |
+
$wp_customize->add_control(
|
65 |
+
'service_title',
|
66 |
+
array(
|
67 |
+
'label' => __('Title','startkit'),
|
68 |
+
'section' => 'service_setting',
|
69 |
+
'settings' => 'service_title',
|
70 |
+
'type' => 'text',
|
71 |
+
)
|
72 |
+
);
|
73 |
+
|
74 |
+
// Service Description //
|
75 |
+
$wp_customize->add_setting(
|
76 |
+
'service_description',
|
77 |
+
array(
|
78 |
+
'default' => __('Publishing packages and web page editors now use Lorem Ipsum as their default model text','startkit'),
|
79 |
+
'capability' => 'edit_theme_options',
|
80 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
81 |
+
'transport' => $selective_refresh,
|
82 |
+
)
|
83 |
+
);
|
84 |
+
|
85 |
+
$wp_customize->add_control(
|
86 |
+
'service_description',
|
87 |
+
array(
|
88 |
+
'label' => __('Description','startkit'),
|
89 |
+
'section' => 'service_setting',
|
90 |
+
'settings' => 'service_description',
|
91 |
+
'type' => 'textarea',
|
92 |
+
)
|
93 |
+
);
|
94 |
+
|
95 |
+
// Service content Section //
|
96 |
+
|
97 |
+
|
98 |
+
/**
|
99 |
+
* Customizer Repeater for add service
|
100 |
+
*/
|
101 |
+
|
102 |
+
$wp_customize->add_setting( 'service_contents',
|
103 |
+
array(
|
104 |
+
'sanitize_callback' => 'startkit_repeater_sanitize',
|
105 |
+
'transport' => $selective_refresh,
|
106 |
+
'default' => json_encode(
|
107 |
+
array(
|
108 |
+
array(
|
109 |
+
'title' => esc_html__( 'Idea Provide', 'startkit' ),
|
110 |
+
'text' => esc_html__( 'Idea is the ipsum consecte tempor incididuntan andolore tumber tur adipisicing elit..', 'startkit' ),
|
111 |
+
'icon_value' => esc_html__( 'fa-lightbulb-o', 'startkit' ),
|
112 |
+
'id' => 'customizer_repeater_service_001',
|
113 |
+
|
114 |
+
),
|
115 |
+
array(
|
116 |
+
'title' => esc_html__( 'People Research', 'startkit' ),
|
117 |
+
'text' => esc_html__( 'People is the ipsum consecte tempor incididuntan andolore tumber tur adipisicing elit.', 'startkit' ),
|
118 |
+
'icon_value' => esc_html__( 'fa-users', 'startkit' ),
|
119 |
+
'id' => 'customizer_repeater_service_002',
|
120 |
+
|
121 |
+
),
|
122 |
+
array(
|
123 |
+
'title' => esc_html__( 'Business Develop', 'startkit' ),
|
124 |
+
'text' => esc_html__( 'People is the ipsum consecte tempor incididuntan andolore tumber tur adipisicing elit.', 'startkit' ),
|
125 |
+
'icon_value' => esc_html__( 'fa-briefcase', 'startkit' ),
|
126 |
+
'id' => 'customizer_repeater_service_003',
|
127 |
+
|
128 |
+
),
|
129 |
+
array(
|
130 |
+
'title' => esc_html__( 'Marketing', 'startkit' ),
|
131 |
+
'text' => esc_html__( 'People is the ipsum consecte tempor incididuntan andolore tumber tur adipisicing elit.', 'startkit' ),
|
132 |
+
'icon_value' => esc_html__( 'fa-user-md', 'startkit' ),
|
133 |
+
'id' => 'customizer_repeater_service_004',
|
134 |
+
|
135 |
+
),
|
136 |
+
)
|
137 |
+
)
|
138 |
+
)
|
139 |
+
);
|
140 |
+
|
141 |
+
$wp_customize->add_control(
|
142 |
+
new Startkit_Repeater( $wp_customize,
|
143 |
+
'service_contents',
|
144 |
+
array(
|
145 |
+
'label' => esc_html__('Service','startkit'),
|
146 |
+
'section' => 'service_setting',
|
147 |
+
'add_field_label' => esc_html__( 'Add New Service', 'startkit' ),
|
148 |
+
'item_name' => esc_html__( 'Service', 'startkit' ),
|
149 |
+
'priority' => 1,
|
150 |
+
//'customizer_repeater_slide_format' => true,
|
151 |
+
'customizer_repeater_icon_control' => true,
|
152 |
+
'customizer_repeater_title_control' => true,
|
153 |
+
'customizer_repeater_text_control' => true,
|
154 |
+
'customizer_repeater_checkbox_control' => false,
|
155 |
+
)
|
156 |
+
)
|
157 |
+
);
|
158 |
+
|
159 |
+
|
160 |
+
|
161 |
+
}
|
162 |
+
|
163 |
+
add_action( 'customize_register', 'startkit_service_setting' );
|
164 |
+
?>
|
165 |
+
|
166 |
+
|
167 |
+
<?php
|
168 |
+
// Customizer tabs
|
169 |
+
|
170 |
+
function startkit_servicess_customize_register( $wp_customize ) {
|
171 |
+
if ( class_exists( 'startkit_Customize_Control_Tabs' ) ) {
|
172 |
+
|
173 |
+
// Pricing Tables Tabs
|
174 |
+
$wp_customize->add_setting(
|
175 |
+
'startkit_servicess_tabs', array(
|
176 |
+
'sanitize_callback' => 'sanitize_text_field',
|
177 |
+
)
|
178 |
+
);
|
179 |
+
|
180 |
+
$wp_customize->add_control(
|
181 |
+
new startkit_Customize_Control_Tabs(
|
182 |
+
$wp_customize, 'startkit_servicess_tabs', array(
|
183 |
+
'section' => 'service_setting',
|
184 |
+
'tabs' => array(
|
185 |
+
'general' => array(
|
186 |
+
'nicename' => esc_html__( 'Setting', 'startkit' ),
|
187 |
+
'icon' => 'cogs',
|
188 |
+
'controls' => array(
|
189 |
+
'hide_show_service',
|
190 |
+
|
191 |
+
),
|
192 |
+
),
|
193 |
+
'first' => array(
|
194 |
+
'nicename' => esc_html__( 'Header', 'startkit' ),
|
195 |
+
'icon' => 'header',
|
196 |
+
'controls' => array(
|
197 |
+
'service_title',
|
198 |
+
'service_description',
|
199 |
+
|
200 |
+
|
201 |
+
),
|
202 |
+
),
|
203 |
+
'second' => array(
|
204 |
+
'nicename' => esc_html__( 'Content', 'startkit' ),
|
205 |
+
'icon' => 'info',
|
206 |
+
'controls' => array(
|
207 |
+
'service_contents',
|
208 |
+
),
|
209 |
+
),
|
210 |
+
|
211 |
+
),
|
212 |
+
)
|
213 |
+
)
|
214 |
+
);
|
215 |
+
}
|
216 |
+
}
|
217 |
+
|
218 |
+
add_action( 'customize_register', 'startkit_servicess_customize_register' );
|
219 |
+
|
220 |
+
// service selective refresh
|
221 |
+
function startkit_home_service_section_partials( $wp_customize ){
|
222 |
+
|
223 |
+
|
224 |
+
// service title
|
225 |
+
$wp_customize->selective_refresh->add_partial( 'service_title', array(
|
226 |
+
'selector' => '#services .section-header h2',
|
227 |
+
'settings' => 'service_title',
|
228 |
+
'render_callback' => 'home_section_service_title_render_callback',
|
229 |
+
|
230 |
+
) );
|
231 |
+
// service description
|
232 |
+
$wp_customize->selective_refresh->add_partial( 'service_description', array(
|
233 |
+
'selector' => '#services .section-header p',
|
234 |
+
'settings' => 'service_description',
|
235 |
+
'render_callback' => 'home_section_service_desc_render_callback',
|
236 |
+
|
237 |
+
) );
|
238 |
+
// service content
|
239 |
+
$wp_customize->selective_refresh->add_partial( 'service_contents', array(
|
240 |
+
'selector' => '#services .servicesss',
|
241 |
+
'settings' => 'service_contents',
|
242 |
+
'render_callback' => 'home_section_service_contents_render_callback',
|
243 |
+
|
244 |
+
) );
|
245 |
+
|
246 |
+
}
|
247 |
+
|
248 |
+
add_action( 'customize_register', 'startkit_home_service_section_partials' );
|
249 |
+
|
250 |
+
// service title
|
251 |
+
function home_section_service_title_render_callback() {
|
252 |
+
return get_theme_mod( 'service_title' );
|
253 |
+
}
|
254 |
+
|
255 |
+
|
256 |
+
// service description
|
257 |
+
function home_section_service_desc_render_callback() {
|
258 |
+
return get_theme_mod( 'service_description' );
|
259 |
+
}
|
260 |
+
|
261 |
+
// service content
|
262 |
+
function home_section_service_contents_render_callback() {
|
263 |
+
$service_contents = get_theme_mod( 'service_contents' );
|
264 |
+
service_contents( $service_contents, true );
|
265 |
+
}
|
266 |
+
?>
|
inc/startkit/features/slider-section.php
ADDED
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<?php
|
3 |
+
function startkit_slider_setting( $wp_customize ) {
|
4 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
5 |
+
/*=========================================
|
6 |
+
Slider Section Panel
|
7 |
+
=========================================*/
|
8 |
+
if ( class_exists( 'startkit_Hiding_Section' ) ) {
|
9 |
+
$wp_customize->add_section(
|
10 |
+
new startkit_Hiding_Section(
|
11 |
+
$wp_customize, 'slider_setting', array(
|
12 |
+
'title' => esc_html__( 'Slider Section', 'startkit' ),
|
13 |
+
'panel' => 'startkit_frontpage_sections',
|
14 |
+
'priority' => apply_filters( 'startkit_section_priority', 1, 'slider_setting' ),
|
15 |
+
)
|
16 |
+
)
|
17 |
+
);
|
18 |
+
} else {
|
19 |
+
$wp_customize->add_section(
|
20 |
+
'slider_setting', array(
|
21 |
+
'title' => esc_html__( 'Slider Section', 'startkit' ),
|
22 |
+
'panel' => 'startkit_frontpage_sections',
|
23 |
+
'priority' => apply_filters( 'startkit_section_priority', 1, 'slider_setting' ),
|
24 |
+
)
|
25 |
+
);
|
26 |
+
}
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
// Slider Hide/ Show Setting //
|
31 |
+
$wp_customize->add_setting(
|
32 |
+
'hide_show_slider' ,
|
33 |
+
array(
|
34 |
+
'default' => '1',
|
35 |
+
'capability' => 'edit_theme_options',
|
36 |
+
)
|
37 |
+
);
|
38 |
+
|
39 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
40 |
+
'hide_show_slider',
|
41 |
+
array(
|
42 |
+
'label' => esc_html__( 'Hide / Show Section', 'startkit' ),
|
43 |
+
'section' => 'slider_setting',
|
44 |
+
'settings' => 'hide_show_slider',
|
45 |
+
'type' => 'ios', // light, ios, flat
|
46 |
+
)
|
47 |
+
));
|
48 |
+
|
49 |
+
// Background Image //
|
50 |
+
$wp_customize->add_setting(
|
51 |
+
'slide_image' ,
|
52 |
+
array(
|
53 |
+
'default' => CLEVERFOX_PLUGIN_URL .'inc/startkit/images/slider/slider.jpg',
|
54 |
+
'capability' => 'edit_theme_options',
|
55 |
+
'sanitize_callback' => 'startkit_sanitize_url',
|
56 |
+
'transport' => $selective_refresh,
|
57 |
+
|
58 |
+
)
|
59 |
+
);
|
60 |
+
|
61 |
+
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'slide_image' ,
|
62 |
+
array(
|
63 |
+
'label' => __( 'Background Image', 'startkit' ),
|
64 |
+
'section' => 'slider_setting',
|
65 |
+
'settings' => 'slide_image',
|
66 |
+
)
|
67 |
+
));
|
68 |
+
//slide title//
|
69 |
+
|
70 |
+
$wp_customize->add_setting(
|
71 |
+
'slide_title',
|
72 |
+
array(
|
73 |
+
'default' => __('Strengths of Successful Businesses','startkit'),
|
74 |
+
'capability' => 'edit_theme_options',
|
75 |
+
'sanitize_callback' => 'startkit_sanitize_html',
|
76 |
+
'transport' => $selective_refresh,
|
77 |
+
)
|
78 |
+
);
|
79 |
+
|
80 |
+
$wp_customize->add_control(
|
81 |
+
'slide_title',
|
82 |
+
array(
|
83 |
+
'label' => __('Title','startkit'),
|
84 |
+
'section' => 'slider_setting',
|
85 |
+
'settings' => 'slide_title',
|
86 |
+
'type' => 'text',
|
87 |
+
)
|
88 |
+
);
|
89 |
+
//slide description//
|
90 |
+
|
91 |
+
$wp_customize->add_setting(
|
92 |
+
'slide_description',
|
93 |
+
array(
|
94 |
+
'default' => __('Randomised words which dont look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isnt anembarrassing hidden in the middle of text.'),
|
95 |
+
'capability' => 'edit_theme_options',
|
96 |
+
'sanitize_callback' => 'startkit_sanitize_html',
|
97 |
+
'transport' => $selective_refresh,
|
98 |
+
)
|
99 |
+
);
|
100 |
+
|
101 |
+
$wp_customize->add_control(
|
102 |
+
'slide_description',
|
103 |
+
array(
|
104 |
+
'label' => __('Description','startkit'),
|
105 |
+
'section' => 'slider_setting',
|
106 |
+
'settings' => 'slide_description',
|
107 |
+
'type' => 'textarea',
|
108 |
+
)
|
109 |
+
);
|
110 |
+
|
111 |
+
// button text
|
112 |
+
$wp_customize->add_setting(
|
113 |
+
'slide_btn_text',
|
114 |
+
array(
|
115 |
+
'default' => __('Explore More','startkit'),
|
116 |
+
'capability' => 'edit_theme_options',
|
117 |
+
'sanitize_callback' => 'startkit_sanitize_html',
|
118 |
+
'transport' => $selective_refresh,
|
119 |
+
)
|
120 |
+
);
|
121 |
+
|
122 |
+
$wp_customize->add_control(
|
123 |
+
'slide_btn_text',
|
124 |
+
array(
|
125 |
+
'label' => __('button text','startkit'),
|
126 |
+
'section' => 'slider_setting',
|
127 |
+
'settings' => 'slide_btn_text',
|
128 |
+
'type' => 'text',
|
129 |
+
)
|
130 |
+
);
|
131 |
+
|
132 |
+
// Slider button link
|
133 |
+
$wp_customize->add_setting(
|
134 |
+
'slide_btn_link',
|
135 |
+
array(
|
136 |
+
'default' => __('#','startkit'),
|
137 |
+
'capability' => 'edit_theme_options',
|
138 |
+
'sanitize_callback' => 'startkit_sanitize_html',
|
139 |
+
'transport' => $selective_refresh,
|
140 |
+
)
|
141 |
+
);
|
142 |
+
|
143 |
+
$wp_customize->add_control(
|
144 |
+
'slide_btn_link',
|
145 |
+
array(
|
146 |
+
'label' => __('Link','startkit'),
|
147 |
+
'section' => 'slider_setting',
|
148 |
+
'settings' => 'slide_btn_link',
|
149 |
+
'type' => 'text',
|
150 |
+
)
|
151 |
+
);
|
152 |
+
//slider opacity
|
153 |
+
|
154 |
+
// Slider Text Caption //
|
155 |
+
$wp_customize->add_setting(
|
156 |
+
'slider_opacity' ,
|
157 |
+
array(
|
158 |
+
'default' => '0.3',
|
159 |
+
'capability' => 'edit_theme_options',
|
160 |
+
'transport' => $selective_refresh,
|
161 |
+
|
162 |
+
)
|
163 |
+
);
|
164 |
+
|
165 |
+
$wp_customize->add_control(
|
166 |
+
new Customizer_Range_Value_Control( $wp_customize, 'slider_opacity',
|
167 |
+
array(
|
168 |
+
'type' => 'range-value',
|
169 |
+
'section' => 'slider_setting',
|
170 |
+
'settings' => 'slider_opacity',
|
171 |
+
'label' => __( 'Background Opacity','startkit' ),
|
172 |
+
'input_attrs' => array(
|
173 |
+
'min' => 0,
|
174 |
+
'max' => 0.9,
|
175 |
+
'step' => 0.1,
|
176 |
+
//'suffix' => 'px', //optional suffix
|
177 |
+
),
|
178 |
+
) )
|
179 |
+
);
|
180 |
+
}
|
181 |
+
|
182 |
+
add_action( 'customize_register', 'startkit_slider_setting' );
|
183 |
+
|
184 |
+
|
185 |
+
|
186 |
+
|
187 |
+
// Customizer tabs
|
188 |
+
|
189 |
+
function slider_manager_customize_register( $wp_customize ) {
|
190 |
+
if ( class_exists( 'startkit_Customize_Control_Tabs' ) ) {
|
191 |
+
|
192 |
+
// Pricing Tables Tabs
|
193 |
+
$wp_customize->add_setting(
|
194 |
+
'startkit_slider_tabs', array(
|
195 |
+
'sanitize_callback' => 'sanitize_text_field',
|
196 |
+
)
|
197 |
+
);
|
198 |
+
|
199 |
+
$wp_customize->add_control(
|
200 |
+
new startkit_Customize_Control_Tabs(
|
201 |
+
$wp_customize, 'startkit_slider_tabs', array(
|
202 |
+
'section' => 'slider_setting',
|
203 |
+
'tabs' => array(
|
204 |
+
'general' => array(
|
205 |
+
'nicename' => esc_html__( 'setting', 'startkit' ),
|
206 |
+
'icon' => 'cogs',
|
207 |
+
'controls' => array(
|
208 |
+
'hide_show_slider',
|
209 |
+
|
210 |
+
),
|
211 |
+
),
|
212 |
+
'Content' => array(
|
213 |
+
'nicename' => esc_html__( 'Default', 'startkit' ),
|
214 |
+
'icon' => 'table',
|
215 |
+
'controls' => array(
|
216 |
+
'slide_image',
|
217 |
+
'slide_title',
|
218 |
+
'slide_description',
|
219 |
+
'slide_btn_text',
|
220 |
+
'slide_btn_link',
|
221 |
+
'slider_opacity',
|
222 |
+
),
|
223 |
+
),
|
224 |
+
),
|
225 |
+
|
226 |
+
)
|
227 |
+
)
|
228 |
+
);
|
229 |
+
}
|
230 |
+
}
|
231 |
+
|
232 |
+
add_action( 'customize_register', 'slider_manager_customize_register' );
|
233 |
+
|
234 |
+
|
235 |
+
// slider selective refresh
|
236 |
+
function startkit_home_slider_section_partials( $wp_customize ){
|
237 |
+
|
238 |
+
|
239 |
+
// slider title
|
240 |
+
$wp_customize->selective_refresh->add_partial( 'slide_title', array(
|
241 |
+
'selector' => '#header .header-slider h1 ',
|
242 |
+
'settings' => 'slide_title',
|
243 |
+
'render_callback' => 'home_section_slider_tit_render_callback',
|
244 |
+
|
245 |
+
) );
|
246 |
+
|
247 |
+
// slider title
|
248 |
+
$wp_customize->selective_refresh->add_partial( 'slide_description', array(
|
249 |
+
'selector' => '#header .header-slider p',
|
250 |
+
'settings' => 'slide_description',
|
251 |
+
'render_callback' => 'home_section_slider_desc_render_callback',
|
252 |
+
|
253 |
+
) );
|
254 |
+
// slider button
|
255 |
+
$wp_customize->selective_refresh->add_partial( 'slide_btn_text', array(
|
256 |
+
'selector' => '#header .header-slider a',
|
257 |
+
'settings' => 'slide_btn_text',
|
258 |
+
'render_callback' => 'home_section_slider_button_render_callback',
|
259 |
+
|
260 |
+
) );
|
261 |
+
|
262 |
+
}
|
263 |
+
|
264 |
+
add_action( 'customize_register', 'startkit_home_slider_section_partials' );
|
265 |
+
|
266 |
+
// social icons
|
267 |
+
function home_section_slider_tit_render_callback() {
|
268 |
+
return get_theme_mod( 'slide_title' );
|
269 |
+
}
|
270 |
+
//slide desc
|
271 |
+
function home_section_slider_desc_render_callback() {
|
272 |
+
return get_theme_mod( 'slide_description' );
|
273 |
+
}
|
274 |
+
|
275 |
+
//slide desc
|
276 |
+
function home_section_slider_button_render_callback() {
|
277 |
+
return get_theme_mod( 'slide_btn_text' );
|
278 |
+
}
|
279 |
+
|
280 |
+
?>
|
inc/startkit/features/testimonial-section.php
ADDED
@@ -0,0 +1,269 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function startkit_testimonial_setting( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
/*=========================================
|
5 |
+
Testimonial Section Panel
|
6 |
+
=========================================*/
|
7 |
+
if ( class_exists( 'startkit_Hiding_Section' ) ) {
|
8 |
+
$wp_customize->add_section(
|
9 |
+
new startkit_Hiding_Section(
|
10 |
+
$wp_customize, 'testimonial_setting', array(
|
11 |
+
'title' => esc_html__( 'Testimonial Section', 'startkit' ),
|
12 |
+
'panel' => 'startkit_frontpage_sections',
|
13 |
+
'priority' => apply_filters( 'startkit_section_priority', 32, 'startkit_Testimonial' ),
|
14 |
+
'hiding_control' => 'startkit_testimonial_hide',
|
15 |
+
)
|
16 |
+
)
|
17 |
+
);
|
18 |
+
} else {
|
19 |
+
$wp_customize->add_section(
|
20 |
+
'testimonial_setting', array(
|
21 |
+
'title' => esc_html__( 'Testimonial Section', 'startkit' ),
|
22 |
+
'panel' => 'startkit_frontpage_sections',
|
23 |
+
'priority' => apply_filters( 'startkit_section_priority', 32, 'startkit_Testimonial' ),
|
24 |
+
)
|
25 |
+
);
|
26 |
+
}
|
27 |
+
|
28 |
+
|
29 |
+
/*=========================================
|
30 |
+
Testimonial Settings Section
|
31 |
+
=========================================*/
|
32 |
+
|
33 |
+
|
34 |
+
$wp_customize->add_setting(
|
35 |
+
'hide_show_testimonial' ,
|
36 |
+
array(
|
37 |
+
'default' => '1',
|
38 |
+
'capability' => 'edit_theme_options',
|
39 |
+
)
|
40 |
+
);
|
41 |
+
|
42 |
+
$wp_customize->add_control( new Customizer_Toggle_Control( $wp_customize,
|
43 |
+
'hide_show_testimonial',
|
44 |
+
array(
|
45 |
+
'label' => esc_html__( 'Hide / Show Section', 'startkit' ),
|
46 |
+
'section' => 'testimonial_setting',
|
47 |
+
'settings' => 'hide_show_testimonial',
|
48 |
+
'type' => 'ios', // light, ios, flat
|
49 |
+
)
|
50 |
+
));
|
51 |
+
|
52 |
+
/*=========================================
|
53 |
+
Testimonial Header Section
|
54 |
+
=========================================*/
|
55 |
+
// Testimonial Header Section //
|
56 |
+
|
57 |
+
|
58 |
+
// Testimonial Title //
|
59 |
+
$wp_customize->add_setting(
|
60 |
+
'testimonial_title',
|
61 |
+
array(
|
62 |
+
'default' => __('Testimonial','startkit'),
|
63 |
+
'capability' => 'edit_theme_options',
|
64 |
+
'sanitize_callback' => 'startkit_sanitize_html',
|
65 |
+
'transport' => $selective_refresh,
|
66 |
+
)
|
67 |
+
);
|
68 |
+
|
69 |
+
$wp_customize->add_control(
|
70 |
+
'testimonial_title',
|
71 |
+
array(
|
72 |
+
'label' => __('Title','startkit'),
|
73 |
+
'section' => 'testimonial_setting',
|
74 |
+
'settings' => 'testimonial_title',
|
75 |
+
'type' => 'text',
|
76 |
+
)
|
77 |
+
);
|
78 |
+
|
79 |
+
// Testimonial Description //
|
80 |
+
$wp_customize->add_setting(
|
81 |
+
'testimonial_description',
|
82 |
+
array(
|
83 |
+
'default' => __('Publishing packages and web page editors now use Lorem Ipsum as their default model text','startkit'),
|
84 |
+
'capability' => 'edit_theme_options',
|
85 |
+
'sanitize_callback' => 'startkit_sanitize_text',
|
86 |
+
'transport' => $selective_refresh,
|
87 |
+
)
|
88 |
+
);
|
89 |
+
|
90 |
+
$wp_customize->add_control(
|
91 |
+
'testimonial_description',
|
92 |
+
array(
|
93 |
+
'label' => __('Description','startkit'),
|
94 |
+
'section' => 'testimonial_setting',
|
95 |
+
'settings' => 'testimonial_description',
|
96 |
+
'type' => 'textarea',
|
97 |
+
)
|
98 |
+
);
|
99 |
+
|
100 |
+
// Testimonial Content Section //
|
101 |
+
|
102 |
+
|
103 |
+
/**
|
104 |
+
* Customizer Repeater for add Testimonial
|
105 |
+
*/
|
106 |
+
$wp_customize->add_setting( 'testimonial_contents',
|
107 |
+
array(
|
108 |
+
'sanitize_callback' => 'startkit_repeater_sanitize',
|
109 |
+
//'transport' => $selective_refresh,
|
110 |
+
'default' => json_encode(
|
111 |
+
array(
|
112 |
+
array(
|
113 |
+
'title' => esc_html__( 'Naiomi Watson', 'startkit' ),
|
114 |
+
'subtitle' => esc_html__( 'Lead Interaction Designer', 'startkit' ),
|
115 |
+
'text' => esc_html__( 'Established fact that a reader will be distracted by the readable content of a page when', 'startkit' ),
|
116 |
+
'image_url' => CLEVERFOX_PLUGIN_URL .'inc/startkit/images/testimonial/testimonial01.png',
|
117 |
+
'id' => 'customizer_repeater_testimonial_001',
|
118 |
+
),
|
119 |
+
array(
|
120 |
+
'title' => esc_html__( 'Pins kumara', 'startkit' ),
|
121 |
+
'subtitle' => esc_html__( 'Lead Interaction Designer', 'startkit' ),
|
122 |
+
'text' => esc_html__( 'Established fact that a reader will be distracted by the readable content of a page when', 'startkit' ),
|
123 |
+
'image_url' => CLEVERFOX_PLUGIN_URL .'inc/startkit/images/testimonial/testimonial02.png',
|
124 |
+
'id' => 'customizer_repeater_testimonial_001',
|
125 |
+
|
126 |
+
),
|
127 |
+
array(
|
128 |
+
'title' => esc_html__( 'Mairala Thare', 'startkit' ),
|
129 |
+
'subtitle' => esc_html__( 'Lead Interaction Designer', 'startkit' ),
|
130 |
+
'text' => esc_html__( 'Established fact that a reader will be distracted by the readable content of a page when', 'startkit' ),
|
131 |
+
'image_url' => CLEVERFOX_PLUGIN_URL .'inc/startkit/images/testimonial/testimonial03.png',
|
132 |
+
'id' => 'customizer_repeater_testimonial_001',
|
133 |
+
|
134 |
+
),
|
135 |
+
)
|
136 |
+
)
|
137 |
+
)
|
138 |
+
);
|
139 |
+
|
140 |
+
$wp_customize->add_control(
|
141 |
+
new Startkit_Repeater( $wp_customize,
|
142 |
+
'testimonial_contents',
|
143 |
+
array(
|
144 |
+
'label' => esc_html__('Testimonial','startkit'),
|
145 |
+
'section' => 'testimonial_setting',
|
146 |
+
'add_field_label' => esc_html__( 'Add New Testimonial', 'startkit' ),
|
147 |
+
'item_name' => esc_html__( 'Testimonial', 'startkit' ),
|
148 |
+
'priority' => 1,
|
149 |
+
'customizer_repeater_image_control' => true,
|
150 |
+
'customizer_repeater_title_control' => true,
|
151 |
+
'customizer_repeater_subtitle_control' => true,
|
152 |
+
'customizer_repeater_text_control' => true,
|
153 |
+
|
154 |
+
|
155 |
+
|
156 |
+
)
|
157 |
+
)
|
158 |
+
);
|
159 |
+
|
160 |
+
|
161 |
+
|
162 |
+
}
|
163 |
+
|
164 |
+
add_action( 'customize_register', 'startkit_testimonial_setting' );
|
165 |
+
?>
|
166 |
+
|
167 |
+
<?php
|
168 |
+
// Customizer tabs
|
169 |
+
|
170 |
+
function startkit_testimonial_customize_register( $wp_customize ) {
|
171 |
+
if ( class_exists( 'startkit_Customize_Control_Tabs' ) ) {
|
172 |
+
|
173 |
+
// Pricing Tables Tabs
|
174 |
+
$wp_customize->add_setting(
|
175 |
+
'startkit_testimonial_tabs', array(
|
176 |
+
'sanitize_callback' => 'sanitize_text_field',
|
177 |
+
)
|
178 |
+
);
|
179 |
+
|
180 |
+
$wp_customize->add_control(
|
181 |
+
new startkit_Customize_Control_Tabs(
|
182 |
+
$wp_customize, 'startkit_testimonial_tabs', array(
|
183 |
+
'section' => 'testimonial_setting',
|
184 |
+
'tabs' => array(
|
185 |
+
'general' => array(
|
186 |
+
'nicename' => esc_html__( 'Setting', 'startkit' ),
|
187 |
+
'icon' => 'cogs',
|
188 |
+
'controls' => array(
|
189 |
+
'hide_show_testimonial',
|
190 |
+
|
191 |
+
),
|
192 |
+
),
|
193 |
+
'first' => array(
|
194 |
+
'nicename' => esc_html__( 'Header', 'startkit' ),
|
195 |
+
'icon' => 'header',
|
196 |
+
'controls' => array(
|
197 |
+
'testimonial_title',
|
198 |
+
'testimonial_description',
|
199 |
+
|
200 |
+
|
201 |
+
|
202 |
+
),
|
203 |
+
),
|
204 |
+
'second' => array(
|
205 |
+
'nicename' => esc_html__( 'Content', 'startkit' ),
|
206 |
+
'icon' => 'info',
|
207 |
+
'controls' => array(
|
208 |
+
'testimonial_contents',
|
209 |
+
|
210 |
+
),
|
211 |
+
),
|
212 |
+
|
213 |
+
|
214 |
+
|
215 |
+
|
216 |
+
),
|
217 |
+
)
|
218 |
+
)
|
219 |
+
);
|
220 |
+
}
|
221 |
+
}
|
222 |
+
|
223 |
+
add_action( 'customize_register', 'startkit_testimonial_customize_register' );
|
224 |
+
|
225 |
+
// Testimonial selective refresh
|
226 |
+
function startkit_home_testimonial_section_partials( $wp_customize ){
|
227 |
+
|
228 |
+
|
229 |
+
// title
|
230 |
+
$wp_customize->selective_refresh->add_partial( 'testimonial_title', array(
|
231 |
+
'selector' => '#testimonial .section-header h2',
|
232 |
+
'settings' => 'testimonial_title',
|
233 |
+
'render_callback' => 'home_section_testimonial_title_render_callback',
|
234 |
+
|
235 |
+
) );
|
236 |
+
// description
|
237 |
+
$wp_customize->selective_refresh->add_partial( 'testimonial_description', array(
|
238 |
+
'selector' => '#testimonial .section-header p',
|
239 |
+
'settings' => 'testimonial_description',
|
240 |
+
'render_callback' => 'home_section_testimonial_desc_render_callback',
|
241 |
+
|
242 |
+
) );
|
243 |
+
// contents
|
244 |
+
$wp_customize->selective_refresh->add_partial( 'testimonial_contents', array(
|
245 |
+
'selector' => '#testimonial .tst_contents',
|
246 |
+
'settings' => 'testimonial_contents',
|
247 |
+
'render_callback' => 'home_section_testimonial_contents_render_callback',
|
248 |
+
|
249 |
+
) );
|
250 |
+
|
251 |
+
}
|
252 |
+
|
253 |
+
add_action( 'customize_register', 'startkit_home_testimonial_section_partials' );
|
254 |
+
|
255 |
+
// title
|
256 |
+
function home_section_testimonial_title_render_callback() {
|
257 |
+
return get_theme_mod( 'testimonial_title' );
|
258 |
+
}
|
259 |
+
// description
|
260 |
+
function home_section_testimonial_desc_render_callback() {
|
261 |
+
return get_theme_mod( 'testimonial_description' );
|
262 |
+
}
|
263 |
+
// contents
|
264 |
+
function home_section_testimonial_contents_render_callback() {
|
265 |
+
return get_theme_mod( 'testimonial_contents' );
|
266 |
+
}
|
267 |
+
|
268 |
+
|
269 |
+
?>
|
inc/startkit/images/about/play-icon.png
ADDED
Binary file
|
inc/startkit/images/about/video-bg.jpg
ADDED
Binary file
|
inc/startkit/images/footerlogo.png
ADDED
Binary file
|
inc/startkit/images/logo.png
ADDED
Binary file
|
inc/startkit/images/service/serviceicon01.png
ADDED
Binary file
|
inc/startkit/images/service/serviceicon02.png
ADDED
Binary file
|
inc/startkit/images/service/serviceicon03.png
ADDED
Binary file
|
inc/startkit/images/service/serviceicon04.png
ADDED
Binary file
|
inc/startkit/images/slider/slider.jpg
ADDED
Binary file
|
inc/startkit/images/testimonial/testimonial01.png
ADDED
Binary file
|
inc/startkit/images/testimonial/testimonial02.png
ADDED
Binary file
|
inc/startkit/images/testimonial/testimonial03.png
ADDED
Binary file
|
inc/startkit/own-theme.php
ADDED
@@ -0,0 +1,634 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function startkit_own_theme_colors() {
|
3 |
+
$theme_color_enable= get_theme_mod('theme_color_enable','off');
|
4 |
+
if( $theme_color_enable == 'on' ):
|
5 |
+
|
6 |
+
$primary_color = get_theme_mod('primary_color','#e84c3d');
|
7 |
+
$secondary_color = get_theme_mod('secondary_color','#1c314c');
|
8 |
+
?>
|
9 |
+
<style type="text/css">
|
10 |
+
/*=========================================
|
11 |
+
Primary Color
|
12 |
+
=========================================*/
|
13 |
+
|
14 |
+
.preloader {
|
15 |
+
background: #f24259;
|
16 |
+
}
|
17 |
+
|
18 |
+
/* 00. Theme Reset Css */
|
19 |
+
.section-header h2 {
|
20 |
+
color: <?php echo $primary_color; ?>;
|
21 |
+
}
|
22 |
+
|
23 |
+
.section-header h2:after {
|
24 |
+
background: <?php echo $primary_color; ?>;
|
25 |
+
}
|
26 |
+
|
27 |
+
.boxed-btn {
|
28 |
+
background: <?php echo $primary_color; ?>;
|
29 |
+
}
|
30 |
+
|
31 |
+
.boxed-btn:hover {
|
32 |
+
color: <?php echo $primary_color; ?>;
|
33 |
+
}
|
34 |
+
|
35 |
+
/* 02. Header Top */
|
36 |
+
#header-top {
|
37 |
+
background: <?php echo $primary_color; ?>;
|
38 |
+
}
|
39 |
+
|
40 |
+
/* 03. Custom Navigation */
|
41 |
+
.main-menu ul li.active a,
|
42 |
+
.main-menu ul li a:hover {
|
43 |
+
color: <?php echo $primary_color; ?> !important;
|
44 |
+
}
|
45 |
+
|
46 |
+
.main-menu ul li ul li:hover:before {
|
47 |
+
color: <?php echo $primary_color; ?>;
|
48 |
+
}
|
49 |
+
|
50 |
+
.main-menu ul li.active ul li a:hover {
|
51 |
+
color: <?php echo $primary_color; ?> !important;
|
52 |
+
}
|
53 |
+
|
54 |
+
.main-menu ul li a:after,
|
55 |
+
.main-menu ul li a:before {
|
56 |
+
border-color: <?php echo $primary_color; ?> !important;
|
57 |
+
}
|
58 |
+
|
59 |
+
|
60 |
+
.mean-container a.meanmenu-reveal {
|
61 |
+
border-color: <?php echo $primary_color; ?>;
|
62 |
+
color: <?php echo $primary_color; ?>;
|
63 |
+
}
|
64 |
+
|
65 |
+
.mean-container a.meanmenu-reveal span {
|
66 |
+
background-color: <?php echo $primary_color; ?>;
|
67 |
+
}
|
68 |
+
|
69 |
+
.mean-container .mean-nav {
|
70 |
+
background: <?php echo $primary_color; ?>;
|
71 |
+
}
|
72 |
+
|
73 |
+
.search-button a {
|
74 |
+
color: <?php echo $primary_color; ?>;
|
75 |
+
}
|
76 |
+
|
77 |
+
a.book-now {
|
78 |
+
border-color; <?php echo $primary_color; ?>;
|
79 |
+
color: <?php echo $primary_color; ?>;
|
80 |
+
}
|
81 |
+
|
82 |
+
a.book-now:hover {
|
83 |
+
background: <?php echo $primary_color; ?>;
|
84 |
+
}
|
85 |
+
|
86 |
+
.search-button a.nav-link {
|
87 |
+
color: <?php echo $primary_color; ?>;
|
88 |
+
}
|
89 |
+
|
90 |
+
#search {
|
91 |
+
background: <?php echo $primary_color; ?>;
|
92 |
+
}
|
93 |
+
|
94 |
+
.badge {
|
95 |
+
background: <?php echo $primary_color; ?>;
|
96 |
+
}
|
97 |
+
|
98 |
+
.cart-icon i {
|
99 |
+
color: <?php echo $primary_color; ?>;
|
100 |
+
}
|
101 |
+
|
102 |
+
ul.cart-list>li>p>a {
|
103 |
+
color: <?php echo $primary_color; ?>;
|
104 |
+
}
|
105 |
+
|
106 |
+
ul.cart-list>li.total>.btn-cart {
|
107 |
+
border-color: <?php echo $primary_color; ?>;
|
108 |
+
background: <?php echo $primary_color; ?>;
|
109 |
+
}
|
110 |
+
|
111 |
+
ul.cart-list>li.total>.btn-cart:hover {
|
112 |
+
color: <?php echo $primary_color; ?>;
|
113 |
+
}
|
114 |
+
|
115 |
+
/* Header slider */
|
116 |
+
.header-slider .owl-next,
|
117 |
+
.header-slider .owl-prev {
|
118 |
+
color: <?php echo $primary_color; ?>;
|
119 |
+
}
|
120 |
+
|
121 |
+
/* 05. Features */
|
122 |
+
|
123 |
+
.features-list-item .icon i {
|
124 |
+
color: <?php echo $primary_color; ?>;
|
125 |
+
}
|
126 |
+
|
127 |
+
.view-more {
|
128 |
+
color: <?php echo $primary_color; ?>;
|
129 |
+
}
|
130 |
+
|
131 |
+
/* 06. Portfolio */
|
132 |
+
.sorting-btn {
|
133 |
+
border-bottom-color: <?php echo $primary_color; ?> !important;
|
134 |
+
}
|
135 |
+
|
136 |
+
.sorting-btn li a.active {
|
137 |
+
color: <?php echo $primary_color; ?>;
|
138 |
+
}
|
139 |
+
|
140 |
+
.portfolio-masonary figure:hover figcaption {
|
141 |
+
background: <?php echo $primary_color; ?>;
|
142 |
+
}
|
143 |
+
|
144 |
+
/* 07. Features */
|
145 |
+
.features-item:before {
|
146 |
+
background: <?php echo $primary_color; ?>;
|
147 |
+
}
|
148 |
+
|
149 |
+
.features-item:hover i {
|
150 |
+
color: <?php echo $primary_color; ?>;
|
151 |
+
}
|
152 |
+
|
153 |
+
/* 08. Services */
|
154 |
+
.service-icon i {
|
155 |
+
color: <?php echo $primary_color; ?>;
|
156 |
+
}
|
157 |
+
|
158 |
+
.services-item .service-icon:after {
|
159 |
+
background: <?php echo $primary_color; ?>;
|
160 |
+
}
|
161 |
+
|
162 |
+
.services-item:hover h4 {
|
163 |
+
color: <?php echo $primary_color; ?>;
|
164 |
+
}
|
165 |
+
|
166 |
+
/* 10. Fun Fact*/
|
167 |
+
#fun-fact i {
|
168 |
+
color: <?php echo $primary_color; ?>;
|
169 |
+
}
|
170 |
+
|
171 |
+
.member-social li a {
|
172 |
+
color: <?php echo $primary_color; ?>;
|
173 |
+
}
|
174 |
+
|
175 |
+
.member-title:after {
|
176 |
+
background: <?php echo $primary_color; ?>;
|
177 |
+
}
|
178 |
+
|
179 |
+
.member-title:before {
|
180 |
+
border-bottom-color: <?php echo $primary_color; ?> !important;
|
181 |
+
}
|
182 |
+
|
183 |
+
.team-member:hover .member-title h4 {
|
184 |
+
color: <?php echo $primary_color; ?>;
|
185 |
+
}
|
186 |
+
|
187 |
+
.inner-bio {
|
188 |
+
background-color: <?php echo $primary_color; ?>;
|
189 |
+
}
|
190 |
+
|
191 |
+
/* Testimonial */
|
192 |
+
#testimonial .owl-dot.active {
|
193 |
+
background: <?php echo $primary_color; ?> !important;
|
194 |
+
}
|
195 |
+
|
196 |
+
.single-testimonial h4 {
|
197 |
+
color: <?php echo $primary_color; ?>;
|
198 |
+
}
|
199 |
+
|
200 |
+
.single-testimonial h4:after {
|
201 |
+
background: <?php echo $primary_color; ?>;
|
202 |
+
}
|
203 |
+
|
204 |
+
|
205 |
+
/* Pricing */
|
206 |
+
#pricing .features li i {
|
207 |
+
color: <?php echo $primary_color; ?>;
|
208 |
+
}
|
209 |
+
|
210 |
+
/* Recent Blog */
|
211 |
+
#recent-blog .post-thumbnail:after {
|
212 |
+
background: <?php echo $primary_color; ?>;
|
213 |
+
}
|
214 |
+
|
215 |
+
#recent-blog .blog-post:hover .read-more-link,
|
216 |
+
.blog-post:hover .post-content .post-title a {
|
217 |
+
color: <?php echo $primary_color; ?>;
|
218 |
+
}
|
219 |
+
|
220 |
+
/* Contact Us*/
|
221 |
+
.contact-us-info h3:after {
|
222 |
+
background: <?php echo $primary_color; ?>;
|
223 |
+
}
|
224 |
+
|
225 |
+
.live-chat.boxed-btn:hover {
|
226 |
+
background: <?php echo $primary_color; ?>;
|
227 |
+
border-color: <?php echo $primary_color; ?>;
|
228 |
+
}
|
229 |
+
|
230 |
+
.get-in-touch h3 {
|
231 |
+
color: <?php echo $primary_color; ?>;
|
232 |
+
}
|
233 |
+
|
234 |
+
.get-in-touch input,
|
235 |
+
.get-in-touch textarea {
|
236 |
+
border-color: <?php echo $primary_color; ?>;
|
237 |
+
}
|
238 |
+
|
239 |
+
.get-in-touch .form-control:focus {
|
240 |
+
border-bottom-color: <?php echo $primary_color; ?> !important;
|
241 |
+
}
|
242 |
+
|
243 |
+
#footer-copyright {
|
244 |
+
background: <?php echo $primary_color; ?>;
|
245 |
+
}
|
246 |
+
|
247 |
+
.scrollup {
|
248 |
+
background-color: <?php echo $primary_color; ?>;
|
249 |
+
border-color: <?php echo $primary_color; ?>;
|
250 |
+
|
251 |
+
}
|
252 |
+
|
253 |
+
.scrollup:hover {
|
254 |
+
color: <?php echo $primary_color; ?>;
|
255 |
+
border-color: <?php echo $primary_color; ?>;
|
256 |
+
}
|
257 |
+
|
258 |
+
/*------------------------
|
259 |
+
About US page
|
260 |
+
-------------------------*/
|
261 |
+
.breadcrumb-nav li a {
|
262 |
+
color: <?php echo $primary_color; ?>;
|
263 |
+
}
|
264 |
+
|
265 |
+
#about-us .section-header:before {
|
266 |
+
background: <?php echo $primary_color; ?>;
|
267 |
+
}
|
268 |
+
|
269 |
+
.progress-bar {
|
270 |
+
background: <?php echo $primary_color; ?>;
|
271 |
+
}
|
272 |
+
|
273 |
+
a.view-details:hover {
|
274 |
+
color: <?php echo $primary_color; ?>;
|
275 |
+
}
|
276 |
+
|
277 |
+
|
278 |
+
/*------------------------
|
279 |
+
Service page
|
280 |
+
-------------------------*/
|
281 |
+
.servicepage-item .service-icon i {
|
282 |
+
color: <?php echo $primary_color; ?>;
|
283 |
+
}
|
284 |
+
|
285 |
+
.servicepage-item a {
|
286 |
+
color: <?php echo $primary_color; ?>;
|
287 |
+
}
|
288 |
+
|
289 |
+
/*------------------------
|
290 |
+
Portfolio
|
291 |
+
-------------------------*/
|
292 |
+
|
293 |
+
.portfolio-item:hover .content h4,
|
294 |
+
.portfolio-item:hover .content a {
|
295 |
+
color: <?php echo $primary_color; ?>;
|
296 |
+
}
|
297 |
+
|
298 |
+
.portfolio-item:hover figcaption {
|
299 |
+
background: <?php echo $primary_color; ?>;
|
300 |
+
}
|
301 |
+
|
302 |
+
.pagination li.page-item.more-page a.page-link,
|
303 |
+
.pagination li.page-item.active a.page-link,
|
304 |
+
.pagination a.page-link:hover {
|
305 |
+
background: <?php echo $primary_color; ?>;
|
306 |
+
}
|
307 |
+
|
308 |
+
.single-exclusive:hover h5,
|
309 |
+
.single-exclusive:hover i {
|
310 |
+
color: <?php echo $primary_color; ?>;
|
311 |
+
}
|
312 |
+
|
313 |
+
#exclusive .owl-dot.active {
|
314 |
+
background: <?php echo $primary_color; ?>;
|
315 |
+
}
|
316 |
+
|
317 |
+
/* Gallery */
|
318 |
+
.gallery-popup:hover {
|
319 |
+
color: <?php echo $primary_color; ?>;
|
320 |
+
}
|
321 |
+
|
322 |
+
.load-btn {
|
323 |
+
background: <?php echo $primary_color; ?>;
|
324 |
+
}
|
325 |
+
|
326 |
+
/*------------------------
|
327 |
+
Blog
|
328 |
+
-------------------------*/
|
329 |
+
.blog-post:hover h4.post-title a {
|
330 |
+
color: <?php echo $primary_color; ?> !important;
|
331 |
+
}
|
332 |
+
|
333 |
+
.post-content .continue-reading:hover {
|
334 |
+
color: <?php echo $primary_color; ?> !important;
|
335 |
+
}
|
336 |
+
|
337 |
+
#blog-content ul.meta-info li:hover i,
|
338 |
+
#blog-content ul.meta-info li a:hover {
|
339 |
+
color: <?php echo $primary_color; ?>;
|
340 |
+
}
|
341 |
+
|
342 |
+
.blog-post .post-thumb {
|
343 |
+
background: <?php echo $primary_color; ?>;
|
344 |
+
}
|
345 |
+
|
346 |
+
.post-new-comment input,
|
347 |
+
.post-new-comment textarea {
|
348 |
+
border-color: <?php echo $primary_color; ?>;
|
349 |
+
}
|
350 |
+
|
351 |
+
.single-blog-area ul.share-icon li a:hover {
|
352 |
+
color: <?php echo $primary_color; ?>;
|
353 |
+
}
|
354 |
+
|
355 |
+
/*------------------------
|
356 |
+
Contact US
|
357 |
+
-------------------------*/
|
358 |
+
.office .icon {
|
359 |
+
color: <?php echo $primary_color; ?>;
|
360 |
+
}
|
361 |
+
|
362 |
+
ul.contact-social li a {
|
363 |
+
color: <?php echo $primary_color; ?>;
|
364 |
+
}
|
365 |
+
|
366 |
+
/* Widget Color */
|
367 |
+
|
368 |
+
.widget_about a:hover {
|
369 |
+
color: <?php echo $primary_color; ?>;
|
370 |
+
}
|
371 |
+
|
372 |
+
.widget_pages ul li a:hover {
|
373 |
+
color: <?php echo $primary_color; ?>;
|
374 |
+
}
|
375 |
+
|
376 |
+
.sidebar .widget_search input[type=button],
|
377 |
+
.sidebar .widget_search input[type=submit] {
|
378 |
+
background: <?php echo $primary_color; ?>;
|
379 |
+
}
|
380 |
+
|
381 |
+
.sidebar .widget_recent_entries ul li a:hover,
|
382 |
+
.sidebar .widget_recent_comments ul li a:hover,
|
383 |
+
.sidebar .widget_archive ul li a:hover,
|
384 |
+
.sidebar .widget_categories ul li a:hover,
|
385 |
+
.sidebar .widget_meta ul li a:hover {
|
386 |
+
color: <?php echo $primary_color; ?>;
|
387 |
+
}
|
388 |
+
|
389 |
+
.footer-sidebar .widget_search input[type=button],
|
390 |
+
.footer-sidebar .widget_search input[type=submit],
|
391 |
+
.footer-sidebar .widget_search input[type=submit]:hover {
|
392 |
+
background: <?php echo $primary_color; ?>;
|
393 |
+
}
|
394 |
+
.footer-sidebar .widget_recent_entries ul li a:hover,
|
395 |
+
.footer-sidebar .widget_recent_comments ul li a:hover,
|
396 |
+
.footer-sidebar .widget_archive ul li a:hover,
|
397 |
+
.footer-sidebar .widget_categories ul li a:hover,
|
398 |
+
.footer-sidebar .widget_meta ul li a:hover {
|
399 |
+
color: <?php echo $primary_color; ?>;
|
400 |
+
}
|
401 |
+
.recent-post h6:hover {
|
402 |
+
color: <?php echo $primary_color; ?>;
|
403 |
+
}
|
404 |
+
|
405 |
+
ul.recent-meta-info li a:hover {
|
406 |
+
color: <?php echo $primary_color; ?>;
|
407 |
+
}
|
408 |
+
|
409 |
+
.days li .active {
|
410 |
+
color: <?php echo $primary_color; ?>;
|
411 |
+
border-color: <?php echo $primary_color; ?>;
|
412 |
+
}
|
413 |
+
|
414 |
+
.widget-newsletter .subscribe {
|
415 |
+
color: <?php echo $primary_color; ?>;
|
416 |
+
border-color: <?php echo $primary_color; ?>;
|
417 |
+
}
|
418 |
+
|
419 |
+
.widget-newsletter .subscribe:hover {
|
420 |
+
background: <?php echo $primary_color; ?>;
|
421 |
+
}
|
422 |
+
|
423 |
+
|
424 |
+
ul.widget-social li a:hover {
|
425 |
+
color: <?php echo $primary_color; ?>;
|
426 |
+
}
|
427 |
+
|
428 |
+
ul.tags li a:hover {
|
429 |
+
background: <?php echo $primary_color; ?>;
|
430 |
+
}
|
431 |
+
|
432 |
+
|
433 |
+
/*=========================================
|
434 |
+
Secondary Color
|
435 |
+
=========================================*/
|
436 |
+
/* Theme Reset css */
|
437 |
+
p {
|
438 |
+
color: <?php echo $secondary_color; ?>;
|
439 |
+
}
|
440 |
+
|
441 |
+
.section-header p {
|
442 |
+
color: <?php echo $secondary_color; ?>;
|
443 |
+
}
|
444 |
+
|
445 |
+
/* Main Menu*/
|
446 |
+
.mean-container .mean-nav ul li a.mean-expand:hover {
|
447 |
+
background: <?php echo $secondary_color; ?>;
|
448 |
+
}
|
449 |
+
|
450 |
+
ul.cart-list>li.total {
|
451 |
+
background-color: <?php echo $secondary_color; ?>;
|
452 |
+
}
|
453 |
+
|
454 |
+
/* Sections */
|
455 |
+
.call-out:after,
|
456 |
+
#fun-fact:after,
|
457 |
+
#subscribe:after,
|
458 |
+
#pricing .features:after,
|
459 |
+
.video-section:after,
|
460 |
+
.skill-item:after {
|
461 |
+
background: <?php echo $secondary_color; ?>;
|
462 |
+
}
|
463 |
+
|
464 |
+
|
465 |
+
/* Features list*/
|
466 |
+
.features-list-item h4 {
|
467 |
+
color: <?php echo $secondary_color; ?>;
|
468 |
+
}
|
469 |
+
|
470 |
+
.view-more:hover {
|
471 |
+
color: <?php echo $secondary_color; ?>;
|
472 |
+
}
|
473 |
+
|
474 |
+
.sorting-btn li a {
|
475 |
+
color: <?php echo $secondary_color; ?>;
|
476 |
+
}
|
477 |
+
|
478 |
+
.services-item {
|
479 |
+
color:<?php echo $secondary_color; ?>;
|
480 |
+
}
|
481 |
+
|
482 |
+
.member-title {
|
483 |
+
color: <?php echo $secondary_color; ?>;
|
484 |
+
}
|
485 |
+
|
486 |
+
#testimonial .owl-dot {
|
487 |
+
background:<?php echo $secondary_color; ?>;
|
488 |
+
}
|
489 |
+
|
490 |
+
.single-testimonial {
|
491 |
+
background: <?php echo $secondary_color; ?>;
|
492 |
+
}
|
493 |
+
|
494 |
+
#pricing .prcing-head {
|
495 |
+
background: <?php echo $secondary_color; ?>;
|
496 |
+
}
|
497 |
+
|
498 |
+
#pricing .price {
|
499 |
+
color: <?php echo $secondary_color; ?>;
|
500 |
+
}
|
501 |
+
|
502 |
+
#recent-blog .read-more-link {
|
503 |
+
color: <?php echo $secondary_color; ?>;
|
504 |
+
}
|
505 |
+
|
506 |
+
.contact-us-info {
|
507 |
+
background: <?php echo $secondary_color; ?>;
|
508 |
+
}
|
509 |
+
|
510 |
+
/* Service Page */
|
511 |
+
.servicepage-item h4 {
|
512 |
+
color: <?php echo $secondary_color; ?>;
|
513 |
+
}
|
514 |
+
|
515 |
+
.servicepage-item p {
|
516 |
+
color: <?php echo $secondary_color; ?>;
|
517 |
+
}
|
518 |
+
|
519 |
+
.servicepage-item a:hover {
|
520 |
+
color: <?php echo $secondary_color; ?>;
|
521 |
+
}
|
522 |
+
|
523 |
+
/* Portfolio */
|
524 |
+
.portfolio-page .content h4 {
|
525 |
+
color: <?php echo $secondary_color; ?>;
|
526 |
+
}
|
527 |
+
|
528 |
+
.portfolio-page .content a {
|
529 |
+
color: <?php echo $secondary_color; ?>;
|
530 |
+
}
|
531 |
+
|
532 |
+
.pagination a.page-link {
|
533 |
+
background: <?php echo $secondary_color; ?>;
|
534 |
+
}
|
535 |
+
|
536 |
+
.exclusive-content h5 {
|
537 |
+
color: <?php echo $secondary_color; ?>;
|
538 |
+
}
|
539 |
+
|
540 |
+
.exclusive-content i {
|
541 |
+
color: <?php echo $secondary_color; ?>;
|
542 |
+
}
|
543 |
+
|
544 |
+
#exclusive .owl-dot {
|
545 |
+
background: <?php echo $secondary_color; ?>;
|
546 |
+
}
|
547 |
+
|
548 |
+
.gallery-item figure:hover figcaption {
|
549 |
+
background:<?php echo $secondary_color; ?>;
|
550 |
+
}
|
551 |
+
|
552 |
+
#blog-content .post-title a {
|
553 |
+
color: <?php echo $secondary_color; ?>;
|
554 |
+
}
|
555 |
+
|
556 |
+
#blog-content ul.meta-info li {
|
557 |
+
color: <?php echo $secondary_color; ?>;
|
558 |
+
}
|
559 |
+
|
560 |
+
#blog-content ul.meta-info li a {
|
561 |
+
color: <?php echo $secondary_color; ?>;
|
562 |
+
}
|
563 |
+
|
564 |
+
.post-content .content {
|
565 |
+
color: <?php echo $secondary_color; ?>;
|
566 |
+
}
|
567 |
+
|
568 |
+
#blog-content .post-content .continue-reading {
|
569 |
+
color: <?php echo $secondary_color; ?>;
|
570 |
+
}
|
571 |
+
|
572 |
+
.single-blog-area .post-title {
|
573 |
+
color: <?php echo $secondary_color; ?>;
|
574 |
+
}
|
575 |
+
|
576 |
+
.single-blog-area ul.share-icon li a {
|
577 |
+
color:<?php echo $secondary_color; ?>;
|
578 |
+
}
|
579 |
+
|
580 |
+
.post-comment-area .comment-author a {
|
581 |
+
color: <?php echo $secondary_color; ?>;
|
582 |
+
}
|
583 |
+
|
584 |
+
.office h4 {
|
585 |
+
color:<?php echo $secondary_color; ?>;
|
586 |
+
}
|
587 |
+
|
588 |
+
.office ul li {
|
589 |
+
color: <?php echo $secondary_color; ?>;
|
590 |
+
}
|
591 |
+
|
592 |
+
#wrapper-404 .inner-content h1 {
|
593 |
+
color: <?php echo $secondary_color; ?>;
|
594 |
+
}
|
595 |
+
|
596 |
+
#wrapper-404 .inner-content p {
|
597 |
+
color: <?php echo $secondary_color; ?>;
|
598 |
+
}
|
599 |
+
|
600 |
+
/*Widget CSS */
|
601 |
+
|
602 |
+
#footer-widgets,
|
603 |
+
.widget-search input[type=button]:hover,
|
604 |
+
form.search-form .search-submit:hover {
|
605 |
+
background: <?php echo $secondary_color; ?>;
|
606 |
+
}
|
607 |
+
|
608 |
+
|
609 |
+
.widget_search .search-form,
|
610 |
+
.search-form input[type="search"]::-webkit-input-placeholder,
|
611 |
+
.sidebar .widget-title,
|
612 |
+
.widget_categories ul li a,
|
613 |
+
.recent-post h6,
|
614 |
+
ul.recent-meta-info li,
|
615 |
+
ul.recent-meta-info li a,
|
616 |
+
ul.tags li a,
|
617 |
+
.widget-calender .widget-title .plus a,
|
618 |
+
.weekdays li,
|
619 |
+
.days li.disable,
|
620 |
+
.days li {
|
621 |
+
color: <?php echo $secondary_color; ?>;
|
622 |
+
|
623 |
+
}
|
624 |
+
|
625 |
+
.get-in-touch input::-webkit-input-placeholder,
|
626 |
+
.get-in-touch textarea::-webkit-input-placeholder {
|
627 |
+
color: <?php echo $secondary_color; ?>;
|
628 |
+
}
|
629 |
+
</style>
|
630 |
+
|
631 |
+
<?php endif;
|
632 |
+
}
|
633 |
+
add_action('wp_head','startkit_own_theme_colors');
|
634 |
+
?>
|
inc/startkit/sections/section-flash.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'startkit_info_plu' ) ) :
|
3 |
+
|
4 |
+
function startkit_info_plu() {
|
5 |
+
$hide_show_info = get_theme_mod('hide_show_info','1');
|
6 |
+
$info_icons = get_theme_mod('info_icons','icofont icofont-triangle');
|
7 |
+
$info_title = get_theme_mod('info_title','Design For Business');
|
8 |
+
$info_description = get_theme_mod('info_description','The chunk standard of Lorem Ipsum used since the 900s is reproduced below');
|
9 |
+
$info_icons2 = get_theme_mod('info_icons2','icofont icofont-brand-airtel');
|
10 |
+
$info_title2 = get_theme_mod('info_title2','Develop For Work');
|
11 |
+
$info_description2 = get_theme_mod('info_description2','The chunk standard of Lorem Ipsum used since the 900s is reproduced below');
|
12 |
+
$info_icons3 = get_theme_mod('info_icons3','icofont icofont-brand-teliasonera');
|
13 |
+
$info_title3 = get_theme_mod('info_title3','Maketing For Blast');
|
14 |
+
$info_description3 = get_theme_mod('info_description3','The chunk standard of Lorem Ipsum used since the 900s is reproduced below');
|
15 |
+
?>
|
16 |
+
<!-- Start: Features List
|
17 |
+
============================= -->
|
18 |
+
<?php if($hide_show_info == '1') { ?>
|
19 |
+
<section id="features-list">
|
20 |
+
<div class="container">
|
21 |
+
<div class="row text-lg-left text-md-center">
|
22 |
+
<div class="col-md-4 mb-lg-0 mb-3">
|
23 |
+
<div class="features-list-item first wow fadeInUp" data-wow-delay="0.1s">
|
24 |
+
<span class="icon"><i class="<?php echo esc_attr( $info_icons ); ?>"></i></span>
|
25 |
+
<h4><?php echo esc_attr( $info_title ); ?></h4>
|
26 |
+
<p class="small"><?php echo esc_attr( $info_description ); ?></p>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
<div class="col-md-4 mb-md-0 mb-3">
|
30 |
+
<div class="features-list-item second wow fadeInUp" data-wow-delay="0.2s">
|
31 |
+
<span class="icon"><i class="<?php echo esc_attr( $info_icons2 ); ?>"></i></span>
|
32 |
+
<h4><?php echo esc_attr( $info_title2 ); ?></h4>
|
33 |
+
<p class="small"><?php echo esc_attr( $info_description2 ); ?></p>
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
<div class="col-md-4">
|
37 |
+
<div class="features-list-item third wow fadeInUp" data-wow-delay="0.3s">
|
38 |
+
<span class="icon"><i class="<?php echo esc_attr( $info_icons3 ); ?>"></i></span>
|
39 |
+
<h4><?php echo esc_attr( $info_title3 ); ?></h4>
|
40 |
+
<p class="small"><?php echo esc_attr( $info_description3 ); ?></p>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</section>
|
46 |
+
<?php }
|
47 |
+
}
|
48 |
+
|
49 |
+
endif;
|
50 |
+
|
51 |
+
|
52 |
+
if ( function_exists( 'startkit_info_plu' ) ) {
|
53 |
+
$section_priority = apply_filters( 'startkit_section_priority', 12, 'startkit_info_plu' );
|
54 |
+
add_action( 'startkit_sections', 'startkit_info_plu', absint( $section_priority ) );
|
55 |
+
|
56 |
+
}
|
57 |
+
?>
|
inc/startkit/sections/section-service.php
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Get default values for service section.
|
4 |
+
*
|
5 |
+
* @since 1.1.0
|
6 |
+
* @access public
|
7 |
+
*/
|
8 |
+
if ( ! function_exists( 'startkit_service_plu' ) ) :
|
9 |
+
|
10 |
+
function startkit_service_plu() {
|
11 |
+
|
12 |
+
function startkit_get_service_default() {
|
13 |
+
return apply_filters(
|
14 |
+
'startkit_get_service_default', json_encode(
|
15 |
+
array(
|
16 |
+
array(
|
17 |
+
'title' => esc_html__( 'Idea Provide', 'startkit' ),
|
18 |
+
'text' => esc_html__( 'Idea is the ipsum consecte tempor incididuntan andolore tumber tur adipisicing elit..', 'startkit' ),
|
19 |
+
'icon_value' => esc_html__( 'fa-lightbulb-o', 'startkit' ),
|
20 |
+
'id' => 'customizer_repeater_service_001',
|
21 |
+
|
22 |
+
),
|
23 |
+
array(
|
24 |
+
'title' => esc_html__( 'People Research', 'startkit' ),
|
25 |
+
'text' => esc_html__( 'People is the ipsum consecte tempor incididuntan andolore tumber tur adipisicing elit.', 'startkit' ),
|
26 |
+
'icon_value' => esc_html__( 'fa-users', 'startkit' ),
|
27 |
+
'id' => 'customizer_repeater_service_002',
|
28 |
+
|
29 |
+
),
|
30 |
+
array(
|
31 |
+
'title' => esc_html__( 'Business Develop', 'startkit' ),
|
32 |
+
'text' => esc_html__( 'People is the ipsum consecte tempor incididuntan andolore tumber tur adipisicing elit.', 'startkit' ),
|
33 |
+
'icon_value' => esc_html__( 'fa-briefcase', 'startkit' ),
|
34 |
+
'id' => 'customizer_repeater_service_003',
|
35 |
+
|
36 |
+
),
|
37 |
+
array(
|
38 |
+
'title' => esc_html__( 'Marketing', 'startkit' ),
|
39 |
+
'text' => esc_html__( 'People is the ipsum consecte tempor incididuntan andolore tumber tur adipisicing elit.', 'startkit' ),
|
40 |
+
'icon_value' => esc_html__( 'fa-user-md', 'startkit' ),
|
41 |
+
'id' => 'customizer_repeater_service_004',
|
42 |
+
|
43 |
+
),
|
44 |
+
)
|
45 |
+
)
|
46 |
+
);
|
47 |
+
}
|
48 |
+
|
49 |
+
?>
|
50 |
+
<?php
|
51 |
+
$default_content = null;
|
52 |
+
if ( current_user_can( 'edit_theme_options' ) ) {
|
53 |
+
$default_content = startkit_get_service_default();
|
54 |
+
}
|
55 |
+
$hide_show_service= get_theme_mod('hide_show_service','1');
|
56 |
+
$service_title= get_theme_mod('service_title','Services');
|
57 |
+
$service_description= get_theme_mod('service_description','Publishing packages and web page editors now use Lorem Ipsum as their default model text');
|
58 |
+
$service_contents= get_theme_mod('service_contents',$default_content);
|
59 |
+
?>
|
60 |
+
<section id="services" class="section-padding">
|
61 |
+
<?php if($hide_show_service == '1') {?>
|
62 |
+
<div class="container">
|
63 |
+
<?php
|
64 |
+
|
65 |
+
|
66 |
+
if( ($service_title) || ($service_description)!='' ) { ?>
|
67 |
+
<!-- Section Title -->
|
68 |
+
|
69 |
+
<div class="row">
|
70 |
+
<div class="col-md-6 offset-md-3 text-center">
|
71 |
+
<div class="section-header">
|
72 |
+
<?php if ( ! empty( $service_title ) || is_customize_preview() ) : ?>
|
73 |
+
<h2>
|
74 |
+
<?php echo $service_title; ?>
|
75 |
+
</h2>
|
76 |
+
<?php endif; ?>
|
77 |
+
|
78 |
+
<?php if($service_description) {?>
|
79 |
+
|
80 |
+
<p >
|
81 |
+
<?php echo $service_description; ?>
|
82 |
+
</p>
|
83 |
+
<?php } ?>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
<!-- /Section Title -->
|
88 |
+
<?php } ?>
|
89 |
+
<div class="row text-center servicesss">
|
90 |
+
<?php
|
91 |
+
|
92 |
+
if ( ! empty( $service_contents ) ) {
|
93 |
+
$allowed_html = array(
|
94 |
+
'br' => array(),
|
95 |
+
'em' => array(),
|
96 |
+
'strong' => array(),
|
97 |
+
'b' => array(),
|
98 |
+
'i' => array(),
|
99 |
+
);
|
100 |
+
$service_contents = json_decode( $service_contents );
|
101 |
+
foreach ( $service_contents as $service_item ) {
|
102 |
+
$icon = ! empty( $service_item->icon_value ) ? apply_filters( 'startkit_translate_single_string', $service_item->icon_value, 'service section' ) : '';
|
103 |
+
$title = ! empty( $service_item->title ) ? apply_filters( 'startkit_translate_single_string', $service_item->title, 'service section' ) : '';
|
104 |
+
$text = ! empty( $service_item->text ) ? apply_filters( 'startkit_translate_single_string', $service_item->text, 'service section' ) : '';
|
105 |
+
?>
|
106 |
+
<div class="col-lg-3 col-md-6 col-sm-6 col-12 mb-lg-0 mb-4 ">
|
107 |
+
<div class="services-item wow fadeInUp" data-wow-delay="0.4s">
|
108 |
+
<div class="service-icon">
|
109 |
+
|
110 |
+
<?php if ( ! empty( $icon ) ) :?>
|
111 |
+
|
112 |
+
<i class="fa <?php echo esc_html( $icon ); ?> txt-pink"></i>
|
113 |
+
|
114 |
+
<?php endif; ?>
|
115 |
+
</div>
|
116 |
+
<?php if ( ! empty( $title ) ) : ?>
|
117 |
+
|
118 |
+
|
119 |
+
<h4><?php echo esc_html( $title ); ?></h4>
|
120 |
+
|
121 |
+
<?php endif; ?>
|
122 |
+
|
123 |
+
<?php if ( ! empty( $text ) ) : ?>
|
124 |
+
|
125 |
+
|
126 |
+
<p><?php echo wp_kses( html_entity_decode( $text ), $allowed_html ); ?></p>
|
127 |
+
|
128 |
+
|
129 |
+
|
130 |
+
<?php endif; ?>
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
+
<?php
|
134 |
+
} }
|
135 |
+
?>
|
136 |
+
|
137 |
+
</div>
|
138 |
+
</div>
|
139 |
+
</section>
|
140 |
+
<?php
|
141 |
+
}
|
142 |
+
}
|
143 |
+
|
144 |
+
endif;
|
145 |
+
if ( function_exists( 'startkit_service_plu' ) ) {
|
146 |
+
$section_priority = apply_filters( 'startkit_section_priority', 13, 'startkit_service_plu' );
|
147 |
+
add_action( 'startkit_sections', 'startkit_service_plu', absint( $section_priority ) );
|
148 |
+
|
149 |
+
}
|
150 |
+
?>
|
inc/startkit/sections/section-slider.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Slider section for the homepage.
|
4 |
+
*/
|
5 |
+
if ( ! function_exists( 'start_startkit_slider' ) ) :
|
6 |
+
|
7 |
+
function start_startkit_slider() {
|
8 |
+
|
9 |
+
$slide_image = get_theme_mod('slide_image',CLEVERFOX_PLUGIN_URL .'inc/startkit/images/slider/slider.jpg');
|
10 |
+
$slide_title = get_theme_mod('slide_title','Strengths of Successful Businesses');
|
11 |
+
|
12 |
+
$slide_description = get_theme_mod('slide_description','Randomised words which dont look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isnt anembarrassing hidden in the middle of text.');
|
13 |
+
$slide_btn_text = get_theme_mod('slide_btn_text','Explore More');
|
14 |
+
$slide_btn_link = get_theme_mod('slide_btn_link',esc_url('#'));
|
15 |
+
$slider_opacity = get_theme_mod('slider_opacity');
|
16 |
+
$hide_show_slider = get_theme_mod('hide_show_slider','1');
|
17 |
+
|
18 |
+
if($hide_show_slider == '1') {
|
19 |
+
?>
|
20 |
+
<div class="row">
|
21 |
+
<div class="col-md-12">
|
22 |
+
<div class="header-slider">
|
23 |
+
<div class="header-single-slider">
|
24 |
+
<figure>
|
25 |
+
<img src="<?php echo esc_attr( $slide_image ); ?>" alt="">
|
26 |
+
<figcaption>
|
27 |
+
<div class="content" style="background: rgba(35, 48, 73,<?php echo $slider_opacity; ?>);">
|
28 |
+
<div class="container inner-content text-left">
|
29 |
+
<h1><?php echo esc_attr( $slide_title ); ?></h1>
|
30 |
+
<p><?php echo esc_attr( $slide_description ); ?></p>
|
31 |
+
<a href="<?php echo esc_attr( $slide_btn_link ); ?>" class="boxed-btn"><?php echo esc_attr( $slide_btn_text ); ?><i class="icofont icofont-long-arrow-right"></i></a>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
</figcaption>
|
35 |
+
</figure>
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
</div>
|
39 |
+
</div>
|
40 |
+
<?php
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
endif;
|
45 |
+
|
46 |
+
if ( function_exists( 'start_startkit_slider' ) ) {
|
47 |
+
$section_priority = apply_filters( 'startkit_section_priority', 11, 'start_startkit_slider' );
|
48 |
+
add_action( 'startkit_sections', 'start_startkit_slider', absint( $section_priority ) );
|
49 |
+
|
50 |
+
}
|
inc/startkit/sections/section-testimonial.php
ADDED
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Get default values for testimonial section.
|
4 |
+
*
|
5 |
+
* @since 1.1.31
|
6 |
+
* @access public
|
7 |
+
*/
|
8 |
+
if ( ! function_exists( 'startkit_testimonial_plu' ) ) :
|
9 |
+
|
10 |
+
function startkit_testimonial_plu() {
|
11 |
+
function startkit_get_testimonial_default() {
|
12 |
+
return apply_filters(
|
13 |
+
'startkit_get_testimonial_default', json_encode(
|
14 |
+
array(
|
15 |
+
array(
|
16 |
+
'title' => esc_html__( 'Naiomi Watson', 'startkit' ),
|
17 |
+
'subtitle' => esc_html__( 'Lead Interaction Designer', 'startkit' ),
|
18 |
+
'text' => esc_html__( 'Established fact that a reader will be distracted by the readable content of a page when', 'startkit' ),
|
19 |
+
'image_url' => CLEVERFOX_PLUGIN_URL .'inc/startkit/images/testimonial/testimonial01.png',
|
20 |
+
'id' => 'customizer_repeater_testimonial_001',
|
21 |
+
),
|
22 |
+
array(
|
23 |
+
'title' => esc_html__( 'Pins kumara', 'startkit' ),
|
24 |
+
'subtitle' => esc_html__( 'Lead Interaction Designer', 'startkit' ),
|
25 |
+
'text' => esc_html__( 'Established fact that a reader will be distracted by the readable content of a page when', 'startkit' ),
|
26 |
+
'image_url' => CLEVERFOX_PLUGIN_URL .'inc/startkit/images/testimonial/testimonial02.png',
|
27 |
+
'id' => 'customizer_repeater_testimonial_001',
|
28 |
+
|
29 |
+
),
|
30 |
+
array(
|
31 |
+
'title' => esc_html__( 'Mairala Thare', 'startkit' ),
|
32 |
+
'subtitle' => esc_html__( 'Lead Interaction Designer', 'startkit' ),
|
33 |
+
'text' => esc_html__( 'Established fact that a reader will be distracted by the readable content of a page when', 'startkit' ),
|
34 |
+
'image_url' => CLEVERFOX_PLUGIN_URL .'inc/startkit/images/testimonial/testimonial03.png',
|
35 |
+
'id' => 'customizer_repeater_testimonial_001',
|
36 |
+
|
37 |
+
),
|
38 |
+
)
|
39 |
+
|
40 |
+
)
|
41 |
+
);
|
42 |
+
}
|
43 |
+
?>
|
44 |
+
<?php
|
45 |
+
$default_content = null;
|
46 |
+
if ( current_user_can( 'edit_theme_options' ) ) {
|
47 |
+
$default_content = startkit_get_testimonial_default();
|
48 |
+
}
|
49 |
+
$hide_show_testimonial= get_theme_mod('hide_show_testimonial','1');
|
50 |
+
$testimonial_title= get_theme_mod('testimonial_title','Testimonial');
|
51 |
+
$testimonial_description= get_theme_mod('testimonial_description','Publishing packages and web page editors now use Lorem Ipsum as their default model text');
|
52 |
+
$testimonial_contents= get_theme_mod('testimonial_contents',$default_content);
|
53 |
+
?>
|
54 |
+
<section id="testimonial" class="section-padding">
|
55 |
+
<?php if($hide_show_testimonial) {?>
|
56 |
+
<div class="container">
|
57 |
+
<?php if( ($testimonial_title) || ($testimonial_description)!='' ) { ?>
|
58 |
+
<div class="row">
|
59 |
+
<div class="col-md-6 offset-md-3 text-center">
|
60 |
+
<div class="section-header">
|
61 |
+
<?php if ( ! empty( $testimonial_title ) ) { ?>
|
62 |
+
<h2><?php echo esc_attr( $testimonial_title ); ?></h2>
|
63 |
+
<?php } ?>
|
64 |
+
<?php if ( ! empty( $testimonial_description ) ) { ?>
|
65 |
+
<p class="wow fadeInUp" data-wow-delay="0.1s"><?php echo esc_attr( $testimonial_description ); ?></p>
|
66 |
+
<?php } ?>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
<?php } ?>
|
71 |
+
<div class="row tst_contents">
|
72 |
+
<div class="col-md-12">
|
73 |
+
<div class="testimonial-carousel text-center">
|
74 |
+
<?php
|
75 |
+
|
76 |
+
if ( ! empty( $testimonial_contents ) ) {
|
77 |
+
$allowed_html = array(
|
78 |
+
'br' => array(),
|
79 |
+
'em' => array(),
|
80 |
+
'strong' => array(),
|
81 |
+
'b' => array(),
|
82 |
+
'i' => array(),
|
83 |
+
);
|
84 |
+
$testimonial_contents = json_decode( $testimonial_contents );
|
85 |
+
foreach ( $testimonial_contents as $testimonial_item ) {
|
86 |
+
|
87 |
+
$title = ! empty( $testimonial_item->title ) ? apply_filters( 'startkit_translate_single_string', $testimonial_item->title, 'service section' ) : '';
|
88 |
+
$subtitle = ! empty( $testimonial_item->subtitle ) ? apply_filters( 'startkit_translate_single_string', $testimonial_item->subtitle, 'service section' ) : '';
|
89 |
+
$text = ! empty( $testimonial_item->text ) ? apply_filters( 'startkit_translate_single_string', $testimonial_item->text, 'service section' ) : '';
|
90 |
+
$link = ! empty( $testimonial_item->link ) ? apply_filters( 'startkit_translate_single_string', $testimonial_item->link, 'service section' ) : '';
|
91 |
+
$image = ! empty( $testimonial_item->image_url ) ? apply_filters( 'startkit_translate_single_string', $testimonial_item->image_url, 'service section' ) : '';
|
92 |
+
?>
|
93 |
+
|
94 |
+
|
95 |
+
<div class="single-testimonial">
|
96 |
+
<?php if ( ! empty( $image ) ) : ?>
|
97 |
+
<div class="img-rounded"><img src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> /></div>
|
98 |
+
<?php endif; ?>
|
99 |
+
<?php if ( ! empty( $title ) ) : ?>
|
100 |
+
<h4><?php echo esc_attr( $title ); ?></h4>
|
101 |
+
<?php endif; ?>
|
102 |
+
<?php if ( ! empty( $subtitle ) ) : ?>
|
103 |
+
<p class="title"><?php echo esc_attr( $subtitle ); ?></p>
|
104 |
+
<?php endif; ?>
|
105 |
+
<?php if ( ! empty( $text ) ) : ?>
|
106 |
+
<p><?php echo esc_attr( $text ); ?></p>
|
107 |
+
<?php endif; ?>
|
108 |
+
|
109 |
+
</div>
|
110 |
+
<?php } } ?>
|
111 |
+
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
<?php } ?>
|
117 |
+
</section>
|
118 |
+
<?php
|
119 |
+
}
|
120 |
+
|
121 |
+
endif;
|
122 |
+
if ( function_exists( 'startkit_testimonial_plu' ) ) {
|
123 |
+
$section_priority = apply_filters( 'startkit_section_priority', 13, 'startkit_testimonial_plu' );
|
124 |
+
add_action( 'startkit_sections', 'startkit_testimonial_plu', absint( $section_priority ) );
|
125 |
+
|
126 |
+
}
|
127 |
+
?>
|
inc/startkit/typography_style.php
ADDED
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function startkit_own_theme_typography() {
|
3 |
+
$hide_show_typography= get_theme_mod('hide_show_typography','0');
|
4 |
+
if( $hide_show_typography == '1' ):
|
5 |
+
|
6 |
+
$base_font_family = get_theme_mod('base_font_family','Dosis');
|
7 |
+
$secondary_typography_fontfamily = get_theme_mod('secondary_typography_fontfamily','Dosis');
|
8 |
+
$body_typography_font_weight = get_theme_mod('body_typography_font_weight','Bold');
|
9 |
+
$body_font_size = get_theme_mod('body_font_size','15');
|
10 |
+
|
11 |
+
$para_font_weight = get_theme_mod('para_font_weight','normal');
|
12 |
+
$paragraph_font_size = get_theme_mod('paragraph_font_size','15');
|
13 |
+
$paragraph_line_height = get_theme_mod('paragraph_line_height','26');
|
14 |
+
|
15 |
+
$h1_font_weight = get_theme_mod('h1_font_weight','normal');
|
16 |
+
$h1_font_size = get_theme_mod('h1_font_size','40');
|
17 |
+
$h1_line_height = get_theme_mod('h1_line_height','50');
|
18 |
+
$h1_text_transform = get_theme_mod('h1_text_transform','lowercase');
|
19 |
+
|
20 |
+
$h2_font_weight = get_theme_mod('h2_font_weight','normal');
|
21 |
+
$h2_font_size = get_theme_mod('h2_font_size','36');
|
22 |
+
$h2_line_height = get_theme_mod('h2_line_height','46');
|
23 |
+
$h2_text_transform = get_theme_mod('h2_text_transform','lowercase');
|
24 |
+
|
25 |
+
$h3_font_weight = get_theme_mod('h3_font_weight','normal');
|
26 |
+
$h3_font_size = get_theme_mod('h3_font_size','24');
|
27 |
+
$h3_line_height = get_theme_mod('h3_line_height','34');
|
28 |
+
$h3_text_transform = get_theme_mod('h3_text_transform','lowercase');
|
29 |
+
|
30 |
+
$h4_font_weight = get_theme_mod('h4_font_weight','normal');
|
31 |
+
$h4_font_size = get_theme_mod('h4_font_size','18');
|
32 |
+
$h4_line_height = get_theme_mod('h4_line_height','28');
|
33 |
+
$h4_text_transform = get_theme_mod('h4_text_transform','lowercase');
|
34 |
+
|
35 |
+
$h5_font_weight = get_theme_mod('h5_font_weight','normal');
|
36 |
+
$h5_font_size = get_theme_mod('h5_font_size','16');
|
37 |
+
$h5_line_height = get_theme_mod('h5_line_height','15');
|
38 |
+
$h5_text_transform = get_theme_mod('h5_text_transform','lowercase');
|
39 |
+
|
40 |
+
$h6_font_weight = get_theme_mod('h6_font_weight','normal');
|
41 |
+
$h6_font_size = get_theme_mod('h6_font_size','16');
|
42 |
+
$h6_line_height = get_theme_mod('h6_line_height','26');
|
43 |
+
$h6_text_transform = get_theme_mod('h6_text_transform','lowercase');
|
44 |
+
|
45 |
+
$menu_font_family = get_theme_mod('menu_font_family','Roboto');
|
46 |
+
$menu_font_weight = get_theme_mod('menu_font_weight','normal');
|
47 |
+
$menu_font_size = get_theme_mod('menu_font_size','15');
|
48 |
+
|
49 |
+
$section_tit_font_family = get_theme_mod('section_tit_font_family','Dosis');
|
50 |
+
$section_tit_font_weight = get_theme_mod('section_tit_font_weight','normal');
|
51 |
+
$section_tit_font_size = get_theme_mod('section_tit_font_size','15');
|
52 |
+
|
53 |
+
$section_des_font_family = get_theme_mod('section_des_font_family','Roboto');
|
54 |
+
$section_des_font_weight = get_theme_mod('section_des_font_weight','normal');
|
55 |
+
$section_desc_font_size = get_theme_mod('section_desc_font_size','15');
|
56 |
+
|
57 |
+
$widget_font_family = get_theme_mod('widget_font_family','Dosis');
|
58 |
+
$widget_font_weight = get_theme_mod('widget_font_weight','normal');
|
59 |
+
$widget_font_size = get_theme_mod('widget_font_size','16');
|
60 |
+
// echo $body_font_size;
|
61 |
+
// echo $base_font_family;
|
62 |
+
// die;
|
63 |
+
?>
|
64 |
+
<style type="text/css">
|
65 |
+
/*=========================================
|
66 |
+
Primary Color
|
67 |
+
=========================================*/
|
68 |
+
|
69 |
+
body {
|
70 |
+
font-family: <?php echo $base_font_family; ?>;
|
71 |
+
font-weight: 400;
|
72 |
+
line-height: 46px;
|
73 |
+
font-size: <?php echo $body_font_size; ?>px;
|
74 |
+
}
|
75 |
+
|
76 |
+
.main-menu ul li a {
|
77 |
+
padding: 10px 10px;
|
78 |
+
color: #6a7d92;
|
79 |
+
-webkit-transition: .3s;
|
80 |
+
transition: .3s;
|
81 |
+
display: block;
|
82 |
+
font-size: <?php echo $menu_font_size; ?>px;
|
83 |
+
font-weight: 500;
|
84 |
+
font-family: <?php echo $menu_font_family; ?>;
|
85 |
+
font-style: <?php echo $menu_font_weight; ?>;
|
86 |
+
}
|
87 |
+
|
88 |
+
h1 {
|
89 |
+
font-family: <?php echo $base_font_family; ?>;
|
90 |
+
font-weight: 600;
|
91 |
+
line-height: <?php echo $h1_line_height; ?>px;
|
92 |
+
font-size: <?php echo $h1_font_size; ?>px;
|
93 |
+
text-transform: <?php echo $h1_text_transform; ?>;
|
94 |
+
font-style: <?php echo $h1_font_weight; ?>;
|
95 |
+
}
|
96 |
+
|
97 |
+
h1,
|
98 |
+
h2,
|
99 |
+
h3,
|
100 |
+
h4,
|
101 |
+
h5,
|
102 |
+
h6,
|
103 |
+
p {
|
104 |
+
margin: 0;
|
105 |
+
}
|
106 |
+
|
107 |
+
h2 {
|
108 |
+
font-family: 'Poppins', sans-serif;
|
109 |
+
font-size: <?php echo $h2_font_size; ?>px;
|
110 |
+
line-height: <?php echo $h2_line_height; ?>px;
|
111 |
+
font-weight: 500;
|
112 |
+
text-transform: <?php echo $h2_text_transform; ?>;
|
113 |
+
font-style: <?php echo $h2_font_weight; ?>;
|
114 |
+
}
|
115 |
+
|
116 |
+
h3,
|
117 |
+
h4,
|
118 |
+
h5,
|
119 |
+
h6 {
|
120 |
+
font-family: 'Roboto', sans-serif;
|
121 |
+
font-weight: 500;
|
122 |
+
}
|
123 |
+
|
124 |
+
h3 {
|
125 |
+
font-size: <?php echo $h3_font_size; ?>px;
|
126 |
+
line-height: <?php echo $h3_line_height; ?>px;
|
127 |
+
text-transform: <?php echo $h3_text_transform; ?>;
|
128 |
+
font-style: <?php echo $h3_font_weight; ?>;
|
129 |
+
}
|
130 |
+
|
131 |
+
h4 {
|
132 |
+
font-size: <?php echo $h4_font_size; ?>px;
|
133 |
+
line-height: <?php echo $h4_line_height; ?>px;
|
134 |
+
text-transform:<?php echo $h4_text_transform; ?>;
|
135 |
+
font-style: <?php echo $h4_font_weight; ?>;
|
136 |
+
}
|
137 |
+
|
138 |
+
h5 {
|
139 |
+
font-size: <?php echo $h5_font_size; ?>px;
|
140 |
+
line-height: <?php echo $h5_line_height; ?>px;
|
141 |
+
text-transform: <?php echo $h5_text_transform; ?>;
|
142 |
+
font-style: <?php echo $h5_font_weight; ?>;
|
143 |
+
}
|
144 |
+
|
145 |
+
h6 {
|
146 |
+
font-size: <?php echo $h6_font_size; ?>px;
|
147 |
+
line-height: <?php echo $h6_line_height; ?>px;
|
148 |
+
text-transform: <?php echo $h6_text_transform; ?>;
|
149 |
+
font-style: <?php echo $h6_font_weight; ?>;
|
150 |
+
}
|
151 |
+
p {
|
152 |
+
font-family: 'Roboto', sans-serif;
|
153 |
+
font-size: <?php echo $paragraph_font_size; ?>px;
|
154 |
+
line-height: <?php echo $paragraph_line_height; ?>px;
|
155 |
+
font-style: <?php echo $para_font_weight; ?>;
|
156 |
+
font-weight: 400;
|
157 |
+
}
|
158 |
+
|
159 |
+
p.small,
|
160 |
+
a {
|
161 |
+
font-family: 'Roboto', sans-serif;
|
162 |
+
font-size: 14px;
|
163 |
+
line-height: 24px;
|
164 |
+
font-weight: 400;
|
165 |
+
}
|
166 |
+
|
167 |
+
.footer-sidebar .widget-title {
|
168 |
+
font-size: 16px;
|
169 |
+
font-weight: 500;
|
170 |
+
padding: 30px 16px 10px;
|
171 |
+
color: #ffffff;
|
172 |
+
}
|
173 |
+
.section-header h2 {
|
174 |
+
font-family: <?php echo $section_tit_font_family; ?>;
|
175 |
+
font-style: <?php echo $section_tit_font_weight; ?>;
|
176 |
+
font-size:<?php echo $section_tit_font_size; ?>px;
|
177 |
+
}
|
178 |
+
.section-header p {
|
179 |
+
font-family: <?php echo $section_des_font_family; ?>;
|
180 |
+
font-style: <?php echo $section_des_font_weight; ?>;
|
181 |
+
font-size:<?php echo $section_desc_font_size; ?>px;
|
182 |
+
}
|
183 |
+
.footer-sidebar .widget-title {
|
184 |
+
font-size: <?php echo $widget_font_size; ?>px;
|
185 |
+
font-family: <?php echo $widget_font_family; ?>;
|
186 |
+
font-style: <?php echo $widget_font_weight; ?>;
|
187 |
+
font-weight: 500;
|
188 |
+
padding: 30px 16px 10px;
|
189 |
+
color: #ffffff;
|
190 |
+
}
|
191 |
+
</style>
|
192 |
+
|
193 |
+
<?php endif;
|
194 |
+
}
|
195 |
+
add_action('wp_head','startkit_own_theme_typography');
|
196 |
+
?>
|
readme.txt
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Clever Fox ===
|
2 |
+
|
3 |
+
Contributors: nayrathemes
|
4 |
+
Tags: startkit, section
|
5 |
+
Requires at least: 4.0
|
6 |
+
Tested up to: 4.9
|
7 |
+
License: GPLv3 or later
|
8 |
+
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
9 |
+
|
10 |
+
Enhance startkit WordPress Themes functionality.
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
|
14 |
+
The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes.
|
15 |
+
This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
|
16 |
+
|
17 |
+
The Clever Fox plugin features include:
|
18 |
+
|
19 |
+
- Premade Section with Dummy Data
|
20 |
+
- One Click Data Installation
|
21 |
+
- 3+ predefined content sections
|
22 |
+
- Live content editing
|
23 |
+
- and many other features
|
24 |
+
|
25 |
+
== License ==
|
26 |
+
|
27 |
+
Clever Fox WordPress plugin, Copyright (C) 2018 Nayra Themes
|
28 |
+
Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/licenses/gpl-3.0.en.html).
|
29 |
+
|
30 |
+
|
31 |
+
== Changelog ==
|
32 |
+
= 1.0.1 =
|
33 |
+
* Initial Released
|
34 |
+
|
35 |
+
= 0.1 =
|
36 |
+
* Submit Plugin to WP.org
|