mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 22:52:35 +03:00
32 lines
1 KiB
PHP
32 lines
1 KiB
PHP
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
*
|
|
* @package EasyAppointments
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
|
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
|
|
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
* @link http://easyappointments.org
|
|
* @since v1.4.0
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
/**
|
|
* Render the HTML output of a timezone dropdown element.
|
|
*
|
|
* @param string $attributes HTML element attributes of the dropdown.
|
|
* @return false|string
|
|
*/
|
|
function render_timezone_dropdown($attributes = '')
|
|
{
|
|
$CI = get_instance();
|
|
|
|
$CI->load->library('timezones');
|
|
|
|
$timezones = $CI->timezones->to_grouped_array();
|
|
|
|
return $CI->load->view('partials/timezone_dropdown', [
|
|
'timezones' => $timezones,
|
|
'attributes' => $attributes
|
|
], TRUE);
|
|
}
|