2024-02-17 17:00:05 +01:00
<nav id="navbar-top" class="navbar navbar-expand-lg sticky-top bg-body-tertiary mb-4" {{ $navbar_color_mode }} >
2021-12-14 22:44:24 +03:00
<div class="container-fluid flex-nowrap">
{{ if $userinfo }}
<div class="d-flex" style="max-width: 50%">
<div class="dropdown">
2024-02-17 17:00:05 +01:00
<div class="cursor-pointer usermenu" data-bs-toggle="dropdown">
<img id="avatar" src=" {{ $userinfo.icon }} " alt=" {{ $userinfo.name }} " class="rounded">
2025-04-06 05:14:08 -04:00
<i class="navbar-text bi bi-caret-down-fill"></i>
2021-12-14 22:44:24 +03:00
</div>
{{ if $is_owner }}
2024-02-17 17:00:05 +01:00
<div class="dropdown-menu" {{ $color_mode }} >
2021-12-14 22:44:24 +03:00
{{ foreach $nav.usermenu as $usermenu }}
<a class="dropdown-item {{ if $usermenu.2 }} active {{ / if }} " href=" {{ $usermenu.0 }} " title=" {{ $usermenu.3 }} " role="menuitem" id=" {{ $usermenu.4 }} "> {{ $usermenu.1 }} </a>
{{ / foreach }}
{{ if $nav.group }}
<a class="dropdown-item" href=" {{ $nav.group.0 }} " title=" {{ $nav.group.3 }} " role="menuitem" id=" {{ $nav.group.4 }} "> {{ $nav.group.1 }} </a>
{{ / if }}
{{ if $nav.manage }}
<a class="dropdown-item {{ if $sel.name == Manage }} active {{ / if }} " href=" {{ $nav.manage.0 }} " title=" {{ $nav.manage.3 }} " role="menuitem" id=" {{ $nav.manage.4 }} "> {{ $nav.manage.1 }} </a>
{{ / if }}
{{ if $nav.channels }}
{{ foreach $nav.channels as $chan }}
2025-04-06 05:14:08 -04:00
<a class="dropdown-item" href="manage/ {{ $chan.channel_id }} " title=" {{ $chan.channel_name }} " role="menuitem"><i class="bi bi-circle-fill {{ if $localuser == $chan.channel_id }} text-success {{ else }} invisible {{ / if }} "></i> {{ $chan.channel_name }} </a>
2021-12-14 22:44:24 +03:00
{{ / foreach }}
{{ / if }}
{{ if $nav.profiles }}
<a class="dropdown-item" href=" {{ $nav.profiles.0 }} " title=" {{ $nav.profiles.3 }} " role="menuitem" id=" {{ $nav.profiles.4 }} "> {{ $nav.profiles.1 }} </a>
{{ / if }}
{{ if $nav.settings }}
<div class="dropdown-divider"></div>
<a class="dropdown-item {{ if $sel.name == Settings }} active {{ / if }} " href=" {{ $nav.settings.0 }} " title=" {{ $nav.settings.3 }} " role="menuitem" id=" {{ $nav.settings.4 }} "> {{ $nav.settings.1 }} </a>
{{ / if }}
{{ if $nav.admin }}
<div class="dropdown-divider"></div>
<a class="dropdown-item {{ if $sel.name == Admin }} active {{ / if }} " href=" {{ $nav.admin.0 }} " title=" {{ $nav.admin.3 }} " role="menuitem" id=" {{ $nav.admin.4 }} "> {{ $nav.admin.1 }} </a>
{{ / if }}
{{ if $nav.logout }}
<div class="dropdown-divider"></div>
<a class="dropdown-item" href=" {{ $nav.logout.0 }} " title=" {{ $nav.logout.3 }} " role="menuitem" id=" {{ $nav.logout.4 }} "> {{ $nav.logout.1 }} </a>
{{ / if }}
</div>
{{ / if }}
{{ if ! $is_owner }}
2024-02-17 17:00:05 +01:00
<div class="dropdown-menu" role="menu" aria-labelledby="avatar" {{ $color_mode }} >
2021-12-14 22:44:24 +03:00
<a class="dropdown-item" href=" {{ $nav.rusermenu.0 }} " role="menuitem"> {{ $nav.rusermenu.1 }} </a>
<a class="dropdown-item" href=" {{ $nav.rusermenu.2 }} " role="menuitem"> {{ $nav.rusermenu.3 }} </a>
</div>
{{ / if }}
</div>
{{ if $sel.name }}
<div id="nav-app-link-wrapper" class="navbar-nav {{ if $sitelocation }} has_location {{ / if }} ">
<a id="nav-app-link" href=" {{ $url }} " class="nav-link text-truncate" style="width: 100%">
{{ $sel.name }}
{{ if $sitelocation }}
<br><small> {{ $sitelocation }} </small>
{{ / if }}
2021-09-09 13:39:58 +03:00
</a>
2021-12-14 22:44:24 +03:00
</div>
{{ if $settings_url }}
<div id="nav-app-settings-link-wrapper" class="navbar-nav">
<a id="nav-app-settings-link" href=" {{ $settings_url }} /?f=&rpath= {{ $url }} " class="nav-link">
2025-04-06 05:14:08 -04:00
<i class="bi bi-gear"></i>
2021-09-09 13:39:58 +03:00
</a>
2021-12-14 22:44:24 +03:00
</div>
2021-09-09 13:39:58 +03:00
{{ / if }}
{{ / if }}
2021-12-14 22:44:24 +03:00
</div>
2024-02-17 17:00:05 +01:00
{{ else }}
<div class="navbar-text d-lg-none navbar-banner"> {{ $banner }} </div>
2021-12-14 22:44:24 +03:00
{{ / if }}
<div class="navbar-toggler-right">
2021-09-09 13:39:58 +03:00
{{ if $nav.help.6 }}
2021-12-14 22:44:24 +03:00
<button id="context-help-btn" class="navbar-toggler border-0" type="button" onclick="contextualHelp(); return false;">
2025-04-06 05:14:08 -04:00
<i class="bi bi-question-circle-fill generic-icons"></i>
2021-12-14 22:44:24 +03:00
</button>
2021-09-09 13:39:58 +03:00
{{ / if }}
2021-12-14 22:44:24 +03:00
<button id="expand-aside" type="button" class="d-lg-none navbar-toggler border-0">
2025-04-06 05:14:08 -04:00
<i class="bi bi-arrow-right-circle generic-icons" id="expand-aside-icon"></i>
2021-12-14 22:44:24 +03:00
</button>
2021-09-09 13:39:58 +03:00
{{ if $localuser || $nav.pubs }}
2021-12-14 22:44:24 +03:00
<button id="notifications-btn-1" type="button" class="navbar-toggler border-0 notifications-btn">
2025-04-06 05:14:08 -04:00
<i id="notifications-btn-icon-1" class="bi bi-exclamation-circle notifications-btn-icon generic-icons"></i>
2021-12-14 22:44:24 +03:00
</button>
2021-09-09 13:39:58 +03:00
{{ / if }}
2021-12-14 22:44:24 +03:00
<button id="menu-btn" class="navbar-toggler border-0" type="button" data-bs-toggle="offcanvas" data-bs-target="#app-bin">
2025-04-06 05:14:08 -04:00
<i class="bi bi-three-dots-vertical generic-icons"></i>
2021-12-14 22:44:24 +03:00
</button>
</div>
<div class="collapse navbar-collapse justify-content-between" id="navbar-collapse-1">
<ul class="navbar-nav">
{{ if $nav.login && ! $userinfo }}
2025-04-06 05:14:08 -04:00
<li class="nav-item">
<a class="nav-link {{ if ( substr ( $url , 17 , 8 )== "siteinfo" ) }} active {{ / if }} "" href="siteinfo" title=" {{ App :: $strings [ 'About this site' ] }}{{ if ( App :: $strings [ 'About this site' ]== "" ) }} About this site {{ / if }} "><i class="bi bi-info"></i></a>
</li>
<li class="nav-item">
<a class="nav-link {{ if ( substr ( $url , 17 , 4 )== "help" ) }} active {{ / if }} "" href="help" title=" {{ App :: $strings [ 'Help' ] }}{{ if ( App :: $strings [ 'Help' ]== "" ) }} Help {{ / if }} "><i class="bi bi-question-lg"></i></a>
</li>
2021-12-14 22:44:24 +03:00
<li class="nav-item d-lg-flex">
{{ if $nav.loginmenu.1.4 }}
2024-02-17 17:00:05 +01:00
<a class="nav-link" href="#" title=" {{ $nav.loginmenu.1.3 }} " data-bs-toggle="modal" data-bs-target="#nav-login">
2021-12-14 22:44:24 +03:00
{{ $nav.loginmenu.1.1 }}
</a>
{{ else }}
<a class="nav-link" href="login" title=" {{ $nav.loginmenu.1.3 }} ">
{{ $nav.loginmenu.1.1 }}
</a>
{{ / if }}
</li>
{{ / if }}
{{ if $nav.register }}
<li class="nav-item {{ $nav.register.2 }} d-lg-flex">
2024-02-17 17:00:05 +01:00
<a class="nav-link" href=" {{ $nav.register.0 }} " title=" {{ $nav.register.3 }} "> {{ $nav.register.1 }} </a>
2021-12-14 22:44:24 +03:00
</li>
{{ / if }}
{{ if $nav.alogout }}
<li class="nav-item {{ $nav.alogout.2 }} d-lg-flex">
<a class="nav-link" href=" {{ $nav.alogout.0 }} " title=" {{ $nav.alogout.3 }} " id=" {{ $nav.alogout.4 }} "> {{ $nav.alogout.1 }} </a>
</li>
{{ / if }}
</ul>
2024-02-17 17:00:05 +01:00
<div class="navbar-text navbar-banner"> {{ $banner }} </div>
2021-12-14 22:44:24 +03:00
<ul id="nav-right" class="navbar-nav">
2024-02-17 17:00:05 +01:00
<li class="nav-item collapse clearfix" id="nav-search" {{ $color_mode }} >
2021-12-14 22:44:24 +03:00
<form class="form-inline" method="get" action=" {{ $nav.search.4 }} " role="search">
<input class="form-control form-control-sm mt-1 me-2" id="nav-search-text" type="text" value="" placeholder=" {{ $help }} " name="search" title=" {{ $nav.search.3 }} " onclick="this.submit();" onblur="closeMenu('nav-search'); openMenu('nav-search-btn');"/>
</form>
<div id="nav-search-spinner" class="spinner-wrapper">
<div class="spinner s"></div>
</div>
</li>
<li class="nav-item" id="nav-search-btn">
2025-04-06 05:14:08 -04:00
<a class="nav-link" href="#nav-search" title=" {{ $nav.search.3 }} " onclick="openMenu('nav-search'); closeMenu('nav-search-btn'); $('#nav-search-text').focus(); return false;"><i class="bi bi-search generic-icons"></i></a>
</li>
<li class="nav-item">
<a class="nav-link {{ if ( substr ( $url , 17 , 9 )== "directory" ) }} active {{ / if }} "" href="directory" title=" {{ App :: $strings [ 'Local Directory' ] }}{{ if ( App :: $strings [ 'Local Directory' ]== "" ) }} Local Directory {{ / if }} "><i class="bi bi-diagram-3"></i></a>
</li>
<li class="nav-item">
<a class="nav-link {{ if ( substr ( $url , 17 , 9 )== "pubstream" ) }} active {{ / if }} "" href="pubstream" title=" {{ App :: $strings [ 'Public Stream' ] }}{{ if ( App :: $strings [ 'Public Stream' ]== "" ) }} Public Stream {{ / if }} "><i class="bi bi-globe"></i></a>
</li>
<li class="nav-item">
<a class="nav-link {{ if ( substr ( $url , 17 , 8 )== "randprof" ) }} active {{ / if }} "" href="randprof" title=" {{ App :: $strings [ 'Random Channel' ] }}{{ if ( App :: $strings [ 'Random Channel' ]== "" ) }} Random Channel {{ / if }} "><i class="bi bi-shuffle"></i></a>
2021-12-14 22:44:24 +03:00
</li>
2025-04-06 05:14:08 -04:00
<li class="nav-item">
<a class="nav-link {{ if ( substr ( $url , 17 , 4 )== "lang" ) }} active {{ / if }} "" href="lang" title=" {{ App :: $strings [ 'Language' ] }}{{ if ( App :: $strings [ 'Language' ]== "" ) }} Language {{ / if }} "><i class="bi bi-translate"></i></a>
</li>
2021-12-14 22:44:24 +03:00
{{ if $nav.help.6 }}
<li class="nav-item dropdown {{ $sel.help }} ">
2025-04-06 05:14:08 -04:00
<a class="nav-link {{ $nav.help.2 }} " target="hubzilla-help" href=" {{ $nav.help.0 }} " title=" {{ $nav.help.3 }} " id=" {{ $nav.help.4 }} " onclick="contextualHelp(); return false;"><i class="bi bi-question-circle-fill"></i></a>
2021-12-14 22:44:24 +03:00
</li>
{{ / if }}
{{ if $localuser || $nav.pubs }}
<li id="notifications-btn" class="nav-item d-xl-none">
2025-04-06 05:14:08 -04:00
<a class="nav-link notifications-btn" href="#"><i id="notifications-btn-icon" class="bi bi-exclamation-circle notifications-btn-icon generic-icons"></i></a>
2021-12-14 22:44:24 +03:00
</li>
{{ / if }}
{{ if $navbar_apps }}
{{ foreach $navbar_apps as $navbar_app }}
<li class="nav-app-sortable">
{{ $navbar_app }}
</li>
{{ / foreach }}
{{ / if }}
<li class="nav-item dropdown" id="app-menu">
2025-04-06 05:14:08 -04:00
<a class="nav-link" href="#" data-bs-toggle="offcanvas" data-bs-target="#app-bin" aria-controls="app-bin"><i class="bi bi-three-dots-vertical generic-icons"></i></a>
2021-12-14 22:44:24 +03:00
</li>
</ul>
2021-09-09 13:39:58 +03:00
</div>
2021-12-14 22:44:24 +03:00
{{ if $nav.help.6 }}
<div id="contextual-help-content" class="contextual-help-content">
{{ $nav.help.5 }}
<div class="float-end">
2025-04-06 05:14:08 -04:00
<a class="btn btn-primary btn-sm" target="hubzilla-help" href=" {{ $nav.help.0 }} " title=" {{ $nav.help.3 }} "><i class="bi bi-question"></i> {{ $fulldocs }} </a>
<a class="contextual-help-tool" href="#" onclick="contextualHelp(); return false;"><i class="bi bi-x-lg"></i></a>
2021-12-14 22:44:24 +03:00
</div>
</div>
{{ / if }}
2021-09-09 13:39:58 +03:00
</div>
2021-12-14 22:44:24 +03:00
</nav>
2021-09-09 13:39:58 +03:00
<div class="offcanvas offcanvas-end" tabindex="-1" id="app-bin" aria-labelledby="app-bin-label">
<div class="offcanvas-header">
2024-02-17 17:00:05 +01:00
{{ if $nav.login && ! $userinfo }}
<div class="hstack gap-1 d-lg-none pt-1 pb-1">
{{ if $nav.loginmenu.1.4 }}
<a class="btn btn-primary btn-sm text-white" href="#" title=" {{ $nav.loginmenu.1.3 }} " data-bs-toggle="modal" data-bs-target="#nav-login">
{{ $nav.loginmenu.1.1 }}
</a>
{{ else }}
<a class="btn btn-primary btn-sm text-white" href="login" title=" {{ $nav.loginmenu.1.3 }} ">
{{ $nav.loginmenu.1.1 }}
</a>
{{ / if }}
{{ if $nav.register }}
<a class="btn btn-warning btn-sm text-dark" href=" {{ $nav.register.0 }} " title=" {{ $nav.register.3 }} ">
{{ $nav.register.1 }}
</a>
{{ / if }}
</div>
<div class="nav d-lg-flex w-100"></div>
{{ else }}
<div class="lh-sm w-75" id="app-bin-label">
2021-09-09 13:39:58 +03:00
{{ if $name }}
2024-02-17 17:00:05 +01:00
<img src=" {{ $thumb }} " class="menu-img-3">
<div class="p-1">
<div class="fw-bold text-truncate"> {{ $name }} </div>
<div class="text-muted text-truncate"> {{ $sitelocation }} </div>
2021-09-09 13:39:58 +03:00
</div>
{{ / if }}
</div>
2025-04-06 05:14:08 -04:00
<i id="app-bin-trash" class="bi bi-trash d-none"></i>
2024-02-17 17:00:05 +01:00
{{ / if }}
<div class="hstack gap-1">
{{ if $theme_switch_icon }}
2025-04-06 05:14:08 -04:00
<button id="theme-switch" type="button" class="btn btn-outline-secondary border-0"><i id="theme-switch-icon" class="bi bi- {{ $theme_switch_icon }} "></i></button>
2024-02-17 17:00:05 +01:00
{{ / if }}
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
2021-09-09 13:39:58 +03:00
</div>
2024-02-17 17:00:05 +01:00
<div class="offcanvas-body">
2021-09-09 13:39:58 +03:00
{{ if $channel_apps.0 }}
2024-02-17 17:00:05 +01:00
<div class="text-uppercase text-muted">
2021-09-09 13:39:58 +03:00
{{ $channelapps }}
</div>
2024-02-17 17:00:05 +01:00
<div class="nav nav-pills flex-column">
{{ foreach $channel_apps as $channel_app }}
{{ $channel_app }}
{{ / foreach }}
</div>
2019-08-30 15:28:39 +03:00
{{ / if }}
2021-09-09 13:39:58 +03:00
{{ if $navbar_apps.0 }}
2024-02-17 17:00:05 +01:00
<div class="d-lg-none dropdown-header text-uppercase text-muted">
2021-12-14 22:44:24 +03:00
{{ $pinned_apps }}
</div>
2024-02-17 17:00:05 +01:00
<div id="nav-app-bin-container" class="d-lg-none nav nav-pills flex-column">
2021-09-09 13:39:58 +03:00
{{ foreach $navbar_apps as $navbar_app }}
2025-04-06 05:14:08 -04:00
{{ $navbar_app | replace : 'generic-icons' : 'generic-icons-nav' }}
2021-09-09 13:39:58 +03:00
{{ / foreach }}
2019-08-30 15:28:39 +03:00
</div>
2025-04-06 05:14:08 -04:00
2019-08-30 15:28:39 +03:00
{{ / if }}
{{ if $is_owner }}
2025-04-06 05:14:08 -04:00
<div class="text-uppercase dropdown-header text-muted">
2021-12-14 22:44:24 +03:00
{{ $featured_apps }}
</div>
2024-02-17 17:00:05 +01:00
<div id="app-bin-container" data-token=" {{ $form_security_token }} " class="nav nav-pills flex-column">
2021-09-09 13:39:58 +03:00
{{ foreach $nav_apps as $nav_app }}
{{ $nav_app }}
{{ / foreach }}
</div>
2024-02-17 17:00:05 +01:00
<hr>
<div class="nav nav-pills flex-column">
2025-04-06 05:14:08 -04:00
<a class="nav-link" href="/apps"><i class="generic-icons-nav bi bi-plus-lg"></i> {{ $addapps }} </a>
2024-02-17 17:00:05 +01:00
</div>
2021-09-09 13:39:58 +03:00
{{ else }}
2024-02-17 17:00:05 +01:00
<div class="text-uppercase text-muted nav-link">
2021-09-09 13:39:58 +03:00
{{ $sysapps }}
2018-11-05 14:31:34 +01:00
</div>
2024-02-17 17:00:05 +01:00
<div class="nav nav-pills flex-column">
{{ foreach $nav_apps as $nav_app }}
{{ $nav_app }}
{{ / foreach }}
</div>
2018-11-05 14:31:34 +01:00
{{ / if }}
</div>
</div>
2021-09-09 13:39:58 +03:00
{{ if $is_owner }}
<script>
var app_bin = document.getElementById('app-bin-container');
new Sortable(app_bin, {
animation : 150 ,
delay : 200 ,
delayOnTouchOnly : true ,
2021-12-14 22:44:24 +03:00
onStart : function ( e ) {
$ ( '#app-bin-trash' ). removeClass ( 'd-none' );
} ,
2021-09-09 13:39:58 +03:00
onEnd : function ( e ) {
2021-12-14 22:44:24 +03:00
$ ( '#app-bin-trash' ). addClass ( 'd-none' );
2021-09-09 13:39:58 +03:00
let app_str = '' ;
2021-12-14 22:44:24 +03:00
$ ( '#app-bin-container a:visible' ). each ( function () {
2021-09-09 13:39:58 +03:00
if ( app_str . length ) {
2021-12-14 22:44:24 +03:00
app_str = app_str . concat ( ',' , this . text );
2021-09-09 13:39:58 +03:00
}
else {
2021-12-14 22:44:24 +03:00
app_str = app_str . concat ( this . text );
2021-09-09 13:39:58 +03:00
}
} );
$ . post (
'pconfig' ,
{
'aj' : 1 ,
'cat' : 'system' ,
'k' : 'app_order' ,
'v' : app_str ,
'form_security_token' : $ ( '#app-bin-container' ). data ( 'token' )
}
);
}
} );
var nav_app_bin = document.getElementById('nav-right');
new Sortable(nav_app_bin, {
animation : 150 ,
delay : 200 ,
delayOnTouchOnly : true ,
draggable : '.nav-app-sortable' ,
onEnd : function ( e ) {
let nav_app_str = '' ;
$ ( '#nav-right .nav-app-sortable' ). each ( function () {
if ( nav_app_str . length ) {
nav_app_str = nav_app_str . concat ( ',' , $ ( this ). text ());
}
else {
nav_app_str = nav_app_str . concat ( $ ( this ). text ());
}
} );
$ . post (
'pconfig' ,
{
'aj' : 1 ,
'cat' : 'system' ,
'k' : 'app_pin_order' ,
'v' : nav_app_str ,
'form_security_token' : $ ( '#app-bin-container' ). data ( 'token' )
}
);
}
} );
var nav_app_bin_container = document.getElementById('nav-app-bin-container');
new Sortable(nav_app_bin_container, {
animation : 150 ,
delay : 200 ,
delayOnTouchOnly : true ,
onEnd : function ( e ) {
let nav_app_str = '' ;
$ ( '#nav-app-bin-container a' ). each ( function () {
if ( nav_app_str . length ) {
nav_app_str = nav_app_str . concat ( ',' , $ ( this ). text ());
}
else {
nav_app_str = nav_app_str . concat ( $ ( this ). text ());
}
} );
$ . post (
'pconfig' ,
{
'aj' : 1 ,
'cat' : 'system' ,
'k' : 'app_pin_order' ,
'v' : nav_app_str ,
'form_security_token' : $ ( '#app-bin-container' ). data ( 'token' )
}
);
}
} );
$('#nav-right').on('dragover', function (e) {
e . preventDefault ();
e . stopPropagation ();
$ ( this ). css ( 'box-shadow' , '0px 0px 3px red inset' );
} );
$('#nav-right').on('dragleave', function (e) {
e . preventDefault ();
e . stopPropagation ();
$ ( this ). css ( 'box-shadow' , '' );
} );
$('#nav-right').on('drop', function (e) {
e . preventDefault ();
e . stopPropagation ();
$ ( this ). css ( 'box-shadow' , '' );
if ( papp === null )
return ;
$ . ajax ( {
type : 'post' ,
url : 'appman' ,
data : {
'aj' : 1 ,
'feature' : 'nav_pinned_app' ,
'papp' : papp
}
} )
. done ( function () {
2025-04-06 05:14:08 -04:00
$ ( '<li><a class="navbar-app nav-link" href="' + app_url + '"><i class="bi bi-' + app_icon + '"></i></li>' ). insertBefore ( '#app-menu' );
2021-09-09 13:39:58 +03:00
} );
} );
$('#app-menu').on('dragover', function (e) {
e . preventDefault ();
e . stopPropagation ();
$ ( this ). css ( 'box-shadow' , '0px 0px 1px red inset' );
} );
$('#app-menu').on('dragleave', function (e) {
e . preventDefault ();
e . stopPropagation ();
$ ( this ). css ( 'box-shadow' , '' );
} );
$('#app-menu').on('drop', function (e) {
e . preventDefault ();
e . stopPropagation ();
$ ( this ). css ( 'box-shadow' , '' );
if ( papp === null )
return ;
$ . ajax ( {
type : 'post' ,
url : 'appman' ,
data : {
'aj' : 1 ,
'feature' : 'nav_featured_app' ,
'papp' : papp
}
} )
. done ( function () {
2025-04-06 05:14:08 -04:00
$ ( '<a class="dropdown-item" href="' + app_url + '"><i class="generic-icons-nav bi bi-' + app_icon + '"></i>' + app_name + '</a>' ). appendTo ( '#app-bin-container' );
2021-09-09 13:39:58 +03:00
} );
} );
2021-12-14 22:44:24 +03:00
$('#app-bin-trash').on('dragover', function (e) {
e . preventDefault ();
e . stopPropagation ();
$ ( '#app-bin-container a[href=\'' + app_url + '\']' ). fadeOut ();
} );
$('#app-bin-trash').on('dragleave', function (e) {
e . preventDefault ();
e . stopPropagation ();
$ ( '#app-bin-container a[href=\'' + app_url + '\']' ). fadeIn ();
} );
$('#app-bin-trash').on('drop', function (e) {
e . preventDefault ();
e . stopPropagation ();
if ( papp === null )
return ;
$ . ajax ( {
type : 'post' ,
url : 'appman' ,
data : {
'aj' : 1 ,
'feature' : 'nav_featured_app' ,
'papp' : papp
}
} );
} );
2021-09-09 13:39:58 +03:00
var papp, app_icon, app_url;
$(document).on('dragstart', function (e) {
papp = e . target . dataset . papp || null ;
app_icon = e . target . dataset . icon || null ;
app_url = e . target . dataset . url || null ;
app_name = e . target . dataset . name || null ;
} );
</script>
2018-11-05 14:31:34 +01:00
{{ / if }}