hubzilla 8.8 update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user