Пример #1
0
 /**
  * Create a button element.
  *
  * @param  string  $value
  * @param  array   $options
  * @return string
  */
 public function button($value = null, $options = [])
 {
     if (!array_key_exists('type', $options)) {
         $options['type'] = 'button';
     }
     return '<button' . $this->html->attributes($options) . '>' . $value . '</button>';
 }
Пример #2
0
 /**
  * Build an HTML attribute string from an array.
  *
  * @param array $attributes
  * @return string 
  * @static 
  */
 public static function attributes($attributes)
 {
     //Method inherited from \Illuminate\Html\HtmlBuilder
     return \October\Rain\Html\HtmlBuilder::attributes($attributes);
 }