PHP Classes

File: JsLoader/base.tpl

Recommend this page to a friend!
  Classes of Matous Nemec  >  PHP JavaScript Loader  >  JsLoader/base.tpl  >  Download  
File: JsLoader/base.tpl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP JavaScript Loader
Load JavaScript libraries in the current Web page
Author: By
Last change:
Date: 1 month ago
Size: 762 bytes


Class file image Download
<?php include $files_content; ?>

{foreach $created_modules as $name => $options}
	{var $options_file = $loader->getFilePath('core/options')}
	{if is_file($options_file)}{include $options_file}{/if}
	var {$options['js_var_name']} = Application.init('{$name}');
	{foreach $options['plugins'] as $plugin_name => $plugin_options}
		{var $plugin_options_file = $loader->getFilePath($plugin_options['file'].'_init')}
		{if is_file($plugin_options_file)}{include $plugin_options_file}{/if}
	{foreach $options['components'] as $component_name => $component_options}
		{var $component_options_file = $loader->getFilePath($component_options['file'].'_init')}
		{if is_file($component_options_file)}{include $component_options_file}{/if}
For more information send a message to info at phpclasses dot org.