[wordpress插件] DeMomentSomTres Grid ArchiveDeMomentSomTres网格存档

wordpress 插件 文章 2020-04-15 10:10 425 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Displays archives in a month grid with post counts for each month, with yearly and grand totals, and shows titles and comment counts for all posts.

在一个月的网格中显示存档,其中每个月的帖子数以及年度和总计,并显示所有帖子的标题和评论数。

I used some years ago The French Archives but it wasn’t mantained anymore so I decided to update it and to base it in shortcode.

几年前,我曾经使用过法国档案馆,但现在已经不再使用了,因此我决定对其进行更新,并以简码为基础。

Shows monthly post counts, year totals, and a grand total in a grid/table format, with links to month and year archives.

以表格/表格格式显示每月的帖子数,年份总数和总计,以及指向月份和年份档案的链接。

Like this (see also the screenshot!):

像这样(另请参见屏幕截图!):

      Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

 一月二月三月四月五月五月六月七月八月九月十月十一月十二月

2010 2 4 2 21 4 2 3 38

2010 2 4 2 21 4 2 3 38

2009 2 7 5 5 3 1 9 3 5 5 7 5 57                                                        

2009 2 7 5 5 3 1 9 3 5 5 7 5 57                                                        

95

95

If posts all fall within one calendar year, the grand total won’t be shown.

如果所有帖子均属于一个日历年,则不会显示总计。

(The trailing table row will remain.)

(尾随行将保留。)

Call from content with the shortcode [DeMomentSomTres-Grid-Archive]

使用短代码[DeMomentSomTres-Grid-Archive]从内容中调用

Two optional parameters:

两个可选参数:

    • $style = 'abbr'
    • $ style ='abbr'

    • $first_header = 'Monthly'
    • $ first_header ='Monthly'

    By default for $style, will show month abbreviations (abbr) in the header row, e.g.

    默认情况下, $ style 会在标题行中显示月份缩写( abbr ),例如

    “Jan” and “Feb”.

    “ Jan”和“ Feb”。

    Can also show first 'initial', e.g.

    也可以显示第一个'initial',例如

    “J” and “F”, and 'numeric'.

    “ J”和“ F”,以及“数字”

    (abbr and initial use `wp-config.php locale.)

    abbr initial 使用`wp-config.php语言环境。)

    You can change the first header row from the default of “Monthly”, or remove it altogether by passing in an empty string.

    您可以将默认的“每月”更改为第一行标题,也可以通过传入空字符串将其完全删除。

    It is based on Rob Marsh's “Compact Monthly Archive” (which was based on <

    它基于罗布·马什(Rob Marsh)的“紧凑型月度档案” (基于<

    a href="http://justinblanton.com/projects/smartarchives/" rel="nofollow">Justin Blanton's “Smart Archive”), and display a list of all posts, based on template code by Wessley Roche.

    http://wpguy.com/articles/an-archives-page-with-all-the-posts-in-cronologic-order/“ rel =” nofollow“> Wessley Roche的模板代码。

    >

    >

安装步骤

    1. Use plugin usual installation process.
    2. 使用插件的常规安装过程。

下载地址
https://downloads.wordpress.org/plugin/demomentsomtres-grid-archive.zip
-EOF-

AI助手支持GPT4.0