scripts[$file] = 1;
}
/**
* Add a script to the combined scripts list.
* @param $file the relative path to a script from the base of the active theme
* @param
*/
public function theme_script($file) {
$file = "themes/{$this->theme_name}/$file";
$this->scripts[$file] = 1;
}
/**
* Provide a url to a resource within the current theme. This allows us to refer to theme
* resources without naming the theme itself which makes themes easier to copy.
*/
public function theme_url($path, $absolute_url=false) {
$arg = "themes/{$this->theme_name}/$path";
return $absolute_url ? url::abs_file($arg) : url::file($arg);
}
/**
* Combine a series of Javascript files into a single one and cache it in the database, then
* return a single ";
}
/**
* Add a css file to the combined css list.
* @param $file the relative path to a script from the gallery3 directory
*/
public function css($file, $theme_relative=false) {
$this->css[$file] = 1;
}
/**
* Add a css file to the combined css list.
* @param $file the relative path to a script from the base of the active theme
* @param
*/
public function theme_css($file) {
$file = "themes/{$this->theme_name}/$file";
$this->css[$file] = 1;
}
/**
* Combine a series of Javascript files into a single one and cache it in the database, then
* return a single