模板文件中的插件嵌入点列表

模板文件中的插件钩子(插件嵌入点):

插件钩子代码例子:

<!--{hook/xxx_xxx}-->

插件钩子的作用在于能让插件在指定的一些位置输出有关代码!在DZ7.x-DX1.5中插件钩子并不显得很重要,但是随着插件应用的不断普及,插件创作者的不断加入,插件钩子在模板中的地位尤其显得格外重要,如果缺少了程序必须的插件钩子,可能会造成自带系统插件功能受到影响!所以我们在制作模板的时候一定要参考默认模板中的插件钩子位置进行合理的安排!除非你觉得某个插件钩子在自己的模板中并不需要,否则请保留插件钩子代码!

插件嵌入点列表

global_header

‘template/default/common/header.htm

global_footer

array(
‘template/default/common/footer.htm‘,
‘template/default/search/footer.htm‘,
),

global_footerlink

array(
‘template/default/common/footer.htm‘,
‘template/default/search/footer.htm‘,
),

global_cpnav_top

‘template/default/common/header.htm

global_cpnav_extra1

‘template/default/common/header.htm

global_cpnav_extra2

‘template/default/common/header.htm

global_usernav_extra1

‘template/default/common/header.htm

global_usernav_extra4

‘template/default/common/header.htm

global_usernav_extra2

‘template/default/common/header.htm

global_usernav_extra3

‘template/default/common/header.htm

global_nav_extra

‘template/default/common/header.htm

global_userabout_top

‘template/default/common/userabout.htm

spacecp_credit_extra

‘template/default/common/extcredits.htm

faq_extra

‘template/default/common/faq.htm

userapp_menu_top

array(
‘template/default/common/userabout.htm‘,
‘template/default/userapp/userapp_menu_list.htm‘,
),

userapp_menu_middle

array(
‘template/default/common/userabout.htm‘,
‘template/default/userapp/userapp_menu_list.htm‘,
),

global_userabout_bottom

‘template/default/common/userabout.htm

collection_index_top

array(
‘template/default/forum/collection_all.htm‘,
‘template/default/forum/collection_mycollection.htm‘,
‘template/default/forum/collection_index.htm‘,
),

collection_index_bottom

‘template/default/forum/collection_all.htm

collection_nav_extra

‘template/default/forum/collection_comment.htm

collection_index_bottom

array(
‘template/default/forum/collection_index.htm‘,
‘template/default/forum/collection_mycollection.htm‘,
),

collection_nav_extra

‘template/default/forum/collection_nav.htm

collection_viewoptions

‘template/default/forum/collection_view.htm

collection_view_top

‘template/default/forum/collection_view.htm

collection_threadlistbottom

‘template/default/forum/collection_view.htm

collection_relatedop

‘template/default/forum/collection_view.htm

collection_view_bottom

‘template/default/forum/collection_view.htm

collection_side_bottom

‘template/default/forum/collection_view.htm

index_status_extra

‘template/default/forum/discuz.htm

index_nav_extra

‘template/default/forum/discuz.htm

index_top

array(
‘template/default/forum/discuz.htm‘,
‘template/default/group/index.htm‘,
‘template/default/group/type.htm‘,
),

index_catlist_top

‘template/default/forum/discuz.htm

index_favforum_extra

‘template/default/forum/discuz.htm

index_favforum_extra

‘template/default/forum/discuz.htm

index_catlist

‘template/default/forum/discuz.htm

index_forum_extra

‘template/default/forum/discuz.htm

index_forum_extra

‘template/default/forum/discuz.htm

index_middle

‘template/default/forum/discuz.htm

index_bottom

array(
‘template/default/forum/discuz.htm‘,
‘template/default/group/index.htm‘,
‘template/default/group/type.htm‘,
),

index_side_top

array(
‘template/default/forum/discuz.htm‘,
‘template/default/group/index.htm‘,
‘template/default/group/type.htm‘,
),

index_side_bottom

array(
‘template/default/forum/discuz.htm‘,
‘template/default/group/index.htm‘,
‘template/default/group/type.htm‘,
),

post_image_btn_extra

‘template/default/forum/editor_menu_forum.htm

post_image_tab_extra

‘template/default/forum/editor_menu_forum.htm

post_attach_btn_extra

