|
@@ 71-77 (lines=7) @@
|
| 68 |
|
* @param array $names the plugin name strings (foldernames) in an array |
| 69 |
|
* @return array |
| 70 |
|
*/ |
| 71 |
|
public function getPluginsJS($names=null) { |
| 72 |
|
if ($names) { |
| 73 |
|
$names = array_merge($this->globalPlugins, $names); |
| 74 |
|
return $this->filterPluginsByName('js', $names); |
| 75 |
|
} |
| 76 |
|
return $this->filterPluginsByName('js', $this->globalPlugins); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
/** |
| 80 |
|
* Returns an array of css filepaths |
|
@@ 84-90 (lines=7) @@
|
| 81 |
|
* @param array $names the plugin name strings (foldernames) in an array |
| 82 |
|
* @return array |
| 83 |
|
*/ |
| 84 |
|
public function getPluginsCSS($names=null) { |
| 85 |
|
if ($names) { |
| 86 |
|
$names = array_merge($this->globalPlugins, $names); |
| 87 |
|
return $this->filterPluginsByName('css', $names); |
| 88 |
|
} |
| 89 |
|
return $this->filterPluginsByName('css', $this->globalPlugins); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
/** |
| 93 |
|
* Returns an array of template filepaths |
|
@@ 97-103 (lines=7) @@
|
| 94 |
|
* @param array $names the plugin name strings (foldernames) in an array |
| 95 |
|
* @return array |
| 96 |
|
*/ |
| 97 |
|
public function getPluginsTemplates($names=null) { |
| 98 |
|
if ($names) { |
| 99 |
|
$names = array_merge($this->globalPlugins, $names); |
| 100 |
|
return $this->filterPluginsByName('templates', $names); |
| 101 |
|
} |
| 102 |
|
return $this->filterPluginsByName('templates', $this->globalPlugins); |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
/** |
| 106 |
|
* Returns an array of template files contents as strings |