From 07f29a8f54f3578d18986c2bbb8fdba8873c82bf Mon Sep 17 00:00:00 2001 From: Eike Foken Date: Tue, 20 Sep 2011 01:29:13 +0200 Subject: [PATCH] Delete unused html helper extension --- application/helpers/MY_html_helper.php | 58 -------------------------- 1 file changed, 58 deletions(-) delete mode 100644 application/helpers/MY_html_helper.php diff --git a/application/helpers/MY_html_helper.php b/application/helpers/MY_html_helper.php deleted file mode 100644 index 3684b27..0000000 --- a/application/helpers/MY_html_helper.php +++ /dev/null @@ -1,58 +0,0 @@ - - */ - -/** - * Generates a script inclusion of a JavaScript file. - * - * Based on the CI's original link_tag. - * - * @access public - * @param mixed $src JavaScript sources or an array - * @param string $language Language - * @param string $type Type - * @param boolean $index_page Should index_page be added to the JavaScript path - * @return string - */ -if (!function_exists('script_tag')) { - function script_tag($src = '', $language = 'javascript', $type = 'text/javascript', $index_page = false) { - $CI =& get_instance(); - - $script = ' $v) { - if ($k == 'src' && strpos($v, '://') === false) { - if ($index_page === true) { - $script .= ' src="' . $CI->config->site_url($v) . '"'; - } else { - $script .= ' src="' . $CI->config->slash_item('base_url') . $v . '"'; - } - } else { - $script .= "$k=\"$v\""; - } - } - - $script .= ">\n"; - } else { - if (strpos($src, '://') !== false) { - $script .= ' src="' . $src . '" '; - } else if ($index_page === true) { - $script .= ' src="' . $CI->config->site_url($src) . '" '; - } else { - $script .= ' src="' . $CI->config->slash_item('base_url') . $src . '" '; - } - - $script .= 'language="' . $language . '" type="' . $type . '"'; - $script .= ">\n"; - } - - return $script; - } -} - -/* End of file MY_html_helper.php */ -/* Location: ./application/helpers/MY_html_helper.php */