From: Thomas Citharel Date: Wed, 19 Nov 2014 15:27:56 +0000 (+0100) Subject: implementing carrot into wallabag X-Git-Tag: 1.9beta~51^2~4 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=c8b4ef7fed01c4d94ac9d2325bd2c6e97f831bad;p=github%2Fwallabag%2Fwallabag.git implementing carrot into wallabag --- diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 16235474..27d6f4a6 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -812,4 +812,4 @@ class Poche } -} +} \ No newline at end of file diff --git a/inc/poche/config.inc.default.php b/inc/poche/config.inc.default.php index f666f468..21cbaf71 100755 --- a/inc/poche/config.inc.default.php +++ b/inc/poche/config.inc.default.php @@ -49,6 +49,7 @@ @define ('NOT_FLATTRABLE', '0'); @define ('FLATTRABLE', '1'); @define ('FLATTRED', '2'); +@define ('CARROT', TRUE); // 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. @@ -67,4 +68,3 @@ @define ('IMPORT_LIMIT', 5); //delay between downloads (in sec) @define ('IMPORT_DELAY', 5); - diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css index 028c8b4e..76d92003 100755 --- a/themes/baggy/css/main.css +++ b/themes/baggy/css/main.css @@ -1046,4 +1046,3 @@ pre code { width: 100%; } } - diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig index 53a9ee69..fdc544bc 100755 --- a/themes/baggy/view.twig +++ b/themes/baggy/view.twig @@ -16,6 +16,7 @@ {% if constant('SHARE_MAIL') == 1 %}
  • {% endif %} {% 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('CARROT') == 1 %}
  • Carrot
  • {% endif %} {% if constant('SHOW_PRINTLINK') == 1 %}
  • {% trans "Print" %}
  • {% endif %}
  • EPUB
  • {% trans "Does this article appear wrong?" %}
  • @@ -95,4 +96,4 @@ }); }); -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/themes/courgette/_view.twig b/themes/courgette/_view.twig index c5c916c0..129a622f 100755 --- a/themes/courgette/_view.twig +++ b/themes/courgette/_view.twig @@ -12,6 +12,7 @@ {% if constant('SHARE_MAIL') == 1 %}
  • {% endif %} {% 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('CARROT') == 1 %}
  • {% trans "carrot" %}
  • {% endif %}
  • EPUB
  • {% trans "this article appears wrong?" %}
  • diff --git a/themes/courgette/css/style-default.css b/themes/courgette/css/style-default.css index 3377a75b..297f86ae 100755 --- a/themes/courgette/css/style-default.css +++ b/themes/courgette/css/style-default.css @@ -38,6 +38,10 @@ a.flattr span { background-image: url('../img/default/flattr.png'); } +a.carrot span { + background-image: url('../img/default/carrot.png') +} + a.email span { background-image: url('../img/default/envelop.png'); } @@ -56,4 +60,4 @@ a.bad-display span { a.reading-time span { background-image: url('../img/default/clock.png'); -} +} \ No newline at end of file diff --git a/themes/courgette/img/default/carrot.png b/themes/courgette/img/default/carrot.png new file mode 100644 index 00000000..5fc17273 Binary files /dev/null and b/themes/courgette/img/default/carrot.png differ diff --git a/themes/default/css/style-default.css b/themes/default/css/style-default.css index 889a9f5c..d00647ab 100755 --- a/themes/default/css/style-default.css +++ b/themes/default/css/style-default.css @@ -38,6 +38,10 @@ a.flattr span { background-image: url('../img/default/flattr.png'); } +a.carrot span { + background-image: url('../img/default/carrot.png') +} + a.email span { background-image: url('../img/default/envelop.png'); } diff --git a/themes/default/img/default/carrot.png b/themes/default/img/default/carrot.png new file mode 100644 index 00000000..5fc17273 Binary files /dev/null and b/themes/default/img/default/carrot.png differ diff --git a/themes/default/view.twig b/themes/default/view.twig index dbbbde3c..b3f6d50e 100755 --- a/themes/default/view.twig +++ b/themes/default/view.twig @@ -15,6 +15,7 @@ {% if constant('SHARE_MAIL') == 1 %}
  • {% endif %} {% 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('CARROT') == 1 %}
  • {% trans "carrot" %}
  • {% endif %} {% if constant('SHOW_PRINTLINK') == 1 %}
  • {% trans "Print" %}
  • {% endif %}
  • EPUB
  • {% trans "Does this article appear wrong?" %}
  • @@ -118,4 +119,3 @@ }); {% endblock %} -