From c21e435638d958f6eb74e8f902db17af79b7210a Mon Sep 17 00:00:00 2001 From: Eric Rasmussen <erasmussen2@unl.edu> Date: Mon, 3 Aug 2009 22:26:10 +0000 Subject: [PATCH] work on the landing page --- .../views/default/customindex/content.php | 22 +++++++---- customindex/views/default/customindex/css.php | 10 +++-- .../views/default/customindex/metatags.php | 38 ++++++++----------- 3 files changed, 37 insertions(+), 33 deletions(-) diff --git a/customindex/views/default/customindex/content.php b/customindex/views/default/customindex/content.php index 3455c4ad..7c552172 100644 --- a/customindex/views/default/customindex/content.php +++ b/customindex/views/default/customindex/content.php @@ -27,20 +27,28 @@ <p> UNL community members are doing fantastic stuff around the world. Check out these members: </p> - <p> - <img onclick="window.openHerbie(window.herbieLabel);return false;" src="http://ucommjuhl.unl.edu/UNL_Elgg/elgg/mod/profile/icondirect.php?lastcache=1245432975&username=demouser&size=tiny" /> - </p> - <p> + + <div class="member_icon"> + <img onclick="window.openLocation('40.8','-96.7','Lincoln NE 68588');return false;" src="http://ucommjuhl.unl.edu/UNL_Elgg/elgg/mod/profile/icondirect.php?username=demouser&size=tiny" /> + </div> + <div class="member_icon"> + <img onclick="window.openLocation('-20.3','68.1','Beverly Hills CA 90210');return false;" src="http://ucommjuhl.unl.edu/UNL_Elgg/elgg/mod/profile/icondirect.php?username=demouser&size=tiny" /> + </div> + + <div class="clear"></div> + Most recent Huskers to join: + <?php - $users = get_entities('user', '', 0, '', 6, 0, false, 0, null); + $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=demouser&size=tiny\" />"; + //echo "<img src=\"http://ucommjuhl.unl.edu/UNL_Elgg/elgg/mod/profile/icondirect.php?username=" . $user->name . "&size=tiny\" />"; + echo "<div class=\"member_icon\"><a href=\"".$user->getURL()."\">" . elgg_view("profile/icon",array('entity' => $user, 'size' => 'tiny', 'override' => 'true')) . "</a></div>"; // echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $user, 'size' => 'small')) . "</div>"; } } ?> - </p> + </div> </div> <div id="headline2"> diff --git a/customindex/views/default/customindex/css.php b/customindex/views/default/customindex/css.php index 2f69e7e2..946768f5 100644 --- a/customindex/views/default/customindex/css.php +++ b/customindex/views/default/customindex/css.php @@ -29,13 +29,11 @@ padding:1px 0; margin:10px 0 0 0; } - #splash * { - margin:0; - padding:0; - } #splash { height:480px; width:940px; + margin:0; + padding:0; } #headlines { height:480px; @@ -150,4 +148,8 @@ margin-left:10px; font-style: italic; font-size:0.9em; + } +/* member icon */ + .member_icon { + margin:0 6px 6px 0; } \ No newline at end of file diff --git a/customindex/views/default/customindex/metatags.php b/customindex/views/default/customindex/metatags.php index efcd1380..1a8c4174 100644 --- a/customindex/views/default/customindex/metatags.php +++ b/customindex/views/default/customindex/metatags.php @@ -32,42 +32,36 @@ } }); }); - - - </script> + <!-- begin poly9 globe js --> <script type="text/javascript" src="http://globe.poly9.com/api.js"></script> <script type="text/javascript"> //<![CDATA[ -function createOnClick(country) { - return function(marker) { - marker.openInfoWindowHtml('Hello from ' + country + '!', 200, 32); - } - } -function onMapLoad() { - // start the globe out with Lincoln - var LincolnNE = new FE.LatLng(40.813620,-96.707739); + +function startMap() { this.toggleDashboard(); - //this.setTargetLatLng(LincolnNE); var self = this; - var herbieLabel = window.herbieLabel = new FE.Pushpin(LincolnNE); - window.openHerbie = function(herbieLabel) { - self.panTo(LincolnNE,1.5,"easeInOutQuad"); - self.zoomTo(19505000,1.5,"easeInOutQuad"); - herbieLabel.openInfoWindowHtml('<div style="padding: 26px 20px; color: #333; font-family: helvetica, arial, sans-serif; padding-bottom: 4px;"><img src="http://ucommjuhl.unl.edu/UNL_Elgg/elgg/mod/profile/icondirect.php?lastcache=1245432975&username=demouser&size=small" style="float:left; padding: 0 6px 6px 0;" /><h1 style="font-size:16px; padding-bottom: 4px;">Herbie Husker</h1><p style="font-style:italic; font-size: 10px; color:green; padding-bottom: 4px;">Lincoln, NE</p><p style="padding-bottom: 10px;">Class of \'96</p><p style="font-size: 11px; line-height: 14px;">I can\'t wait for football season. Goooooo biiiiiiiiig reeeeeeeeeeeeed!</p></div>', 256, 154); - }; - FE.Event.addListener(herbieLabel, 'click', window.openHerbie ); - this.addOverlay(herbieLabel); - var sandiegoCA = new FE.LatLng(32.715685,-117.161724); + window.openLocation = function(lat, lng, ourLocation) { + var latlng = new FE.LatLng(lat,lng); + + self.panTo(latlng,1.5,"easeInOutQuad"); + self.zoomTo(19505000,1.5,"easeInOutQuad"); + label = window.label = new FE.Pushpin(latlng); + self.addOverlay(label); + label.openInfoWindowHtml('<div style="padding: 26px 20px; color: #333; font-family: helvetica, arial, sans-serif; padding-bottom: 4px;"><img src="http://ucommjuhl.unl.edu/UNL_Elgg/elgg/mod/profile/icondirect.php?lastcache=1245432975&username=demouser&size=small" style="float:left; padding: 0 6px 6px 0;" /><h1 style="font-size:16px; padding-bottom: 4px;">Herbie Husker</h1><p style="font-style:italic; font-size: 10px; color:green; padding-bottom: 4px;">' + ourLocation + '</p><p style="padding-bottom: 10px;">Class of \'96</p><p style="font-size: 11px; line-height: 14px;">I can\'t wait for football season. Goooooo biiiiiiiiig reeeeeeeeeeeeed!</p></div>', 256, 154); + + }; +// FE.Event.addListener(label, 'click', window.openLocation ); + }; jQuery(document).ready(function() { var map = new FE.Map(document.getElementById("globeInner")); - map.onLoad = onMapLoad; + map.onLoad = startMap; map.load(); }); -- GitLab