admin) { $theme->css("videos.css"); $theme->script("videos.js"); } $item = $theme->item(); if ($item && $item->is_movie()) { $items_video = ORM::factory("items_video") ->where("item_id", "=", $item->id) ->find(); if ($items_video->loaded()) { $view = new View("videos_display_js.html"); //$view->embed_code = addslashes($embedded_video->embed_code); return $view; } } } static function admin_head($theme) { $head = array(); if (strpos(Router::$current_uri, "admin/videos") !== false) { $theme->css("videos.css"); $theme->css("jquery.autocomplete.css"); $base = url::site("__ARGS__"); $csrf = access::csrf_token(); $head[] = ""; $theme->script("jquery.autocomplete.js"); $theme->script("admin_videos.js"); } return implode("\n", $head); } }