Elgg  Version 1.9
foot.php
Go to the documentation of this file.
1 <?php
2 
3 echo elgg_view_deprecated('footer/analytics', array(), "Extend page/elements/foot instead", 1.8);
4 
5 $js = elgg_get_loaded_js('footer');
6 foreach ($js as $script) { ?>
7  <script src="<?php echo htmlspecialchars($script, ENT_QUOTES, 'UTF-8'); ?>"></script>
8 <?php
9 }
10 
11 $deps = _elgg_services()->amdConfig->getDependencies();
12 ?>
13 <script>
14 require(<?php echo json_encode($deps); ?>);
15 </script>
$js
Definition: foot.php:5
foreach($js as $script) $deps
Definition: foot.php:11
_elgg_services()
Definition: autoloader.php:14
elgg_view_deprecated($view, array $vars, $suggestion, $version)
Display a view with a deprecation notice.
Definition: views.php:371
elgg echo
Translates a string.
Definition: languages.js:43
elgg require
Throw an error if the required package isn&#39;t present.
Definition: elgglib.js:164
elgg_get_loaded_js($location= 'head')
Get the JavaScript URLs that are loaded.
Definition: elgglib.php:215