From 3c4e809939194e38e60659c8cf39531ecfc74775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Fri, 7 Feb 2014 22:13:52 +0100 Subject: [PATCH] Add bootstrap theme. Not complete but should mainly work. re #79 --- templates/bootstrap/bookdetail.html | 61 +++++++++++++++++++++++++++++ templates/bootstrap/footer.html | 0 templates/bootstrap/header.html | 20 ++++++++++ templates/bootstrap/main.html | 50 +++++++++++++++++++++++ templates/bootstrap/page.html | 5 +++ templates/bootstrap/suggestion.html | 1 + 6 files changed, 137 insertions(+) create mode 100644 templates/bootstrap/bookdetail.html create mode 100644 templates/bootstrap/footer.html create mode 100644 templates/bootstrap/header.html create mode 100644 templates/bootstrap/main.html create mode 100644 templates/bootstrap/page.html create mode 100644 templates/bootstrap/suggestion.html diff --git a/templates/bootstrap/bookdetail.html b/templates/bootstrap/bookdetail.html new file mode 100644 index 0000000..b9ed403 --- /dev/null +++ b/templates/bootstrap/bookdetail.html @@ -0,0 +1,61 @@ +
+ + {{? it.book.hasCover == 1}} + + {{=it.c.i18n.coverAlt}} + + {{?}} + +

+ {{~it.book.datas:data:i}} + {{=data.format}} + {{? data.mail == 1}} + + {{?}} + {{? data.readerUrl != ""}} + + {{?}} +
+ {{~}} +

+

{{=htmlspecialchars (it.title)}}

+

+

{{=it.c.i18n.authorsTitle}}:

+ {{~it.book.authors:author:i}} + {{? i > 0}}, {{?}}{{=htmlspecialchars (author.name)}} + {{~}} +

+ {{? it.book.tagsName != ""}} +

+

{{=it.c.i18n.tagsTitle}}:

+ {{~it.book.tags:tag:i}} + {{? i > 0}}, {{?}}{{=htmlspecialchars (tag.name)}} + {{~}} +

+ {{?}} + {{? it.book.seriesName != ""}} +

+

{{=it.c.i18n.seriesTitle}} :

{{=htmlspecialchars (it.book.seriesCompleteName)}} +

+ {{?}} + {{? it.book.publisherName != ""}} +

+

{{=it.c.i18n.publisherName}}:

{{=htmlspecialchars (it.book.publisherName)}} +

+ {{?}} + {{? it.book.pubDate != ""}} +

+

{{=it.c.i18n.pubdateTitle}}:

{{=it.book.pubDate}} +

+ {{?}} + {{? it.book.languagesName != ""}} +

+

{{=it.c.i18n.languagesTitle}}:

{{=it.book.languagesName}} +

+ {{?}} + {{? it.book.content != ""}} +
+

{{=it.c.i18n.contentTitle}}

+
{{=it.book.content}}
+ {{?}} +
\ No newline at end of file diff --git a/templates/bootstrap/footer.html b/templates/bootstrap/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/bootstrap/header.html b/templates/bootstrap/header.html new file mode 100644 index 0000000..009dc38 --- /dev/null +++ b/templates/bootstrap/header.html @@ -0,0 +1,20 @@ + diff --git a/templates/bootstrap/main.html b/templates/bootstrap/main.html new file mode 100644 index 0000000..b9d0ce5 --- /dev/null +++ b/templates/bootstrap/main.html @@ -0,0 +1,50 @@ +
+{{? it.page == 13 || it.page == 16}} + {{? it.page == 13}} + {{#def.bookdetail}} + {{??}} + {{= it.fullhtml}} + {{?}} +{{??}} +{{? it.containsBook == 1}} +
+{{??}} +
+{{?}} +{{~it.entries:entry:i}} + {{? it.containsBook == 0}} + + {{=htmlspecialchars (entry.title)}} + + {{=entry.content}} + + {{??}} +
+
+ +
+ {{? entry.book.hasCover == 1}} +
+ + {{=it.c.i18n.coverAlt}} + +
+ {{?}} + {{=it.c.i18n.authorsTitle}} : {{=htmlspecialchars (entry.book.authorsName)}} + {{? entry.book.tagsName != ""}}
{{=it.c.i18n.tagsTitle}} :{{=htmlspecialchars (entry.book.tagsName)}}{{?}} + {{? entry.book.seriesName != ""}}
{{=it.c.i18n.seriesTitle}} : {{=htmlspecialchars (entry.book.seriesName)}} ({{=entry.book.seriesIndex}}){{?}} +
+ {{~entry.book.preferedData:data:j}} + {{=data.name}} + {{~}} +
+
+
+
+ {{?}} +{{~}} +
+{{?}} +
\ No newline at end of file diff --git a/templates/bootstrap/page.html b/templates/bootstrap/page.html new file mode 100644 index 0000000..558dec0 --- /dev/null +++ b/templates/bootstrap/page.html @@ -0,0 +1,5 @@ +
+{{#def.header}} +{{#def.main}} +{{#def.footer}} +
\ No newline at end of file diff --git a/templates/bootstrap/suggestion.html b/templates/bootstrap/suggestion.html new file mode 100644 index 0000000..1107dad --- /dev/null +++ b/templates/bootstrap/suggestion.html @@ -0,0 +1 @@ +

{{=it.title}}

\ No newline at end of file