aboutsummaryrefslogtreecommitdiff
path: root/views/default/canvas/layouts
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 16:37:26 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 16:37:26 +0000
commit4b225fc844aec7dcce4692e8ac178cda7bd897fe (patch)
treeac67b41c8d77a4c2fa3594e0020f068fc53ba4d9 /views/default/canvas/layouts
parent21fd3683c1436ad71d01aa2137e8ff6fcf977676 (diff)
downloadelgg-4b225fc844aec7dcce4692e8ac178cda7bd897fe.tar.gz
elgg-4b225fc844aec7dcce4692e8ac178cda7bd897fe.tar.bz2
Widgets are now loaded as separate JS scripts
git-svn-id: https://code.elgg.org/elgg/trunk@1070 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/canvas/layouts')
-rw-r--r--views/default/canvas/layouts/widgets.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php
index 1ef87d2f6..403ea8f96 100644
--- a/views/default/canvas/layouts/widgets.php
+++ b/views/default/canvas/layouts/widgets.php
@@ -174,7 +174,13 @@
if (is_array($area2widgets) && sizeof($area2widgets) > 0)
foreach($area2widgets as $widget) {
- echo elgg_view_entity($widget);
+ // echo elgg_view_entity($widget);
+
+?>
+
+ <script type="text/javascript" src="<?php echo $vars['url']; ?>pg/view/<?php echo $widget->getGUID(); ?>?view=js"></script>
+
+<?
}
?>