public function renderCapability() { $this->template = mvb_Model_Template::retrieveSub('CAPABILITY_TAB', $this->template); $template = mvb_Model_Template::retrieveSub('CAPABILITY_LIST', $this->template); $template = mvb_Model_Template::retrieveSub('CAPABILITY_ITEM', $template); $conf = mvb_Model_ConfigPress::getOption('aam.delete_capabilities'); $allow_delete = $conf == 'true' ? TRUE : FALSE; $content = mvb_Model_Manager_Capability::renderRow($this->cap, $template, $this, $allow_delete); $markers = array('###info_image###' => WPACCESS_CSS_URL . 'images/Info-tooltip.png', '###critical_image###' => WPACCESS_CSS_URL . 'images/Critical-tooltip.png'); $content = mvb_Model_Template::updateMarkers($markers, $content); $content = mvb_Model_Label::clearLabels($content); $result = array('status' => 'success', 'html' => mvb_Model_Template::clearTemplate($content)); return $result; }