Hongmu Notes
Home Program Notes Apple cms template structure
Program Notes Apple cms

Apple cms template structure

Apple cms template structure

template structure

All template theme packages of Apple CMS are required to be placed in the template directory

tip
The standard directory structure must be strictly adhered to when creating templates, otherwise front-end access will cause exceptions, except for custom code blocks.

========模板结构=======
  │─template/1/  模板1
  │  ├─info.ini  模板信息文件
  │  ├─ads   广告文件目录
  │  ├─js    js文件
  │  ├─css   css文件
  │  ├─images   图片文件
  │  └─html     模板文件目录
  │      └─art     文章模块模板目录
  │      └─comment  评论模块模板目录
  │      └─gbook    留言本模块模板目录
  │      └─index    首页模块模板目录
  │      └─label    自定义页面模块模板目录
  │      └─map      地图页模块模板目录
  │      └─public   公共页面模板目录
  │      └─rss      RSS和sitemap模板目录
  │      └─topic    专题模块模板目录
  │      └─user     用户中心模块模板目录
  │      └─vod      视频模块模板目录
  │      └─plot     分集剧情模块模板目录
  │      └─website  网址导航模块模板目录
  │─tempalte/2/  模板2
  │─...
  │─template/n/  模板N

info.ini introduction

It contains a brief introduction to template files and the settings of the adsdir advertising file storage directory. The default advertising directory is ads.

Template html directory

html
 └─public
 │   │─include.html    全站公共引入文件 引入js、css样式,还有系统JS变量
 │   │─head.html       全站头部
 │   │─foot.html       全站尾部
 │   │─jump.html       跳转提示页模板     
 │   │─msg.html        错误提示页模板
 │   │─paging.html     分页样式模板
 │   │─digg.html       顶踩样式模板
 │   │─score.html      普通评分样式模板
 │   │─star.html       星星评分样式模板
 │   │─verify.html     搜索验证模板
 └─comment
 │   │─index.html     评论页
 │   │─ajax.html      评论页
 └─book
 │   │─index.html       留言本
 │   │─report.html      报错页面
 └─index/index.html     首页
 └─map
 │   │─rss.html    rss
 │   │─baidu.html   百度sitemap
 │   │─google.html  谷歌sitemap
 └─topic
 │   │─index.html   专题首页
 │   │─detail.html  专题详情页
 └─art
 │   │─index.html   专题首页
 │   │─confirm.html     确认支付积分页面
 │   │─detail.html      文章内容页
 │   │─detail_pwd.html      验证密码页
 │   │─rss.html         文章内容rss
 │   │─search.html      文章搜索页
 │   │─type.html        文章分类页
 │   │─show.html        文章分类筛选页
 └─vod
 │   │─confirm.html     确认支付积分页面
 │   │─copyright.html      版权提示和跳转
 │   │─detail.html      视频内容页
 │   │─detail_pwd.html      验证密码页
 │   │─rss.html         视频内容rss
 │   │─play.html        视频播放页
 │   │─player.html      试看页面播放页
 │   │─player_pwd.html      验证密码页
 │   │─down.html        视频下载页
 │   │─downer_pwd.html      验证密码页
 │   │─search.html      视频搜索页面
 │   │─type.html        视频分类页面
 │   │─show.html        视频分类筛选页
 │   │─plot.html        视频分集剧情列表
 └─user
 │   │─ajax_info.html   用户弹出层登录详情
 │   │─ajax_login.html  用户弹出层登录界面
 │   │─buy.html         用户中心-在线充值
 │   │─cards.html       用户中心-充值卡记录
 │   │─cash.html       用户中心-提现记录
 │   │─downs.html       用户中心-下载记录
 │   │─favs.html        用户中心-收藏记录
 │   │─findpass.html    用户中心-找回密码
 │   │─findpass_msg.html    用户中心-找回密码提示信息
 │   │─foot.html        用户中心-公共底部
 │   │─head.html        用户中心-公共头部
 │   │─include.html     用户中心-公共引入文件
 │   │─index.html       用户中心-首页
 │   │─info.html        用户中心-个人详情
 │   │─login.html       用户中心-登录页
 │   │─orders.html      用户中心-在线充值记录
 │   │─pay.html         用户中心-支付页
 │   │─payment_weixin.html         用户中心-支付微信二维码
 │   │─plays.html       用户中心-点播记录
 │   │─popedom.html     用户中心-权限列表
 │   │─reg.html         用户中心-注册
 │   │─reward.html     用户中心-分销记录
 │   │─upgrade.html     用户中心-会员升级
 └─plot
 │   │─uindex.html        分集剧情首页
 │   │─udetail.html       分集剧情详情页
 └─actor
 │   │─index.html        演员首页
 │   │─detail.html       演员详情页
 │   │─search.html       演员网址搜索页
 │   │─show.html       演员筛选页
 │   │─type.html       演员分类页
 └─role
 │   │─index.html        角色首页
 │   │─detail.html       角色详情页
 │   │─show.html         角色筛选页
 └─website
 │   │─index.html        网址导航首页
 │   │─detail.html       网址详情页
 │   │─search.html       网址搜索页
 │   │─show.html       网址筛选页
 │   │─type.html       网址分类页
