diff options
author | 2024-04-21 00:30:34 -0700 | |
---|---|---|
committer | 2024-04-21 00:30:34 -0700 | |
commit | 2cabfe17eef1365a86e25f3b9e5bcd40ed9b84da (patch) | |
tree | ed8152941818a7e19e83ed4e441b9ee946ea91ed /data/templates/sscuttlizr/bookmarks.tpl.php | |
parent | 384eac16a7a323c6a747b0a5f4d0d72202611ae7 (diff) | |
parent | 11a00b0acca4b2bde45e7ed406a89e0e16e5663a (diff) | |
download | scuttle-2cabfe17eef1365a86e25f3b9e5bcd40ed9b84da.tar.gz scuttle-2cabfe17eef1365a86e25f3b9e5bcd40ed9b84da.zip |
Merge branch 'noreferrer-noopener-newwindow' into oni
Diffstat (limited to 'data/templates/sscuttlizr/bookmarks.tpl.php')
-rw-r--r-- | data/templates/sscuttlizr/bookmarks.tpl.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/data/templates/sscuttlizr/bookmarks.tpl.php b/data/templates/sscuttlizr/bookmarks.tpl.php index cb062a4..2df30db 100644 --- a/data/templates/sscuttlizr/bookmarks.tpl.php +++ b/data/templates/sscuttlizr/bookmarks.tpl.php @@ -415,8 +415,14 @@ if ($currenttag!= '') { // Nofollow option $rel = ''; if ($GLOBALS['nofollow']) { - $rel = ' rel="nofollow"'; + $rel .= ' nofollow '; } + if ($GLOBALS['noreferrer']) { + $rel .= ' noreferrer '; + } + if ($GLOBALS['noopener']) { + $rel .= ' noopener '; + } $address = $row['bAddress']; $oaddress = $address; @@ -465,7 +471,10 @@ if ($currenttag!= '') { echo ' <div' . $adminBgClass . '>' . "\n"; echo ' <div class="link">' - . '<a href="'. htmlspecialchars($address) .'"'. $rel .' class="taggedlink">' + . ('<a href="' . htmlspecialchars($address) . '"' + . ($rel ? ' rel="' . trim($rel) . '"' : "") + . ($GLOBALS['openLinksInNewWindow'] ? ' target="_blank"' : '') + . ' class="taggedlink">') . filter($row['bTitle']) . '</a>' . $adminStar . "</div>\n"; if ($row['bDescription'] == '') { |