diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2014-01-28 11:19:06 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2014-01-28 11:19:06 +0100 |
commit | f4fbfaa7cbaaf07aae7d8f0533d293fa4dc605cc (patch) | |
tree | 6abda8e30037bd3033c8142d7592e62988fc7eed /themes/courgette | |
parent | 21f50d5a08381d0d2f27d36b0d97a4f518eeefcb (diff) | |
download | wallabag-f4fbfaa7cbaaf07aae7d8f0533d293fa4dc605cc.tar.gz wallabag-f4fbfaa7cbaaf07aae7d8f0533d293fa4dc605cc.tar.zst wallabag-f4fbfaa7cbaaf07aae7d8f0533d293fa4dc605cc.zip |
some fix to courgette theme
Diffstat (limited to 'themes/courgette')
-rwxr-xr-x | themes/courgette/_top.twig | 2 | ||||
-rwxr-xr-x | themes/courgette/config.twig | 4 | ||||
-rw-r--r-- | themes/courgette/img/logo.svg | 8 | ||||
-rw-r--r-- | themes/courgette/theme.ini | 3 |
4 files changed, 14 insertions, 3 deletions
diff --git a/themes/courgette/_top.twig b/themes/courgette/_top.twig index a2a4b28d..792687c0 100755 --- a/themes/courgette/_top.twig +++ b/themes/courgette/_top.twig | |||
@@ -1,6 +1,6 @@ | |||
1 | <header> | 1 | <header> |
2 | <h1> | 2 | <h1> |
3 | {% if view == 'home' %}{% block logo %}<img src="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/img/logo.png" alt="logo poche" />{% endblock %} | 3 | {% if view == 'home' %}{% block logo %}<img src="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/img/logo.svg" alt="logo poche" />{% endblock %} |
4 | {% elseif view == 'fav' %}<a href="./" title="{% trans "back to home" %}" >{{ block('logo') }} <span>Favoris</span></a> | 4 | {% elseif view == 'fav' %}<a href="./" title="{% trans "back to home" %}" >{{ block('logo') }} <span>Favoris</span></a> |
5 | {% elseif view == 'archive' %}<a href="./" title="{% trans "back to home" %}" >{{ block('logo') }} <span>Archive</span></a> | 5 | {% elseif view == 'archive' %}<a href="./" title="{% trans "back to home" %}" >{{ block('logo') }} <span>Archive</span></a> |
6 | {% else %}<a href="./" title="{% trans "back to home" %}" >{{ block('logo') }}</a> | 6 | {% else %}<a href="./" title="{% trans "back to home" %}" >{{ block('logo') }}</a> |
diff --git a/themes/courgette/config.twig b/themes/courgette/config.twig index fdeb464b..3ab1d92f 100755 --- a/themes/courgette/config.twig +++ b/themes/courgette/config.twig | |||
@@ -35,8 +35,8 @@ | |||
35 | <div class="row"> | 35 | <div class="row"> |
36 | <label class="col w150p" for="theme">{% trans "Theme:" %}</label> | 36 | <label class="col w150p" for="theme">{% trans "Theme:" %}</label> |
37 | <select class="col" id="theme" name="theme"> | 37 | <select class="col" id="theme" name="theme"> |
38 | {% for theme in themes %} | 38 | {% for key, theme in themes %} |
39 | <option value="{{ theme.name }}" {{ theme.current ? 'selected' : '' }}>{{ theme.name }}</option> | 39 | <option value="{{ key }}" {{ theme.current ? 'selected' : '' }}>{{ theme.name }}</option> |
40 | {% endfor %} | 40 | {% endfor %} |
41 | </select> | 41 | </select> |
42 | </div> | 42 | </div> |
diff --git a/themes/courgette/img/logo.svg b/themes/courgette/img/logo.svg new file mode 100644 index 00000000..865da440 --- /dev/null +++ b/themes/courgette/img/logo.svg | |||
@@ -0,0 +1,8 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="64" height="64"> | ||
3 | <circle cx="32" cy="32" r="29.5" style="fill:#000" /> | ||
4 | <path d="m 16,18 33,0 0,26 -16.5,6 -16.5,-6 z" fill="#fff" /> | ||
5 | <rect width="9" height="2.5" x="17.5" y="24.5" fill="#000" /> | ||
6 | <rect width="9" height="2.5" x="28" y="24.5" fill="#000" /> | ||
7 | <rect width="9" height="2.5" x="38.5" y="24.5" fill="#000" /> | ||
8 | </svg> | ||
diff --git a/themes/courgette/theme.ini b/themes/courgette/theme.ini new file mode 100644 index 00000000..996d171f --- /dev/null +++ b/themes/courgette/theme.ini | |||
@@ -0,0 +1,3 @@ | |||
1 | name = Courgette | ||
2 | description = Responsive black and white theme especially adapted to smartphones. | ||
3 | requirements[] = default | ||