‘template/default/forum/editor_menu_forum.htm

post_attach_tab_extra

‘template/default/forum/editor_menu_forum.htm

forumdisplay_leftside_top

‘template/default/forum/forumdisplay.htm

forumdisplay_leftside_bottom

‘template/default/forum/forumdisplay.htm

forumdisplay_forumaction

‘template/default/forum/forumdisplay.htm

forumdisplay_modlink

‘template/default/forum/forumdisplay.htm

forumdisplay_top

‘template/default/forum/forumdisplay.htm

forumdisplay_middle

‘template/default/forum/forumdisplay.htm

forumdisplay_postbutton_top

‘template/default/forum/forumdisplay.htm

forumdisplay_threadtype_inner

‘template/default/forum/forumdisplay.htm

forumdisplay_filter_extra

‘template/default/forum/forumdisplay.htm

forumdisplay_threadtype_extra

‘template/default/forum/forumdisplay.htm

forumdisplay_bottom

‘template/default/forum/forumdisplay.htm

forumdisplay_side_top

‘template/default/forum/forumdisplay.htm

forumdisplay_side_bottom

‘template/default/forum/forumdisplay.htm

forumdisplay_fastpost_content

‘template/default/forum/forumdisplay_fastpost.htm

forumdisplay_fastpost_func_extra

‘template/default/forum/forumdisplay_fastpost.htm

forumdisplay_fastpost_ctrl_extra

‘template/default/forum/forumdisplay_fastpost.htm

global_login_text

‘template/default/forum/forumdisplay_fastpost.htm

forumdisplay_fastpost_btn_extra

‘template/default/forum/forumdisplay_fastpost.htm

forumdisplay_fastpost_sync_method

‘template/default/forum/forumdisplay_fastpost.htm

forumdisplay_filter_extra

‘template/default/forum/forumdisplay_list.htm

forumdisplay_thread

‘template/default/forum/forumdisplay_list.htm

forumdisplay_thread_subject

‘template/default/forum/forumdisplay_list.htm

forumdisplay_author

‘template/default/forum/forumdisplay_list.htm

forumdisplay_threadlist_bottom

‘template/default/forum/forumdisplay_list.htm

forumdisplay_postbutton_bottom

array(
‘template/default/forum/forumdisplay_list.htm‘,
‘template/default/forum/forumdisplay_sort.htm‘,
),

forumdisplay_subforum_extra

‘template/default/forum/forumdisplay_subforum.htm

guide_nav_extra

‘template/default/forum/guide.htm

guide_top

‘template/default/forum/guide.htm

guide_bottom

‘template/default/forum/guide.htm

forumdisplay_thread

‘template/default/forum/guide_list_row.htm

index_navbar

‘template/default/forum/index_navbar.htm

post_top

‘template/default/forum/post.htm

post_middle

‘template/default/forum/post.htm

post_btn_extra

‘template/default/forum/post.htm

post_sync_method

‘template/default/forum/post.htm

post_bottom

‘template/default/forum/post.htm

post_activity_extra

‘template/default/forum/post_activity.htm

post_debate_extra

‘template/default/forum/post_debate.htm

post_editorctrl_right

‘template/default/forum/post_editor_body.htm

post_editorctrl_left

‘template/default/forum/post_editor_body.htm

post_editorctrl_top

‘template/default/forum/post_editor_body.htm

post_editorctrl_bottom

‘template/default/forum/post_editor_body.htm

post_side_top

‘template/default/forum/post_editor_option.htm

post_side_bottom

‘template/default/forum/post_editor_option.htm

post_infloat_top

‘template/default/forum/post_infloat.htm

post_infloat_middle

‘template/default/forum/post_infloat.htm

post_infloat_btn_extra

‘template/default/forum/post_infloat.htm

post_poll_extra

‘template/default/forum/post_poll.htm

post_reward_extra

‘template/default/forum/post_reward.htm

post_trade_extra

‘template/default/forum/post_trade.htm

forumdisplay_modlayer

‘template/default/forum/topicadmin_modlayer.htm

modcp_modlayer

‘template/default/forum/topicadmin_modlayer.htm

viewthread_tradeinfo_extra

‘template/default/forum/trade_info.htm

viewthread_top

‘template/default/forum/viewthread.htm

viewthread_postbutton_top

