[wordpress插件] 3pagination3分页

wordpress 插件 文章 2020-01-21 22:20 567 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

Give your visitors the ability to easily access all your site’s content.

使访问者能够轻松访问您网站的所有内容。

Any page between 1 and 999 can be accessed with a maximum of 3 clicks (see screenshots).

最多3次点击即可访问1到999之间的任何页面(请参见屏幕截图)。

    • Easy access to all your website’s content
    • 轻松访问您网站的所有内容

    • Make searchengines happy by creating a more thorough internal linking structure
    • 通过创建更彻底的内部链接结构使搜索引擎感到满意

    • No need to modify theme files!

    • 无需修改主题文件!

      (see installation instructions)

    • (请参阅安装说明)

    • Modify labels and CSS and preview pagination in backend before using it in your frontend pages!
    • 在前端页面中使用标签和CSS之前,请先修改后端的标签和CSS!

    • Both default and pretty permalink structure are supported
    • 支持默认链接和漂亮的永久链接结构

    • Custom queries are supported
    • 支持自定义查询

    • So far, this code has been tested on index, archive, custom post type archive, category and search pages of some of the most popular WordPress themes.
    • 到目前为止,此代码已经在一些最受欢迎的WordPress主题的索引,存档,自定义帖子类型存档,类别和搜索页面上进行了测试。

    Please leave feedback, bug reports or comments at https://github.com/paddelboot/3pagination/issues

    请在https://github.com/paddelboot/3pagination/issues上留下反馈,错误报告或评论

    Homepage: http://meilenstein.ms

    主页:http://meilenstein.ms

    A brief Markdown Example

    一个简短的Markdown示例

    <代码> <?php if(class_exists('threepagination')):threepagination :: draw();

    endif;

    万一;

    ?>

    ?>

    Translations

    翻译

      • English
      • 英语

      • German
      • 德语

安装步骤

Installation

安装

    1. Upload 3pagination.php to the /wp-content/plugins/ directory OR choose Plugins->Add New and type “3pagination”

    2. 3pagination.php 上载到 / wp-content / plugins / 目录,或选择 Plugins-> Add New 并输入“ 3pagination”

      .

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

    5. Go to Settings->3pagination to set labels, placement and CSS.
    6. 转到 Settings-> 3pagination 设置标签,位置和CSS。

    7. Done!
    8. 完成!

    How to use

    使用方法

    All options can be set in an options page, the pagination container can be injected or appended to the existing DOM.

    所有选项都可以在选项页面中设置,分页容器可以注入或附加到现有DOM。

    If you are unsure about the HTML structure of your Website, you can do the following (in Firefox):

    如果不确定网站的HTML结构,可以执行以下操作(在Firefox中):

      1. Right click the spot where you wish the pagination to appear and choose `Inspect Element (Q)` from the menu list
      2. 右键单击希望出现分页的位置,然后从菜单列表中选择“检查元素(Q)”

      3. Copy the id of the container, i.e. #wrapper.someclass
      4. 复制容器的ID,即#wrapper.someclass

      5. To append or prepend the pagination to this container, paste it’s id into the appropriate field of the Placement section under `Settings->3pagination`
      6. 要将分页附加或添加到此容器之前,请将其ID粘贴到“设置”->“ 3pagination”下的“放置”部分的相应字段中。

      7. Choose on which pages (archives, search etc.) the pagination should appear.

      8. 选择应在哪些页面上显示分页(存档,搜索等)。

        Done!

      9. 完成!

      How to use – old school

      使用方法–老学校

      You can, if you want (or to have your website degrade gracefully), call the class methods in your theme files.

      如果需要(或使网站正常降级),可以在主题文件中调用类方法。

      draw() : Display the pagination
          

      draw():显示分页
          

      draw ( $pretty = TRUE, $max_num_pages = FALSE, $labels = TRUE, $css = ‘classic’, $wp_query = FALSE )

      绘制($ pretty = TRUE,$ max_num_pages = FALSE,$ labels = TRUE,$ css ='classic',$ wp_query = FALSE)

        • $pretty (optional) |

        • $ pretty(可选)|

          Are you using pretty permalinks?

        • 您是否在使用漂亮的永久链接?

        • $max_num_pages (optional) |

        • $ max_num_pages(可选)|

          Limit to a maximum number of pages

        • 限制为最大页面数

        • $labels (optional) |

        • $ labels(可选)|

          Display or not the navigation arrows

        • 显示或不显示导航箭头

        • $css (optional) |

        • $ css(可选)|

          CSS class name that will be appended to the main div container

        • 将添加到主div容器的CSS类名称

        • $wp_query (optional) |

        • $ wp_query(可选)|

          custom WP query object

          自定义WP查询对象

        get() : Return the pagination as a HTML string
            

        get():将分页作为HTML字符串返回
            

        get ( $pretty = TRUE, $num_items = FALSE, $per_page = FALSE, $labels = TRUE, $css = ‘classic’, $wp_query = FALSE )

        get($ pretty = TRUE,$ num_items = FALSE,$ per_page = FALSE,$ labels = TRUE,$ css ='classic,$ wp_query = FALSE)

        Example usages

        用法示例

        threepagination::draw ( TRUE, FALSE, FALSE, 'my_custom_class', FALSE )

          threepagination :: draw(TRUE,FALSE,FALSE,'my_custom_class',FALSE)

        Displays the pagination on a website that uses pretty urls, takes the standard page count, hides the navigation arrows, attributes a CSS class ‘my_custom_class’ to the pagination container and uses the global query object.

        在使用漂亮网址的网站上显示分页,获取标准页面数,隐藏导航箭头,将CSS类“ my_custom_class”分配给分页容器并使用全局查询对象。

        $string = threepagination::get ()

          $ string = threepagination :: get()

        Save the pagination in the $string var.

        将分页保存在 $ string 变量中。

下载地址

https://downloads.wordpress.org/plugin/3pagination.zip

https://downloads.wordpress.org/plugin/3pagination.zip

-EOF-

AI助手支持GPT4.0