HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/mm.paycheckc.com/data/runtime/temp/zh-cn_7bbc630f45f4aea6eacf80ad454dc3c8.php
<?php /*a:20:{s:69:"/www/wwwroot/mm.paycheckc.com/public/themes/default/portal/index.html";i:1746023948;s:68:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/base.html";i:1746023948;s:80:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/nav/head.html";i:1746023948;s:83:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/footer/head.html";i:1746023948;s:83:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/slider/head.html";i:1746023948;s:85:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/features/head.html";i:1746023948;s:86:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/last_news/head.html";i:1746023948;s:82:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/nav/script.html";i:1746023948;s:85:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/footer/script.html";i:1746023948;s:85:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/slider/script.html";i:1746023948;s:87:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/features/script.html";i:1746023948;s:88:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/last_news/script.html";i:1746023948;s:68:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/head.html";i:1746023948;s:72:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/function.html";i:1746023948;s:82:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/nav/widget.html";i:1746023948;s:85:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/slider/widget.html";i:1746023948;s:87:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/features/widget.html";i:1746023948;s:88:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/last_news/widget.html";i:1746023948;s:85:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/widgets/footer/widget.html";i:1746023948;s:71:"/www/wwwroot/mm.paycheckc.com/public/themes/default/public/scripts.html";i:1746023948;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    
        <title>首页 <?php echo (isset($site_info['site_name']) && ($site_info['site_name'] !== '')?$site_info['site_name']:''); ?></title>
        <meta name="keywords" content="<?php echo (isset($site_info['site_seo_keywords']) && ($site_info['site_seo_keywords'] !== '')?$site_info['site_seo_keywords']:''); ?>"/>
        <meta name="description" content="<?php echo (isset($site_info['site_seo_description']) && ($site_info['site_seo_description'] !== '')?$site_info['site_seo_description']:''); ?>">
    
    
<?php 
    /*可以加多个方法哟!*/
    if (!function_exists('_sp_helloworld')) {
        function _sp_helloworld(){
        echo "hello ThinkCMF!";
        }
    }

    if (!function_exists('_sp_helloworld2')) {
        function _sp_helloworld2(){
        echo "hello ThinkCMF2!";
        }
    }

    if (!function_exists('_sp_helloworld3')) {
        function _sp_helloworld3(){
        echo "hello ThinkCMF3!";
        }
    }
 ?>
<meta name="author" content="ThinkCMF">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">

<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link rel="icon" href="/themes/default/public/assets/images/favicon.png" type="image/png">
<link rel="shortcut icon" href="/themes/default/public/assets/images/favicon.png" type="image/png">
<link href="/themes/default/public/assets/themes/simpleboot5/bootstrap.min.css" rel="stylesheet">
<link href="/themes/default/public/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet"
      type="text/css">
<link href="/themes/default/public/assets/css/style.css" rel="stylesheet">
<style>
    /*html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);-webkit-filter: grayscale(1);}*/
    #backtotop {
        position: fixed;
        bottom: 50px;
        right: 20px;
        display: none;
        cursor: pointer;
        font-size: 50px;
        z-index: 9999;
    }

    #backtotop:hover {
        color: #333
    }

    #main-menu-user li.user {
        display: none
    }

    .__cmf_widget_in_block {
        margin-bottom: 2rem;
    }
</style>
<script type="text/javascript">
    //全局变量
    var GV = {
        ROOT: "/",
        WEB_ROOT: "/",
        JS_ROOT: "static/js/"
    };
</script>
<script src="/themes/default/public/assets/js/jquery-3.6.4.min.js"></script>
<script src="/themes/default/public/assets/js/jquery-migrate-1.4.1.min.js"></script>
<script src="/static/js/wind.js"></script>

    <style>
    body {
        padding-top: 67px;
    }
