[wordpress插件] Better Section Navigation Widget更好的部分导航小部件

wordpress 插件 文章 2020-03-04 05:20 463 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Adds a new widget type you can deploy in your sidebar regions (and/or elsewhere) to display section-based navigation, along with the ability to exclude certain pages from showing up.

添加新的窗口小部件类型,您可以将其部署在侧边栏区域(和/或其他位置)中以显示基于节的导航,并具有排除某些页面无法显示的功能。

The title of the widget is the top level page within the current section.

小部件的标题是当前部分中的顶级页面。

The widget then can show all of the page's published siblings (except on the top level page), all parents and grandparents (and higher), the siblings of all parents and grandparents (up to top level page), and any immediate children of the

然后,小部件可以显示页面的所有已发布兄弟姐妹(顶层页面上除外),所有父母和祖父母(及更高级别),所有父母和祖父母的兄弟姐妹(直至顶层页面)以及该页面的所有直接子代。

current page.

当前页面。

It can also be called by a function inside template files.

模板文件中的函数也可以调用它。

It includes a simple widget configuration panel.

它包括一个简单的小部件配置面板。

From this panel you can:

在此面板中,您可以:

    1. Determine whether the widget should appear on the home page
    2. 确定小部件是否应出现在主页上

    3. Override standard behavior and have the widget show all pages in the current section
    4. 覆盖标准行为,并让小部件显示当前部分中的所有页面

    5. Determine whether the widget should appear even if the section only has one page (the top level)
    6. 确定即使该部分只有一页(顶层),窗口小部件是否也应出现

    7. Provide a list of pages to exclude from the output
    8. 提供要从输出中排除的页面列表

    9. Determine whether the section navigation should still appear when viewing excluded pages
    10. 确定在查看排除的页面时是否仍应显示部分导航

    11. Use a specific widget title (i.e. In This Section), or just use the top level page title
    12. 使用特定的窗口小部件标题(即在本节中),或仅使用顶层页面标题

    13. Determine whether the section title should be linked
    14. 确定是否应链接章节标题

    15. Determine page sort order (defaults to menu order)
    16. 确定页面排序顺序(默认为菜单顺序)

    The widget uses standard WordPress navigation classes, in addition to a unique class around the widget, for easy styling.

    该窗口小部件除了使用围绕窗口小部件的唯一类之外,还使用标准的WordPress导航类,以简化样式。

    The UL of the page list also has a custom class, bsn-list, that can be altered via the bsn_list_class filter.

    页面列表的UL还具有一个自定义类 bsn-list ,可以通过 bsn_list_class 过滤器进行更改。

    Beginning with version 1.5, Better Section Navigation also incorporates the features of the defunct Exclude Pages plugin, giving you the

    从1.5版开始,“更好的部分导航”还合并了已失效的排除页面插件的功能,

    ability to selectively exclude specific pages from appearing in the widget generated by Better Section Navigation.

    选择性地将特定页面排除在由“更好的部分导航”生成的小部件中的功能。

    This per-page control is managed via a metabox on the post edit screen.

    此每页控件通过帖子编辑屏幕上的metabox进行管理。

    Note: On activation, BSN will automatically import the list of “excluded pages” set via that plugin, so you don’t have to manually re-assign excludes pages before deactivating the old one.

    注意:启用后,BSN会自动导入通过该插件设置的“排除页面”列表,因此您无需在停用旧页面之前手动重新分配排除页面。

    Compatible with WordPress Multisite.

    与WordPress Multisite兼容。

    This plugin started life as Simple Section Navigation Widget, but since that plugin hasn't been updated in

    此插件以 Simple Section Navigation Widget 开始,但由于该插件尚未在

    a while, we've taken up the reins with the goal of keeping it up to date with the latest WordPress conventions (ie getting rid of deprecation warnings) and adding a few nice-to-have features while retaining some of the simplicity of the

    一段时间以来,我们一直在努力控制目标,以使其与最新的WordPress约定保持最新(即摆脱过时的警告),并添加了一些不错的功能,同时保留了一些简单性。

    original plugin.

    原始插件。

