diff --git a/inc/poche/config.inc.default.php b/inc/poche/config.inc.default.php
index 3eaee3a3e..a159e713c 100755
--- a/inc/poche/config.inc.default.php
+++ b/inc/poche/config.inc.default.php
@@ -52,6 +52,12 @@
@define ('FLATTRABLE', '1');
@define ('FLATTRED', '2');
@define ('CARROT', FALSE);
+
+// ebook
+@define ('EPUB', TRUE);
+@define ('MOBI', FALSE);
+@define ('PDF', FALSE);
+
// display or not print link in article view
@define ('SHOW_PRINTLINK', '1');
// display or not percent of read in article view. Affects only default theme.
diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig
index 426ead1d1..abebe455f 100755
--- a/themes/baggy/home.twig
+++ b/themes/baggy/home.twig
@@ -61,17 +61,17 @@
{% if searchterm is defined %}{% trans "Tag these results as" %} {{ searchterm }}{% endif %}
{% if tag %}
- {% trans "Download as ePub3" %}
- {% trans "Download as Mobi" %}
- {% trans "Download as PDF" %}
+ {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %}
+ {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %}
+ {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %}
{% elseif searchterm is defined %}
- {% trans "Download as ePub3" %}
- {% trans "Download as Mobi" %}
- {% trans "Download as PDF" %}
+ {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %}
+ {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %}
+ {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %}
{% else %}
- {% trans "Download as ePub3" %}
- {% trans "Download as Mobi" %}
- {% trans "Download as PDF" %}
+ {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %}
+ {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %}
+ {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %}
{% endif %}
{% endif %}
{% endblock %}
diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig
index dd2743277..1afd9df6a 100755
--- a/themes/baggy/view.twig
+++ b/themes/baggy/view.twig
@@ -19,9 +19,9 @@
{% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}