diff options
Diffstat (limited to 'mod/developers')
6 files changed, 11 insertions, 7 deletions
diff --git a/mod/developers/start.php b/mod/developers/start.php index 6bb3dae0f..e6f4d46b5 100644 --- a/mod/developers/start.php +++ b/mod/developers/start.php @@ -36,9 +36,6 @@ function developers_theme_preview_controller($page) { $pages = array('general', 'nav', 'forms', 'objects', 'grid', 'widgets', 'icons'); - elgg_set_config('tp_ipsum', 'Sed scelerisque sagittis lorem. Phasellus sodales.' . - ' Nulla urna justo, vehicula in, suscipit nec, molestie sed, tellus.'); - $title = elgg_echo("theme_preview:{$page[0]}"); $page = elgg_view("theme_preview/{$page[0]}", array( 'pages' => $pages, diff --git a/mod/developers/views/default/developers/ipsum.php b/mod/developers/views/default/developers/ipsum.php new file mode 100644 index 000000000..dd9bb278f --- /dev/null +++ b/mod/developers/views/default/developers/ipsum.php @@ -0,0 +1,7 @@ +<?php +/** + * Lorem ipsum text + */ +?> +Sed scelerisque sagittis lorem. Phasellus sodales. +Nulla urna justo, vehicula in, suscipit nec, molestie sed, tellus.
\ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/forms.php b/mod/developers/views/default/theme_preview/forms.php index 5915678c6..d8c695e12 100644 --- a/mod/developers/views/default/theme_preview/forms.php +++ b/mod/developers/views/default/theme_preview/forms.php @@ -5,7 +5,7 @@ $url = current_page_url(); -$ipsum = elgg_get_config('tp_ipsum'); +$ipsum = elgg_view('developers/ipsum'); ?> <div class="elgg-page mal"> diff --git a/mod/developers/views/default/theme_preview/general.php b/mod/developers/views/default/theme_preview/general.php index 52400ab1d..bd11b35db 100644 --- a/mod/developers/views/default/theme_preview/general.php +++ b/mod/developers/views/default/theme_preview/general.php @@ -3,7 +3,7 @@ * General CSS */ -$ipsum = elgg_get_config('tp_ipsum'); +$ipsum = elgg_view('developers/ipsum'); ?> diff --git a/mod/developers/views/default/theme_preview/objects.php b/mod/developers/views/default/theme_preview/objects.php index d385fcdc0..446258115 100644 --- a/mod/developers/views/default/theme_preview/objects.php +++ b/mod/developers/views/default/theme_preview/objects.php @@ -5,7 +5,7 @@ $url = current_page_url(); -$ipsum = elgg_get_config('tp_ipsum'); +$ipsum = elgg_view('developers/ipsum'); ?> diff --git a/mod/developers/views/default/theme_preview/widgets.php b/mod/developers/views/default/theme_preview/widgets.php index 32ee487c8..b00ea5af7 100644 --- a/mod/developers/views/default/theme_preview/widgets.php +++ b/mod/developers/views/default/theme_preview/widgets.php @@ -10,7 +10,7 @@ elgg_register_plugin_hook_handler('view', 'widgets/friends/edit', 'css_widget_co elgg_register_plugin_hook_handler('permissions_check', 'all', 'css_permissions_override'); function css_widget_content() { - return elgg_get_config('tp_ipsum'); + return $ipsum = elgg_view('developers/ipsum'); } function css_permissions_override() { |