hubzilla 8.8 update
This commit is contained in:
parent
f4b2177923
commit
aa88ffc73e
|
@ -66,7 +66,7 @@ class Link extends \Zotlabs\Web\Controller {
|
|||
);
|
||||
|
||||
$o = '<div id="jot-popup">';
|
||||
$o .= status_editor($a,$x,false,'Display');
|
||||
$o .= status_editor($x,false,'Display');
|
||||
$o .= '</div>';
|
||||
}
|
||||
|
||||
|
|
|
@ -12,3 +12,5 @@ where an item is the numeric value of an object from the database.
|
|||
It is possible to use /admin/addons/link settings page for enabling or disabling of showing "Link on Hub" in the dropdown menu.
|
||||
|
||||
Based on Zotlabs/Module/Display.php
|
||||
|
||||
Adapted for Hubzilla 8.8
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue