From d9b0196269eb808468b060461a7f84d9f6b692e9 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 14 Feb 2011 01:51:40 +0000 Subject: getting rid of some warnings in theme preview git-svn-id: http://code.elgg.org/elgg/trunk@8218 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/developers/start.php | 4 +- .../views/default/theme_preview/forms.php | 64 +++++++++++----------- .../views/default/theme_preview/header.php | 1 - views/default/icon/default.php | 2 +- 4 files changed, 35 insertions(+), 36 deletions(-) diff --git a/mod/developers/start.php b/mod/developers/start.php index e8e2b8506..99a0fec63 100644 --- a/mod/developers/start.php +++ b/mod/developers/start.php @@ -36,8 +36,8 @@ 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."); + 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( diff --git a/mod/developers/views/default/theme_preview/forms.php b/mod/developers/views/default/theme_preview/forms.php index 621f71b33..5550e51d4 100644 --- a/mod/developers/views/default/theme_preview/forms.php +++ b/mod/developers/views/default/theme_preview/forms.php @@ -14,7 +14,7 @@ $ipsum = elgg_get_config('tp_ipsum');
Form legend -

+

'f1', @@ -22,8 +22,8 @@ $ipsum = elgg_get_config('tp_ipsum'); 'value' => 'input text', )); ?> -

-

+

+
'f2', @@ -31,26 +31,26 @@ $ipsum = elgg_get_config('tp_ipsum'); 'value' => 'password', )); ?> -

-

+

+

'f3', 'internalid' => 'f3', - 'options' => array(1, 2), + 'options' => array('a' => 1, 'b' => 2), )); ?> -

-

+

+

'f4', 'internalid' => 'f4', - 'options' => array(1, 2), + 'options' => array('a' => 1, 'b' => 2), )); ?> -

-

+

+

'f5', @@ -58,8 +58,8 @@ $ipsum = elgg_get_config('tp_ipsum'); 'options' => array('option 1', 'option 2'), )); ?> -

-

+

+
'f6', @@ -67,16 +67,16 @@ $ipsum = elgg_get_config('tp_ipsum'); 'value' => ACCESS_PUBLIC, )); ?> -

-

+

+
'f7', 'internalid' => 'f7', )); ?> -

-

+

+
'f8', @@ -84,8 +84,8 @@ $ipsum = elgg_get_config('tp_ipsum'); 'value' => 'http://elgg.org/', )); ?> -

-

+

+
'f9', @@ -93,8 +93,8 @@ $ipsum = elgg_get_config('tp_ipsum'); 'value' => 'one, two, three', )); ?> -

-

+

+
'f10', @@ -102,8 +102,8 @@ $ipsum = elgg_get_config('tp_ipsum'); 'value' => 'noone@elgg.org', )); ?> -

-

+

+
'f11', @@ -111,24 +111,24 @@ $ipsum = elgg_get_config('tp_ipsum'); 'match_on' => 'users', )); ?> -

-

+

+
'f12', 'internalid' => 'f12', )); ?> -

-

+

+
'f13', 'internalid' => 'f13', )); ?> -

-

+

+
'f14', @@ -136,8 +136,8 @@ $ipsum = elgg_get_config('tp_ipsum'); 'value' => $ipsum, )); ?> -

-

+

+
'f15', @@ -145,7 +145,7 @@ $ipsum = elgg_get_config('tp_ipsum'); 'value' => $ipsum, )); ?> -

+
diff --git a/mod/developers/views/default/theme_preview/header.php b/mod/developers/views/default/theme_preview/header.php index 0aa12347a..8a4a80449 100644 --- a/mod/developers/views/default/theme_preview/header.php +++ b/mod/developers/views/default/theme_preview/header.php @@ -14,7 +14,6 @@ $url = current_page_url(); $title = elgg_echo("theme_preview:{$vars['page']}"); $index = array_search($vars['page'], $vars['pages']); -echo $index; $previous = '< previous'; if ($index > 0) { diff --git a/views/default/icon/default.php b/views/default/icon/default.php index c033a256b..c5749ba04 100644 --- a/views/default/icon/default.php +++ b/views/default/icon/default.php @@ -29,7 +29,7 @@ if (isset($vars['href'])) { $url = $vars['href']; } -$img_src = $entity->getIcon($vars['size']); +$img_src = $entity->getIconURL($vars['size']); $img = "\"$title\""; if ($url) { -- cgit v1.2.3