Пример #1
0
 function show()
 {
     $items = array();
     foreach ($this->pages as $page) {
         if ($page['name'] != 'home') {
             $item =& ax_li(array(ax_a_href(ucfirst($page['name']), $this->m->make_url(array('show' => $page['name']))), ": " . $page['descr']));
             array_push($items, $item);
         }
     }
     $this->m->append(ax_ul($items));
 }
Пример #2
0
/**
 * Create an AnewtXHTMLUnorderedList element with items.
 * \param $items List of AnewtXHTMLListItem instances to append to the list.
 * \param $attributes Additional element attributes (optional)
 */
function ax_ul_items($items, $attributes = null)
{
    assert('is_numeric_array($items);');
    $element = ax_ul($attributes);
    $element->append_children($items);
    return $element;
}