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/f/r/e/frenchy/refonte2023/wordpress/wp-content/plugins/ova-team/inc/class-customize.php
<?php

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

	class Ova_Tema_Customize {

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

		public function ova_team_customize_register($wp_customize) {

			$this->ova_team_init( $wp_customize );

			do_action( 'ova_team_customize_register', $wp_customize );
		}


		/* Team */
		public function ova_team_init( $wp_customize ){

			$wp_customize->add_panel( 'ova_team_panel', array(
			  'title' => __( 'Team' ),
			  'priority' => 5,
			) );


			$wp_customize->add_section( 'ova_team_archive_section' , array(
				'title'      => esc_html__( 'Archive', 'ova-team' ),
				'priority'   => 1,
				'panel' => 'ova_team_panel',
			) );

			$wp_customize->add_section( 'ova_team_single_section' , array(
				'title'      => esc_html__( 'Single', 'ova-doc' ),
				'priority'   => 2,
				'panel' => 'ova_team_panel',
			) );


			$wp_customize->add_setting( 'ova_team_total_record', array(
				  'type' => 'theme_mod', // or 'option'
				  'capability' => 'edit_theme_options',
				  'theme_supports' => '', // Rarely needed.
				  'default' => '6',
				  'transport' => 'refresh', // or postMessage
				  'sanitize_callback' => 'sanitize_text_field' // Get function name 
				  
				) );
			$wp_customize->add_control('ova_team_total_record', array(
				'label' => esc_html__('Number of posts per page','ova-team'),
				'section' => 'ova_team_archive_section',
				'settings' => 'ova_team_total_record',
				'type' =>'number'
			));

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

			$wp_customize->add_control('ova_team_orderby', array(
				'label' 	=> esc_html__('Orderby','ova-team'),
				'section' 	=> 'ova_team_archive_section',
				'settings' 	=> 'ova_team_orderby',
				'type' 		=>'select',
				'choices' 	=> array(
					'ova_team_met_order_team' 	=> esc_html__( 'Sort Order', 'ova-por' ),
					'ID' 			=> esc_html__( 'ID', 'ova-por' ),
					'title' 		=> esc_html__( 'Title', 'ova-por' ),
					'date' 			=> esc_html__( 'Date', 'ova-por' ),
					'rand' 			=> esc_html__( 'Random', 'ova-por' ),
				)
			));

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

			$wp_customize->add_control('ova_team_order', array(
				'label' 	=> esc_html__('Order','ova-team'),
				'section' 	=> 'ova_team_archive_section',
				'settings' 	=> 'ova_team_order',
				'type' 		=>'select',
				'choices' 	=> array(
					'ASC' 	=> esc_html__( 'Ascending', 'ova-por' ),
					'DESC' 	=> esc_html__( 'Descending', 'ova-por' ),
				)
			));

			$wp_customize->add_setting( 'ova_team_layout', array(
				  'type' => 'theme_mod', // or 'option'
				  'capability' => 'edit_theme_options',
				  'theme_supports' => '', // Rarely needed.
				  'default' => 'three_column',
				  'transport' => 'refresh', // or postMessage
				  'sanitize_callback' => 'sanitize_text_field' // Get function name 
				  
				) );
			$wp_customize->add_control('ova_team_layout', array(
				'label' => esc_html__('Layout','ova-team'),
				'section' => 'ova_team_archive_section',
				'settings' => 'ova_team_layout',
				'type' =>'select',
				'choices' => array(
					'two_column'      => __( '2 column', 'ova-team' ),
					'three_column' => __( '3 column', 'ova-team' ),
					'four_column'      => __( '4 column', 'ova-team' ),
				)
			));

			$wp_customize->add_setting( 'header_archive_team', 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_team', array(
				'label' => esc_html__('Header','ova-team'),
				'section' => 'ova_team_archive_section',
				'settings' => 'header_archive_team',
				'type' =>'select',
				'choices' => apply_filters('gimont_list_header', '')
			));


			$wp_customize->add_setting( 'archive_footer_team', 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_team', array(
				'label' => esc_html__('Footer','ova-dep'),
				'section' => 'ova_team_archive_section',
				'settings' => 'archive_footer_team',
				'type' =>'select',
				'choices' => apply_filters('gimont_list_footer', '')
			));


			$wp_customize->add_setting( 'header_single_team', 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_team', array(
				'label' => esc_html__('Header Single','ova-team'),
				'section' => 'ova_team_single_section',
				'settings' => 'header_single_team',
				'type' =>'select',
				'choices' => apply_filters('gimont_list_header', '')
			));


			$wp_customize->add_setting( 'single_footer_team', 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_team', array(
				'label' => esc_html__('Footer Single','ova-dep'),
				'section' => 'ova_team_single_section',
				'settings' => 'single_footer_team',
				'type' =>'select',
				'choices' => apply_filters('gimont_list_footer', '')
			));

		}

	}

}

new Ova_Tema_Customize();