easyappointments/application/helpers/render_helper.php

34 lines
1 KiB
PHP
Raw Normal View History

<?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 = '')
{
$framework = get_instance();
$framework->load->model('timezones_model');
$timezones = $framework->timezones_model->to_grouped_array();
ob_start();
require __DIR__ . '/../views/partial/timezone_dropdown.php';
return ob_get_clean();
}