aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/bookmarks.tpl.php7
-rw-r--r--templates/editbookmark.tpl.php4
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 '<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>';
}
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");
</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>