aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/config.default.php11
-rw-r--r--data/templates/bookmarks.tpl.php2
2 files changed, 12 insertions, 1 deletions
diff --git a/data/config.default.php b/data/config.default.php
index c3c3b58..a0010e9 100644
--- a/data/config.default.php
+++ b/data/config.default.php
@@ -389,6 +389,17 @@ $defaultOrderBy = 'date_desc';
$dateOrderField = 'bModified';
/**
+ * What to show instead of a description if
+ * a bookmark has none.
+ * Default is '-'. Setting this to '' will collapse
+ * the description row for bookmarks without
+ * a description.
+ *
+ * @var string
+ */
+$blankDescription = '-';
+
+/**
* Number of entries that are shown in
* the RSS feed by default.
*
diff --git a/data/templates/bookmarks.tpl.php b/data/templates/bookmarks.tpl.php
index c6a87c2..9418563 100644
--- a/data/templates/bookmarks.tpl.php
+++ b/data/templates/bookmarks.tpl.php
@@ -334,7 +334,7 @@ if($currenttag!= '') {
echo '<div class="link"><a href="'. $address .'"'. $rel .' class="taggedlink" target="_blank">'. filter($row['bTitle']) ."</a>" . $adminStar . "</div>\n";
if ($row['bDescription'] == '') {
- $bkDescription = '-';
+ $bkDescription = $GLOBALS['blankDescription'];
} else {
// Improve description display (anchors, links, ...)
$bkDescription = preg_replace('|\[\/.*?\]|', '', filter($row['bDescription'])); // remove final anchor