aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 03:15:57 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 03:15:57 +0000
commitdeb2f017851520137695afa6c9d594fd4560698d (patch)
treec2479d0bdcd5d1fe82cf5093b4529a202fcd8596
parent059515703b680040a3a256c54f14252c2d41ce82 (diff)
downloadelgg-deb2f017851520137695afa6c9d594fd4560698d.tar.gz
elgg-deb2f017851520137695afa6c9d594fd4560698d.tar.bz2
setting size for iframe for css preview
git-svn-id: http://code.elgg.org/elgg/trunk@8024 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/developers/start.php4
-rw-r--r--mod/developers/views/default/admin/developers/preview.php2
-rw-r--r--mod/developers/views/default/developers/css.php11
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