'Layout Method (Item Renderer)'

@staticmethod
def layout(item):

    if item.enabled:
        if (item.parent is not None):
            output = A(SPAN(item.label), _class=('zocial    %s' % item.opts.api), _href=item.url(), _title=item.opts.get('title', item.label))
        else:
            items = item.render_components()
            if items:
                output = DIV(items, _class='zocial-login')
            else:
                output = None
    else:
        output = None
    return output
