aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-01-15 14:15:41 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-01-15 14:15:41 +0000
commitb00a08b5a0ccf8d842fdafa79557bdf11ae895ea (patch)
treeae416c87c22ddbc685be6ea8344134fb3fe0e41c
parentc9dd7359ea22a44571c5327dfbf67252f5f8c973 (diff)
downloadsemanticscuttle-b00a08b5a0ccf8d842fdafa79557bdf11ae895ea.tar.gz
semanticscuttle-b00a08b5a0ccf8d842fdafa79557bdf11ae895ea.tar.bz2
Interface Fix: add icon to access common description for tags
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@233 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--images/b_edit.pngbin0 -> 451 bytes
-rw-r--r--tagedit.php2
-rw-r--r--templates/bookmarks.tpl.php14
3 files changed, 12 insertions, 4 deletions
diff --git a/images/b_edit.png b/images/b_edit.png
new file mode 100644
index 0000000..05711a0
--- /dev/null
+++ b/images/b_edit.png
Binary files differ
diff --git a/tagedit.php b/tagedit.php
index 57a9466..e7b46a1 100644
--- a/tagedit.php
+++ b/tagedit.php
@@ -47,7 +47,7 @@ if(!$userservice->isLoggedOn()) {
if (POST_CONFIRM) {
if ( strlen($tag)>0 &&
- $tagservice->updateDescription($tag, $currentUser->getId(), POST_DESCRIPTION)
+ $tagservice->updateDescription($tag, $currentUser->getId(), stripslashes(POST_DESCRIPTION))
) {
$tplVars['msg'] = T_('Tag description updated');
header('Location: '. POST_REFERRER);
diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php
index 2b30d87..c95e129 100644
--- a/templates/bookmarks.tpl.php
+++ b/templates/bookmarks.tpl.php
@@ -45,8 +45,8 @@ if(isset($currenttag) && $currenttag!= '' && $cdservice->getLastTagDescription($
//common tag description edit
if($userservice->isLoggedOn()) {
if(isset($currenttag) && $currenttag!= '') {
- echo ' (<a href="'. createURL('tagcommondescriptionedit', $currenttag).'">';
- echo T_('edit common description').'</a>)';
+ echo ' <a href="'. createURL('tagcommondescriptionedit', $currenttag).'">';
+ echo T_('common description').' <img src="'.ROOT.'images/b_edit.png" /></a>';
} elseif(isset($hash)) {
echo ' (<a href="'.createURL('bookmarkcommondescriptionedit', $hash).'">';
echo T_('edit common description').'</a>)';
@@ -57,7 +57,7 @@ if($userservice->isLoggedOn()) {
<?php
-/* Private tag description */
+/* personal tag description */
if(isset($currenttag) && $currenttag!= '' && isset($user)) {
$userObject = $userservice->getUserByUsername($user);
if($tagservice->getDescription($currenttag, $userObject['uId'])) { ?>
@@ -65,6 +65,14 @@ if(isset($currenttag) && $currenttag!= '' && isset($user)) {
<p class="commondescription"><?php
$description = $tagservice->getDescription($currenttag, $userObject['uId']);
echo nl2br(filter($description['tDescription']));
+
+//personal tag description edit
+if($userservice->isLoggedOn()) {
+ if(isset($currenttag) && $currenttag!= '') {
+ echo ' <a href="'. createURL('tagedit', $currenttag).'">';
+ echo T_('personal description').' <img src="'.ROOT.'images/b_edit.png" /></a>';
+ }
+}
?></p>
<?php