[wordpress插件] BGColor SetterBG色彩设定器

wordpress 插件 文章 2020-03-04 14:00 509 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Plugin registeres simple widget within wordpress blog, that allows any visitor to change background

插件在wordpress博客中注册一个简单的小部件,允许任何访问者更改背景

color of theme.

主题的颜色。

Actually it doesn’t change theme’s css file, but renders some style tag to user

实际上,它不会更改主题的css文件,但会向用户呈现一些样式标签

browser, that change the color locally.

浏览器,可以在本地更改颜色。

New background color associates only with user, that setted the color, and it tracks from cookie.

新的背景色仅与设置了该颜色的用户相关联,并且从cookie进行跟踪。

So, if first visitor sets background color to ‘Rose’, second visitor can choose ‘Lime’ and third can

因此,如果第一位访客将背景颜色设置为“玫瑰”,则第二位访客可以选择“石灰”,第三位可以选择

leave that attribute to default and everyone get what they want at same time.

将该属性保留为默认值,每个人都可以同时获得所需的内容。

If blog visitor sets background color to ‘Default’, browser explicitly deletes the cookie.

如果博客访问者将背景颜色设置为“默认”,则浏览器会明确删除Cookie。

Otherwise,

否则,

cookie deletes itself after 30 days.

Cookie将在30天后删除。

Widget uses 4 ‘web-safe’ colors – #00FF00 (lime), #00FFFF (bluegreen), #9933FF (violet) and

窗口小部件使用4种“网络安全”颜色-#00FF00(石灰),#00FFFF(蓝绿色),#9933FF(紫色)和

FF0033(rose).

FF0033(玫瑰)。

安装步骤

    1. Upload ‘bgcolor_setter.php’ and ‘functions.js’ files to ‘/wp-content/plugins/’
    2. 将“ bgcolor_setter.php”和“ functions.js”文件上传到“ / wp-content / plugins /”

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

    5. Add BGColor Setter widget to sidebar and enter its title
    6. 将BGColor Setter小部件添加到边栏中并输入其标题

下载地址
https://downloads.wordpress.org/plugin/bgcolor-setter.1.0.zip
-EOF-

AI助手支持GPT4.0