]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
implementing carrot into wallabag
authorThomas Citharel <tcit@tcit.fr>
Wed, 19 Nov 2014 15:27:56 +0000 (16:27 +0100)
committerThomas Citharel <tcit@tcit.fr>
Wed, 19 Nov 2014 15:27:56 +0000 (16:27 +0100)
inc/poche/Poche.class.php
inc/poche/config.inc.default.php
themes/baggy/css/main.css
themes/baggy/view.twig
themes/courgette/_view.twig
themes/courgette/css/style-default.css
themes/courgette/img/default/carrot.png [new file with mode: 0644]
themes/default/css/style-default.css
themes/default/img/default/carrot.png [new file with mode: 0644]
themes/default/view.twig

index 16235474bf601a4cc321bf1513b7d9e59326c1a1..27d6f4a65e1ca22079a700d8dc2cfcdde851e582 100755 (executable)
@@ -812,4 +812,4 @@ class Poche
     }
 
 
-}
+}
\ No newline at end of file
index f666f468eeabc343fad8476707dcd25f9d10e675..21cbaf715b54480578b0f0798278b02a29999112 100755 (executable)
@@ -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);
-
index 028c8b4eeaa76c0c82b906c3937b7644dd7396c0..76d92003e7a346a6a98d9276252c2a6a9ed81351 100755 (executable)
@@ -1046,4 +1046,3 @@ pre code {
     width: 100%;
   }
 }
-
index 53a9ee69223cbf5fcd6602443b27b13276f26b48..fdc544bc54864c0e42f36c4cb883537e611735c7 100755 (executable)
@@ -16,6 +16,7 @@
                 {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&amp;body={{ entry.url|url_encode }}%20via%20@wallabagapp" class="tool email icon icon-mail" title="{% trans "Email" %}"><span>{% trans "Email" %}</span></a></li>{% endif %}
                 {% if constant('SHARE_SHAARLI') == 1 %}<li><a href="{{ constant('SHAARLI_URL') }}/index.php?post={{ entry.url|url_encode }}&amp;title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans "shaarli" %}"><span>{% trans "shaarli" %}</span></a></li>{% endif %}
                 {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr icon icon-flattr" target="_blank" title="{% trans "flattr" %}"><span>{% trans "flattr" %}</span></a></li>{% elseif flattr.status == constant('FLATTRED') %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr icon icon-flattr" target="_blank" title="{% trans "flattr" %}"><span>{% trans "flattr" %}</span> ({{ flattr.numflattrs }})</a></li>{% endif %}{% endif %}
+                {% if constant('CARROT') == 1 %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" title="{% trans "carrot" %}"><span>Carrot</span></a></li>{% endif %}
                 {% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool icon icon-print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %}
                 <li><a href="./?epub&amp;method=id&amp;value={{ entry.id|e }}" title="Generate epub file">EPUB</a></li>
                 <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&amp;body={{ entry.url|url_encode }}" title="{% trans "Does this article appear wrong?" %}" class="tool bad-display icon icon-delete"><span>{% trans "Does this article appear wrong?" %}</span></a></li>
@@ -95,4 +96,4 @@
             });
         });
         </script>
-{% endblock %}
+{% endblock %}
\ No newline at end of file
index c5c916c047bf4fba3d589a1f353605182ea64436..129a622fa684c4153b921c8b803e5a8c6cff7e35 100755 (executable)
@@ -12,6 +12,7 @@
                 {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&amp;body={{ entry.url|url_encode }}%20via%20@wallabagapp" class="tool email" title="{% trans "email" %}"><span>{% trans "email" %}</span></a></li>{% endif %}
                 {% if constant('SHARE_SHAARLI') == 1 %}<li><a href="{{ constant('SHAARLI_URL') }}/index.php?post={{ entry.url|url_encode }}&amp;title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans "shaarli" %}"><span>{% trans "shaarli" %}</span></a></li>{% endif %}
                 {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}<li class="flattrli"><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>{% trans "flattr" %}</span></a></li>{% elseif flattr.status == constant('FLATTRED') %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>{% trans "flattr" %}</span>{{ flattr.numflattrs }}</a></li>{% endif %}{% endif %}
+                {% if constant('CARROT') == 1 %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon" target="_blank" title="{% trans "carrot" %}"><span>{% trans "carrot" %}</span></a></li>{% endif %}
                 <li><a href="./?epub&amp;method=id&amp;value={{ entry.id|e }}" title="Generate epub file">EPUB</a></li>
                 <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&amp;body={{ entry.url|url_encode }}" title="{% trans "this article appears wrong?" %}" class="tool bad-display"><span>{% trans "this article appears wrong?" %}</span></a></li>
             </ul>
index 3377a75be60182606881e56a8fbc8cc8d1d983c8..297f86aecaf5824bf1983d5d14e6d76a8751534b 100755 (executable)
@@ -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 (file)
index 0000000..5fc1727
Binary files /dev/null and b/themes/courgette/img/default/carrot.png differ
index 889a9f5c2235a6e8f87f23ac41d203830f53de41..d00647abc77e62ab52f9a4de5e69e712d57f578e 100755 (executable)
@@ -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 (file)
index 0000000..5fc1727
Binary files /dev/null and b/themes/default/img/default/carrot.png differ
index dbbbde3c05a22da4d57f20d9b2d4c2c59e3e2336..b3f6d50ed5f986883eb3fa3eac02b5ee64cdcaef 100755 (executable)
@@ -15,6 +15,7 @@
                 {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&amp;body={{ entry.url|url_encode }}%20via%20@wallabagapp" class="tool email" title="{% trans "Email" %}"><span>{% trans "Email" %}</span></a></li>{% endif %}
                 {% if constant('SHARE_SHAARLI') == 1 %}<li><a href="{{ constant('SHAARLI_URL') }}/index.php?post={{ entry.url|url_encode }}&amp;title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans "shaarli" %}"><span>{% trans "shaarli" %}</span></a></li>{% endif %}
                 {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>{% trans "flattr" %}</span></a></li>{% elseif flattr.status == constant('FLATTRED') %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>{% trans "flattr" %}</span>{{ flattr.numflattrs }}</a></li>{% endif %}{% endif %}
+                {% if constant('CARROT') == 1 %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon" target="_blank" title="{% trans "carrot" %}"><span>{% trans "carrot" %}</span></a></li>{% endif %}
                 {% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %}
                 <li><a href="./?epub&amp;method=id&amp;value={{ entry.id|e }}" title="Generate epub file">EPUB</a></li>
                 <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&amp;body={{ entry.url|url_encode }}" title="{% trans "Does this article appear wrong?" %}" class="tool bad-display"><span>{% trans "Does this article appear wrong?" %}</span></a></li>
         });
         </script>
 {% endblock %}
-