on_off_label = $args['on_off_label']; $this->class = isset($args['class']) ? $args['class'] : ''; parent::__construct($manager, $id, $args); } public function render_content() { $switch_class = ($this->value() == 'on') ? 'ms-switch-on ' : ''; $switch_class .= $this->class; $on_off_label = $this->on_off_label; ?>