diff --git a/customindex/views/default/customindex/content.php b/customindex/views/default/customindex/content.php index 2b7c5e2f8e7a215f6df7b556c3b31db7b12a24bc..b5d2613fe47924c6f8145e1040802c701f49f4b9 100644 --- a/customindex/views/default/customindex/content.php +++ b/customindex/views/default/customindex/content.php @@ -150,16 +150,25 @@ </div> <p class="clear"> - Most recent members to join: + Most recent members to add their profile: </p> <!-- lat, lng, username, location, displayname, title, comment(text area) --> <?php + //$users = get_entities_from_metadata('icontime', '', 'user', '', 0, 8); $users = get_entities('user', '', 0, '', 8, 0, false, 0, null); if($users){ foreach($users as $user){ - //echo "<img src=\"http://ucommjuhl.unl.edu/UNL_Elgg/elgg/mod/profile/icondirect.php?username=" . $user->name . "&size=tiny\" />"; - echo "<div class=\"member_icon\"><img onclick=\"window.openLocation('-96.7','40.8','" . $user->username . "','" . $user->location . "','" . $user->name . "','Class of 1948');return false;\" src=\"mod/profile/icon.php?username=" . $user->username . "&size=tiny\" /></div>"; - // echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $user, 'size' => 'small')) . "</div>"; + echo "<div class=\"member_icon\"><img onclick=\"window.openLocation('" . $user->longitude . "','" . $user->latitude . "','" . $user->username . "',"; + if($user->profile_country) + echo "'" . $user->profile_country . " - " . $user->profile_city . ", " . $user->profile_state . "',"; + else + echo "''"; + echo "'" . $user->name . "',"; + if($user->profile_attended) + echo "'Attended UNL: " . $user->profile_attended . "'"; + else + echo "''"; + echo ");return false;\" src=\"mod/profile/icon.php?username=" . $user->username . "&size=tiny\" /></div>"; } } ?> @@ -288,13 +297,13 @@ <h2 id="indexheading">The Latest Happenings</h2> <a href="promoVideo" id="promoVideoLink" title="Watch the promo video">Watch the promo video.</a> <div class="col left"> - <h3 class="sec_main">New Groups</h3> + <h3 class="sec_main">Featured Groups</h3> <?php - $groups = get_entities('group', '', 0, '', 6, 0, false, 0, null); + $groups = get_entities_from_metadata("featured_group", "yes", "group", "", 0, 4, false, false, false); if($groups){ foreach($groups as $group){ echo "<div class=\"index_item\">"; - echo "<div class=\"index_item_icon\"><img src='mod/profile/icon.php?group=' /></div>"; + echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $group, 'size' => 'small')) . "</div>"; echo "<div class=\"index_item_name\"><a href=\"" . $group->getUrl() . "\">" . $group->name . "</a><br /><span class=\"membercount\">" . get_group_members($group->guid, 10, 0, 0, true) . " members</span></div>"; echo "</div>"; }