summaryrefslogtreecommitdiff
path: root/templates/bookmarks.tpl.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-18 16:25:17 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-18 16:25:17 +0000
commite0a61f1fc5e74cbbaf7c710b57bc7a2dca4d05c2 (patch)
treec03dad6ed6cc1c2b98c294f6d4c5369cc29178e5 /templates/bookmarks.tpl.php
parent1917aeaab29438639b5305b6d9c4957f1341863f (diff)
downloadsemanticscuttle-e0a61f1fc5e74cbbaf7c710b57bc7a2dca4d05c2.tar.gz
semanticscuttle-e0a61f1fc5e74cbbaf7c710b57bc7a2dca4d05c2.tar.bz2
Interface Fix: transforms description field into textarea and authorize anchors with brackets into descriptions
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@206 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates/bookmarks.tpl.php')
-rw-r--r--templates/bookmarks.tpl.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php
index 70e4c64..c223d5f 100644
--- a/templates/bookmarks.tpl.php
+++ b/templates/bookmarks.tpl.php
@@ -190,9 +190,12 @@ if(isset($currenttag) && $currenttag!= '') {
echo '<div class="link"><a href="'. $address .'"'. $rel .' class="taggedlink">'. filter($row['bTitle']) ."</a></div>\n";
if ($row['bDescription'] == '') {
- $row['bDescription'] = '-';
+ $bkDescription = '-';
+ } else {
+ $bkDescription = preg_replace('|\[\/.*?\]|', '', filter($row['bDescription'])); // remove final anchor
+ $bkDescription = preg_replace('|\[(.*?)\]|', ' <br/><b>$1 : </b>', $bkDescription); // remove final anchor
}
- echo '<div class="description">'. filter($row['bDescription']) ."</div>\n";
+ echo '<div class="description">'. $bkDescription ."</div>\n";
if(!isset($hash)) {
echo '<div class="address">'.shortenString($address).'</div>';
}