安装步骤

    1. Install easily with the WordPress plugin control panel or manually download the plugin and upload the extracted folder to the /wp-content/plugins/ directory.
    2. 通过WordPress插件控制面板轻松安装,或手动下载插件并将提取的文件夹上传到 / wp-content / plugins / 目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Widget users can add it to the sidebar by going to the “Widgets” menu under “Appearance” and adding the “Better Section Navigation” widget.

    6. 窗口小部件用户可以通过以下方式将其添加到侧栏中:转到“外观”下的“窗口小部件”菜单,然后添加“更好的部分导航”窗口小部件。

      Open the widget to configure.

    7. 打开小部件进行配置。

    8. Template authors can call the navigation by using the better_section_nav function.

    9. 模板作者可以使用 better_section_nav 函数调用导航。

      The function accepts a single argument in the form of a classic WordPress set of parameters.

    10. 该函数接受经​​典WordPress参数集形式的单个参数。

    11. Users who want to display section navigation without adding a widget or editing a template can use the [better-section-nav] shortcode.
    12. 想要显示部分导航而不添加小部件或编辑模板的用户,可以使用 [better-section-nav] 短代码。

    Parameters

    参数

      • show_all – Always show all pages in current section (default: false)
      • show_all –始终显示当前部分中的所有页面(默认值:false)

      • exclude – Page IDs, seperated by commas, of pages to exclude (default: ”)
      • exclude –要排除的页面的页面ID,以逗号分隔(默认值:“”)

      • hide_on_excluded – No navigation on excluded pages (default: true)
      • hide_on_excluded –在排除的页面上不导航(默认:true)

      • show_on_home – Show top level page list on home page (default: false)
      • show_on_home –在主页上显示顶级页面列表(默认:false)

      • show_empty – Output even if empty section (default: false)
      • show_empty –即使部分为空也输出(默认:false)

      • sort_by – Page sort order;

      • sort_by –页面排序顺序;

        can use any WordPress page list sort value

        可以使用任何WordPress页面列表排序值

        (default: menu_order)

      • (默认:menu_order)

      • title – Provide a specific widget title;

      • title –提供特定的小部件标题;

        default is the top level page title

        默认为顶层页面标题

        (default: ”)

      • (默认:“”)

      • a_heading – Show all pages in section (default: false)
      • a_heading –显示部分中的所有页面(默认值:false)

      • before_widget – HTML before widget (default:
        )
      • before_widget –窗口小部件之前的HTML(默认值:

      • after_widget – HTML after widget (default:

)

  • after_widget –小部件后的HTML(默认:

  • before_title – HTML before widget (default:

    )

  • before_title –小部件之前的HTML(默认值:

  • after_title – HTML after widget (default:
  • )
  • after_title –小部件后的HTML(默认值:

    Example

    示例

    The following example will wrap the widget in LI tags, exclude page ID 2, and will output on home page.

    以下示例将小部件包装在LI标签中,不包括页面ID 2,并将在首页上输出。

    PHP function / template tag (use this in template files):

    PHP函数/模板标记(在模板文件中使用):

    &after_widget=

  • &exclude=2&show_on_home=1');

      <?php better_section_nav('before_widget = 
  • &after_widget = &exclude = 2&show_on_home = 1');

    ?>

    ?>

  • Shortcode (use this within the body of a Post/Page):

    短代码(在帖子/页面的正文中使用):

    [better-section-nav before_widget="
  • " after_widget="
  • " exclude="2" show_on_home="1"]

      [better-section-nav before_widget =“ 
  • ” after_widget =“ ” exclude =“ 2” show_on_home =“ 1”]

  • 下载地址
    https://downloads.wordpress.org/plugin/better-section-navigation.1.5.4.zip
    -EOF-

    AI助手支持GPT4.0


    国内超级便宜服务器

    摸鱼人热门新闻聚合

    钻级赞助商 我要加入

    开发者在线工具

    第三方支付技术请加QQ群

    相关文章
    [wordpress插件] Real Estate Agent房地产中介
    [wordpress插件] Canadian Nutrition Facts Label加拿大营养事实标签
    [wordpress插件] CampTix PayU Money GatewayCampTix PayU Money网关
    [wordpress插件] Agent virtuel ASKOMASKOM虚拟代理
    [wordpress插件] Disable Admin WP Cron Notice For UpdraftPlus停用UpdraftPlus的管理员WP Cron通知
    随便看看
    企业微信通讯录账号被管理员误/恶意删除,怎么办? 8098
    问题? 7424
    如何快速搭建抽奖助手小程序(无需代码知识) 5104
    许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6059
    小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5669
    我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5260
    如何解决渲染层网络错误Failed to load media? 16608
    小程序找号找回 释放昵称? 2461
    我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2539
    删除部分微信用户个人数据的通知,怎么删除? 5589