flex/templates/partial/cc_license.html

32 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2015-07-20 06:52:02 +02:00
<p>
2021-02-04 22:33:17 +01:00
{% set cc_slug = CC_LICENSE['slug'] %}
{% set cc_name = CC_LICENSE['name'] %}
{% set cc_version = CC_LICENSE['version'] %}
{% set cc_lang = CC_LICENSE['language'] or "en_US" %}
{% set cc_url = "http://creativecommons.org/licenses/{}/{}/deed.{}".format(cc_slug, cc_version, cc_lang) %}
&copy; {{ COPYRIGHT_YEAR }} {{ COPYRIGHT_NAME }} - {{ _('This work is licensed under a %(cc)s',
cc='<a rel="license" href="{}" target="_blank">{}</a>'.format(cc_url, cc_name)|safe) }}
2015-07-20 06:52:02 +02:00
</p>
{% include "partial/flex.html" %}
<p>
2021-02-04 22:06:02 +01:00
{% if CC_LICENSE['icon'] != False %}
2015-07-20 06:52:02 +02:00
<a rel="license"
href="http://creativecommons.org/licenses/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/"
target="_blank">
<img alt="Creative Commons License"
title="Creative Commons License"
style="border-width:0"
{% if CC_LICENSE['local_icons'] %}
src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/img/cc/{{ CC_LICENSE['slug'] }}.png"
{% else %}
src="https://i.creativecommons.org/l/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/80x15.png"
{% endif %}
2015-07-20 06:52:02 +02:00
width="80"
height="15"/>
</a>
2021-02-04 22:06:02 +01:00
{% endif %}
2015-11-25 02:55:55 +01:00
{% if STATUSCAKE %}
{% include "partial/statuscake.html" %}
{% endif %}
</p>