模版标签示例

通用数据

html 复制代码
{$website_dictionary.CONTACT_PHONE}
{$website_dictionary.CONTACT_TEL}
{$website_dictionary.CONTACT_400}
{$website_dictionary.CONTACT_ADDRESS}

头部菜单 header.html

html 复制代码
{notempty name="menu"}
	<!-- 一级 -->
	{volist name='menu' id='item_menu' key='key_menu'}
	{notempty name="item_menu.childs"}
		{$item_menu.current}
		{$item_menu.url}
		{$item_menu.title}
		<!-- 二级 -->
		{volist name='item_menu.childs' id='item_subnav'}
			{$item_subnav.url}
			{$item_subnav.title}
		{/volist}
	{else/}
		{$item_menu.title}				
	{/notempty}
	{/volist}                      
{/notempty}

公共CSS common-header.html

html 复制代码
<head>
	<meta charset="utf-8">
	<meta http-equiv="x-ua-compatible" content="ie=edge">
	<title>(自适应手机版)响应式室内家居设计英文外贸网站模板</title>
	<meta name="keywords" content="外贸网站模板,家居设计网站模板">
	<meta name="description" content="(自适应手机版)响应式室内家居设计英文外贸网站模板">
	<meta name="author" content="www.adminbuy.cn K575">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<link rel="stylesheet" href="/static/home/css/bootstrap.min.css">
	<link rel="stylesheet" href="/static/home/css/fontawesome.css">
	<link rel="stylesheet" href="/static/home/css/pbminfotech-base-icons.css">
	<link rel="stylesheet" href="/static/home/css/shortcode.css">
	<link rel="stylesheet" href="/static/home/css/swiper.min.css">
	<link rel="stylesheet" href="/static/home/css/base.css">
	<link rel="stylesheet" href="/static/home/css/style.css">
	<link rel="stylesheet" href="/static/home/css/responsive.css">
</head>

公共JS common-foot.html

html 复制代码
<script src="/static/home/js/jquery.min.js"></script> 
<script src="/static/home/js/bootstrap.min.js"></script> 
<script src="/static/home/js/numinate.min.js"></script> 
<script src="/static/home/js/swiper.min.js"></script> 
<script src="/static/home/js/jquery.waypoints.min.js"></script> 
<script src="/static/home/js/aos.js"></script> 
<script src="/static/home/js/scripts.js"></script>

底部菜单 footer.html

html 复制代码
{notempty name="footer_menu"}
	{volist name="footer_menu" id="item_footer_menu" key="key_footer_menu"}
	{if condition="$item_footer_menu.title !== 'icon'"}
		{$item_footer_menu.title}
		{notempty name="item_footer_menu.childs"}
			{volist name="item_footer_menu.childs" id="footer_subnav"}
				{$footer_subnav.title}
			{/volist}
		{/notempty}
	{/if}
	<!-- 图片 -->
	{if condition="$item_footer_menu.title === 'icon'"}
		{$item_footer_menu.icon}
	{/if}
	{/volist}
{/notempty}

友情链接 footer.html

html 复制代码
{notempty name="ilink"}
	{volist name="ilink" id="item_link"}
		{$item_link.title}
		{$item_link.url}
		{$item_link.image}
	{/volist}
{/notempty}

面包屑导航 common-breadcrumb.html

html 复制代码
{notempty name="current_path_data"}
	{volist name='current_path_data' id='item_current' key='key_current'}
		{$item_current.title}
	{/volist}
{/notempty}

首页轮播

html 复制代码
{volist name='ibanner' id='item_ibanner'}
	{$item_ibanner.image}
	{$item_ibanner.content|raw}
	{$item_ibanner.url}
{/volist}

首页 about

html 复制代码
{notempty name="index_about"}
	{$index_about.image}
	{$index_about.title}
	{$index_about.content|raw}
{/notempty}

首页 案例

html 复制代码
{notempty name="index_case"}
	{volist name='index_case' id='item_icase'}
	{$item_icase.title}
	{$item_icase.title_short}
	{/volist}
{/notempty}

首页 产品

html 复制代码
{notempty name="index_product"}
	<!-- 分类列表 -->
	{volist name="index_product" id="item_iproduct"}
		{$item_iproduct.cat_name}
	{/volist}
	<!-- 产品列表 -->
	{volist name="index_product" id="item_iproduct"}
		{$item_iproduct.cat_name}
		{$item_iproduct.title}
	{/volist}
{/notempty}

首页 新闻

html 复制代码
{notempty name="index_article"}
	{volist name="index_article" id="item_iarticle"}
	{$item_iarticle.day}
	{$item_iarticle.author}
	{$item_iarticle.title}
	{/volist}
	<!-- 精选推荐 -->
	{notempty name="good_article"}
		{volist name="good_article" id="item_garticle"}
			{$item_garticle.day}
			{$item_garticle.author}
			{$item_garticle.title}
			{$item_garticle.summary}
		{/volist}
	{/notempty}
{/notempty}

首页 新闻点击进入详情

html 复制代码
{notempty name="$article_data.tag_data"}
{volist name="$article_data.tag_data" id="item_tag"}
	{$article_data.title}
	{$article_data.cat_name}
	{$article_data.send_time}
	{$article_data.time}
	{$article_data.author}
	{$article_data.content|raw}

	<!--上一页-->
	{notempty name="$article_data.prev_article"}
		{$article_data.prev_article.title}
	{else}
	<span class="pbmit-post-nav nav-title">no more</span>
	{/notempty}
	
	<!--下一页-->
	{notempty name="$article_data.next_article"}
		{$article_data.next_article.title}
	{else}
	<span class="pbmit-post-nav nav-title">no more</span>
	{/notempty}
{/volist}
{/notempty}

<!--新闻侧边导航-分类-->
{notempty name="menu"}
{volist name="menu" id="item_nav" key="key_nav"}
	{notempty name="item_nav.childs"}
	{volist name="item_nav.childs" id="item_subnav"}
	{if condition="$item_subnav.model eq 4"}
	 {$item_subnav.title}
	{/if}
	{/volist}
	{/notempty}
{/volist}
{/notempty}

<!--新闻侧边导航-最近发布-->
{notempty name="recent_article"}
{volist name="recent_article" id="item_recent"}
	{$item_recent.day}
	{$item_recent.summary}
{/volist}
{/notempty}

头部菜单 - 关于我们 - 二级菜单页面

1、banner图

html 复制代码
{$seo_banner_image}
相关推荐
东华帝君1 天前
React源码解读
前端
Mintopia1 天前
🌱 AIGC 技术的轻量化趋势:Web 端“小而美”模型的崛起
前端·javascript·aigc
开发者小天1 天前
React中的useRef的用法
开发语言·前端·javascript·react.js
im_AMBER1 天前
React 11 登录页项目框架搭建
前端·学习·react.js·前端框架
Live&&learn1 天前
nvm切换node版本时,npm不跟着切换解决
前端·npm·node.js
xixixin_1 天前
【React】检测元素是否出现在用户视窗内
开发语言·前端·javascript·react.js
谢彦超oooo1 天前
HTML5 与前端开发要点
前端·html·html5
IT_陈寒1 天前
Vue 3响应式原理深度拆解:5个90%开发者不知道的Ref与Reactive底层实现差异
前端·人工智能·后端
睡前要喝豆奶粉1 天前
在.NET Core Web Api中使用JWT并配置UserContext获取用户信息
前端·.netcore
前端加油站1 天前
一份实用的Vue3技术栈代码评审指南
前端·vue.js