'Custom Layout Method'

@staticmethod
def layout(item):

    if (not item.authorized):
        item.enabled = item.visible = False
    elif ((item.enabled is None) or item.enabled):
        item.enabled = item.visible = True
    if (item.enabled and item.visible):
        if (item.parent is not None):
            return LI(A(item.label, _href=item.url(), _id=item.attr._id, _class='footer-menu-item'))
        else:
            items = item.render_components()
            logo = ('/%s/static/themes/MAVC/img/footer-logo.png' % current.request.application)
            return TAG[''](UL(items, _class='footer-menu'), A(IMG(_src=logo), _href=URL('default', 'index'), _class='footer-home'))
    else:
        return None
