Skip to content

Commit

Permalink
changed category listing to use modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Sep 19, 2014
1 parent c797a5f commit 82dba30
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 7 additions & 3 deletions views/default/forms/profile/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

if (!empty($description)) {
$types_description = "<div id='custom_profile_type_description_" . $type->getGUID() . "' class='custom_profile_type_description'>";
$types_description .= "<h3 class='settings'>" . elgg_echo("profile_manager:profile:edit:custom_profile_type:description") . "</h3>";
$types_description .= "<h3>" . elgg_echo("profile_manager:profile:edit:custom_profile_type:description") . "</h3>";
$types_description .= $description;
$types_description .= "</div>";
}
Expand Down Expand Up @@ -115,7 +115,7 @@
$cat_title = $cat->getTitle();
}

$class = "";
$class = "elgg-module elgg-module-info";
if (!empty($cat_guid) && ($cat instanceof ProfileManagerCustomFieldCategory)) {

$profile_type_options = array(
Expand Down Expand Up @@ -144,8 +144,11 @@

$list_content .= "<div id='" . $cat_guid . "' class='" . $class . "'>";
if (count($cats) > 1) {
$list_content .= "<h3 class='settings'>" . $cat_title . "</h3>";
$list_content .= "<div class='elgg-head'>";
$list_content .= "<h3>" . $cat_title . "</h3>";
$list_content .= "</div>";
}
$list_content .= "<div class='elgg-body'>";
$list_content .= "<fieldset>";

// display each field for currect category
Expand Down Expand Up @@ -242,6 +245,7 @@

$list_content .= "</fieldset>";
$list_content .= "</div>";
$list_content .= "</div>";
}

if (($edit_profile_mode == "tabbed") && (count($cats) > 1)) {
Expand Down
8 changes: 5 additions & 3 deletions views/default/profile_manager/register/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
foreach ($linked_profile_types as $type_guid) {
$class .= " profile_type_" . $type_guid;
}
$cat_result = "<div class='profile_manager_register_category " . $class . "'>";
$cat_result = "<div class='profile_manager_register_category elgg-module elgg-module-info " . $class . "'>";

if (count($cats) > 1) {
// make nice title
Expand All @@ -167,11 +167,13 @@
if ($tabbed) {
$tabbed_cat_titles .= "<li class='" . $class . "'><a href='javascript:void(0);' onclick='elgg.profile_manager.toggle_tabbed_nav(\"" . $cat_guid . "\", this);'>" . $title . "</a></li>";
} else {
$cat_result .= "<h3 class='settings'>" . $title . "</h3>";
$cat_result .= "<div class='elgg-head'>";
$cat_result .= "<h3>" . $title . "</h3>";
$cat_result .= "</div>";
}
}

$cat_result .= "<fieldset>" . $fields_result . "</fieldset>";
$cat_result .= "<div class='elgg-body'><fieldset>" . $fields_result . "</fieldset></div>";
$cat_result .= "</div>";

if ($tabbed) {
Expand Down

0 comments on commit 82dba30

Please sign in to comment.