[ Index ]

PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10)

title

Body

[close]

/template/inc_script/frontend_init/disabled/ -> inject_body_id.php (source)

   1  <?php
   2  
   3  /*
   4  
   5     just a sample how to inject body ID - i.e. to allow specific CSS based things (or JavaScript stuff too)....
   6     if you define $content['body_id'] = FALSE body tag injection will be hopped
   7  
   8     sample will set body tag injection based on "main structure"
   9     if it is in home it will fall back to
  10     
  11   */
  12  
  13  if(isset($LEVEL_ID[1])) { // lets say it is the main structure root
  14  
  15      $content['body_id'] = $LEVEL_ID[1];
  16      
  17  } else { // do nothing 
  18  
  19      $content['body_id'] = false;
  20  
  21  }
  22  
  23  ?>


Generated: Tue Nov 16 22:51:00 2010 Cross-referenced by PHPXref 0.7