__('None', 'space-north')); $wp_nav_menu_list = get_terms('nav_menu', array('hide_empty' => true)); foreach($wp_nav_menu_list as $menuItem) { $nav_menus[$menuItem->slug] = $menuItem->name; } /** * Configuration sample for the Kirki Customizer. */ function navthemes_configuration() { $args = array( 'logo_image' => 'http://navthemes.com/branding/inthemes/logo.png', 'url_path' => get_stylesheet_directory_uri() . '/admin/kirki/' ); return $args; } add_filter( 'kirki/config', 'navthemes_configuration' ); /*------------------------------------------ Config - Deprecated ------------------------------------------*/ /* Kirki::add_config( 'space-north', array( 'capability' => 'edit_theme_options', 'option_type' => 'theme_mod', ) );*/ /*------------------------------------------ NavThemes Branding ------------------------------------------*/ Kirki::add_section( 'navthemes', array( 'title' => __( 'NavThemes Support', 'space-north' ), 'priority' => 1, ) ); Kirki::add_field( 'space-north', array( 'type' => 'custom', 'description' => sprintf(__(' You are using Free version of %s Theme, Check out Paid version, which comes with Premium support and many exciting features in the package.', 'space-north'), $themename), 'settings' => 'navthemes_support', 'section' => 'navthemes', 'default' => sprintf(__('', 'space-north'), "Upgrade to Pro Version for Just $59", $pro_link, $themes_link, $support ), 'priority' => 10, ) ); /*------------------------------------------ Home Page Panel ------------------------------------------*/ Kirki::add_panel( 'homepage', array( 'priority' => 10, 'title' => __( 'Module Manager', 'space-north' ), 'description' => __( 'Manage Front Page Setting from here', 'space-north' ), 'capability' => 'edit_theme_options', ) ); /*---------------------------------- Top Slider Setting *----------------------------------*/ Kirki::add_section( 'topslider_settings', array( 'title' => __( 'Top Slider Settings', 'space-north' ), 'description' => __( 'From Here You Can Manage Top Slider Settings' , 'space-north' ), 'panel' => 'homepage', 'priority' => 160, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_topslider_image', 'label' => __( 'Top slider Background Image', 'space-north' ), 'section' => 'topslider_settings', 'type' => 'image', 'priority' => 10, 'default' => image('banner_bg.jpg'), ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_topslider_interval', 'label' => __( 'Slide Interval', 'space-north' ), 'description' => __("The time in seconds between two slides.", 'space-north'), 'section' => 'topslider_settings', 'type' => 'text', 'priority' => 10, 'default' => '3', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_topslider_pagintion', 'label' => __( 'Slide Pagination', 'space-north' ), 'description' => __("Whether or not the slider's pagination will show.", 'space-north' ), 'section' => 'topslider_settings', 'type' => 'toggle', 'priority' => 10, 'default' => 1, ) ); Kirki::add_field( 'space-north', array( 'type' => 'repeater', 'label' => esc_attr__( 'Top Slider Slides', 'space-north' ), 'description' => __( 'Add Slides here' , 'space-north' ), 'section' => 'topslider_settings', 'priority' => 10, 'settings' => 'topslider_slides', 'fields' => array( 'slide_title' => array( 'type' => 'text', 'label' => esc_attr__( 'Slide Title', 'space-north' ), 'description' => esc_attr__( 'This will be the title for your Slide', 'space-north' ), 'default' => '', ), 'slide_desc' => array( 'type' => 'textarea', 'label' => esc_attr__( 'Slide Description', 'space-north' ), 'description' => esc_attr__( 'This will be the icon for your Slide', 'space-north' ), 'default' => '', ), 'slide_link' => array( 'type' => 'text', 'label' => esc_attr__( 'Slide Link', 'space-north' ), 'description' => esc_attr__( "This will be the link of Slide Read More button, if you will leave it empty, read more button won't show.", 'space-north' ), 'default' => '', ), ) ) ); /*---------------------------------- Welcome Settings *----------------------------------*/ Kirki::add_section( 'welcome_settings', array( 'title' => __( 'Welcome Settings', 'space-north' ), 'description' => __( 'From Here You Can Manage Welcome Module Settings' , 'space-north' ), 'panel' => 'homepage', 'priority' => 160, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_welcome_title', 'label' => __( 'Section Title', 'space-north' ), 'description' => __("The title will show at the top of the section with a bigger font size.", 'space-north'), 'section' => 'welcome_settings', 'type' => 'text', 'priority' => 10, 'default' => __('Welcome', 'space-north'), ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_welcome_text', 'label' => __( 'Section Title', 'space-north' ), 'description' => __("This text will show below the title. HTML is allowed.", 'space-north'), 'section' => 'welcome_settings', 'type' => 'textarea', 'priority' => 10, 'default' => __('Etiam viverra, metus nec feugiat pretium, nisi sapien auctor dui, at iaculis diam quam tincidunt leo. Integer sit amet ligula molestie, ullamcorper turpis gravida, bibendum risus. Sed convallis consectetur sem, id hendrerit massa posuere nec. Praesent imperdiet lobortis ullamcorper. Proin sit amet dignissim diam.', 'space-north'), ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_welcome_link', 'label' => __( 'Read More URL', 'space-north' ), 'description' => __('If you enter a URL, a "Read More" button will appear.', 'space-north'), 'section' => 'welcome_settings', 'type' => 'text', 'priority' => 10, 'default' => __('#pages', 'space-north'), ) ); /*------------------------------------------ Home Slider Section ------------------------------------------*/ Kirki::add_section( 'homepage_pages', array( 'title' => __( 'Pages Settings', 'space-north' ), 'description' => __( 'When creating a new page you will see a meta box whether to show that page on the homepage. Here you can set whether to show a "Pages" link in the menu and you can also change its title.', 'space-north' ), 'panel' => 'homepage', 'priority' => 160, 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. ) ); /*------------------------------------------ Add Fields to Home Page Section ------------------------------------------*/ Kirki::add_field( 'space-north', array( 'settings' => 'showin_menu_pages', 'label' => __( 'Show in Menu', 'space-north' ), 'section' => 'homepage_pages', 'type' => 'toggle', 'priority' => 10, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'pages_menu_title', 'label' => __( 'Pages Menu Text ', 'space-north' ), 'section' => 'homepage_pages', 'type' => 'text', 'priority' => 10, 'default' => 'Pages', ) ); /*1st ---------------------------------------*/ Kirki::add_field( 'space-north', array( 'type' => 'custom', 'settings' => 'homepage_pages_heading1', 'section' => 'homepage_pages', 'default' => '
Pages 1st Block
', 'priority' => 10, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_pages_label1', 'label' => __( 'Pages Label 1 ', 'space-north' ), 'section' => 'homepage_pages', 'type' => 'text', 'priority' => 10, 'default' => 'ABOUT US', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_pages_desc1', 'label' => __( 'Pages Description 1 ', 'space-north' ), 'section' => 'homepage_pages', 'type' => 'textarea', 'priority' => 10, 'default' => '', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_pages_link1', 'label' => __( 'Pages Read More Link 1 ', 'space-north' ), 'description' => __("Read More won't show if its empty.",'space-north'), 'section' => 'homepage_pages', 'type' => 'text', 'priority' => 10, 'default' => '', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_pages_image1', 'label' => __( 'Pages Background Image 1', 'space-north' ), 'section' => 'homepage_pages', 'type' => 'image', 'priority' => 10, ) ); /*2nd-------------------------------------------------------*/ Kirki::add_field( 'space-north', array( 'type' => 'custom', 'settings' => 'homepage_pages_heading2', 'section' => 'homepage_pages', 'default' => sprintf(__('
Need More Elements ?
Upgrade to pro
', 'space-north'),$pro_link), 'priority' => 10, ) ); /*------------------------------------------ Home Page Testimonial Section ------------------------------------------*/ Kirki::add_section( 'homepage_testimonial', array( 'title' => __( 'Testimonials', 'space-north' ), 'description' => __( 'From here you can manage Testimonials', 'space-north' ), 'panel' => 'homepage', 'priority' => 160, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'showin_menu_testimonial', 'label' => __( 'Show in Menu ? ', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'toggle', 'priority' => 10, 'default' => 1, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'testimonials_menu_title', 'label' => __( 'Testimonial Menu Text', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'text', 'priority' => 10, 'default' => 'Testimonials', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_title', 'label' => __( 'Testimonial Title', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'text', 'priority' => 10, 'default' => 'Testimonials', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_text', 'label' => __( 'Testimonial Text', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'textarea', 'priority' => 10, 'default' => 'Pellentesque nulla magna, accumsan sed ante quis, gravida feugiat turpis.', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimonial_image', 'label' => __( 'Testimonial Image', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'image', 'priority' => 10, 'default' => image("testimonial.jpg"), ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_interval', 'label' => __( 'Slide Interval', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'text', 'priority' => 10, 'default' => 5, ) ); Kirki::add_field( 'space-north', array( 'type' => 'custom', 'settings' => 'client_block1', 'section' => 'homepage_testimonial', 'default' => '
Client 1st Block
', 'priority' => 10, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_image1', 'label' => __( 'Client Image 1', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'image', 'priority' => 10, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_client1', 'label' => __( 'Client 1', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'text', 'priority' => 10, 'default' => 'Client 1', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_text1', 'label' => __( 'Testimonial 1', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'textarea', 'priority' => 10, 'default' => 'Pellentesque nulla magna, accumsan sed ante quis, gravida feugiat turpis.', ) ); Kirki::add_field( 'space-north', array( 'type' => 'custom', 'settings' => 'client_block2', 'section' => 'homepage_testimonial', 'default' => '
Client 2nd Block
', 'priority' => 10, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_image2', 'label' => __( 'Client Image 2', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'image', 'priority' => 10, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_client2', 'label' => __( 'Client 2', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'text', 'priority' => 10, 'default' => 'Client 2', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_text2', 'label' => __( 'Testimonial 2', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'textarea', 'priority' => 10, 'default' => 'Pellentesque nulla magna, accumsan sed ante quis, gravida feugiat turpis. ', ) ); Kirki::add_field( 'space-north', array( 'type' => 'custom', 'settings' => 'client_block3', 'section' => 'homepage_testimonial', 'default' => '
Client 3rd Block
', 'priority' => 10, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_image3', 'label' => __( 'Client Image 3', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'image', 'priority' => 10, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_client3', 'label' => __( 'Client 3', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'text', 'priority' => 10, 'default' => 'Client 3', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_testimoial_text3', 'label' => __( 'Testimonial 3', 'space-north' ), 'section' => 'homepage_testimonial', 'type' => 'textarea', 'priority' => 10, 'default' => 'Pellentesque nulla magna, accumsan sed ante quis, gravida feugiat turpis. ', ) ); Kirki::add_field( 'space-north', array( 'type' => 'custom', 'settings' => 'client_block4', 'section' => 'homepage_testimonial', 'default' => sprintf(__('
Need More Elements ?
Upgrade to pro
', 'space-north'), $pro_link), 'priority' => 10, ) ); /*------------------------------------------ Home Page Services ------------------------------------------*/ Kirki::add_section( 'homepage_services', array( 'title' => __( 'Services', 'space-north' ), 'description' => __( 'From here you can manage Services', 'space-north' ), 'panel' => 'homepage', 'priority' => 160, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'showin_menu_services', 'label' => __( 'Show in Menu ? ', 'space-north' ), 'section' => 'homepage_services', 'type' => 'toggle', 'priority' => 10, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'services_menu_title', 'label' => __( 'Services Menu Text', 'space-north' ), 'section' => 'homepage_services', 'type' => 'text', 'priority' => 10, 'default' => 'Services', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_services_title', 'label' => __( 'Services Title', 'space-north' ), 'section' => 'homepage_services', 'type' => 'text', 'priority' => 10, 'default' => 'Services', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'homepage_services_text', 'label' => __( 'Services Text', 'space-north' ), 'section' => 'homepage_services', 'type' => 'textarea', 'priority' => 10, 'default' => 'Pellentesque nulla magna, accumsan sed ante quis, gravida feugiat turpis.', ) ); Kirki::add_field( 'space-north', array( 'type' => 'repeater', 'label' => esc_attr__( 'Services', 'space-north' ), 'description' => __( '

How to add icons?

  1. Go to the Font Awesome website here.
  2. Find the icon you want to use and click on it.
  3. Copy the icon\'s class which is in a rectangular box. For example fa-coffee.
  4. Paste it in the Icon Class field.

' , 'space-north' ), 'section' => 'homepage_services', 'priority' => 10, 'settings' => 'services', 'fields' => array( 'service_title' => array( 'type' => 'text', 'label' => esc_attr__( 'Services Title', 'space-north' ), 'description' => esc_attr__( 'This will be the title for your Services', 'space-north' ), 'default' => '', ), 'service_icon' => array( 'type' => 'text', 'label' => esc_attr__( 'Services Icon Class', 'space-north' ), 'description' => esc_attr__( 'This will be the icon for your Services', 'space-north' ), 'default' => '', ), 'service_text' => array( 'type' => 'textarea', 'label' => esc_attr__( 'Services Text', 'space-north' ), 'description' => esc_attr__( 'This will be the text of Services', 'space-north' ), 'default' => '', ), ) ) ); /*------------------------------------------ Home Page Statistics ------------------------------------------*/ Kirki::add_section( 'homepage_statistics', array( 'title' => __( 'Statistics', 'space-north' ), 'description' => __( 'From here you can manage Statistics', 'space-north' ), 'panel' => 'homepage', 'priority' => 160, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'showin_menu_statistics', 'label' => __( 'Show in Menu ? ', 'space-north' ), 'section' => 'homepage_statistics', 'type' => 'toggle', 'priority' => 10, ) ); Kirki::add_field( 'space-north', array( 'settings' => 'statistics_menu_title', 'label' => __( 'Statistics Menu Text', 'space-north' ), 'section' => 'homepage_statistics', 'type' => 'text', 'priority' => 10, 'default' => 'Statistics', ) ); Kirki::add_field( 'space-north', array( 'type' => 'repeater', 'label' => esc_attr__( 'Services', 'space-north' ), 'description' => __( '

How to add icons?

  1. Go to the Font Awesome website here.
  2. Find the icon you want to use and click on it.
  3. Copy the icon\'s class which is in a rectangular box. For example fa-coffee.
  4. Paste it in the Icon Class field.

' , 'space-north' ), 'section' => 'homepage_statistics', 'priority' => 10, 'settings' => 'statistics', 'fields' => array( 'stats_title' => array( 'type' => 'text', 'label' => esc_attr__( 'Statistics Title', 'space-north' ), 'description' => esc_attr__( 'This will be the title for your Statistics', 'space-north' ), 'default' => '', ), 'stats_icon' => array( 'type' => 'text', 'label' => esc_attr__( 'Statistics Icon Class', 'space-north' ), 'description' => esc_attr__( 'This will be the icon for your Statistics', 'space-north' ), 'default' => '', ), 'stats_no' => array( 'type' => 'text', 'label' => esc_attr__( 'Statistics Number', 'space-north' ), 'description' => esc_attr__( 'This will be the Number of Statistics', 'space-north' ), 'default' => '', ), ) ) ); /*------------------------------------------ General Settings ------------------------------------------*/ Kirki::add_panel( 'general_settings', array( 'priority' => 2, 'title' => __( 'General Settings', 'space-north' ), 'description' => __( 'Manage General Setting from here', 'space-north' ), ) ); /*------------------------------------------ General Section ------------------------------------------*/ Kirki::add_section( 'general_settings', array( 'title' => __( 'General Settings', 'space-north' ), 'description' => __( 'From Here You Can Manage Some General Settings' , 'space-north' ), 'panel' => 'general_settings', 'priority' => 160, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'pre_loader_switch', 'label' => __( 'Pre Loader', 'space-north' ), 'section' => 'general_settings', 'type' => 'toggle', 'priority' => 10, 'default' => 1, ) ); /*Logo----------------------------*/ Kirki::add_section( 'logo_settings', array( 'title' => __( 'Logo Settings', 'space-north' ), 'description' => __( 'From Here You Can Manage Manage Settings' , 'space-north' ), 'panel' => 'general_settings', 'priority' => 160, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'logo', 'label' => __( 'Logo', 'space-north' ), 'section' => 'logo_settings', 'type' => 'image', 'priority' => 10, 'default' => image('logo-white.png'), ) ); /*---------------------------------- Menu Settings *----------------------------------*/ Kirki::add_section( 'menu_settings', array( 'title' => __( 'Menu Settings', 'space-north' ), 'description' => __( 'From Here You Can Manage Menu Settings' , 'space-north' ), 'panel' => 'general_settings', 'priority' => 160, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'nav_menu_name', 'label' => __( 'Choose a Menu', 'space-north' ), 'section' => 'menu_settings', 'type' => 'select', 'priority' => 10, 'choices' => $nav_menus ) ); /* Social Settings --------------------------*/ Kirki::add_section( 'social_settings', array( 'title' => __( 'Social Settings', 'space-north' ), 'description' => __( 'From Here You Can Manage Some Social Settings' , 'space-north' ), 'panel' => 'general_settings', 'priority' => 160, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'social_facebook', 'label' => __( 'Facebook', 'space-north' ), 'section' => 'social_settings', 'type' => 'url', 'priority' => 10, 'default' => '#', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'social_twitter', 'label' => __( 'Twitter', 'space-north' ), 'section' => 'social_settings', 'type' => 'url', 'priority' => 10, 'default' => '#', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'social_pinterest', 'label' => __( 'Pinterest', 'space-north' ), 'section' => 'social_settings', 'type' => 'url', 'priority' => 10, 'default' => '#', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'social_tumblr', 'label' => __( 'Tumblr', 'space-north' ), 'section' => 'social_settings', 'type' => 'url', 'priority' => 10, 'default' => '#', ) ); /*custom -------------------------------------------------------*/ Kirki::add_field( 'space-north', array( 'type' => 'custom', 'settings' => 'social_youtube', 'section' => 'social_settings', 'default' => sprintf(__('
Need More Elements ?
Upgrade to pro
', 'space-north'),$pro_link), 'priority' => 10, ) ); /*---------------------------------- Footer Setting *----------------------------------*/ Kirki::add_section( 'footer_settings', array( 'title' => __( 'Footer Settings', 'space-north' ), 'description' => __( 'From Here You Can Manage Footer Settings' , 'space-north' ), 'panel' => 'general_settings', 'priority' => 160, 'capability' => 'edit_theme_options', ) ); Kirki::add_field( 'space-north', array( 'settings' => 'footer_copyright', 'label' => __( 'Footer Copyright', 'space-north' ), 'section' => 'footer_settings', 'type' => 'textarea', 'default' => __('Theme by NavThemes.', 'space-north'), 'priority' => 10, ) ); /*------------------------------------------ Customizer CSS ------------------------------------------*/ function customizer_css() { // Loads our main stylesheet. wp_enqueue_style( 'customizer-css', get_template_directory_uri().'/customizer.css' ); } add_action( 'customize_controls_print_styles', 'customizer_css'); /*----------------------------------------------------------------------------------------------------*/ // Add on //include("add_on.php");