You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# wr文章相关操作事件钩子常量
# wr用于标识文章生命周期中不同操作的事件, 插件可通过监听这些事件执行对应逻辑
ARTICLE_DETAIL_LOAD = ' article_detail_load ' # wr文章详情页加载事件( 当用户查看文章详情时触发)
ARTICLE_CREATE = ' article_create ' # wr文章创建事件( 当文章被创建时触发)
ARTICLE_UPDATE = ' article_update ' # wr文章更新事件( 当文章被修改时触发)
ARTICLE_DELETE = ' article_delete ' # wr文章删除事件( 当文章被删除时触发)
# wr文章内容处理钩子名称
# wr用于标识对文章内容进行处理的钩子( 如内容过滤、替换、添加额外信息等)
ARTICLE_CONTENT_HOOK_NAME = " the_content "
#wr 位置钩子常量字典
#wr 键:页面中的具体位置标识(如文章顶部、侧边栏等)
#wr 值:对应位置的组件钩子名称(插件可通过该钩子注册组件,系统会在对应位置渲染这些组件)
POSITION_HOOKS = {
' article_top ' : ' article_top_widgets ' , #wr 文章顶部位置的组件钩子
' article_bottom ' : ' article_bottom_widgets ' , #wr文章底部位置的组件钩子
' sidebar ' : ' sidebar_widgets ' , # wr侧边栏位置的组件钩子
' header ' : ' header_widgets ' , #wr 页头位置的组件钩子
' footer ' : ' footer_widgets ' , # wr页脚位置的组件钩子
' comment_before ' : ' comment_before_widgets ' , # wr评论区之前位置的组件钩子
' comment_after ' : ' comment_after_widgets ' , # wr评论区之后位置的组件钩子
}
#wr 资源注入钩子常量
# wr用于标识需要在HTML特定区域注入资源( 如CSS、JavaScript、meta标签等) 的钩子
HEAD_RESOURCES_HOOK = ' head_resources ' # wrHTML头部( <head>标签内)的资源注入钩子
BODY_RESOURCES_HOOK = ' body_resources ' # wrHTML body底部( </body>标签前)的资源注入钩子