This commit is contained in:
parent
3bc07f8039
commit
b341732f3a
@ -3,21 +3,10 @@
|
||||
namespace Zotlabs\Widget;
|
||||
|
||||
use Zotlabs\Lib\Apps;
|
||||
function widget_userlogomenu($args) {
|
||||
|
||||
$channel = channelx_by_n(\App::$profile_uid);
|
||||
class widget_userlogomenu {
|
||||
|
||||
$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;
|
||||
|
||||
}
|
||||
function widget($arr) {
|
||||
function widget($arr) {
|
||||
|
||||
if(! local_channel())
|
||||
return '';
|
||||
@ -213,4 +202,24 @@ function widget_userlogomenu($args) {
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -67,7 +67,12 @@
|
||||
<p>利用規約</p>
|
||||
</a>
|
||||
</li>
|
||||
<div class="widget">
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="widget">
|
||||
<h3 class="d-flex justify-content-between align-items-center">
|
||||
{{$title}}
|
||||
{{if $reset}}
|
||||
@ -92,8 +97,3 @@
|
||||
</script>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user