views-view-summary-unformatted.tpl.php

Default simple view template to display a group of summary lines.

This wraps items in a span if set to inline, or a div if not.

File

drupal/core/modules/views/theme/views-view-summary-unformatted.tpl.php
View source
<?php

/**
 * @file
 * Default simple view template to display a group of summary lines.
 *
 * This wraps items in a span if set to inline, or a div if not.
 *
 * @ingroup views_templates
 */
foreach ($rows as $id => $row) {
  ?>
  <?php

  print (!empty($options['inline']) ? '<span' : '<div') . ' class="views-summary views-summary-unformatted">';
  ?>
    <?php

  if (!empty($row->separator)) {
    print $row->separator;
  }
  ?>
    <a href="<?php

  print $row->url;
  ?>"<?php

  print !empty($row_classes[$id]) ? ' class="' . $row_classes[$id] . '"' : '';
  ?>><?php

  print $row->link;
  ?></a>
    <?php

  if (!empty($options['count'])) {
    ?>
      (<?php

    print $row->count;
    ?>)
    <?php

  }
  ?>
  <?php

  print !empty($options['inline']) ? '</span>' : '</div>';
}

Related topics