hubzilla 11 update

This commit is contained in:
2026-07-16 10:29:49 +03:00
parent aa88ffc73e
commit 7ceae1c81e
3 changed files with 27 additions and 420 deletions
+8 -8
View File
@@ -2,13 +2,11 @@
/**
* Name: Link
* Description: Using short links on whole hub
* Version: 0.87
* Version: 0.92
* Author: ivan zlax <@zlax@ussr.win>
* Maintainer: ivan zlax <@zlax@ussr.win>
*/
use Zotlabs\Lib\Apps;
use Zotlabs\Extend\Hook;
use Zotlabs\Extend\Route;
function link_load() {
@@ -52,15 +50,17 @@ function link_plugin_admin_post() {
function dropdown_link(&$extras) {
$arr = $extras;
$item_id = $extras['item']['item_id'];
$arr['dropdown_extras'] .= '<a class="dropdown-item" href="'.z_root().'/link/'.$item_id.'" title="'.t('Link on Hub').'" class="u-url"><i class="generic-icons-nav fa fa-fw fa-link"></i>'.t('Link on Hub').'</a>';
$item = $arr['item'];
$item_id = $item['id'] ?? ($item['item_id'] ?? 0);
if ($item_id) {
$arr['dropdown_extras'] .= '<a class="dropdown-item" href="'.z_root().'/link/'.$item_id.'" title="'.t('Link on Hub').'" class="u-url"><i class="generic-icons-nav fa fa-fw fa-link"></i>'.t('Link on Hub').'</a>';
}
$extras = $arr;
}
function hideasides_header(&$b) {
$querystr = stristr(App::$query_string, '/', true);
if ($querystr == "link") {
if (isset($_GET['link_hideasides'])) {
$addScriptTag = "<style>#region_1 { display: none !important; } #region_3 { display: none !important; }</style>\r\n";
App::$page['htmlhead'] .= $addScriptTag;
\App::$page['htmlhead'] .= $addScriptTag;
}
}