Linux 软件免费装

BGColor Setter

开发者 grigori991
更新时间 2013年3月26日 01:14
PHP版本: 2.8 及以上
WordPress版本: 3.5.1
版权: GPLv2
版权网址: 版权信息

标签

widget cookie wordpress blog color background

下载

1.0

详情介绍:

Plugin registeres simple widget within wordpress blog, that allows any visitor to change background color of theme. Actually it doesn't change theme's css file, but renders some style tag to user browser, that change the color locally. New background color associates only with user, that setted the color, and it tracks from 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. Otherwise, cookie deletes itself after 30 days. Widget uses 4 'web-safe' colors - #00FF00 (lime), #00FFFF (bluegreen), #9933FF (violet) and FF0033(rose).

安装:

  1. Upload 'bgcolor_setter.php' and 'functions.js' files to '/wp-content/plugins/'
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Add BGColor Setter widget to sidebar and enter its title

升级注意事项:

1.0 Recent version. No upgrade requires.

常见问题:

I want to add custom colors to widget. Is it possible?

Yes, it's possible. You should edit .php and .js files for that. Code in those files is well-commented and you shouldn't have any problems.

更新日志:

1.0