[wordpress插件] Child Page Tree子页树

wordpress 插件 文章 2020-03-22 23:10 563 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Child Page Tree adds a select box to the page edit site right above the publish button.

子页面树将一个选择框添加到发布按钮正上方的页面编辑站点。

Using this select box you can decide whether to add and where to add the page tree.

使用此选择框,您可以决定是否添加页面树以及在何处添加页面树。

You can either add the page tree at the very top of page (prepend) or add it to the end of a page (append).

您可以将页面树添加到页面的顶部(添加),也可以将其添加到页面的末尾(添加)。

The output is a unorderd list with nested lists to reflect the hierarchy of the children.

输出是一个无序列表,带有嵌套列表以反映子级的层次结构。

However this list can be changed using the build-in filter child_page_tree_before_output.

但是,可以使用内置过滤器 child_page_tree_before_output 更改此列表。

This filter is applied before the list is added to content.

在将列表添加到内容之前,将应用此过滤器。

The plugin ships with basic stylesheet, which adds a icon to each link and does not show the hierarchy of the pages.

该插件附带基本样式表,该样式表向每个链接添加一个图标,并且不显示页面的层次结构。

The handler for this stylesheet ist child_page_tree_style and you can simple dequeue the script using wp_dequeue_style().

此样式表的处理程序由 child_page_tree_style 组成,您可以使用 wp_dequeue_style()简单地使脚本出队。

Another way to add your own custom style is to override the default style by using a custom CSS plugin.

添加您自己的自定义样式的另一种方法是使用自定义CSS插件覆盖默认样式。

The page tree has an id (ul#child_page_tree) you can use and one class, either .append or .prepend depending its location.<

页面树具有您可以使用的ID( ul#child_page_tree )和一个类,根据其位置,该类为 .append .prepend 。<

/p>

/ p>

Requirements

要求

    • min.

      分钟。

      PHP 5.4

    • PHP 5.4

安装步骤

You can download and install the plugin using the built in WordPress plugin installer.

您可以使用内置的WordPress插件安装程序下载并安装插件。

If you download it manually, make sure it is uploaded to \”/wp-content/plugins/child-page-tree/\”.

如果您手动下载,请确保将其上传到\“ / wp-content / plugins / child-page-tree / \”。

Activate Child Page Tree in the \”Plugins\” admin panel using the \”Activate\” link.

使用\“ Activate \”链接在\“ Plugins \”管理面板中激活子页面树。

下载地址
https://downloads.wordpress.org/plugin/child-page-tree.1.0.1.zip
-EOF-

AI助手支持GPT4.0