diff options
Diffstat (limited to 'mod/developers')
-rw-r--r-- | mod/developers/start.php | 4 | ||||
-rw-r--r-- | mod/developers/views/default/admin/developers/preview.php | 2 | ||||
-rw-r--r-- | mod/developers/views/default/developers/css.php | 11 |
3 files changed, 15 insertions, 2 deletions
diff --git a/mod/developers/start.php b/mod/developers/start.php index 2be3bb0f6..46cdd8bc2 100644 --- a/mod/developers/start.php +++ b/mod/developers/start.php @@ -7,7 +7,9 @@ elgg_register_event_handler('init', 'system', 'developers_init'); function developers_init() { elgg_register_event_handler('pagesetup', 'system', 'developers_setup_menu'); - + + elgg_extend_view('css/admin', 'developers/css'); + $action_base = elgg_get_plugins_path() . 'developers/actions/developers'; elgg_register_action('developers/settings', "$action_base/settings.php", 'admin'); } diff --git a/mod/developers/views/default/admin/developers/preview.php b/mod/developers/views/default/admin/developers/preview.php index a51c99bee..fcaf5e86b 100644 --- a/mod/developers/views/default/admin/developers/preview.php +++ b/mod/developers/views/default/admin/developers/preview.php @@ -5,4 +5,4 @@ $url = elgg_get_site_url() . 'documentation/css/preview/index.php'; ?> -<iframe style="width:100%; height:100%;" src="<?php echo $url; ?>" style="width: 100%;"></iframe>
\ No newline at end of file +<iframe id="developers-iframe" src="<?php echo $url; ?>"></iframe>
\ No newline at end of file diff --git a/mod/developers/views/default/developers/css.php b/mod/developers/views/default/developers/css.php new file mode 100644 index 000000000..3dd13c7f5 --- /dev/null +++ b/mod/developers/views/default/developers/css.php @@ -0,0 +1,11 @@ +<?php +/** + * Admin CSS for Elgg Developers plugin + */ +?> +/*** Elgg Developer Tools ***/ +#developers-iframe { + width: 100%; + height: 400px; + border: none; +}
\ No newline at end of file |