commit a9ffea8e8643f9f6cfc91b162d39fce8c1d12c5f Author: Jen Lampton Date: Thu Apr 25 22:46:21 2013 -0700 new changes diff --git a/core/includes/theme.inc b/core/includes/theme.inc index e0fc45b..65a939d 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2322,7 +2322,7 @@ function template_preprocess_item_list(&$variables) { $variables['title'] = (string) $variables['title']; // Change the name since 'type' clashes with #type. // @see http://drupal.org/node/1828536 - $variables['list_tag'] = $variables['type']; + $variables['list_type'] = $variables['type']; // Prepare for adding classes to each item. $num_items = count($variables['items']); diff --git a/core/modules/system/templates/item-list.html.twig b/core/modules/system/templates/item-list.html.twig index ffb6792..7f21dfc 100644 --- a/core/modules/system/templates/item-list.html.twig +++ b/core/modules/system/templates/item-list.html.twig @@ -23,10 +23,19 @@ {% if title is not empty -%}

{{ title }}

{% endif -%} - <{{ list_tag }}{{ attributes }}> + {%- if list_type == 'ul' -%} + + {%- else -%} + + {%- endif %} {%- for item in items -%} {{ item }} {%- endfor -%} - + {%- if list_type == 'ul' -%} + + {%- else -%} + + {%- endif %} + {% endif %}