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-events/inc/class-ovaev-settings.php
<?php

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

class OVAEV_Settings {

	public static function ovaev_show_sidebar_single(){
		$ops = get_option('ovaev_options');
		return isset( $ops['ovaev_show_sidebar_single'] ) ? $ops['ovaev_show_sidebar_single'] : 'yes';
	}

	public static function single_event_header(){
		$ops = get_option('ovaev_options');
		return isset( $ops['single_event_header'] ) ? $ops['single_event_header'] : 'default';
	}

	public static function single_event_footer(){
		$ops = get_option('ovaev_options');
		return isset( $ops['single_event_footer'] ) ? $ops['single_event_footer'] : 'default';
	}

	public static function ovaev_show_title_single(){
		$ops = get_option('ovaev_options');
		return isset( $ops['ovaev_show_title_single'] ) ? $ops['ovaev_show_title_single'] : 'yes';
	}

	public static function ovaev_show_export_calendar_single(){
		$ops = get_option('ovaev_options');
		return isset( $ops['ovaev_show_export_calendar_single'] ) ? $ops['ovaev_show_export_calendar_single'] : 'yes';
	}

	public static function ovaev_get_template_single(){
		$ops = get_option('ovaev_options');
		return isset( $ops['ovaev_get_template_single'] ) ? $ops['ovaev_get_template_single'] : 'default';
	}

	public static function google_key_map(){
		$ops = get_option('ovaev_options');
		return isset( $ops['google_key_map'] ) ? $ops['google_key_map'] : '';
	}

	public static function event_map_zoom(){
		$ops = get_option('ovaev_options');
		return isset( $ops['event_map_zoom'] ) ? $ops['event_map_zoom'] : '';
	}

	public static function ovaev_show_past(){
		$ops = get_option('ovaev_options');
		return isset( $ops['ovaev_show_past'] ) ? $ops['ovaev_show_past'] : 'yes';
	}

	public static function archive_event_posts_per_page() {
		$ops = get_option( 'ovaev_options' );
		return isset( $ops['archive_event_posts_per_page'] ) ? $ops['archive_event_posts_per_page'] : 6;
	}

	public static function archive_event_orderby(){
		$ops = get_option('ovaev_options');
		return isset( $ops['archive_event_orderby'] ) ? $ops['archive_event_orderby'] : 'ID';
	}

	public static function archive_event_order(){
		$ops = get_option('ovaev_options');
		return isset( $ops['archive_event_order'] ) ? $ops['archive_event_order'] : 'DESC';
	}


	public static function archive_event_thumbnail(){
		$ops = get_option('ovaev_options');
		return isset( $ops['archive_event_thumbnail'] ) ? $ops['archive_event_thumbnail'] : '600x400';
	}
	

	public static function archive_event_type(){
		$ops = get_option('ovaev_options');
		return isset( $ops['archive_event_type'] ) ? $ops['archive_event_type'] : 'type1';
	}

	public static function archive_event_header(){
		$ops = get_option('ovaev_options');
		return isset( $ops['archive_event_header'] ) ? $ops['archive_event_header'] : 'default';
	}

	public static function archive_event_footer(){
		$ops = get_option('ovaev_options');
		return isset( $ops['archive_event_footer'] ) ? $ops['archive_event_footer'] : 'default';
	}

	public static function archive_event_col(){
		$ops = get_option('ovaev_options');
		return isset( $ops['archive_event_col'] ) ? $ops['archive_event_col'] : 'col3';
	}

	public static function ovaev_show_sidebar(){
		$ops = get_option('ovaev_options');
		return isset( $ops['ovaev_show_sidebar'] ) ? $ops['ovaev_show_sidebar'] : 'no';
	}

	public static function ovaev_show_search(){
		$ops = get_option('ovaev_options');
		return isset( $ops['ovaev_show_search'] ) ? $ops['ovaev_show_search'] : 'yes';
	}

	public static function archive_event_format_date(){
		$ops = get_option('ovaev_options');
		return isset( $ops['archive_event_format_date'] ) ? $ops['archive_event_format_date'] : 'd-m-Y';
	}

	public static function archive_format_date_lang(){
		$ops = get_option('ovaev_options');
		return isset( $ops['archive_format_date_lang'] ) ? $ops['archive_format_date_lang'] : 'en';
	}

	public static function archive_event_format_time(){
		$ops = get_option('ovaev_options');
		return isset( $ops['archive_event_format_time'] ) ? $ops['archive_event_format_time'] : 'H:i';
	}

}

new OVAEV_Settings();