diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-25 22:18:22 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-25 22:18:22 +0000 |
commit | 76d3b27335145459e1b9da4e07cf37ad8bd050c1 (patch) | |
tree | 7ac84ed02686061d1ced1e1951598e30334da9c3 /mod/defaultwidgets/views/default | |
parent | 6a64b7d0b595c97c4bef9a8fa22d567611fb3fd1 (diff) | |
download | elgg-76d3b27335145459e1b9da4e07cf37ad8bd050c1.tar.gz elgg-76d3b27335145459e1b9da4e07cf37ad8bd050c1.tar.bz2 |
Updating administration plugins with admin submenu views.
git-svn-id: http://code.elgg.org/elgg/trunk@6220 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/defaultwidgets/views/default')
-rw-r--r-- | mod/defaultwidgets/views/default/admin/appearance/default_dashboard_widgets.php | 21 | ||||
-rw-r--r-- | mod/defaultwidgets/views/default/admin/appearance/default_profile_widgets.php | 21 |
2 files changed, 42 insertions, 0 deletions
diff --git a/mod/defaultwidgets/views/default/admin/appearance/default_dashboard_widgets.php b/mod/defaultwidgets/views/default/admin/appearance/default_dashboard_widgets.php new file mode 100644 index 000000000..e06f63f1d --- /dev/null +++ b/mod/defaultwidgets/views/default/admin/appearance/default_dashboard_widgets.php @@ -0,0 +1,21 @@ +<?php +/** + * Elgg default_widgets plugin. + * + * @package DefaultWidgets + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU + * @author Milan Magudia & Curverider + * @copyright HedgeHogs.net & Curverider Ltd + * + **/ + +// Set admin user for user block +set_page_owner($_SESSION['guid']); + +// create the view +$time = time(); +echo elgg_view('defaultwidgets/editor', array( + 'token' => generate_action_token($time), + 'ts' => $time, + 'context' => 'dashboard', +)); diff --git a/mod/defaultwidgets/views/default/admin/appearance/default_profile_widgets.php b/mod/defaultwidgets/views/default/admin/appearance/default_profile_widgets.php new file mode 100644 index 000000000..32350c6dd --- /dev/null +++ b/mod/defaultwidgets/views/default/admin/appearance/default_profile_widgets.php @@ -0,0 +1,21 @@ +<?php +/** + * Elgg default_widgets plugin. + * + * @package DefaultWidgets + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU + * @author Milan Magudia & Curverider + * @copyright HedgeHogs.net & Curverider Ltd + * + **/ + +// set admin user for user block +set_page_owner($_SESSION['guid']); + +// create the view +$time = time(); +echo elgg_view('defaultwidgets/editor', array ( + 'token' => generate_action_token($time), + 'ts' => $time, + 'context' => 'profile', +)); |