| @@ 369-379 (lines=11) @@ | ||
| 366 | * @param string $username |
|
| 367 | * @return string |
|
| 368 | */ |
|
| 369 | public function GetSharingDiv($id, $priv, $permalink, $desc, $username) |
|
| 370 | { |
|
| 371 | if (1 != $priv) { |
|
| 372 | $text = "<div style='display: none;' class='smallworld_bookmarks' id='share-page' name='share-page" . $id . "'>"; |
|
| 373 | $text .= "<span name='share-page" . $id . "' rel1='" . $desc . "' rel2= '" . $username . "' rel=" . $permalink . " id='basicBookmark' title='" . _SMALLWORLD_SHAREBOX_TITLE . "'>"; |
|
| 374 | $text .= '</span></div>'; |
|
| 375 | } else { |
|
| 376 | $text = ''; |
|
| 377 | } |
|
| 378 | ||
| 379 | return $text; |
|
| 380 | } |
|
| 381 | ||
| 382 | /** |
|
| @@ 436-446 (lines=11) @@ | ||
| 433 | * @param string $username |
|
| 434 | * @return string |
|
| 435 | */ |
|
| 436 | public function GetSharingDiv($id, $priv, $permalink, $desc, $username) |
|
| 437 | { |
|
| 438 | if (1 != $priv) { |
|
| 439 | $text = "<div style='display: none;' class='smallworld_bookmarks' id='share-page' name='share-page" . $id . "'>"; |
|
| 440 | $text .= "<span name='share-page" . $id . "' rel1='" . $desc . "' rel2= '" . $username . "' rel=" . $permalink . " id='basicBookmark' title='" . _SMALLWORLD_SHAREBOX_TITLE . "'>"; |
|
| 441 | $text .= '</span></div>'; |
|
| 442 | } else { |
|
| 443 | $text = ''; |
|
| 444 | } |
|
| 445 | ||
| 446 | return $text; |
|
| 447 | } |
|
| 448 | ||
| 449 | /** |
|