From 0b5a24d7943c6f8bc275d1160f4060b337a3cf7a Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 18 Dec 2010 23:18:43 +0000 Subject: continuing to slash and burn the profile plugin - moving the admin profile fields into core - last major change git-svn-id: http://code.elgg.org/elgg/trunk@7673 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../default/admin/appearance/defaultprofile.php | 47 ------------- mod/profile/views/default/profile/edit.php | 80 ---------------------- .../views/default/profile/editdefaultprofile.php | 29 -------- .../default/profile/editdefaultprofileitems.php | 65 ------------------ 4 files changed, 221 deletions(-) delete mode 100644 mod/profile/views/default/admin/appearance/defaultprofile.php delete mode 100644 mod/profile/views/default/profile/edit.php delete mode 100644 mod/profile/views/default/profile/editdefaultprofile.php delete mode 100644 mod/profile/views/default/profile/editdefaultprofileitems.php (limited to 'mod/profile/views') diff --git a/mod/profile/views/default/admin/appearance/defaultprofile.php b/mod/profile/views/default/admin/appearance/defaultprofile.php deleted file mode 100644 index b63525bf1..000000000 --- a/mod/profile/views/default/admin/appearance/defaultprofile.php +++ /dev/null @@ -1,47 +0,0 @@ -translation = $translation; - $item->shortname = $listitem; - $item->name = "admin_defined_profile_{$listitem}"; - $item->type = get_plugin_setting("admin_defined_profile_type_{$listitem}", 'profile'); - $items[] = $item; - } - } -} - -$listing = elgg_view('profile/editdefaultprofileitems',array('items' => $items, 'fieldlist' => $fieldlist)); - -$resetlisting = elgg_view('input/form', - array ( - 'body' => elgg_view('input/submit', array('value' => elgg_echo('profile:resetdefault'), 'class' => 'action-button disabled')), - 'action' => 'action/profile/editdefault/reset' - ) - ); - -$body = <<<__HTML -$title -$form -$listing -
- $resetlisting -
-__HTML; - -echo $body; diff --git a/mod/profile/views/default/profile/edit.php b/mod/profile/views/default/profile/edit.php deleted file mode 100644 index 2e3ec24a4..000000000 --- a/mod/profile/views/default/profile/edit.php +++ /dev/null @@ -1,80 +0,0 @@ -profile, defined in profile/start.php for now - */ -?> -
- - -

- 'name', 'value' => elgg_get_page_owner()->name)); - ?> -

- -profile) && sizeof($vars['config']->profile) > 0) - foreach($vars['config']->profile as $shortname => $valtype) { - if ($metadata = get_metadata_byname($vars['entity']->guid, $shortname)) { - if (is_array($metadata)) { - $value = ''; - foreach($metadata as $md) { - if (!empty($value)) $value .= ', '; - $value .= $md->value; - $access_id = $md->access_id; - } - } else { - $value = $metadata->value; - $access_id = $metadata->access_id; - } - } else { - $value = ''; - $access_id = ACCESS_DEFAULT; - } - - if ($shortname == 'description') { // change label positioning to allow for additional longtext field controls -?> -

- - $shortname, - 'value' => $value, - )); ?> - - 'accesslevel['.$shortname.']', 'value' => $access_id)); ?> -

- - -

- - 'accesslevel['.$shortname.']', 'value' => $access_id)); ?> -

- - - -

- - " /> -

- -
\ No newline at end of file diff --git a/mod/profile/views/default/profile/editdefaultprofile.php b/mod/profile/views/default/profile/editdefaultprofile.php deleted file mode 100644 index 7d701af11..000000000 --- a/mod/profile/views/default/profile/editdefaultprofile.php +++ /dev/null @@ -1,29 +0,0 @@ - 'label')); -$type_control = elgg_view('input/pulldown', array('internalname' => 'type', 'options_values' => array( - 'text' => elgg_echo('text'), - 'longtext' => elgg_echo('longtext'), - 'tags' => elgg_echo('tags'), - 'url' => elgg_echo('url'), - 'email' => elgg_echo('email') -))); - -$submit_control = elgg_view('input/submit', array('internalname' => elgg_echo('add'), 'value' => elgg_echo('add'))); - -$formbody = <<< END -

$label_text: $label_control - $type_text: $type_control - $submit_control

-END; - -echo "

" . elgg_echo('profile:explainchangefields') . "

"; -echo elgg_view('input/form', array('body' => $formbody, 'action' => 'action/profile/editdefault')); diff --git a/mod/profile/views/default/profile/editdefaultprofileitems.php b/mod/profile/views/default/profile/editdefaultprofileitems.php deleted file mode 100644 index 29ce7f138..000000000 --- a/mod/profile/views/default/profile/editdefaultprofileitems.php +++ /dev/null @@ -1,65 +0,0 @@ - - - -
- -
-
- - -- cgit v1.2.3