def narrow_buttons(request, title, url, buttons=SHOW_SOCIAL_BUTTONS):
    base_url = 'http%s://%s' % ('s' if request.is_secure() else '',
                                request.get_host())
    data = _get_url_data(request, title, url)
    code = []
    for name in buttons:
        button = NARROW_BUTTONS[name]
        if not isinstance(button, dict):
            button = {'url': button}
        title = escape(button.get('title', name % DEFAULT_TITLE))
        url = escape(button['url'] % data)
        icon = escape(button.get('icon',
                                 media_url('simplesocial/icons32/%s.png'
                                           % name.lower())))
        if not icon.startswith(('http://', 'https://')):
            icon = base_url + icon
        code.append(BASE_BUTTON % {'title': title, 'url': url, 'icon': icon})
    return NARROW_BUTTONS_DIV % '\n'.join(code)
dataset/ETHPy150Open adieu/allbuttonspressed/simplesocial/api.py/narrow_buttons/swapped operands of `%`