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
This commit is contained in:
parent
c9dd7359ea
commit
b00a08b5a0
3 changed files with 12 additions and 4 deletions
BIN
images/b_edit.png
Normal file
BIN
images/b_edit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 451 B |
|
@ -47,7 +47,7 @@ if(!$userservice->isLoggedOn()) {
|
||||||
|
|
||||||
if (POST_CONFIRM) {
|
if (POST_CONFIRM) {
|
||||||
if ( strlen($tag)>0 &&
|
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');
|
$tplVars['msg'] = T_('Tag description updated');
|
||||||
header('Location: '. POST_REFERRER);
|
header('Location: '. POST_REFERRER);
|
||||||
|
|
|
@ -45,8 +45,8 @@ if(isset($currenttag) && $currenttag!= '' && $cdservice->getLastTagDescription($
|
||||||
//common tag description edit
|
//common tag description edit
|
||||||
if($userservice->isLoggedOn()) {
|
if($userservice->isLoggedOn()) {
|
||||||
if(isset($currenttag) && $currenttag!= '') {
|
if(isset($currenttag) && $currenttag!= '') {
|
||||||
echo ' (<a href="'. createURL('tagcommondescriptionedit', $currenttag).'">';
|
echo ' <a href="'. createURL('tagcommondescriptionedit', $currenttag).'">';
|
||||||
echo T_('edit common description').'</a>)';
|
echo T_('common description').' <img src="'.ROOT.'images/b_edit.png" /></a>';
|
||||||
} elseif(isset($hash)) {
|
} elseif(isset($hash)) {
|
||||||
echo ' (<a href="'.createURL('bookmarkcommondescriptionedit', $hash).'">';
|
echo ' (<a href="'.createURL('bookmarkcommondescriptionedit', $hash).'">';
|
||||||
echo T_('edit common description').'</a>)';
|
echo T_('edit common description').'</a>)';
|
||||||
|
@ -57,7 +57,7 @@ if($userservice->isLoggedOn()) {
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* Private tag description */
|
/* personal tag description */
|
||||||
if(isset($currenttag) && $currenttag!= '' && isset($user)) {
|
if(isset($currenttag) && $currenttag!= '' && isset($user)) {
|
||||||
$userObject = $userservice->getUserByUsername($user);
|
$userObject = $userservice->getUserByUsername($user);
|
||||||
if($tagservice->getDescription($currenttag, $userObject['uId'])) { ?>
|
if($tagservice->getDescription($currenttag, $userObject['uId'])) { ?>
|
||||||
|
@ -65,6 +65,14 @@ if(isset($currenttag) && $currenttag!= '' && isset($user)) {
|
||||||
<p class="commondescription"><?php
|
<p class="commondescription"><?php
|
||||||
$description = $tagservice->getDescription($currenttag, $userObject['uId']);
|
$description = $tagservice->getDescription($currenttag, $userObject['uId']);
|
||||||
echo nl2br(filter($description['tDescription']));
|
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>
|
?></p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in a new issue