</style><!--
引入控件外部CSS
注意请使用css标签
可以保证此控件在同页面多次使用时,只加载一次CSS文件
-->
<?php
if(!isset($_theme_css_href_list)){
    $_theme_css_href_list=[];
}
if(!isset($_theme_css_href_list['/themes/default/public/assets/css/slippry/slippry.css'])){
    $_theme_css_href_list['/themes/default/public/assets/css/slippry/slippry.css']='/themes/default/public/assets/css/slippry/slippry.css';
?>
<link href="<?php echo '/themes/default/public/assets/css/slippry/slippry.css';?>" rel="stylesheet">
<?php
}
?>
<!--
控件CSS
注意请勿使用ID选择,
要此控件在同页面多次使用时,CSS代码的通用性
-->
<style>
    .caption-wraper {
        position: absolute;
        left: 50%;
        bottom: 2em;
    }

    .caption-wraper .caption {
        position: relative;
        left: -50%;
        background-color: rgba(0, 0, 0, 0.54);
        padding: 0.4em 1em;
        color: #fff;
        -webkit-border-radius: 1.2em;
        -moz-border-radius: 1.2em;
        -ms-border-radius: 1.2em;
        -o-border-radius: 1.2em;
        border-radius: 1.2em;
    }

    @media (max-width: 767px) {
        .caption-wraper {
            left: 0;
            bottom: 0.4em;
        }

        .caption-wraper .caption {
            left: 0;
            padding: 0.2em 0.4em;
            font-size: 0.92em;
            -webkit-border-radius: 0;
            -moz-border-radius: 0;
            -ms-border-radius: 0;
            -o-border-radius: 0;
            border-radius: 0;
        }
    }

</style><style>
    .container .tc-gridbox {
        margin: 0 0 20px 0;
    }

    .tc-gridbox .header h3{
        padding: 10px;
    }
</style>
</head>
<body class="body-white">
<div >
<?php 
$widget= $theme_widgets_blocks['top']['widgets']['top_nav_202206300003'];
if(!empty($widget['public_widget_id']) && isset($theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']])){
   $widget= $theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']];   
}
$_theme_file_id='3';
$_widget_id='top_nav_202206300003';
?>
<!-- Nav -->
<nav id="nav1" class="__cmf_widget_in_block navbar fixed-top navbar-expand-lg bg-body-tertiary" style="<?php if(isset($widget['css'])){    foreach($widget['css'] as $cssAttrName=>$cssValue){        if($cssValue!=0){           echo $cssAttrName.':'.$cssValue.';';        }    }}?>">

    <div class="container">
        <a class="navbar-brand" href="<?php echo cmf_lang_url('','/'); ?>"><?php echo (isset($widget['vars']['company_name']) && ($widget['vars']['company_name'] !== '')?$widget['vars']['company_name']:'ThinkCMF'); ?></a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <?php $_nav_id=empty($widget['vars']['nav_id'])?0:$widget['vars']['nav_id']; /*start*/
if (!function_exists('__parse_navigation_a45dc9dc8d00eb0766e74612fe759712')) {
    function __parse_navigation_a45dc9dc8d00eb0766e74612fe759712($menus,$level=1){
        $_parse_navigation_func_name = '__parse_navigation_a45dc9dc8d00eb0766e74612fe759712';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): if($level > 1): ?>
                            <li class="nav-item menu-item menu-item-level-<?php echo $level; ?> levelgt1">
                                <a class="dropdown-item" href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>"
                                   target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>">
                                    <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
                                </a>
                            </li>
                            <?php else: ?>
                            <li class="nav-item menu-item menu-item-level-<?php echo $level; ?>">
                                <a class="nav-link" href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>">
                                    <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
                                </a>
                            </li>
                        <?php endif; ?>
                    
<?php endif; if(!empty($menu['children'])): ?>
    <li class="nav-item dropdown dropdown-custom dropdown-custom-level-<?php echo $level; ?>">
        
                        <a href="#" class="nav-link dropdown-toggle dropdown-toggle-<?php echo $level; ?>" role="button"
                           data-bs-toggle="dropdown" aria-expanded="false">
                            <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?><span class="caret"></span>
                        </a>
                    
        <ul class="dropdown-menu dropdown-menu-level-<?php echo $level; ?>">
            <?php 
            $mLevel=$level+1;
             ?>
            <?php echo $_parse_navigation_func_name($menu['children'],$mLevel); ?>
        </ul>
    </li>
<?php endif; ?>
                
        <?php endforeach; endif; else: echo "" ;endif; 
    }
}
/*end*/
    $menus = \app\admin\model\NavMenuService::navMenusTreeArray($_nav_id,0);
