{{ response.title=base_title + ': ' + T('sponsor online') response.files.append(URL('static', 'js/qrcode.min.js')) # For this page QR code only response.files.append(URL('static','css/content_pages.css')) }} {{if is_testing: response.meta.viewfile, response.meta.date_accessed = response.view, request.now}}{{pass}} {{extend ('popup.html' if 'popup' in request.vars else 'uikit_layout.html')}} {{import img}} {{block masthead}} {{if 'popup' not in request.vars:}}

{{=T('Leaf sponsorship')}}

{{pass}} {{end block}}

{{=XML(T('Sponsor %s and support OneZoom') % (the_long_name or T("a leaf"),))}}

{{=XML(T('You can explore this tree of life at home or on your mobile device from %s') % (A("www.onezoom.org", _href="//www.onezoom.org", target="_blank"),))}}

{{=T('About leaf sponsorship')}}

{{=T('You can sponsor leaves on the OneZoom tree of life for yourself or as a unique gift for someone you know. As a thank-you, we acknowledge donations to the OneZoom charity (non-profit) by displaying your chosen sponsor’s name on the leaf of your choice. Your donations will help us in our aim to provide easy access to scientific knowledge about biodiversity and evolution, and raise awareness about the variety of life on earth together with the need to conserve it.')}}

{{=T('There can only be one sponsor per leaf so get your favourite species before someone else does.')}}

{{=T('Example')}}

{{=XML( A( T('More information about this image'), _href=URL( 'tree', 'pic_info', args=[getattr(default_image, 'src', ''), getattr(default_image, 'src_id', '')]))) }}

{{ url1_minus_scheme = "www.onezoom.org/sponsor" url2_minus_scheme = "www.onezoom.org/sponsor_leaf?ott={}".format(ott) #NB the links here should be hardcoded (not using the URL() helper) # so that they do not get the popup information included # but they should use the A() helper so that they are turned off on MDs }}

{{=T('How to sponsor')}}

{{=T('This leaf has to be sponsored from your own device.')}}

{{=XML( T('To sponsor %s later, make a note of your creature code and enter it at %s') % ( the_long_name or T('a leaf'), A(url1_minus_scheme, _href='//' + url1_minus_scheme, target='_blank')))}}

{{=T('Your creature code is')}} {{=ott}}

{{=T('Direct URL for sponsorship')}}

{{=XML(T('%(slot0)s or point the camera app of your phone at the following QR code:') % {'slot0': ((xmlescape(XML( T('Alternatively, to sponsor %s directly, you can simply go to %s') % ( the_long_name or T('this leaf'), A(url2_minus_scheme, _href='//'+url2_minus_scheme, _target='_blank'))))))})}}

{{=T('Thank you for your interest in supporting our work.')}}