From e0a61f1fc5e74cbbaf7c710b57bc7a2dca4d05c2 Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 18 Dec 2008 16:25:17 +0000 Subject: [PATCH] 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 --- templates/bookmarks.tpl.php | 7 +++++-- templates/editbookmark.tpl.php | 4 ++-- 2 files changed, 7 insertions(+), 4 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 '\n"; if ($row['bDescription'] == '') { - $row['bDescription'] = '-'; + $bkDescription = '-'; + } else { + $bkDescription = preg_replace('|\[\/.*?\]|', '', filter($row['bDescription'])); // remove final anchor + $bkDescription = preg_replace('|\[(.*?)\]|', '
$1 : ', $bkDescription); // remove final anchor } - echo '
'. filter($row['bDescription']) ."
\n"; + echo '
'. $bkDescription ."
\n"; if(!isset($hash)) { echo '
'.shortenString($address).'
'; } diff --git a/templates/editbookmark.tpl.php b/templates/editbookmark.tpl.php index 9592384..7918c3f 100644 --- a/templates/editbookmark.tpl.php +++ b/templates/editbookmark.tpl.php @@ -41,8 +41,8 @@ $this->includeTemplate("dojo.inc"); - - + + ←