[wordpress插件] Advanced Footnotes高级脚注

wordpress 插件 文章 2020-02-07 23:00 697 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

Advanced Footnotes lets you add footnotes on articles via shortcodes.

高级脚注使您可以通过简码在文章上添加脚注。

Advanced Footnotes is is extremely customizable, therefore it can be implemented on any theme.

高级脚注非常可定制,因此可以在任何主题上实现。

With its internal functions, you can also implement Advanced Footnotes on your own theme in any form you like.

凭借其内部功能,您还可以按照自己喜欢的任何形式在自己的主题上实现高级脚注。

Main Features:

主要功能:

    • Easy & flexible implementation.
    • 轻松灵活的实施方式。

    • Implemented WYSIWYG editor button.
    • 已实现的所见即所得编辑器按钮。

    • Footnotes can be implemented with shortcode or function.
    • 脚注可以使用简码或功能实现。

    • Animated scroll effect (can be disabled)
    • 动画滚​​动效果(可以禁用)

    • Lightweight CSS (can be disabled)
    • 轻量级CSS(可以禁用)

    • Custom CSS styling
    • 自定义CSS样式

    • Dynamically changeable interface options (JS can be fully disabled)
    • 可动态更改的界面选项(可以完全禁用JS)

    Usage

    用法

    Inserting a Footnote:

    插入脚注:

    In order to insert a footnote, you can either use the “Insert Footnote” button added on your WYSIWYG editor, or use the [footnote]your-footnote-here[/footnote] shortcode.

    要插入脚注,您可以使用所见即所得编辑器中添加的“插入脚注”按钮,也可以使用[footnote]您的脚注此处[/ footnote]短代码。

    Shortcode Parameters:

    简码参数:

    “type”: Determines the type of the reference.

    “类型”:确定引用的类型。

    Options: numeric / non-numeric.

    选项: 数字 / 非数字

    Listing Footnotes:

    列出脚注:

    You can display the footnotes in two methods:

    您可以通过两种方法显示脚注:

    Listing by Shortcode:

    按简码列出:

    By simply inserting the [footnotes] shortcode in your post content, you can display footnotes wherever you want in your posts.

    只需在帖子内容中插入 [脚注] 短代码,就可以在帖子中的任何位置显示脚注。

    Shortcode Parameters:

    简码参数:

    “title”: Determines the title for the footnotes list.

    “标题”:确定脚注列表的标题。

    Default value can be set through plugin settings.

    可以通过插件设置来设置默认值。

    Shortcode Usage:

    简码用法:

    [footnotes title="My Custom Footnotes Title"]

      [footnotes title =“我的自定义脚注标题”]

    // or

    // 要么

    [footnotes title="false"]

    [脚注title =“ false”]

    Listing by Theme Inclusion:

    按主题包含列出:

    You can print the footnotes by calling print_refs function from the advanced_footnotes class.

    您可以通过调用advanced_footnotes类中的 print_refs 函数来打印脚注。

    Simple Function Usage:

    简单功能用法:

    call_user_func(array('advanced_footnotes', 'print_refs'));

      call_user_func(array('advanced_footnotes','print_refs'));;

    Additional Parameters:

    其他参数:

      • First parameter: “Print”, whether print or return the footnotes content.

      • 第一个参数:“打印”,是打印还是返回脚注内容。

        (Default: “true”)

      • (默认:“ true”)

      • Second parameter: “Title”, determines the title for the footnotes content.

      • 第二个参数:“标题”,确定脚注内容的标题。

        (Default: “false”)

      • (默认:“ false”)

      Function Usage with Parameters:

      带参数的功能用法:

      $footnotes = call_user_func_array(array('advanced_footnotes', 'print_refs'), array(false, 'Custom Footnotes Title'));

      Plugin Options:

        $ footnotes = call_user_func_array(array('advanced_footnotes','print_refs'),array(false,'Custom Footnotes Title')); 

      插件选项:

      You can access the plugin options through “Options/Advanced Footnotes”.

      您可以通过“选项/高级脚注”访问插件选项。

        • Include Plugin CSS: Determines whether to include the default plugin css files.

        • 包括插件CSS :确定是否包括默认插件css文件。

          Disable this if you want to re-style the plugin within your theme.

        • 如果要在主题中重新设置插件样式,请禁用此功能。

        • Custom CSS: Provides a field for custom CSS styling.
        • 自定义CSS:提供用于自定义CSS样式的字段。

        • Include Plugin JS: Determines whether to include the plugin javascript files on the theme output.

        • 包括插件JS :确定是否在主题输出中包括插件javascript文件。

          Disable this if you want to customize plugin interactions or just to use native HTML anchors.

        • 如果要自定义插件交互或仅使用本机HTML锚点,请禁用此选项。

        • Default Title for Footnotes: Sets the default title used on the “[footnotes]” shortcode.
        • 脚注的默认标题:设置在“ [footnotes]”短代码上使用的默认标题。

        • Footnote Symbol: Sets the symbol used for non-numeric footnotes.
        • 脚注符号:设置用于非数字脚注的符号。

        • Disable JS Options: Determines whether to apply options to the plugin JS files or not.
        • 禁用JS选项::确定是否将选项应用于插件JS文件。

        • Footnotes Scroll Gap: This sets the scroll margin when clicked on a footnote.

        • 脚注滚动间隙:设置单击脚注时的滚动裕度。

          Set this when you have a fixed header or any other element blocking some part of the window area.

        • 当您有固定的标题或任何其他阻塞窗口区域某些部分的元素时,请进行设置。

        • Footnote Scroll Speed: Sets the animation speed when a footnote is clicked.

        • 脚注滚动速度:设置单击脚注时的动画速度。

          Set 0 for no animation.

        • 设置为0表示没有动画。

        HTML Structure & Classes

        HTML结构和类

        Anchors:

        锚点:

        Numeric Anchor:

        数字锚点:

        {number

          {编号

        - automatically incremented by the order}

        -自动按顺序递增}

        Non-numeric Anchor:

        非数字锚点:

          

        footnote symbol

        脚注符号

        References:

        参考文献:

        Non-numbered references are listed before the numbered references on the list.

        未编号的参考文献在列表中的编号参考文献之前列出。

          <!-主容器->

            

            

            

        <!-标题->    

        {Title}

            

        {标题}     

            

        <!-参考文献列表->    

        Known Issues

        已知问题

安装步骤

Install and activate Advanced Footnotes like any other plugin.

像其他任何插件一样,安装并激活高级脚注。

下载地址

https://downloads.wordpress.org/plugin/advanced-footnotes.zip

https://downloads.wordpress.org/plugin/advanced-footnotes.zip

-EOF-

AI助手支持GPT4.0