btn_name = $btn_name; } if($REV) $this->params['rev'] = $REV; /*switching over to the native dw editor rquires two additional http paramters */ $this->params['mode'] = 'dwiki'; $this->params['fck_preview_mode'] = 'nil'; // use alternate icon if user does not have edit permission if ($INFO['perm'] < AUTH_EDIT) { $this->svg = __DIR__ . '/dwedit_view.svg'; } } /** * Get label from plugin language file * * @return string */ public function getLabel() { if($this->btn_name) return $this->btn_name; /* if the button name has not been set up in the constructor you can get it now. */ $hlp = plugin_load('action', 'dwedit'); return $hlp->getLang('btn_dw_edit'); } }