No style, no design, not even Javascript or Flash, just the raw information. April 5th is the Annual CSS Naked Day. On this day this site will be without any style. This is all in an effort to promote web standards and good semantic markup. Its a day when web sites can show us what they are made of, the raw unstyled information. This is done in an effort to promote semantic and well formed markup and there will be a few design changes happening as a result. After all, as the entire point is to demonstrate good standards, why not make the good even better ?
Absalom Media is probably the first Joomla! based site to participate in the naked festivities, so here's what you need to do if you're Joomla! or Mambo based and want to join in from now on.
- Find your index.php file for your template
- Open it up in some form of web editor (Notepad, Textmate, Dreamweaver, Homesite)
- Find:
<?php if ($my->id) {
include ("editor/editor.php");
initEditor();}?> - Add the following code after it:
<?php
$start = date('U', mktime(-12,0,0,04,05,date(Y)));
$end = date('U', mktime(36,0,0,04,05,date(Y)));
$now = time();
if ( $now >= $start && $now <= $end ) {
?>
<?php }
else {
?> - Move all your CSS and Javascript to be directly after this new code i.e
<link rel="stylesheet" href="templates/blah/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="templates/blah/css/menu.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="templates/blah/css/print.css" type="text/css" media="print" />
Don't include items like textresizing Javascript or the RSS alternate link as part of the header in here, either. It would be bad to lose the feed from your site as part of this. - Close off the logic with the following code:
<?php }
?> - Save and upload.
blog comments powered by Disqus
