WordPress.org

Ready to get started?Download WordPress

Forums

Go Naked ! (13 posts)

  1. Mark (podz)
    Support Maven
    Posted 8 years ago #

    http://www.dustindiaz.com/naked-day/

    "That’s right, I’m starting the first annual CSS Naked Day. "

  2. Kafkaesqui

    Posted 8 years ago #

    Could we use a plugin for this?

    CSS Naked Day plugin:
    download plugin | view source

    To install, download css-naked.day.php, upload file to your plugin directory (wp-content/plugins/), and activate CSS Naked Day under Plugins in your WordPress installation.

    Notes:

    Plugin automatically "turns off" stylesheet in themes using bloginfo('stylesheet_url') to call style.css.

    For themes doing something else to load a stylesheet or ones calling additional stylesheets, use the plugin's is_Naked_Day() conditional function for testing in your templates. Examples:

    <?php if(!is_Naked_Day()) : ?>
    <link rel="stylesheet" type="text/css" href="/css/your_style_sheet.css" />
    <?php endif; ?>

    -----

    <?php if (is_Naked_Day()) { ?>
    <!-- It's Naked Day didn't ya know it See
    http://naked.dustindiaz.com for more
    information -->
    <?php } else { ?>
    <style type="text/css">
    <!--
    @import"/css/your_style_sheet.css";
    -->
    </style>
    <?php } ?>

    -----

    Finally, the plugin takes account of your GMT offset (Options > General, Date and Time 'differ by') when evaluating date/time. If you don't want or need this, locate $use_gmt_offset in the is_Naked_Day() function, and set its value to 0 (false).

  3. Kafkaesqui

    Posted 8 years ago #

    Version 1 was a little buggy in date calculation. 1.0.1 should work as expected.

  4. ladydelaluna
    Member
    Posted 8 years ago #

    Haha! Naked Day is on my birthday!!

    Wheeeeee!!!

  5. gregorsmith
    Member
    Posted 8 years ago #

    wait, we need a plugin to turn off a stylesheet? have we turned into gerbils?

  6. Kafkaesqui

    Posted 8 years ago #

    I don't know about you Gregor, but I certainly don't plan to make sure I'm hovering over my computer at 23:59:59 April 4th and the same time April 5th, readying to quickly ftp up differing versions of my header template, one sans stylesheet. That, my friend, is true gerbil behavior.

  7. Haha, sweet, but my current theme sadly doesn't do too well without CSS. Hopefully my next one will do better. :)

  8. IIIIIIIV
    Member
    Posted 8 years ago #

    It's easy enough to turn off CSS support in your browser if you really want to. Even IE has this functionality.

  9. Happy b-day ladydelaluna! I missed it by one day! Mine is today.

    (let's clink glasses over here in the corner while we watch the boys go naked.)

    Seriously, though, I think it's an awesome idea.

  10. ladydelaluna
    Member
    Posted 8 years ago #

    LOL andrea! make mine a cosmo, and happy birthday to you! :)

  11. Anne-Marie
    Member
    Posted 8 years ago #

    Happy b-day to andrea-r and in a few hours to you to ladydelaluna...hehehe like the clink glasses in the corner idea.

    As for getting naked...I'm in :)

  12. ladydelaluna
    Member
    Posted 8 years ago #

    :) thanks caramella :)

  13. BigDog
    Member
    Posted 8 years ago #

    I tried the contact form at the site but it would not work so here is my official notice,
    I'm in (if I don't crash something along the way).
    BD

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.