This commit is contained in:
		| @@ -3,20 +3,9 @@ | |||||||
| 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( |  | ||||||
|       '$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()) | 		if(! local_channel()) | ||||||
| @@ -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,6 +67,11 @@ | |||||||
|           <p>利用規約</p> |           <p>利用規約</p> | ||||||
|         </a> |         </a> | ||||||
|       </li> |       </li> | ||||||
|  |   </ul> | ||||||
|  |  | ||||||
|  |   </div> | ||||||
|  |  | ||||||
|  |  | ||||||
| <div class="widget"> | <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}} | ||||||
| @@ -92,8 +97,3 @@ | |||||||
| 	</script> | 	</script> | ||||||
| 	{{/if}} | 	{{/if}} | ||||||
| </div> | </div> | ||||||
|  |  | ||||||
|   </ul> |  | ||||||
|  |  | ||||||
|   </div> |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user