Linux 软件免费装

CSS Naked Day

开发者 ajalapus
更新时间 2008年4月4日 10:37
捐献地址: 去捐款
PHP版本: 2.1 及以上
WordPress版本: 2.1.3

标签

css formatting design stylesheets naked day

下载

1.0 1.1 1.1.1 1.1.2 1.0.1

详情介绍:

The idea behind CSS Naked Day is to promote Web Standards. Plain and simple. This includes proper use of (X)HTML, semantic markup, a good hierarchy structure, and; well, a fun play on words. I mean, who doesn't want to get naked? —Dustin Diaz, Founder of CSS Naked Day
This CSS Naked Day plugin automatically strips off the following code from your site without you having to edit your themes: Since version 1.1, you have an option to activate it during the recommended worldwide 48-hour CSS Naked Day period, or just the local 24-hour period. For more information about the event, visit: The Official CSS Naked Day Page.

安装:

First Time Installation
  1. Upload css-naked-day.php to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Select configuration options in the Options » CSS Naked Day page.
  4. Wait until the 5th of April for the Plugin to strip your site naked.
Step 3 is optional. Upgrading to the latest bug fix (versions 1.1/1.1.1 to 1.1.2)
  1. Upload css-naked-day.php to the /wp-content/plugins/ directory replacing the old file.
  2. Activate the plugin through the 'Plugins' menu in WordPress if you haven't already.
  3. Wait until the 5th of April for the Plugin to strip your site naked.
Upgrading 1.0.x to 1.1.x If you already have installed CSS Naked Day plugin with version prior to 1.1, follow the steps below.
  1. Deactivate the outdated plugin.
  2. Delete the old plugin file from the /wp-content/plugins/ directory.
  3. Upload the new version of the plugin.
  4. Activate the plugin through the 'Plugins' menu in WordPress.
  5. Select configuration options in the Options » CSS Naked Day page.
  6. Wait until the 5th of April for the Plugin to strip your site naked.
Steps 1 and 2 ensures the new plugin has been activated with options. Step 5 is optional.

常见问题:

What differences does this plugin have compared to other CSS Naked Day plugins?

  1. This plugin removes all CSS stylesheets from the page before it sends the data to the viewers' browsers.
  2. It doesn't use client-side scripting to remove styles, which may be turned off or unsupported in other browsers, so everyone would see your page in its natural, naked form.
  3. It doesn't require the user to edit his/her theme files.

How could I display a message only on the 5th of April telling why my site is naked?

Use the is_naked_day() function inside an if () block. is_naked_day() returns true when it is April 5, otherwise it returns false. Example: <?php if (is_naked_day()) { ?> Message why my site is naked. <?php } ?>