[wordpress插件] Contextual Nav Menu上下文导航菜单

wordpress 插件 文章 2020-04-01 16:30 433 0 全屏看文

AI助手支持GPT4.0

评分
90
描述

Add some Contextual Navigation Menu Features.

添加一些上下文导航菜单功能。

Provide contextual menus as Navigation Menu, Breadcrumb Navigation Menu and Navigation Submenu Widget.

提供上下文菜单,如“导航菜单”,“面包屑导航菜单”和“导航子菜单小组件”。

What is a contextual menu?

什么是上下文菜单?

It’s simple: it follows the current item as much as possible.

很简单:它会尽可能跟踪当前项目。

For example, you have a category entry in your primary menu.

例如,您在主菜单中有一个类别条目。

But when you read a post of this category, your menu has no selected items.

但是,当您阅读该类别的帖子时,您的菜单没有选定的项目。

Your entry is like orphan.

您的输入就像是孤儿。

With Contextual Nav Menu, no more orphans entry.

使用上下文导航菜单时,不再有孤儿条目。

Taxonomies (categories and tags), pages, posts (custom types too) are linked to there parents if they are in the menu.

如果菜单中存在分类法(类别和标签),页面,帖子(也包括自定义类型),则它们会链接到那里的父级。

And if the parent is not in the menu?

如果父项不在菜单中?

There still have a solution!

仍然有解决方案!

You can add to each taxonomy (category and tag), page, post (custom types too) a parent menu item.

您可以将父菜单项添加到每个分类法(类别和标签),页面,发布(也可以自定义类型)。

With the same mecanism, your Contextual Nav Menu Breadcrumb won’t be blank anymore, it will follow as much as possible your menus structure and is fully customisable.

使用相同的机制,您的上下文导航菜单面包屑将不再为空白,它会尽可能地遵循您的菜单结构并且可以完全自定义。

The Contextual Nav Submenu Widget displays a contextual menu related to the highest parent of the current item.

上下文导航子菜单小组件显示与当前项目的最高父级相关的上下文菜单。

Features:

功能:

    1. Add a parent menu item to each taxonomy (category and tag), page, post (custom types too) individualy or with bulk actions
    2. 单独或通过批量操作向每个分类法(类别和标签),页面,帖子(也包括自定义类型)添加父菜单项

    3. Customise your breadcrumb: titles, image of the home link, menus order
    4. 自定义面包屑:标题,主页链接的图像,菜单顺序

    5. French and English support
    6. 法语和英语支持

    7. Polylang compatibility (breadcrumb is fully multilingual)
    8. Polylang 兼容性(面包屑是完全多语言的)

    9. Multisite compatibility
    10. 多站点兼容性

    11. Contextual Nav Menus are accessible
    12. 可以访问上下文导航菜单

    13. Contextual Nav Menus are ready to use with all themes.

    14. 上下文导航菜单可用于所有主题。

      The plugin does not provide any predefined themes.

    15. 该插件未提供任何预定义的主题。

    Visit JuZED.fr

    访问JuZED.fr

    for examples.

    例如。

    Contact me if you want to know how to customise your menus.

    如果您想了解如何自定义菜单,请与我联系。

安装步骤

    1. Upload “contextual-nav-menu.zip” to the “/wp-content/plugins/” directory.
    2. 将“ contextual-nav-menu.zip”上传到“ / wp-content / plugins /”目录。

    3. Unzip archive.
    4. 解压缩存档。

    5. Activate the plugin through the “Plugins” menu in WordPress.
    6. 通过WordPress中的“插件”菜单激活插件。

    7. Place for example “contextual_nav_menu( array( ‘theme_location’ => ‘primary’ ) );”

    8. 例如放置“ contextual_nav_menu(array('theme_location'=>'primary'));”

      in your templates to display a contextual nav menu for the primary theme location (see WordPress documentation<

      在模板中显示主主题位置的上下文导航菜单(请参阅 WordPress文档<

      /a> for more details, arguments are the same).

    9. / a>有关更多详细信息,则参数相同)。

    10. Place “contextual_nav_menu_breadcrumb();”

    11. 放置“ contextual_nav_menu_breadcrumb();”

      in your templates to display a contextual nav menu breadcrumb.

    12. 在模板中显示上下文导航菜单面包屑。

    For a full customisation of the breadcrumb, “contextual_nav_menu_breadcrumb” accepts an array as param.

    对于面包屑的完全自定义,“ contextual_nav_menu_breadcrumb”接受一个数组作为参数。

    These are all accepted keys and there possible values:

    这些都是可接受的键,并且可能有值:

      • menu_class – CSS class to use for the ol element which forms the menu.

      • menu_class –用于构成菜单的ol元素的CSS类。

        Defaults to ‘breadcrumb’

      • 默认为“面包屑”

      • container – Whether to wrap the ol, and what to wrap it with.

      • 容器–是否包装ol,以及包装什么。

        Defaults to ‘nav’

      • 默认为“导航”

      • container_role – The role of the container.

      • container_role –容器的角色。

        Defaults to ‘navigation’

      • 默认为“导航”

      • container_class – The class that is applied to the container.

      • container_class –应用于容器的类。

        Defaults to ‘nav-menu-breadcrumb’

      • 默认为“ nav-menu-breadcrumb”

      • container_id – The ID that is applied to the container.

      • container_id –应用于容器的ID。

        Defaults to blank

      • 默认为空白

      • fallback_cb – If the menu doesn’t exists, a callback function will fire.

      • fallback_cb –如果菜单不存在,则会触发回调函数。

        Defaults to ‘wp_nav_menu’.

        默认为“ wp_nav_menu”。

        Set to false for no fallback

      • 设置为false不会回退

      • before – Text before the link text
      • 之前–链接文本之前的文本

      • after – Text after the link text
      • 之后–链接文本之后的文本

      • link_before – Text before the link
      • link_before –链接之前的文字

      • link_after – Text after the link
      • link_after –链接后的文字

      • echo – Whether to echo the menu or return it.

      • echo –是回显菜单还是返回菜单。

        Defaults to true

      • 默认为true

      • depth – how many levels of the hierarchy are to be included.

      • depth –要包含多少个层次结构。

        0 means all.

        0表示全部。

        Defaults to 0

      • 默认为0

下载地址
https://downloads.wordpress.org/plugin/contextual-nav-menu.1.2.1.zip
-EOF-

AI助手支持GPT4.0