From: mensonge Date: Thu, 18 Dec 2008 16:25:17 +0000 (+0000) Subject: Interface Fix: transforms description field into textarea and authorize anchors with... X-Git-Tag: v0.91~6 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e0a61f1fc5e74cbbaf7c710b57bc7a2dca4d05c2;p=semanticscuttle.git 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 --- 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"); - - + + ←