123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- {eyou:assign name='page' value='article-detail' /}
- {eyou:php}
- $route_param = request()->route();
- $tid = $route_param['tid']?(int)$route_param['tid']:0;
- //var_dump($route_param);
-
- $number = $route_param['aid'];
-
- //处理域名获取当前域名名称
- $route_domain = request()->domain();
- $domain = explode('//',$route_domain);
- $domain = explode('.',$domain[1]);
- $site = $domain[0];
- //var_dump($site);
- if(!empty($site) || $site != 'zc' || $site != 'www'){
- //判定为二级域名
- }else{
- $site = 'www';
- }
-
- //处理城市参数
- if(!empty($route_param['site'])){
- $city_domain = $route_param['site'];
- }else{
- $city_domain = 'none';
- }
- {/eyou:php}
-
- {eyou:sql sql="select * from ey_citysite where domain='$site'" cachetime='3600' id='res'}
- <!--获取到省份ID-->
- {eyou:assign name='provid' value="$res.id" /}
- {eyou:assign name='provid_name' value="$res.name" /}
- {/eyou:sql}
-
- {eyou:sql sql="select * from ey_citysite where domain='$city_domain'" cachetime='3600' id='res'}
- <!--获取到市级ID-->
- {eyou:assign name='cityid' value="$res.id" /}
- {eyou:assign name='cityid_name' value="$res.name" /}
- {/eyou:sql}
-
- <?php
- //判断tid
- /*
- * T:职称论文模板_(抓取文章标题)
- K:抓取文章标题,职称论文
- D:抓取文章摘要的前70个字符
- */
- function strip_tags_and_substr($string, $length = 70) {
- // 去除HTML标签
- $withoutTags = strip_tags($string);
- // 截取指定长度的字符串
- $result = mb_substr($withoutTags, 0, $length);
- return $result;
- }
-
- //默认值
- $seo_title = $eyou['field']['seo_title'];
- $key_keywords = $eyou['field']['seo_keywords'];
- $desc_ription = $eyou['field']['seo_description'];
-
- //var_dump($eyou['field']['typeid']);
- //var_dump($eyou["field"]["seo_title"]);
- //var_dump($eyou["field"]["aid"]);
- ?>
-
- {eyou:if condition='((int)$eyou.field.typeid === 127 && empty($eyou["field"]["seo_title"]))'}
- {eyou:php}
- //如果是职称论文参考
- $seo_title = '职称论文模板_'.$eyou['field']['title'];
- $key_keywords = $eyou['field']['title'].",职称论文";
- $content_sql = $eyou['field']['content_5'];
- //处理字符串
- $processedString = strip_tags_and_substr($content_sql, 70);
- $desc_ription = $processedString;
- {/eyou:php}
- {eyou:else /}
-
-
- {eyou:if condition='(empty($eyou["field"]["seo_title"]))'}
- {eyou:php}
- //如果是其他栏目文章 且 默认seo为空
- //评审攻略 //职称答辩 //职称补贴 //职称评审常见问题 //职称评审政策资讯
- $seo_title = $eyou['field']['title'];
- $key_keywords = $eyou['field']['title'];
- $content_sql = $eyou['field']['content_5'];
- //处理字符串
- $processedString = strip_tags_and_substr($content_sql, 70);
- $desc_ription = $processedString;
- {/eyou:php}
- {/eyou:if}
-
- {/eyou:if}
-
-
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
-
-
- <title>{$seo_title}</title>
- <meta name="keywords" content="{$key_keywords}">
- <meta name="description" content="{$desc_ription}">
-
-
- <link rel="stylesheet" href="https://oss.zc10000.com/static/plug/layui/css/layui.css?v=<?php echo rand(1,100000); ?>" media="all">
- <link rel="stylesheet" href="/template/mobile/css/common.css?v=<?php echo rand(1,100000); ?>" media="all">
- <!--后续修改样式 在extend.css?v=<?php echo rand(1,100000); ?> 补充叠加 不修改原来的样式文件-->
- <link rel="stylesheet" href="/template/mobile/css/extend.css?v=<?php echo rand(1,100000); ?>" media="all">
- <script src="https://oss.zc10000.com/static/plug/layui/layui.js"></script>
- <script>
- layui.config({
- version: '1632428048355' //为了更新 js 缓存,可忽略
- });
- </script>
- </head>
- <body>
-
- {eyou:include file='/template/mobile/common/background.htm' /}
-
- <div id="header">
- {eyou:include file='/template/mobile/common/header.htm' /}
- </div>
-
- <!--复制 copy/article.htm 页面名称: 文章详情页-->
- <div id="article-detail">
- <link rel="stylesheet" href="/template/mobile/css/article.css?v=<?php echo rand(1,100000); ?>" media="all">
- {eyou:include file='/template/mobile/components/nav/style_1.htm' /}
- {eyou:include file='/template/mobile/components/flow/style_1.htm' /}
-
- <div class="content">
- <div class="box">
- <div class="box-left">
- <?php
- $title="";
- ?>
- {eyou:include file='/template/mobile/components/detail/style_3.htm' /}
- </div>
- <div class="box-right">
- <?php
- /*$title = "职称政策资讯";
- $cat_id = '115';
- $son_id = '115';
- $con = 1;
- $ty = "right";*/
- //var_dump($page);
- /*
- * eyou:include file='/template/mobile/components/list/style_4.htm'
- */
- $title = "热门标签";
- ?>
- {eyou:sql sql='select * from ey_arctype where article_id=$tid limit 0,1' cachetime='3600' empty='' id="tag_list"}
- {eyou:php}
- $cat_id_tag = $tag_list['id'];
- {/eyou:php}
- {/eyou:sql}
-
- <?php
- if(empty($cat_id_tag)){
- $cat_id_tag = 371;
- }
- ?>
- {eyou:include file='/template/mobile/components/tag/style_2.htm' /}
-
- <?php
- $title = "职称评审攻略";
- $cat_id = '117';
- $son_id = '117';
- $con = 2;
- $ty = "right";
- //var_dump($page);
- ?>
- {eyou:include file='/template/mobile/components/list/style_4.htm' /}
-
- <?php
- $title = '快速评审客服';
- $kefu_id = '15';
- $con = 1;
- $is_kefu = 1;
- ?>
- {eyou:include file='/template/mobile/components/text/style_4.htm' /}
-
- <?php
- $title = '职称论文发表客服';
- $kefu_id = '23';
- $con = 2;
- $is_kefu = 1;
- ?>
- {eyou:include file='/template/mobile/components/text/style_4.htm' /}
-
- <?php
- $title = '职称专利申请客服';
- $kefu_id = '24';
- $con = 3;
- $is_kefu = 1;
- ?>
- {eyou:include file='/template/mobile/components/text/style_4.htm' /}
- </div>
- </div>
- </div>
-
- <!--职称评审工具包-->
- {eyou:include file='/template/mobile/components/list/style_6.htm' /}
- </div>
-
- <div id="footer">
- {eyou:include file='/template/mobile/common/footer.htm' /}
- </div>
-
- {eyou:include file='/template/mobile/common/common_bot.htm' /}
- {eyou:include file='/template/mobile/common/button.htm' /}
|