微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Apple cms commonly used processing functions

Apple cms commonly used processing functions Program Notes Apple cms

Multiple functions are allowed, separated by | {:mac_data_count(0,'all','vod')} Get the total number of videos {:mac_data_count(0,'today','vod')} Get the total number of updated videos today {:mac_data_count(0,'all','art')} Get the total number of articles {:ma…
👁 261

Recommended reading

Resource website typecho001 template

Resource website typecho001 template Program Notes Typecho

typecho001 template template please do not modify the folder name of this template. The folder name is: typecho001 1.4 Fix the js output problem on the article page 1.3 Fix the error prompt when the plug-in is not installed Optimize the list page code output 1.2 Fix the comment function and add a custom homepage title 1.1 Fix the comment reply asymmetry function Add a separate title setting function on the homepage Add the website favicon.ico icon Add one...
👁 198
Modification of typecho paging style

Modification of typecho paging style Program Notes Typecho

Sir, times have changed! Typecho is currently the most perfect solution, because Baidu can only see the code of fixed thinking. The actual generated HTML code is breathtakingly clean and fully customized, including adding classes to the li element, adding classes to the a element, adding classes to the previous page and next page, and removing the li tags that come with typecho to express more. I can even add some text to the content inside...
👁 517
Typecho article page comment style modification

Typecho article page comment style modification Program Notes Typecho

When you need to use typecho for template development, the default comment style is ugly. Therefore, comments need to be re-output or styled. The default comment template file path is: comments.php Mainly used related variables<?php $comments->gravatar('40', ''); ?> //Avatar has two parameters, size,...
👁 388
Typecho's API for adding, deleting, modifying and querying databases

Typecho's API for adding, deleting, modifying and querying databases Program Notes Typecho

Typecho database provides a very easy-to-use API, which is not much different from the native SQL writing method. At the same time, it also handles common SQL security issues, such as SQL injection. From a practical perspective, this article introduces common scenarios for typecho to operate databases and related API usage. Table creation and deletion During the development process of Typecho plug-in, you often need to create your own table. Typecho_… mentioned above
👁 552
PHP ob function record

PHP ob function record Language Notes PHP

Usage of the following three functions ob_get_contents(); ob_end_clean(); ob_start(); You can use these functions to buffer local files and execute local script code. Use ob_start() to save the output code into the buffer, and the page will not be displayed; then use ob_get_contents to get the data in the buffer. o…
👁 141
Summary of methods for calling popular comment articles and calling latest articles in Typecho

Summary of methods for calling popular comment articles and calling latest articles in Typecho Program Notes Typecho

Typecho articles call the Typecho program. When designing a theme, the sidebar sometimes needs to call popular articles or the latest articles. We can call it directly through the script at the specified location. In this article, we will organize this method of calling articles, which can be directly called and used in templates where needed in the future. In fact, designing a theme is just that. After the static template is completed, it is called directly. The latest article calls <?php $t…
👁 295