‘template/default/forum/viewthread.htm

viewthread_modoption

‘template/default/forum/viewthread.htm

viewthread_beginline

‘template/default/forum/viewthread.htm

viewthread_title_extra

‘template/default/forum/viewthread.htm

viewthread_title_row

‘template/default/forum/viewthread.htm

viewthread_middle

‘template/default/forum/viewthread.htm

viewthread_bottom

‘template/default/forum/viewthread.htm

viewthread_activity_extra1

‘template/default/forum/viewthread_activity.htm

viewthread_activity_extra2

‘template/default/forum/viewthread_activity.htm

viewthread_fastpost_side

‘template/default/forum/viewthread_fastpost.htm

viewthread_fastpost_content

‘template/default/forum/viewthread_fastpost.htm

viewthread_fastpost_func_extra

‘template/default/forum/viewthread_fastpost.htm

viewthread_fastpost_ctrl_extra

‘template/default/forum/viewthread_fastpost.htm

global_login_text

‘template/default/forum/viewthread_fastpost.htm

viewthread_fastpost_btn_extra

‘template/default/forum/viewthread_fastpost.htm

viewthread_postheader

‘template/default/forum/viewthread_from_node.htm

viewthread_postheader

‘template/default/forum/viewthread_from_node.htm

viewthread_postheader

‘template/default/forum/viewthread_from_node.htm

viewthread_endline

‘template/default/forum/viewthread_from_node.htm

viewthread_profileside

‘template/default/forum/viewthread_node.htm

viewthread_imicons

‘template/default/forum/viewthread_node.htm

viewthread_magic_user

‘template/default/forum/viewthread_node.htm

viewthread_avatar

‘template/default/forum/viewthread_node.htm

viewthread_sidetop

‘template/default/forum/viewthread_node.htm

viewthread_sidebottom

‘template/default/forum/viewthread_node.htm

viewthread_postheader

‘template/default/forum/viewthread_node.htm

viewthread_modaction

‘template/default/forum/viewthread_node.htm

viewthread_share_method

‘template/default/forum/viewthread_node.htm

viewthread_useraction

‘template/default/forum/viewthread_node.htm

viewthread_postsightm‘,lafter

‘template/default/forum/viewthread_node.htm

viewthread_postfooter

‘template/default/forum/viewthread_node.htm

viewthread_postaction

‘template/default/forum/viewthread_node.htm

viewthread_magic_thread

‘template/default/forum/viewthread_node.htm

viewthread_magic_post

‘template/default/forum/viewthread_node.htm

viewthread_endline

‘template/default/forum/viewthread_node.htm

viewthread_posttop

‘template/default/forum/viewthread_node_body.htm

global_login_text

‘template/default/forum/viewthread_node_body.htm

viewthread_postbottom

‘template/default/forum/viewthread_node_body.htm

viewthread_poll_top

‘template/default/forum/viewthread_poll.htm

viewthread_poll_bottom

‘template/default/forum/viewthread_poll.htm

viewthread_useraction_prefix

‘template/default/forum/viewthread_portal.htm

viewthread_useraction

‘template/default/forum/viewthread_portal.htm

viewthread_side_bottom

‘template/default/forum/viewthread_portal.htm

viewthread_trade_extra

‘template/default/forum/viewthread_trade.htm

group_navlink

‘template/default/group/group.htm

forumdisplay_navlink

‘template/default/group/group.htm

group_navlink

‘template/default/group/group.htm

forumdisplay_navlink

‘template/default/group/group.htm

group_top

‘template/default/group/group.htm

forumdisplay_top

‘template/default/group/group.htm

group_nav_extra

‘template/default/group/group.htm

forumdisplay_nav_extra

‘template/default/group/group.htm

group_bottom

‘template/default/group/group.htm

forumdisplay_bottom

‘template/default/group/group.htm

group_side_bottom

‘template/default/group/group.htm

forumdisplay_side_bottom

‘template/default/group/group.htm

forumdisplay_postbutton_top

‘template/default/group/group_list.htm

forumdisplay_filter_extra

‘template/default/group/group_list.htm

forumdisplay_thread

‘template/default/group/group_list.htm

forumdisplay_postbutton_bottom

‘template/default/group/group_list.htm

my_header

‘template/default/group/group_my.htm

