Skip to content
Snippets Groups Projects
Commit a0895329 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

ScriptLoader : Added possibility to add script from current skin

parent ca9f335c
Branches
Tags
No related merge requests found
......@@ -18,9 +18,7 @@
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OPAC3 : Pseudo MVC pour pouvoir déclarer les scripts à être chargés dans le head
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
class Class_ScriptLoader {
const
......@@ -256,6 +254,14 @@ class Class_ScriptLoader {
}
/**
* @return ScriptLoader
*/
public function addThemeScript($script) {
return $this->addScript(BASE_URL . Class_Profil::getCurrentProfil()->getPathTheme() . 'js/' . $script);
}
/**
* @return ScriptLoader
*/
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment