Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...) http://blog.slucas.fr/en/oss/calibre-opds-php-server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.5KB

  1. <article class="bookpopup">
  2. <span class="cover">
  3. {{? it.book.hasCover == 1}}
  4. <a href="{{=it.book.coverurl}}" {{=it.c.config.kindleHack}}>
  5. <img src="{{=it.book.thumbnailurl}}" alt="{{=it.c.i18n.coverAlt}}" />
  6. </a>
  7. {{?}}
  8. </span>
  9. <h2 class="download">
  10. {{~it.book.datas:data:i}}
  11. <a href="{{=data.url}}" {{=it.c.config.kindleHack}}>{{=data.format}}</a>
  12. {{? data.mail == 1}}
  13. <a id="mailButton" title="Mail" href="empty.php" onclick="sendToMailAddress (this, {{=data.id}}); return false;" {{=it.c.config.kindleHack}}><i class="icon-envelope icon-large"></i></a>
  14. {{?}}
  15. {{? data.readerUrl != ""}}
  16. <a title="Reader" href="{{=data.readerUrl}}" target="blank" {{=it.c.config.kindleHack}}><i class="icon-eye-open icon-large"></i></a>
  17. {{?}}
  18. <br />
  19. {{~}}
  20. </h2>
  21. <h1><a title="{{=it.c.i18n.permalinkAlt}}" rel="bookmark" href="{{=str_format (it.c.url.detailUrl, it.book.id, it.databaseId)}}" {{=it.c.config.kindleHack}}><i class="icon-link"></i></a>{{=htmlspecialchars (it.title)}}</h1>
  22. <p class="popupless">
  23. <h3>{{=it.c.i18n.authorsTitle}}: </h3>
  24. {{~it.book.authors:author:i}}
  25. {{? i > 0}}, {{?}}<a href="{{=author.url}}">{{=htmlspecialchars (author.name)}}</a>
  26. {{~}}
  27. </p>
  28. {{? it.book.tagsName != ""}}
  29. <p class="popupless">
  30. <h3>{{=it.c.i18n.tagsTitle}}: </h3>
  31. {{~it.book.tags:tag:i}}
  32. {{? i > 0}}, {{?}}<a href="{{=tag.url}}" {{=it.c.config.kindleHack}}>{{=htmlspecialchars (tag.name)}}</a>
  33. {{~}}
  34. </p>
  35. {{?}}
  36. {{? it.book.seriesName != ""}}
  37. <p class="popupless">
  38. <h3><a href="{{=it.book.seriesurl}}" {{=it.c.config.kindleHack}}>{{=it.c.i18n.seriesTitle}}</a> : </h3>{{=htmlspecialchars (it.book.seriesCompleteName)}}
  39. </p>
  40. {{?}}
  41. {{? it.book.publisherName != ""}}
  42. <p class="popupless">
  43. <h3>{{=it.c.i18n.publisherName}}: </h3><a href="{{=it.book.publisherurl}}" {{=it.c.config.kindleHack}}>{{=htmlspecialchars (it.book.publisherName)}}</a>
  44. </p>
  45. {{?}}
  46. {{? it.book.pubDate != ""}}
  47. <p class="popupless">
  48. <h3>{{=it.c.i18n.pubdateTitle}}: </h3>{{=it.book.pubDate}}
  49. </p>
  50. {{?}}
  51. {{? it.book.languagesName != ""}}
  52. <p class="popupless">
  53. <h3>{{=it.c.i18n.languagesTitle}}: </h3>{{=it.book.languagesName}}
  54. </p>
  55. {{?}}
  56. {{? it.book.content != ""}}
  57. <br />
  58. <h4>{{=it.c.i18n.contentTitle}}</h4>
  59. <div>{{=it.book.content}}</div>
  60. {{?}}
  61. </article>