foot.php 427 B

12345678910111213141516
  1. <?php
  2. echo elgg_view_deprecated('footer/analytics', array(), "Extend page/elements/foot instead", 1.8);
  3. $js = elgg_get_loaded_js('footer');
  4. foreach ($js as $script) { ?>
  5. <script src="<?php echo htmlspecialchars($script, ENT_QUOTES, 'UTF-8'); ?>"></script>
  6. <?php
  7. }
  8. $deps = _elgg_services()->amdConfig->getDependencies();
  9. ?>
  10. <script>
  11. require(<?= json_encode($deps, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT); ?>);
  12. </script>