if(''==''): ?>
    <?php echo __parse_navigation_a45dc9dc8d00eb0766e74612fe759712($menus); else: ?>
    < id="main-navigation" class="nav navbar-nav navbar-nav-custom">
        <?php echo __parse_navigation_a45dc9dc8d00eb0766e74612fe759712($menus); ?>
    </>
<?php endif; ?>


                <!--                <li class="nav-item dropdown">-->
                <!--                    <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">-->
                <!--                        Dropdown-->
                <!--                    </a>-->
                <!--                    <ul class="dropdown-menu">-->
                <!--                        <li><a class="dropdown-item" href="#">Action</a></li>-->
                <!--                        <li><a class="dropdown-item" href="#">Another action</a></li>-->
                <!--                        <li><hr class="dropdown-divider"></li>-->
                <!--                        <li><a class="dropdown-item" href="#">Something else here</a></li>-->
                <!--                    </ul>-->
                <!--                </li>-->
            </ul>

            <!--            <form class="d-flex" role="search">-->
            <!--                <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">-->
            <!--                <button class="btn btn-outline-success" type="submit">Search</button>-->
            <!--            </form>-->
            <?php if(cmf_home_multi_lang()): 
                    $allow_lang_list=cmf_allow_lang_list();
                    $current_lang=cmf_current_home_lang();
                    $lang_setting=cmf_get_option('lang_setting');
                 ?>
                <div class="dropdown">
                    <button class="btn btn-outline-success dropdown-toggle" type="button" data-bs-toggle="dropdown"
                            aria-expanded="false">
                        <?php if(!(empty($lang_setting['allow_lang_list']) || (($lang_setting['allow_lang_list'] instanceof \think\Collection || $lang_setting['allow_lang_list'] instanceof \think\Paginator ) && $lang_setting['allow_lang_list']->isEmpty()))): if(is_array($lang_setting['allow_lang_list']) || $lang_setting['allow_lang_list'] instanceof \think\Collection || $lang_setting['allow_lang_list'] instanceof \think\Paginator): if( count($lang_setting['allow_lang_list'])==0 ) : echo "" ;else: foreach($lang_setting['allow_lang_list'] as $key=>$lang): if($current_lang == $lang['lang']): ?>
                                    <?php echo (isset($lang['name']) && ($lang['name'] !== '')?$lang['name']:$lang['lang']); break; ?>
                                <?php endif; ?>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        <?php endif; ?>
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu dropdown-menu-left">
                        <?php if(!(empty($lang_setting['allow_lang_list']) || (($lang_setting['allow_lang_list'] instanceof \think\Collection || $lang_setting['allow_lang_list'] instanceof \think\Paginator ) && $lang_setting['allow_lang_list']->isEmpty()))): if(is_array($lang_setting['allow_lang_list']) || $lang_setting['allow_lang_list'] instanceof \think\Collection || $lang_setting['allow_lang_list'] instanceof \think\Paginator): if( count($lang_setting['allow_lang_list'])==0 ) : echo "" ;else: foreach($lang_setting['allow_lang_list'] as $key=>$lang): if(in_array($lang['lang'],$allow_lang_list)): ?>
                                    <li>
                                        <a class="dropdown-item" href="<?php echo cmf_lang_url($lang['lang']); ?>"><?php echo (isset($lang['name']) && ($lang['name'] !== '')?$lang['name']:$lang['lang']); ?></a>
                                    </li>
                                <?php endif; ?>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        <?php endif; ?>
                    </ul>
                </div>
            <?php endif; ?>
        </div>
    </div>

</nav>

