Skip to content
Snippets Groups Projects
Commit b4fdee75 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

work on plotMe on the globe page

parent 9d279cc7
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Elgg globe content
*
* @package ElggGlobe
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Eric Rasmussen
* @copyright UNL 2009
* @link http://planetred.unl.edu/
*/
?>
......@@ -32,7 +40,8 @@
$me = get_user($_SESSION['user']->guid);
?>
<div class="member_icon">
<span class="youLarge">You:</span>
<img src="<?php echo $_SESSION['user']->getIcon('small'); ?>" alt="Your Profile Icon" id="YourselfOnTheMap" onclick="window.openLocation(<?php echo "'" . $me->longitude . "','" . $me->latitude . "','" . $me->username . "',";
if($me->profile_country)
echo "'" . $me->profile_country . " - " . str_replace("'","\'",htmlentities($me->profile_city)) . ", " . $me->profile_state . "',";
......@@ -44,7 +53,11 @@
else
echo "''";
echo ",'". str_replace("'","\'",htmlentities($me->map_explanation))."'"?>)" />
</div>
<span class="locationMe">Location: <?php echo $me->profile_country . " - " . str_replace("'","\'",htmlentities(ucwords($me->profile_city))) . ", " . $me->profile_state ?></span>
<span class="latlngMe">Latitude: <?php echo $me->latitude ?> &nbsp;&nbsp;&nbsp; Longitude: <?php echo $me->longitude ?></span>
<div class="clear"></div>
<?php
}
......
<?php
/**
* Elgg globe CSS extender
*
* @package ElggGlobe
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Eric Rasmussen
* @copyright UNL 2009
* @link http://planetred.unl.edu/
*/
?>
#plotMe {
background:#eeeeee;
margin:10px 0;
padding:5px 5px 3px 15px;
-moz-border-radius:5px;
position:relative;
}
span.youLarge{
font-size:18pt;
padding:20px 10px 0 0;
position:relative;
bottom:10px;
}
span.locationMe{
font-size:14pt;
position:absolute;top:5px;
color:#6b6b6b;
}
span.latlngMe{
font-size:12pt;
position:absolute;top:28px;
color:#6b6b6b;
}
#YourselfOnTheMap{
margin-right:30px;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment