Beispiel #1
0
    public function label($name, $value = null, $options = [])
    {
        if ($this->type == 'inline') {
            $options = $this->verifyHasOption($options, 'class', 'right');
            $options = $this->verifyHasOption($options, 'class', 'inline');
            $label = parent::label($name, $value, $options);
            $size = $this->labelSize;
            return <<<HTML
    <div class="row">
      <div class="small-{$size} columns">
        {$label}
      </div>
HTML;
        }
        return parent::label($name, $value, $options);
    }
 public function label($name, $value = null, $options = [])
 {
     switch ($this->type) {
         case 'inline':
             $options = $this->verifyHasOption($options, 'class', 'sr-only');
             break;
         case 'horizontal':
             $options = $this->verifyHasOption($options, 'class', 'col-md-' . $this->labelSize);
             $options = $this->verifyHasOption($options, 'class', 'control-label');
             break;
     }
     return parent::label($name, $value, $options);
 }
 public function label($name, $value = null, $options = [])
 {
     return parent::label($name, $value, $options);
 }