|
@@ -12,11 +12,13 @@ require_once(BASE_ROOT_PATH . '/helper/room/factory.php');
|
|
|
require_once(BASE_ROOT_PATH . '/helper/url_helper.php');
|
|
|
require_once(BASE_ROOT_PATH . '/helper/util_helper.php');
|
|
|
require_once (BASE_ROOT_PATH . '/helper/relation_helper.php');
|
|
|
+require_once (BASE_ROOT_PATH . '/helper/session_helper.php');
|
|
|
use relation\mem_relation;
|
|
|
use Exception;
|
|
|
use url_helper;
|
|
|
use author_url;
|
|
|
use util;
|
|
|
+use session_helper;
|
|
|
|
|
|
class tpl_group_home
|
|
|
{
|
|
@@ -344,7 +346,6 @@ class tpl_group_home
|
|
|
$html.= "<div class=\"weui-cells\">";
|
|
|
$html.= $this->room_name_btn($click,$name);
|
|
|
$html.= $this->room_avatar_btn($avartar);
|
|
|
-// $html.= $this->room_share_btn();
|
|
|
$html.= $this->room_nickname_btn();
|
|
|
$html.= "</div>";
|
|
|
|
|
@@ -394,13 +395,6 @@ class tpl_group_home
|
|
|
return $html;
|
|
|
}
|
|
|
|
|
|
- private function room_share_btn(){
|
|
|
- $html = "
|
|
|
-
|
|
|
- ";
|
|
|
- return $html;
|
|
|
- }
|
|
|
-
|
|
|
private function room_cert_btn($click,$level)
|
|
|
{
|
|
|
if($click){
|
|
@@ -506,6 +500,12 @@ class tpl_group_home
|
|
|
if(isset($this->participants[$this->cur_user]))
|
|
|
{
|
|
|
$html .="<div class=\"weui-cells\">";
|
|
|
+
|
|
|
+ if(session_helper::isapp())
|
|
|
+ {
|
|
|
+ $html.= $this->room_share_btn();
|
|
|
+ }
|
|
|
+
|
|
|
if ($this->isManager($this->cur_user)) {
|
|
|
$pwd = $this->room_info->passwd();
|
|
|
if($pwd)
|
|
@@ -538,6 +538,7 @@ class tpl_group_home
|
|
|
</div>";
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
$html .="<div class=\"weui-cell weui-cell_switch\" href=\"javascript:;\">
|
|
|
<div class=\"weui-cell__bd\">
|
|
|
<p>置顶聊天</p>
|
|
@@ -576,6 +577,16 @@ class tpl_group_home
|
|
|
echo $html;
|
|
|
}
|
|
|
|
|
|
+ private function room_share_btn(){
|
|
|
+ $html = "<div class=\"weui-cell\" id='room_share_btn'>
|
|
|
+ <div class=\"weui-cell__bd\">
|
|
|
+ <p>邀请入群</p>
|
|
|
+ </div>
|
|
|
+ </div>";
|
|
|
+ return $html;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public function show_footer_leave_btn(){
|
|
|
$html = "";
|
|
|
if (isset($this->participants[$this->cur_user]))
|