Ejemplo n.º 1
0
 public function text()
 {
     if (isset($this->text_on) and isset($this->text_off)) {
         $text = '<span class="tgl-text-on">' . $this->text_on . '</span>';
         $text .= '<span class="tgl-text-off">' . $this->text_off . '</span>';
     } else {
         $text = parent::text();
     }
     return empty($text) ? ' ' : $text;
 }