﻿£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
<?php
/**
 * Don't load directly.
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

$enable_button_label = esc_html__( 'Enable Time Zone support', 'the-events-calendar' );
$args                = [
	'timezone-update' => '1',
	'tab'             => 'display-date-time-tab',
];
$enable_button_url   = esc_url( wp_nonce_url( add_query_arg( $args, tribe( 'tec.main' )->settings()->get_url() ), 'timezone-settings' ) );
$enable_button_text  = esc_html__( 'Update Time Zone Data', 'the-events-calendar' );
$enable_button_help  = sprintf(
	/* Translators: %s - URL pointing to the General Settings page. */
	__( 'Click this button to update your database and take advantage of additional time zone capabilities. Please <a href="%s" target="_blank">configure WordPress</a> to use the correct time zone before clicking this button!', 'the-events-calendar' ),
	esc_url( get_admin_url( null, 'options-general.php' ) )
);

$enable_button_html = <<<HTML
	<fieldset id="tribe-field_enable_timezone_support" class="tribe-field tribe-field-html">
		<legend class="tribe-field-label">$enable_button_label</legend>
		<div class="tribe-field-wrap">
			<a href="$enable_button_url" class="button-secondary">$enable_button_text</a>
			<p class="tooltip description">
				$enable_button_help
			</p>
		</div>
	</fieldset>
	<div class="clear"></div>
HTML;

return [
	'tribe_events_enable_timezones'    => [
		'type' => 'html',
		'html' => $enable_button_html,
	],
	'tribe_events_timezones_show_zone' => [
		'type'            => 'checkbox_bool',
		'label'           => esc_html__( 'Show time zone', 'the-events-calendar' ),
		'tooltip'         => esc_html__(
			'Appends the time zone to the end of event scheduling information &ndash; this can be useful when you have events in numerous different time zones.',
			'the-events-calendar'
		),
		'default'         => false,
		'validation_type' => 'boolean',
	],
	'tribe_events_timezone_mode'       => [
		'type'            => 'dropdown',
		'label'           => esc_html__( 'Time zone mode', 'the-events-calendar' ),
		'validation_type' => 'options',
		'size'            => 'large',
		'options'         => [
			'event' => esc_html__( 'Use manual time zones for each event', 'the-events-calendar' ),
			'site'  => esc_html__( 'Use the site-wide time zone everywhere', 'the-events-calendar' ),
		],
	],
];
