From b4fdee75916a945bcab485a3b12c0e5fda7cfa7c Mon Sep 17 00:00:00 2001 From: Eric Rasmussen <erasmussen2@unl.edu> Date: Wed, 16 Sep 2009 20:55:30 +0000 Subject: [PATCH] work on plotMe on the globe page --- plugins/globe/views/default/globe/content.php | 19 ++++++++-- plugins/globe/views/default/globe/css.php | 38 +++++++++++++++++++ 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/plugins/globe/views/default/globe/content.php b/plugins/globe/views/default/globe/content.php index 147862dc..2587c549 100644 --- a/plugins/globe/views/default/globe/content.php +++ b/plugins/globe/views/default/globe/content.php @@ -1,6 +1,14 @@ <?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 ?> Longitude: <?php echo $me->longitude ?></span> + <div class="clear"></div> <?php } diff --git a/plugins/globe/views/default/globe/css.php b/plugins/globe/views/default/globe/css.php index 67e221c9..49f78a81 100644 --- a/plugins/globe/views/default/globe/css.php +++ b/plugins/globe/views/default/globe/css.php @@ -1,3 +1,41 @@ +<?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 -- GitLab