my_bottom

‘template/default/group/group_my.htm

my_side_top

‘template/default/group/group_my.htm

my_side_bottom

‘template/default/group/group_my.htm

group_index_side

‘template/default/group/group_right.htm

group_side_top

‘template/default/group/group_right.htm

forumdisplay_side_top

‘template/default/group/group_right.htm

index_header

‘template/default/group/index.htm

index_grouplist

‘template/default/group/type.htm

follow_nav_extra

‘template/default/home/follow_feed.htm

follow_top

‘template/default/home/follow_feed.htm

follow_nav_extra

‘template/default/home/follow_feed.htm

spacecp_avatar_top

‘template/default/home/spacecp_avatar.htm

spacecp_avatar_bottom

‘template/default/home/spacecp_avatar.htm

spacecp_blog_top

‘template/default/home/spacecp_blog.htm

spacecp_blog_middle

‘template/default/home/spacecp_blog.htm

spacecp_blog_bottom

‘template/default/home/spacecp_blog.htm

spacecp_credit_top

‘template/default/home/spacecp_credit_base.htm

spacecp_credit_extra

‘template/default/home/spacecp_credit_base.htm

spacecp_credit_bottom

‘template/default/home/spacecp_credit_base.htm

spacecp_credit_top

‘template/default/home/spacecp_credit_log.htm

spacecp_credit_bottom

‘template/default/home/spacecp_credit_log.htm

spacecp_privacy_top

‘template/default/home/spacecp_privacy.htm

spacecp_privacy_base_extra

‘template/default/home/spacecp_privacy.htm

spacecp_privacy_feed_extra

‘template/default/home/spacecp_privacy.htm

spacecp_privacy_bottom

‘template/default/home/spacecp_privacy.htm

spacecp_profile_top

‘template/default/home/spacecp_profile.htm

spacecp_profile_extra

‘template/default/home/spacecp_profile.htm

spacecp_profile_bottom

‘template/default/home/spacecp_profile.htm

spacecp_promotion_top

‘template/default/home/spacecp_promotion.htm

spacecp_promotion_bottom

‘template/default/home/spacecp_promotion.htm

spacecp_usergroup_bottom

‘template/default/home/spacecp_usergroup.htm

spacecp_usergroup_top

‘template/default/home/spacecp_usergroup.htm

spacecp_usergroup_bottom

‘template/default/home/spacecp_usergroup.htm

space_album_pic_top

‘template/default/home/space_album_pic.htm

space_album_pic_op_extra

‘template/default/home/space_album_pic.htm

space_album_pic_bottom

‘template/default/home/space_album_pic.htm

space_album_pic_face_extra

‘template/default/home/space_album_pic.htm

space_album_op_extra

‘template/default/home/space_album_view.htm

space_blog_list_status

‘template/default/home/space_blog_list.htm

space_blog_title

‘template/default/home/space_blog_view.htm

space_blog_share_method

‘template/default/home/space_blog_view.htm

space_blog_op_extra

‘template/default/home/space_blog_view.htm

space_blog_face_extra

‘template/default/home/space_blog_view.htm

space_card_top

‘template/default/home/space_card.htm

space_card_baseinfo_middle

‘template/default/home/space_card.htm

space_card_baseinfo_bottom

‘template/default/home/space_card.htm

space_card_option

‘template/default/home/space_card.htm

space_card_magic_user

‘template/default/home/space_card.htm

space_card_bottom

‘template/default/home/space_card.htm

space_blog_comment_op

‘template/default/home/space_comment_li.htm

space_blog_comment_bottom

‘template/default/home/space_comment_li.htm

space_doing_top

‘template/default/home/space_doing.htm

space_doing_bottom

‘template/default/home/space_doing.htm

space_favorite_nav_extra

‘template/default/home/space_favorite.htm

space_interaction_extra

‘template/default/home/space_friend.htm

global_usernav_extra1

‘template/default/home/space_header.htm

global_usernav_extra2

‘template/default/home/space_header.htm

space_home_navlink

‘template/default/home/space_home.htm

space_home_side_top

‘template/default/home/space_home.htm

space_home_side_bottom

‘template/default/home/space_home.htm

space_home_top

‘template/default/home/space_home.htm

space_home_navlink

