mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-01 12:40:45 -04:00
Reorganize the url() function out from in the middle of the script/css combining functions.
This commit is contained in:
@@ -21,6 +21,15 @@ class Gallery_View_Core extends View {
|
||||
protected $theme_name = null;
|
||||
protected $combine_queue = array();
|
||||
|
||||
/**
|
||||
* 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 url($path, $absolute_url=false) {
|
||||
$arg = "themes/{$this->theme_name}/$path";
|
||||
return $absolute_url ? url::abs_file($arg) : url::file($arg);
|
||||
}
|
||||
|
||||
/**
|
||||
* Begin gather up scripts or css files so that they can be combined into a single request.
|
||||
*
|
||||
@@ -53,15 +62,6 @@ class Gallery_View_Core extends View {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 url($path, $absolute_url=false) {
|
||||
$arg = "themes/{$this->theme_name}/$path";
|
||||
return $absolute_url ? url::abs_file($arg) : url::file($arg);
|
||||
}
|
||||
|
||||
/**
|
||||
* If css combining is enabled, add this css to the list of css that will be
|
||||
* combined into a single style element. When combined, the order of style elements
|
||||
|
||||
Reference in New Issue
Block a user