/** * File Manager page */ function index() { $this->_set_page_title(); Assets_helper::include_css('assets.css'); // display the DB backup message? if (!empty($this->cache['show_dbbackup'])) { return $this->EE->load->view('mcp/dbbackup', NULL, TRUE); } $this->EE->cp->add_js_script(array('ui' => array('datepicker'))); Assets_helper::insert_css('#mainContent .rightNav span { position: relative; z-index: 1; } #mainContent .heading { position: relative; top: -32px; margin-bottom: -32px; background: none; } #mainContent .heading h2 { padding: 0; color: #34424b; text-shadow: none; background: none; font-size: 25px; font-family: HelveticaNeue-Light, HelveticaNeue, sans-serif; border:none } #mainContent .pageContents { margin: 0 -19px -25px -25px; padding: 0; background: none; overflow: visible; border:none !important }'); Assets_helper::include_garnish(); Assets_helper::include_js('assets.js'); $js = Assets_helper::get_actions_js() . "\n" . Assets_helper::get_lang_js('upload_files', 'upload_status', 'showing', 'of', 'file', 'files', 'selected', 'new_subfolder', 'rename', '_delete', 'view_file', 'edit_file', 'confirm_delete_folder', 'confirm_delete_file', 'confirm_delete_files', 'how_to_proceed', 'apply_to_remaining_conflicts', 'perform_selected', 'couldnt_upload') . "\n" . 'Assets.siteUrl = "' . Assets_helper::get_site_url() . "\";\n" . 'new Assets.FileManager(jQuery(".assets-fm"), {namespace: "' . $this->EE->config->item('site_id') . '_panel", context: "filemanager"});'; Assets_helper::insert_js($js); $vars['base'] = $this->base; $vars['lib'] = $this->EE->assets_lib; $this->EE->load->library('table'); return $this->EE->load->view('mcp/index', $vars, TRUE); }