diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2015-01-23 16:28:37 +0100 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2015-01-23 16:28:37 +0100 |
commit | ad4d1caa9e744af57ca58a4e57576533eb682d00 (patch) | |
tree | 37d6c284d2afc7fc62cdf80be419b536ab4ea603 /src/WallabagBundle/Resources | |
parent | b84a80559a1167b5500fbc5eb4965d3b08b371ef (diff) | |
download | wallabag-ad4d1caa9e744af57ca58a4e57576533eb682d00.tar.gz wallabag-ad4d1caa9e744af57ca58a4e57576533eb682d00.tar.zst wallabag-ad4d1caa9e744af57ca58a4e57576533eb682d00.zip |
move WallabagBundle into Wallabag:CoreBundle
Diffstat (limited to 'src/WallabagBundle/Resources')
15 files changed, 0 insertions, 346 deletions
diff --git a/src/WallabagBundle/Resources/config/routing.yml b/src/WallabagBundle/Resources/config/routing.yml deleted file mode 100644 index ad79b1f0..00000000 --- a/src/WallabagBundle/Resources/config/routing.yml +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | _wllbg: | ||
2 | resource: "@WallabagBundle/Controller/EntryController.php" | ||
3 | type: annotation | ||
diff --git a/src/WallabagBundle/Resources/config/services.xml b/src/WallabagBundle/Resources/config/services.xml deleted file mode 100644 index 02d82643..00000000 --- a/src/WallabagBundle/Resources/config/services.xml +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | <?xml version="1.0" ?> | ||
2 | |||
3 | <container xmlns="http://symfony.com/schema/dic/services" | ||
4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
5 | xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
6 | |||
7 | <services> | ||
8 | <service id="wallabag.twig.extension.wallabag_extension" class="WallabagBundle\Twig\Extension\WallabagExtension"> | ||
9 | <tag name="twig.extension" /> | ||
10 | </service> | ||
11 | </services> | ||
12 | </container> | ||
diff --git a/src/WallabagBundle/Resources/views/Entry/entries.html.twig b/src/WallabagBundle/Resources/views/Entry/entries.html.twig deleted file mode 100644 index de343aa2..00000000 --- a/src/WallabagBundle/Resources/views/Entry/entries.html.twig +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | {% extends "WallabagBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title "Unread" %} | ||
4 | |||
5 | {% block menu %} | ||
6 | {% include "WallabagBundle::_menu.html.twig" %} | ||
7 | {% endblock %} | ||
8 | |||
9 | {% block content %} | ||
10 | {% block pager %} | ||
11 | {% if entries is not empty %} | ||
12 | <div class="results"> | ||
13 | <div class="nb-results">{{ entries.count }} {% trans %}entries{% endtrans %}</div> | ||
14 | <div class="pagination"> | ||
15 | {% for p in range(1, entries.count) %} | ||
16 | <li> | ||
17 | <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}">{{ p }}</a> | ||
18 | </li> | ||
19 | {% endfor %} | ||
20 | </div> | ||
21 | </div> | ||
22 | {% endif %} | ||
23 | {% endblock %} | ||
24 | |||
25 | {% if entries is empty %} | ||
26 | <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div> | ||
27 | {% else %} | ||
28 | {% for entry in entries %} | ||
29 | <div id="entry-{{ entry.id|e }}" class="entrie"> | ||
30 | <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2> | ||
31 | {% if entry.content| readingTime > 0 %} | ||
32 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} {{ entry.content| readingTime }} min</span></div> | ||
33 | {% else %} | ||
34 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} <small class="inferieur"><</small> 1 min</span></div> | ||
35 | {% endif %} | ||
36 | |||
37 | <ul class="tools links"> | ||
38 | <li><a title="{% trans %}Toggle mark as read{% endtrans %}" class="tool icon-check icon {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li> | ||
39 | <li><a title="{% trans %}toggle favorite{% endtrans %}" class="tool icon-star icon {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="{{ path('star_entry', { 'id': entry.id }) }}"><span>{% trans %}toggle favorite{% endtrans %}</span></a></li> | ||
40 | <li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{% trans %}delete{% endtrans %}</span></a></li> | ||
41 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.url | e | domainName }}</span></a></li> | ||
42 | </ul> | ||
43 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | ||
44 | </div> | ||
45 | {% endfor %} | ||
46 | {% endif %} | ||
47 | {% endblock %} | ||
diff --git a/src/WallabagBundle/Resources/views/Entry/entry.html.twig b/src/WallabagBundle/Resources/views/Entry/entry.html.twig deleted file mode 100644 index 8c08b2ef..00000000 --- a/src/WallabagBundle/Resources/views/Entry/entry.html.twig +++ /dev/null | |||
@@ -1,104 +0,0 @@ | |||
1 | {% extends "WallabagBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ entry.title|raw }} ({{ entry.url | e | domainName }}){% endblock %} | ||
4 | |||
5 | {% block menu %} | ||
6 | {% include "WallabagBundle::_menu.html.twig" %} | ||
7 | {% endblock %} | ||
8 | |||
9 | {% block content %} | ||
10 | <div id="article_toolbar"> | ||
11 | <ul class="links"> | ||
12 | <li class="topPosF"><a href="#top" title="{% trans %}Back to top{% endtrans %}" class="tool top icon icon-arrow-up-thick"><span>{% trans %}Back to top{% endtrans %}</span></a></li> | ||
13 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon icon-link"><span>{{ entry.url | e | domainName }}</span></a></li> | ||
14 | <li><a title="{% trans %}Mark as read{% endtrans %}" class="tool icon icon-check {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li> | ||
15 | <li><a title="{% trans %}Favorite{% endtrans %}" class="tool icon icon-star {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="{{ path('star_entry', { 'id': entry.id }) }}"><span>{% trans %}Toggle favorite{% endtrans %}</span></a></li> | ||
16 | <li><a title="{% trans %}Delete{% endtrans %}" class="tool delete icon icon-trash" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{% trans %}Delete{% endtrans %}</span></a></li> | ||
17 | {% if share_twitter %}<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 icon icon-twitter" title="{% trans %}Tweet{% endtrans %}"><span>{% trans %}Tweet{% endtrans %}</span></a></li>{% endif %} | ||
18 | {% if share_mail %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&body={{ entry.url|url_encode }}%20via%20@wallabagapp" class="tool email icon icon-mail" title="{% trans %}Email{% endtrans %}"><span>{% trans %}Email{% endtrans %}</span></a></li>{% endif %} | ||
19 | {% if share_shaarli %}<li><a href="{{ shaarli_url }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans %}shaarli{% endtrans %}"><span>{% trans %}shaarli{% endtrans %}</span></a></li>{% endif %} | ||
20 | {% if share_diaspora %}<li><a href="{{ 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 icon-image icon-image--diaspora" title="{% trans %}diaspora{% endtrans %}"><span>{% trans %}diaspora{% endtrans %}</span></a></li>{% endif %} | ||
21 | {# {% if flattr %}{% if flattr.status == flattrable %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr icon icon-flattr" target="_blank" title="{% trans %}flattr{% endtrans %}"><span>{% trans %}flattr{% endtrans %}</span></a></li>{% elseif flattr.status == flattred %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr icon icon-flattr" target="_blank" title="{% trans %}flattr{% endtrans %}><span>{% trans %}flattr{% endtrans %}</span> ({{ flattr.numFlattrs }})</a></li>{% endif %}{% endif %} #} | ||
22 | {% if carrot %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon-image icon-image--carrot" target="_blank" title="{% trans %}carrot{% endtrans %}"><span>Carrot</span></a></li>{% endif %} | ||
23 | {% if show_printlink %}<li><a title="{% trans %}Print{% endtrans %}" class="tool icon icon-print" href="javascript: window.print();"><span>{% trans %}Print{% endtrans %}</span></a></li>{% endif %} | ||
24 | {% if export_epub %}<li><a href="./?epub&method=id&value={{ entry.id|e }}" title="Generate ePub file">EPUB</a></li>{% endif %} | ||
25 | {% if export_mobi %}<li><a href="./?mobi&method=id&value={{ entry.id|e }}" title="Generate Mobi file">MOBI</a></li>{% endif %} | ||
26 | {% if export_pdf %}<li><a href="./?pdf&method=id&value={{ entry.id|e }}" title="Generate PDF file">PDF</a></li>{% endif %} | ||
27 | <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{% trans %}Does this article appear wrong?{% endtrans %}" class="tool bad-display icon icon-delete"><span>{% trans %}Does this article appear wrong?{% endtrans %}</span></a></li> | ||
28 | </ul> | ||
29 | </div> | ||
30 | <div id="article"> | ||
31 | <header class="mbm"> | ||
32 | <h1>{{ entry.title|raw }}</h1> | ||
33 | </header> | ||
34 | <aside class="tags"> | ||
35 | 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{% endtrans %}">✎</a> #} | ||
36 | </aside> | ||
37 | <article> | ||
38 | {{ entry.content | raw }} | ||
39 | </article> | ||
40 | </div> | ||
41 | <script src="{{ asset('themes/_global/js/restoreScroll.js')}}"></script> | ||
42 | <script type="text/javascript"> | ||
43 | $(document).ready(function() { | ||
44 | |||
45 | // toggle read property of current article | ||
46 | /* $('#markAsRead').click(function(){ | ||
47 | $("body").css("cursor", "wait"); | ||
48 | $.ajax( { url: '{{ path('archive_entry', { 'id': entry.id }) }}' }).done( | ||
49 | function( data ) { | ||
50 | if ( data == '1' ) { | ||
51 | if ( $('#markAsRead').hasClass("archive-off") ) { | ||
52 | $('#markAsRead').removeClass("archive-off"); | ||
53 | $('#markAsRead').addClass("archive"); | ||
54 | } | ||
55 | else { | ||
56 | $('#markAsRead').removeClass("archive"); | ||
57 | $('#markAsRead').addClass("archive-off"); | ||
58 | } | ||
59 | } | ||
60 | else { | ||
61 | alert('Error! Pls check if you are logged in.'); | ||
62 | } | ||
63 | }); | ||
64 | $("body").css("cursor", "auto"); | ||
65 | });*/ | ||
66 | |||
67 | // toggle favorite property of current article | ||
68 | /* $('#setFav').click(function(){ | ||
69 | $("body").css("cursor", "wait"); | ||
70 | $.ajax( { url: '{{ path('star_entry', { 'id': entry.id }) }}' }).done( | ||
71 | function( data ) { | ||
72 | if ( data == '1' ) { | ||
73 | if ( $('#setFav').hasClass("fav-off") ) { | ||
74 | $('#setFav').removeClass("fav-off"); | ||
75 | $('#setFav').addClass("fav"); | ||
76 | } | ||
77 | else { | ||
78 | $('#setFav').removeClass("fav"); | ||
79 | $('#setFav').addClass("fav-off"); | ||
80 | } | ||
81 | } | ||
82 | else { | ||
83 | alert('Error! Pls check if you are logged in.'); | ||
84 | } | ||
85 | }); | ||
86 | $("body").css("cursor", "auto"); | ||
87 | });*/ | ||
88 | |||
89 | $(window).scroll(function(e){ | ||
90 | var scrollTop = $(window).scrollTop(); | ||
91 | var docHeight = $(document).height(); | ||
92 | var scrollPercent = (scrollTop) / (docHeight); | ||
93 | var scrollPercentRounded = Math.round(scrollPercent*100)/100; | ||
94 | savePercent({{ entry.id|e }}, scrollPercentRounded); | ||
95 | }); | ||
96 | |||
97 | retrievePercent({{ entry.id|e }}); | ||
98 | |||
99 | $(window).resize(function(){ | ||
100 | retrievePercent({{ entry.id|e }}); | ||
101 | }); | ||
102 | }); | ||
103 | </script> | ||
104 | {% endblock %} \ No newline at end of file | ||
diff --git a/src/WallabagBundle/Resources/views/Entry/new.html.twig b/src/WallabagBundle/Resources/views/Entry/new.html.twig deleted file mode 100644 index 78da791f..00000000 --- a/src/WallabagBundle/Resources/views/Entry/new.html.twig +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | {% extends "WallabagBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{% trans %}Save new entry{% endtrans %}{% endblock %} | ||
4 | |||
5 | {% block menu %} | ||
6 | {% include "WallabagBundle::_menu.html.twig" %} | ||
7 | {% endblock %} | ||
8 | |||
9 | {% block content %} | ||
10 | {{ form(form) }} | ||
11 | {% endblock %} \ No newline at end of file | ||
diff --git a/src/WallabagBundle/Resources/views/Static/about.html.twig b/src/WallabagBundle/Resources/views/Static/about.html.twig deleted file mode 100755 index 752526e1..00000000 --- a/src/WallabagBundle/Resources/views/Static/about.html.twig +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | {% extends "WallabagBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{% trans %}About{% endtrans %}{% endblock %} | ||
4 | {% block menu %} | ||
5 | {% include "WallabagBundle::_menu.html.twig" %} | ||
6 | {% endblock %} | ||
7 | {% block content %} | ||
8 | <h2>{% trans %}About wallabag{% endtrans %}</h2> | ||
9 | |||
10 | <dl> | ||
11 | <dt>{% trans %}Project website{% endtrans %}</dt> | ||
12 | <dd><a href="https://www.wallabag.org">https://www.wallabag.org</a></dd> | ||
13 | |||
14 | <dt>{% trans %}Main developer{% endtrans %}</dt> | ||
15 | <dd><a href="mailto:nicolas@loeuillet.org">Nicolas Lœuillet</a> — <a href="http://cdetc.fr">{% trans %}website{% endtrans %}</a></dd> | ||
16 | |||
17 | <dt>{% trans %}Contributors ♥:{% endtrans %}</dt> | ||
18 | <dd><a href="https://github.com/wallabag/wallabag/graphs/contributors">{% trans %}on Github{% endtrans %}</a></dd> | ||
19 | |||
20 | <dt>{% trans %}Bug reports{% endtrans %}</dt> | ||
21 | <dd><a href="https://support.wallabag.org">{% trans %}On our support website{% endtrans %}</a> {% trans %}or{% endtrans %} <a href="https://github.com/wallabag/wallabag/issues">{% trans %}on Github{% endtrans %}</a></dd> | ||
22 | |||
23 | <dt>{% trans %}License{% endtrans %}</dt> | ||
24 | <dd><a href="http://en.wikipedia.org/wiki/MIT_License">MIT</a></dd> | ||
25 | |||
26 | <dt>{% trans %}Version{% endtrans %}</dt> | ||
27 | <dd>{{ version }}</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.{% endtrans %}</p> | ||
31 | |||
32 | <h2>{% trans %}Getting help{% endtrans %}</h2> | ||
33 | |||
34 | <dl> | ||
35 | <dt>{% trans %}Documentation{% endtrans %}</dt> | ||
36 | <dd><a href="https://doc.wallabag.org/">Online documentation</a></dd> | ||
37 | |||
38 | <dt>{% trans %}Support{% endtrans %}</dt> | ||
39 | <dd><a href="http://support.wallabag.org/">http://support.wallabag.org/</a></dd> | ||
40 | </dl> | ||
41 | |||
42 | <h2>{% trans %}Helping wallabag{% endtrans %}</h2> | ||
43 | |||
44 | <p>{% trans %}wallabag is free and opensource. You can help us:{% endtrans %}</p> | ||
45 | |||
46 | <dl> | ||
47 | <dt><a href="{{ paypal_url }}">{% trans %}via Paypal{% endtrans %}</a></dt> | ||
48 | |||
49 | <dt><a href="{{ flattr_url }}">{% trans %}via Flattr{% endtrans %}</a></dt> | ||
50 | </dl> | ||
51 | {% endblock %} | ||
diff --git a/src/WallabagBundle/Resources/views/_bookmarklet.html.twig b/src/WallabagBundle/Resources/views/_bookmarklet.html.twig deleted file mode 100644 index d432909a..00000000 --- a/src/WallabagBundle/Resources/views/_bookmarklet.html.twig +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | <script type="text/javascript"> | ||
2 | top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="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/WallabagBundle/Resources/views/_footer.html.twig b/src/WallabagBundle/Resources/views/_footer.html.twig deleted file mode 100644 index c897a97e..00000000 --- a/src/WallabagBundle/Resources/views/_footer.html.twig +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | <footer class="w600p center mt3 mb3 smaller txtright"> | ||
2 | <p>{% trans %}powered by{% endtrans %} <a href="http://wallabag.org">wallabag</a></p> | ||
3 | </footer> \ No newline at end of file | ||
diff --git a/src/WallabagBundle/Resources/views/_head.html.twig b/src/WallabagBundle/Resources/views/_head.html.twig deleted file mode 100755 index 7ef79a2f..00000000 --- a/src/WallabagBundle/Resources/views/_head.html.twig +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | <link rel="apple-touch-icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-152.png') }}" sizes="152x152"> | ||
2 | <link rel="icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-152.png') }}" sizes="152x152"> | ||
3 | |||
4 | <link rel="apple-touch-icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-144.png') }}" sizes="144x144"> | ||
5 | <link rel="icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-144.png') }}" sizes="144x144"> | ||
6 | |||
7 | <link rel="apple-touch-icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-120.png') }}" sizes="120x120"> | ||
8 | <link rel="icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-120.png') }}" sizes="120x120"> | ||
9 | |||
10 | <link rel="apple-touch-icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-114.png') }}" sizes="114x114"> | ||
11 | <link rel="icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-114.png') }}" sizes="114x114"> | ||
12 | |||
13 | <link rel="apple-touch-icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-76.png') }}" sizes="76x76"> | ||
14 | <link rel="icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-76.png') }}" sizes="76x76"> | ||
15 | |||
16 | <link rel="apple-touch-icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-72.png') }}" sizes="72x72"> | ||
17 | <link rel="icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-72.png') }}" sizes="72x72"> | ||
18 | |||
19 | <link rel="apple-touch-icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-57.png') }}" sizes="57x57"> | ||
20 | <link rel="icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon-57.png') }}" sizes="57x57"> | ||
21 | |||
22 | <link rel="apple-touch-icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon.png') }}"> | ||
23 | <link rel="icon" type="image/png" href="{{ asset('themes/_global/img/appicon/apple-touch-icon.png') }}"> | ||
24 | |||
25 | <link rel="shortcut icon" type="image/x-icon" href="{{ asset('themes/_global/img/appicon/favicon.ico') }}"> | ||
26 | |||
27 | <link rel="stylesheet" href="{{ asset('themes/baggy/css/ratatouille.css') }}" media="all"> | ||
28 | <link rel="stylesheet" href="{{ asset('themes/baggy/css/font.css') }}" media="all"> | ||
29 | <link rel="stylesheet" href="{{ asset('themes/baggy/css/main.css') }}" media="all"> | ||
30 | <link rel="stylesheet" href="{{ asset('themes/baggy/css/messages.css') }}" media="all"> | ||
31 | <link rel="stylesheet" href="{{ asset('themes/baggy/css/print.css') }}" media="print"> | ||
32 | |||
33 | <script src="{{ asset('themes/_global/js/jquery-2.0.3.min.js') }}"></script> | ||
34 | <script src="{{ asset('themes/_global/js/autoClose.js') }}"></script> | ||
35 | <script src="{{ asset('themes/baggy/js/jquery.cookie.js') }}"></script> | ||
36 | <script src="{{ asset('themes/baggy/js/init.js') }}"></script> | ||
37 | <script src="{{ asset('themes/_global/js/saveLink.js') }}"></script> | ||
38 | <script src="{{ asset('themes/_global/js/popupForm.js') }}"></script> | ||
39 | <script src="{{ asset('themes/baggy/js/closeMessage.js') }}"></script> | ||
40 | |||
diff --git a/src/WallabagBundle/Resources/views/_menu.html.twig b/src/WallabagBundle/Resources/views/_menu.html.twig deleted file mode 100644 index 419a676b..00000000 --- a/src/WallabagBundle/Resources/views/_menu.html.twig +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | <button id="menu" class="icon icon-menu desktopHide"><span>Menu</span></button> | ||
2 | <ul id="links" class="links"> | ||
3 | <li><a href="{{ path('unread') }}">{% trans %}unread{% endtrans %}</a></li> | ||
4 | <li><a href="{{ path('starred') }}">{% trans %}favorites{% endtrans %}</a></li> | ||
5 | <li><a href="{{ path('archive') }}"}>{% trans %}archive{% endtrans %}</a></li> | ||
6 | <li><a href="./?view=tags">{% trans %}tags{% endtrans %}</a></li> | ||
7 | <li><a href="{{ path('new_entry') }}">{% trans %}save a link{% endtrans %}</a></li> | ||
8 | <li style="position: relative;"><a href="javascript: void(null);" id="search">{% trans %}search{% endtrans %}</a> | ||
9 | {% include "WallabagBundle::_search_form.html.twig" %} | ||
10 | </li> | ||
11 | <li><a href="./?view=config">{% trans %}config{% endtrans %}</a></li> | ||
12 | <li><a href={{ path('about') }}>{% trans %}about{% endtrans %}</a></li> | ||
13 | <li><a class="icon icon-power" href="./?logout" title="{% trans %}logout{% endtrans %}">{% trans %}logout{% endtrans %}</a></li> | ||
14 | </ul> | ||
15 | |||
diff --git a/src/WallabagBundle/Resources/views/_messages.html.twig b/src/WallabagBundle/Resources/views/_messages.html.twig deleted file mode 100644 index e69de29b..00000000 --- a/src/WallabagBundle/Resources/views/_messages.html.twig +++ /dev/null | |||
diff --git a/src/WallabagBundle/Resources/views/_save_form.html.twig b/src/WallabagBundle/Resources/views/_save_form.html.twig deleted file mode 100755 index acaa5dbc..00000000 --- a/src/WallabagBundle/Resources/views/_save_form.html.twig +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | <div id="bagit-form" class="messages info popup-form"> | ||
2 | <form method="get" action="index.php" target="_blank" id="bagit-form-form"> | ||
3 | <h2>{% trans %}Save a link{% endtrans %}</h2> | ||
4 | <a href="javascript: void(null);" id="bagit-form-close" class="close-button--popup close-button">×</a> | ||
5 | <input type="hidden" name="autoclose" value="1" /> | ||
6 | <input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" /> | ||
7 | <span id="add-link-result"></span> | ||
8 | <input type="submit" value="{% trans %}save link!"{% endtrans %} /> | ||
9 | </form> | ||
10 | </div> | ||
diff --git a/src/WallabagBundle/Resources/views/_search_form.html.twig b/src/WallabagBundle/Resources/views/_search_form.html.twig deleted file mode 100644 index 7eb1b67d..00000000 --- a/src/WallabagBundle/Resources/views/_search_form.html.twig +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | <div id="search-form" class="messages info popup-form"> | ||
2 | <form method="get" action="index.php"> | ||
3 | <h2>{% trans %}Search{% endtrans %}</h2> | ||
4 | <a href="javascript: void(null);" id="search-form-close" class="close-button--popup close-button">×</a> | ||
5 | <input type="hidden" name="view" value="search"></input> | ||
6 | <input required placeholder="{% trans %}Enter your search here{% endtrans %}" type="text" name="search" id="searchfield"><br> | ||
7 | <input id="submit-search" type="submit" value="{% trans %}Search{% endtrans %}"></input> | ||
8 | </form> | ||
9 | </div> | ||
diff --git a/src/WallabagBundle/Resources/views/_top.html.twig b/src/WallabagBundle/Resources/views/_top.html.twig deleted file mode 100755 index 34d925df..00000000 --- a/src/WallabagBundle/Resources/views/_top.html.twig +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | <header class="w600p center mbm"> | ||
2 | <h1> | ||
3 | {% block logo %}<img width="100" height="100" src="{{ asset('themes/baggy/img/logo-w.png') }}" alt="wallabag logo" />{% endblock %} | ||
4 | </h1> | ||
5 | </header> | ||
diff --git a/src/WallabagBundle/Resources/views/layout.html.twig b/src/WallabagBundle/Resources/views/layout.html.twig deleted file mode 100644 index 34d9b1b0..00000000 --- a/src/WallabagBundle/Resources/views/layout.html.twig +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!--[if lte IE 6]><html class="no-js ie6 ie67 ie678" lang="en"><![endif]--> | ||
3 | <!--[if lte IE 7]><html class="no-js ie7 ie67 ie678" lang="en"><![endif]--> | ||
4 | <!--[if IE 8]><html class="no-js ie8 ie678" lang="en"><![endif]--> | ||
5 | <!--[if gt IE 8]><html class="no-js" lang="en"><![endif]--> | ||
6 | <html lang="en"> | ||
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 "WallabagBundle::_head.html.twig" %} | ||
15 | {% include "WallabagBundle::_bookmarklet.html.twig" %} | ||
16 | </head> | ||
17 | <body> | ||
18 | {% include "WallabagBundle::_top.html.twig" %} | ||
19 | <div id="main"> | ||
20 | {% block menu %}{% endblock %} | ||
21 | {% block precontent %}{% endblock %} | ||
22 | {% for flashMessage in app.session.flashbag.get('notice') %} | ||
23 | <div class="flash-notice"> | ||
24 | {{ flashMessage }} | ||
25 | </div> | ||
26 | {% endfor %} | ||
27 | <div id="content" class="w600p center"> | ||
28 | {% block content %}{% endblock %} | ||
29 | </div> | ||
30 | </div> | ||
31 | {% include "WallabagBundle::_footer.html.twig" %} | ||
32 | </body> | ||
33 | </html> \ No newline at end of file | ||