mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
Remove unused "render" helper file from the project as it is no longer used (use the components instead).
This commit is contained in:
parent
3d71f019e2
commit
c133b24874
2 changed files with 0 additions and 70 deletions
|
@ -78,7 +78,6 @@ $autoload['helper'] = [
|
||||||
'password',
|
'password',
|
||||||
'path',
|
'path',
|
||||||
'permission',
|
'permission',
|
||||||
'render',
|
|
||||||
'routes',
|
'routes',
|
||||||
'session',
|
'session',
|
||||||
'setting',
|
'setting',
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* Easy!Appointments - Online Appointment Scheduler
|
|
||||||
*
|
|
||||||
* @package EasyAppointments
|
|
||||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
|
||||||
* @copyright Copyright (c) Alex Tselegidis
|
|
||||||
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
||||||
* @link https://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 string
|
|
||||||
*/
|
|
||||||
function render_timezone_dropdown(string $attributes = ''): string
|
|
||||||
{
|
|
||||||
$CI = get_instance();
|
|
||||||
|
|
||||||
$CI->load->library('timezones');
|
|
||||||
|
|
||||||
$timezones = $CI->timezones->to_grouped_array();
|
|
||||||
|
|
||||||
return $CI->load->view('components/timezone_dropdown', [
|
|
||||||
'attributes' => $attributes,
|
|
||||||
'timezones' => $timezones
|
|
||||||
], TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Render the language script tag.
|
|
||||||
*
|
|
||||||
* @param string $attributes HTML element attributes of the script element.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
function render_language_script(string $attributes = ''): string
|
|
||||||
{
|
|
||||||
$CI = get_instance();
|
|
||||||
|
|
||||||
html_vars([
|
|
||||||
'attributes' => $attributes,
|
|
||||||
]);
|
|
||||||
|
|
||||||
return $CI->load->view('components/language_script', html_vars(), TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Render the global variables script tag.
|
|
||||||
*
|
|
||||||
* @param string $attributes HTML element attributes of the script element.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
function render_global_variables_script(string $attributes = ''): string
|
|
||||||
{
|
|
||||||
$CI = get_instance();
|
|
||||||
|
|
||||||
html_vars([
|
|
||||||
'attributes' => $attributes,
|
|
||||||
]);
|
|
||||||
|
|
||||||
return $CI->load->view('components/global_variables_script', html_vars(), TRUE);
|
|
||||||
}
|
|
Loading…
Reference in a new issue