function theme_block($name = '') { $file = THEME_PATH . theme_name() . '/' . $name . EXT; if (file_exists($file)) { include_once $file; } }
function theme_directory($theme = '') { if ($theme !== '') { } else { return base_url() . THEME_PATH . theme_name(); } }
function theme_directory($theme = '') { if ($theme !== '') { $theme_dir = THEME_PATH . $theme; if (is_dir($theme_dir)) { return base_url() . THEME_PATH . $theme; } else { show_error('Theme {' . theme_name() . '} could not be found.'); } } else { $theme_dir = THEME_PATH . theme_name(); if (is_dir($theme_dir)) { return base_url() . THEME_PATH . theme_name(); } else { show_error('Theme {' . theme_name() . '} could not be found.'); } } }
public function default_theme_name() { return theme_name(); }