Plugin Directory

Changeset 2729069


Ignore:
Timestamp:
05/24/2022 06:06:40 AM (4 years ago)
Author:
yuyaoit
Message:

新增移动版

Location:
eychat
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • eychat/trunk/assets/tip.php

    r2703007 r2729069  
    11<?php  get_header();?>
    2 <!DOCTYPE html>
    3 <html>
    4 <head>
    5   <meta charset="utf-8">
    6   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    7 </head>
    82<body>
    93<div class="layui-row layui-col-space5 layui-hide-xs" id="tip-welcome" style="height:300px;">
  • eychat/trunk/classes/front.class.php

    r2721718 r2729069  
    465465    public static function init(){     
    466466        $cfg = get_option(EYOUNGCHAT_Admin::$optname);
     467        if (empty($cfg['isopen'])) return;
    467468        if (wp_is_mobile()){
    468             if (empty($cfg['mobileopen'])) return;
     469//          if (empty($cfg['mobileopen'])) return;
    469470        }else{
    470             if (empty($cfg['isopen'])) return;
     471//          if (empty($cfg['isopen'])) return;
    471472        }
    472473        include_once EYOUNG_CHAT_PATH.'/lang/front.php';
     
    500501        add_action('wp_ajax_nopriv_eychat_uploadImage', array(__CLASS__, 'uploadImage'));
    501502        add_action('wp_ajax_nopriv_eychat_uploadFile', array(__CLASS__, 'uploadFile'));
    502        
     503
    503504        add_filter('template_include',array(__CLASS__, 'getChatPage'),11);
    504505        add_action('wp_enqueue_scripts', array(__CLASS__,'setLoadScripts'));
     
    509510        wp_enqueue_style( 'eychat_layui_css', EYOUNG_CHAT_URL.EYOUNG_CHAT_JS.'/layui/css/layui.css',12);
    510511        wp_enqueue_style( 'eychat_def_css', EYOUNG_CHAT_URL.EYOUNG_CHAT_JS.'/layui/css/eydef.css',13);
    511         wp_enqueue_script('eychat_js', EYOUNG_CHAT_URL.EYOUNG_CHAT_JS.'/layui/layui.js');           
     512        wp_enqueue_script('eychat_js', EYOUNG_CHAT_URL.EYOUNG_CHAT_JS.'/layui/layui.js',14);           
    512513    }
    513514
     
    555556           
    556557            $lang = self::$lg;
    557                        
    558             if ($uinfo['st'] == 4){
    559                 return  EYOUNG_CHAT_PATH . '/assets/tip.php';
    560             }else if ($uinfo['st'] == 1){
    561                 return  EYOUNG_CHAT_PATH . '/assets/tip.php';
    562             }
    563 
    564             include_once EYOUNG_CHAT_PATH . '/assets/chat.php';
     558
     559            if (wp_is_mobile()){
     560                include_once EYOUNG_CHAT_PATH . '/assets/chath5.php';
     561            }else{
     562                if ($uinfo['st'] == 4){
     563                    return  EYOUNG_CHAT_PATH . '/assets/tip.php';
     564                }else if ($uinfo['st'] == 1){
     565                    return  EYOUNG_CHAT_PATH . '/assets/tip.php';
     566                }
     567           
     568                include_once EYOUNG_CHAT_PATH . '/assets/chat.php';
     569            }
    565570            return false;
    566571        }
  • eychat/trunk/readme.txt

    r2722443 r2729069  
    55Requires at least: 4.8
    66Tested up to: 5.9.3
    7 Stable tag: 1.0
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    62621. Ey聊天极简版后台设置截图。
    63632. Ey聊天极简版前端用户使用截图。
     643. Ey聊天极简版移动前端用户使用截图。
    6465
    6566== Changelog ==
     67
     68= 1.2 =2022/05/24
     69* 新增手机版
    6670
    6771= 1.0 =2022/02/18
Note: See TracChangeset for help on using the changeset viewer.