Absalom Media : providing - High speed design : Style forming Substance : Mambo Solutions : Content Refinement : New media Templates : Website Management : Workflow Analysis : Mambo Tutorials : CMS Support : Joomla! Development

Wednesday, 21 May 2008

Design is a better idea.

 :: 
 :: 
Home arrow Services arrow News arrow Design arrow Anything but bashful

Absalom Media provides leading edge technological solutions in the online marketplace, primarily dealing with web standards, usability and accessibility to our clients across the world. We have also produced definitive Joomla! & Mambo template tutorials, covering the art of CSS design. With a focus on web standards and high speed design, try us out today.

Anything but bashful

Written by Lawrence
Tuesday, 03 April 2007
It's time to get naked..

No style, no design, not even Javascript or Flash, just the raw information. April 5th is the . 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.

  1. Find your index.php file for your template
  2. Open it up in some form of web editor (Notepad, Textmate, Dreamweaver, Homesite)
  3. Find:

    <?php    if ($my->id) {
            include ("editor/editor.php");
            initEditor();}?>
  4. 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 {
        ?>
  5. 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.
  6. Close off the logic with the following code:

     <?php }      
    ?>
  7. Save and upload.
Your Joomla or Mambo template is now naked for the entire day, from now until the end of the Internet, for the full 48 hours across the world. Absalom Media is running a slight variant for localisation purposes.
 
Share:
Delicious
Furl it!
digg
BlinkList
blogmarks
De.lirio.us
Fark
Ma.gnolia
NewsVine
Reddit
YahooMyWeb
View blog reactions
Get joomla! support=
 ::   :: 
 :: 
Joomla! Feed
Mambo Feed
Music Feed
 :: 
Add to Technorati Favorites
 :: 
 :: 
Text Link Ads
 :: 
Joomla Exchange - Joomla CMS Rankings Topsites
 :: 
Generated in 0.25052 Seconds