HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/refonte2023/wordpress/wp-content/plugins/ova-career/inc/class-customize.php
<?php

if (!defined( 'ABSPATH' )) {
	exit;
}
if (!class_exists( 'Ova_Career_Customize' )){

	class Ova_Career_Customize {

		public function __construct() {
			add_action( 'customize_register', array( $this, 'ova_career_customize_register' ) );
		}

		public function ova_career_customize_register($wp_customize) {

			$this->ova_career_init( $wp_customize );

			do_action( 'ova_career_customize_register', $wp_customize );
		}


		public function ova_career_init( $wp_customize ){

			$wp_customize->add_section( 'ova_career_section' , array(
				'title'      => esc_html__( 'Career', 'ova-career' ),
				'priority'   => 20,
			) );


			$wp_customize->add_setting( 'ova_career_total_record', array(
				'type' => 'theme_mod', // or 'option'
				'capability' => 'edit_theme_options',
				'theme_supports' => '', // Rarely needed.
				'default' => 8,
				'transport' => 'refresh', // or postMessage
				'sanitize_callback' => 'sanitize_text_field' // Get function name  
			) );

			$wp_customize->add_control('ova_career_total_record', array(
				'label' => esc_html__('Number of posts per page','ova-career'),
				'section' => 'ova_career_section',
				'settings' => 'ova_career_total_record',
				'type' =>'number'
			));

			$wp_customize->add_setting( 'ova_career_layout', array(
				'type' => 'theme_mod', // or 'option'
				'capability' => 'edit_theme_options',
				'theme_supports' => '', // Rarely needed.
				'default' => 'two_column',
				'transport' => 'refresh', // or postMessage
				'sanitize_callback' => 'sanitize_text_field' // Get function name 
			) );

			$wp_customize->add_control('ova_career_layout', array(
				'label' => esc_html__('Layout','ova-career'),
				'section' => 'ova_career_section',
				'settings' => 'ova_career_layout',
				'type' =>'select',
				'choices' => array(
					'one_column'   => esc_html__( 'Single Column', 'ova-career' ),
					'two_column'   => esc_html__( '2 Column', 'ova-career' ),
				)
			));

			$wp_customize->add_setting( 'ova_career_comments', array(
				  'type' => 'theme_mod', // or 'option'
				  'capability' => 'edit_theme_options',
				  'theme_supports' => '', // Rarely needed.
				  'default' => 'yes',
				  'transport' => 'refresh', // or postMessage
				  'sanitize_callback' => 'sanitize_text_field' // Get function name 
				  
				) );
			$wp_customize->add_control('ova_career_comments', array(
				'label' => esc_html__('Show Comments','ova-career'),
				'section' => 'ova_career_section',
				'settings' => 'ova_career_comments',
				'type' =>'select',
				'choices' => array(
					'yes'	=> __( 'Yes', 'ova-career' ),
					'no'	=> __( 'No', 'ova-career' ),
				)
			));

			$wp_customize->add_setting( 'header_archive_career', array(
				'type' => 'theme_mod', // or 'option'
				'capability' => 'edit_theme_options',
				'theme_supports' => '', // Rarely needed.
				'default' => 'default',
				'transport' => 'refresh', // or postMessage
				'sanitize_callback' => 'sanitize_text_field' // Get function name 
			) );

			$wp_customize->add_control('header_archive_career', array(
				'label' => esc_html__('Header Archive','ova-career'),
				'section' => 'ova_career_section',
				'settings' => 'header_archive_career',
				'type' =>'select',
				'choices' => apply_filters('gimont_list_header', '')
			));

			$wp_customize->add_setting( 'archive_footer_career', array(
			  'type' => 'theme_mod', // or 'option'
			  'capability' => 'edit_theme_options',
			  'theme_supports' => '', // Rarely needed.
			  'default' => 'default',
			  'transport' => 'refresh', // or postMessage
			  'sanitize_callback' => 'sanitize_text_field' // Get function name  
			) );

			$wp_customize->add_control('archive_footer_career', array(
				'label' => esc_html__('Footer Archive','ova-career'),
				'section' => 'ova_career_section',
				'settings' => 'archive_footer_career',
				'type' =>'select',
				'choices' => apply_filters('gimont_list_footer', '')
			));

			$wp_customize->add_setting( 'header_single_career', array(
			  	'type' => 'theme_mod', // or 'option'
			  	'capability' => 'edit_theme_options',
			  	'theme_supports' => '', // Rarely needed.
			  	'default' => 'default',
			  	'transport' => 'refresh', // or postMessage
			  	'sanitize_callback' => 'sanitize_text_field' // Get function name   
			) );

			$wp_customize->add_control('header_single_career', array(
				'label' => esc_html__('Header Single','ova-career'),
				'section' => 'ova_career_section',
				'settings' => 'header_single_career',
				'type' =>'select',
				'choices' => apply_filters('gimont_list_header', '')
			));

			$wp_customize->add_setting( 'single_footer_career', array(
			  'type' => 'theme_mod', // or 'option'
			  'capability' => 'edit_theme_options',
			  'theme_supports' => '', // Rarely needed.
			  'default' => 'default',
			  'transport' => 'refresh', // or postMessage
			  'sanitize_callback' => 'sanitize_text_field' // Get function name 
			) );

			$wp_customize->add_control('single_footer_career', array( 
				'label' => esc_html__('Footer Single','ova-career'),
				'section' => 'ova_career_section',
				'settings' => 'single_footer_career',
				'type' =>'select',
				'choices' => apply_filters('gimont_list_footer', '')
			));

			$wp_customize->add_setting( 'ova_career_zoom_map_default', array(
				'type' => 'theme_mod', // or 'option'
				'capability' => 'edit_theme_options',
				'theme_supports' => '', // Rarely needed.
				'default' => 17,
				'transport' => 'refresh', // or postMessage
				'sanitize_callback' => 'sanitize_text_field' // Get function name  
			) );

			$wp_customize->add_control('ova_career_zoom_map_default', array(
				'label' => esc_html__('Zoom Map','ova-career'),
				'section' => 'ova_career_section',
				'settings' => 'ova_career_zoom_map_default',
				'type' =>'number'
			));

			$wp_customize->add_setting( 'ova_career_google_key_map', array(
				'type' => 'theme_mod', // or 'option'
				'capability' => 'edit_theme_options',
				'theme_supports' => '', // Rarely needed.
				'default' => '',
				'transport' => 'refresh', // or postMessage
				'sanitize_callback' => 'sanitize_text_field' // Get function name  
			) );

			$wp_customize->add_control('ova_career_google_key_map', array(
				'label' => esc_html__('Google Key Map','ova-career'),
				'section' => 'ova_career_section',
				'settings' => 'ova_career_google_key_map',
				'type' =>'text',
				'description' => esc_html__('You can get here: https://developers.google.com/maps/documentation/javascript/get-api-key','ova-career'),
			));

		}

	}

}

new Ova_Career_Customize();