</div>
<div >
<?php 
$widget= $theme_widgets_blocks['body']['widgets']['home_slider_202206300003'];
if(!empty($widget['public_widget_id']) && isset($theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']])){
   $widget= $theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']];   
}
$_theme_file_id='3';
$_widget_id='home_slider_202206300003';
?>
<!-- Nav -->
<div class="__cmf_widget_in_block" style="<?php if(isset($widget['css'])){    foreach($widget['css'] as $cssAttrName=>$cssValue){        if($cssValue!=0){           echo $cssAttrName.':'.$cssValue.';';        }    }}?>">

    <?php $fullscreen=empty($widget['vars']['fullscreen'])?'':'g-0'; ?>
    <div class="container-fluid <?php echo $fullscreen; ?>">
        <?php 
            $top_slide_id=empty($widget['vars']['slide_id'])?1:$widget['vars']['slide_id'];
         ?>
        <ul class="slider">
            <?php
     $__SLIDE_ITEMS__ = \app\admin\service\ApiService::slides($top_slide_id);
if(is_array($__SLIDE_ITEMS__) || $__SLIDE_ITEMS__ instanceof \think\Collection || $__SLIDE_ITEMS__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__SLIDE_ITEMS__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                <li>
                    <div class="caption-wraper">
                        <div class="caption"><?php echo (isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:''); ?></div>
                    </div>
                    <a href="<?php echo (isset($vo['url']) && ($vo['url'] !== '')?$vo['url']:''); ?>"><img src="<?php echo cmf_get_image_url($vo['image']); ?>" alt=""></a>
                </li>
            
<?php endforeach; endif; else: echo "" ;endif;     if(!isset($__SLIDE_ITEMS__)){
        $__SLIDE_ITEMS__ = \app\admin\service\ApiService::slides($top_slide_id);
    }
if(count($__SLIDE_ITEMS__) == 0): ?>

                <li>
                    <div class="caption-wraper">
                        <div class="caption">此幻灯片只是演示,您没有设置任何幻灯片,请到后台模板设置!</div>
                    </div>
                    <a href=""><img src="/themes/default/public/assets/images/demo/1.jpg" alt=""></a>
                </li>
                <li>
                    <div class="caption-wraper">
                        <div class="caption">此幻灯片只是演示,您没有设置任何幻灯片,请到后台模板设置!</div>
                    </div>
                    <a href=""><img src="/themes/default/public/assets/images/demo/2.jpg" alt=""></a>
                </li>
                <li>
                    <div class="caption-wraper">
                        <div class="caption">此幻灯片只是演示,您没有设置任何幻灯片,请到后台模板设置!</div>
                    </div>
                    <a href=""><img src="/themes/default/public/assets/images/demo/3.jpg" alt=""></a>
                </li>
            
<?php endif; ?>
        </ul>
    </div>

</div>
<?php 
$widget= $theme_widgets_blocks['body']['widgets']['home_features_202206300003'];
if(!empty($widget['public_widget_id']) && isset($theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']])){
   $widget= $theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']];   
}
$_theme_file_id='3';
$_widget_id='home_features_202206300003';
?>
<div class="__cmf_widget_in_block" style="<?php if(isset($widget['css'])){    foreach($widget['css'] as $cssAttrName=>$cssValue){        if($cssValue!=0){           echo $cssAttrName.':'.$cssValue.';';        }    }}?>">

    <div class="container">
        <div>
            <h1 class="text-center"><?php echo $widget['title']; ?></h1>
            <h3 class="text-center"><?php echo (isset($widget['vars']['sub_title']) && ($widget['vars']['sub_title'] !== '')?$widget['vars']['sub_title']:'Quickly understand the ThinkCMF'); ?></h3>
        </div>
        <?php if(!(empty($widget['vars']['features']) || (($widget['vars']['features'] instanceof \think\Collection || $widget['vars']['features'] instanceof \think\Paginator ) && $widget['vars']['features']->isEmpty()))): 
                $features_count = count($widget['vars']['features']);
                $rows = ceil($features_count/3);
             $__FOR_START_881150340__=1;$__FOR_END_881150340__=$rows;for($row=$__FOR_START_881150340__;$row <= $__FOR_END_881150340__;$row+=1){ 
                    $first_row = ($row-1)*3;
                    $features = array_slice($widget['vars']['features'],$first_row,3);
                 ?>
                <div class="row">
                    <?php if(is_array($features) || $features instanceof \think\Collection || $features instanceof \think\Paginator): if( count($features)==0 ) : echo "" ;else: foreach($features as $key=>$vo): ?>
                        <div class="col-md-4">
                            <h3 class="font-large nospace"><i class="fa fa-<?php echo $vo['icon']; ?>"></i> <?php echo $vo['title']; ?></h3>
                            <p><?php echo $vo['content']; ?></p>
                        </div>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            <?php } ?>
        <?php endif; ?>
    </div>

</div><?php 
$widget= $theme_widgets_blocks['body']['widgets']['home_last_news_202206300003'];
if(!empty($widget['public_widget_id']) && isset($theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']])){
   $widget= $theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']];   
}
$_theme_file_id='3';
$_widget_id='home_last_news_202206300003';
?>
<div class="__cmf_widget_in_block" style="<?php if(isset($widget['css'])){    foreach($widget['css'] as $cssAttrName=>$cssValue){        if($cssValue!=0){           echo $cssAttrName.':'.$cssValue.';';        }    }}?>">

    <div class="container">
        <div>
            <h2 class="text-center"><?php echo $widget['title']; ?></h2>
        </div>
        <div class="row">
            <?php 
                $widget["vars"]["last_news_category_id"] =
                empty($widget["vars"]["last_news_category_id"])?1:$widget["vars"]["last_news_category_id"];
                $last_news_limit=4;
                try{
             ?>
            <portal:articlesI18n limit="$last_news_limit" order="post.published_time DESC"
                                 relation="categories"
                             categoryIds="$widget.vars.last_news_category_id">
                <?php 
                    $_m_category_id=0;
                    $_m_categories=$vo['categories'];
                    if(!empty($_m_categories[0])){
                    $_m_category_id=$_m_categories[0]['id'];
                    }
                 ?>
                <div class="col-md-3">
                    <div class="tc-gridbox">
                        <div class="header">
                            <div class="item-image">
                                <a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['post_id'],'cid'=>$_m_category_id)); ?>">
                                    <?php if(isset($vo['more']['thumbnail'])): if(empty($vo['more']['thumbnail']) || (($vo['more']['thumbnail'] instanceof \think\Collection || $vo['more']['thumbnail'] instanceof \think\Paginator ) && $vo['more']['thumbnail']->isEmpty())): ?>
                                            <img src="/themes/default/public/assets/images/default-thumbnail.png"
                                                 class="img-responsive"
                                                 alt="">
                                            <?php else: ?>
                                            <img src="<?php echo cmf_get_image_url($vo['more']['thumbnail']); ?>"
                                                 class="img-responsive"
                                                 alt="">
                                        <?php endif; else: ?>
                                        <img src="/themes/default/public/assets/images/default-thumbnail.png"
                                             class="img-responsive"
                                             alt="">
                                    <?php endif; ?>
                                </a>
                            </div>
                            <h3>
                                <a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['post_id'],'cid'=>$_m_category_id)); ?>"><?php echo $vo['post_title']; ?></a>
                            </h3>
                        </div>
                    </div>
                </div>
            </portal:articlesI18n>
            <?php }catch(\Exception $e){
                echo $e->getTraceAsString();
                echo $e->getMessage(); ?>
            <div class="alert alert-danger" role="alert">
                此组件运行发生错误,请检查是否设置正确或已在后台应用中心安装门户应用!<br>
                <?php echo lang('您也可以隐藏此组件!'); ?>
            </div>
            <?php } ?>
        </div>
    </div>


