diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-01-12 13:45:49 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-01-12 13:45:49 +0000 |
commit | ac8cea75ed68e568658a8e45215a78b8c40f3ce6 (patch) | |
tree | ccc8db366b421fc71b3658c62c60ad6b63c52774 /templates/editbookmark.tpl.php | |
parent | 8f271134d4c20ac0705bb73053ccdab57750dff7 (diff) | |
download | semanticscuttle-ac8cea75ed68e568658a8e45215a78b8c40f3ce6.tar.gz semanticscuttle-ac8cea75ed68e568658a8e45215a78b8c40f3ce6.tar.bz2 |
Interface fix: add suggested anchors to bookmarks' description field.
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@229 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates/editbookmark.tpl.php')
-rw-r--r-- | templates/editbookmark.tpl.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/editbookmark.tpl.php b/templates/editbookmark.tpl.php index 264a3c1..ab0e861 100644 --- a/templates/editbookmark.tpl.php +++ b/templates/editbookmark.tpl.php @@ -41,8 +41,20 @@ $this->includeTemplate("dojo.inc"); </tr> <tr> <th align="left"><?php echo T_('Description'); ?></th> - <td><textarea name="description" rows="5" cols="63" ><?php echo filter($row['bDescription'], 'xml'); ?></textarea></td> - <td>← <?php echo T_('You can use anchors to delimite attributes. for example: [publisher]blah[/publisher] '); ?></td> + <td><textarea name="description" id="description" rows="5" cols="63" ><?php echo filter($row['bDescription'], 'xml'); ?></textarea></td> + <td>← <?php echo T_('You can use anchors to delimite attributes. for example: [publisher]blah[/publisher] '); ?> + <?php if(count($GLOBALS['descriptionAnchors'])>0): ?> + <br /><br /> + <?php echo T_('Suggested anchors: '); ?> + <?php foreach($GLOBALS['descriptionAnchors'] as $anchorName => $anchorValue): ?> + <?php if(is_numeric($anchorName)) { + $anchorName = $anchorValue; + $anchorValue = '['.$anchorValue.']'.'[/'.$anchorValue.']'; + } ?> + <span class="anchor" title="<?php echo $anchorValue ?>" onclick="addAnchor('<?php echo $anchorValue ?>', 'description')"><?php echo $anchorName ?></span> + <?php endforeach; ?> + <?php endif; ?> + </td> </tr> <tr> <th align="left"><?php echo T_('Tags'); ?></th> |