diff --git a/view/theme/plusfuture/php/widget_userlogomenu.php b/view/theme/plusfuture/php/widget_userlogomenu.php index 431c98f..6c1ef2c 100644 --- a/view/theme/plusfuture/php/widget_userlogomenu.php +++ b/view/theme/plusfuture/php/widget_userlogomenu.php @@ -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; - } \ No newline at end of file + } +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; + + } + + + + + +} diff --git a/view/theme/plusfuture/tpl/userlogomenu.tpl b/view/theme/plusfuture/tpl/userlogomenu.tpl index 8037110..06c8df0 100644 --- a/view/theme/plusfuture/tpl/userlogomenu.tpl +++ b/view/theme/plusfuture/tpl/userlogomenu.tpl @@ -67,7 +67,12 @@
利用規約
- + + + - - - - -