db = &EL_Db::get_instance(); $this->options = &EL_Options::get_instance(); $this->categories = &EL_Categories::get_instance(); $this->is_new = !(isset($_GET['action']) && ('edit' === $_GET['action'] || 'added' === $_GET['action'] || 'modified' === $_GET['action'])); $this->is_duplicate = $this->is_new && isset($_GET['id']) && is_numeric($_GET['id']); } public function show_new() { if(!current_user_can('edit_posts')) { wp_die(__('You do not have sufficient permissions to access this page.')); } $out = '