/** * @override */ function WdfRender() { if (!$this->get('isrtl') && system_is_module_loaded('localization')) { $ci = Localization::detectCulture(); if ($ci->IsRTL) { $this->set("isrtl", " dir='rtl'"); } } $res = $this->__collectResources(); $this->js = array_reverse($this->js, true); foreach (array_reverse($res) as $r) { if (starts_with(pathinfo($r, PATHINFO_EXTENSION), 'css')) { $this->addCss($r); } else { $this->addjs($r); } } $this->js = array_reverse($this->js, true); $this->set("css", $this->css); $this->set("js", $this->js); $this->set("meta", $this->meta); $this->set("content", $this->_content); return parent::WdfRender(); }