1) Исправления в связи со сменой API MySQL
[openlib.git] / www / templates / default / bookdetail.html
diff --git a/www/templates/default/bookdetail.html b/www/templates/default/bookdetail.html
new file mode 100644 (file)
index 0000000..84c7334
--- /dev/null
@@ -0,0 +1,53 @@
+<article class="bookpopup">\r
+    <span class="cover">\r
+        {{? it.book.hasCover == 1}}\r
+        <a href="{{=it.book.coverurl}}">\r
+          <img src="{{=it.book.thumbnailurl}}" alt="{{=it.const.i18n.coverAlt}}" />\r
+        </a>\r
+        {{?}}\r
+    </span>\r
+    <h2 class="download">\r
+        {{~it.book.datas:data:i}}\r
+        <a href="{{=data.url}}">{{=data.format}}</a>\r
+        {{? data.mail == 1}}\r
+        <a id="mailButton" title="Mail" href="empty.php" onclick="sendToMailAddress (this, {{=data.id}}); return false;"><i class="icon-envelope icon-large"></i></a>\r
+        {{?}}\r
+        <br />\r
+        {{~}}\r
+    </h2>\r
+    <h1><a title="{{=it.const.i18n.permalinkAlt}}" rel="bookmark" href="{{=strformat (it.const.url.detailUrl, it.book.id)}}"><i class="icon-link"></i></a>{{=htmlEscape (it.title)}}</h1>\r
+    <p class="popupless">\r
+        <h3>{{=it.const.i18n.authorsTitle}}: </h3>\r
+        {{~it.book.authors:author:j}}\r
+        {{? j > 0}}, {{?}}<a href="{{=author.url}}">{{=htmlEscape (author.name)}}</a>\r
+        {{~}}\r
+    </p>\r
+    {{? it.book.tagsName != ""}}\r
+    <p class="popupless">\r
+        <h3>{{=it.const.i18n.tagsTitle}}: </h3>\r
+        {{~it.book.tags:tag:k}}\r
+        {{? k > 0}}, {{?}}<a href="{{=tag.url}}">{{=htmlEscape (tag.name)}}</a>\r
+        {{~}}\r
+    </p>\r
+    {{?}}\r
+    {{? it.book.seriesName != ""}}\r
+    <p class="popupless">\r
+        <h3><a href="{{=it.book.seriesurl}}">{{=it.const.i18n.seriesTitle}}</a> : </h3>{{=htmlEscape (it.book.seriesCompleteName)}}\r
+    </p>\r
+    {{?}}\r
+    {{? it.book.pubDate != ""}}\r
+    <p class="popupless">\r
+        <h3>{{=it.const.i18n.pubdateTitle}}: </h3>{{=it.book.pubDate}}\r
+    </p>\r
+    {{?}}\r
+    {{? it.book.languagesName != ""}}\r
+    <p class="popupless">\r
+        <h3>{{=it.const.i18n.languagesTitle}}: </h3>{{=it.book.languagesName}}\r
+    </p>\r
+    {{?}}\r
+    {{? it.book.content != ""}}\r
+    <br />\r
+    <h4>{{=it.const.i18n.contentTitle}}</h4>\r
+    <div>{{=it.book.content}}</div>\r
+    {{?}}\r
+</article>
\ No newline at end of file