From 87090d8ae7582708d20f3c09fb37d780af860bcd Mon Sep 17 00:00:00 2001 From: tcit Date: Thu, 24 Apr 2014 03:04:02 +0200 Subject: Added epub export function --- themes/baggy/config.twig | 3 +++ themes/baggy/view.twig | 1 + 2 files changed, 4 insertions(+) (limited to 'themes/baggy') diff --git a/themes/baggy/config.twig b/themes/baggy/config.twig index 29d9e048..f43f6d01 100755 --- a/themes/baggy/config.twig +++ b/themes/baggy/config.twig @@ -124,6 +124,9 @@ {% if constant('STORAGE') == 'sqlite' %}

{% trans "Click here" %} {% trans "to download your database." %}

{% endif %}

{% trans "Click here" %} {% trans "to export your wallabag data." %}

+ +

Fancy a ebook ?

+ Click on this link to get all your articles in one ebook (ePub).

{% trans "Cache" %}

{% trans "Click here" %} {% trans "to delete cache." %}

diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig index 62af2516..0dff4e27 100755 --- a/themes/baggy/view.twig +++ b/themes/baggy/view.twig @@ -16,6 +16,7 @@ {% if constant('SHARE_SHAARLI') == 1 %}
  • {% trans "shaarli" %}
  • {% endif %} {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}
  • {% trans "flattr" %}
  • {% elseif flattr.status == constant('FLATTRED') %}
  • {% trans "flattr" %} ({{ flattr.numflattrs }})
  • {% endif %}{% endif %} {% if constant('SHOW_PRINTLINK') == 1 %}
  • {% trans "Print" %}
  • {% endif %} +
  • EPUB
  • {% trans "Does this article appear wrong?" %}
  • -- cgit v1.2.3 From 7ec445b06e05d8caa5219c5802007d897c48ab4e Mon Sep 17 00:00:00 2001 From: tcit Date: Fri, 25 Apr 2014 16:20:25 +0200 Subject: Big changes for epub export. Now possible to do it from a tag, a category and a search. Also, improved ebook rendering. --- themes/baggy/config.twig | 2 +- themes/baggy/home.twig | 5 +++++ themes/baggy/view.twig | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'themes/baggy') diff --git a/themes/baggy/config.twig b/themes/baggy/config.twig index f43f6d01..1b8b8648 100755 --- a/themes/baggy/config.twig +++ b/themes/baggy/config.twig @@ -126,7 +126,7 @@

    {% trans "Click here" %} {% trans "to export your wallabag data." %}

    Fancy a ebook ?

    - Click on this link to get all your articles in one ebook (ePub). + Click on this link to get all your articles in one ebook (ePub).

    {% trans "Cache" %}

    {% trans "Click here" %} {% trans "to delete cache." %}

    diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index 5dd91307..301f353a 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -57,6 +57,11 @@ {% endfor %} {% if view == 'home' %}{% if nb_results > 1 %}{{ "Mark all the entries as read" }}{% endif %}{% endif %} + + {% if tag %}{% trans "Download the articles from this tag in an epub" %} + {% elseif search_term is defined %}{% trans "Download the articles from this search in an epub" %} + {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %} + {% endif %} {{ block('pager') }} {% endblock %} diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig index 0dff4e27..af97407d 100755 --- a/themes/baggy/view.twig +++ b/themes/baggy/view.twig @@ -16,7 +16,7 @@ {% if constant('SHARE_SHAARLI') == 1 %}
  • {% trans "shaarli" %}
  • {% endif %} {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}
  • {% trans "flattr" %}
  • {% elseif flattr.status == constant('FLATTRED') %}
  • {% trans "flattr" %} ({{ flattr.numflattrs }})
  • {% endif %}{% endif %} {% if constant('SHOW_PRINTLINK') == 1 %}
  • {% trans "Print" %}
  • {% endif %} -
  • EPUB
  • +
  • EPUB
  • {% trans "Does this article appear wrong?" %}
  • -- cgit v1.2.3 From 2395a3802a821667b1bdd84a848d193d0d27ad2a Mon Sep 17 00:00:00 2001 From: tcit Date: Tue, 29 Apr 2014 19:57:59 +0200 Subject: Changed template organisation --- themes/baggy/home.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/baggy') diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index 301f353a..ef2e097c 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -56,6 +56,7 @@ {% endfor %} + {{ block('pager') }} {% if view == 'home' %}{% if nb_results > 1 %}{{ "Mark all the entries as read" }}{% endif %}{% endif %} {% if tag %}{% trans "Download the articles from this tag in an epub" %} @@ -63,5 +64,4 @@ {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %} {% endif %} - {{ block('pager') }} {% endblock %} -- cgit v1.2.3 From f3f0b11393dd7f11bc1e63df9488c3930c0bc06f Mon Sep 17 00:00:00 2001 From: tcit Date: Thu, 15 May 2014 15:42:36 +0200 Subject: Better names for epub files and epub in all themes now --- themes/baggy/config.twig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'themes/baggy') diff --git a/themes/baggy/config.twig b/themes/baggy/config.twig index 1b8b8648..46735f07 100755 --- a/themes/baggy/config.twig +++ b/themes/baggy/config.twig @@ -125,8 +125,9 @@

    {% trans "Click here" %} {% trans "to download your database." %}

    {% endif %}

    {% trans "Click here" %} {% trans "to export your wallabag data." %}

    -

    Fancy a ebook ?

    - Click on this link to get all your articles in one ebook (ePub). +

    {% trans "Fancy an E-Book ?" %}

    +

    {% trans "Click on this link to get all your articles in one ebook (ePub 3 format)." %} +
    {% trans "This can take a while and can even fail if you have too many articles, depending on your server configuration." %}

    {% trans "Cache" %}

    {% trans "Click here" %} {% trans "to delete cache." %}

    -- cgit v1.2.3