Drupal Body Classes - Based on Paul Irish Script


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.