[wordpress插件] CMS NavigationCMS导航

wordpress 插件 文章 2020-03-26 07:30 535 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Update

更新

Our new plugin, WPML, includes the functionality of CMS Navigation and is

我们的新插件 WPML ,包括 CMS Navigation 的功能,并且

recommended for new designs.

推荐用于新设计。

It features much cleaner and simpler HTML and customization via the admin screen.

它具有更干净,更简单的HTML和可通过管理屏幕进行自定义的功能。

Additionally, we recommend you checkout our new CMS enabling plugins Types and Views.

此外,我们建议您签出我们的新CMS支持插件类型视图

    With Types and Fields, you can achieve the functionality of this plugin yourself and customize it in whatever way you like.

    使用类型和字段,您可以自己实现此插件的功能,并以自己喜欢的任何方式对其进行自定义。

    Legacy Stuff

    旧版物品

    Do you want to use WordPress to create a full website, with easy navigation and menus?

    您是否要使用WordPress创建一个完整的网站,并具有轻松的导航和菜单?

    This plugin will let you add essential navigation functions to your template, including:

    该插件可让您向模板添加基本的导航功能,包括:

      • Top navigation bar, listing the top-level pages and their children (as drop-down items).
      • 顶部导航栏,列出了顶级页面及其子项(作为下拉项)。

      • Breadcrumbs trail navigation that shows the path to the current page all the way from the home page.
      • 面包屑跟踪导航,显示从首页一直到当前页面的路径。

      • Left navigation that shows where the visitor is next to the page’s parent and nearby pages.
      • 向左导航,显示访问者在页面的父页面和附近页面旁边的位置。

      No configuration is required.

      不需要配置。

      To use, add the calls that create each navigation element to your template.

      若要使用,请将创建每个导航元素的调用添加到模板中。

      These calls can be added to any WP template

      这些调用可以添加到任何WP模板中

      There are three template functions that can be used for displaying the navigation sections

      可以使用三个模板功能来显示导航部分

      Drop down top menu

      下拉顶部菜单

      Function:
          

      功能:
          

      cms_navigation_menu_nav($order=’menu_order’, $show_cat_menu=false, $catmenu_title=’News’)

      cms_navigation_menu_nav($ order ='menu_order',$ show_cat_menu = false,$ catmenu_title ='新闻')

      This will display the top navigation – the top level pages with their sub pages as drop down elements.

      这将显示顶部导航–顶级页面及其子页面作为下拉元素。

      Additionally – if specified – the menu will include the top level post categories at the end.

      另外-如果指定-菜单将在末尾包含顶级帖子类别。

      Normally, this function is added to your header.php file, so that it applies to the entire website.

      通常,此功能会添加到您的header.php文件中,以便将其应用于整个网站。

      Examples:

      示例:

        • – include without the categories menu.
        • <?php cms_navigation_menu_nav()?> –包括但不包含类别菜单。

        • – sort items by title.
        • <?php cms_navigation_menu_nav('post_title')?> –按标题对项目进行排序。

        • – sort items according to the ‘order’ field.
        • <?php cms_navigation_menu_nav('menu_order',true,'News')?> –根据“ order”字段对项目进行排序。

        Breadcrumbs trail navigation

        面包屑足迹导航

        Function:
            

        功能:
            

        cms_navigation_breadcrumb()

        cms_navigation_breadcrumb()

        This will display a path from the current page all the way to the home page.

        这将显示从当前页面一直到首页的路径。

        It’s useful for visitors who land in your website to know where they are and be able to navigate to relevant pages.

        对于访问您网站的访问者来说,了解他们的位置并能够导航到相关页面非常有用。

        For posts

        用于帖子

        Home >> CATEGORY-NAME >> Post title

         首页>>类别名称>>帖子标题

        For pages

        用于页面

        Home >> Parent pages... >> Page title

         首页>>父页面... >>页面标题

        All the items back to the home page will be clickable.

        返回首页的所有项目都是可点击的。

        You can add this function to single.php and page.php so that it will produce trail navigation for every page or post.

        您可以将此功能添加到single.php和page.php中,以便为每个页面或帖子产生跟踪导航。

        Sidebar navigation

        侧边栏导航

        Function:
            

        功能:
            

        cms_navigation_page_navigation($order=’menu_order’)

        cms_navigation_page_navigation($ order =’menu_order’)

        This will display the sidebar navigation for pages.

        这将显示页面的侧边栏导航。

        It will show a tree created the page parents and it’s ‘brother’ pages (other children to the same parent).

        它将显示一棵树,该树创建了父页面,并且是“兄弟”页面(同一父级的其他子级)。

        This function should be added to page.php, as it provides local navigation between pages.

        此功能应添加到page.php中,因为它提供了页面之间的本地导航。

        Live example using this plugin

        使用此插件的实时示例

        Baripedia is using this plugin (and other CMS related

        Baripedia 正在使用此插件(以及其他与CMS相关的

        plugins we've written).

        我们编写的插件)。

        Version History

        版本历史记录

          • Version 0.1

          • 版本0.1

              • First public release.
              • 首次公开发布。

            • Version 0.2

            • 版本0.2

                • Removed some of unneeded formatting.
                • 删除了一些不需要的格式。

                • Added option to set the tag around sidebar navigation heading.
                • 添加了用于在侧边栏导航标题周围设置标签的选项。

              • Version 1.2

              • 1.2版

                  • Handles setting static pages for homepage and blog page.
                  • 处理设置主页和博客页面的静态页面。

                • Version 1.2.1

                • 版本1.2.1

                    • Added static home page to top navigation
                    • 将静态首页添加到顶部导航

                  • Version 1.3

                  • 1.3版

                      • Works with IE6 as well as other browsers (didn’t support IE6 before)
                      • 与IE6以及其他浏览器一起使用(以前不支持IE6)

                      • Removed the gradient and simplified the CSS for customizing the menus
                      • 删除了渐变并简化了用于自定义菜单的CSS

                      • The top menu HTML has changed.

                      • 顶部菜单HTML已更改。

                        If the encapsulating DIV has a background, you may need to change or remove it.

                      • 如果封装的DIV具有背景,则可能需要更改或删除它。

                    • Version 1.4

                    • 1.4版

                        • Added feature to exclude pages from the top navigation.
                        • 添加了从顶部导航中排除页面的功能。

                        • Added GUI for controlling page settings (instead of editing custom fields).
                        • 添加了用于控制页面设置的GUI(而不是编辑自定义字段)。

                      • Version 1.4.2

                      • 版本1.4.2

                          • Added migration instruction to WPML
                          • WPML 中添加了迁移说明

安装步骤

    1. Place the folder containing this file into the plugins folder
    2. 将包含此文件的文件夹放入plugins文件夹

    3. Activate the plugin from the admin interface
    4. 从管理界面激活插件

下载地址
https://downloads.wordpress.org/plugin/cms-navigation.1.4.2.zip
-EOF-

AI助手支持GPT4.0