hubzilla 8.8 update

This commit is contained in:
root
2023-11-26 07:16:19 +00:00
parent f4b2177923
commit aa88ffc73e
3 changed files with 7 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
/**
* Name: Link
* Description: Using short links on whole hub
* Version: 0.86
* Version: 0.87
* Author: ivan zlax <@zlax@ussr.win>
* Maintainer: ivan zlax <@zlax@ussr.win>
*/
@@ -50,17 +50,17 @@ function link_plugin_admin_post() {
info( t('Settings updated.') . EOL );
}
function dropdown_link($a, &$extras) {
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>';
$extras = $arr;
}
function hideasides_header($a, &$b) {
function hideasides_header(&$b) {
$querystr = stristr(App::$query_string, '/', true);
if ($querystr == "link") {
$addScriptTag = "<style>#region_1 { display: none; } #region_3 { display: none; }</style>\r\n";
$addScriptTag = "<style>#region_1 { display: none !important; } #region_3 { display: none !important; }</style>\r\n";
App::$page['htmlhead'] .= $addScriptTag;
}
}