Add an option to host CC icon rather than querying an external service

See #112 for more context on this.
This commit is contained in:
Phyks (Lucas Verney) 2017-06-02 15:53:05 -04:00
parent 79c91d1335
commit 81b48555e7
7 changed files with 5 additions and 1 deletions

BIN
static/img/cc/by-nc-nd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 B

BIN
static/img/cc/by-nc-sa.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

BIN
static/img/cc/by-nc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

BIN
static/img/cc/by-nd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

BIN
static/img/cc/by-sa.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

BIN
static/img/cc/by.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

View file

@ -9,7 +9,11 @@
<img alt="Creative Commons License" <img alt="Creative Commons License"
title="Creative Commons License" title="Creative Commons License"
style="border-width:0" style="border-width:0"
src="https://i.creativecommons.org/l/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/80x15.png" {% 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 %}
width="80" width="80"
height="15"/> height="15"/>
</a> </a>