| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mimradmin/.trash/wp-content.1/themes/wp-buka/includes/customizer/ |
Upload File : |
<?php
// Prevent Direct Access
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
new \Kirki\Section( 'pages_section', [
'title' => __('Theme Other Pages Settings', 'wp-buka'),
'priority' => 20,
] );
// Show Pages Header
new \Kirki\Field\Checkbox( [
'settings' => 'show_pages_header',
'label' => __('Show Title Section', 'wp-buka'),
'section' => 'pages_section',
'default' => true,
] );
// Background Color
new \Kirki\Field\Color( [
'settings' => 'pages_header_background_color',
'label' => __('Title Section Background Color', 'wp-buka'),
'section' => 'pages_section',
'default' => '#1c1c1c',
] );
// Background Image
new \Kirki\Field\Image( [
'settings' => 'pages_header_background_image',
'label' => __('Title Section Background Image', 'wp-buka'),
'section' => 'pages_section',
'choices' =>[
'save_as' => 'id',
],
] );
// Background Parallax
new \Kirki\Field\Checkbox( [
'settings' => 'pages_header_background_parallax',
'label' => __('Parallax Effect For Background Image', 'wp-buka'),
'section' => 'pages_section',
] );
// Show Overlay
new \Kirki\Field\Checkbox( [
'settings' => 'pages_header_background_overlay',
'label' => __('Show Title Section Background Overlay', 'wp-buka'),
'section' => 'pages_section',
] );
// Overlay Color
new \Kirki\Field\Select( [
'settings' => 'pages_header_background_overlay_color',
'label' => __('Title Section Background Overlay Color', 'wp-buka'),
'section' => 'pages_section',
'default' => 'dark',
'choices' => [
'dark' => _x('Dark', 'Dark Color', 'wp-buka'),
'light' => _x('Light', 'Light Color', 'wp-buka'),
],
] );
// Overlay Opacity
new \Kirki\Field\Number( [
'settings' => 'pages_header_background_overlay_opacity',
'label' => __('Title Section Background Overlay Opacity', 'wp-buka'),
'section' => 'pages_section',
'default' => 5,
'choices' => [
'min' => 0,
'max' => 10,
'step' => 1,
],
] );
// Text Color
new \Kirki\Field\Select( [
'settings' => 'pages_header_text_color',
'label' => __('Title Section Text Color', 'wp-buka'),
'section' => 'pages_section',
'default' => 'light',
'choices' => [
'light' => _x('Light', 'Light Color', 'wp-buka'),
'dark' => _x('Dark', 'Dark Color', 'wp-buka'),
],
] );
// Use Theme Color
new \Kirki\Field\Checkbox( [
'settings' => 'pages_header_use_theme_color',
'label' => __('Use Theme Color For Title Section Text Color', 'wp-buka'),
'section' => 'pages_section',
] );
// Menu Items Color
new \Kirki\Field\Select( [
'settings' => 'menu_color_in_pages',
'label' => __('Menu Items Color When Not Scrolled', 'wp-buka'),
'section' => 'pages_section',
'default' => 'light',
'choices' => [
'light' => _x('Light', 'Light Color', 'wp-buka'),
'dark' => _x('Dark', 'Dark Color', 'wp-buka'),
],
] );
// Menu Items Color Description
new \Kirki\Field\Custom( [
'settings' => 'menu_color_in_pages_description',
'default' => __('Menu items color on home page can be set from "Theme Home Page Settings" section.', 'wp-buka'),
'section' => 'pages_section',
] );