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 | |
parent | 21f50d5a08381d0d2f27d36b0d97a4f518eeefcb (diff) | |
download | wallabag-f4fbfaa7cbaaf07aae7d8f0533d293fa4dc605cc.tar.gz wallabag-f4fbfaa7cbaaf07aae7d8f0533d293fa4dc605cc.tar.zst wallabag-f4fbfaa7cbaaf07aae7d8f0533d293fa4dc605cc.zip |
some fix to courgette theme
Diffstat (limited to 'themes')
-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 | ||||
-rw-r--r-- | themes/dark/theme.ini | 2 | ||||
-rw-r--r-- | themes/default/config.twig | 4 | ||||
-rw-r--r-- | themes/default/theme.ini | 1 | ||||
-rw-r--r-- | themes/dmagenta/theme.ini | 2 | ||||
-rw-r--r-- | themes/solarized-dark/theme.ini | 2 | ||||
-rw-r--r-- | themes/solarized/theme.ini | 2 |
10 files changed, 25 insertions, 5 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 | ||
diff --git a/themes/dark/theme.ini b/themes/dark/theme.ini new file mode 100644 index 00000000..4b020d36 --- /dev/null +++ b/themes/dark/theme.ini | |||
@@ -0,0 +1,2 @@ | |||
1 | name = Dark | ||
2 | requirements[] = default | ||
diff --git a/themes/default/config.twig b/themes/default/config.twig index ada238d6..df62520a 100644 --- a/themes/default/config.twig +++ b/themes/default/config.twig | |||
@@ -49,8 +49,8 @@ | |||
49 | <div class="row"> | 49 | <div class="row"> |
50 | <label class="col w150p" for="theme">{% trans "Theme:" %}</label> | 50 | <label class="col w150p" for="theme">{% trans "Theme:" %}</label> |
51 | <select class="col" id="theme" name="theme"> | 51 | <select class="col" id="theme" name="theme"> |
52 | {% for theme in themes %} | 52 | {% for key, theme in themes %} |
53 | <option value="{{ theme.name }}" {{ theme.current ? 'selected' : '' }}>{{ theme.name }}</option> | 53 | <option value="{{ key }}" {{ theme.current ? 'selected' : '' }}>{{ theme.name }}</option> |
54 | {% endfor %} | 54 | {% endfor %} |
55 | </select> | 55 | </select> |
56 | </div> | 56 | </div> |
diff --git a/themes/default/theme.ini b/themes/default/theme.ini new file mode 100644 index 00000000..9f3cfb6a --- /dev/null +++ b/themes/default/theme.ini | |||
@@ -0,0 +1 @@ | |||
name = Default \ No newline at end of file | |||
diff --git a/themes/dmagenta/theme.ini b/themes/dmagenta/theme.ini new file mode 100644 index 00000000..24ff3c4a --- /dev/null +++ b/themes/dmagenta/theme.ini | |||
@@ -0,0 +1,2 @@ | |||
1 | name = Dark Magenta | ||
2 | requirements[] = default | ||
diff --git a/themes/solarized-dark/theme.ini b/themes/solarized-dark/theme.ini new file mode 100644 index 00000000..7b6b341e --- /dev/null +++ b/themes/solarized-dark/theme.ini | |||
@@ -0,0 +1,2 @@ | |||
1 | name = Dark Solarized | ||
2 | requirements[] = default | ||
diff --git a/themes/solarized/theme.ini b/themes/solarized/theme.ini new file mode 100644 index 00000000..703997b9 --- /dev/null +++ b/themes/solarized/theme.ini | |||
@@ -0,0 +1,2 @@ | |||
1 | name = Solarized | ||
2 | requirements[] = default | ||