| @@ 203-224 (lines=22) @@ | ||
| 200 | */ |
|
| 201 | ||
| 202 | // Functional links |
|
| 203 | function lx_serviceLinks ( $variable ) { |
|
| 204 | global $xoopsUser, $xoopsDB, $xoopsModule, $xoopsModuleConfig, $xoopsConfig, $entrytype; |
|
| 205 | ||
| 206 | $module_handler = xoops_gethandler('module'); |
|
| 207 | $moduleInfo = $module_handler->get($xoopsModule->getVar('mid')); |
|
| 208 | $pathIcon16 = $xoopsModule->getInfo('icons16'); |
|
| 209 | ||
| 210 | $srvlinks = ""; |
|
| 211 | if ( $xoopsUser ) { |
|
| 212 | if ( $xoopsUser->isAdmin() ) { |
|
| 213 | $srvlinks .= "<a title=\"" |
|
| 214 | . _EDIT |
|
| 215 | . "\" href=\"admin/entry.php?op=mod&entryID=" |
|
| 216 | . $variable['id'] |
|
| 217 | . "\" target=\"_blank\"><img src=\"" |
|
| 218 | . $pathIcon16 |
|
| 219 | . "/edit.png\" alt=\"" |
|
| 220 | . _MD_LEXIKON_EDITTERM |
|
| 221 | . "\" style=\"width:16px; height:16px;\"></a> <a TITLE=\"" |
|
| 222 | . _DELETE |
|
| 223 | . "\" href=\"admin/entry.php?op=del&entryID=" |
|
| 224 | . $variable['id'] |
|
| 225 | . "\" target=\"_self\"><img src=\"" |
|
| 226 | . $pathIcon16 |
|
| 227 | . "/delete.png\" alt=\"" |
|
| @@ 445-513 (lines=69) @@ | ||
| 442 | * @param $variable |
|
| 443 | * @return string |
|
| 444 | */ |
|
| 445 | public static function getServiceLinks($variable) |
|
| 446 | { |
|
| 447 | global $xoopsUser, $xoopsDB, $xoopsModule, $xoopsModuleConfig, $xoopsConfig, $entrytype; |
|
| 448 | ||
| 449 | /** @var XoopsModuleHandler $moduleHandler */ |
|
| 450 | $moduleHandler = xoops_getHandler('module'); |
|
| 451 | $moduleInfo = $moduleHandler->get($xoopsModule->getVar('mid')); |
|
| 452 | $pathIcon16 = \Xmf\Module\Admin::iconUrl('', 16); |
|
| 453 | ||
| 454 | $srvlinks = ''; |
|
| 455 | if ($xoopsUser) { |
|
| 456 | if ($xoopsUser->isAdmin()) { |
|
| 457 | $srvlinks .= "<a TITLE=\"" |
|
| 458 | . _EDIT |
|
| 459 | . "\" href=\"/modules/lexikon/admin/entry.php?op=mod&entryID=" |
|
| 460 | . $variable['id'] |
|
| 461 | . "\" target=\"_blank\"><img src=\"" |
|
| 462 | . $pathIcon16 . "/edit.png\" alt=\"" |
|
| 463 | . _MD_LEXIKON_EDITTERM |
|
| 464 | . "\" style=\"width:16px; height:16px;\"></a> <a TITLE=\"" |
|
| 465 | . _DELETE |
|
| 466 | . "\" href=\"admin/entry.php?op=del&entryID=" |
|
| 467 | . $variable['id'] |
|
| 468 | . "\" target=\"_self\"><img src=\"" |
|
| 469 | . $pathIcon16 . "/delete.png\" alt=\"" |
|
| 470 | . _MD_LEXIKON_DELTERM |
|
| 471 | . "\" style=\"width:16px; height:16px;\"></a> "; |
|
| 472 | } |
|
| 473 | } |
|
| 474 | if ($entrytype != '1') { |
|
| 475 | $srvlinks .= "<a TITLE=\"" |
|
| 476 | . _MD_LEXIKON_PRINTTERM |
|
| 477 | . "\" href=\"print.php?entryID=" |
|
| 478 | . $variable['id'] |
|
| 479 | . "\" target=\"_blank\"><img src=\"" |
|
| 480 | . $pathIcon16 . "/printer.png\" alt=\"" |
|
| 481 | . _MD_LEXIKON_PRINTTERM |
|
| 482 | . "\" style=\"width:16px; height:16px;\"></a> <a TITLE=\"" |
|
| 483 | . _MD_LEXIKON_SENDTOFRIEND |
|
| 484 | . "\" href=\"mailto:?subject=" |
|
| 485 | . sprintf(_MD_LEXIKON_INTENTRY, $xoopsConfig['sitename']) |
|
| 486 | . '&body=' |
|
| 487 | . sprintf(_MD_LEXIKON_INTENTRYFOUND, $xoopsConfig['sitename']) |
|
| 488 | . ': ' |
|
| 489 | . XOOPS_URL |
|
| 490 | . '/modules/' |
|
| 491 | . $xoopsModule->dirname() |
|
| 492 | . '/entry.php?entryID=' |
|
| 493 | . $variable['id'] |
|
| 494 | . " \" target=\"_blank\"><img src=\"" |
|
| 495 | . $pathIcon16 . "/mail_replay.png\" alt=\"" |
|
| 496 | . _MD_LEXIKON_SENDTOFRIEND |
|
| 497 | . "\" style=\"width:16px; height:16px;\"></a> "; |
|
| 498 | if (($xoopsModuleConfig['com_rule'] != 0) |
|
| 499 | && (!empty($xoopsModuleConfig['com_anonpost']) |
|
| 500 | || is_object($xoopsUser)) |
|
| 501 | ) { |
|
| 502 | $srvlinks .= "<a TITLE=\"" |
|
| 503 | . _COMMENTS |
|
| 504 | . "?\" href=\"comment_new.php?com_itemid=" |
|
| 505 | . $variable['id'] |
|
| 506 | . "\" target=\"_parent\"><img src=\"assets/images/comments.gif\" alt=\"" |
|
| 507 | . _COMMENTS |
|
| 508 | . "?\" style=\"width:16px; height:16px;\"></a> "; |
|
| 509 | } |
|
| 510 | } |
|
| 511 | ||
| 512 | return $srvlinks; |
|
| 513 | } |
|
| 514 | ||
| 515 | // entry footer |
|
| 516 | /** |
|