| Server IP : 104.26.4.103 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/rimskannur/public_html/wp-content/themes/skole/vamtam/customizer/ |
Upload File : |
<?php
define( 'VAMTAM_CUSTOMIZER_LIB_PATH', plugin_dir_path( __FILE__ ) . 'lib/' );
define( 'VAMTAM_CUSTOMIZER_LIB_URL', VAMTAM_URI . 'customizer/lib/' );
$opt_name = apply_filters( 'vamtam_theme/opt_name', 'vamtam_theme' );
include VAMTAM_CUSTOMIZER_LIB_PATH . 'class-vamtam-customizer.php';
$GLOBALS['vamtam_theme_customizer'] = new Vamtam_Customizer( array(
'opt_name' => $opt_name,
) );
require_once VAMTAM_DIR . 'customizer/compiler.php';
require_once VAMTAM_DIR . 'customizer/option-filters.php';
// load the option definitions
$sections = array(
'core',
'top-level',
);
foreach ( $sections as $section ) {
include VAMTAM_OPTIONS . "$section/section.php";
}
function vamtam_custom_css_options() {
// extract compiler options from option definitions
$type_map = array();
$options = $GLOBALS['vamtam_theme_customizer']->get_fields_by_id();
foreach ( $options as $opt ) {
if ( isset( $opt['compiler'] ) && $opt['compiler'] ) {
$type_map[ 'vamtam_theme[' . $opt['id'] . ']' ] = $opt['type'];
}
}
return $type_map;
}
function vamtam_option_types_used() {
$options = $GLOBALS['vamtam_theme_customizer']->get_fields_by_id();
$types = array();
foreach ( $options as $opt ) {
$types[] = $opt['type'];
}
sort( $types );
return array_unique( $types );
}
function vamtam_rename_customize_section( WP_Customize_Manager $wp_customize ) {
$wp_customize->get_section( 'static_front_page' )->title = esc_html__( 'Page Settings', 'skole' );
}
add_action( 'customize_register', 'vamtam_rename_customize_section', 20 );