aboutsummaryrefslogtreecommitdiff
path: root/views/default/usersettings
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/usersettings')
-rw-r--r--views/default/usersettings/main.php16
-rw-r--r--views/default/usersettings/main_opt/plugins.php19
-rw-r--r--views/default/usersettings/main_opt/statistics.php17
-rw-r--r--views/default/usersettings/main_opt/user.php17
-rw-r--r--views/default/usersettings/plugins.php43
-rw-r--r--views/default/usersettings/plugins_opt/plugin.php38
-rw-r--r--views/default/usersettings/statistics.php16
-rw-r--r--views/default/usersettings/user.php3
8 files changed, 169 insertions, 0 deletions
diff --git a/views/default/usersettings/main.php b/views/default/usersettings/main.php
new file mode 100644
index 000000000..1b0ed11e8
--- /dev/null
+++ b/views/default/usersettings/main.php
@@ -0,0 +1,16 @@
+<?php
+ /**
+ * Elgg user main settings page.
+ * Functions for adding and manipulating options on the user settings panel.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ // Description of what's going on
+ echo "<p>" . nl2br(elgg_echo("usersettings:description")) . "</p>";
+?> \ No newline at end of file
diff --git a/views/default/usersettings/main_opt/plugins.php b/views/default/usersettings/main_opt/plugins.php
new file mode 100644
index 000000000..7a5030579
--- /dev/null
+++ b/views/default/usersettings/main_opt/plugins.php
@@ -0,0 +1,19 @@
+<?php
+ /**
+ * Elgg plugin sub-component on the main menu.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ global $CONFIG;
+?>
+<div class="admin-menu-option">
+ <h2><?php echo elgg_echo('usersettings:plugins'); ?> </h2>
+ <p><?php echo elgg_echo('usersettings:plugins:opt:description'); ?><br />
+ <a href="<?php echo $CONFIG->wwwroot . "pg/usersettings/plugins/"; ?>"><?php echo elgg_echo('usersettings:plugins:opt:linktext'); ?></a></p>
+</div> \ No newline at end of file
diff --git a/views/default/usersettings/main_opt/statistics.php b/views/default/usersettings/main_opt/statistics.php
new file mode 100644
index 000000000..973c4f7ce
--- /dev/null
+++ b/views/default/usersettings/main_opt/statistics.php
@@ -0,0 +1,17 @@
+<?php
+ /**
+ * Elgg satistics sub-component on the main menu.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+?>
+<div class="admin-menu-option">
+ <h2><?php echo elgg_echo('usersettings:statistics'); ?> </h2>
+ <p><?php echo elgg_echo('usersettings:statistics:opt:description'); ?><br />
+ <a href="<?php echo $CONFIG->wwwroot . "pg/usersettings/statistics/"; ?>"><?php echo elgg_echo('usersettings:statistics:opt:linktext'); ?></a></p>
+</div>
diff --git a/views/default/usersettings/main_opt/user.php b/views/default/usersettings/main_opt/user.php
new file mode 100644
index 000000000..77d3340e3
--- /dev/null
+++ b/views/default/usersettings/main_opt/user.php
@@ -0,0 +1,17 @@
+<?php
+ /**
+ * Elgg user sub-component on the main menu.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+?>
+<div class="admin-menu-option">
+ <h2><?php echo elgg_echo('usersettings:user'); ?> </h2>
+ <p><?php echo elgg_echo('usersettings:user:opt:description'); ?><br />
+ <a href="<?php echo $CONFIG->wwwroot . "pg/usersettings/user/"; ?>"><?php echo elgg_echo('usersettings:user:opt:linktext'); ?></a></p>
+</div> \ No newline at end of file
diff --git a/views/default/usersettings/plugins.php b/views/default/usersettings/plugins.php
new file mode 100644
index 000000000..730950178
--- /dev/null
+++ b/views/default/usersettings/plugins.php
@@ -0,0 +1,43 @@
+<?php
+ /**
+ * Elgg plugin specific user settings.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ // Description of what's going on
+ echo "<p>" . nl2br(elgg_echo("usersettings:plugins:description")) . "</p>";
+
+ $limit = get_input('limit', 10);
+ $offset = get_input('offset', 0);
+
+
+ // Get the installed plugins
+ $installed_plugins = $vars['installed_plugins'];
+ $count = count($installed_plugins);
+
+ // Display list of plugins
+ $n = 0;
+ foreach ($installed_plugins as $plugin => $data)
+ {
+ if (($n>=$offset) && ($n < $offset+$limit))
+ echo elgg_view("usersettings/plugins_opt/plugin", array('plugin' => $plugin, 'details' => $data));
+
+ $n++;
+ }
+
+ // Diplay nav
+ if ($count)
+ {
+ echo elgg_view('navigation/pagination',array(
+ 'baseurl' => $_SERVER['REQUEST_URI'],
+ 'offset' => $offset,
+ 'count' => $count,
+ ));
+ }
+?> \ No newline at end of file
diff --git a/views/default/usersettings/plugins_opt/plugin.php b/views/default/usersettings/plugins_opt/plugin.php
new file mode 100644
index 000000000..228245efd
--- /dev/null
+++ b/views/default/usersettings/plugins_opt/plugin.php
@@ -0,0 +1,38 @@
+<?php
+ /**
+ * Elgg plugin manifest class
+ *
+ * This file renders a plugin for the admin screen, including active/deactive, manifest details & display plugin
+ * settings.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+
+ $plugin = $vars['plugin'];
+ $details = $vars['details'];
+
+ $active = $details['active'];
+ $manifest = $details['manifest'];
+
+ $user_guid = $details['user_guid'];
+ if ($user_guid) $user_guid = $_SESSION['user']->guid;
+?>
+<div id="plugin_details" class="<?php if ($active) echo "active"; else "not-active" ?>">
+ <div><h2><?php echo $plugin; ?></h2></div>
+
+ <?php if ($manifest) { ?>
+ <div><?php echo $manifest['description'] ?></div>
+ <?php } ?>
+
+ <?php if (elgg_view("usersettings/{$plugin}/edit")) { ?>
+ <div id="<?php echo $plugin; ?>_settings">
+ <?php echo elgg_view("object/plugin", array('plugin' => $plugin, 'entity' => find_plugin_usersettings($plugin, $user_guid), 'prefix' => 'user')) ?>
+ </div>
+ <?php } ?>
+</div> \ No newline at end of file
diff --git a/views/default/usersettings/statistics.php b/views/default/usersettings/statistics.php
new file mode 100644
index 000000000..f01e48bc8
--- /dev/null
+++ b/views/default/usersettings/statistics.php
@@ -0,0 +1,16 @@
+<?php
+ /**
+ * Elgg settings specific user settings.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ global $CONFIG;
+
+ echo "<p>" . nl2br(elgg_echo("usersettings:statistics:description")) . "</p>";
+?> \ No newline at end of file
diff --git a/views/default/usersettings/user.php b/views/default/usersettings/user.php
new file mode 100644
index 000000000..15c5adc7f
--- /dev/null
+++ b/views/default/usersettings/user.php
@@ -0,0 +1,3 @@
+<?php
+
+?> \ No newline at end of file