[wordpress插件] 3pagination3分页

wordpress 插件 文章 2020-01-21 22:20 562 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


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] CSS Ready Classes for Gravity Forms重力形式的CSS Ready类
[wordpress插件] Delivery Management For WoocommerceWoocommerce的交付管理
[wordpress插件] Dicm.dk &#8211; Change usernameDicm.dk –更改用户名
[wordpress插件] Client Dash WP Help Add on客户端Dash WP帮助添加
[wordpress插件] Auto Translator for WPMLWPML自动翻译器
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 7992
问题? 7224
如何快速搭建抽奖助手小程序(无需代码知识) 5016
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 5968
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5492
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5189
如何解决渲染层网络错误Failed to load media? 16544
小程序找号找回 释放昵称? 2412
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2491
删除部分微信用户个人数据的通知,怎么删除? 5530