1) Исправления в связи со сменой API MySQL
[openlib.git] / www / templates / default / main.html
1 <section>\r
2 {{? it.page == "BOOKDET" || it.page == "ABOUT"}}\r
3     {{? it.page == "BOOKDET"}}\r
4         {{#def.bookdetail}}\r
5     {{??}}\r
6         {{= it.fullhtml}}\r
7     {{?}}\r
8 {{??}}\r
9 {{~it.entries:entry:i}}\r
10     {{? it.containsBook == 0}}\r
11     <article>\r
12         <div class="frontpage">\r
13             {{? entry.navlink != "#"}}<a href="{{=entry.navlink}}">{{?}}\r
14                 <h2>{{=htmlEscape (entry.title)}}</h2>\r
15                 <h4>{{=entry.content}}</h4> \r
16             {{? entry.navlink != "#"}}</a>{{?}}\r
17         </div>\r
18     </article>\r
19     {{??}}\r
20     <article class="books">\r
21             <span class="cover">\r
22             {{? entry.book.hasCover == 1}}\r
23                 <a data-fancybox-group="group" class="fancycover" href="{{=strformat (it.const.url.coverUrl, entry.book.id)}}">\r
24                     <img src="{{=strformat (it.const.url.thumbnailUrl, entry.book.id)}}" alt="{{=it.const.i18n.coverAlt}}" />\r
25                 </a>\r
26             {{?}}\r
27             </span>\r
28             <h2 class="download">\r
29                 {{~entry.book.preferedData:data:j}}\r
30                  <a href="{{=data.url}}">{{=data.name}}</a><br />\r
31                 {{~}}\r
32             </h2>\r
33             <a class="fancydetail" href="{{=strformat (it.const.url.detailUrl, entry.book.id)}}">\r
34             <div class="fullclickpopup">\r
35                 <h2><span class="st">{{=htmlEscape (entry.title)}}</span>\r
36                 {{? entry.book.pubDate != ""}}<span class="sp">({{=entry.book.pubDate}})</span>{{?}}\r
37                 </h2>\r
38                 <h4>{{=it.const.i18n.authorsTitle}} : </h4><span class="sa">{{=htmlEscape (entry.book.authorsName)}}</span><br />\r
39                 {{? entry.book.tagsName != ""}}<h4>{{=it.const.i18n.tagsTitle}} : </h4><span class="se">{{=htmlEscape (entry.book.tagsName)}}</span><br />{{?}}\r
40                 {{? entry.book.seriesName != ""}}<h4>{{=it.const.i18n.seriesTitle}} : </h4><span class="ss">{{=htmlEscape (entry.book.seriesName)}} ({{=entry.book.seriesIndex}})</span><br />{{?}}\r
41             </div></a>\r
42         </article>\r
43     {{?}}\r
44 {{~}}\r
45 {{?}}\r
46 </section>