</div><?php 
$widget= $theme_widgets_blocks['body']['widgets']['home_last_news_202206300004'];
if(!empty($widget['public_widget_id']) && isset($theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']])){
   $widget= $theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']];   
}
$_theme_file_id='3';
$_widget_id='home_last_news_202206300004';
?>
<div class="__cmf_widget_in_block" style="<?php if(isset($widget['css'])){    foreach($widget['css'] as $cssAttrName=>$cssValue){        if($cssValue!=0){           echo $cssAttrName.':'.$cssValue.';';        }    }}?>">

    <div class="container">
        <div>
            <h2 class="text-center"><?php echo $widget['title']; ?></h2>
        </div>
        <div class="row">
            <?php 
                $widget["vars"]["last_news_category_id"] =
                empty($widget["vars"]["last_news_category_id"])?1:$widget["vars"]["last_news_category_id"];
                $last_news_limit=4;
                try{
             ?>
            <portal:articlesI18n limit="$last_news_limit" order="post.published_time DESC"
                                 relation="categories"
                             categoryIds="$widget.vars.last_news_category_id">
                <?php 
                    $_m_category_id=0;
                    $_m_categories=$vo['categories'];
                    if(!empty($_m_categories[0])){
                    $_m_category_id=$_m_categories[0]['id'];
                    }
                 ?>
                <div class="col-md-3">
                    <div class="tc-gridbox">
                        <div class="header">
                            <div class="item-image">
                                <a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['post_id'],'cid'=>$_m_category_id)); ?>">
                                    <?php if(isset($vo['more']['thumbnail'])): if(empty($vo['more']['thumbnail']) || (($vo['more']['thumbnail'] instanceof \think\Collection || $vo['more']['thumbnail'] instanceof \think\Paginator ) && $vo['more']['thumbnail']->isEmpty())): ?>
                                            <img src="/themes/default/public/assets/images/default-thumbnail.png"
                                                 class="img-responsive"
                                                 alt="">
                                            <?php else: ?>
                                            <img src="<?php echo cmf_get_image_url($vo['more']['thumbnail']); ?>"
                                                 class="img-responsive"
                                                 alt="">
                                        <?php endif; else: ?>
                                        <img src="/themes/default/public/assets/images/default-thumbnail.png"
                                             class="img-responsive"
                                             alt="">
                                    <?php endif; ?>
                                </a>
                            </div>
                            <h3>
                                <a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['post_id'],'cid'=>$_m_category_id)); ?>"><?php echo $vo['post_title']; ?></a>
                            </h3>
                        </div>
                    </div>
                </div>
            </portal:articlesI18n>
            <?php }catch(\Exception $e){
                echo $e->getTraceAsString();
                echo $e->getMessage(); ?>
            <div class="alert alert-danger" role="alert">
                此组件运行发生错误,请检查是否设置正确或已在后台应用中心安装门户应用!<br>
                <?php echo lang('您也可以隐藏此组件!'); ?>
            </div>
            <?php } ?>
        </div>
    </div>


