diff options
Diffstat (limited to 'views/default/page')
-rw-r--r-- | views/default/page/admin.php | 11 | ||||
-rw-r--r-- | views/default/page/default.php | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/views/default/page/admin.php b/views/default/page/admin.php index 93985a9f2..b3871fe33 100644 --- a/views/default/page/admin.php +++ b/views/default/page/admin.php @@ -54,7 +54,16 @@ if ($notices = elgg_get_admin_notices()) { </div> </div> </div> - <?php echo elgg_view('footer/analytics'); ?> +<?php + +echo elgg_view('footer/analytics'); +$js = elgg_get_loaded_js('footer'); +foreach ($js as $script) { ?> + <script type="text/javascript" src="<?php echo $script; ?>"></script> +<?php +} + +?> </body> </html>
\ No newline at end of file diff --git a/views/default/page/default.php b/views/default/page/default.php index 6604b047c..77f79157b 100644 --- a/views/default/page/default.php +++ b/views/default/page/default.php @@ -60,6 +60,15 @@ header("Content-type: text/html; charset=UTF-8"); </div> </div> </div> -<?php echo elgg_view('footer/analytics'); ?> +<?php + +echo elgg_view('footer/analytics'); +$js = elgg_get_loaded_js('footer'); +foreach ($js as $script) { ?> + <script type="text/javascript" src="<?php echo $script; ?>"></script> +<?php +} + +?> </body> </html>
\ No newline at end of file |