Merge pull request #127 from Phyks/cc_images

Add an option to host CC icon rather than querying an external service
This commit is contained in:
Alexandre Vicenzi 2018-06-23 22:12:28 -03:00 committed by GitHub
commit 598e0e49b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>