. * * Gestion des chemins des ressources */ if (!defined('BASEPATH')) exit ('No direct script access allowed'); function theme() { $CI = & get_instance(); $theme = $CI->config->item('theme'); return base_url() . "themes/" . $theme; } if (!function_exists('css_url')) { function css_url($nom) { return theme() . "/css/" . $nom . '.css'; } } if (!function_exists('js_url')) { function js_url($nom) { return base_url() . 'assets/javascript/' . $nom . '.js'; } } if (!function_exists('image_dir')) { /** * * Répèrtoire de stockage des images, graphs, etc */ function image_dir() { return 'assets/images/'; } } if (!function_exists('img_url')) { function img_url($nom) { return theme() . '/images/' . $nom; } } if (!function_exists('asset_url')) { function asset_url($nom) { return theme() . '/assets/' . $nom; } } if (!function_exists('controller_url')) { function controller_url($nom) { return site_url() . '/' . $nom; } } if (!function_exists('jqueryui_theme')) { function jqueryui_theme () { $CI = & get_instance(); if($CI->config->item('palette')) { return $CI->config->item('palette'); } return "base"; } }