Example #1
0
 protected static function prepare($config)
 {
     // Invalid type given, unset to use default user agent setting
     if (isset($config['type']) && !in_array($config['type'], Ol::validTypes())) {
         unset($config['type']);
     }
     return $config;
 }
Example #2
0
 /**
  * http://www.w3.org/TR/html5/grouping-content.html#the-ol-element
  *
  * Optional keys
  * reversed: true|false (default is false)
  * start: Starting number (or letter) of list.
  * type: decimal|lower-alpha|upper-alpha|lower-roman|upper-roman
  * 
  * @param  array  $config [description]
  * @return [type]         [description]
  */
 public static function ol($config = [])
 {
     return Ol::build($config);
 }