[wordpress插件] Compact Monthly Archive每月精简档案

wordpress 插件 文章 2020-03-29 16:10 463 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

If your blog is over a year or two old, you may have noticed the list of archive pages is getting unwieldy.

如果您的博客已有一两年以上的历史,那么您可能已经注意到存档页面列表变得笨拙。

This plugin is a widget that compresses the size of the arcgives list to two lines per year (three if the lines are narrow) rather than one line per per month

此插件是一个小部件,可以将arcgives列表的大小压缩为每两行(如果行很窄则为三行),而不是每个 month 一行

.

More information

更多信息

This widget is licensed under GPLv3.

此小部件已获得 GPLv3 许可。

Grateful thanks to Alan Morgan whose widget_archives2 I used as a template.

感谢艾伦·摩根(alan Morgan),我将其widget_archives2用作模板。

Potential developers should check out the development history<

潜在的开发人员应查看开发历史<

/a>.

/ a>。

Finally, an obligatory plug for my blog, OddThinking.

最后,我的博客奇怪的思维的必填项。

安装步骤

    1. Upload plugin-name.php to the /wp-content/plugins/ directory.
    2. plugin-name.php 上载到 / wp-content / plugins / 目录。

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

    5. Find the Widgets page (under Presentation in WordPress 2.0-2.3, but there are rumours that it is moving in WordPress 2.4.)
    6. 找到“窗口小部件”页面(在WordPress 2.0-2.3中的“演示”下,但是有传言称它在WordPress 2.4中正在移动。)

    7. Drag the Compact Monthly Archives into your preferred location.
    8. 将精简版每月存档拖到您的首选位置。

    9. Click on the icon on the right on the Compact Monthly Archives and set the title.

    10. 单击Compact月度存档中右侧的图标并设置标题。

      (Default is “Archives”.)

    11. (默认值为“存档”。)

    12. Modify the CSS of the theme to taste, using any of the following styles:

    13. 使用以下任何一种样式来修改主题的CSS以使其具有品味:

        • STO_cma_archive_list – this is applied to the ul tag that covers the entire calendar, apart from the title.
        • STO_cma_archive_list –它应用于 ul 标记,该标记除了标题外还覆盖了整个日历。

        • STO_cma_line – this applies to the li tag that represents each year.
        • STO_cma_line –适用于代表每年的 li 标签。

        • STO_cma_month – this applies to each letter that represents a month.
        • STO_cma_month –适用于代表一个月的每个字母。

        • STO_cma_link – this applies to each month that includes an article (and is, hence, a link.)
        • STO_cma_link –适用于包含文章(因此是链接)的每个月。

        • STO_cma_empty – this applies to each month that is empty (and is, hence, not a link)
        • STO_cma_empty –适用于每个空的月(因此不是链接)

        • STO_cma_zwsp – this applies to the whitespace gap between June and July.

        • STO_cma_zwsp –这适用于6月到7月之间的空白。

          You may like to make it narrow.

        • 您可能希望将其缩小。

    Here is an example:

    这里是一个例子:

    .STO_cma_month a {    

      .STO_cma_month a {    

    line-height: 1.2em;    

    行高:1.2em;    

    padding: 0.2em;

    填充:0.2em;

    }

    }

    .STO_cma_empty{    

    .STO_cma_empty {    

    color: #4984E3;    

    颜色:#4984E3;    

    line-height: 1.2em;    

    行高:1.2em;    

    padding: 0.2em;

    填充:0.2em;

    }

    }

    You almost certainly will want to change the example style to fit your theme.

    几乎可以肯定,您将希望更改示例样式以适合您的主题。

下载地址
https://downloads.wordpress.org/plugin/compact-monthly-archive-widget.1.0.zip
-EOF-

AI助手支持GPT4.0