‘template/default/home/space_home.htm

space_home_bottom

‘template/default/home/space_home.htm

magic_nav_extra

‘template/default/home/space_magic.htm

medal_nav_extra

‘template/default/home/space_medal.htm

space_menu_extra

‘template/default/home/space_menu.htm

space_profile_baseinfo_top

‘template/default/home/space_profile_body.htm

follow_profile_baseinfo_top

‘template/default/home/space_profile_body.htm

space_profile_baseinfo_middle

‘template/default/home/space_profile_body.htm

follow_profile_baseinfo_middle

‘template/default/home/space_profile_body.htm

space_profile_baseinfo_bottom

‘template/default/home/space_profile_body.htm

follow_profile_baseinfo_bottom

‘template/default/home/space_profile_body.htm

space_profile_extrainfo

‘template/default/home/space_profile_body.htm

follow_profile_extrainfo

‘template/default/home/space_profile_body.htm

space_share_comment_op

‘template/default/home/space_share_li.htm

space_home_doing_sync_method

‘template/default/home/space_status.htm

space_wall_face_extra

‘template/default/home/space_wall.htm

logging_side_top

‘template/default/member/login.htm

logging_top

‘template/default/member/login.htm

logging_input

‘template/default/member/login.htm

logging_method

‘template/default/member/login.htm

global_login_extra

‘template/default/member/login_simple.htm

register_side_top

‘template/default/member/register.htm

register_top

‘template/default/member/register.htm

register_input

‘template/default/member/register.htm

register_logging_method

‘template/default/member/register.htm

register_bottom

‘template/default/member/register.htm

global_footer_mobile

‘template/default/mobile/common/footer.htm

global_header_mobile

‘template/default/mobile/common/header.htm

index_top_mobile

‘template/default/mobile/forum/discuz.htm

index_middle_mobile

‘template/default/mobile/forum/discuz.htm

index_bottom_mobile

‘template/default/mobile/forum/discuz.htm

forumdisplay_top_mobile

‘template/default/mobile/forum/forumdisplay.htm

forumdisplay_thread_mobile

‘template/default/mobile/forum/forumdisplay.htm

forumdisplay_bottom_mobile

‘template/default/mobile/forum/forumdisplay.htm

viewthread_top_mobile

‘template/default/mobile/forum/viewthread.htm

viewthread_posttop_mobile

‘template/default/mobile/forum/viewthread.htm

viewthread_postbottom_mobile

‘template/default/mobile/forum/viewthread.htm

viewthread_bottom_mobile

‘template/default/mobile/forum/viewthread.htm

portalcp_top

‘template/default/portal/portalcp_article.htm

portalcp_extend

‘template/default/portal/portalcp_article.htm

portalcp_middle

‘template/default/portal/portalcp_article.htm

portalcp_bottom

‘template/default/portal/portalcp_article.htm

view_article_top

‘template/default/portal/view.htm

view_article_subtitle

‘template/default/portal/view.htm

view_article_summary

‘template/default/portal/view.htm

view_article_content

‘template/default/portal/view.htm

view_share_method

‘template/default/portal/view.htm

view_article_op_extra

‘template/default/portal/view.htm

view_article_side_top

‘template/default/portal/view.htm

view_article_side_bottom

‘template/default/portal/view.htm

ranklist_nav_extra

‘template/default/ranklist/side_left.htm

album_top

‘template/default/search/album.htm

album_bottom

‘template/default/search/album.htm

blog_top

‘template/default/search/blog.htm

blog_bottom

‘template/default/search/blog.htm

forum_top

‘template/default/search/forum.htm

forum_bottom

‘template/default/search/forum.htm

group_top

‘template/default/search/group.htm

group_bottom

‘template/default/search/group.htm

global_usernav_extra1

‘template/default/search/header.htm

global_usernav_extra2

‘template/default/search/header.htm

portal_top

‘template/default/search/portal.htm

portal_bottom

‘template/default/search/portal.htm

userapp_app_top

‘template/default/userapp/userapp_app.htm

userapp_app_bottom

‘template/default/userapp/userapp_app.htm

userapp_index_top

‘template/default/userapp/userapp_index.htm

userapp_index_bottom

‘template/default/userapp/userapp_index.htm

时间: 2024-10-16 23:01:22

