Posted By

dottDesign on 11/16/10


Tagged

textmate wordpress dynamic id body


Versions (?)

Wordpress Dynamic Body ID


 / Published in: Other
 

  1. <?php
  2. $url = explode('/', $_SERVER['REQUEST_URI']);
  3. $dir = $url[1] ? $url[1] : 'home';
  4. ?>
  5.  
  6. </head>
  7. <body id="<?php echo $dir ?>"><?php bf_top(); ?>
  8.  

Report this snippet  

You need to login to post a comment.