This commit is contained in:
harukin 2018-11-16 17:57:20 +09:00
parent 3bc07f8039
commit b341732f3a
2 changed files with 29 additions and 20 deletions

View File

@ -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;
}
}

View File

@ -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>