]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Interface Fix: add icon to access common description for tags
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 15 Jan 2009 14:15:41 +0000 (14:15 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 15 Jan 2009 14:15:41 +0000 (14:15 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@233 b3834d28-1941-0410-a4f8-b48e95affb8f

images/b_edit.png [new file with mode: 0644]
tagedit.php
templates/bookmarks.tpl.php

diff --git a/images/b_edit.png b/images/b_edit.png
new file mode 100644 (file)
index 0000000..05711a0
Binary files /dev/null and b/images/b_edit.png differ
index 57a94660440a2ddcccab94335366c09e7c2dae70..e7b46a1d4514c6edd9d0d841d3a19c37e138a47a 100644 (file)
@@ -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);
index 2b30d8798ac354f89a1c000730d782177a455525..c95e129bb8c3f5949902da823d96bd3ccba32c54 100644 (file)
@@ -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