Css Naked Day ‘07
siete pronti a spogliarvi?
il 5 aprile sarà il giorno del css naked day.
noi probabilmente (se diego è d'accordo) svestiremo qualche nostro blog, chi farà lo stesso?
è abbastanza semplice:
basta inserire la funzione is_naked_day()
PHP:
e il seguente codice al posto del link al css (previo cambiare percorso del file, ovviamente)
PHP:
-
<?php
-
if ( is_naked_day() ) {
-
echo "<!--
-
It's Naked Day didn't ya know it
-
See http://naked.dustindiaz.com for more information
-
-->";
-
}
-
else {
-
?>
-
<style type="text/css">
-
<!--
-
@import"/css/your_style_sheet.css";
-
-->
-
</style>
-
<?php
-
}
-
?>
eventualmente si può anche inserire questo per spiegare ai propri utenti cos'è successo:
CODE:
-
<h3>What happened to the design?</h3>
-
<p>To know more about why styles are disabled on this website visit the
-
<a href="http://naked.dustindiaz.com" title="Web Standards Naked Day Host Website">
-
Annual CSS Naked Day</a> website for more information.</p>
se invece usate wordpress c'è il naked day plugin
edit
se avete 10000 css caricati da dei plugin c'è anche naked day plugin noscript

mi sembra un’iniziativa interessante e per me si può aderire…