[wordpress插件] Colorized Weekend彩色周末

wordpress 插件 文章 2020-03-27 20:40 445 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Replacable function ‘the_time_colored()’ works exactly same as original fuction ‘the_time()’ but it adds span tag with color code and classes before its string so you can modify its color by using with control panel.

可替换的功能'the_time_colored()'与原始功能'the_time()'完全相同,但是它在其字符串之前添加了带有颜色代码和类别的span标签,因此您可以通过与控制面板一起使用来修改其颜色。

This function also adds class names for each span tags so not only weekend, you can add CSS to color them.

此功能还为每个span标签添加了类名,因此,不仅在周末,还可以添加CSS为它们着色。

安装步骤

Place the file in your /wp-content/plugins/ directory and activate through the administration panel.

将文件放在/ wp-content / plugins /目录中,并通过管理面板激活。

After that, modify ‘the_time()’ function to ‘the_time_colored()’.

然后,将“ the_time()”功能修改为“ the_time_colored()”。

*no need to modify its arguments.

*无需修改其参数。

Then at control panel, turn each switch on.

然后在控制面板上,打开每个开关。

下载地址
https://downloads.wordpress.org/plugin/colorized-weekend.zip
-EOF-

AI助手支持GPT4.0