Logo Search packages:      
Sourcecode: bamboo version File versions  Download package

common.php

<?php

/***
 * common functions which are available in all decorators
 * 
 ***/

function img($file,$tags='') {
      global $decoratorurl;
      return "<img src=\"$decoratorurl/$file\" $tags>";
}

function decbase() {
      global $decoratorurl;
      return $decoratorurl;
}

function url($file) {
      global $decoratorurl;
      return "$decoratorurl/$file";
}


function stylesheet($path) {
      global $page, $root, $robot, $static;
      $dir = dirname($path);
      
#     if ($static) {
#           echo '<link rel="stylesheet" type="text/css" href="/style.css" />';
#     }
      if (!$robot) {
            echo '<link rel="stylesheet" type="text/css" title="default" href="'
             . $root . '/?a=style&d=' . $page->get('decorator') . '" />';
      }
      else {
            echo "<style>";
            include($dir . '/style.php');
            echo "</style>";
      }
}

return;
?>

Generated by  Doxygen 1.6.0   Back to index