public function generate_room_types() { $tpl = 'internal_room_types'; $this->room_types = wpl_room_types::get_room_types("", ""); $folder = WPL_ABSPATH . 'assets' . DS . 'img' . DS . 'rooms'; $this->icons = wpl_global::get_icons($folder); /** import tpl **/ parent::render($this->tpl_path, $tpl); }
/** * Gets map icons * @author Howard R <*****@*****.**> * @static * @return array */ public static function get_map_icons() { $path = WPL_ABSPATH . 'assets' . DS . 'img' . DS . 'listing_types' . DS . 'gicon'; return wpl_global::get_icons($path); }