aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/placeholder_text.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/placeholder_text.php')
-rw-r--r--templates/placeholder_text.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/templates/placeholder_text.php b/templates/placeholder_text.php
index f529de9..2fc3d3d 100644
--- a/templates/placeholder_text.php
+++ b/templates/placeholder_text.php
@@ -1 +1,12 @@
-<p class="placeholder"><?= $message ?? __('placeholder') ?></p> \ No newline at end of file
+<?php
+$text = __('placeholder');
+if (isset($message)) {
+ $text = $message;
+} elseif (isset($count)) {
+ if ($count == 0)
+ $text = __('placeholder.noMoreItems');
+ else
+ $text = sprintf(__('placeholder.moreItems'), $count);
+}
+?>
+<p class="placeholder"><?= $text ?></p> \ No newline at end of file