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