static function set_frontend_assets() { self::$assets_frontend = array('css' => array('bootstrap/bootstrap.min', 'bootstrap/bootstrap-theme.min', 'leaflet/leaflet'), 'js' => array('jquery/jquery-1.10.2.min', 'bootstrap/bootstrap.min', 'leaflet/leaflet', 'asset.map', 'asset.map.control')); }
protected function prerun() { $assets = array(); M_Assets::instance(); if ('manager' == ENV) { $assets = M_Assets::get_manager_assets(); } else { $assets = M_Assets::get_frontend_assets(); } foreach ($assets as $key => $value) { if (is_array($assets[$key]) && sizeof($assets[$key]) > 0) { foreach ($value as $asset) { $this->add_page_asset($key, $asset); } } } }