<?php
echo N2Html::openTag('dl', array('class' => $class . " n2-h3"));

if (isset($dl) && count($dl)) {

    foreach ($dl as $dlRow) {

        //BEGIN <DT>
        if (!isset($dlRow['options'])) $dlRow['options'] = array();
        echo N2Html::openTag('dt', $dlRow['options'] + (empty($dlRow['class']) ? array() : array('class' => $dlRow['class'])));
        if (isset($dlRow["linkOptions"])) {
            echo N2Html::tag('a', (isset($dlRow['linkOptions']) ? $dlRow['linkOptions'] : array()), $dlRow['title']);
        } elseif (isset($dlRow["link"])) {
            echo N2Html::tag('a', array('href' => $dlRow['link']), $dlRow['title']);
        } else {
            echo N2Html::tag('div', array(), $dlRow['title']);
        }

        echo N2Html::closeTag('dt');
    }

}
echo N2Html::closeTag('dl');