Tan Style sheet Improvements
[openemr.git] / phpmyadmin / templates / list / unordered.phtml
blob0d8557dade302e6f5e1a44d9abc0e92f25efa395
1 <?php
2 /**
3  * Display unordered list.
4  *
5  * $class - optional string - Contains the class name(s) of ul tag
6  * $id - optional string - Contains the id of ul tag
7  * $item - mandatory string|array - If string, this is the content
8  *                                - Else, see templates/list/item.phtml
9  * $content - mandatory string - Content to display if $item is empty
10  */
12 <ul<?php
13 echo !empty($class) ? ' class="' . $class . '"' : null;
14 echo !empty($id) ? ' id="' . $id . '"' : null;
15 ?>>
16     <?php
17     if (!empty($items)) :
18         foreach ($items as $item) :
19             if (!is_array($item)) {
20                 $item = array('content' => $item);
21             }
22             echo PMA\Template::get('list/item')
23                 ->render($item);
24         endforeach;
25     elseif (!empty($content)) :
26         echo $content;
27     endif;
28     ?>
29 </ul>