]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Interface Fix: transforms description field into textarea and authorize anchors with...
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 18 Dec 2008 16:25:17 +0000 (16:25 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 18 Dec 2008 16:25:17 +0000 (16:25 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@206 b3834d28-1941-0410-a4f8-b48e95affb8f

templates/bookmarks.tpl.php
templates/editbookmark.tpl.php

index 70e4c64062ee2cc36357257fd39bc07e7234bee1..c223d5f6cd459ab9a49bc8bf51a4563c5b00b8ce 100644 (file)
@@ -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>';
                }
index 95923849c05e219e26cca6956205b52d022d1f91..7918c3f2acf28fe25d9ccb6de8fff00fcb426a7d 100644 (file)
@@ -41,8 +41,8 @@ $this->includeTemplate("dojo.inc");
 </tr>
 <tr>
     <th align="left"><?php echo T_('Description'); ?></th>
-    <td><input type="text" name="description" size="75" maxlength="255" value="<?php echo filter($row['bDescription'], 'xml'); ?>" /></td>
-    <td></td>
+    <td><textarea name="description" rows="5" cols="63" ><?php echo filter($row['bDescription'], 'xml'); ?></textarea></td>
+    <td>&larr; <?php echo T_('You can use anchors to delimite attributes. for example: [publisher]blah[/publisher] '); ?></td>
 </tr>
 <tr>
     <th align="left"><?php echo T_('Tags'); ?></th>