aboutsummaryrefslogtreecommitdiff
path: root/mod/developers
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 01:38:20 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 01:38:20 +0000
commitb76dae237611b9c7259bafa43ed89dff2ff174a6 (patch)
tree558d8c5ea3cb8392c20e9d913b3b0ff550b75396 /mod/developers
parentaf2f3805095f8a91d85847e11faeb280fddf58c0 (diff)
downloadelgg-b76dae237611b9c7259bafa43ed89dff2ff174a6.tar.gz
elgg-b76dae237611b9c7259bafa43ed89dff2ff174a6.tar.bz2
moved lorem ipsum into a view
git-svn-id: http://code.elgg.org/elgg/trunk@8250 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/developers')
-rw-r--r--mod/developers/start.php3
-rw-r--r--mod/developers/views/default/developers/ipsum.php7
-rw-r--r--mod/developers/views/default/theme_preview/forms.php2
-rw-r--r--mod/developers/views/default/theme_preview/general.php2
-rw-r--r--mod/developers/views/default/theme_preview/objects.php2
-rw-r--r--mod/developers/views/default/theme_preview/widgets.php2
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() {