aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/placeholder_text.php
diff options
context:
space:
mode:
authorwinter2025-01-14 20:44:49 +0000
committerwinter2025-01-14 20:44:49 +0000
commit4d7f8450d9a842e2f69754ccaa4202710328dcb7 (patch)
tree60e90ff7ebbf069e04faf665d68861970eaee000 /templates/placeholder_text.php
parent0f427b4b6f75134b2c25b7e5f8a515be2cec97f5 (diff)
add (un)follow button to profile
also other stuff i forgot what exactly
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