diff --git a/customindex/views/default/customindex/content.php b/customindex/views/default/customindex/content.php index 508c3e7884d90e17b5927d1bd47622d190259673..fbba4df4037ef5e44063cd55e90709058c1dba6a 100644 --- a/customindex/views/default/customindex/content.php +++ b/customindex/views/default/customindex/content.php @@ -149,6 +149,28 @@ <img onclick="displayTrischaZornHudson();return false;" src="mod/customindex/witw_icons/Trischa_Zorn-Hudson_tiny.jpg" alt="Profile Icon" /> </div> --> + <?php + if (isloggedin()) { + $me = get_user($_SESSION['user']->guid); + + ?> + <div class="member_icon"> + <img src="<?php echo $_SESSION['user']->getIcon('tiny'); ?>" alt="Your Profile Icon" class="tooltip" title="You" id="YourselfOnTheMap" onclick="window.openLocation(<?php echo "'" . $user->longitude . "','" . $user->latitude . "','" . $user->username . "',"; + if($me->profile_country) + echo "'" . $me->profile_country . " - " . str_replace("'","\'",htmlentities($me->profile_city)) . ", " . $me->profile_state . "',"; + else + echo "'',"; + echo "'" . str_replace("'","\'",htmlentities($me->name)) . "',"; + if($me->profile_attended_from != "Did Not Attend UNL" && $me->profile_attended_from != "" && $me->profile_attended_from != NULL) + echo "'Attended UNL: " . $me->profile_attended_from . "-" . $me->profile_attended_to . "'"; + else + echo "''"; + echo ",'". str_replace("'","\'",htmlentities($me->map_explanation))."'"?>)" /> + </div> + <?php + + } + ?> <p class="clear" style="padding-bottom:5px;"> Most recent members to add their profile photo and location: </p>