模板文件中的插件嵌入点列表的相关文章

phpcms-v9 前台模板文件中{pc}标签的执行流程

前台pc标签的使用:{pc:content 参数名="参数值" 参数名="参数值" 参数名="参数值"} 如: {pc:content action="lists" catid="9" cache="3600" num="20" page="$page"}{/pc} 执行流程如下:     ①模块名:content     ②模块类文件:modul

ecshop如何直接在dwt,lbi模板文件中执行php代码

272版本之前的可以直接写php代码的,272,273版本的都不行, 网上搜了一下,关于这方面的也不多,而且问题是写的解决方法也不是很准确, 下面是我的解决方法,我的echsop是272版本的 找到文件includes/cls_template.php,在287行(我的是在287行) $source = preg_replace("/<\?[^><]+\?>/i", "", $source);代码注释掉就ok了 不过为了安全考虑,还是不建议直

pom文件中maven-assembly-plugin插件学习

一.使用场景 如果项目是微服务架构,可能用到这个插件的概率比较高,平时普通的项目不需要这样的实现方式. 如果项目内的一部分通用功能,不需要挨个引用,则需要将通用功能部分达成jar包. 二.Maven-assembly-plugin作用 1.作用:要想将写的程序和它本身所依赖的jar包一起build到一个包里,是maven中针对打包任务而提供的标准插件. 2.其他作用: 1)提供一个把工程依赖元素.模块.网站文档等其他文件存放到单个归档文件里. 2)打包成指定格式分发包,支持各种主流的格式如zip

将.txt文件中的内容放入列表中

.txt文件如下: 代码实现: with open('F:/F/python_code/00.txt') as f: a = f.readlines() b = [n[:-1] for n in a] print(b) 原文地址:https://www.cnblogs.com/czz0508/p/10461405.html

discuz模板文件列表

template/default/common模板公共文件夹,全局相关     |--block_forumtree.htm 树形论坛版块分支js文件     |--block_thread.htm特殊主题的风格模块文件     |--block_userinfo.htm用户资料的风格模块     |--common.css全局公共css文件(所有页面加载)     |--css_diy.cssDIY模式里整个页面的css样式表     |--css_sample.htm     |--css_

TP5项目中模板文件html的更新及php写入、删除与复制文件的方法

项目是thinkphp5的,后台有一个,上传html模板代码的功能. 因为模板里,除了html代码外,还有, {volist name="list" id="vo"}{/volist} {$title} php,js代码. 我是这样做的,先建一个template表. CREATE TABLE hk_template (     id INT(10) PRIMARY KEY NOT NULL,     name VARCHAR(30),     content TEX

ecshop新版不能在模板文件.dwt和.lbi中直接添加php代码的解决方法

ecshop新版不能在模板文件.dwt和.lbi中直接添加php代码了,为什么呢? 因为直接在模板中加入php函数和代码,没有经过过滤,容易造成安全隐患.程序源码安全是非常重要的. 不过如果有朋友希望能在模板文件中直接加入php代码,怎么办呢? 其实,只需要改动一个文件,即includes/cls_template.php 打开此文件,找到函数 function fetch_str($source) 在此函数中找到,大概在288行 if(preg_match_all('~(<\?(?:\w+|=

ecshop不能在模板文件.dwt和.lbi中直接添加php代码的解决方法

ecshop不能在模板文件.dwt和.lbi中直接添加php代码了,为什么呢? 因为直接在模板中加入php函数和代码,没有经过过滤,容易造成安全隐患.程序源码安全是比较重要的.不过如果有朋友希望能在模板文件中直接加入.dwt和.lbi文件,怎么办呢?需要改动哪些文件呢?其实,需要改动一个文件,即includes/cls_template.php打开此文件,找到函数 function fetch_str($source)在此函数中找到 if(preg_match_all('~(<\?(?:\w+|

phpcms V9 首页模板文件解析(转)

转自:http://www.cnblogs.com/Braveliu/p/5100018.html 转在了解了<phpcms V9 URL访问解析>之后,我们已经知道首页最终执行的是content模块下index控制器的init方法. 下面, 我们逐步分析过程如下: 第一.首页默认执行的是index.php?m=content&c=index&a=init 如下代码(路径:phpcms\modules\content\index.php),先从init函数分析: 1 class