Posted By

johncionci on 11/18/10


Tagged

php drupal


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Onfire60
zack


Drupal Body Classes - Based on Paul Irish Script


 / Published in: PHP
 

  1. <!--[if IE 6 ]> <body class="<?php print $body_classes; ?> <?php if($front_page) { print "iesix front-iesix"; } else { print "iesix"; } ;?>"> <![endif]-->
  2. <!--[if IE 7 ]> <body class="<?php print $body_classes; ?> <?php if($front_page) { print "ieseven front-ieseven"; } else { print "ieseven"; } ;?>"> <![endif]-->
  3. <!--[if IE 8 ]> <body class="<?php print $body_classes; ?> <?php if($front_page) { print "ieeight front-ieeight"; } else { print "ieeight"; } ;?>"> <![endif]-->
  4. <!--[if IE 9 ]> <body class="<?php print $body_classes; ?> <?php if($front_page) { print "ienine front-ienine"; } else { print "ienine"; } ;?>"> <![endif]-->
  5. <!--[if !IE]>--> <body class="<?php print $body_classes; ?>"> <!--<![endif]-->

Report this snippet  

You need to login to post a comment.