From 3c133bff4978de20e3f51e1b908790138e97e412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 3 Nov 2014 07:44:56 +0100 Subject: add about page --- inc/poche/Poche.class.php | 2 ++ inc/poche/Tools.class.php | 2 +- themes/baggy/_menu.twig | 1 + themes/baggy/about.twig | 74 +++++++++++++++++++++++++++++++++++++++++++++++ themes/default/_menu.twig | 1 + themes/default/about.twig | 74 +++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 153 insertions(+), 1 deletion(-) create mode 100755 themes/baggy/about.twig create mode 100755 themes/default/about.twig diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index ecb2a51f..16235474 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -314,6 +314,8 @@ class Poche switch ($view) { + case 'about': + break; case 'config': $dev_infos = $this->_getPocheVersion('dev'); $dev = trim($dev_infos[0]); diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index beb4f30c..f803e3b5 100755 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -117,7 +117,7 @@ final class Tools { $views = array( 'install', 'import', 'export', 'config', 'tags', - 'edit-tags', 'view', 'login', 'error' + 'edit-tags', 'view', 'login', 'error', 'about' ); return (in_array($view, $views) ? $view . '.twig' : 'home.twig'); diff --git a/themes/baggy/_menu.twig b/themes/baggy/_menu.twig index 59b6a46b..8b80f65d 100644 --- a/themes/baggy/_menu.twig +++ b/themes/baggy/_menu.twig @@ -11,6 +11,7 @@ {% include '_search-form.twig' %}
  • {% trans "config" %}
  • +
  • {% trans "about" %}
  • {% trans "logout" %}
  • diff --git a/themes/baggy/about.twig b/themes/baggy/about.twig new file mode 100755 index 00000000..ac2fcc8c --- /dev/null +++ b/themes/baggy/about.twig @@ -0,0 +1,74 @@ +{% extends "layout.twig" %} + +{% block title %}{% trans "About" %}{% endblock %} +{% block menu %} +{% include '_menu.twig' %} +{% endblock %} +{% block content %} +

    {% trans "About wallabag" %}

    + +
    +
    {% trans "Project website" %}
    +
    http://www.wallabag.org
    + +
    {% trans "Main developer" %}
    +
    Nicolas Lœuillet{% trans "website" %}
    + +
    {% trans "Contributors:" %}
    +
    {% trans "on Github" %}
    + +
    {% trans "Bug reports" %}
    +
    {% trans "On our support website" %} {% trans "or" %} {% trans "on Github" %}
    + +
    {% trans "License" %}
    +
    MIT
    + +
    {% trans "Version" %}
    +
    {{ constant('POCHE') }}
    +
    + +

    {% trans "wallabag is a read-it-later application: you can save a web page by keeping only content. Elements like ads or menus are deleted." %}

    + +

    {% trans "Helping wallabag" %}

    + +

    {% trans "wallabag is free and opensource. You can help us:" %}

    + +
    +
    {% trans "via Paypal" %}
    + +
    {% trans "via Flattr" %}
    +
    + +

    {% trans "Credits" %}

    +
    +
    PHP Readability
    +
    https://bitbucket.org/fivefilters/php-readability
    + +
    Full Text RSS
    +
    http://code.fivefilters.org/full-text-rss/src
    + +
    logo by Maylis Agniel
    +
    https://github.com/wallabag/logo
    + +
    icons
    +
    http://icomoon.io
    + +
    PHP Simple HTML DOM Parser
    +
    http://simplehtmldom.sourceforge.net/
    + +
    Session
    +
    https://github.com/tontof/kriss_feed/blob/master/src/class/Session.php
    + +
    Twig
    +
    http://twig.sensiolabs.org
    + +
    Flash messages
    +
    https://github.com/plasticbrain/PHP-Flash-Messages
    + +
    Pagination
    +
    https://github.com/daveismyname/pagination
    + +
    PHPePub
    +
    https://github.com/Grandt/PHPePub/
    +
    +{% endblock %} diff --git a/themes/default/_menu.twig b/themes/default/_menu.twig index 9b9a6062..eedf84f1 100644 --- a/themes/default/_menu.twig +++ b/themes/default/_menu.twig @@ -6,6 +6,7 @@
  • {% trans "save a link" %}
  • {% trans "search" %}
  • {% trans "config" %}
  • +
  • {% trans "about" %}
  • {% trans "logout" %}
  • {% include '_pocheit-form.twig' %} diff --git a/themes/default/about.twig b/themes/default/about.twig new file mode 100755 index 00000000..cd274f26 --- /dev/null +++ b/themes/default/about.twig @@ -0,0 +1,74 @@ +{% extends "layout.twig" %} + +{% block title %}{% trans "About wallabag" %}{% endblock %} +{% block menu %} +{% include '_menu.twig' %} +{% endblock %} +{% block content %} +

    {% trans "About wallabag" %}

    + +
    +
    {% trans "Project website" %}
    +
    http://www.wallabag.org
    + +
    {% trans "Main developer" %}
    +
    Nicolas Lœuillet{% trans "website" %}
    + +
    {% trans "Contributors:" %}
    +
    {% trans "on Github" %}
    + +
    {% trans "Bug reports" %}
    +
    {% trans "On our support website" %} {% trans "or" %} {% trans "on Github" %}
    + +
    {% trans "License" %}
    +
    MIT
    + +
    {% trans "Version" %}
    +
    {{ constant('POCHE') }}
    +
    + +

    {% trans "wallabag is a read-it-later application: you can save a web page by keeping only content. Elements like ads or menus are deleted." %}

    + +

    {% trans "Helping wallabag" %}

    + +

    {% trans "wallabag is free and opensource. You can help us:" %}

    + +
    +
    {% trans "via Paypal" %}
    + +
    {% trans "via Flattr" %}
    +
    + +

    {% trans "Credits" %}

    +
    +
    PHP Readability
    +
    https://bitbucket.org/fivefilters/php-readability
    + +
    Full Text RSS
    +
    http://code.fivefilters.org/full-text-rss/src
    + +
    logo by Maylis Agniel
    +
    https://github.com/wallabag/logo
    + +
    icons
    +
    http://icomoon.io
    + +
    PHP Simple HTML DOM Parser
    +
    http://simplehtmldom.sourceforge.net/
    + +
    Session
    +
    https://github.com/tontof/kriss_feed/blob/master/src/class/Session.php
    + +
    Twig
    +
    http://twig.sensiolabs.org
    + +
    Flash messages
    +
    https://github.com/plasticbrain/PHP-Flash-Messages
    + +
    Pagination
    +
    https://github.com/daveismyname/pagination
    + +
    PHPePub
    +
    https://github.com/Grandt/PHPePub/
    +
    +{% endblock %} -- cgit v1.2.3