diff --git a/plugins/customindex/views/default/customindex/content.php b/plugins/customindex/views/default/customindex/content.php index 0a76dbc28d30d449ef8e6111fa9afed0a5690d20..e6dd5dcb36abd7ded256cf9408fc90f0f0acac8c 100644 --- a/plugins/customindex/views/default/customindex/content.php +++ b/plugins/customindex/views/default/customindex/content.php @@ -1,384 +1,386 @@ -<?php - /** - * Elgg customindex plugin - * This plugin substitutes the frontpage with a custom one - * - * @package Customdash - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Boris Glumpler - * @copyright Boris Glumpler 2008 - * @link /travel-junkie.com - */ - - // Put your content below - /* - ini_set('display_errors',true); - error_reporting(E_ALL); - */ - include dirname(__FILE__)."/../../../../unl_theme/scripts/badwordfilter.php"; - - -?> -<script type="text/javascript">var config_url = "<?php echo $CONFIG->url ?>";</script> -<script type="text/javascript" src="http://globe.poly9.com/api.js"></script> -<script type="text/javascript" src="<?php echo $CONFIG->url ?>mod/customindex/witw_people.js"></script> -<script type="text/javascript" src="<?php echo $CONFIG->url ?>mod/customindex/views/default/customindex/globesplash.js"></script> -<?php echo '<script type="text/javascript">WDN.loadJS("'.$vars['url'] . 'mod/unl_theme/scripts/jquery.tools.min.js"); $(document).ready(function(){$("div.scrollable").scrollable({size:4})});</script>'; ?> - -<!-- begin splash code from ucommcoleman/workspace/wdntempaltes/splash.shtml --> -<div id="splashwrapper"> - <div id="splash"> - <div id="headlines"> - <div id="headline1" class="activepanel"> - <div class="splash_headline"> - <h4>Huskers Around the World</h4> - <p> - UNL community members are doing fantastic work around the world. <a href="featured/">Featured Huskers</a>: - </p> - - <!-- row 1 --> - <div class="member_icon"> - <img onclick="displayNancyAndreasen();return false;" src="mod/customindex/witw_icons/Nancy_Andreasen_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayAtorodAzizinamini();return false;" src="mod/customindex/witw_icons/Atorod_Azizinamini_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayClaudeMBoltonJr();return false;" src="mod/customindex/witw_icons/Claude-M_Bolton-Jr_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayWarrenBuffett();return false;" src="mod/customindex/witw_icons/Warren_Buffett_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayMicrogravityStudents();return false;" src="mod/customindex/witw_icons/Microgravity_Students_tiny.jpg" alt="Profile Icon" /> - </div> - <!-- row 2 --> - <!-- <div class="member_icon"> - <img onclick="displayAnnChangBarnes();return false;" src="mod/customindex/witw_icons/Ann_Chang-Barnes_tiny.jpg" alt="Profile Icon" /> - </div> - --> <div class="member_icon"> - <img onclick="displayBingChen();return false;" src="mod/customindex/witw_icons/Bing_Chen_tiny.jpg" alt="Profile Icon" /> - </div> - <!-- <div class="member_icon"> - <img onclick="displayXunHongChen();return false;" src="mod/customindex/witw_icons/Xun-Hong_Chen_tiny.jpg" alt="Profile Icon" /> - </div> - --> <div class="member_icon"> - <img onclick="displayGranvilleCoggs();return false;" src="mod/customindex/witw_icons/Granville_Coggs_tiny.jpg" alt="Profile Icon" /> - </div> - <!-- row 3 --> - <div class="member_icon"> - <img onclick="displayDrLTreyColeman();return false;" src="mod/customindex/witw_icons/Dr-L-Trey_Coleman_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayPamDingman();return false;" src="mod/customindex/witw_icons/Pam_Dingman_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayChristopherElbow();return false;" src="mod/customindex/witw_icons/Christopher_Elbow_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayShaneFarritor();return false;" src="mod/customindex/witw_icons/Shane_Farritor_tiny.jpg" alt="Profile Icon" /> - </div> - <!-- row 4 --> - <div class="member_icon"> - <img onclick="displaySheriFritz();return false;" src="mod/customindex/witw_icons/Sheri_Fritz_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayRulonGardner();return false;" src="mod/customindex/witw_icons/Rulon_Gardner_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayDavidHarwood();return false;" src="mod/customindex/witw_icons/David_Harwood_tiny.jpg" alt="Profile Icon" /> - </div> - <!-- <div class="member_icon"> - <img onclick="displayJohnHoerner();return false;" src="mod/customindex/witw_icons/John_Hoerner_tiny.jpg" alt="Profile Icon" /> - </div> - --> <!-- row 5 --> - <div class="member_icon"> - <img onclick="displayMichaelHoff();return false;" src="mod/customindex/witw_icons/Michael_Hoff_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayJohnJanovyJr();return false;" src="mod/customindex/witw_icons/John_Janovy-Jr_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayJayKeasling();return false;" src="mod/customindex/witw_icons/Jay_Keasling_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayScottKillinger();return false;" src="mod/customindex/witw_icons/Scott_Killinger_tiny.jpg" alt="Profile Icon" /> - </div> - <!-- row 6 --> - <!-- <div class="member_icon"> - <img onclick="displayKarenKunc();return false;" src="mod/customindex/witw_icons/Karen_Kunc_tiny.jpg" alt="Profile Icon" /> - </div> - --> <div class="member_icon"> - <img onclick="displayNithalKuwa();return false;" src="mod/customindex/witw_icons/Nithal_Kuwa_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayCindyMcCaffrey();return false;" src="mod/customindex/witw_icons/Cindy_McCaffrey_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayBetsyOBrien();return false;" src="mod/customindex/witw_icons/Betsy_O'Brien_tiny.jpg" alt="Profile Icon" /> - </div> - <!-- row 7 --> - <div class="member_icon"> - <img onclick="displayJuanitaPage();return false;" src="mod/customindex/witw_icons/Juanita_Page_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayLarkinPowell();return false;" src="mod/customindex/witw_icons/Larkin_Powell_tiny.jpg" alt="Profile Icon" /> - </div> - <div class="member_icon"> - <img onclick="displayJeffreyRaikes();return false;" src="mod/customindex/witw_icons/Jeffrey_Raikes_tiny.jpg" alt="Profile Icon" /> - </div> - <?php - if (isloggedin()) { - $me = get_user($_SESSION['user']->guid); - - ?> - <?php - - } - ?> - <p class="clear" style="padding-bottom:5px;"> - A few members who have put themselves on the map: - </p> - <!-- lat, lng, username, location, displayname, title, comment(text area) --> - <?php - $users = get_entities_from_metadata('icontime', '', 'user', '', 0, 16); - //$users = get_entities('user', '', 0, '', 8, 0, false, 0, null); - - if($users){ - foreach($users as $user){ - if (filtrado($user->map_explanation . $user->profile_city . $user->username . $user->name)) { - continue; - } - if($user->longitude != undefined && $user->longitude != "" && $user->map_explanation != undefined && $user->map_explanation != ""){ - echo "<div class=\"member_icon\"><img alt=\"Profile Pic\" onclick=\"window.openLocation('" . $user->longitude . "','" . $user->latitude . "','" . $user->username . "',"; - if($user->profile_country) - echo "'" . $user->profile_country . " - " . str_replace("'","\'",htmlentities($user->profile_city)) . ", " . $user->profile_state . "',"; - else - echo "'',"; - echo "'" . str_replace("'","\'",htmlentities($user->name)) . "',"; - if($user->profile_attended_from != "Did Not Attend UNL" && $user->profile_attended_from != "" && $user->profile_attended_from != NULL) - echo "'Attended UNL: " . $user->profile_attended_from . "-" . $user->profile_attended_to . "'"; - else - echo "''"; - echo ",'". str_replace("'","\'",htmlentities($user->map_explanation))."');return false;\" src=\"mod/profile/icon.php?username=" . $user->username . "&size=tiny\" /></div>"; - } - else{} - } - } - ?> - - </div> - </div> - <div id="headline2"> - <div class="splash_headline"> - <h4>Put Yourself on the Map - <img src="mod/customindex/icon_earth.png" alt="globe icon" style="float:right;padding-left:10px;" /></h4> - <p> - All Nebraska students, faculty/staff, alumni, fans and friends are encouraged to join the conversation. - </p> - </div> - </div> - <div id="headline3"> - <div class="splash_headline"> - <h4>Huskers on the Air - <img src="mod/customindex/views/default/customindex/images/video_thumbs/video.png" alt="video camera icon" style="float:right;padding-left:5px;" /></h4> - <p> - Check out all of the videos in the 'Put Yourself on the Map' campaign. - - </p> - </div> - </div> - </div> - <div id="posters"> - <div id="poster1"> - <div id="globeInner" style="opacity:1 !important; display: block !important;width:640px;height:480px;background-color:#000;"></div> - <!-- <div style="width:71px; height:77px; background:black; z-index:99999; position:absolute; bottom:0; right:0;"></div> --> - </div> - <div id="poster2" style="display:none;"> - <div style="width:330px; top:30px; left:30px;"> - <h2>Join the Conversation</h2> - <p> - Huskers like you are encouraged to join UNL's new social platform and put yourself on the map! - </p> - </div> - <br /> - <div style="width:250px; top:190px; left:30px;"> - <h3>Students, Faculty, Staff</h3> - <p> - Login now with your my.UNL username and password, we have an account waiting for you! - </p> - <?php - $form_body = "<p>"; - $form_body .= elgg_view('input/submit', array('value' => elgg_echo('UNL Login'))) . "</p>"; - $form_body .= "<p><a href=\"https://login.unl.edu/faq/account-resetpw.shtml\">" . elgg_echo('Forgot your my.UNL password?') . "</a></p>"; - echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."?loginwith=UNLlogin")); - ?> - </div> - <div style="width:250px; top:190px; left:330px;"> - <h3>Huskers Worldwide</h3> - <p> - Register an account now and get started. - </p> - <?php - $form_body = "<p>"; - $form_body .= elgg_view('input/submit', array('value' => elgg_echo('Register'))) . "</p>"; - echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."/account/register.php")); - ?> - </div> - - - </div> - <div id="poster3" style="display:none;"> - <div style="position:absolute; margin-top: 408px;"> - <a class="prevPage browse left"></a> - <div id="promoVideoList0" class="scrollable"> - <div class="items"> - <a href="http://ucomm.unl.edu/av/video/pyotm/PutYourselfOnTheMap.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbPromo.jpg" alt="Promo Thumbnail" class="tooltip" title="Put Yourself on the Map Advertisement" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/JerryHudginsPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbHudgins.jpg" alt="Jerry Hudgins Thumbnail" class="tooltip" title="Jerry Hudgins" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/MicrogravityU_PYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbMicrogravity.jpg" alt="Microgravity Thumbnail" class="tooltip" title="Microgravity" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/ZNETprojectPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbZNet.jpg" alt="Zero Net Energy Thumbnail" class="tooltip" title="Zero Net Energy" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/EricaPetersonPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbErica.jpg" alt="EricaThumbnail" class="tooltip" title="Erica Peterson" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/BetsyObrienPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbBetsy.jpg" alt="Betsy Thumbnail" class="tooltip" title="Betsy O'Brien" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/Shane_Farritor_PYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbShane.jpg" alt="Shane Thumbnail" class="tooltip" title="Shane Farritor" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/Nithal_Kuwa_PYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbNithal.jpg" alt="Nithal Thumbnail" class="tooltip" title="Nithal Kuwa" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/JohnJanovyPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbJohn.jpg" alt="John Thumbnail" class="tooltip" title="John Janovy" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/RulonGardnerPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbRulan.jpg" alt="Rulon Thumbnail" class="tooltip" title="Rulon Gardner" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_ScottKillinger.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbScottKillinger.jpg" alt="Scott Killinger Thumbnail" class="tooltip" title="Scott Killinger" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_ClaudeBolton.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbClaudeBolton.jpg" alt="Claude Bolton Thumbnail" class="tooltip" title="Claude Bolton " /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_ChinaArchitects.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbChinaArchitects.jpg" alt="China Architects Thumbnail" class="tooltip" title="China Architects " /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_JeffZeleny.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbJeffZeleny.jpg" alt="Jeff Zeleny Thumbnail" class="tooltip" title="Jeff Zeleny" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/JayKeaslingPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbJayKeasling.jpg" alt="Jay Keasling Thumbnail" class="tooltip" title="Jay Keasling" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/KenVogelPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbKenVogel.jpg" alt="Ken Vogel Thumbnail" class="tooltip" title="Ken Vogel " /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/LloydAmbrosiusPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbLloydAmbrosius.jpg" alt="Lloyd Ambrosius Thumbnail" class="tooltip" title="Lloyd Ambrosius" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/AtorodAziziPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbAtorodAzizinamini.jpg" alt="Atorod AzizinaminiThumbnail" class="tooltip" title="Atorod Azizinamini" /></a> - <!-- <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_ChrisErvin.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbChrisErvin.jpg" alt="Chris Ervin Thumbnail" class="tooltip" title="Chris Ervin" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_GarrettHope.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbGarrettHope.jpg" alt="Garrett Hope Thumbnail" class="tooltip" title="Garrett Hope" /></a> - <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_PatrickCombs.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbPatrickCombs.jpg" alt="Patrick Combs Thumbnail" class="tooltip" title="Patrick Combs" /></a> - --> - - - - </div> - </div> - <a class="nextPage browse right"></a> - </div> - <div id="promoVideo">This is the content replaced by the video. - </div> - <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> - <script type="text/javascript"> - var flashvars = { - allowfullscreen: "true", - quality: "best", - wmode: "transparent", - file: "http://ucomm.unl.edu/av/video/pyotm/PutYourselfOnTheMap.mp4", - image: "mod/customindex/views/default/customindex/images/video_thumbs/videoStill.jpg", - autostart: false, - skin: "http://www.unl.edu/ucomm/templatedependents/templatesharedcode/scripts/components/mediaplayer/UNLVideoSkin.swf" - } - var params = { - wmode: "transparent" - } - var attributes = {} - swfobject.embedSWF("http://www.unl.edu/ucomm/templatedependents/templatesharedcode/scripts/components/mediaplayer/player.swf", "promoVideo", "640", "408", "10.0.0", false, flashvars, params, attributes); - </script> - - - </div> - </div> - </div> -</div> -<!-- end moded splash code --> - -<div class="four_col right clear" style="margin-top:25px;"> - <h2 id="indexheading">The Latest Planet Red Happenings</h2> - <div class="col left"> - <h3 class="sec_main">Featured Groups</h3> - <?php - $groups = get_entities_from_metadata("featured_group", "yes", "group", "", 0, 7, false, false, false); - if($groups){ - foreach($groups as $group){ - echo "<div class=\"index_item\">"; - echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $group, 'size' => 'small')) . "</div>"; - echo "<div class=\"index_item_name\"><a href=\"" . $group->getUrl() . "\">" . $group->name . "</a><br /><span class=\"membercount\">" . get_group_members($group->guid, 10, 0, 0, true) . " members</span></div>"; - echo "</div>"; - } - } - ?> - </div> - <div class="two_col middle"> - <h3 class="sec_main">Latest Wire Posts</h3> - <?php - mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass) or die(mysql_error()); - mysql_select_db($CONFIG->dbname) or die(mysql_error()); - - //get the most recent wire posts - $result = mysql_query("SELECT * from elggentities where type='object' and subtype=4 and site_guid = 1 order by time_created desc limit 0, 5") or die(mysql_error()); - while($row = mysql_fetch_array( $result )) - { - //get the actual post - $query2 = "SELECT * from elggobjects_entity where guid=". $row['guid'] .""; - $result2 = mysql_query($query2); - $row2 = mysql_fetch_array( $result2 ); - - //get the owner of the post - $query3 = "SELECT * from elggusers_entity where guid=". $row['owner_guid'] .""; - $result3 = mysql_query($query3); - $row3 = mysql_fetch_array( $result3 ); - - if (!filtrado($row3['name'] . '' . $row2['description'])){ - echo '<img style="clear:left;float:left" alt="Profile Icon" src="mod/profile/icondirect.php?username=' . $row3["username"] . '&size=small" />'; - echo '<div class="index_item" style="overflow:hidden;float:left;max-width:400px;'; - //if (isloggedin()) {echo('400px;');}else{echo('162px;');} - echo 'border:1px solid #dbdbdb; margin-left:14px; min-height:45px; -moz-border-radius:3px;">'; - echo ' <span style="background:url(mod/customindex/commentbubblepoint.png); width:14px; height:34px; z-index:2; position:absolute; left:291px;'; - //if (isloggedin()) {echo('291px;');}else{echo('51px;');} - echo '"></span>'; - echo ' <div style="padding:10px;">'; - - ; - - echo '<p style="margin:0;"><a href="pg/profile/' . $row3['username'] . '">' . $row3['name'] . '</a>: ' . preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1">$1</a>', $row2['description']) . '</p>'; - //echo '<p style="margin:0;"><a href="pg/profile/' . $row3['username'] . '">' . $row3['name'] . '</a>: ' . $row2['description'] . '</p>'; - echo '<p style="margin:2px 0 3px 0; font-size:10px; clear:both;float:right"><em>' . friendly_time($row['time_updated']) . '</em></p>'; - echo ' </div>'; - echo '</div><div class="clear"></div>'; - } - - } - - ?> - - </div> - <div class="col right"> - <h3 class="sec_main">Featured Huskers</h3> - <?php - $result = mysql_query("SELECT TRIM(firstName) as firstName, TRIM(lastName) as lastName, `title`, `location`, `shortText` FROM `huskerInfo` WHERE `Active` = 1 ORDER BY RAND() LIMIT 0,2;"); - - $sPattern[0] = '/\s/m'; - $sPattern[1] = '/,|\./'; - $sReplace[0] = '-'; - $sReplace[1] = ''; - - while($row = mysql_fetch_array( $result )) - { - ?> - <div class="zenbox"> - <div style="float:left;margin:0px 5px 5px 0px;"> - <img src="mod/customindex/witw_icons/<?php echo preg_replace( $sPattern, $sReplace, $row["firstName"]."_".$row['lastName']);?>_medium.jpg" alt="<?php echo $row['firstName']." ".$row['lastName']?>" style="width:60px;height:60px;" /> - </div> - <div style="float:left ;width:140px;"> - <span class="name"><?php echo $row['firstName']." ".$row['lastName']?></span><br /> - <span class="title"><?php echo $row['title']?></span><br /> - <span class="location"><?php echo $row['location']?></span> - </div> - <div class="clear"> - <?php echo $row['shortText']?><br /> - <a href="featured/husker/<?php echo preg_replace( $sPattern, $sReplace, $row["firstName"]."_".$row['lastName']);?>/">Continue Reading...</a> - </div> - </div> - <?php - } - ?> - <a href="featured/" title="See all the featured Huskers">See all the featured Huskers...</a> - </div> -</div> +<?php + /** + * Elgg customindex plugin + * This plugin substitutes the frontpage with a custom one + * + * @package Customdash + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Boris Glumpler + * @copyright Boris Glumpler 2008 + * @link /travel-junkie.com + */ + + // Put your content below + /* + ini_set('display_errors',true); + error_reporting(E_ALL); + */ + include dirname(__FILE__)."/../../../../unl_theme/scripts/badwordfilter.php"; + + +?> +<script type="text/javascript">var config_url = "<?php echo $CONFIG->url ?>";</script> +<script type="text/javascript" src="http://globe.poly9.com/api.js"></script> +<script type="text/javascript" src="<?php echo $CONFIG->url ?>mod/customindex/witw_people.js"></script> +<script type="text/javascript" src="<?php echo $CONFIG->url ?>mod/customindex/views/default/customindex/globesplash.js"></script> +<?php echo '<script type="text/javascript">WDN.loadJS("'.$vars['url'] . 'mod/unl_theme/scripts/jquery.tools.min.js"); $(document).ready(function(){$("div.scrollable").scrollable({size:4})});</script>'; ?> + +<!-- begin splash code from ucommcoleman/workspace/wdntempaltes/splash.shtml --> +<div id="splashwrapper"> + <div id="splash"> + <div id="headlines"> + <div id="headline1" class="activepanel"> + <div class="splash_headline"> + <h4>Huskers Around the World</h4> + <p> + UNL community members are doing fantastic work around the world. <a href="featured/">Featured Huskers</a>: + </p> + + <!-- row 1 --> + <div class="member_icon"> + <img onclick="displayNancyAndreasen();return false;" src="mod/customindex/witw_icons/Nancy_Andreasen_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayAtorodAzizinamini();return false;" src="mod/customindex/witw_icons/Atorod_Azizinamini_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayClaudeMBoltonJr();return false;" src="mod/customindex/witw_icons/Claude-M_Bolton-Jr_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayWarrenBuffett();return false;" src="mod/customindex/witw_icons/Warren_Buffett_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayMicrogravityStudents();return false;" src="mod/customindex/witw_icons/Microgravity_Students_tiny.jpg" alt="Profile Icon" /> + </div> + <!-- row 2 --> + <!-- <div class="member_icon"> + <img onclick="displayAnnChangBarnes();return false;" src="mod/customindex/witw_icons/Ann_Chang-Barnes_tiny.jpg" alt="Profile Icon" /> + </div> + --> <div class="member_icon"> + <img onclick="displayBingChen();return false;" src="mod/customindex/witw_icons/Bing_Chen_tiny.jpg" alt="Profile Icon" /> + </div> + <!-- <div class="member_icon"> + <img onclick="displayXunHongChen();return false;" src="mod/customindex/witw_icons/Xun-Hong_Chen_tiny.jpg" alt="Profile Icon" /> + </div> + --> <div class="member_icon"> + <img onclick="displayGranvilleCoggs();return false;" src="mod/customindex/witw_icons/Granville_Coggs_tiny.jpg" alt="Profile Icon" /> + </div> + <!-- row 3 --> + <div class="member_icon"> + <img onclick="displayDrLTreyColeman();return false;" src="mod/customindex/witw_icons/Dr-L-Trey_Coleman_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayPamDingman();return false;" src="mod/customindex/witw_icons/Pam_Dingman_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayChristopherElbow();return false;" src="mod/customindex/witw_icons/Christopher_Elbow_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayShaneFarritor();return false;" src="mod/customindex/witw_icons/Shane_Farritor_tiny.jpg" alt="Profile Icon" /> + </div> + <!-- row 4 --> + <div class="member_icon"> + <img onclick="displaySheriFritz();return false;" src="mod/customindex/witw_icons/Sheri_Fritz_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayRulonGardner();return false;" src="mod/customindex/witw_icons/Rulon_Gardner_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayDavidHarwood();return false;" src="mod/customindex/witw_icons/David_Harwood_tiny.jpg" alt="Profile Icon" /> + </div> + <!-- <div class="member_icon"> + <img onclick="displayJohnHoerner();return false;" src="mod/customindex/witw_icons/John_Hoerner_tiny.jpg" alt="Profile Icon" /> + </div> + --> <!-- row 5 --> + <div class="member_icon"> + <img onclick="displayMichaelHoff();return false;" src="mod/customindex/witw_icons/Michael_Hoff_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayJohnJanovyJr();return false;" src="mod/customindex/witw_icons/John_Janovy-Jr_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayJayKeasling();return false;" src="mod/customindex/witw_icons/Jay_Keasling_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayScottKillinger();return false;" src="mod/customindex/witw_icons/Scott_Killinger_tiny.jpg" alt="Profile Icon" /> + </div> + <!-- row 6 --> + <!-- <div class="member_icon"> + <img onclick="displayKarenKunc();return false;" src="mod/customindex/witw_icons/Karen_Kunc_tiny.jpg" alt="Profile Icon" /> + </div> + --> <div class="member_icon"> + <img onclick="displayNithalKuwa();return false;" src="mod/customindex/witw_icons/Nithal_Kuwa_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayCindyMcCaffrey();return false;" src="mod/customindex/witw_icons/Cindy_McCaffrey_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayBetsyOBrien();return false;" src="mod/customindex/witw_icons/Betsy_O'Brien_tiny.jpg" alt="Profile Icon" /> + </div> + <!-- row 7 --> + <div class="member_icon"> + <img onclick="displayJuanitaPage();return false;" src="mod/customindex/witw_icons/Juanita_Page_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayLarkinPowell();return false;" src="mod/customindex/witw_icons/Larkin_Powell_tiny.jpg" alt="Profile Icon" /> + </div> + <div class="member_icon"> + <img onclick="displayJeffreyRaikes();return false;" src="mod/customindex/witw_icons/Jeffrey_Raikes_tiny.jpg" alt="Profile Icon" /> + </div> + <?php + if (isloggedin()) { + $me = get_user($_SESSION['user']->guid); + + ?> + <?php + + } + ?> + <p class="clear" style="padding-bottom:5px;"> + A few members who have put themselves on the map: + </p> + <!-- lat, lng, username, location, displayname, title, comment(text area) --> + <?php + $users = get_entities_from_metadata('icontime', '', 'user', '', 0, 16); + //$users = get_entities('user', '', 0, '', 8, 0, false, 0, null); + + if($users){ + foreach($users as $user){ + if (filtrado($user->map_explanation . $user->profile_city . $user->username . $user->name)) { + continue; + } + if($user->longitude != undefined && $user->longitude != "" && $user->map_explanation != undefined && $user->map_explanation != ""){ + echo "<div class=\"member_icon\"><img alt=\"Profile Pic\" onclick=\"window.openLocation('" . $user->longitude . "','" . $user->latitude . "','" . $user->username . "',"; + if($user->profile_country) + echo "'" . $user->profile_country . " - " . str_replace("'","\'",htmlentities($user->profile_city)) . ", " . $user->profile_state . "',"; + else + echo "'',"; + echo "'" . str_replace("'","\'",htmlentities($user->name)) . "',"; + if($user->profile_attended_from != "Did Not Attend UNL" && $user->profile_attended_from != "" && $user->profile_attended_from != NULL) + echo "'Attended UNL: " . $user->profile_attended_from . "-" . $user->profile_attended_to . "'"; + else + echo "''"; + echo ",'". str_replace("'","\'",htmlentities($user->map_explanation))."');return false;\" src=\"mod/profile/icon.php?username=" . $user->username . "&size=tiny\" /></div>"; + } + else{} + } + } + ?> + + </div> + </div> + <div id="headline2"> + <div class="splash_headline"> + <h4>Put Yourself on the Map + <img src="mod/customindex/icon_earth.png" alt="globe icon" style="float:right;padding-left:10px;" /></h4> + <p> + All Nebraska students, faculty/staff, alumni, fans and friends are encouraged to join the conversation. + </p> + </div> + </div> + <div id="headline3"> + <div class="splash_headline"> + <h4>Huskers on the Air + <img src="mod/customindex/views/default/customindex/images/video_thumbs/video.png" alt="video camera icon" style="float:right;padding-left:5px;" /></h4> + <p> + Check out all of the videos in the 'Put Yourself on the Map' campaign. + + </p> + </div> + </div> + </div> + <div id="posters"> + <div id="poster1"> + <div id="globeInner" style="opacity:1 !important; display: block !important;width:640px;height:480px;background-color:#000;"></div> + <!-- <div style="width:71px; height:77px; background:black; z-index:99999; position:absolute; bottom:0; right:0;"></div> --> + </div> + <div id="poster2" style="display:none;"> + <div style="width:330px; top:30px; left:30px;"> + <h2>Join the Conversation</h2> + <p> + Huskers like you are encouraged to join UNL's new social platform and put yourself on the map! + </p> + </div> + <br /> + <div style="width:250px; top:190px; left:30px;"> + <h3>Students, Faculty, Staff</h3> + <p> + Login now with your my.UNL username and password, we have an account waiting for you! + </p> + <?php + $form_body = "<p>"; + $form_body .= elgg_view('input/submit', array('value' => elgg_echo('UNL Login'))) . "</p>"; + $form_body .= "<p><a href=\"https://login.unl.edu/faq/account-resetpw.shtml\">" . elgg_echo('Forgot your my.UNL password?') . "</a></p>"; + echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."?loginwith=UNLlogin")); + ?> + </div> + <div style="width:250px; top:190px; left:330px;"> + <h3>Huskers Worldwide</h3> + <p> + Register an account now and get started. + </p> + <?php + $form_body = "<p>"; + $form_body .= elgg_view('input/submit', array('value' => elgg_echo('Register'))) . "</p>"; + echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."/account/register.php")); + ?> + </div> + + + </div> + <div id="poster3" style="display:none;"> + <div style="position:absolute; margin-top: 408px;"> + <a class="prevPage browse left"></a> + <div id="promoVideoList0" class="scrollable"> + <div class="items"> + <a href="http://ucomm.unl.edu/av/video/pyotm/PutYourselfOnTheMap.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbPromo.jpg" alt="Promo Thumbnail" class="tooltip" title="Put Yourself on the Map Advertisement" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/JerryHudginsPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbHudgins.jpg" alt="Jerry Hudgins Thumbnail" class="tooltip" title="Jerry Hudgins" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/MicrogravityU_PYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbMicrogravity.jpg" alt="Microgravity Thumbnail" class="tooltip" title="Microgravity" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/ZNETprojectPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbZNet.jpg" alt="Zero Net Energy Thumbnail" class="tooltip" title="Zero Net Energy" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/EricaPetersonPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbErica.jpg" alt="EricaThumbnail" class="tooltip" title="Erica Peterson" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/BetsyObrienPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbBetsy.jpg" alt="Betsy Thumbnail" class="tooltip" title="Betsy O'Brien" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/Shane_Farritor_PYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbShane.jpg" alt="Shane Thumbnail" class="tooltip" title="Shane Farritor" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/Nithal_Kuwa_PYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbNithal.jpg" alt="Nithal Thumbnail" class="tooltip" title="Nithal Kuwa" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/JohnJanovyPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbJohn.jpg" alt="John Thumbnail" class="tooltip" title="John Janovy" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/RulonGardnerPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbRulan.jpg" alt="Rulon Thumbnail" class="tooltip" title="Rulon Gardner" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_ScottKillinger.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbScottKillinger.jpg" alt="Scott Killinger Thumbnail" class="tooltip" title="Scott Killinger" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_ClaudeBolton.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbClaudeBolton.jpg" alt="Claude Bolton Thumbnail" class="tooltip" title="Claude Bolton " /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_ChinaArchitects.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbChinaArchitects.jpg" alt="China Architects Thumbnail" class="tooltip" title="China Architects " /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_JeffZeleny.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbJeffZeleny.jpg" alt="Jeff Zeleny Thumbnail" class="tooltip" title="Jeff Zeleny" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/JayKeaslingPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbJayKeasling.jpg" alt="Jay Keasling Thumbnail" class="tooltip" title="Jay Keasling" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/KenVogelPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbKenVogel.jpg" alt="Ken Vogel Thumbnail" class="tooltip" title="Ken Vogel " /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/LloydAmbrosiusPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbLloydAmbrosius.jpg" alt="Lloyd Ambrosius Thumbnail" class="tooltip" title="Lloyd Ambrosius" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/AtorodAziziPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbAtorodAzizinamini.jpg" alt="Atorod Azizinamini Thumbnail" class="tooltip" title="Atorod Azizinamini" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/BruceMitchellPYOTM.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbBruceMitchell.jpg" alt="Bruce Mitchell Thumbnail" class="tooltip" title="Bruce Mitchell" /></a> + + <!-- <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_ChrisErvin.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbChrisErvin.jpg" alt="Chris Ervin Thumbnail" class="tooltip" title="Chris Ervin" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_GarrettHope.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbGarrettHope.jpg" alt="Garrett Hope Thumbnail" class="tooltip" title="Garrett Hope" /></a> + <a href="http://ucomm.unl.edu/av/video/pyotm/PYOTM_PatrickCombs.mp4"><img src="mod/customindex/views/default/customindex/images/video_thumbs/videoThumbPatrickCombs.jpg" alt="Patrick Combs Thumbnail" class="tooltip" title="Patrick Combs" /></a> + --> + + + + </div> + </div> + <a class="nextPage browse right"></a> + </div> + <div id="promoVideo">This is the content replaced by the video. + </div> + <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> + <script type="text/javascript"> + var flashvars = { + allowfullscreen: "true", + quality: "best", + wmode: "transparent", + file: "http://ucomm.unl.edu/av/video/pyotm/PutYourselfOnTheMap.mp4", + image: "mod/customindex/views/default/customindex/images/video_thumbs/videoStill.jpg", + autostart: false, + skin: "http://www.unl.edu/ucomm/templatedependents/templatesharedcode/scripts/components/mediaplayer/UNLVideoSkin.swf" + } + var params = { + wmode: "transparent" + } + var attributes = {} + swfobject.embedSWF("http://www.unl.edu/ucomm/templatedependents/templatesharedcode/scripts/components/mediaplayer/player.swf", "promoVideo", "640", "408", "10.0.0", false, flashvars, params, attributes); + </script> + + + </div> + </div> + </div> +</div> +<!-- end moded splash code --> + +<div class="four_col right clear" style="margin-top:25px;"> + <h2 id="indexheading">The Latest Planet Red Happenings</h2> + <div class="col left"> + <h3 class="sec_main">Featured Groups</h3> + <?php + $groups = get_entities_from_metadata("featured_group", "yes", "group", "", 0, 7, false, false, false); + if($groups){ + foreach($groups as $group){ + echo "<div class=\"index_item\">"; + echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $group, 'size' => 'small')) . "</div>"; + echo "<div class=\"index_item_name\"><a href=\"" . $group->getUrl() . "\">" . $group->name . "</a><br /><span class=\"membercount\">" . get_group_members($group->guid, 10, 0, 0, true) . " members</span></div>"; + echo "</div>"; + } + } + ?> + </div> + <div class="two_col middle"> + <h3 class="sec_main">Latest Wire Posts</h3> + <?php + mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass) or die(mysql_error()); + mysql_select_db($CONFIG->dbname) or die(mysql_error()); + + //get the most recent wire posts + $result = mysql_query("SELECT * from elggentities where type='object' and subtype=4 and site_guid = 1 order by time_created desc limit 0, 5") or die(mysql_error()); + while($row = mysql_fetch_array( $result )) + { + //get the actual post + $query2 = "SELECT * from elggobjects_entity where guid=". $row['guid'] .""; + $result2 = mysql_query($query2); + $row2 = mysql_fetch_array( $result2 ); + + //get the owner of the post + $query3 = "SELECT * from elggusers_entity where guid=". $row['owner_guid'] .""; + $result3 = mysql_query($query3); + $row3 = mysql_fetch_array( $result3 ); + + if (!filtrado($row3['name'] . '' . $row2['description'])){ + echo '<img style="clear:left;float:left" alt="Profile Icon" src="mod/profile/icondirect.php?username=' . $row3["username"] . '&size=small" />'; + echo '<div class="index_item" style="overflow:hidden;float:left;max-width:400px;'; + //if (isloggedin()) {echo('400px;');}else{echo('162px;');} + echo 'border:1px solid #dbdbdb; margin-left:14px; min-height:45px; -moz-border-radius:3px;">'; + echo ' <span style="background:url(mod/customindex/commentbubblepoint.png); width:14px; height:34px; z-index:2; position:absolute; left:291px;'; + //if (isloggedin()) {echo('291px;');}else{echo('51px;');} + echo '"></span>'; + echo ' <div style="padding:10px;">'; + + ; + + echo '<p style="margin:0;"><a href="pg/profile/' . $row3['username'] . '">' . $row3['name'] . '</a>: ' . preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1">$1</a>', $row2['description']) . '</p>'; + //echo '<p style="margin:0;"><a href="pg/profile/' . $row3['username'] . '">' . $row3['name'] . '</a>: ' . $row2['description'] . '</p>'; + echo '<p style="margin:2px 0 3px 0; font-size:10px; clear:both;float:right"><em>' . friendly_time($row['time_updated']) . '</em></p>'; + echo ' </div>'; + echo '</div><div class="clear"></div>'; + } + + } + + ?> + + </div> + <div class="col right"> + <h3 class="sec_main">Featured Huskers</h3> + <?php + $result = mysql_query("SELECT TRIM(firstName) as firstName, TRIM(lastName) as lastName, `title`, `location`, `shortText` FROM `huskerInfo` WHERE `Active` = 1 ORDER BY RAND() LIMIT 0,2;"); + + $sPattern[0] = '/\s/m'; + $sPattern[1] = '/,|\./'; + $sReplace[0] = '-'; + $sReplace[1] = ''; + + while($row = mysql_fetch_array( $result )) + { + ?> + <div class="zenbox"> + <div style="float:left;margin:0px 5px 5px 0px;"> + <img src="mod/customindex/witw_icons/<?php echo preg_replace( $sPattern, $sReplace, $row["firstName"]."_".$row['lastName']);?>_medium.jpg" alt="<?php echo $row['firstName']." ".$row['lastName']?>" style="width:60px;height:60px;" /> + </div> + <div style="float:left ;width:140px;"> + <span class="name"><?php echo $row['firstName']." ".$row['lastName']?></span><br /> + <span class="title"><?php echo $row['title']?></span><br /> + <span class="location"><?php echo $row['location']?></span> + </div> + <div class="clear"> + <?php echo $row['shortText']?><br /> + <a href="featured/husker/<?php echo preg_replace( $sPattern, $sReplace, $row["firstName"]."_".$row['lastName']);?>/">Continue Reading...</a> + </div> + </div> + <?php + } + ?> + <a href="featured/" title="See all the featured Huskers">See all the featured Huskers...</a> + </div> +</div> diff --git a/plugins/customindex/views/default/customindex/images/video_thumbs/videoThumbBruceMitchell.jpg b/plugins/customindex/views/default/customindex/images/video_thumbs/videoThumbBruceMitchell.jpg new file mode 100644 index 0000000000000000000000000000000000000000..32c37b91b11ee2a6f06321ffe5214838c2b40221 Binary files /dev/null and b/plugins/customindex/views/default/customindex/images/video_thumbs/videoThumbBruceMitchell.jpg differ