</div>
</div>
<div class="container g-0">
    <div class="row g-0">
        <div class="col-md-9">
            
        </div>
        <div class="col-md-3">
            
        </div>
    </div>
</div>
<div >
<?php 
$widget= $theme_widgets_blocks['footer']['widgets']['home_footer_202206300003'];
if(!empty($widget['public_widget_id']) && isset($theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']])){
   $widget= $theme_widgets_blocks['public']['widgets'][$widget['public_widget_id']];   
}
$_theme_file_id='3';
$_widget_id='home_footer_202206300003';
?>
<div class="__cmf_widget_in_block" style="<?php if(isset($widget['css'])){    foreach($widget['css'] as $cssAttrName=>$cssValue){        if($cssValue!=0){           echo $cssAttrName.':'.$cssValue.';';        }    }}?>">

    <div class="container">
        <br>
        <!-- Footer ================================================== -->
        <hr>
        <div id="footer">
            <?php 
    hook('footer_start',null,false);
 ?>
            <div class="links">
                <?php
     $__LINKS__ = \app\admin\service\ApiService::links();
if(is_array($__LINKS__) || $__LINKS__ instanceof \think\Collection || $__LINKS__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LINKS__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                    <a href="<?php echo (isset($vo['url']) && ($vo['url'] !== '')?$vo['url']:''); ?>" target="<?php echo (isset($vo['target']) && ($vo['target'] !== '')?$vo['target']:''); ?>"><?php echo (isset($vo['name']) && ($vo['name'] !== '')?$vo['name']:''); ?></a>&nbsp;
                
<?php endforeach; endif; else: echo "" ;endif; ?>

            </div>
            <p>
                Made by <a href="http://www.thinkcmf.com" target="_blank">ThinkCMF</a>
                Code licensed under the
                <a href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow" target="_blank">Apache License
                    v2.0</a>.
                <br/>
                Based on
                <a href="http://getbootstrap.com/" target="_blank">Bootstrap</a>.
                Icons from
                <a href="http://fortawesome.github.com/Font-Awesome/" target="_blank">Font Awesome</a>
                <br>
                <?php if(!(empty($site_info['site_icp']) || (($site_info['site_icp'] instanceof \think\Collection || $site_info['site_icp'] instanceof \think\Paginator ) && $site_info['site_icp']->isEmpty()))): ?>
                    <a href="https://beian.miit.gov.cn/" target="_blank"><?php echo $site_info['site_icp']; ?></a>
                    <?php else: ?>
                    请在后台设置"网站信息"设置"ICP备"
                <?php endif; if(!(empty($site_info['site_gwa']) || (($site_info['site_gwa'] instanceof \think\Collection || $site_info['site_gwa'] instanceof \think\Paginator ) && $site_info['site_gwa']->isEmpty()))): ?>
                    <img src="/themes/default/public/assets/images/ghs.png">
                    <a href="http://beian.gov.cn/" target="_blank"><?php echo $site_info['site_gwa']; ?></a>
                    <?php else: ?>
                    请在后台设置"网站信息"设置"公安网备"
                <?php endif; ?>
            </p>
        </div>
        <div id="backtotop">
            <i class="fa fa-arrow-circle-up"></i>
        </div>
    </div>

</div>
</div>
<!-- Le javascript
    ================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/themes/default/public/assets/bootstrap5/js/popper.min.js"></script>
<script src="/themes/default/public/assets/bootstrap5/js/bootstrap.min.js"></script>
<script src="/static/js/frontend.js"></script>
<script>
    $(function () {
        $("#main-menu li.dropdown").hover(function () {
            $(this).addClass("open");
        }, function () {
            $(this).removeClass("open");
        });

        $("#main-menu a").each(function () {
            if ($(this)[0].href == String(window.location)) {
                $(this).parentsUntil("#main-menu>ul>li").addClass("active");
            }
        });

        $.post("<?php echo url('user/index/isLogin'); ?>", {}, function (data) {
            if (data.code == 1) {
                if (data.data.user.avatar) {
                }

                $("#main-menu-user span.user-nickname").text(data.data.user.user_nickname ? data.data.user.user_nickname : data.data.user.user_login);
                $("#main-menu-user li.login").show();
                $("#main-menu-user li.offline").hide();

            }

            if (data.code == 0) {
                $("#main-menu-user li.login").hide();
                $("#main-menu-user li.offline").show();
            }

        });

        ;(function ($) {
            $.fn.totop = function (opt) {
                var scrolling = false;
                return this.each(function () {
                    var $this = $(this);
                    $(window).scroll(function () {
                        if (!scrolling) {
                            var sd = $(window).scrollTop();
                            if (sd > 100) {
                                $this.fadeIn();
                            } else {
                                $this.fadeOut();
                            }
                        }
                    });

                    $this.click(function () {
                        scrolling = true;
                        $('html, body').animate({
                            scrollTop: 0
                        }, 500, function () {
                            scrolling = false;
                            $this.fadeOut();
                        });
                    });
                });
            };
        })(jQuery);

        $("#backtotop").totop();


    });
</script>


<!--
引入控件外部JS
注意请使用js标签
可以保证此控件在同页面多次使用时,只加载一次JS文件
-->
<?php
if(!isset($_theme_js_src_list)){
    $_theme_js_src_list=[];
}
if(!isset($_theme_js_src_list['/themes/default/public/assets/js/slippry.min.js'])){
    $_theme_js_src_list['/themes/default/public/assets/js/slippry.min.js']='/themes/default/public/assets/js/slippry.min.js';
?>
<script src="<?php echo '/themes/default/public/assets/js/slippry.min.js';?>"></script>
<?php
}
?>
<!--
控件JS
注意请勿使用ID选择,
要此控件在同页面多次引用时,JS代码的通用性
-->
<script>
    $(function () {
        $(".slider").slippry({
            transition: 'fade',
            useCSS: true,
            captions: false,
            speed: 1000,
            pause: 3000,
            auto: true,
            preload: 'visible'
        });
        $(".slider").show();
    });
</script>
</body>
</html>