*/
public function write($cacheFile, $content)
{
// 检测模板目录
$dir = dirname($cacheFile);
if (!is_dir($dir)) {
mkdir($dir, 0755, true);
}
// 生成模板缓存文件
if (false === file_put_contents($cacheFile, $content)) {
throw new Exception('cache write error:' . $cacheFile, 11602);
}
}
/**
* 读取编译编译
* @param string $cacheFile 缓存的文件名
* @param array $vars 变量数组
* @return void
cacheFile | /usr/home/hyu2460840001/htdocs/data/runtime/temp/4bd07269730f166342fcc716560a44ed.php |
content | <?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:43:"public/themes/haiwaiguahao/portal/news.html";i:1513065674;s:49:"public/themes/haiwaiguahao/portal/public/nav.html";i:1511950028;s:52:"public/themes/haiwaiguahao/portal/public/footer.html";i:1582537097;}*/ ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title><?php echo $nav_menu_info['name']; ?>-海外挂号网</title> <meta name="keywords" content=""> <meta name="description" content=""> <!-- 字体本身的 S--> <!--<script type="text/javascript" src="http://cdn.webfont.youziku.com/wwwroot/__TMPL__/portal/assets/js/wf/youziku.api.min.js"></script>--> <!--<script type="text/javascript">--> <!--$youziku.load("body", "410437052faa476eb415ba2486be949e", "Source-Han-Sans-Medium");--> <!--/*$youziku.load("#id1,.class1,h1", "410437052faa476eb415ba2486be949e", "Source-Han-Sans-Medium");*/--> <!--/*...*/--> <!--$youziku.draw();--> <!--</script>--> <!-- 字体本身的 E--> <!--[if lte IE 8]><script src="__TMPL__/portal/assets/js/libs/selectivizr.js"></script><![endif]--> <!--[if lt IE 9]> <script src="__TMPL__/portal/assets/js/libs/html5shiv.js"></script> <![endif]--> <link rel="stylesheet" href="__TMPL__/portal/assets/css/jquery.page.css" /> <link rel="stylesheet" href="__TMPL__/portal/assets/css/style.css" /> <script src="__TMPL__/portal/assets/js/jquery-1.10.2.min.js"></script> </head> <body> <header class="w_con header"> <div class="logo"> <a href="/"> <img src="__TMPL__/portal/assets/img/logo.png" alt="" /> </a> <span>专业、透明、便捷的跨境医疗一站式直订平台</span> </div> <div class="hotline"> <p><i class="icon icon_phone"></i>免费咨询热线<em><?php echo $site_contact['hotline']; ?></em></p> </div> <i class="icon_nav js_nav"></i> </header> <section class="navBox bg18 js_navBox"> <nav class="nav w_con"> <ul class="ul1"> <?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if((input('nid') == $vo['id'])): ?> <li class="li1 current"> <?php else: ?> <li class="li1"> <?php endif; ?> <a href="<?php echo $vo['href']; ?>"><?php echo $vo['name']; ?></a> <?php if($vo['children']): ?> <ul> <?php if(is_array($vo['children']) || $vo['children'] instanceof \think\Collection || $vo['children'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['children'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cvo): $mod = ($i % 2 );++$i;?> <li><a href="<?php echo $cvo['href']; ?>"><?php echo $cvo['name']; ?></a></li> <?php endforeach; endif; else: echo "" ;endif; ?> </ul> <?php endif; ?> </li> <?php endforeach; endif; else: echo "" ;endif; ?> </ul> </nav> </section> <script> $(function () { $(".js_navBox").find(".li1").each(function(index, element){ if( $(element).find("ul").length>0 ){ $(element).on("mouseover", function(){ $(this).find("ul").css("display","block"); }).on("mouseout", function(){ $(this).find("ul").css("display","none"); }); } }); }) </script> <section class="ban_img"> <?php if(is_array($banner) || $banner instanceof \think\Collection || $banner instanceof \think\Paginator): $i = 0; $__LIST__ = $banner;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <img src="<?php echo cmf_get_image_url($vo['image']); ?>" alt="<?php echo $vo['title']; ?>" /> <?php endforeach; endif; else: echo "" ;endif; ?> </section> <div class="bgf4"> <div class="breadline w_con"> <p><i class="icon icon_map_dd"></i>当前位置:<a href="index.html">首页</a> > <a href="" class="on" id="bra-type"><?php echo $category_info['name']; ?></a></p> </div> <div class="sec8 w_con js_sec8"> <ul> <?php if(is_array($data['data']) || $data['data'] instanceof \think\Collection || $data['data'] instanceof \think\Paginator): $i = 0; $__LIST__ = $data['data'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <li> <a href="<?php echo url('portal/article/index', array('nid' => input('param.nid'), 'pid' => input('param.pid'),'cid' => $vo['category_id'], 'id' => $vo['id'])); ?>"> <div class="img"><img src="<?php echo cmf_get_image_url($vo['more']['thumbnail']); ?>" /></div> <div class="txt"> <h3 class="tit"><?php echo $vo['post_title']; ?></h3> <div><?php echo $vo['post_content']; ?></div> <p class="time"></p> </div><i class="link_more4"></i></a></li> <?php endforeach; endif; else: echo "" ;endif; ?> </ul> </div> <section class="page_wrap js_page_wrap"> <div class="js_page"> <ul class="pagination"> <?php echo $data['pagination']; ?> </ul> </div> </section> </div> <script type="text/javascript" src="__TMPL__/portal/assets/js/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="__TMPL__/portal/assets/js/libs/jquery.page.js"></script> <script src="__TMPL__/portal/assets/js/com.js"></script> <footer class="footer"> <div class="footer_con"> <?php if(isset($links)): ?> <p class="frendly_link js_frendly"> 友情链接 <?php 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;?> <span><a href='<?php echo $vo['url']; ?>'><?php echo $vo['description']; ?></a></span> <?php endforeach; endif; else: echo "" ;endif; ?> </p> <?php endif; ?> <div class="footer_c"> <div class="footer_logo"> <a href="/"> <img src="__TMPL__/portal/assets/img/footer_logo.png" alt="" /> </a> </div> <div class="concact"> <p class="tit">联系我们</p> <p>联系人: <span class="js_cact_p"><?php echo $site_contact['name']; ?></span></p> <p>手机: <span class="js_cact_tel"><?php echo $site_contact['mobile']; ?></span></p> <p>服务热线: <span class="js_cact_line"><?php echo $site_contact['hotline']; ?></span></p> <p>邮箱: <span class="js_cact_email"><?php echo $site_contact['email']; ?></span></p> <p>地址: <span class="js_cact_address"><?php echo $site_contact['address']; ?></span></p> </div> <div class="q_er"> <img src="__TMPL__/portal/assets/img/wsc.png" alt="" class="js_dyh" style="width:174px;height:174px;"/> <p>官方微商城</p> </div> <div class="q_er" style="margin-right: 20px;"> <img src="__TMPL__/portal/assets/img/er_dyh.jpg" alt="" class="js_dyh"/> <p>官方订阅号</p> </div> </div> <!-- <center><a href="http://218.242.124.22:8081/businessCheck/verifKey.do?showType=extShow&serial=9031000020160803152149000001111290-SAIC_SHOW_310000-20190403170333648309&signData=MEQCIEGoR5Ev6R9jX0sVOTp3M3iy0X+GuEpH5tTFYqqv9dajAiACVadTorjI7gn7D9nOzhI7s6SZ0smohXI21Zz5RliVtg==" target="_blank"><img src="__TMPL__/portal/assets/img/1.jpg" alt="" class="js_dyh"/></a></center> --> <center><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31010602005254" target="_blank"><img src="/data/runtime/1.png" alt="" class="js_dyh"/></a></center> <p class="copyright">创习(上海)商务咨询有限公司备案查询 <a target="_blank" href="http://www.beian.miit.gov.cn">沪ICP备16009624号-1</a></p> </div> </footer> </body> </html> |
dir | /usr/home/hyu2460840001/htdocs/data/runtime/temp |