1) Исправления в связи со сменой API MySQL
[openlib.git] / www / templates / default / bookdetail.html
1 <article class="bookpopup">\r
2     <span class="cover">\r
3         {{? it.book.hasCover == 1}}\r
4         <a href="{{=it.book.coverurl}}">\r
5           <img src="{{=it.book.thumbnailurl}}" alt="{{=it.const.i18n.coverAlt}}" />\r
6         </a>\r
7         {{?}}\r
8     </span>\r
9     <h2 class="download">\r
10         {{~it.book.datas:data:i}}\r
11         <a href="{{=data.url}}">{{=data.format}}</a>\r
12         {{? data.mail == 1}}\r
13         <a id="mailButton" title="Mail" href="empty.php" onclick="sendToMailAddress (this, {{=data.id}}); return false;"><i class="icon-envelope icon-large"></i></a>\r
14         {{?}}\r
15         <br />\r
16         {{~}}\r
17     </h2>\r
18     <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
19     <p class="popupless">\r
20         <h3>{{=it.const.i18n.authorsTitle}}: </h3>\r
21         {{~it.book.authors:author:j}}\r
22         {{? j > 0}}, {{?}}<a href="{{=author.url}}">{{=htmlEscape (author.name)}}</a>\r
23         {{~}}\r
24     </p>\r
25     {{? it.book.tagsName != ""}}\r
26     <p class="popupless">\r
27         <h3>{{=it.const.i18n.tagsTitle}}: </h3>\r
28         {{~it.book.tags:tag:k}}\r
29         {{? k > 0}}, {{?}}<a href="{{=tag.url}}">{{=htmlEscape (tag.name)}}</a>\r
30         {{~}}\r
31     </p>\r
32     {{?}}\r
33     {{? it.book.seriesName != ""}}\r
34     <p class="popupless">\r
35         <h3><a href="{{=it.book.seriesurl}}">{{=it.const.i18n.seriesTitle}}</a> : </h3>{{=htmlEscape (it.book.seriesCompleteName)}}\r
36     </p>\r
37     {{?}}\r
38     {{? it.book.pubDate != ""}}\r
39     <p class="popupless">\r
40         <h3>{{=it.const.i18n.pubdateTitle}}: </h3>{{=it.book.pubDate}}\r
41     </p>\r
42     {{?}}\r
43     {{? it.book.languagesName != ""}}\r
44     <p class="popupless">\r
45         <h3>{{=it.const.i18n.languagesTitle}}: </h3>{{=it.book.languagesName}}\r
46     </p>\r
47     {{?}}\r
48     {{? it.book.content != ""}}\r
49     <br />\r
50     <h4>{{=it.const.i18n.contentTitle}}</h4>\r
51     <div>{{=it.book.content}}</div>\r
52     {{?}}\r
53 </article>