This commit is contained in:
parent
1230d19fc3
commit
382d324735
@ -203,21 +203,6 @@ class widget_userlogomenu {
|
||||
return $o;
|
||||
|
||||
}
|
||||
function widget_userlogomenu($args) {
|
||||
|
||||
$channel = channelx_by_n(\App::$profile_uid);
|
||||
|
||||
$o = replace_macros(get_markup_template('userlogomenu.tpl'), array(
|
||||
'$sitelocation' => $site['$sitelocation'],
|
||||
'$banner' => $channel['channel_name'],
|
||||
'$channel' => $channel['channel_address'],
|
||||
'$avatar' => $channel['xchan_photo_s'],
|
||||
));
|
||||
|
||||
return $o;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -71,3 +71,29 @@
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="widget">
|
||||
<h3 class="d-flex justify-content-between align-items-center">
|
||||
{{$title}}
|
||||
{{if $reset}}
|
||||
<a href="{{$reset.url}}" class="text-muted" title="{{$reset.title}}">
|
||||
<i class="fa fa-fw fa-{{$reset.icon}}"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</h3>
|
||||
{{$content}}
|
||||
{{if $name}}
|
||||
<div class="notifications-textinput">
|
||||
<form method="get" action="{{$name.url}}" role="search">
|
||||
<div class="text-muted notifications-textinput-filter"><i class="fa fa-fw fa-filter"></i></div>
|
||||
<input id="cid" type="hidden" value="" name="cid" />
|
||||
<input id="cid-filter" class="form-control form-control-sm{{if $name.sel}} {{$name.sel}}{{/if}}" type="text" value="" placeholder="{{$name.label}}" name="name" title="" />
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
$("#cid-filter").contact_autocomplete(baseurl + '/acl', 'a', true, function(data) {
|
||||
$("#cid").val(data.id);
|
||||
});
|
||||
</script>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user