<?php

require __DIR__ . "/functions.php";
$computers = loadComputers();
foreach ($computers as $computer) {
    listComputer($computer);
}
includeScript();
includeStyles();
Example #2
0
 public function _includeThemeAdditionalFiles()
 {
     if ($this->direction == "rtl") {
         $rtl_stylesheet = BASEPATH . "/../assets/themes/" . $this->color_scheme . "/theme.rtl.css";
         if (file_exists($rtl_stylesheet)) {
             echo "<link href=\"" . base_url() . "assets/themes/" . $this->color_scheme . "/theme.rtl.css\" rel=\"stylesheet\" type=\"text/css\" />";
         }
     }
     $header_file = $this->getThemePath() . "header.php";
     if (file_exists($header_file)) {
         include_once $header_file;
         if (function_exists("includeStylesheet")) {
             $items = includeStylesheet($this->CI);
             if (is_array($items)) {
                 foreach ($items as $item) {
                     echo "<link href=\"" . $item . "\" rel=\"stylesheet\" type=\"text/css\" />";
                 }
             }
         }
         if (function_exists("includeScript")) {
             $items = includeScript($this->CI);
             if (is_array($items)) {
                 foreach ($items as $item) {
                     echo "<script src=\"" . $item . "\" type=\"text/javascript\"></script>";
                 }
             }
         }
         if (function_exists("includeCustomScript")) {
             $items = includeCustomScript($this->CI);
             if (is_array($items)) {
                 foreach ($items as $item) {
                     echo "<script type=\"text/javascript\">" . $item . "</script>";
                 }
             }
         }
     }
 }
Example #3
0
 public function run()
 {
     // DO INIT SCRIPTS, JSs and MACROS //
     foreach ($this->javascripts as $script) {
         includeScript($script, $this);
     }
     foreach ($this->htmlMacros as $macroname => $macro) {
         includeHTMLMacro($macroname, $macro, $this);
     }
     foreach ($this->phpscripts as $script) {
         includeInitPHP($script, $this);
     }
 }