admin) { $buf .= $theme->css("videos.css"); $buf .= $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()) && (!file_exists($item->resize_path() . ".flv"))) { $buf .= $theme->script("videos_download.js"); } } return $buf; } static function admin_head($theme) { $buf = ""; if (strpos(Router::$current_uri, "admin/videos") !== false) { $buf .= $theme->css("videos.css") . $theme->css("jquery.autocomplete.css"); $base = url::site("__ARGS__"); $csrf = access::csrf_token(); $buf .= ""; $buf .= $theme->script("jquery.autocomplete.js") . $theme->script("admin_videos.js"); // rWatcher edit. } return $buf; } }