[wordpress插件] Carbon Breadcrumbs碳面包屑

wordpress 插件 文章 2020-03-16 20:50 473 0 全屏看文

AI助手支持GPT4.0

评分
96
描述

Provides the theme and plugin developers an easy way to build and implement highly customizable breadcrumb functionality, specifically tailored to their needs.

为主题和插件开发人员提供了一种轻松的方式来构建和实现高度可定制的面包屑功能,专门针对其需求量身定制。

Supports a lot of filters and hooks, and is written in OOP style, giving developers full control over the breadcrumb trail items and appearance.

支持很多过滤器和挂钩,并且以OOP风格编写,从而使开发人员可以完全控制面包屑跟踪项和外观。

This plugin can also be embedded in themes, instead of installing it as a WordPress plugin.

该插件也可以嵌入主题中,而不是将其安装为WordPress插件。

Configuration

配置

The most basic way to insert Carbon Breadcrumbs in your theme code is:

在主题代码中插入碳面包屑的最基本方法是:

  <?php Carbon_Breadcrumb_Trail :: output(); 

?>

?>

If you want to specify various breadcrumb rendering options, you can specify them in an array, like this:

如果要指定各种面包屑渲染选项,则可以在数组中指定它们,如下所示:

  <?php

Carbon_Breadcrumb_Trail::output(array(    

Carbon_Breadcrumb_Trail :: output(array(    

'glue' => ' >

'glue'=>'&gt;

', // glue between breadcrumb items    

',//面包屑项目之间的粘合    

'link_before' => '',    

'link_before'=>'',    

'link_after' => '',    

'link_after'=>``,    

'wrapper_before' => '',    

'wrapper_before'=>'',    

'wrapper_after' => '',    

'wrapper_after'=>``,    

'title_before' => '',    

'title_before'=>``,    

'title_after' => '',    

'title_after'=>``,    

'min_items' => 2,    

'min_items'=> 2,    

'last_item_link' => true,    

'last_item_link'=>是,    

'display_home_item' => true,    

'display_home_item'=>是,    

'home_item_title' => __('Home', 'carbon_breadcrumbs'),    

'home_item_title'=> __('Home','carbon_breadcrumbs'),    

'renderer' => 'Carbon_Breadcrumb_Trail_Renderer',

'renderer'=>'Carbon_Breadcrumb_Trail_Renderer',

));

));

?>

?>

For additional configuration and developer documentation, you can visit the Github repository:

有关其他配置和开发人员文档,您可以访问Github存储库:

https://github.com/tyxla/carbon-breadcrumbs

https://github.com/tyxla/carbon-breadcrumbs

Ideas and bug reports

想法和错误报告

Any ideas for new modules or any other additional functionality that users would benefit from are welcome.

欢迎提出任何有关新模块或用户将从中受益的任何其他附加功能的想法。

If you have an idea for a new feature, or you want to report a bug, feel free to do it here in the Support tab, or you can do it at the Github repository of the project:

如果您有新功能的想法,或者想要报告错误,请随时在“支持”选项卡中进行操作,或者在项目的Github存储库中进行操作:

https://github.com/tyxla/carbon-breadcrumbs

https://github.com/tyxla/carbon-breadcrumbs

安装步骤

    1. Install Carbon Breadcrumbs either via the WordPress.org plugin directory, or by uploading the files to your server.
    2. 通过WordPress.org插件目录或将文件上传到服务器来安装Carbon Breadcrumbs。

    3. Activate the plugin.
    4. 激活插件。

    5. That’s it.

    6. 就是这样。

      You’re ready to go!

      您准备好出发了!

      Please, refer to the Configuration section for examples and usage information.

    7. 请参阅“配置”部分以获取示例和用法信息。

下载地址
https://downloads.wordpress.org/plugin/carbon-breadcrumbs.1.0.2.zip
-EOF-

AI助手支持GPT4.0