@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:
                    # Hide if empty
                    output = None
        else:
            # Hide if disabled
            output = None

        return output

# =============================================================================
Initializes an instance of the service stub class builder.
dataset/ETHPy150Open sahana/eden/modules/s3layouts.py/S3OAuthMenuDefaultLayout.layout--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/net/proto2/python/public/service_reflection.py/_ServiceStubBuilder.__init__