diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 02:13:13 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 02:13:13 +0000 |
commit | dd5f5518d83e46c13232e0fa82118539aae0faa7 (patch) | |
tree | 600c8c95e942f752c9980ba22630227282a5c172 /views/default/admin/appearance | |
parent | de8cccfd3f729fce4350a3391208acf2450a3f83 (diff) | |
download | elgg-dd5f5518d83e46c13232e0fa82118539aae0faa7.tar.gz elgg-dd5f5518d83e46c13232e0fa82118539aae0faa7.tar.bz2 |
Fixes #2980: DRY'ed up all plugins to use elgg_view_icon instead of generating their own html
git-svn-id: http://code.elgg.org/elgg/trunk@8410 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/appearance')
-rw-r--r-- | views/default/admin/appearance/profile_fields/list.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/views/default/admin/appearance/profile_fields/list.php b/views/default/admin/appearance/profile_fields/list.php index 0b27da3ed..493129583 100644 --- a/views/default/admin/appearance/profile_fields/list.php +++ b/views/default/admin/appearance/profile_fields/list.php @@ -1,6 +1,8 @@ <?php /** * Profile fields. + * + * @todo Needs some review */ // List form elements @@ -32,12 +34,16 @@ foreach ($items as $item) { echo elgg_view("profile/", array('value' => $item->translation)); //$even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; - $url = elgg_add_action_tokens_to_url(elgg_get_site_url() . "action/profile/fields/delete?id={$item->shortname}"); + $url = elgg_view('output/url', array( + 'href' => "action/profile/fields/delete?id={$item->shortname}", + 'is_action' => TRUE, + 'text' => elgg_view_icon('delete'), + )); $type = elgg_echo($item->type); echo <<<HTML -<li id="$item->shortname" class="clearfix"><span class="elgg-icon elgg-icon-dragger elgg-state-draggable"></span> -<b><span id="elgg-profile-field-{$item->shortname}" class="elgg-state-editable">$item->translation</span></b> [$type] -<a href="$url"><span class="elgg-icon elgg-icon-delete"></a></span> +<li id="$item->shortname" class="clearfix"> + <span class="elgg-icon elgg-icon-dragger elgg-state-draggable"></span> + <b><span id="elgg-profile-field-{$item->shortname}" class="elgg-state-editable">$item->translation</span></b> [$type] $url </li> HTML; } |