From c133b2487402d0c73d8efb6c05117b8078549de8 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 10 Feb 2022 20:57:38 +0100 Subject: [PATCH] Remove unused "render" helper file from the project as it is no longer used (use the components instead). --- application/config/autoload.php | 1 - application/helpers/render_helper.php | 69 --------------------------- 2 files changed, 70 deletions(-) delete mode 100644 application/helpers/render_helper.php diff --git a/application/config/autoload.php b/application/config/autoload.php index 8a70889a..9090bc2f 100644 --- a/application/config/autoload.php +++ b/application/config/autoload.php @@ -78,7 +78,6 @@ $autoload['helper'] = [ 'password', 'path', 'permission', - 'render', 'routes', 'session', 'setting', diff --git a/application/helpers/render_helper.php b/application/helpers/render_helper.php deleted file mode 100644 index 6f04fcbd..00000000 --- a/application/helpers/render_helper.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @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); -}