original_string: public static function alisty($items, $attribs = array(), $type = 'ul', $active_title = null)
      {
          if (!Arr::iterable($items)) {
              return '';
          }
          
          $htmls = array();
          $htmls[] = '<' . $type . self::attribs($attribs) . '>';
          foreach ($items as $title => $href) {
              $body = (is_array($href)) ? Html::a($title, $href) : Html::link($href, $title);
              
              $classes = array(Str::machine($title));
              if ($active_title === $title) {
                  $classes[] = 'active';
              }
              
              $htmls[] = sprintf('<li class="%s">', join(' ', $classes)) . $body . '</li>';
          }
          $htmls[] = '</' . $type . '>';
          return join("\n", $htmls);
      }
code: public static function alisty($items, $attribs = array(), $type = 'ul', $active_title = null)
      {
          if (!Arr::iterable($items)) {
              return '';
          }
          
          $htmls = array();
          $htmls[] = '<' . $type . self::attribs($attribs) . '>';
          foreach ($items as $title => $href) {
              $body = (is_array($href)) ? Html::a($title, $href) : Html::link($href, $title);
              
              $classes = array(Str::machine($title));
              if ($active_title === $title) {
                  $classes[] = 'active';
              }
              
              $htmls[] = sprintf('<li class="%s">', join(' ', $classes)) . $body . '</li>';
          }
          $htmls[] = '</' . $type . '>';
          return join("\n", $htmls);
      }
code_tokens: public static function alisty ( $ items , $ attribs = array ( ) , $ type = 'ul' , $ active_title = null ) { if ( ! Arr :: iterable ( $ items ) ) { return '' ; } $ htmls = array ( ) ; $ htmls [ ] = '<' . $ type . self :: attribs ( $ attribs ) . '>' ; foreach ( $ items as $ title => $ href ) { $ body = ( is_array ( $ href ) ) ? Html :: a ( $ title , $ href ) : Html :: link ( $ href , $ title ) ; $ classes = array ( Str :: machine ( $ title ) ) ; if ( $ active_title === $ title ) { $ classes [ ] = 'active' ; } $ htmls [ ] = sprintf ( '<li class="%s">' , join ( ' ' , $ classes ) ) . $ body . '</li>' ; } $ htmls [ ] = '</' . $ type . '>' ; return join ( "\n" , $ htmls ) ; }
docstring: Get an HTML list of links
  @param array $items
  @param array $attribs
  @param string $type
  @param string $active_title
docstring_tokens: Get an HTML list of links