diff options
Diffstat (limited to 'src/Wallabag/Wallabag/Resources/views/default')
71 files changed, 1835 insertions, 0 deletions
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_bookmarklet.twig b/src/Wallabag/Wallabag/Resources/views/default/_bookmarklet.twig new file mode 100644 index 00000000..61996353 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_bookmarklet.twig | |||
@@ -0,0 +1,3 @@ | |||
1 | <script type="text/javascript"> | ||
2 | top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="{{poche_url}}tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>" | ||
3 | </script> \ No newline at end of file | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_footer.twig b/src/Wallabag/Wallabag/Resources/views/default/_footer.twig new file mode 100644 index 00000000..213a4aca --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_footer.twig | |||
@@ -0,0 +1,4 @@ | |||
1 | <footer class="w600p center mt3 mb3 smaller txtright"> | ||
2 | <p>{% trans "powered by" %} <a href="http://wallabag.org">wallabag</a></p> | ||
3 | {% if constant('DEBUG_POCHE') == 1 %}<p><strong>{% trans "debug mode is on so cache is off." %} {% trans "your wallabag version:" %}{{constant('WALLABAG')}}. {% trans "storage:" %} {{constant('STORAGE')}}</strong></p>{% endif %} | ||
4 | </footer> \ No newline at end of file | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_head.twig b/src/Wallabag/Wallabag/Resources/views/default/_head.twig new file mode 100755 index 00000000..277e3833 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_head.twig | |||
@@ -0,0 +1,36 @@ | |||
1 | <link rel="apple-touch-icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-152.png" sizes="152x152"> | ||
2 | <link rel="icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-152.png" sizes="152x152"> | ||
3 | |||
4 | <link rel="apple-touch-icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-144.png" sizes="144x144"> | ||
5 | <link rel="icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-144.png" sizes="144x144"> | ||
6 | |||
7 | <link rel="apple-touch-icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-120.png" sizes="120x120"> | ||
8 | <link rel="icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-120.png" sizes="120x120"> | ||
9 | |||
10 | <link rel="apple-touch-icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-114.png" sizes="114x114"> | ||
11 | <link rel="icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-114.png" sizes="114x114"> | ||
12 | |||
13 | <link rel="apple-touch-icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-76.png" sizes="76x76"> | ||
14 | <link rel="icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-76.png" sizes="76x76"> | ||
15 | |||
16 | <link rel="apple-touch-icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-72.png" sizes="72x72"> | ||
17 | <link rel="icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-72.png" sizes="72x72"> | ||
18 | |||
19 | <link rel="apple-touch-icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-57.png" sizes="57x57"> | ||
20 | <link rel="icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon-57.png" sizes="57x57"> | ||
21 | |||
22 | <link rel="apple-touch-icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon.png"> | ||
23 | <link rel="icon" type="image/png" href="{{ poche_url }}themes/_global/img/appicon/apple-touch-icon.png"> | ||
24 | |||
25 | <link rel="shortcut icon" type="image/x-icon" href="{{ poche_url }}themes/_global/img/appicon/favicon.ico"> | ||
26 | |||
27 | <link rel="stylesheet" href="{{ poche_url }}themes/default/css/knacss.css" media="all"> | ||
28 | <link rel="stylesheet" href="{{ poche_url }}themes/default/css/style.css" media="all"> | ||
29 | <link rel="stylesheet" href="{{ poche_url }}themes/{{ theme }}/css/style-{{ theme }}.css" media="all" title="{{ theme }} theme"> | ||
30 | <link rel="stylesheet" href="{{ poche_url }}themes/default/css/messages.css" media="all"> | ||
31 | <link rel="stylesheet" href="{{ poche_url }}themes/default/css/print.css" media="print"> | ||
32 | <script src="{{ poche_url }}themes/_global/js/jquery-2.0.3.min.js"></script> | ||
33 | <script src="{{ poche_url }}themes/_global/js/autoClose.js"></script> | ||
34 | <script src="{{ poche_url }}themes/default/js/closeMessage.js"></script> | ||
35 | <script src="{{ poche_url }}themes/_global/js/saveLink.js"></script> | ||
36 | <script src="{{ poche_url }}themes/_global/js/popupForm.js"></script> | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_highlight.twig b/src/Wallabag/Wallabag/Resources/views/default/_highlight.twig new file mode 100755 index 00000000..cdb7c6bf --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_highlight.twig | |||
@@ -0,0 +1,4 @@ | |||
1 | {# include excelent highlight.js library for code highligting, see http://highlightjs.org/ #} | ||
2 | <link rel="stylesheet" href="{{ poche_url }}themes/default/highlightjs/styles/github.css"> | ||
3 | <script src="{{ poche_url }}themes/default/highlightjs/highlight.pack.js"></script> | ||
4 | <script>hljs.initHighlightingOnLoad();</script> | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_import.twig b/src/Wallabag/Wallabag/Resources/views/default/_import.twig new file mode 100755 index 00000000..c59b7a15 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_import.twig | |||
@@ -0,0 +1,15 @@ | |||
1 | <script type="text/javascript"> | ||
2 | <!-- | ||
3 | $(document).ready(function() { | ||
4 | $("body").css("cursor", "wait"); | ||
5 | |||
6 | setTimeout(function(){ | ||
7 | window.location = './?import'; | ||
8 | }, {{ import.delay }} ); | ||
9 | }); | ||
10 | //--> | ||
11 | </script> | ||
12 | <div class="messages warning"> | ||
13 | <p>{% trans "Download required for " %} {{ import.recordsDownloadRequired }} {% trans "records" %}.</p> | ||
14 | <p>{% trans "Downloading next " %} {{ import.recordsUnderDownload }} {% trans "articles, please wait" %}...</p> | ||
15 | </div> | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_menu.twig b/src/Wallabag/Wallabag/Resources/views/default/_menu.twig new file mode 100644 index 00000000..eedf84f1 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_menu.twig | |||
@@ -0,0 +1,14 @@ | |||
1 | <ul id="links"> | ||
2 | <li><a href="./" {% if view == 'home' %}class="current"{% endif %}>{% trans "unread" %}</a></li> | ||
3 | <li><a href="./?view=fav" {% if view == 'fav' %}class="current"{% endif %}>{% trans "favorites" %}</a></li> | ||
4 | <li><a href="./?view=archive" {% if view == 'archive' %}class="current"{% endif %}>{% trans "archive" %}</a></li> | ||
5 | <li><a href="./?view=tags" {% if view == 'tags' %}class="current"{% endif %}>{% trans "tags" %}</a></li> | ||
6 | <li><a href="javascript: void(null);" id="bagit">{% trans "save a link" %}</a><span id="bagit-arrow"></span></li> | ||
7 | <li><a href="javascript: void(null);" id="search">{% trans "search" %}</a><span id="search-arrow"></span></li> | ||
8 | <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li> | ||
9 | <li><a href="./?view=about" {% if view == 'about' %}class="current"{% endif %}>{% trans "about" %}</a></li> | ||
10 | <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> | ||
11 | </ul> | ||
12 | {% include '_pocheit-form.twig' %} | ||
13 | {% include '_search-form.twig' %} | ||
14 | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_messages.twig b/src/Wallabag/Wallabag/Resources/views/default/_messages.twig new file mode 100644 index 00000000..679aa098 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_messages.twig | |||
@@ -0,0 +1 @@ | |||
{{ messages | raw }} \ No newline at end of file | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_pocheit-form.twig b/src/Wallabag/Wallabag/Resources/views/default/_pocheit-form.twig new file mode 100755 index 00000000..8c982db0 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_pocheit-form.twig | |||
@@ -0,0 +1,8 @@ | |||
1 | <div id="bagit-form" class="messages info"> | ||
2 | <a href="javascript: void(null);" id="bagit-form-close"> </a> | ||
3 | <form method="get" action="index.php" id="bagit-form-form"> | ||
4 | <input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" /> | ||
5 | <input type="submit" value="{% trans "save link!" %}" /> | ||
6 | <div id="add-link-result"></div> | ||
7 | </form> | ||
8 | </div> | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_search-form.twig b/src/Wallabag/Wallabag/Resources/views/default/_search-form.twig new file mode 100755 index 00000000..0cf6097a --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_search-form.twig | |||
@@ -0,0 +1,9 @@ | |||
1 | <div id="search-form" class="messages info"> | ||
2 | <form method="get" action="index.php"> | ||
3 | <p> | ||
4 | <input type="hidden" name="view" value="search"></input> | ||
5 | <label>{% trans "Search" %}</label> : <input type="text" required placeholder="{% trans "Enter your search here" %}" name="search" id="searchfield" /> | ||
6 | <input type="submit" value="{% trans "Search" %} !"></input> | ||
7 | </p> | ||
8 | </form> | ||
9 | </div> | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_sorting.twig b/src/Wallabag/Wallabag/Resources/views/default/_sorting.twig new file mode 100755 index 00000000..3ce9b949 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_sorting.twig | |||
@@ -0,0 +1,6 @@ | |||
1 | {% if entries|length > 1 %} | ||
2 | <ul id="sort"> | ||
3 | <li><a href="./?sort=ia&view={{ view }}{% if searchterm is defined %}&search={{ searchterm }}{% endif %}&id={{ id }}"><img src="{{ poche_url }}themes/{{ theme }}/img/{{ theme }}/top.png" alt="{% trans "by date asc" %}" title="{% trans "by date asc" %}" /></a> {% trans "by date" %} <a href="./?sort=id&view={{ view }}{% if searchterm is defined %}&search={{ searchterm }}{% endif %}&id={{ id }}"><img src="{{ poche_url }}themes/{{ theme }}/img/{{ theme }}/down.png" alt="{% trans "by date desc" %}" title="{% trans "by date desc" %}" /></a></li> | ||
4 | <li><a href="./?sort=ta&view={{ view }}{% if searchterm is defined %}&search={{ searchterm }}{% endif %}&id={{ id }}"><img src="{{ poche_url }}themes/{{ theme }}/img/{{ theme }}/top.png" alt="{% trans "by title asc" %}" title="{% trans "by title asc" %}" /></a> {% trans "by title" %} <a href="./?sort=td&view={{ view }}{% if searchterm is defined %}&search={{ searchterm }}{% endif %}&id={{ id }}"><img src="{{ poche_url }}themes/{{ theme }}/img/{{ theme }}/down.png" alt="{% trans "by title desc" %}" title="{% trans "by title desc" %}" /></a></li> | ||
5 | </ul> | ||
6 | {% endif %} | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/_top.twig b/src/Wallabag/Wallabag/Resources/views/default/_top.twig new file mode 100755 index 00000000..45806f01 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/_top.twig | |||
@@ -0,0 +1,7 @@ | |||
1 | <header class="w600p center mbm"> | ||
2 | <h1> | ||
3 | {% if view == 'home' %}{% block logo %}<img width="100" height="100" src="{{ poche_url }}themes/baggy/img/logo-other_themes.png" alt="wallabag logo" />{% endblock %} | ||
4 | {% else %}<a href="./" title="{% trans "return home" %}" >{{ block('logo') }}</a> | ||
5 | {% endif %} | ||
6 | </h1> | ||
7 | </header> | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/about.twig b/src/Wallabag/Wallabag/Resources/views/default/about.twig new file mode 100755 index 00000000..50ffd8ef --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/about.twig | |||
@@ -0,0 +1,74 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | |||
3 | {% block title %}{% trans "About wallabag" %}{% endblock %} | ||
4 | {% block menu %} | ||
5 | {% include '_menu.twig' %} | ||
6 | {% endblock %} | ||
7 | {% block content %} | ||
8 | <h2>{% trans "About wallabag" %}</h2> | ||
9 | |||
10 | <dl> | ||
11 | <dt>{% trans "Project website" %}</dt> | ||
12 | <dd><a href="http://www.wallabag.org">http://www.wallabag.org</a></dd> | ||
13 | |||
14 | <dt>{% trans "Main developer" %}</dt> | ||
15 | <dd><a href="mailto:nicolas@loeuillet.org">Nicolas Lœuillet</a> — <a href="http://cdetc.fr">{% trans "website" %}</a></dd> | ||
16 | |||
17 | <dt>{% trans "Contributors:" %}</dt> | ||
18 | <dd><a href="https://github.com/wallabag/wallabag/graphs/contributors">{% trans "on Github" %}</a></dd> | ||
19 | |||
20 | <dt>{% trans "Bug reports" %}</dt> | ||
21 | <dd><a href="http://support.wallabag.org">{% trans "On our support website" %}</a> {% trans "or" %} <a href="https://github.com/wallabag/wallabag/issues">{% trans "on Github" %}</a></dd> | ||
22 | |||
23 | <dt>{% trans "License" %}</dt> | ||
24 | <dd><a href="http://en.wikipedia.org/wiki/MIT_License">MIT</a></dd> | ||
25 | |||
26 | <dt>{% trans "Version" %}</dt> | ||
27 | <dd>{{ constant('WALLABAG') }}</dd> | ||
28 | </dl> | ||
29 | |||
30 | <p>{% 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." %}</p> | ||
31 | |||
32 | <h2>{% trans "Helping wallabag" %}</h2> | ||
33 | |||
34 | <p>{% trans "wallabag is free and opensource. You can help us:" %}</p> | ||
35 | |||
36 | <dl> | ||
37 | <dt><a href="http://www.wallabag.org">{% trans "via Paypal" %}</a></dt> | ||
38 | |||
39 | <dt><a href="http://www.wallabag.org">{% trans "via Flattr" %}</a></dt> | ||
40 | </dl> | ||
41 | |||
42 | <h2>{% trans "Credits" %}</h2> | ||
43 | <dl> | ||
44 | <dt>PHP Readability</dt> | ||
45 | <dd><a href="https://bitbucket.org/fivefilters/php-readability">https://bitbucket.org/fivefilters/php-readability</a></dd> | ||
46 | |||
47 | <dt>Full Text RSS</dt> | ||
48 | <dd><a href="http://code.fivefilters.org/full-text-rss/src">http://code.fivefilters.org/full-text-rss/src</a></dd> | ||
49 | |||
50 | <dt>logo by Maylis Agniel</dt> | ||
51 | <dd><a href="https://github.com/wallabag/logo">https://github.com/wallabag/logo</a></dd> | ||
52 | |||
53 | <dt>icons</dt> | ||
54 | <dd><a href="http://icomoon.io">http://icomoon.io</a></dd> | ||
55 | |||
56 | <dt>PHP Simple HTML DOM Parser</dt> | ||
57 | <dd><a href="http://simplehtmldom.sourceforge.net/">http://simplehtmldom.sourceforge.net/</a></dd> | ||
58 | |||
59 | <dt>Session</dt> | ||
60 | <dd><a href="https://github.com/tontof/kriss_feed/blob/master/src/class/Session.php">https://github.com/tontof/kriss_feed/blob/master/src/class/Session.php</a></dd> | ||
61 | |||
62 | <dt>Twig</dt> | ||
63 | <dd><a href="http://twig.sensiolabs.org">http://twig.sensiolabs.org</a></dd> | ||
64 | |||
65 | <dt>Flash messages</dt> | ||
66 | <dd><a href="https://github.com/plasticbrain/PHP-Flash-Messages">https://github.com/plasticbrain/PHP-Flash-Messages</a></dd> | ||
67 | |||
68 | <dt>Pagination</dt> | ||
69 | <dd><a href="https://github.com/daveismyname/pagination">https://github.com/daveismyname/pagination</a></dd> | ||
70 | |||
71 | <dt>PHPePub</dt> | ||
72 | <dd><a href="https://github.com/Grandt/PHPePub/">https://github.com/Grandt/PHPePub/</a></dd> | ||
73 | </dl> | ||
74 | {% endblock %} | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/config.twig b/src/Wallabag/Wallabag/Resources/views/default/config.twig new file mode 100755 index 00000000..b7d91937 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/config.twig | |||
@@ -0,0 +1,188 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | |||
3 | {% block title %}{% trans "config" %}{% endblock %} | ||
4 | {% block menu %} | ||
5 | {% include '_menu.twig' %} | ||
6 | {% endblock %} | ||
7 | {% block content %} | ||
8 | <h2>{% trans "Saving articles" %}</h2> | ||
9 | <p>{% trans "There are several ways to save an article:" %} {% trans "(<a href=\"http://doc.wallabag.org/en/User_documentation/Save_your_first_article\" target=\"_blank\" title=\"Documentation\">?</a>)" %}</p> | ||
10 | <p> | ||
11 | <form method="get" action="index.php"> | ||
12 | <label class="addurl" for="config_plainurl">{% trans "By filling this field" %}:</label><br> | ||
13 | <input required placeholder="example.com/article" class="addurl" id="config_plainurl" name="plainurl" type="url" /> | ||
14 | <input type="submit" value="{% trans "bag it!" %}" /> | ||
15 | </form> | ||
16 | </p> | ||
17 | <h3>Browser Plugins</h3> | ||
18 | <ul> | ||
19 | <li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Firefox Add-On" %}</a></li> | ||
20 | <li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li> | ||
21 | </ul> | ||
22 | <h3>Mobile Apps</h3> | ||
23 | <ul> | ||
24 | <li>Android: <a href="https://f-droid.org/app/fr.gaulupeau.apps.InThePoche" target="_blank">{% trans "via F-Droid" %}</a> {% trans " or " %} <a href="https://play.google.com/store/apps/details?id=fr.gaulupeau.apps.InThePoche" target="_blank">{% trans "via Google Play" %}</a></li> | ||
25 | <li>iOS: <a href="https://itunes.apple.com/app/wallabag/id828331015?mt=8" target="_blank">{% trans "download the application" %}</a></li> | ||
26 | <li>Windows Phone: <a href="http://www.windowsphone.com/en-us/store/app/wallabag/ff890514-348c-4d0b-9b43-153fff3f7450" target="_blank">{% trans "download the application" %}</a></li> | ||
27 | </ul> | ||
28 | <h3>{% trans "Bookmarklet" %}</h3> | ||
29 | <p> | ||
30 | {% trans "Drag & drop this link to your bookmarks bar:" %} <a id="bookmarklet" ondragend="this.click();" href="javascript:if(top['bookmarklet-url@wallabag.org']){top['bookmarklet-url@wallabag.org'];}else{(function(){var%20url%20=%20location.href%20||%20url;window.open('{{ poche_url }}?action=add&url='%20+%20btoa(url),'_self');})();void(0);}">{% trans "bag it!" %}</a> | ||
31 | </p> | ||
32 | |||
33 | <h2>{% trans "Feeds" %}</h2> | ||
34 | {% if token == '' %} | ||
35 | <p>{% trans "Your feed token is currently empty and must first be generated to enable feeds. Click <a href='?feed&action=generate'>here to generate it</a>." %}</p> | ||
36 | {% else %} | ||
37 | <ul> | ||
38 | <li><a href="?feed&type=home&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "Unread feed" %}</a></li> | ||
39 | <li><a href="?feed&type=fav&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "Favorites feed" %}</a></li> | ||
40 | <li><a href="?feed&type=archive&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "Archive feed" %}</a></li> | ||
41 | </ul> | ||
42 | <p class="more-info"> | ||
43 | {% trans "Your token:" %} <strong>{{token}}</strong><br> | ||
44 | {% trans "Your user id:" %} <strong>{{user_id}}</strong><br> | ||
45 | {% trans "You can regenerate your token: <a href='?feed&action=generate'>generate!</a>." %} | ||
46 | </p> | ||
47 | {% endif %} | ||
48 | |||
49 | <h2>{% trans "Change your theme" %}</h2> | ||
50 | <form method="post" action="?updatetheme" name="changethemeform"> | ||
51 | <fieldset class="w500p inline"> | ||
52 | <div class="row"> | ||
53 | <label class="col w150p" for="theme">{% trans "Theme:" %}</label> | ||
54 | <select class="col" id="theme" name="theme"> | ||
55 | {% for key, theme in themes %} | ||
56 | <option value="{{ key }}" {{ theme.current ? 'selected' : '' }}>{{ theme.name }}</option> | ||
57 | {% endfor %} | ||
58 | </select> | ||
59 | </div> | ||
60 | <div class="row mts txtcenter"> | ||
61 | <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button> | ||
62 | </div> | ||
63 | </fieldset> | ||
64 | <input type="hidden" name="returnurl" value="{{ referer }}"> | ||
65 | <input type="hidden" name="token" value="{{ token }}"> | ||
66 | </form> | ||
67 | |||
68 | <h2>{% trans "Change your language" %}</h2> | ||
69 | <form method="post" action="?updatelanguage" name="changelanguageform"> | ||
70 | <fieldset class="w500p inline"> | ||
71 | <div class="row"> | ||
72 | <label class="col w150p" for="language">{% trans "Language:" %}</label> | ||
73 | <select class="col" id="language" name="language"> | ||
74 | {% for language in languages %} | ||
75 | <option value="{{ language.value }}" {{ language.current ? 'selected' : '' }}>{{ language.name }}</option> | ||
76 | {% endfor %} | ||
77 | </select> | ||
78 | </div> | ||
79 | <div class="row mts txtcenter"> | ||
80 | <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button> | ||
81 | </div> | ||
82 | </fieldset> | ||
83 | <input type="hidden" name="returnurl" value="{{ referer }}"> | ||
84 | <input type="hidden" name="token" value="{{ token }}"> | ||
85 | </form> | ||
86 | |||
87 | <h2><a name="import"></a>{% trans "Import" %}</h2> | ||
88 | <p>{% trans "You can import your Pocket, Readability, Instapaper, Wallabag or any data in appropriate json or html format." %}</p> | ||
89 | <p>{% trans "Please select export file on your computer and press \"Import\" button below. Wallabag will parse your file, insert all URLs and start fetching of articles if required." %}</p> | ||
90 | <form method="post" action="?import" name="uploadfile" enctype="multipart/form-data"> | ||
91 | <fieldset class="w500p"> | ||
92 | <div class="row"> | ||
93 | <label class="col w150p" for="file">{% trans "File:" %}</label> | ||
94 | <input class="col" type="file" id="file" name="file" tabindex="4" required="required"> | ||
95 | </div> | ||
96 | <div class="row mts txtcenter"> | ||
97 | <button class="bouton" type="submit" tabindex="4">{% trans "Import" %}</button> | ||
98 | </div> | ||
99 | </fieldset> | ||
100 | </form> | ||
101 | <p><a href="?import">{% trans "You can click here to fetch content for articles with no content." %}</a></p> | ||
102 | <p class="more-info">{% trans "Fetching process is controlled by two constants in your config file: IMPORT_LIMIT (how many articles are fetched at once) and IMPORT_DELAY (delay between fetch of next batch of articles)." %}</p> | ||
103 | |||
104 | <h2>{% trans "Export your wallabag data" %}</h2> | ||
105 | <p><a href="?export" target="_blank">{% trans "Export JSON" %}</a><br> | ||
106 | <span class="more-info">Data will be exported in a single JSON file.</span></p> | ||
107 | |||
108 | <h2>{% trans "Fancy an E-Book ?" %}</h2> | ||
109 | <p>{% trans "Click to get all your articles in one ebook :" %} | ||
110 | <ul> | ||
111 | <li><a href="./?epub&method=all" title="Generate ePub file">ePub 3</a></li> | ||
112 | <li><a href="./?mobi&method=all" title="Generate Mobi file">Mobi</a></li> | ||
113 | <li><a href="./?pdf&method=all" title="Generate PDF file">PDF</a></li> | ||
114 | </ul> | ||
115 | </p> | ||
116 | |||
117 | <span class="more-info">{% trans "This can <b>take a while</b> and can <b>even fail</b> if you have too many articles, depending on your server configuration." %}</span></p> | ||
118 | |||
119 | <h2><a name="cache"></a>{% trans "Cache" %}</h2> | ||
120 | <p><a href="?empty-cache">{% trans "Delete Cache" %}</a><br> | ||
121 | <span class="more-info">Deleting the cache may help with display or other problems.</span></p> | ||
122 | |||
123 | {% if http_auth == 0 %} | ||
124 | <h2>{% trans "Change your password" %}</h2> | ||
125 | <form method="post" action="?config" name="loginform"> | ||
126 | <fieldset class="w500p"> | ||
127 | <div class="row"> | ||
128 | <label class="col w150p" for="password">{% trans "New password:" %}</label> | ||
129 | <input class="col" type="password" id="password" name="password" placeholder="{% trans "Password" %}" tabindex="2"> | ||
130 | </div> | ||
131 | <div class="row"> | ||
132 | <label class="col w150p" for="password_repeat">{% trans "Repeat your new password:" %}</label> | ||
133 | <input class="col" type="password" id="password_repeat" name="password_repeat" placeholder="{% trans "Password" %}" tabindex="3"> | ||
134 | </div> | ||
135 | <div class="row mts txtcenter"> | ||
136 | <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button> | ||
137 | </div> | ||
138 | </fieldset> | ||
139 | <input type="hidden" name="returnurl" value="{{ referer }}"> | ||
140 | <input type="hidden" name="token" value="{{ token }}"> | ||
141 | </form> | ||
142 | {% endif %} | ||
143 | |||
144 | <h2>{% trans 'Add user' %}</h2> | ||
145 | <form method="post" action="?newuser"> | ||
146 | <fieldset class="w500p"> | ||
147 | <div class="row"> | ||
148 | <label class="col w150p" for="newusername">{% trans 'Login for new user' %}</label> | ||
149 | <input class="col" type="text" id="newusername" name="newusername" placeholder="{% trans 'Login' %}" required> | ||
150 | </div> | ||
151 | <div class="row"> | ||
152 | <label class="col w150p" for="password4newuser">{% trans "Password for new user" %}</label> | ||
153 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans 'Password' %}" required> | ||
154 | </div> | ||
155 | <div class="row"> | ||
156 | <label class="col w150p" for="newuseremail">{% trans 'Email for new user (not required)' %}</label> | ||
157 | <input class="col" type="email" id="newuseremail" name="newuseremail" placeholder="{% trans 'Email' %}"> | ||
158 | </div> | ||
159 | <div class="row mts txtcenter"> | ||
160 | <button type="submit">{% trans "Add user" %}</button> | ||
161 | </div> | ||
162 | </fieldset> | ||
163 | </form> | ||
164 | |||
165 | <h2>{% trans "Delete account" %}</h2> | ||
166 | {% if not only_user %}<form method="post" action="?deluser"> | ||
167 | <p>{% trans "You can delete your account by entering your password and validating." %}<br /><b>{% trans "Be careful, data will be erased forever (that is a very long time)." %}</b></p> | ||
168 | <fieldset class="w500p"> | ||
169 | <div class="row"> | ||
170 | <label class="col w150p" for="password4deletinguser">{% trans "Type here your password" %}</label> | ||
171 | <input class="col" type="password" id="password4deletinguser" name="password4deletinguser" placeholder="{% trans "Password" %}"> | ||
172 | </div> | ||
173 | <div class="row mts txtcenter"> | ||
174 | <button type="submit">{% trans "Delete account" %}</button> | ||
175 | </div> | ||
176 | </form> | ||
177 | {% else %}<p>{% trans "You are the only user, you cannot delete your own account." %}</p> | ||
178 | <p>{% trans "To completely remove wallabag, delete the wallabag folder on your web server (and eventual databases)." %}</p>{% endif %} | ||
179 | |||
180 | <h2>{% trans "Upgrading wallabag" %}</h2> | ||
181 | <ul> | ||
182 | <li>{% trans "Installed version" %}: <strong>{{ constant('WALLABAG') }}</strong></li> | ||
183 | <li>{% trans "Latest stable version" %}: {{ prod }}. {% if compare_prod == -1 %}<strong><a href="http://wallabag.org/">{% trans "A more recent stable version is available." %}</a></strong>{% else %}{% trans "You are up to date." %}{% endif %} ({% trans "Last check:" %} {{ check_time_prod }})</li> | ||
184 | {% if constant('DEBUG_POCHE') == 1 %}<li>{% trans "Latest dev version" %}: {{ dev }}. {% if compare_dev == -1 %}<strong><a href="http://wallabag.org/">{% trans "A more recent development version is available." %}</a></strong>{% else %}{% trans "You are up to date." %}{% endif %} ({% trans "Last check:" %} {{ check_time_dev }}){% endif %}</li> | ||
185 | </ul> | ||
186 | <p class="more-info">{% trans "You can clear cache to check the latest release." %}</p> | ||
187 | |||
188 | {% endblock %} | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/edit-tags.twig b/src/Wallabag/Wallabag/Resources/views/default/edit-tags.twig new file mode 100755 index 00000000..c29427e0 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/edit-tags.twig | |||
@@ -0,0 +1,35 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | {% block title %}edit tags{% endblock %} | ||
3 | {% block menu %} | ||
4 | {% include '_menu.twig' %} | ||
5 | {% endblock %} | ||
6 | {% block content %} | ||
7 | |||
8 | <script src="{{ poche_url }}themes/_global/js/jquery-ui-1.10.4.custom.min.js"></script> | ||
9 | <script src="{{ poche_url }}themes/_global/js/autoCompleteTags.js"></script> | ||
10 | <link rel="stylesheet" href="{{ poche_url }}themes/_global/css/jquery-ui-1.10.4.custom.min.css" media="all"> | ||
11 | |||
12 | <div id="article"> | ||
13 | <header class="mbm"> | ||
14 | <h1>{{ entry.title|raw }}</h1> | ||
15 | </header> | ||
16 | </div> | ||
17 | |||
18 | {% if tags is empty %} | ||
19 | {% trans "no tags" %} | ||
20 | {% endif %} | ||
21 | <ul> | ||
22 | {% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&tag_id={{ tag.id }}&id={{ entry_id }}">✘</a></li>{% endfor %} | ||
23 | </ul> | ||
24 | <form method="post" action="./?action=add_tag" id="editTags"> | ||
25 | <input type="hidden" name="entry_id" value="{{ entry_id }}" /> | ||
26 | <label for="value">{% trans "Add tags:" %}</label> | ||
27 | <input type="text" placeholder="{% trans "interview" %}, {% trans "editorial" %}, {% trans "video" %}" id="value" name="value" required="required" /> | ||
28 | <input type="submit" value="Tag" /> | ||
29 | <p>{% trans "Start typing for auto complete." %}<br> | ||
30 | {% trans "You can enter multiple tags, separated by commas." %}</p> | ||
31 | |||
32 | </form> | ||
33 | <br> | ||
34 | <a href="./?view=view&id={{ entry_id }}">« {% trans "return to article" %}</a> | ||
35 | {% endblock %} | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/error.twig b/src/Wallabag/Wallabag/Resources/views/default/error.twig new file mode 100644 index 00000000..528a0985 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/error.twig | |||
@@ -0,0 +1,14 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | {% block title %}{% trans "plop" %}{% endblock %} | ||
3 | {% block content %} | ||
4 | <h1>Errors</h1> | ||
5 | <ol> | ||
6 | {% for message in msg %} | ||
7 | <li>{{message}}</li> | ||
8 | {% endfor %} | ||
9 | </ol> | ||
10 | <p>Don't forget <a href="http://doc.wallabag.org/">the documentation</a>.</p> | ||
11 | <p> | ||
12 | {% trans "You can <a href='wallabag_compatibility_test.php'>check your configuration here</a>." %} | ||
13 | </p> | ||
14 | {% endblock %} | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/export.twig b/src/Wallabag/Wallabag/Resources/views/default/export.twig new file mode 100644 index 00000000..4adb9540 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/export.twig | |||
@@ -0,0 +1 @@ | |||
{{ export }} \ No newline at end of file | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/home.twig b/src/Wallabag/Wallabag/Resources/views/default/home.twig new file mode 100755 index 00000000..b9000559 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/home.twig | |||
@@ -0,0 +1,82 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | {% block title %} | ||
3 | {% if view == 'fav' %} | ||
4 | {% trans "favoris" %} | ||
5 | {% elseif view == 'archive' %} | ||
6 | {% trans "archive" %} | ||
7 | {% else %} | ||
8 | {% trans "unread" %} | ||
9 | {% endif %} | ||
10 | {% endblock %} | ||
11 | {% block menu %} | ||
12 | {% include '_menu.twig' %} | ||
13 | {% endblock %} | ||
14 | {% block precontent %} | ||
15 | |||
16 | {% include '_sorting.twig' %} | ||
17 | {% endblock %} | ||
18 | {% block content %} | ||
19 | |||
20 | {% if includeImport %} | ||
21 | {% include '_import.twig' %} | ||
22 | {% endif %} | ||
23 | |||
24 | {% if tag %} | ||
25 | <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3> | ||
26 | {% endif %} | ||
27 | |||
28 | {% if entries is empty %} | ||
29 | <div class="messages warning"><p>{% trans "No articles found." %}</p></div> | ||
30 | {% else %} | ||
31 | {% block pager %} | ||
32 | {% if nb_results > 1 %} | ||
33 | <div class="results"> | ||
34 | <div class="nb-results">{{ nb_results }} {% trans "results" %}{% if searchterm is defined %}{% trans " found for « " %} {{ searchterm }} »{% endif %}</div> | ||
35 | {{ page_links | raw }} | ||
36 | </div> | ||
37 | {% elseif nb_results == 1 %} | ||
38 | {% if searchterm is defined %} | ||
39 | <div class="results"> | ||
40 | <div class="nb-results">{% trans "Only one result found for " %} « {{ searchterm }} »</div> | ||
41 | </div> | ||
42 | {% endif %} | ||
43 | {% endif %} | ||
44 | {% endblock %} | ||
45 | {% for entry in entries %} | ||
46 | <div id="entry-{{ entry.id|e }}" class="entrie"> | ||
47 | <h2><a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2> | ||
48 | <ul class="tools"> | ||
49 | <li><a title="{% trans "Toggle mark as read" %}" class="tool {% if entry.is_read == 0 %}archive-off{% else %}archive{% endif %}" href="./?action=toggle_archive&id={{ entry.id|e }}"><span>{% trans "Toggle mark as read" %}</span></a></li> | ||
50 | <li><a title="{% trans "toggle favorite" %}" class="tool {% if entry.is_fav == 0 %}fav-off{% else %}fav{% endif %}" href="./?action=toggle_fav&id={{ entry.id|e }}"><span>{% trans "toggle favorite" %}</span></a></li> | ||
51 | <li><a title="{% trans "delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans "delete" %}</span></a></li> | ||
52 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}" class="tool link"><span>{{ entry.url | e | getDomain }}</span></a></li> | ||
53 | <li><a target="_blank" title="{% trans "estimated reading time:" %} {{ entry.content| getReadingTime }} min" class="reading-time"><span>{{ entry.content| getReadingTime }} min</span></a></li> | ||
54 | </ul> | ||
55 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | ||
56 | </div> | ||
57 | {% endfor %} | ||
58 | |||
59 | {{ block('pager') }} | ||
60 | {% if view == 'home' %}{% if nb_results > 1 %}<p><a title="{% trans "Mark all the entries as read" %}" href="./?action=archive_all">{% trans "Mark all the entries as read" %}</a></p>{% endif %}{% endif %} | ||
61 | {% if searchterm is defined %}<a title="{% trans "Tag these results as" %} {{ searchterm }}" href="./?action=add_tag&search={{ searchterm }}">{% trans "Tag these results as" %} {{ searchterm }}</a>{% endif %}<br /> | ||
62 | |||
63 | {% if searchterm is defined %}<a title="{% trans "Delete results matching" %} {{ searchterm }}" href="./?action=delete&search={{ searchterm }}">{% trans "Delete results matching" %} {{ searchterm }}</a>{% endif %}<br /> | ||
64 | |||
65 | {% if tag %}<a title="{% trans "Mark all articles from this tag as read" %}" href="./?action=toggle_archive&tag_id={{ tag.id }}">{% trans "Mark all articles from this tag as read" %}</a><br />{% endif %} | ||
66 | |||
67 | {% if tag %} | ||
68 | {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this tag in an epub file" %}" href="./?epub&method=tag&value={{ tag.value }}">{% trans "Download as ePub3" %}</a>{% endif %} | ||
69 | {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this tag in a mobi file" %}" href="./?mobi&method=tag&value={{ tag.value }}">{% trans "Download as Mobi" %}</a>{% endif %} | ||
70 | {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this tag in a pdf file" %}" href="./?pdf&method=tag&value={{ tag.value }}">{% trans "Download as PDF" %}</a>{% endif %} | ||
71 | {% elseif searchterm is defined %} | ||
72 | {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this search in an epub" %}" href="./?epub&method=search&value={{ searchterm }}">{% trans "Download as ePub3" %}</a>{% endif %} | ||
73 | {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this search in a mobi file" %}" href="./?mobi&method=search&value={{ searchterm }}">{% trans "Download as Mobi" %}</a>{% endif %} | ||
74 | {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this search in a pdf file" %}" href="./?pdf&method=search&value={{ searchterm }}">{% trans "Download as PDF" %}</a>{% endif %} | ||
75 | {% else %} | ||
76 | {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this category in an epub" %}" href="./?epub&method=category&value={{ view }}">{% trans "Download as ePub3" %}</a>{% endif %} | ||
77 | {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this category in a mobi file" %}" href="./?mobi&method=category&value={{ view }}">{% trans "Download as Mobi" %}</a>{% endif %} | ||
78 | {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this category in a pdf file" %}" href="./?pdf&method=category&value={{ view }}">{% trans "Download as PDF" %}</a>{% endif %} | ||
79 | {% endif %} | ||
80 | |||
81 | {% endif %} | ||
82 | {% endblock %} | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/install.twig b/src/Wallabag/Wallabag/Resources/views/default/install.twig new file mode 100644 index 00000000..c89c7e47 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/install.twig | |||
@@ -0,0 +1,28 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | {% block title %}{% trans "installation" %}{% endblock %} | ||
3 | {% block content %} | ||
4 | <form method="post" action="?install" name="loginform"> | ||
5 | <fieldset class="w500p center"> | ||
6 | <h2 class="mbs txtcenter">{% trans "install your wallabag" %}</h2> | ||
7 | <p> | ||
8 | {% trans "wallabag is still not installed. Please fill the below form to install it. Don't hesitate to <a href='http://doc.wallabag.org/'>read the documentation on wallabag website</a>." %} | ||
9 | </p> | ||
10 | <p class="row"> | ||
11 | <label class="col w150p" for="login">{% trans "Login" %}</label> | ||
12 | <input class="col" type="text" id="login" name="login" placeholder="Login" tabindex="1" autofocus /> | ||
13 | </p> | ||
14 | <p class="row"> | ||
15 | <label class="col w150p" for="password">{% trans "Password" %}</label> | ||
16 | <input class="col" type="password" id="password" name="password" placeholder="Password" tabindex="2"> | ||
17 | </p> | ||
18 | <p class="row"> | ||
19 | <label class="col w150p" for="password_repeat">{% trans "Repeat your password" %}</label> | ||
20 | <input class="col" type="password" id="password_repeat" name="password_repeat" placeholder="Password" tabindex="3"> | ||
21 | </p> | ||
22 | <p class="row mts txtcenter"> | ||
23 | <button class="bouton" type="submit" tabindex="4">{% trans "Install" %}</button> | ||
24 | </p> | ||
25 | </fieldset> | ||
26 | <input type="hidden" name="token" value="{{ token }}"> | ||
27 | </form> | ||
28 | {% endblock %} | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/layout.twig b/src/Wallabag/Wallabag/Resources/views/default/layout.twig new file mode 100644 index 00000000..dfebc3ea --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/layout.twig | |||
@@ -0,0 +1,31 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!--[if lte IE 6]><html class="no-js ie6 ie67 ie678" lang="{{ lang }}"><![endif]--> | ||
3 | <!--[if lte IE 7]><html class="no-js ie7 ie67 ie678" lang="{{ lang }}"><![endif]--> | ||
4 | <!--[if IE 8]><html class="no-js ie8 ie678" lang="{{ lang }}"><![endif]--> | ||
5 | <!--[if gt IE 8]><html class="no-js" lang="{{ lang }}"><![endif]--> | ||
6 | <html lang="{{ lang }}"> | ||
7 | <head> | ||
8 | <meta name="viewport" content="initial-scale=1.0"> | ||
9 | <meta charset="utf-8"> | ||
10 | <!--[if IE]> | ||
11 | <meta http-equiv="X-UA-Compatible" content="IE=10"> | ||
12 | <![endif]--> | ||
13 | <title>{% block title %}{% endblock %} - wallabag</title> | ||
14 | {% include '_head.twig' %} | ||
15 | {% include '_bookmarklet.twig' %} | ||
16 | </head> | ||
17 | <body> | ||
18 | {% include '_top.twig' %} | ||
19 | <div id="main"> | ||
20 | {% block menu %}{% endblock %} | ||
21 | {% block precontent %}{% endblock %} | ||
22 | {% block messages %} | ||
23 | {% include '_messages.twig' %} | ||
24 | {% endblock %} | ||
25 | <div id="content" class="w600p center"> | ||
26 | {% block content %}{% endblock %} | ||
27 | </div> | ||
28 | </div> | ||
29 | {% include '_footer.twig' %} | ||
30 | </body> | ||
31 | </html> \ No newline at end of file | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/login.twig b/src/Wallabag/Wallabag/Resources/views/default/login.twig new file mode 100644 index 00000000..b9f8b497 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/login.twig | |||
@@ -0,0 +1,34 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | |||
3 | {% block title %}{% trans "login to your wallabag" %}{% endblock %} | ||
4 | {% block content %} | ||
5 | {% if http_auth == 0 %} | ||
6 | <form method="post" action="?login" name="loginform"> | ||
7 | <fieldset class="w500p center"> | ||
8 | <h2 class="mbs txtcenter">{% trans "Login to wallabag" %}</h2> | ||
9 | {% if constant('MODE_DEMO') == 1 %}<p>{% trans "you are in demo mode, some features may be disabled." %}</p>{% endif %} | ||
10 | <div class="row"> | ||
11 | <label class="col w150p" for="login">{% trans "Username" %}</label> | ||
12 | <input class="col" type="text" id="login" name="login" placeholder="Login" tabindex="1" autofocus {% if constant('MODE_DEMO') == 1 %}value="poche"{% endif %} /> | ||
13 | </div> | ||
14 | |||
15 | <div class="row"> | ||
16 | <label class="col w150p" for="password">{% trans "Password" %}</label> | ||
17 | <input class="col" type="password" id="password" name="password" placeholder="Password" tabindex="2" {% if constant('MODE_DEMO') == 1 %}value="poche"{% endif %} /> | ||
18 | </div> | ||
19 | <div class="row"> | ||
20 | <label class="col w150p" for="longlastingsession">{% trans "Stay signed in" %}</label> | ||
21 | <div class="col"> | ||
22 | <input type="checkbox" id="longlastingsession" name="longlastingsession" tabindex="3"> | ||
23 | <small class="inbl">{% trans "(Do not check on public computers)" %}</small> | ||
24 | </div> | ||
25 | </div> | ||
26 | <div class="row mts txtcenter"> | ||
27 | <button class="bouton" type="submit" tabindex="4">{% trans "Sign in" %}</button> | ||
28 | </div> | ||
29 | </fieldset> | ||
30 | <input type="hidden" name="returnurl" value="{{ referer }}"> | ||
31 | <input type="hidden" name="token" value="{{ token }}"> | ||
32 | </form> | ||
33 | {% endif %} | ||
34 | {% endblock %} | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/animated-overlay.gif b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/animated-overlay.gif new file mode 100644 index 00000000..d441f75e --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/animated-overlay.gif | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_flat_0_aaaaaa_40x100.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_flat_0_aaaaaa_40x100.png new file mode 100644 index 00000000..9f10cb65 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_flat_0_aaaaaa_40x100.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_flat_75_ffffff_40x100.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_flat_75_ffffff_40x100.png new file mode 100644 index 00000000..b89b914b --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_flat_75_ffffff_40x100.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_55_fbf9ee_1x400.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_55_fbf9ee_1x400.png new file mode 100644 index 00000000..780d3ffd --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_55_fbf9ee_1x400.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_65_ffffff_1x400.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_65_ffffff_1x400.png new file mode 100644 index 00000000..da53255b --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_65_ffffff_1x400.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_75_dadada_1x400.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_75_dadada_1x400.png new file mode 100644 index 00000000..f6306608 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_75_dadada_1x400.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_75_e6e6e6_1x400.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_75_e6e6e6_1x400.png new file mode 100644 index 00000000..7d347065 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_75_e6e6e6_1x400.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_95_fef1ec_1x400.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_95_fef1ec_1x400.png new file mode 100644 index 00000000..533c4900 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_glass_95_fef1ec_1x400.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png new file mode 100644 index 00000000..bf3a9481 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_222222_256x240.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_222222_256x240.png new file mode 100644 index 00000000..c1cb1170 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_222222_256x240.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_2e83ff_256x240.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_2e83ff_256x240.png new file mode 100644 index 00000000..84b601bf --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_2e83ff_256x240.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_454545_256x240.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_454545_256x240.png new file mode 100644 index 00000000..b6db1acd --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_454545_256x240.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_888888_256x240.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_888888_256x240.png new file mode 100644 index 00000000..feea0e20 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_888888_256x240.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_cd0a0a_256x240.png b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_cd0a0a_256x240.png new file mode 100644 index 00000000..ed5b6b09 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/images/ui-icons_cd0a0a_256x240.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/knacss.css b/src/Wallabag/Wallabag/Resources/views/default/public/css/knacss.css new file mode 100644 index 00000000..ca0696b7 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/knacss.css | |||
@@ -0,0 +1 @@ | |||
html{font-size:62.5%}body{font-family:"Century Gothic",helvetica,arial,sans-serif;font-size:1.4em;line-height:1.5;color:#000;background-color:#FFF}p,ul,ol,dl,blockquote,pre,td,th,label,textarea,caption,details,figure,hgroup{margin:.75em 0 0;font-size:1em;line-height:1.5}h1,.h1-like{margin:.8077em 0 0 0;font-size:1.8571em;font-weight:normal;line-height:1.6154em}h2,.h2-like{margin:.875em 0 0 0;font-size:1.7143em;font-weight:normal;line-height:1.75em}h3,.h3-like{margin:.9545em 0 0 0;font-size:1.5714em;font-weight:normal;line-height:1.909em}h4,.h4-like{margin:1.05em 0 0 0;font-size:1.4286em;font-weight:normal;line-height:1.05em}h5,.h5-like{margin:1.1667em 0 0 0;font-size:1.2857em;font-weight:normal;line-height:1.1667em}h6,.h6-like{margin:1.3125em 0 0 0;font-size:1.1429em;font-weight:normal;line-height:1.3125em}.smaller{font-size:.7143em}.small{font-size:.8571em}.big{font-size:1.1429em}.bigger{font-size:1.2857em}.biggest{font-size:1.4286em}html,body,textarea,figure,label{margin:0;padding:0}ul,ol{padding-left:2em}code,pre,samp,kbd{font-family:consolas,'DejaVu Sans Mono',courier,monospace;line-height:1em;white-space:pre-wrap}code,kbd,mark{border-radius:2px}em{font-style:italic}strong{font-weight:bold}kbd{padding:0 2px;border:1px solid #999}code{padding:2px 4px;color:#B11;background:rgba(0,0,0,.04)}mark{padding:2px 4px;background:#FF0}table{margin-bottom:1.5em}p:first-child,ul:first-child,ol:first-child,dl:first-child,blockquote:first-child,pre:first-child,h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child,h6:first-child{margin-top:0}li p,li ul,li ol{margin-top:0;margin-bottom:0}img,table,td,blockquote,code,pre,textarea,input,video{max-width:100%}div,textarea,table,td,th,code,pre,samp{word-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;-o-hyphens:auto;hyphens:auto}img{height:auto;vertical-align:middle}#map_canvas img,.gmnoprint img{max-width:none}a img{border:0}body > script{display:none !important}.skip-links{position:absolute}.skip-links a{position:absolute;left:-7000px;padding:.5em;text-decoration:none;color:#FFF;background:#000}.skip-links a:focus{position:static}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mod,.item{overflow:hidden}.row{display:table;width:100%;table-layout:fixed}.row > *,.col{display:table-cell;vertical-align:top}.clear,.line,.row{clear:both}.clearfix:after,.line:after,.mod:after{content:"";display:table;clear:both}.left{float:left}img.left{margin-right:1em}.right{float:right}img.right{margin-left:1em}img.left,img.right{margin-bottom:5px}.center{margin-right:auto;margin-left:auto}.txtleft{text-align:left}.txtright{text-align:right}.txtcenter{text-align:center}.inbl{display:inline-block;margin-right:-.25em;vertical-align:top}.w10{width:10%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w33{width:33.333%}.w40{width:40%}.w50{width:50%}.w60{width:60%}.w66{width:66.666%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w90{width:90%}.w100{width:100%}.w50p{width:50px}.w100p{width:100px}.w150p{width:150px}.w200p{width:200px}.w300p{width:300px}.w400p{width:400px}.w500p{width:500px}.w600p{width:600px}.w700p{width:700px}.w800p{width:800px}.w960p{width:960px}.mw960p{max-width:960px}.m-reset,.ma0{margin:0 !important}.p-reset,.pa0{padding:0 !important}.ma1,.mas{margin:10px !important}.ma2,.mam{margin:20px !important}.ma3,.mal{margin:30px !important}.pa1,.pas{padding:10px}.pa2,.pam{padding:20px}.pa3,.pal{padding:30px}.mt0,.mtn{margin-top:0 !important}.mt1,.mts{margin-top:10px !important}.mt2,.mtm{margin-top:20px !important}.mt3,.mtl{margin-top:30px !important}.mr0,.mrn{margin-right:0}.mr1,.mrs{margin-right:10px}.mr2,.mrm{margin-right:20px}.mr3,.mrl{margin-right:30px}.mb0,.mbn{margin-bottom:0 !important}.mb1,.mbs{margin-bottom:10px !important}.mb2,.mbm{margin-bottom:20px !important}.mb3,.mbl{margin-bottom:30px !important}.ml0,.mln{margin-left:0}.ml1,.mls{margin-left:10px}.ml2,.mlm{margin-left:20px}.ml3,.mll{margin-left:30px}.pt0,.ptn{padding-top:0}.pt1,.pts{padding-top:10px}.pt2,.ptm{padding-top:20px}.pt3,.ptl{padding-top:30px}.pr0,.prn{padding-right:0}.pr1,.prs{padding-right:10px}.pr2,.prm{padding-right:20px}.pr3,.prl{padding-right:30px}.pb0,.pbn{padding-bottom:0}.pb1,.pbs{padding-bottom:10px}.pb2,.pbm{padding-bottom:20px}.pb3,.pbl{padding-bottom:30px}.pl0,.pln{padding-left:0}.pl1,.pls{padding-left:10px}.pl2,.plm{padding-left:20px}.pl3,.pll{padding-left:30px}.visually-hidden{position:absolute;left:-7000px;overflow:hidden}[dir=rtl] .visually-hidden{right:-7000px;left:auto}.desktop-hidden{display:none}form,fieldset{border:none}input,button,select,label,.btn{font-family:inherit;vertical-align:middle}textarea{font-family:inherit;resize:vertical}.ie67 .clearfix,.ie67 .line,.ie67 .mod,.ie67 .row,.ie67 .col{zoom:1}.ie67 .btn,.ie67 .col,.ie67 .inbl{display:inline;zoom:1}.ie8 img{width:auto}@media print{p,blockquote{orphans:2;widows:2}blockquote,ul,ol{page-break-inside:avoid}h1,h2,h3,caption{page-break-after:avoid}}@media(orientation:landscape)and(max-device-width:768px){html,body{-webkit-text-size-adjust:100%}}[class*=grid] > *{float:left}[class*=grid] > * + *{margin-left:2%}.grid2 > *{width:49%}.grid3 > *{width:32%}.grid4 > *{width:23.5%}.grid5 > *{width:18.4%}.grid6 > *{width:15%}.grid2-1 > *:first-child,.grid1-2 > * + *{width:66%}.grid1-2 > *:first-child,.grid2-1 > * + *{width:32%}.grid1-3 > *:first-child,.grid3-1 > * + *{width:23.5%}.grid3-1 > *:first-child,.grid1-3 > * + *{width:74.5%}table,.table{max-width:100%;border-collapse:collapse;table-layout:fixed;vertical-align:top}table{width:100%}.table{display:table}caption{padding:10px;font-style:italic;color:#555}table{border:1px solid #CCC}tr > * + *{border-left:1px solid #CCC}th,td{padding:.3em .8em;border-bottom:1px solid #CCC;text-align:left}td{color:#333}.alternate{border:0}.alternate tbody{border:1px solid #CCC}.alternate thead tr > * + *{border-left:0}.alternate tbody tr > * + *{border-left:1px solid #CCC}.alternate-vert{border:0;border-right:1px solid #CCC}.alternate-vert tr >:first-child{border-bottom:0}.alternate-vert tr > * + *{border-top:1px solid #CCC}.striped tbody tr:nth-child(odd){background:#EEE;background:rgba(0,0,0,.05)}.striped-vert tr >:first-child{background:#EEE;background:rgba(0,0,0,.05)}.btn{display:inline-block}label{display:inline-block;vertical-align:middle;cursor:pointer}legend{border:0;white-space:normal}button,input,select{margin:0;font-family:"Century Gothic",helvetica,arial,sans-serif;font-size:100%;vertical-align:middle}textarea{min-height:5em;overflow:auto;font-size:1.75em;vertical-align:top;resize:vertical}}ol.styled{counter-reset:styled}ol.styled > li{counter-increment:styled;margin-bottom:.3em;list-style-type:none}ol.styled > li:before{content:counter(styled);display:inline-block;width:1em;height:1em;margin-right:.4em;padding:2px;border-radius:50%;text-align:center;text-indent:-.1em;font-size:.9em;line-height:1;vertical-align:middle;color:#FFF;background:rgba(0,0,0,.5)}@media(min-width:1280px){.large-hidden,.tablet-hidden{display:none !important}.large-visible{display:block !important}.large-no-float{float:none}.large-inbl{display:inline-block;float:none;vertical-align:top}.large-row{display:table;width:100% !important;table-layout:fixed}.large-col{display:table-cell;vertical-align:top}.large-w25{width:25% !important}.large-w33{width:33.3333% !important}.large-w50{width:50% !important}.large-w66{width:66.6666% !important}.large-w75{width:75% !important}.large-w100{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-right:0 !important;margin-left:0 !important;border:0}.large-ma0,.large-man{margin:0 !important}}@media(max-width:768px){.w60,.w66,.w70,.w75,.w80,.w90,.w100,.w600p,.w700p,.w800p,.w960p,.mw960p,.medium-wauto{width:auto}.medium-hidden,.tablet-hidden{display:none !important}.medium-visible{display:block !important}.medium-no-float{float:none}.medium-inbl{display:inline-block;float:none;vertical-align:top}.medium-row{display:table;width:100% !important;table-layout:fixed}.medium-col{display:table-cell;vertical-align:top}.medium-w25{width:25% !important}.medium-w33{width:33.3333% !important}.medium-w50{width:50% !important}.medium-w66{width:66.6666% !important}.medium-w75{width:75% !important}.medium-w100{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-right:0 !important;margin-left:0 !important;border:0}.medium-ma0,.medium-man{margin:0 !important}.grid4 > *{width:49% !important}.grid4 >:first-child + * + *{margin-left:0 !important}.grid6 > *{width:32% !important}.grid6 >:first-child + * + * + *{margin-left:0 !important}}@media(max-width:640px){.mod,.item,.col,fieldset{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-right:0 !important;margin-left:0 !important;border:0}.w30,.w33,.w40,.w50,.w300p,.w400p,.w500p{width:auto}.row{display:block !important;width:100% !important}.tiny-hidden,.phone-hidden{display:none !important}.tiny-visible{display:block !important}.tiny-no-float{float:none}.tiny-inbl{display:inline-block;float:none;vertical-align:top}.tiny-row{display:table;width:100% !important;table-layout:fixed}.tiny-col{display:table-cell;vertical-align:top}th,td{display:block !important;width:auto !important;text-align:left !important}thead{display:none}.tiny-w25{width:25% !important}.tiny-w33{width:33.3333% !important}.tiny-w50{width:50% !important}.tiny-w66{width:66.6666% !important}.tiny-w75{width:75% !important}.tiny-w100{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-right:0 !important;margin-left:0 !important;border:0}.tiny-ma0,.tiny-man{margin:0 !important}} \ No newline at end of file | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/messages.css b/src/Wallabag/Wallabag/Resources/views/default/public/css/messages.css new file mode 100644 index 00000000..46b54795 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/messages.css | |||
@@ -0,0 +1,75 @@ | |||
1 | .messages { | ||
2 | display: block; | ||
3 | clear: both; | ||
4 | width: 400px; | ||
5 | margin: 10px auto 10px; | ||
6 | padding: 10px 0; | ||
7 | -moz-border-radius: 4px; | ||
8 | border-radius: 4px; | ||
9 | } | ||
10 | |||
11 | .messages a.closeMessage { | ||
12 | display: none; | ||
13 | float: right; | ||
14 | width: 16px; | ||
15 | height: 16px; | ||
16 | margin: -14px -8px 0 0; | ||
17 | background: url(../img/messages/close.png) no-repeat; | ||
18 | } | ||
19 | |||
20 | /*.messages:hover a.closeMessage { visibility:visible; }*/ | ||
21 | |||
22 | .messages p { | ||
23 | margin: 3px 0 3px 10px !important; | ||
24 | padding: 0 10px 0 23px !important; | ||
25 | font-size: 14px; | ||
26 | line-height: 16px; | ||
27 | } | ||
28 | |||
29 | .messages.error { | ||
30 | border: 1px solid #c42608; | ||
31 | color: #c00 !important; | ||
32 | background: #fff0ef; | ||
33 | } | ||
34 | |||
35 | .messages.error p { | ||
36 | color: #c00 !important; | ||
37 | background: url(../img/messages/cross.png) no-repeat 0 50%; | ||
38 | } | ||
39 | |||
40 | .messages.success { | ||
41 | border: 1px solid #6dc70c; | ||
42 | background: #e0fbcc; | ||
43 | } | ||
44 | |||
45 | .messages.success p { | ||
46 | color: #2b6301 !important; | ||
47 | background: url(../img/messages/tick.png) no-repeat 0 50%; | ||
48 | } | ||
49 | |||
50 | .messages.warning { | ||
51 | border: 1px solid #ebcd41; | ||
52 | color: #000; | ||
53 | background: #fffcd3; | ||
54 | } | ||
55 | |||
56 | .messages.warning p { | ||
57 | color: #5f4e01; | ||
58 | background: url(../img/messages/warning.png) no-repeat 0 50%; | ||
59 | } | ||
60 | |||
61 | .messages.information, | ||
62 | .messages.info { | ||
63 | border: 1px solid #82aee7; | ||
64 | background: #dfebfb; | ||
65 | } | ||
66 | |||
67 | .messages.information p, | ||
68 | .messages.info p { | ||
69 | color: #064393; | ||
70 | background: url(../img/messages/help.png) no-repeat 0 50%; | ||
71 | } | ||
72 | |||
73 | .messages.information a { | ||
74 | text-decoration: underline; | ||
75 | } | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/print.css b/src/Wallabag/Wallabag/Resources/views/default/public/css/print.css new file mode 100644 index 00000000..625478e1 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/print.css | |||
@@ -0,0 +1,53 @@ | |||
1 | /* ### Layout ### */ | ||
2 | |||
3 | body { | ||
4 | font-family: Serif; | ||
5 | background-color: #fff; | ||
6 | } | ||
7 | |||
8 | @page { | ||
9 | margin: 1cm; | ||
10 | } | ||
11 | |||
12 | img { | ||
13 | max-width: 100% !important; | ||
14 | } | ||
15 | |||
16 | /* ### Content ### */ | ||
17 | |||
18 | /* Hide useless blocks */ | ||
19 | body > header, | ||
20 | #links, | ||
21 | #sort, | ||
22 | body > footer, | ||
23 | .top_link, | ||
24 | div.tools, | ||
25 | header div, | ||
26 | .messages, | ||
27 | .entrie + .results, | ||
28 | #article_toolbar { | ||
29 | display: none !important; | ||
30 | } | ||
31 | |||
32 | article { | ||
33 | border: none !important; | ||
34 | } | ||
35 | |||
36 | pre code { | ||
37 | line-height: 1.6em; | ||
38 | } | ||
39 | |||
40 | /* Add URL after links */ | ||
41 | .vieworiginal a:after { | ||
42 | content: " (" attr(href) ")"; | ||
43 | } | ||
44 | |||
45 | /* Add explanation after abbr */ | ||
46 | abbr[title]:after { | ||
47 | content: " (" attr(title) ")"; | ||
48 | } | ||
49 | |||
50 | /* Change border on current pager item */ | ||
51 | .pagination span.current { | ||
52 | border-style: dashed; | ||
53 | } | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/style-default.css b/src/Wallabag/Wallabag/Resources/views/default/public/css/style-default.css new file mode 100755 index 00000000..4406d48f --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/style-default.css | |||
@@ -0,0 +1,69 @@ | |||
1 | a.back span { | ||
2 | background-image: url('../img/default/left.png'); | ||
3 | } | ||
4 | |||
5 | a.top span { | ||
6 | background-image: url('../img/default/top.png'); | ||
7 | } | ||
8 | |||
9 | a.fav span, | ||
10 | a.fav-off span:hover { | ||
11 | background-image: url('../img/default/star-on.png'); | ||
12 | } | ||
13 | |||
14 | a.fav span:hover, | ||
15 | a.fav-off span { | ||
16 | background-image: url('../img/default/star-off.png'); | ||
17 | } | ||
18 | |||
19 | a.archive span, | ||
20 | a.archive-off span:hover { | ||
21 | background-image: url('../img/default/checkmark-on.png'); | ||
22 | } | ||
23 | |||
24 | a.archive span:hover, | ||
25 | a.archive-off span { | ||
26 | background-image: url('../img/default/checkmark-off.png'); | ||
27 | } | ||
28 | |||
29 | a.twitter span { | ||
30 | background-image: url('../img/default/twitter.png'); | ||
31 | } | ||
32 | |||
33 | a.shaarli span { | ||
34 | background-image: url('../img/default/shaarli.png'); | ||
35 | } | ||
36 | |||
37 | a.flattr span { | ||
38 | background-image: url('../img/default/flattr.png'); | ||
39 | } | ||
40 | |||
41 | a.carrot span { | ||
42 | background-image: url('../../_global/img/icons/carrot-icon--black.png'); | ||
43 | background-size: 16px 16px; | ||
44 | } | ||
45 | |||
46 | a.diaspora span { | ||
47 | background-image: url('../../_global/img/icons/diaspora-icon--black.png'); | ||
48 | background-size: 16px 16px; | ||
49 | } | ||
50 | |||
51 | a.email span { | ||
52 | background-image: url('../img/default/envelop.png'); | ||
53 | } | ||
54 | |||
55 | a.delete span { | ||
56 | background-image: url('../img/default/remove.png'); | ||
57 | } | ||
58 | |||
59 | a.link span { | ||
60 | background-image: url('../img/default/link.png'); | ||
61 | } | ||
62 | |||
63 | a.bad-display span { | ||
64 | background-image: url('../img/default/bad-display.png'); | ||
65 | } | ||
66 | |||
67 | a.print span { | ||
68 | background-image: url('../img/default/print.png'); | ||
69 | } | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/css/style.css b/src/Wallabag/Wallabag/Resources/views/default/public/css/style.css new file mode 100755 index 00000000..b25373d6 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/css/style.css | |||
@@ -0,0 +1,447 @@ | |||
1 | @font-face { | ||
2 | font-family: 'Roboto'; | ||
3 | font-style: normal; | ||
4 | font-weight: 400; | ||
5 | src: local('Roboto Regular'), local('Roboto-Regular'), url(../fonts/Roboto.woff) format('woff'); | ||
6 | } | ||
7 | |||
8 | |||
9 | |||
10 | body { | ||
11 | margin: 10px; | ||
12 | font-family: 'Roboto',Verdana,Geneva,sans-serif; | ||
13 | font-size: 16px; | ||
14 | color: #000; | ||
15 | } | ||
16 | |||
17 | header { | ||
18 | text-align: center; | ||
19 | } | ||
20 | |||
21 | header h1 { | ||
22 | font-size: 1.3em; | ||
23 | } | ||
24 | |||
25 | a, | ||
26 | a:hover, | ||
27 | a:visited { | ||
28 | color: #000; | ||
29 | } | ||
30 | |||
31 | .bouton { | ||
32 | border: none; | ||
33 | border-radius: 2px; | ||
34 | color: #fff; | ||
35 | background-color: #000; | ||
36 | } | ||
37 | |||
38 | .bouton:hover { | ||
39 | color: #f1f1f1; | ||
40 | background-color: #222; | ||
41 | cursor: pointer; | ||
42 | } | ||
43 | |||
44 | #main { | ||
45 | margin: 0 auto; | ||
46 | } | ||
47 | |||
48 | #main #links { | ||
49 | padding: 0; | ||
50 | text-align: center; | ||
51 | font-size: 0.9em; | ||
52 | list-style-type: none; | ||
53 | } | ||
54 | |||
55 | #main #links li { | ||
56 | display: inline; | ||
57 | } | ||
58 | |||
59 | #main #links li .current { | ||
60 | -webkit-border-radius: 2px; | ||
61 | border-radius: 2px; | ||
62 | color: #fff; | ||
63 | background-color: #000; | ||
64 | } | ||
65 | |||
66 | #main #sort { | ||
67 | padding: 0; | ||
68 | text-align: center; | ||
69 | list-style-type: none; | ||
70 | opacity: 0.5; | ||
71 | } | ||
72 | |||
73 | #main #sort li { | ||
74 | display: inline; | ||
75 | font-size: 0.9em; | ||
76 | } | ||
77 | |||
78 | #main #sort li + li { | ||
79 | margin-left: 10px; | ||
80 | } | ||
81 | |||
82 | #main #sort a { | ||
83 | padding: 2px 2px 0; | ||
84 | vertical-align: middle; | ||
85 | } | ||
86 | |||
87 | #main #sort img { | ||
88 | vertical-align: baseline; | ||
89 | } | ||
90 | #main #sort img:hover { | ||
91 | cursor: pointer; | ||
92 | } | ||
93 | |||
94 | #links a { | ||
95 | padding: 5px 10px; | ||
96 | text-decoration: none; | ||
97 | } | ||
98 | |||
99 | #links a:hover { | ||
100 | -webkit-border-radius: 2px; | ||
101 | border-radius: 2px; | ||
102 | color: #f1f1f1; | ||
103 | background-color: #040707; | ||
104 | } | ||
105 | |||
106 | /*** ***/ | ||
107 | |||
108 | /*** LINKS DISPLAY ***/ | ||
109 | |||
110 | #main .tool { | ||
111 | text-decoration: none; | ||
112 | cursor: pointer; | ||
113 | } | ||
114 | |||
115 | #main #content { | ||
116 | margin-top: 20px; | ||
117 | } | ||
118 | |||
119 | #main #content h2 { | ||
120 | text-decoration: none; | ||
121 | font-size: 1.3em; | ||
122 | } | ||
123 | |||
124 | #main #content .entrie { | ||
125 | margin-top: 15px; | ||
126 | padding-bottom: 15px; | ||
127 | border-bottom: 1px dashed #222; | ||
128 | overflow: hidden; | ||
129 | } | ||
130 | |||
131 | /* First entry */ | ||
132 | #main #content .results + .entrie { | ||
133 | clear: both; | ||
134 | margin-top: 0; | ||
135 | } | ||
136 | |||
137 | #main .entrie .tools { | ||
138 | float: right; | ||
139 | text-align: right; | ||
140 | list-style-type: none; | ||
141 | opacity: 0.5; | ||
142 | } | ||
143 | |||
144 | #main .entrie .tools .tool span { | ||
145 | display: inline-block; | ||
146 | width: 16px; | ||
147 | height: 16px; | ||
148 | /* Hide textual content */ | ||
149 | overflow: hidden; | ||
150 | text-align: left; | ||
151 | text-indent: -9999px; | ||
152 | } | ||
153 | |||
154 | /*** ***/ | ||
155 | |||
156 | /*** ARTICLE PAGE ***/ | ||
157 | |||
158 | #article { | ||
159 | margin: 0 auto; | ||
160 | } | ||
161 | |||
162 | #article header { | ||
163 | border-bottom: 1px solid #222; | ||
164 | } | ||
165 | |||
166 | #article header { | ||
167 | text-align: left; | ||
168 | } | ||
169 | |||
170 | #article header h1 small { | ||
171 | float: right; | ||
172 | font-size: 0.6em; | ||
173 | } | ||
174 | |||
175 | #article header a { | ||
176 | text-decoration: none; | ||
177 | } | ||
178 | |||
179 | #article .tags { | ||
180 | font-size: 0.8em; | ||
181 | color: #888; | ||
182 | padding-bottom: 5px; | ||
183 | } | ||
184 | |||
185 | .backhome { | ||
186 | display: inline; | ||
187 | } | ||
188 | |||
189 | .results { | ||
190 | padding: 15px 0; | ||
191 | overflow: hidden; | ||
192 | } | ||
193 | |||
194 | .nb-results { | ||
195 | float: left; | ||
196 | font-size: 0.9em; | ||
197 | line-height: 24px; | ||
198 | vertical-align: middle; | ||
199 | } | ||
200 | |||
201 | #article_toolbar { | ||
202 | position: fixed; | ||
203 | bottom: 0; | ||
204 | left: 0; | ||
205 | width: 100%; | ||
206 | min-height: 50px; | ||
207 | padding-top: 17px; | ||
208 | text-align: center; | ||
209 | color: #fff; | ||
210 | opacity: 0.8; | ||
211 | background: #fff; | ||
212 | } | ||
213 | |||
214 | #article_toolbar li { | ||
215 | display: inline; | ||
216 | padding-right: 30px; | ||
217 | } | ||
218 | |||
219 | #article_toolbar .tool { | ||
220 | padding: 0 2px; | ||
221 | } | ||
222 | |||
223 | #article_toolbar .tool span { | ||
224 | display: inline-block; | ||
225 | width: 16px; | ||
226 | height: 16px; | ||
227 | /* Hide textual content */ | ||
228 | overflow: hidden; | ||
229 | text-align: left; | ||
230 | text-indent: -9999px; | ||
231 | } | ||
232 | |||
233 | /*** ***/ | ||
234 | |||
235 | /*** PAGINATION ***/ | ||
236 | |||
237 | .pagination { | ||
238 | float: right; | ||
239 | text-align: right; | ||
240 | } | ||
241 | |||
242 | .pagination a { | ||
243 | height: 25px; | ||
244 | margin: 2px; | ||
245 | padding: 4px 8px; | ||
246 | border: 1px solid #d5d5d5; | ||
247 | text-decoration: none; | ||
248 | font-size: 11px; | ||
249 | font-weight: bold; | ||
250 | color: #333; | ||
251 | } | ||
252 | |||
253 | .pagination a:hover, | ||
254 | .pagination a:active { | ||
255 | background-color: #efefef; | ||
256 | } | ||
257 | |||
258 | .pagination .current { | ||
259 | height: 25px; | ||
260 | margin: 2px; | ||
261 | padding: 4px 8px; | ||
262 | border: 1px solid #d5d5d5; | ||
263 | text-decoration: none; | ||
264 | font-size: 11px; | ||
265 | font-weight: bold; | ||
266 | color: #000; | ||
267 | background-color: #ccc; | ||
268 | } | ||
269 | |||
270 | .pagination .disabled { | ||
271 | display: none; | ||
272 | } | ||
273 | |||
274 | #bookmarklet { | ||
275 | padding: 5px; | ||
276 | border: 1px dashed #808080; | ||
277 | background: #fff; | ||
278 | cursor: move; | ||
279 | } | ||
280 | |||
281 | .top_link { | ||
282 | display: none; | ||
283 | z-index: 2000; | ||
284 | position: fixed; | ||
285 | right: 15px; | ||
286 | bottom: 15px; | ||
287 | padding: 20px; | ||
288 | -webkit-border-radius: 40px; | ||
289 | -moz-border-radius: 40px; | ||
290 | border-radius: 40px; | ||
291 | opacity: 0.9; | ||
292 | background: #ccc; | ||
293 | } | ||
294 | |||
295 | footer { | ||
296 | clear: both; | ||
297 | } | ||
298 | |||
299 | .reading-time { | ||
300 | font-size: 0.8em; | ||
301 | } | ||
302 | |||
303 | #inputform { | ||
304 | display: none; | ||
305 | margin-top: 5px; | ||
306 | margin-right: auto; | ||
307 | margin-left: auto; | ||
308 | padding-bottom: 5px; | ||
309 | max-width: 300px; | ||
310 | border-radius: 3px; | ||
311 | text-align: center; | ||
312 | color: #fff; | ||
313 | opacity: 0.8; | ||
314 | background-color: rgba(0,0,0,0.9); | ||
315 | } | ||
316 | |||
317 | a.back span, | ||
318 | a.top span, | ||
319 | a.fav span, | ||
320 | a.fav span:hover, | ||
321 | a.fav-off span, | ||
322 | a.fav-off span:hover, | ||
323 | a.archive span, | ||
324 | a.archive span:hover, | ||
325 | a.archive-off span, | ||
326 | a.archive-off span:hover, | ||
327 | a.twitter span, | ||
328 | a.shaarli span, | ||
329 | a.flattr span, | ||
330 | a.email span, | ||
331 | a.delete span, | ||
332 | a.link span, | ||
333 | a.bad-display span, | ||
334 | a.reading-time span, | ||
335 | a.print span { | ||
336 | background-repeat: no-repeat; | ||
337 | } | ||
338 | |||
339 | .arrow-down { | ||
340 | width: 0px; | ||
341 | height: 0px; | ||
342 | border-style: solid; | ||
343 | border-width: 10px 10px 0 10px; | ||
344 | border-color: #000 transparent transparent transparent; | ||
345 | |||
346 | position: absolute; | ||
347 | margin-top: 1.5em; | ||
348 | margin-left: -30px; | ||
349 | } | ||
350 | |||
351 | .two-column { | ||
352 | display: block; | ||
353 | width: 50%; | ||
354 | paddig-right: 20px; | ||
355 | float: left; | ||
356 | vertical-align: top; | ||
357 | } | ||
358 | |||
359 | |||
360 | /* ========================================================================== | ||
361 | "save a link" popup div related styles | ||
362 | ========================================================================== */ | ||
363 | |||
364 | #bagit-form { | ||
365 | display: none; | ||
366 | padding-left: 30px; | ||
367 | width: 450px; | ||
368 | |||
369 | } | ||
370 | |||
371 | a#bagit-form-close { | ||
372 | color: #FFF; | ||
373 | display: inline-block; | ||
374 | float: right; | ||
375 | background: url("../img/messages/close.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0); | ||
376 | height: 16px; | ||
377 | margin: -14px -8px 0 0; | ||
378 | width: 16px; | ||
379 | text-decoration: none; | ||
380 | } | ||
381 | |||
382 | |||
383 | .add-to-wallabag-link-after { | ||
384 | background-color: #000; | ||
385 | color: #fff; | ||
386 | padding: 0 4px 1px 3px; | ||
387 | font-weight: bold; | ||
388 | font-size: 0.7em; | ||
389 | border-radius: 4px; | ||
390 | } | ||
391 | .add-to-wallabag-link-after:hover, .add-to-wallabag-link-after:active { | ||
392 | color: #fff; | ||
393 | } | ||
394 | .add-to-wallabag-link-after:visited { | ||
395 | color: #999; | ||
396 | } | ||
397 | a.add-to-wallabag-link-after { | ||
398 | visibility: hidden; | ||
399 | position: absolute; | ||
400 | opacity: 0; | ||
401 | transition-duration: 2s; | ||
402 | transition-timing-function: ease-out; | ||
403 | } | ||
404 | #article article a:hover + a.add-to-wallabag-link-after, a.add-to-wallabag-link-after:hover { | ||
405 | opacity: 1; | ||
406 | visibility: visible; | ||
407 | transition-duration: .3s; | ||
408 | transition-timing-function: ease-in; | ||
409 | } | ||
410 | a.add-to-wallabag-link-after:after { | ||
411 | content: "w"; | ||
412 | } | ||
413 | |||
414 | |||
415 | #add-link-result { | ||
416 | display: inline; | ||
417 | padding-left: 10px; | ||
418 | } | ||
419 | |||
420 | /* ========================================================================== | ||
421 | "Search" popup div related styles | ||
422 | ========================================================================== */ | ||
423 | |||
424 | /* Search form message needs a little more width, depending on translations */ | ||
425 | #search-form { | ||
426 | width: 420px; | ||
427 | } | ||
428 | |||
429 | .opacity03 { | ||
430 | /*opacity: 0.3;*/ | ||
431 | } | ||
432 | |||
433 | #readLeftPercent { | ||
434 | display: inline-block; | ||
435 | /* Show textual content */ | ||
436 | overflow: visible; | ||
437 | text-align: left; | ||
438 | text-indent: 0; | ||
439 | color: black; | ||
440 | width: 50px; | ||
441 | } | ||
442 | |||
443 | pre code { | ||
444 | font-family: "Courier New", Courier, monospace; | ||
445 | border: 1px solid #ddd; | ||
446 | font-size: 0.96em; | ||
447 | } | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/fonts/Roboto.woff b/src/Wallabag/Wallabag/Resources/views/default/public/fonts/Roboto.woff new file mode 100644 index 00000000..1440b1be --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/fonts/Roboto.woff | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/highlight.pack.js b/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/highlight.pack.js new file mode 100644 index 00000000..10a21c34 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/highlight.pack.js | |||
@@ -0,0 +1 @@ | |||
var hljs=new function(){function j(v){return v.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function t(v){return v.nodeName.toLowerCase()}function h(w,x){var v=w&&w.exec(x);return v&&v.index==0}function r(w){var v=(w.className+" "+(w.parentNode?w.parentNode.className:"")).split(/\s+/);v=v.map(function(x){return x.replace(/^lang(uage)?-/,"")});return v.filter(function(x){return i(x)||x=="no-highlight"})[0]}function o(x,y){var v={};for(var w in x){v[w]=x[w]}if(y){for(var w in y){v[w]=y[w]}}return v}function u(x){var v=[];(function w(y,z){for(var A=y.firstChild;A;A=A.nextSibling){if(A.nodeType==3){z+=A.nodeValue.length}else{if(t(A)=="br"){z+=1}else{if(A.nodeType==1){v.push({event:"start",offset:z,node:A});z=w(A,z);v.push({event:"stop",offset:z,node:A})}}}}return z})(x,0);return v}function q(w,y,C){var x=0;var F="";var z=[];function B(){if(!w.length||!y.length){return w.length?w:y}if(w[0].offset!=y[0].offset){return(w[0].offset<y[0].offset)?w:y}return y[0].event=="start"?w:y}function A(H){function G(I){return" "+I.nodeName+'="'+j(I.value)+'"'}F+="<"+t(H)+Array.prototype.map.call(H.attributes,G).join("")+">"}function E(G){F+="</"+t(G)+">"}function v(G){(G.event=="start"?A:E)(G.node)}while(w.length||y.length){var D=B();F+=j(C.substr(x,D[0].offset-x));x=D[0].offset;if(D==w){z.reverse().forEach(E);do{v(D.splice(0,1)[0]);D=B()}while(D==w&&D.length&&D[0].offset==x);z.reverse().forEach(A)}else{if(D[0].event=="start"){z.push(D[0].node)}else{z.pop()}v(D.splice(0,1)[0])}}return F+j(C.substr(x))}function m(y){function v(z){return(z&&z.source)||z}function w(A,z){return RegExp(v(A),"m"+(y.cI?"i":"")+(z?"g":""))}function x(D,C){if(D.compiled){return}D.compiled=true;D.k=D.k||D.bK;if(D.k){var z={};var E=function(G,F){if(y.cI){F=F.toLowerCase()}F.split(" ").forEach(function(H){var I=H.split("|");z[I[0]]=[G,I[1]?Number(I[1]):1]})};if(typeof D.k=="string"){E("keyword",D.k)}else{Object.keys(D.k).forEach(function(F){E(F,D.k[F])})}D.k=z}D.lR=w(D.l||/\b[A-Za-z0-9_]+\b/,true);if(C){if(D.bK){D.b="\\b("+D.bK.split(" ").join("|")+")\\b"}if(!D.b){D.b=/\B|\b/}D.bR=w(D.b);if(!D.e&&!D.eW){D.e=/\B|\b/}if(D.e){D.eR=w(D.e)}D.tE=v(D.e)||"";if(D.eW&&C.tE){D.tE+=(D.e?"|":"")+C.tE}}if(D.i){D.iR=w(D.i)}if(D.r===undefined){D.r=1}if(!D.c){D.c=[]}var B=[];D.c.forEach(function(F){if(F.v){F.v.forEach(function(G){B.push(o(F,G))})}else{B.push(F=="self"?D:F)}});D.c=B;D.c.forEach(function(F){x(F,D)});if(D.starts){x(D.starts,C)}var A=D.c.map(function(F){return F.bK?"\\.?("+F.b+")\\.?":F.b}).concat([D.tE,D.i]).map(v).filter(Boolean);D.t=A.length?w(A.join("|"),true):{exec:function(F){return null}};D.continuation={}}x(y)}function c(S,L,J,R){function v(U,V){for(var T=0;T<V.c.length;T++){if(h(V.c[T].bR,U)){return V.c[T]}}}function z(U,T){if(h(U.eR,T)){return U}if(U.eW){return z(U.parent,T)}}function A(T,U){return !J&&h(U.iR,T)}function E(V,T){var U=M.cI?T[0].toLowerCase():T[0];return V.k.hasOwnProperty(U)&&V.k[U]}function w(Z,X,W,V){var T=V?"":b.classPrefix,U='<span class="'+T,Y=W?"":"</span>";U+=Z+'">';return U+X+Y}function N(){if(!I.k){return j(C)}var T="";var W=0;I.lR.lastIndex=0;var U=I.lR.exec(C);while(U){T+=j(C.substr(W,U.index-W));var V=E(I,U);if(V){H+=V[1];T+=w(V[0],j(U[0]))}else{T+=j(U[0])}W=I.lR.lastIndex;U=I.lR.exec(C)}return T+j(C.substr(W))}function F(){if(I.sL&&!f[I.sL]){return j(C)}var T=I.sL?c(I.sL,C,true,I.continuation.top):e(C);if(I.r>0){H+=T.r}if(I.subLanguageMode=="continuous"){I.continuation.top=T.top}return w(T.language,T.value,false,true)}function Q(){return I.sL!==undefined?F():N()}function P(V,U){var T=V.cN?w(V.cN,"",true):"";if(V.rB){D+=T;C=""}else{if(V.eB){D+=j(U)+T;C=""}else{D+=T;C=U}}I=Object.create(V,{parent:{value:I}})}function G(T,X){C+=T;if(X===undefined){D+=Q();return 0}var V=v(X,I);if(V){D+=Q();P(V,X);return V.rB?0:X.length}var W=z(I,X);if(W){var U=I;if(!(U.rE||U.eE)){C+=X}D+=Q();do{if(I.cN){D+="</span>"}H+=I.r;I=I.parent}while(I!=W.parent);if(U.eE){D+=j(X)}C="";if(W.starts){P(W.starts,"")}return U.rE?0:X.length}if(A(X,I)){throw new Error('Illegal lexeme "'+X+'" for mode "'+(I.cN||"<unnamed>")+'"')}C+=X;return X.length||1}var M=i(S);if(!M){throw new Error('Unknown language: "'+S+'"')}m(M);var I=R||M;var D="";for(var K=I;K!=M;K=K.parent){if(K.cN){D+=w(K.cN,D,true)}}var C="";var H=0;try{var B,y,x=0;while(true){I.t.lastIndex=x;B=I.t.exec(L);if(!B){break}y=G(L.substr(x,B.index-x),B[0]);x=B.index+y}G(L.substr(x));for(var K=I;K.parent;K=K.parent){if(K.cN){D+="</span>"}}return{r:H,value:D,language:S,top:I}}catch(O){if(O.message.indexOf("Illegal")!=-1){return{r:0,value:j(L)}}else{throw O}}}function e(y,x){x=x||b.languages||Object.keys(f);var v={r:0,value:j(y)};var w=v;x.forEach(function(z){if(!i(z)){return}var A=c(z,y,false);A.language=z;if(A.r>w.r){w=A}if(A.r>v.r){w=v;v=A}});if(w.language){v.second_best=w}return v}function g(v){if(b.tabReplace){v=v.replace(/^((<[^>]+>|\t)+)/gm,function(w,z,y,x){return z.replace(/\t/g,b.tabReplace)})}if(b.useBR){v=v.replace(/\n/g,"<br>")}return v}function p(z){var y=b.useBR?z.innerHTML.replace(/\n/g,"").replace(/<br>|<br [^>]*>/g,"\n").replace(/<[^>]*>/g,""):z.textContent;var A=r(z);if(A=="no-highlight"){return}var v=A?c(A,y,true):e(y);var w=u(z);if(w.length){var x=document.createElementNS("http://www.w3.org/1999/xhtml","pre");x.innerHTML=v.value;v.value=q(w,u(x),y)}v.value=g(v.value);z.innerHTML=v.value;z.className+=" hljs "+(!A&&v.language||"");z.result={language:v.language,re:v.r};if(v.second_best){z.second_best={language:v.second_best.language,re:v.second_best.r}}}var b={classPrefix:"hljs-",tabReplace:null,useBR:false,languages:undefined};function s(v){b=o(b,v)}function l(){if(l.called){return}l.called=true;var v=document.querySelectorAll("pre code");Array.prototype.forEach.call(v,p)}function a(){addEventListener("DOMContentLoaded",l,false);addEventListener("load",l,false)}var f={};var n={};function d(v,x){var w=f[v]=x(this);if(w.aliases){w.aliases.forEach(function(y){n[y]=v})}}function k(){return Object.keys(f)}function i(v){return f[v]||f[n[v]]}this.highlight=c;this.highlightAuto=e;this.fixMarkup=g;this.highlightBlock=p;this.configure=s;this.initHighlighting=l;this.initHighlightingOnLoad=a;this.registerLanguage=d;this.listLanguages=k;this.getLanguage=i;this.inherit=o;this.IR="[a-zA-Z][a-zA-Z0-9_]*";this.UIR="[a-zA-Z_][a-zA-Z0-9_]*";this.NR="\\b\\d+(\\.\\d+)?";this.CNR="(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)";this.BNR="\\b(0b[01]+)";this.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";this.BE={b:"\\\\[\\s\\S]",r:0};this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[this.BE]};this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[this.BE]};this.PWM={b:/\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)\b/};this.CLCM={cN:"comment",b:"//",e:"$",c:[this.PWM]};this.CBCM={cN:"comment",b:"/\\*",e:"\\*/",c:[this.PWM]};this.HCM={cN:"comment",b:"#",e:"$",c:[this.PWM]};this.NM={cN:"number",b:this.NR,r:0};this.CNM={cN:"number",b:this.CNR,r:0};this.BNM={cN:"number",b:this.BNR,r:0};this.CSSNM={cN:"number",b:this.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0};this.RM={cN:"regexp",b:/\//,e:/\/[gim]*/,i:/\n/,c:[this.BE,{b:/\[/,e:/\]/,r:0,c:[this.BE]}]};this.TM={cN:"title",b:this.IR,r:0};this.UTM={cN:"title",b:this.UIR,r:0}}();hljs.registerLanguage("bash",function(b){var a={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)\}/}]};var d={cN:"string",b:/"/,e:/"/,c:[b.BE,a,{cN:"variable",b:/\$\(/,e:/\)/,c:[b.BE]}]};var c={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/-?[a-z\.]+/,k:{keyword:"if then else elif fi for break continue while in do done exit return set declare case esac export exec",literal:"true false",built_in:"printf echo read cd pwd pushd popd dirs let eval unset typeset readonly getopts source shopt caller type hash bind help sudo",operator:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"shebang",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:true,c:[b.inherit(b.TM,{b:/\w[\w\d_]*/})],r:0},b.HCM,b.NM,d,c,a]}});hljs.registerLanguage("cs",function(b){var a="abstract as base bool break byte case catch char checked const continue decimal default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long new null object operator out override params private protected public readonly ref return sbyte sealed short sizeof stackalloc static string struct switch this throw true try typeof uint ulong unchecked unsafe ushort using virtual volatile void while async await ascending descending from get group into join let orderby partial select set value var where yield";return{aliases:["csharp"],k:a,i:/::/,c:[{cN:"comment",b:"///",e:"$",rB:true,c:[{cN:"xmlDocTag",v:[{b:"///",r:0},{b:"<!--|-->"},{b:"</?",e:">"}]}]},b.CLCM,b.CBCM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line region endregion pragma checksum"},{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},b.ASM,b.QSM,b.CNM,{bK:"protected public private internal",e:/[{;=]/,k:a,c:[{bK:"class namespace interface",starts:{c:[b.TM]}},{b:b.IR+"\\s*\\(",rB:true,c:[b.TM]}]}]}});hljs.registerLanguage("ruby",function(f){var j="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?";var i="and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor";var b={cN:"yardoctag",b:"@[A-Za-z]+"};var c={cN:"value",b:"#<",e:">"};var k={cN:"comment",v:[{b:"#",e:"$",c:[b]},{b:"^\\=begin",e:"^\\=end",c:[b],r:10},{b:"^__END__",e:"\\n$"}]};var d={cN:"subst",b:"#\\{",e:"}",k:i};var e={cN:"string",c:[f.BE,d],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:"%[qw]?\\(",e:"\\)"},{b:"%[qw]?\\[",e:"\\]"},{b:"%[qw]?{",e:"}"},{b:"%[qw]?<",e:">"},{b:"%[qw]?/",e:"/"},{b:"%[qw]?%",e:"%"},{b:"%[qw]?-",e:"-"},{b:"%[qw]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/}]};var a={cN:"params",b:"\\(",e:"\\)",k:i};var h=[e,c,k,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[f.inherit(f.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{cN:"inheritance",b:"<\\s*",c:[{cN:"parent",b:"("+f.IR+"::)?"+f.IR}]},k]},{cN:"function",bK:"def",e:" |$|;",r:0,c:[f.inherit(f.TM,{b:j}),a,k]},{cN:"constant",b:"(::)?(\\b[A-Z]\\w*(::)?)+",r:0},{cN:"symbol",b:":",c:[e,{b:j}],r:0},{cN:"symbol",b:f.UIR+"(\\!|\\?)?:",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"("+f.RSR+")\\s*",c:[c,k,{cN:"regexp",c:[f.BE,d],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}],r:0}];d.c=h;a.c=h;var g=[{r:1,cN:"output",b:"^\\s*=> ",e:"$",rB:true,c:[{cN:"status",b:"^\\s*=>"},{b:" ",e:"$",c:h}]},{r:1,cN:"input",b:"^[^ ][^=>]*>+ ",e:"$",rB:true,c:[{cN:"prompt",b:"^[^ ][^=>]*>+"},{b:" ",e:"$",c:h}]}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:i,c:g.concat(h)}});hljs.registerLanguage("diff",function(a){return{aliases:["patch"],c:[{cN:"chunk",r:10,v:[{b:/^\@\@ +\-\d+,\d+ +\+\d+,\d+ +\@\@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"header",v:[{b:/Index: /,e:/$/},{b:/=====/,e:/=====$/},{b:/^\-\-\-/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+\+\+/,e:/$/},{b:/\*{5}/,e:/\*{5}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"change",b:"^\\!",e:"$"}]}});hljs.registerLanguage("javascript",function(a){return{aliases:["js"],k:{keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document"},c:[{cN:"pi",b:/^\s*('|")use strict('|")/,r:10},a.ASM,a.QSM,a.CLCM,a.CBCM,a.CNM,{b:"("+a.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[a.CLCM,a.CBCM,a.RM,{b:/</,e:/>;/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:true,c:[a.inherit(a.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[a.CLCM,a.CBCM],i:/["'\(]/}],i:/\[|%/},{b:/\$[(.]/},{b:"\\."+a.IR,r:0}]}});hljs.registerLanguage("xml",function(a){var c="[A-Za-z0-9\\._:-]+";var d={b:/<\?(php)?(?!\w)/,e:/\?>/,sL:"php",subLanguageMode:"continuous"};var b={eW:true,i:/</,r:0,c:[d,{cN:"attribute",b:c,r:0},{b:"=",r:0,c:[{cN:"value",v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s\/>]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xsl","plist"],cI:true,c:[{cN:"doctype",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},{cN:"comment",b:"<!--",e:"-->",r:10},{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{title:"style"},c:[b],starts:{e:"</style>",rE:true,sL:"css"}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{title:"script"},c:[b],starts:{e:"<\/script>",rE:true,sL:"javascript"}},{b:"<%",e:"%>",sL:"vbscript"},d,{cN:"pi",b:/<\?\w+/,e:/\?>/,r:10},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"title",b:"[^ /><]+",r:0},b]}]}});hljs.registerLanguage("markdown",function(a){return{aliases:["md","mkdown","mkd"],c:[{cN:"header",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"blockquote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"`.+?`"},{b:"^( {4}|\t)",e:"$",r:0}]},{cN:"horizontal_rule",b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].+?[\\)\\]]",rB:true,c:[{cN:"link_label",b:"\\[",e:"\\]",eB:true,rE:true,r:0},{cN:"link_url",b:"\\]\\(",e:"\\)",eB:true,eE:true},{cN:"link_reference",b:"\\]\\[",e:"\\]",eB:true,eE:true}],r:10},{b:"^\\[.+\\]:",e:"$",rB:true,c:[{cN:"link_reference",b:"\\[",e:"\\]",eB:true,eE:true},{cN:"link_url",b:"\\s",e:"$"}]}]}});hljs.registerLanguage("css",function(a){var b="[a-zA-Z-][a-zA-Z0-9_-]*";var c={cN:"function",b:b+"\\(",rB:true,eE:true,e:"\\("};return{cI:true,i:"[=/|']",c:[a.CBCM,{cN:"id",b:"\\#[A-Za-z0-9_-]+"},{cN:"class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"attr_selector",b:"\\[",e:"\\]",i:"$"},{cN:"pseudo",b:":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"},{cN:"at_rule",b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{cN:"at_rule",b:"@",e:"[{;]",c:[{cN:"keyword",b:/\S+/},{b:/\s/,eW:true,eE:true,r:0,c:[c,a.ASM,a.QSM,a.CSSNM]}]},{cN:"tag",b:b,r:0},{cN:"rules",b:"{",e:"}",i:"[^\\s]",r:0,c:[a.CBCM,{cN:"rule",b:"[^\\s]",rB:true,e:";",eW:true,c:[{cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:true,i:"[^\\s]",starts:{cN:"value",eW:true,eE:true,c:[c,a.CSSNM,a.QSM,a.ASM,a.CBCM,{cN:"hexcolor",b:"#[0-9A-Fa-f]+"},{cN:"important",b:"!important"}]}}]}]}]}});hljs.registerLanguage("http",function(a){return{i:"\\S",c:[{cN:"status",b:"^HTTP/[0-9\\.]+",e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{cN:"request",b:"^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",rB:true,e:"$",c:[{cN:"string",b:" ",e:" ",eB:true,eE:true}]},{cN:"attribute",b:"^\\w",e:": ",eE:true,i:"\\n|\\s|=",starts:{cN:"string",e:"$"}},{b:"\\n\\n",starts:{sL:"",eW:true}}]}});hljs.registerLanguage("java",function(b){var a="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws";return{aliases:["jsp"],k:a,i:/<\//,c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}],r:10},b.CLCM,b.CBCM,b.ASM,b.QSM,{bK:"protected public private",e:/[{;=]/,k:a,c:[{cN:"class",bK:"class interface",eW:true,eE:true,i:/[:"\[\]]/,c:[{bK:"extends implements",r:10},b.UTM]},{b:b.UIR+"\\s*\\(",rB:true,c:[b.UTM]}]},b.CNM,{cN:"annotation",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("php",function(b){var e={cN:"variable",b:"(\\$|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*"};var a={cN:"preprocessor",b:/<\?(php)?|\?>/};var c={cN:"string",c:[b.BE,a],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},b.inherit(b.ASM,{i:null}),b.inherit(b.QSM,{i:null})]};var d={v:[b.BNM,b.CNM]};return{aliases:["php3","php4","php5","php6"],cI:true,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[b.CLCM,b.HCM,{cN:"comment",b:"/\\*",e:"\\*/",c:[{cN:"phpdoc",b:"\\s@[A-Za-z]+"},a]},{cN:"comment",b:"__halt_compiler.+?;",eW:true,k:"__halt_compiler",l:b.UIR},{cN:"string",b:"<<<['\"]?\\w+['\"]?$",e:"^\\w+;",c:[b.BE]},a,e,{cN:"function",bK:"function",e:/[;{]/,eE:true,i:"\\$|\\[|%",c:[b.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",e,b.CBCM,c,d]}]},{cN:"class",bK:"class interface",e:"{",eE:true,i:/[:\(\$"]/,c:[{bK:"extends implements",r:10},b.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[b.UTM]},{bK:"use",e:";",c:[b.UTM]},{b:"=>"},c,d]}});hljs.registerLanguage("python",function(a){var f={cN:"prompt",b:/^(>>>|\.\.\.) /};var b={cN:"string",c:[a.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[f],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[f],r:10},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},a.ASM,a.QSM]};var d={cN:"number",r:0,v:[{b:a.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:a.CNR+"[lLjJ]?"}]};var e={cN:"params",b:/\(/,e:/\)/,c:["self",f,d,b]};var c={e:/:/,i:/[${=;\n]/,c:[a.UTM,e]};return{aliases:["py","gyp"],k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i:/(<\/|->|\?)/,c:[f,d,b,a.HCM,a.inherit(c,{cN:"function",bK:"def",r:10}),a.inherit(c,{cN:"class",bK:"class"}),{cN:"decorator",b:/@/,e:/$/},{b:/\b(print|exec)\(/}]}});hljs.registerLanguage("sql",function(a){var b={cN:"comment",b:"--",e:"$"};return{cI:true,i:/[<>]/,c:[{cN:"operator",bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate savepoint release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup",e:/;/,eW:true,k:{keyword:"abs absolute acos action add adddate addtime aes_decrypt aes_encrypt after aggregate all allocate alter analyze and any are as asc ascii asin assertion at atan atan2 atn2 authorization authors avg backup before begin benchmark between bin binlog bit_and bit_count bit_length bit_or bit_xor both by cache call cascade cascaded case cast catalog ceil ceiling chain change changed char_length character_length charindex charset check checksum checksum_agg choose close coalesce coercibility collate collation collationproperty column columns columns_updated commit compress concat concat_ws concurrent connect connection connection_id consistent constraint constraints continue contributors conv convert convert_tz corresponding cos cot count count_big crc32 create cross cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime data database databases datalength date_add date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts datetimeoffsetfromparts day dayname dayofmonth dayofweek dayofyear deallocate declare decode default deferrable deferred degrees delayed delete des_decrypt des_encrypt des_key_file desc describe descriptor diagnostics difference disconnect distinct distinctrow div do domain double drop dumpfile each else elt enclosed encode encrypt end end-exec engine engines eomonth errors escape escaped event eventdata events except exception exec execute exists exp explain export_set extended external extract fast fetch field fields find_in_set first first_value floor flush for force foreign format found found_rows from from_base64 from_days from_unixtime full function get get_format get_lock getdate getutcdate global go goto grant grants greatest group group_concat grouping grouping_id gtid_subset gtid_subtract handler having help hex high_priority hosts hour ident_current ident_incr ident_seed identified identity if ifnull ignore iif ilike immediate in index indicator inet6_aton inet6_ntoa inet_aton inet_ntoa infile initially inner innodb input insert install instr intersect into is is_free_lock is_ipv4 is_ipv4_compat is_ipv4_mapped is_not is_not_null is_used_lock isdate isnull isolation join key kill language last last_day last_insert_id last_value lcase lead leading least leaves left len lenght level like limit lines ln load load_file local localtime localtimestamp locate lock log log10 log2 logfile logs low_priority lower lpad ltrim make_set makedate maketime master master_pos_wait match matched max md5 medium merge microsecond mid min minute mod mode module month monthname mutex name_const names national natural nchar next no no_write_to_binlog not now nullif nvarchar oct octet_length of old_password on only open optimize option optionally or ord order outer outfile output pad parse partial partition password patindex percent_rank percentile_cont percentile_disc period_add period_diff pi plugin position pow power pragma precision prepare preserve primary prior privileges procedure procedure_analyze processlist profile profiles public publishingservername purge quarter query quick quote quotename radians rand read references regexp relative relaylog release release_lock rename repair repeat replace replicate reset restore restrict return returns reverse revoke right rlike rollback rollup round row row_count rows rpad rtrim savepoint schema scroll sec_to_time second section select serializable server session session_user set sha sha1 sha2 share show sign sin size slave sleep smalldatetimefromparts snapshot some soname soundex sounds_like space sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sql_variant_property sqlstate sqrt square start starting status std stddev stddev_pop stddev_samp stdev stdevp stop str str_to_date straight_join strcmp string stuff subdate substr substring subtime subtring_index sum switchoffset sysdate sysdatetime sysdatetimeoffset system_user sysutcdatetime table tables tablespace tan temporary terminated tertiary_weights then time time_format time_to_sec timediff timefromparts timestamp timestampadd timestampdiff timezone_hour timezone_minute to to_base64 to_days to_seconds todatetimeoffset trailing transaction translation trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse ucase uncompress uncompressed_length unhex unicode uninstall union unique unix_timestamp unknown unlock update upgrade upped upper usage use user user_resources using utc_date utc_time utc_timestamp uuid uuid_short validate_password_strength value values var var_pop var_samp variables variance varp version view warnings week weekday weekofyear weight_string when whenever where with work write xml xor year yearweek zon",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int integer interval number numeric real serial smallint varchar varying int8 serial8 text"},c:[{cN:"string",b:"'",e:"'",c:[a.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[a.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[a.BE]},a.CNM,a.CBCM,b]},a.CBCM,b]}});hljs.registerLanguage("ini",function(a){return{cI:true,i:/\S/,c:[{cN:"comment",b:";",e:"$"},{cN:"title",b:"^\\[",e:"\\]"},{cN:"setting",b:"^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*",e:"$",c:[{cN:"value",eW:true,k:"on off true false yes no",c:[a.QSM,a.NM],r:0}]}]}});hljs.registerLanguage("perl",function(c){var d="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when";var f={cN:"subst",b:"[$@]\\{",e:"\\}",k:d};var g={b:"->{",e:"}"};var a={cN:"variable",v:[{b:/\$\d/},{b:/[\$\%\@](\^\w\b|#\w+(\:\:\w+)*|{\w+}|\w+(\:\:\w*)*)/},{b:/[\$\%\@][^\s\w{]/,r:0}]};var e={cN:"comment",b:"^(__END__|__DATA__)",e:"\\n$",r:5};var h=[c.BE,f,a];var b=[a,c.HCM,e,{cN:"comment",b:"^\\=\\w",e:"\\=cut",eW:true},g,{cN:"string",c:h,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",r:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",r:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",r:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",r:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",r:5},{b:"qw\\s+q",e:"q",r:5},{b:"'",e:"'",c:[c.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[c.BE]},{b:"{\\w+}",c:[],r:0},{b:"-?\\w+\\s*\\=\\>",c:[],r:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\/\\/|"+c.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[c.HCM,e,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[c.BE],r:0}]},{cN:"sub",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",r:5},{cN:"operator",b:"-\\w\\b",r:0}];f.c=b;g.c=b;return{aliases:["pl"],k:d,c:b}});hljs.registerLanguage("objectivec",function(a){var d={keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"NSString NSDictionary CGRect CGPoint UIButton UILabel UITextView UIWebView MKMapView NSView NSViewController NSWindow NSWindowController NSSet NSUUID NSIndexSet UISegmentedControl NSObject UITableViewDelegate UITableViewDataSource NSThread UIActivityIndicator UITabbar UIToolBar UIBarButtonItem UIImageView NSAutoreleasePool UITableView BOOL NSInteger CGFloat NSException NSLog NSMutableString NSMutableArray NSMutableDictionary NSURL NSIndexPath CGSize UITableViewCell UIView UIViewController UINavigationBar UINavigationController UITabBarController UIPopoverController UIPopoverControllerDelegate UIImage NSNumber UISearchBar NSFetchedResultsController NSFetchedResultsChangeType UIScrollView UIScrollViewDelegate UIEdgeInsets UIColor UIFont UIApplication NSNotFound NSNotificationCenter NSNotification UILocalNotification NSBundle NSFileManager NSTimeInterval NSDate NSCalendar NSUserDefaults UIWindow NSRange NSArray NSError NSURLRequest NSURLConnection UIInterfaceOrientation MPMoviePlayerController dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"};var c=/[a-zA-Z@][a-zA-Z0-9_]*/;var b="@interface @class @protocol @implementation";return{aliases:["m","mm","objc","obj-c"],k:d,l:c,i:"</",c:[a.CLCM,a.CBCM,a.CNM,a.QSM,{cN:"string",v:[{b:'@"',e:'"',i:"\\n",c:[a.BE]},{b:"'",e:"[^\\\\]'",i:"[^\\\\][^']"}]},{cN:"preprocessor",b:"#",e:"$",c:[{cN:"title",v:[{b:'"',e:'"'},{b:"<",e:">"}]}]},{cN:"class",b:"("+b.split(" ").join("|")+")\\b",e:"({|$)",eE:true,k:b,l:c,c:[a.UTM]},{cN:"variable",b:"\\."+a.UIR,r:0}]}});hljs.registerLanguage("coffeescript",function(c){var b={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",reserved:"case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf",built_in:"npm require console print module global window document"};var a="[A-Za-z$_][0-9A-Za-z$_]*";var f=c.inherit(c.TM,{b:a});var e={cN:"subst",b:/#\{/,e:/}/,k:b};var d=[c.BNM,c.inherit(c.CNM,{starts:{e:"(\\s*/)?",r:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[c.BE]},{b:/'/,e:/'/,c:[c.BE]},{b:/"""/,e:/"""/,c:[c.BE,e]},{b:/"/,e:/"/,c:[c.BE,e]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[e,c.HCM]},{b:"//[gim]*",r:0},{b:"/\\S(\\\\.|[^\\n])*?/[gim]*(?=\\s|\\W|$)"}]},{cN:"property",b:"@"+a},{b:"`",e:"`",eB:true,eE:true,sL:"javascript"}];e.c=d;return{aliases:["coffee","cson","iced"],k:b,c:d.concat([{cN:"comment",b:"###",e:"###"},c.HCM,{cN:"function",b:"("+a+"\\s*=\\s*)?(\\(.*\\))?\\s*\\B[-=]>",e:"[-=]>",rB:true,c:[f,{cN:"params",b:"\\(",rB:true,c:[{b:/\(/,e:/\)/,k:b,c:["self"].concat(d)}]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:true,i:/[:="\[\]]/,c:[f]},f]},{cN:"attribute",b:a+":",e:":",rB:true,eE:true,r:0}])}});hljs.registerLanguage("nginx",function(c){var b={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+c.UIR}]};var a={eW:true,l:"[a-z/_]+",k:{built_in:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[c.HCM,{cN:"string",c:[c.BE,b],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{cN:"url",b:"([a-z]+):/",e:"\\s",eW:true,eE:true},{cN:"regexp",c:[c.BE,b],v:[{b:"\\s\\^",e:"\\s|{|;",rE:true},{b:"~\\*?\\s+",e:"\\s|{|;",rE:true},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0},b]};return{aliases:["nginxconf"],c:[c.HCM,{b:c.UIR+"\\s",e:";|{",rB:true,c:[{cN:"title",b:c.UIR,starts:a}],r:0}],i:"[^\\s\\}]"}});hljs.registerLanguage("json",function(a){var e={literal:"true false null"};var d=[a.QSM,a.CNM];var c={cN:"value",e:",",eW:true,eE:true,c:d,k:e};var b={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:true,eE:true,c:[a.BE],i:"\\n",starts:c}],i:"\\S"};var f={b:"\\[",e:"\\]",c:[a.inherit(c,{cN:null})],i:"\\S"};d.splice(d.length,0,b,f);return{c:d,k:e,i:"\\S"}});hljs.registerLanguage("apache",function(a){var b={cN:"number",b:"[\\$%]\\d+"};return{aliases:["apacheconf"],cI:true,c:[a.HCM,{cN:"tag",b:"</?",e:">"},{cN:"keyword",b:/\w+/,r:0,k:{common:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{e:/$/,r:0,k:{literal:"on off all"},c:[{cN:"sqbracket",b:"\\s\\[",e:"\\]$"},{cN:"cbracket",b:"[\\$%]\\{",e:"\\}",c:["self",b]},b,a.QSM]}}],i:/\S/}});hljs.registerLanguage("cpp",function(a){var b={keyword:"false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long throw volatile static protected bool template mutable if public friend do return goto auto void enum else break new extern using true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex _Complex _Imaginary",built_in:"std string cin cout cerr clog stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf"};return{aliases:["c","h","c++","h++"],k:b,i:"</",c:[a.CLCM,a.CBCM,a.QSM,{cN:"string",b:"'\\\\?.",e:"'",i:"."},{cN:"number",b:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},a.CNM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line pragma",c:[{b:'include\\s*[<"]',e:'[>"]',k:"include",i:"\\n"},a.CLCM]},{cN:"stl_container",b:"\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",e:">",k:b,c:["self"]},{b:a.IR+"::"}]}});hljs.registerLanguage("makefile",function(a){var b={cN:"variable",b:/\$\(/,e:/\)/,c:[a.BE]};return{aliases:["mk","mak"],c:[a.HCM,{b:/^\w+\s*\W*=/,rB:true,r:0,starts:{cN:"constant",e:/\s*\W*=/,eE:true,starts:{e:/$/,r:0,c:[b]}}},{cN:"title",b:/^[\w]+:\s*$/},{cN:"phony",b:/^\.PHONY:/,e:/$/,k:".PHONY",l:/[\.\w]+/},{b:/^\t+/,e:/$/,c:[a.QSM,b]}]}}); \ No newline at end of file | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/styles/default.css b/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/styles/default.css new file mode 100644 index 00000000..e5bd2801 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/styles/default.css | |||
@@ -0,0 +1,152 @@ | |||
1 | /* | ||
2 | |||
3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org> | ||
4 | |||
5 | */ | ||
6 | |||
7 | .hljs { | ||
8 | display: block; | ||
9 | overflow-x: auto; | ||
10 | padding: 0.5em; | ||
11 | background: #f0f0f0; | ||
12 | } | ||
13 | |||
14 | .hljs, | ||
15 | .hljs-subst, | ||
16 | .hljs-tag .hljs-title, | ||
17 | .lisp .hljs-title, | ||
18 | .clojure .hljs-built_in, | ||
19 | .nginx .hljs-title { | ||
20 | color: black; | ||
21 | } | ||
22 | |||
23 | .hljs-string, | ||
24 | .hljs-title, | ||
25 | .hljs-constant, | ||
26 | .hljs-parent, | ||
27 | .hljs-tag .hljs-value, | ||
28 | .hljs-rules .hljs-value, | ||
29 | .hljs-preprocessor, | ||
30 | .hljs-pragma, | ||
31 | .haml .hljs-symbol, | ||
32 | .ruby .hljs-symbol, | ||
33 | .ruby .hljs-symbol .hljs-string, | ||
34 | .hljs-template_tag, | ||
35 | .django .hljs-variable, | ||
36 | .smalltalk .hljs-class, | ||
37 | .hljs-addition, | ||
38 | .hljs-flow, | ||
39 | .hljs-stream, | ||
40 | .bash .hljs-variable, | ||
41 | .apache .hljs-tag, | ||
42 | .apache .hljs-cbracket, | ||
43 | .tex .hljs-command, | ||
44 | .tex .hljs-special, | ||
45 | .erlang_repl .hljs-function_or_atom, | ||
46 | .asciidoc .hljs-header, | ||
47 | .markdown .hljs-header, | ||
48 | .coffeescript .hljs-attribute { | ||
49 | color: #800; | ||
50 | } | ||
51 | |||
52 | .smartquote, | ||
53 | .hljs-comment, | ||
54 | .hljs-annotation, | ||
55 | .hljs-template_comment, | ||
56 | .diff .hljs-header, | ||
57 | .hljs-chunk, | ||
58 | .asciidoc .hljs-blockquote, | ||
59 | .markdown .hljs-blockquote { | ||
60 | color: #888; | ||
61 | } | ||
62 | |||
63 | .hljs-number, | ||
64 | .hljs-date, | ||
65 | .hljs-regexp, | ||
66 | .hljs-literal, | ||
67 | .hljs-hexcolor, | ||
68 | .smalltalk .hljs-symbol, | ||
69 | .smalltalk .hljs-char, | ||
70 | .go .hljs-constant, | ||
71 | .hljs-change, | ||
72 | .lasso .hljs-variable, | ||
73 | .makefile .hljs-variable, | ||
74 | .asciidoc .hljs-bullet, | ||
75 | .markdown .hljs-bullet, | ||
76 | .asciidoc .hljs-link_url, | ||
77 | .markdown .hljs-link_url { | ||
78 | color: #080; | ||
79 | } | ||
80 | |||
81 | .hljs-label, | ||
82 | .hljs-javadoc, | ||
83 | .ruby .hljs-string, | ||
84 | .hljs-decorator, | ||
85 | .hljs-filter .hljs-argument, | ||
86 | .hljs-localvars, | ||
87 | .hljs-array, | ||
88 | .hljs-attr_selector, | ||
89 | .hljs-important, | ||
90 | .hljs-pseudo, | ||
91 | .hljs-pi, | ||
92 | .haml .hljs-bullet, | ||
93 | .hljs-doctype, | ||
94 | .hljs-deletion, | ||
95 | .hljs-envvar, | ||
96 | .hljs-shebang, | ||
97 | .apache .hljs-sqbracket, | ||
98 | .nginx .hljs-built_in, | ||
99 | .tex .hljs-formula, | ||
100 | .erlang_repl .hljs-reserved, | ||
101 | .hljs-prompt, | ||
102 | .asciidoc .hljs-link_label, | ||
103 | .markdown .hljs-link_label, | ||
104 | .vhdl .hljs-attribute, | ||
105 | .clojure .hljs-attribute, | ||
106 | .asciidoc .hljs-attribute, | ||
107 | .lasso .hljs-attribute, | ||
108 | .coffeescript .hljs-property, | ||
109 | .hljs-phony { | ||
110 | color: #88f; | ||
111 | } | ||
112 | |||
113 | .hljs-keyword, | ||
114 | .hljs-id, | ||
115 | .hljs-title, | ||
116 | .hljs-built_in, | ||
117 | .css .hljs-tag, | ||
118 | .hljs-javadoctag, | ||
119 | .hljs-phpdoc, | ||
120 | .hljs-yardoctag, | ||
121 | .smalltalk .hljs-class, | ||
122 | .hljs-winutils, | ||
123 | .bash .hljs-variable, | ||
124 | .apache .hljs-tag, | ||
125 | .go .hljs-typename, | ||
126 | .tex .hljs-command, | ||
127 | .asciidoc .hljs-strong, | ||
128 | .markdown .hljs-strong, | ||
129 | .hljs-request, | ||
130 | .hljs-status { | ||
131 | font-weight: bold; | ||
132 | } | ||
133 | |||
134 | .asciidoc .hljs-emphasis, | ||
135 | .markdown .hljs-emphasis { | ||
136 | font-style: italic; | ||
137 | } | ||
138 | |||
139 | .nginx .hljs-built_in { | ||
140 | font-weight: normal; | ||
141 | } | ||
142 | |||
143 | .coffeescript .javascript, | ||
144 | .javascript .xml, | ||
145 | .lasso .markup, | ||
146 | .tex .hljs-formula, | ||
147 | .xml .javascript, | ||
148 | .xml .vbscript, | ||
149 | .xml .css, | ||
150 | .xml .hljs-cdata { | ||
151 | opacity: 0.5; | ||
152 | } | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/styles/github.css b/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/styles/github.css new file mode 100644 index 00000000..47fc2651 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/styles/github.css | |||
@@ -0,0 +1,127 @@ | |||
1 | /* | ||
2 | |||
3 | github.com style (c) Vasily Polovnyov <vast@whiteants.net> | ||
4 | |||
5 | */ | ||
6 | |||
7 | .hljs { | ||
8 | display: block; | ||
9 | overflow-x: auto; | ||
10 | padding: 0.5em; | ||
11 | color: #333; | ||
12 | background: #f8f8f8; | ||
13 | } | ||
14 | |||
15 | .hljs-comment, | ||
16 | .hljs-template_comment, | ||
17 | .diff .hljs-header, | ||
18 | .hljs-javadoc { | ||
19 | color: #998; | ||
20 | font-style: italic; | ||
21 | } | ||
22 | |||
23 | .hljs-keyword, | ||
24 | .css .rule .hljs-keyword, | ||
25 | .hljs-winutils, | ||
26 | .javascript .hljs-title, | ||
27 | .nginx .hljs-title, | ||
28 | .hljs-subst, | ||
29 | .hljs-request, | ||
30 | .hljs-status { | ||
31 | color: #333; | ||
32 | font-weight: bold; | ||
33 | } | ||
34 | |||
35 | .hljs-number, | ||
36 | .hljs-hexcolor, | ||
37 | .ruby .hljs-constant { | ||
38 | color: #099; | ||
39 | } | ||
40 | |||
41 | .hljs-string, | ||
42 | .hljs-tag .hljs-value, | ||
43 | .hljs-phpdoc, | ||
44 | .tex .hljs-formula { | ||
45 | color: #d14; | ||
46 | } | ||
47 | |||
48 | .hljs-title, | ||
49 | .hljs-id, | ||
50 | .coffeescript .hljs-params, | ||
51 | .scss .hljs-preprocessor { | ||
52 | color: #900; | ||
53 | font-weight: bold; | ||
54 | } | ||
55 | |||
56 | .javascript .hljs-title, | ||
57 | .lisp .hljs-title, | ||
58 | .clojure .hljs-title, | ||
59 | .hljs-subst { | ||
60 | font-weight: normal; | ||
61 | } | ||
62 | |||
63 | .hljs-class .hljs-title, | ||
64 | .haskell .hljs-type, | ||
65 | .vhdl .hljs-literal, | ||
66 | .tex .hljs-command { | ||
67 | color: #458; | ||
68 | font-weight: bold; | ||
69 | } | ||
70 | |||
71 | .hljs-tag, | ||
72 | .hljs-tag .hljs-title, | ||
73 | .hljs-rules .hljs-property, | ||
74 | .django .hljs-tag .hljs-keyword { | ||
75 | color: #000080; | ||
76 | font-weight: normal; | ||
77 | } | ||
78 | |||
79 | .hljs-attribute, | ||
80 | .hljs-variable, | ||
81 | .lisp .hljs-body { | ||
82 | color: #008080; | ||
83 | } | ||
84 | |||
85 | .hljs-regexp { | ||
86 | color: #009926; | ||
87 | } | ||
88 | |||
89 | .hljs-symbol, | ||
90 | .ruby .hljs-symbol .hljs-string, | ||
91 | .lisp .hljs-keyword, | ||
92 | .tex .hljs-special, | ||
93 | .hljs-prompt { | ||
94 | color: #990073; | ||
95 | } | ||
96 | |||
97 | .hljs-built_in, | ||
98 | .lisp .hljs-title, | ||
99 | .clojure .hljs-built_in { | ||
100 | color: #0086b3; | ||
101 | } | ||
102 | |||
103 | .hljs-preprocessor, | ||
104 | .hljs-pragma, | ||
105 | .hljs-pi, | ||
106 | .hljs-doctype, | ||
107 | .hljs-shebang, | ||
108 | .hljs-cdata { | ||
109 | color: #999; | ||
110 | font-weight: bold; | ||
111 | } | ||
112 | |||
113 | .hljs-deletion { | ||
114 | background: #fdd; | ||
115 | } | ||
116 | |||
117 | .hljs-addition { | ||
118 | background: #dfd; | ||
119 | } | ||
120 | |||
121 | .diff .hljs-change { | ||
122 | background: #0086b3; | ||
123 | } | ||
124 | |||
125 | .hljs-chunk { | ||
126 | color: #aaa; | ||
127 | } | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/styles/googlecode.css b/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/styles/googlecode.css new file mode 100644 index 00000000..fd237367 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/highlightjs/styles/googlecode.css | |||
@@ -0,0 +1,148 @@ | |||
1 | /* | ||
2 | |||
3 | Google Code style (c) Aahan Krish <geekpanth3r@gmail.com> | ||
4 | |||
5 | */ | ||
6 | |||
7 | .hljs { | ||
8 | display: block; | ||
9 | overflow-x: auto; | ||
10 | padding: 0.5em; | ||
11 | background: white; | ||
12 | color: black; | ||
13 | } | ||
14 | |||
15 | .hljs-comment, | ||
16 | .hljs-template_comment, | ||
17 | .hljs-javadoc { | ||
18 | color: #800; | ||
19 | } | ||
20 | |||
21 | .hljs-keyword, | ||
22 | .method, | ||
23 | .hljs-list .hljs-title, | ||
24 | .clojure .hljs-built_in, | ||
25 | .nginx .hljs-title, | ||
26 | .hljs-tag .hljs-title, | ||
27 | .setting .hljs-value, | ||
28 | .hljs-winutils, | ||
29 | .tex .hljs-command, | ||
30 | .http .hljs-title, | ||
31 | .hljs-request, | ||
32 | .hljs-status { | ||
33 | color: #008; | ||
34 | } | ||
35 | |||
36 | .hljs-envvar, | ||
37 | .tex .hljs-special { | ||
38 | color: #660; | ||
39 | } | ||
40 | |||
41 | .hljs-string, | ||
42 | .hljs-tag .hljs-value, | ||
43 | .hljs-cdata, | ||
44 | .hljs-filter .hljs-argument, | ||
45 | .hljs-attr_selector, | ||
46 | .apache .hljs-cbracket, | ||
47 | .hljs-date, | ||
48 | .hljs-regexp, | ||
49 | .coffeescript .hljs-attribute { | ||
50 | color: #080; | ||
51 | } | ||
52 | |||
53 | .hljs-sub .hljs-identifier, | ||
54 | .hljs-pi, | ||
55 | .hljs-tag, | ||
56 | .hljs-tag .hljs-keyword, | ||
57 | .hljs-decorator, | ||
58 | .ini .hljs-title, | ||
59 | .hljs-shebang, | ||
60 | .hljs-prompt, | ||
61 | .hljs-hexcolor, | ||
62 | .hljs-rules .hljs-value, | ||
63 | .hljs-literal, | ||
64 | .hljs-symbol, | ||
65 | .ruby .hljs-symbol .hljs-string, | ||
66 | .hljs-number, | ||
67 | .css .hljs-function, | ||
68 | .clojure .hljs-attribute { | ||
69 | color: #066; | ||
70 | } | ||
71 | |||
72 | .hljs-class .hljs-title, | ||
73 | .haskell .hljs-type, | ||
74 | .smalltalk .hljs-class, | ||
75 | .hljs-javadoctag, | ||
76 | .hljs-yardoctag, | ||
77 | .hljs-phpdoc, | ||
78 | .hljs-typename, | ||
79 | .hljs-tag .hljs-attribute, | ||
80 | .hljs-doctype, | ||
81 | .hljs-class .hljs-id, | ||
82 | .hljs-built_in, | ||
83 | .setting, | ||
84 | .hljs-params, | ||
85 | .hljs-variable, | ||
86 | .clojure .hljs-title { | ||
87 | color: #606; | ||
88 | } | ||
89 | |||
90 | .css .hljs-tag, | ||
91 | .hljs-rules .hljs-property, | ||
92 | .hljs-pseudo, | ||
93 | .hljs-subst { | ||
94 | color: #000; | ||
95 | } | ||
96 | |||
97 | .css .hljs-class, | ||
98 | .css .hljs-id { | ||
99 | color: #9b703f; | ||
100 | } | ||
101 | |||
102 | .hljs-value .hljs-important { | ||
103 | color: #ff7700; | ||
104 | font-weight: bold; | ||
105 | } | ||
106 | |||
107 | .hljs-rules .hljs-keyword { | ||
108 | color: #c5af75; | ||
109 | } | ||
110 | |||
111 | .hljs-annotation, | ||
112 | .apache .hljs-sqbracket, | ||
113 | .nginx .hljs-built_in { | ||
114 | color: #9b859d; | ||
115 | } | ||
116 | |||
117 | .hljs-preprocessor, | ||
118 | .hljs-preprocessor *, | ||
119 | .hljs-pragma { | ||
120 | color: #444; | ||
121 | } | ||
122 | |||
123 | .tex .hljs-formula { | ||
124 | background-color: #eee; | ||
125 | font-style: italic; | ||
126 | } | ||
127 | |||
128 | .diff .hljs-header, | ||
129 | .hljs-chunk { | ||
130 | color: #808080; | ||
131 | font-weight: bold; | ||
132 | } | ||
133 | |||
134 | .diff .hljs-change { | ||
135 | background-color: #bccff9; | ||
136 | } | ||
137 | |||
138 | .hljs-addition { | ||
139 | background-color: #baeeba; | ||
140 | } | ||
141 | |||
142 | .hljs-deletion { | ||
143 | background-color: #ffc8bd; | ||
144 | } | ||
145 | |||
146 | .hljs-comment .hljs-yardoctag { | ||
147 | font-weight: bold; | ||
148 | } | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/backtotop.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/backtotop.png new file mode 100644 index 00000000..051238ef --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/backtotop.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/bad-display.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/bad-display.png new file mode 100755 index 00000000..6866799f --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/bad-display.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/checkmark-off.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/checkmark-off.png new file mode 100644 index 00000000..3db5a06d --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/checkmark-off.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/checkmark-on.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/checkmark-on.png new file mode 100644 index 00000000..cd3abb2c --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/checkmark-on.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/down.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/down.png new file mode 100644 index 00000000..b9d536a7 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/down.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/envelop.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/envelop.png new file mode 100644 index 00000000..6be1c886 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/envelop.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/flattr.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/flattr.png new file mode 100755 index 00000000..0404aaea --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/flattr.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/left.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/left.png new file mode 100644 index 00000000..a0a53631 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/left.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/link.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/link.png new file mode 100755 index 00000000..db62819d --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/link.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/print.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/print.png new file mode 100755 index 00000000..83d6445b --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/print.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/remove.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/remove.png new file mode 100644 index 00000000..f8ad56a3 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/remove.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/rss.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/rss.png new file mode 100644 index 00000000..21bad1a1 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/rss.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/shaarli.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/shaarli.png new file mode 100644 index 00000000..1eb30f60 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/shaarli.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/star-off.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/star-off.png new file mode 100644 index 00000000..6a0133a7 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/star-off.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/star-on.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/star-on.png new file mode 100644 index 00000000..a9f96eaa --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/star-on.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/top.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/top.png new file mode 100644 index 00000000..954a8c0a --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/top.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/default/twitter.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/twitter.png new file mode 100644 index 00000000..cfcfe419 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/default/twitter.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/logo.svg b/src/Wallabag/Wallabag/Resources/views/default/public/img/logo.svg new file mode 100644 index 00000000..865da440 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/logo.svg | |||
@@ -0,0 +1,8 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="64" height="64"> | ||
3 | <circle cx="32" cy="32" r="29.5" style="fill:#000" /> | ||
4 | <path d="m 16,18 33,0 0,26 -16.5,6 -16.5,-6 z" fill="#fff" /> | ||
5 | <rect width="9" height="2.5" x="17.5" y="24.5" fill="#000" /> | ||
6 | <rect width="9" height="2.5" x="28" y="24.5" fill="#000" /> | ||
7 | <rect width="9" height="2.5" x="38.5" y="24.5" fill="#000" /> | ||
8 | </svg> | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/close.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/close.png new file mode 100644 index 00000000..731aa018 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/close.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/cross.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/cross.png new file mode 100644 index 00000000..1514d51a --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/cross.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/help.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/help.png new file mode 100644 index 00000000..5c870176 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/help.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/tick.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/tick.png new file mode 100644 index 00000000..a9925a06 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/tick.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/warning.png b/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/warning.png new file mode 100644 index 00000000..628cf2da --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/img/messages/warning.png | |||
Binary files differ | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/public/js/closeMessage.js b/src/Wallabag/Wallabag/Resources/views/default/public/js/closeMessage.js new file mode 100644 index 00000000..b57fe4a8 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/public/js/closeMessage.js | |||
@@ -0,0 +1,17 @@ | |||
1 | $(function(){ | ||
2 | //--------------------------------------------------------------------------- | ||
3 | // Show the close icon when the user hover over a message | ||
4 | //--------------------------------------------------------------------------- | ||
5 | $('.messages').on('mouseenter', function(){ | ||
6 | $(this).find('a.closeMessage').stop(true, true).show(); | ||
7 | }).on('mouseleave', function(){ | ||
8 | $(this).find('a.closeMessage').stop(true, true).hide(); | ||
9 | }); | ||
10 | //--------------------------------------------------------------------------- | ||
11 | // Close the message box when the user clicks the close icon | ||
12 | //--------------------------------------------------------------------------- | ||
13 | $('a.closeMessage').on('click', function(){ | ||
14 | $(this).parents('div.messages').slideUp(300, function(){ $(this).remove(); }); | ||
15 | return false; | ||
16 | }); | ||
17 | }); \ No newline at end of file | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/tags.twig b/src/Wallabag/Wallabag/Resources/views/default/tags.twig new file mode 100755 index 00000000..e5be748e --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/tags.twig | |||
@@ -0,0 +1,18 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | {% block title %}tags{% endblock %} | ||
3 | {% block menu %} | ||
4 | {% include '_menu.twig' %} | ||
5 | {% endblock %} | ||
6 | {% block content %} | ||
7 | <div class="two-column"> | ||
8 | {% for tag in tags %} | ||
9 | <a href="./?view=tag&id={{ tag.id }}">{{ tag.value }}</a> ({{ tag.entriescount }}) {% if token != '' %}<a href="?feed&type=tag&user_id={{ user_id }}&tag_id={{ tag.id }}&token={{ token }}" target="_blank"><img src="{{ poche_url }}themes/{{ theme }}/img/{{ theme }}/rss.png" /></a>{% endif %} | ||
10 | <br> | ||
11 | |||
12 | {% if loop.index == '%d'|format(loop.length/2 + 0.5) %} | ||
13 | </div><div class="two-column"> | ||
14 | {% endif %} | ||
15 | |||
16 | {% endfor %} | ||
17 | </div> | ||
18 | {% endblock %} \ No newline at end of file | ||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/theme.ini b/src/Wallabag/Wallabag/Resources/views/default/theme.ini new file mode 100644 index 00000000..9f3cfb6a --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/theme.ini | |||
@@ -0,0 +1 @@ | |||
name = Default \ No newline at end of file | |||
diff --git a/src/Wallabag/Wallabag/Resources/views/default/view.twig b/src/Wallabag/Wallabag/Resources/views/default/view.twig new file mode 100755 index 00000000..8f3a26c3 --- /dev/null +++ b/src/Wallabag/Wallabag/Resources/views/default/view.twig | |||
@@ -0,0 +1,124 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | {% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %} | ||
3 | {% block content %} | ||
4 | {% include '_highlight.twig' %} | ||
5 | {% include '_pocheit-form.twig' %} | ||
6 | <div id="article_toolbar"> | ||
7 | <ul> | ||
8 | <li><a href="./" title="{% trans "Return home" %}" class="tool back"><span>{% trans "Return home" %}</span></a></li> | ||
9 | <li><a href="#top" title="{% trans "Back to top" %}" class="tool top"><span>{% trans "Back to top" %}</span></a></li> | ||
10 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}" class="tool link"><span>{{ entry.url | e | getDomain }}</span></a></li> | ||
11 | <li><a title="{% trans "Mark as read" %}" class="tool {% if entry.is_read == 0 %}archive-off{% else %}archive{% endif %}" href="javascript: void(null);" id="markAsRead"><span>{% trans "Toggle mark as read" %}</span></a></li> | ||
12 | <li><a title="{% trans "Favorite" %}" class="tool {% if entry.is_fav == 0 %}fav-off{% else %}fav{% endif %}" href="javascript: void(null);" id="setFav"><span>{% trans "Toggle favorite" %}</span></a></li> | ||
13 | <li><a title="{% trans "Delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans "Delete" %}</span></a></li> | ||
14 | {% if constant('SHARE_TWITTER') == 1 %}<li><a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@wallabagapp" target="_blank" class="tool twitter" title="{% trans "Tweet" %}"><span>{% trans "Tweet" %}</span></a></li>{% endif %} | ||
15 | {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&body={{ entry.url|url_encode }}%20via%20@wallabagapp" class="tool email" title="{% trans "Email" %}"><span>{% trans "Email" %}</span></a></li>{% endif %} | ||
16 | {% if constant('SHARE_SHAARLI') == 1 %}<li><a href="{{ constant('SHAARLI_URL') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans "shaarli" %}"><span>{% trans "shaarli" %}</span></a></li>{% endif %} | ||
17 | {% if constant('SHARE_DIASPORA') == 1 %}<li><a href="{{ constant('DIASPORA_URL') }}/bookmarklet?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}¬es=&v=1&noui=1&jump=doclose" target="_blank" class="tool diaspora" title="{% trans "diaspora" %}"><span>{% trans "diaspora" %}</span></a></li>{% endif %} | ||
18 | {% 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 %} | ||
19 | {% 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 %} | ||
20 | {% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %} | ||
21 | {% if constant('EPUB') == 1 %}<li><a href="./?epub&method=id&value={{ entry.id|e }}" title="Generate ePub file">EPUB</a></li>{% endif %} | ||
22 | {% if constant('MOBI') == 1 %}<li><a href="./?mobi&method=id&value={{ entry.id|e }}" title="Generate Mobi file">MOBI</a></li>{% endif %} | ||
23 | {% if constant('PDF') == 1 %}<li><a href="./?pdf&method=id&value={{ entry.id|e }}" title="Generate PDF file">PDF</a></li>{% endif %} | ||
24 | <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&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> | ||
25 | {% if constant('SHOW_READPERCENT') == 1 %}<li><div id="readLeftPercent">0%</div></li>{% endif %} | ||
26 | </ul> | ||
27 | </div> | ||
28 | <div id="article"> | ||
29 | <header class="mbm"> | ||
30 | <h1>{{ entry.title|raw }}</h1> | ||
31 | </header> | ||
32 | {% block tags %} | ||
33 | <aside class="tags"> | ||
34 | {% trans "tags:" %} {% for tag in tags %}<a href="./?view=tag&id={{ tag.id }}">{{ tag.value }}</a> {% endfor %}<a href="./?view=edit-tags&id={{ entry.id|e }}" title="{% trans "Edit tags" %}">✎</a> | ||
35 | </aside> | ||
36 | {% endblock %} | ||
37 | <article> | ||
38 | {{ content | raw }} | ||
39 | </article> | ||
40 | {{ block('tags') }} | ||
41 | </div> | ||
42 | <script src="{{ poche_url }}themes/_global/js/restoreScroll.js"></script> | ||
43 | <script type="text/javascript"> | ||
44 | $(document).ready(function() { | ||
45 | |||
46 | // toggle read property of current article | ||
47 | $('#markAsRead').click(function(){ | ||
48 | $("body").css("cursor", "wait"); | ||
49 | $.ajax( { url: './?action=toggle_archive&id={{ entry.id|e }}' }).done( | ||
50 | function( data ) { | ||
51 | if ( data == '1' ) { | ||
52 | if ( $('#markAsRead').hasClass("archive-off") ) { | ||
53 | $('#markAsRead').removeClass("archive-off"); | ||
54 | $('#markAsRead').addClass("archive"); | ||
55 | } | ||
56 | else { | ||
57 | $('#markAsRead').removeClass("archive"); | ||
58 | $('#markAsRead').addClass("archive-off"); | ||
59 | } | ||
60 | } | ||
61 | else { | ||
62 | alert('Error! Pls check if you are logged in.'); | ||
63 | } | ||
64 | }); | ||
65 | $("body").css("cursor", "auto"); | ||
66 | }); | ||
67 | |||
68 | // toggle favorite property of current article | ||
69 | $('#setFav').click(function(){ | ||
70 | $("body").css("cursor", "wait"); | ||
71 | $.ajax( { url: './?action=toggle_fav&id={{ entry.id|e }}' }).done( | ||
72 | function( data ) { | ||
73 | if ( data == '1' ) { | ||
74 | if ( $('#setFav').hasClass("fav-off") ) { | ||
75 | $('#setFav').removeClass("fav-off"); | ||
76 | $('#setFav').addClass("fav"); | ||
77 | } | ||
78 | else { | ||
79 | $('#setFav').removeClass("fav"); | ||
80 | $('#setFav').addClass("fav-off"); | ||
81 | } | ||
82 | } | ||
83 | else { | ||
84 | alert('Error! Pls check if you are logged in.'); | ||
85 | } | ||
86 | }); | ||
87 | $("body").css("cursor", "auto"); | ||
88 | }); | ||
89 | |||
90 | // set percent of read on startup | ||
91 | if ( $(document).height() <= $(window).innerHeight() ) { | ||
92 | pp = 100; | ||
93 | } | ||
94 | else { | ||
95 | pp = 0; | ||
96 | } | ||
97 | $('#readLeftPercent').text( pp + '%' ); | ||
98 | |||
99 | |||
100 | $(window).scroll(function(e){ | ||
101 | var scrollTop = $(window).scrollTop(); | ||
102 | var docHeight = $(document).height(); | ||
103 | var scrollPercent = (scrollTop) / (docHeight); | ||
104 | var scrollPercentRounded = Math.round(scrollPercent*100)/100; | ||
105 | savePercent({{ entry.id|e }}, scrollPercentRounded); | ||
106 | |||
107 | // change percent of read on scroll | ||
108 | pp = Math.round(scrollTop * 100 / ( docHeight - $(window).innerHeight() )); | ||
109 | $('#readLeftPercent').text( pp + '%' ); | ||
110 | }); | ||
111 | |||
112 | retrievePercent({{ entry.id|e }}); | ||
113 | |||
114 | $(window).resize(function(){ | ||
115 | retrievePercent({{ entry.id|e }}); | ||
116 | }); | ||
117 | |||
118 | // Hide useless "back to top" link when there is no scrollbar | ||
119 | if ($("body").height() <= $(window).height()) { | ||
120 | $('#article_toolbar .tool.top').parent().hide(); | ||
121 | } | ||
122 | }); | ||
123 | </script> | ||
124 | {% endblock %} | ||