diff options
Diffstat (limited to 'mod/developers/views/default/admin')
4 files changed, 102 insertions, 0 deletions
diff --git a/mod/developers/views/default/admin/develop_tools/inspect.php b/mod/developers/views/default/admin/develop_tools/inspect.php new file mode 100644 index 000000000..cfa3de2ea --- /dev/null +++ b/mod/developers/views/default/admin/develop_tools/inspect.php @@ -0,0 +1,14 @@ +<?php +/** +* Inspect View +* +* Inspect global variables of Elgg +*/ + +elgg_load_js('jquery.jstree'); +elgg_load_css('jquery.jstree'); + +echo elgg_view_form('developers/inspect', array('class' => 'developers-form-inspect')); + +echo '<div id="developers-inspect-results"></div>'; +echo elgg_view('graphics/ajax_loader', array('id' => 'developers-ajax-loader')); diff --git a/mod/developers/views/default/admin/develop_tools/preview.php b/mod/developers/views/default/admin/develop_tools/preview.php new file mode 100644 index 000000000..920047d98 --- /dev/null +++ b/mod/developers/views/default/admin/develop_tools/preview.php @@ -0,0 +1,8 @@ +<?php +/** + * CSS Preview + */ + +$url = elgg_get_site_url() . 'theme_preview'; +?> +<iframe id="developers-iframe" src="<?php echo $url; ?>"></iframe>
\ No newline at end of file diff --git a/mod/developers/views/default/admin/develop_tools/unit_tests.php b/mod/developers/views/default/admin/develop_tools/unit_tests.php new file mode 100644 index 000000000..81658e88b --- /dev/null +++ b/mod/developers/views/default/admin/develop_tools/unit_tests.php @@ -0,0 +1,17 @@ +<?php +/** + * Elgg unit and integration tests + * + */ + +echo '<p>' . elgg_echo('developers:unit_tests:description') . '</p>'; +echo '<p><strong>' . elgg_echo('developers:unit_tests:warning') . '</strong></p>'; + +// create a button to run tests +$params = array( + 'text' => elgg_echo('developers:unit_tests:run'), + 'href' => 'engine/tests/suite.php', + 'class' => 'elgg-button elgg-button-submit', + 'is_trusted' => true, +); +echo '<p>' . elgg_view('output/url', $params) . '</p>'; diff --git a/mod/developers/views/default/admin/developers/settings.php b/mod/developers/views/default/admin/developers/settings.php new file mode 100644 index 000000000..459cbabad --- /dev/null +++ b/mod/developers/views/default/admin/developers/settings.php @@ -0,0 +1,63 @@ +<?php +/** + * Developer settings + */ + +$data = array( + 'simple_cache' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_config('simplecache_enabled') == 1, + ), + + 'system_cache' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_config('system_cache_enabled') == 1, + ), + + 'display_errors' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_plugin_setting('display_errors', 'developers') == 1, + ), + + 'debug_level' => array( + 'type' => 'dropdown', + 'value' => elgg_get_config('debug'), + 'options_values' => array( + false => elgg_echo('developers:debug:off'), + 'ERROR' => elgg_echo('developers:debug:error'), + 'WARNING' => elgg_echo('developers:debug:warning'), + 'NOTICE' => elgg_echo('developers:debug:notice'), + ), + ), + + 'screen_log' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_plugin_setting('screen_log', 'developers') == 1, + ), + + 'show_strings' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_plugin_setting('show_strings', 'developers') == 1, + ), + + 'wrap_views' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_plugin_setting('wrap_views', 'developers') == 1, + ), + + 'log_events' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_plugin_setting('log_events', 'developers') == 1, + ), +); + +$form_vars = array('id' => 'developer-settings-form', 'class' => 'elgg-form-settings'); +$body_vars = array('data' => $data); +echo elgg_view_form('developers/settings', $form_vars, $body_vars); |