diff --git a/customindex/views/default/customindex/content.php b/customindex/views/default/customindex/content.php index 7c552172537413e043f44059e36d57266912a58a..b6cf3c8c94811615a844c8c43633f4fee74dd589 100644 --- a/customindex/views/default/customindex/content.php +++ b/customindex/views/default/customindex/content.php @@ -25,25 +25,25 @@ <div class="splash_headline"> <h4>Huskers Around the World</h4> <p> - UNL community members are doing fantastic stuff around the world. Check out these members: + UNL community members are doing fantastic stuff around the world. Featured Huskers: </p> - + <!-- lat, lng, username, location, displayname, title, comment(text area), linkname(the username with the underscore) --> <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" /> + <img id="shane" onclick="window.openLocationFeat('40.8','-96.7','demouser','Lincoln NE','Shane Farritor','Associate Professor, Mechanical Engineering','Shane Farritor, \'92, has conducted promising research on railcar derailment and surgical robots.','Shane_Farritor');return false;" src="mod/customindex/views/default/customindex/witw_icons/Shane_Farritor_tiny.jpg" alt="Profile Icon" /> </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" /> + <img onclick="window.openLocationFeat('-15.4081930','28.2871670','demouser','Zambia','Nithal Kuwa','Graduate student, Biological Sciences','Nithal Kuwa\'s research could impact more than 1.8 million children in sub-Saharan Africa.','Nithal_Kuwa');return false;" src="mod/customindex/views/default/customindex/witw_icons/Nithal_Kuwa_tiny.jpg" alt="Profile Icon" /> </div> <div class="clear"></div> - Most recent Huskers to join: - + Most recent members to join: + <!-- lat, lng, username, location, displayname, title, comment(text area) --> <?php $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\"><a href=\"".$user->getURL()."\">" . elgg_view("profile/icon",array('entity' => $user, 'size' => 'tiny', 'override' => 'true')) . "</a></div>"; + echo "<div class=\"member_icon\"><img onclick=\"window.openLocation('40.8','-96.7','" . $user->username . "','Lincoln NE','" . $user->name . "','Class of 1948');return false;\" src=\"/workspace/UNL_Elgg/elgg/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>"; } } diff --git a/customindex/views/default/customindex/css.php b/customindex/views/default/customindex/css.php index 946768f5e08bda04dfe7e10bbd8b75379c2ef859..a40c5707c507c7ba1e96753fab45bc85462c3504 100644 --- a/customindex/views/default/customindex/css.php +++ b/customindex/views/default/customindex/css.php @@ -96,9 +96,51 @@ z-index:0; } - - #FE_InfoWindow { z-index: 9999; } - + +/* member icon */ + .member_icon { + cursor:pointer; + margin:0 6px 6px 0; + } + +/*the popup info bubble on the globe */ + #FE_InfoWindow { + margin:35px 0 0 15px !important; + z-index:50; + } + #witw_wrapper { + color: #333; + font-family: helvetica, arial, sans-serif; + } + #witw_wrapper a { + color: #ba0000; + } + #witw_wrapper a:focus { + color: #cc0000; + } + #witw_wrapper img.witw_icon { + float:left; + padding: 0 6px 6px 0; + } + #witw_wrapper h1 { + font-size:16px; + padding-bottom: 4px; + } + #witw_wrapper p.witw_location { + font-style:italic; + font-size: 11px; + color:green; + padding-bottom: 4px; + } + #witw_wrapper p.witw_title { + font-size: 12px; + } + #witw_wrapper p.witw_comment { + font-size: 11px; + line-height: 14px; + padding-top:5px; + clear:left; + } /************************************************/ /* the stuff below the splash headlines,posters */ @@ -149,7 +191,3 @@ 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 1a8c4174889106dd5bf5cfb2dc9180426d244bf3..0ff8f071717bd25cc5ae894f3413d8718db13f56 100644 --- a/customindex/views/default/customindex/metatags.php +++ b/customindex/views/default/customindex/metatags.php @@ -26,7 +26,7 @@ jQuery("#posters>div").css({'z-index':'0'}); jQuery("#poster"+panelClicked+"").css({'z-index':'99'}); if(jQuery(this).attr("id") == "headline1"){ - jQuery("#FE_InfoWindow").css({'z-index':'9999'}); + jQuery("#FE_InfoWindow").css({'z-index':'2000'}); } else { jQuery("#FE_InfoWindow").css({'z-index':'0'}); } @@ -39,24 +39,46 @@ <!-- begin poly9 globe js --> <script type="text/javascript" src="http://globe.poly9.com/api.js"></script> <script type="text/javascript"> -//<![CDATA[ +//<![CDATA[ + var c=0; + var t; function startMap() { this.toggleDashboard(); - var self = this; + self = this; - 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 ); + letsdothisloop(); +}; +function letsdothisloop() { + if(c==0) + openLocationFeat('40.8','-96.7','demouser','Lincoln NE','Shane Farritor','Associate Professor, Mechanical Engineering','Shane Farritor, \'92, has conducted promising research on railcar derailment and surgical robots.','Shane_Farritor'); + else if(c==1) + openLocationFeat('-15.4081930','28.2871670','demouser','Zambia','Nithal Kuwa','Graduate student, Biological Sciences','Nithal Kuwa\'s research could impact more than 1.8 million children in sub-Saharan Africa.','Nithal_Kuwa'); + else { + c=-1; + } + c=c+1; + t=setTimeout("letsdothisloop()",4000); +}; +function openLocationFeat(lat, lng, username, location, displayname, title, comment, linkname) { + clearTimeout(t); + 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 id="witw_wrapper"><img class="witw_icon" src="mod/customindex/views/default/customindex/witw_icons/' + linkname + '_medium.jpg" width="60" height="60" /><h1>' + displayname + '</h1><p class="witw_location">' + location + '</p><p class="witw_title">' + title + '</p><p class="witw_comment">' + comment + ' <a href="http://ucommmeranda.unl.edu/workspace/UNL_Featured/husker/' + linkname + '/">Continue Reading...</a></p></div>', 256, 154); +}; +function openLocation(lat, lng, username, location, displayname, title, comment) { + clearTimeout(t); + 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 id="witw_wrapper"><img class="witw_icon" src="http://ucommrasmussen.unl.edu/workspace/UNL_Elgg/elgg/mod/profile/icondirect.php?username=' + username + '&size=medium" width="60" height="60" /><h1>' + displayname + '</h1><p class="witw_location">' + location + '</p><p class="witw_title">' + title + '</p><p class="witw_comment">' + comment + '</p></div>', 256, 154); }; jQuery(document).ready(function() { diff --git a/customindex/views/default/customindex/witw_icons/Nithal_Kuwa.jpg b/customindex/views/default/customindex/witw_icons/Nithal_Kuwa.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9b08f1118f673c9d39595833b42b513adad16951 Binary files /dev/null and b/customindex/views/default/customindex/witw_icons/Nithal_Kuwa.jpg differ diff --git a/customindex/views/default/customindex/witw_icons/Nithal_Kuwa_medium.jpg b/customindex/views/default/customindex/witw_icons/Nithal_Kuwa_medium.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5d932535bbefc3c043abfa55951d339d021af9a4 Binary files /dev/null and b/customindex/views/default/customindex/witw_icons/Nithal_Kuwa_medium.jpg differ diff --git a/customindex/views/default/customindex/witw_icons/Nithal_Kuwa_tiny.jpg b/customindex/views/default/customindex/witw_icons/Nithal_Kuwa_tiny.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5763362f59f42515a8c82ed2dcfae3f0ecaf6577 Binary files /dev/null and b/customindex/views/default/customindex/witw_icons/Nithal_Kuwa_tiny.jpg differ diff --git a/customindex/views/default/customindex/witw_icons/Shane_Farritor.jpg b/customindex/views/default/customindex/witw_icons/Shane_Farritor.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8e29fdc88d9b16abffcff539542baffa9791a52c Binary files /dev/null and b/customindex/views/default/customindex/witw_icons/Shane_Farritor.jpg differ diff --git a/customindex/views/default/customindex/witw_icons/Shane_Farritor_medium.jpg b/customindex/views/default/customindex/witw_icons/Shane_Farritor_medium.jpg new file mode 100644 index 0000000000000000000000000000000000000000..318a0f362b47cf3ff37bc9f89a597abf372fa945 Binary files /dev/null and b/customindex/views/default/customindex/witw_icons/Shane_Farritor_medium.jpg differ diff --git a/customindex/views/default/customindex/witw_icons/Shane_Farritor_tiny.jpg b/customindex/views/default/customindex/witw_icons/Shane_Farritor_tiny.jpg new file mode 100644 index 0000000000000000000000000000000000000000..946a5545da4ec622f71b46e560cdd4840f00390c Binary files /dev/null and b/customindex/views/default/customindex/witw_icons/Shane_Farritor_tiny.jpg differ