Non-initialized variable fix.
[openlib.git] / www / templates / default / bookdetail.html
index 84c733478c4a4faa14049ba4e019906189bfe6e5..e30f03ce7182e1c9b6ee21b61c99491b5b0864ea 100644 (file)
@@ -1,8 +1,27 @@
 <article class="bookpopup">\r
+    {{? $.cookie("use_fancyapps") == 1}}\r
+    <div id="openModal" class="modalDialog">\r
+      <div>\r
+        <a href="#close" title="Close" class="close">X</a>\r
+          {{~it.book.authors:author:j}}\r
+            {{? j > 0}}, {{?}}<h3>{{=htmlEscape (author.name)}}</h3>\r
+          {{~}}\r
+        <h2>{{=htmlEscape (it.title)}}</h2>\r
+        <img src="{{=it.book.coverurl}}" alt="{{=it.const.i18n.coverAlt}}" />\r
+      </div>\r
+    </div>\r
+    {{?}}\r
     <span class="cover">\r
         {{? it.book.hasCover == 1}}\r
+        {{? $.cookie("use_fancyapps") == 1}}\r
+        <a href="#openModal">\r
+        {{?}}\r
+        {{? $.cookie("use_fancyapps") == 0}}\r
         <a href="{{=it.book.coverurl}}">\r
-          <img src="{{=it.book.thumbnailurl}}" alt="{{=it.const.i18n.coverAlt}}" />\r
+        {{?}}\r
+          <div class="fullclickpopup">\r
+          <img src="{{=it.book.thumbnailurl}}" alt="{{=it.const.i18n.coverAlt}}">\r
+          </div>\r
         </a>\r
         {{?}}\r
     </span>\r