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:
commit
598e0e49b2
7 changed files with 5 additions and 1 deletions
BIN
static/img/cc/by-nc-nd.png
Normal file
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
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
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
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
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
BIN
static/img/cc/by.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 410 B |
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue