public function generate_listing_types() { $tpl = 'internal_listing_types'; $this->listing_types = wpl_listing_types::get_listing_types(); $this->listing_gicons = wpl_listing_types::get_map_icons(); $this->get_caption_imgs = wpl_listing_types::get_caption_images(); /** import tpl **/ parent::render($this->tpl_path, $tpl); }
private function generate_new_page() { $this->listing_type_id = 10000; $this->listing_type_data = wpl_listing_types::get_listing_type($this->listing_type_id); $this->listing_types_category = wpl_listing_types::get_listing_type_categories(); $this->listing_gicons = wpl_listing_types::get_map_icons(); parent::render($this->tpl_path, 'internal_edit_listing_types'); exit; }