diff --git a/book.php b/book.php
index 30638e3..cc2c5b6 100644
--- a/book.php
+++ b/book.php
@@ -604,7 +604,7 @@ function getJson ($complete = false) {
$out ["currentPage"] = $currentPage->n;
}
if (!is_null (getURLParam ("complete")) || $complete) {
- $out ["const"] = array ("version" => VERSION, "i18n" => array (
+ $out ["c"] = array ("version" => VERSION, "i18n" => array (
"coverAlt" => localize("i18n.coversection"),
"authorsTitle" => localize("authors.title"),
"bookwordTitle" => localize("bookword.title"),
@@ -634,9 +634,9 @@ function getJson ($complete = false) {
"server_side_rendering" => useServerSideRendering (),
"html_tag_filter" => $config['cops_html_tag_filter']));
if ($config['cops_thumbnail_handling'] == "1") {
- $out ["const"]["url"]["thumbnailUrl"] = $out ["const"]["url"]["coverUrl"];
+ $out ["c"]["url"]["thumbnailUrl"] = $out ["c"]["url"]["coverUrl"];
} else if (!empty ($config['cops_thumbnail_handling'])) {
- $out ["const"]["url"]["thumbnailUrl"] = $config['cops_thumbnail_handling'];
+ $out ["c"]["url"]["thumbnailUrl"] = $config['cops_thumbnail_handling'];
}
}
diff --git a/templates/default/bookdetail.html b/templates/default/bookdetail.html
index 83f4b84..c130a50 100644
--- a/templates/default/bookdetail.html
+++ b/templates/default/bookdetail.html
@@ -2,7 +2,7 @@
{{? it.book.hasCover == 1}}
-
+
{{?}}
@@ -15,16 +15,16 @@
{{~}}
-
{{=htmlspecialchars (it.title)}}
+ {{=htmlspecialchars (it.title)}}
{{=it.const.i18n.authorsTitle}}:
+ {{=it.c.i18n.authorsTitle}}:
{{~it.book.authors:author:i}}
{{? i > 0}}, {{?}}{{=htmlspecialchars (author.name)}}
{{~}}
{{? it.book.tagsName != ""}}
{{=it.const.i18n.tagsTitle}}:
+ {{=it.c.i18n.tagsTitle}}:
{{~it.book.tags:tag:i}}
{{? i > 0}}, {{?}}{{=htmlspecialchars (tag.name)}}
{{~}}
@@ -32,22 +32,22 @@
{{?}}
{{? it.book.seriesName != ""}}
{{=htmlspecialchars (it.book.seriesCompleteName)}}
+ {{=htmlspecialchars (it.book.seriesCompleteName)}}
{{?}}
{{? it.book.pubDate != ""}}
{{=it.const.i18n.pubdateTitle}}: {{=it.book.pubDate}}
+ {{=it.c.i18n.pubdateTitle}}: {{=it.book.pubDate}}
{{?}}
{{? it.book.languagesName != ""}}
{{=it.const.i18n.languagesTitle}}: {{=it.book.languagesName}}
+ {{=it.c.i18n.languagesTitle}}: {{=it.book.languagesName}}
{{?}}
{{? it.book.content != ""}}
- {{=it.const.i18n.contentTitle}}
+ {{=it.c.i18n.contentTitle}}
{{=it.book.content}}
{{?}}
\ No newline at end of file
diff --git a/templates/default/footer.html b/templates/default/footer.html
index 46ca497..4e632fe 100644
--- a/templates/default/footer.html
+++ b/templates/default/footer.html
@@ -1,15 +1,15 @@
{{? it.isPaginated == 1}}
{{?}}
\ No newline at end of file
diff --git a/templates/default/header.html b/templates/default/header.html
index d1640f7..bcd45a0 100644
--- a/templates/default/header.html
+++ b/templates/default/header.html
@@ -1,18 +1,18 @@
-
+
- {{? it.const.config.server_side_rendering == 0}}
+ {{? it.c.config.server_side_rendering == 0}}
{{?}}
{{=it.title}}
-