CSS Naked Day

Commenta 5th March , 2008

Download

Wordpressplugin.org 2008

  • Version: 1.1.2
  • Other Versions
  • Last Updated: 2007-10-17
  • Requires WordPress Version: 2.1 or higher
  • Compatible up to: 2.1.3
  • Author Homepage
  • Plugin Homepage ;
  • Donate to this plugin
  • Author: Aja Lorenzo Lapus

    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:

    • X(HT)ML stylesheet directives: <?xml-stylesheet … ?>
    • (X)HTML stylesheet references: <link rel="stylesheet" … /> or <link rel='stylesheet' … />
    • (X)HTML embedded stylesheets: <style> … </style>
    • (X)HTML inline stylesheets: style="…" or style='…'

    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.

    firefox safe browner at 2008

    Download

    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.

    firefox safe browner at 2008

    Download

    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 } ?>

    firefox safe browner at 2008

    Download

    No screenshots available for this plugin

    firefox safe browner at 2008

    Download

    Known Issues

    Unresolved

    The plugin would also delete occurences of inline styles (style="") that are intended as text and not as the
    attribute for styling markup itself. For example, in CSS tutorial pages.

    Resolved in version 1.1.2

    In versions prior to 1.1.2, the plugin would cause errors for some inline styles that have escaped quotation marks of
    the same type as the attribute value delimiter.

    For example:

    style=”font-family:\”Lucida Grande\”,\”Lucida Sans Unicode\”,sans-serif;”

    … would leave …

    Lucida Grande\”,\”Lucida Sans Unicode\”,sans-serif;”

    … in the markup, as the regular expression could only remove code from the style attribute only up to the first
    matching quotation mark without regard to the escaped ones.

    firefox safe browner at 2008

    Download


    Copyright © 2007
    Dieser Feed ist nur für den persönlichen, nicht gewerblichen Gebrauch bestimmt.
    Eine Verwendung dieses Feeds auf anderen Webseiten verstößt gegen das Urheberrecht. Wenn Sie diesen Inhalt nicht in Ihrem News-Reader lesen, so macht sich die Seite, die Sie betrachten, der Urheberrechtsverletzung schuldig. (digitalfingerprint: )

    ShareThis


    © admin for wordpress plugin, 2008. |
    Permalink |
    No comment

    Add to del.icio.us

    Search blogs linking this post with Technorati

    Want more on these topics ? Browse the archive of posts filed under Formatting.

    Read it at the source

Lascia un Commento