date_format(),$date); } /** * Work out our site ID for multihosting */ public static function ID($format=FALSE) { return Company::instance()->site($format); } public static function Theme() { // If we are using user admin pages (and login), we'll choose the admin theme. return 'theme/'.(URL::admin_url() ? Kohana::$config->load('config')->theme_admin : Kohana::$config->load('config')->theme); } /** * Show a date using a site configured format */ public static function Time($date) { return date(Company::instance()->time_format(),($date ? $date : time())); } } ?>