load('config')->cache_type) ? 'file' : Kohana::$config->load('config')->cache_type; } public static function copywrite() { return '(c) 2014 Deon George'; } public static function country() { return NULL; } /** * Show a date using a site configured format */ public static function date($date) { return (is_null($date) OR ! $date) ? '' : date('d-M-Y',$date); } public static function language() { // @todo To implement return 'auto'; } /** * The URI to show for the login prompt. * Normally if the user is logged in, we can replace it with something else */ public static function login_uri() { return ($ao = Auth::instance()->get_user() AND is_object($ao)) ? $ao->name() : HTML::anchor('login',_('Login')); } public static function logo() { return HTML::image(static::logo_uri(),array('class'=>'headlogo','alt'=>_('Logo'))); } public static function logo_uri($protocol=NULL) { list ($path,$suffix) = explode('.',static::$logo); return URL::site(Route::get('default/media')->uri(array('file'=>$path.'.'.$suffix),array('alt'=>static::sitename())),$protocol); } public static function siteid($format=FALSE) { return ''; } /** * Work out our site mode (dev,test,prod) */ public static function sitemode() { return Kohana::$config->load('config.site')->mode; } public static function sitename() { return 'AER Translate'; } public static function theme() { return 'theme/'.Kohana::$config->load('config')->theme; } public static function version() { // @todo Work out our versioning return 'TBA'; } } ?>