'Custom Layout Method'

@staticmethod
def layout(item):

    if (item.parent is None):
        items = item.render_components()
        if items:
            return UL(items)
        else:
            return ''
    elif (item.enabled and item.authorized):
        return LI(A(DIV(item.label, _class='hoverable'), _href=item.url()), _class='fleft')
    else:
        return None
