From c4a53af23533d44383a87b5180b15e1a01a0e18a Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 2 Jul 2011 12:07:27 -0400 Subject: added logging to the web page footer --- .../views/default/admin/developers/settings.php | 7 +++++++ mod/developers/views/default/developers/css.php | 6 ++++++ mod/developers/views/default/developers/log.php | 16 ++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 mod/developers/views/default/developers/log.php (limited to 'mod/developers/views/default') diff --git a/mod/developers/views/default/admin/developers/settings.php b/mod/developers/views/default/admin/developers/settings.php index 705ad00c6..3843c2c30 100644 --- a/mod/developers/views/default/admin/developers/settings.php +++ b/mod/developers/views/default/admin/developers/settings.php @@ -8,6 +8,7 @@ $sections = array( 'view_path_cache' => 'checkbox', 'display_errors' => 'checkbox', 'debug_level' => 'pulldown', + 'screen_log' => 'checkbox', ); $data = array( @@ -39,6 +40,12 @@ $data = array( 'NOTICE' => elgg_echo('developers:debug:notice'), ), ), + + 'screen_log' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_plugin_setting('screen_log', 'developers') == 1, + ), ); $form_vars = array('id' => 'developer-settings-form'); diff --git a/mod/developers/views/default/developers/css.php b/mod/developers/views/default/developers/css.php index 3aa226d0a..4690945a9 100644 --- a/mod/developers/views/default/developers/css.php +++ b/mod/developers/views/default/developers/css.php @@ -15,3 +15,9 @@ .elgg-page .jstree-default.jstree-focused { background-color: transparent; } +.developers-log { + background-color: #EBF5FF; + border: 1px solid #999; + color: #666; + padding: 20px; +} diff --git a/mod/developers/views/default/developers/log.php b/mod/developers/views/default/developers/log.php new file mode 100644 index 000000000..eca2b4b67 --- /dev/null +++ b/mod/developers/views/default/developers/log.php @@ -0,0 +1,16 @@ +get(); + +echo '
'; +foreach ($items as $item) { + echo '
';
+	print_r($item);
+	echo '
'; +} + +echo '
'; \ No newline at end of file -- cgit v1.2.3