Non-initialized variable fix.
[openlib.git] / www / templates / default / bookdetail.html
1 <article class="bookpopup">\r
2     {{? $.cookie("use_fancyapps") == 1}}\r
3     <div id="openModal" class="modalDialog">\r
4       <div>\r
5         <a href="#close" title="Close" class="close">X</a>\r
6           {{~it.book.authors:author:j}}\r
7             {{? j > 0}}, {{?}}<h3>{{=htmlEscape (author.name)}}</h3>\r
8           {{~}}\r
9         <h2>{{=htmlEscape (it.title)}}</h2>\r
10         <img src="{{=it.book.coverurl}}" alt="{{=it.const.i18n.coverAlt}}" />\r
11       </div>\r
12     </div>\r
13     {{?}}\r
14     <span class="cover">\r
15         {{? it.book.hasCover == 1}}\r
16         {{? $.cookie("use_fancyapps") == 1}}\r
17         <a href="#openModal">\r
18         {{?}}\r
19         {{? $.cookie("use_fancyapps") == 0}}\r
20         <a href="{{=it.book.coverurl}}">\r
21         {{?}}\r
22           <div class="fullclickpopup">\r
23           <img src="{{=it.book.thumbnailurl}}" alt="{{=it.const.i18n.coverAlt}}">\r
24           </div>\r
25         </a>\r
26         {{?}}\r
27     </span>\r
28     <h2 class="download">\r
29         {{~it.book.datas:data:i}}\r
30         <a href="{{=data.url}}">{{=data.format}}</a>\r
31         {{? data.mail == 1}}\r
32         <a id="mailButton" title="Mail" href="empty.php" onclick="sendToMailAddress (this, {{=data.id}}); return false;"><i class="icon-envelope icon-large"></i></a>\r
33         {{?}}\r
34         <br />\r
35         {{~}}\r
36     </h2>\r
37     <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
38     <p class="popupless">\r
39         <h3>{{=it.const.i18n.authorsTitle}}: </h3>\r
40         {{~it.book.authors:author:j}}\r
41         {{? j > 0}}, {{?}}<a href="{{=author.url}}">{{=htmlEscape (author.name)}}</a>\r
42         {{~}}\r
43     </p>\r
44     {{? it.book.tagsName != ""}}\r
45     <p class="popupless">\r
46         <h3>{{=it.const.i18n.tagsTitle}}: </h3>\r
47         {{~it.book.tags:tag:k}}\r
48         {{? k > 0}}, {{?}}<a href="{{=tag.url}}">{{=htmlEscape (tag.name)}}</a>\r
49         {{~}}\r
50     </p>\r
51     {{?}}\r
52     {{? it.book.seriesName != ""}}\r
53     <p class="popupless">\r
54         <h3><a href="{{=it.book.seriesurl}}">{{=it.const.i18n.seriesTitle}}</a> : </h3>{{=htmlEscape (it.book.seriesCompleteName)}}\r
55     </p>\r
56     {{?}}\r
57     {{? it.book.pubDate != ""}}\r
58     <p class="popupless">\r
59         <h3>{{=it.const.i18n.pubdateTitle}}: </h3>{{=it.book.pubDate}}\r
60     </p>\r
61     {{?}}\r
62     {{? it.book.languagesName != ""}}\r
63     <p class="popupless">\r
64         <h3>{{=it.const.i18n.languagesTitle}}: </h3>{{=it.book.languagesName}}\r
65     </p>\r
66     {{?}}\r
67     {{? it.book.content != ""}}\r
68     <br />\r
69     <h4>{{=it.const.i18n.contentTitle}}</h4>\r
70     <div>{{=it.book.content}}</div>\r
71     {{?}}\r
72 </article>