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

No commit message

No commit message
parent 417c2d1c
No related branches found
No related tags found
No related merge requests found
<?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
?>
<!-- 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>
<!-- 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>
<div class="member_icon">
<img onclick="displayBrettRatcliffe();return false;" src="mod/customindex/witw_icons/Brett_Ratcliffe_tiny.jpg" alt="Profile Icon" />
</div>
<!-- row 8 -->
<div class="member_icon">
<img onclick="displayJorgeAlbertoRodriguez();return false;" src="mod/customindex/witw_icons/Jorge-Alberto_Rodriguez_tiny.jpg" alt="Profile Icon" />
</div>
<!-- <div class="member_icon">
<img onclick="displayAverySchwer();return false;" src="mod/customindex/witw_icons/Avery_Schwer_tiny.jpg" alt="Profile Icon" />
</div>
--> <div class="member_icon">
<img onclick="displayTedSorensen();return false;" src="mod/customindex/witw_icons/Ted_Sorensen_tiny.jpg" alt="Profile Icon" />
</div>
<div class="member_icon">
<img onclick="displayBobThacker();return false;" src="mod/customindex/witw_icons/Bob_Thacker_tiny.jpg" alt="Profile Icon" />
</div>
<!-- row 9 -->
<div class="member_icon">
<img onclick="displayKenVogel();return false;" src="mod/customindex/witw_icons/Ken_Vogel_tiny.jpg" alt="Profile Icon" />
</div>
<!-- <div class="member_icon">
<img onclick="displaySidnieWhiteCrawford();return false;" src="mod/customindex/witw_icons/Sidnie_White-Crawford_tiny.jpg" alt="Profile Icon" />
</div>
--> <div class="member_icon">
<img onclick="displayCharlesWood();return false;" src="mod/customindex/witw_icons/Charles_Wood_tiny.jpg" alt="Profile Icon" />
</div>
<div class="member_icon">
<img onclick="displayJohnYohe();return false;" src="mod/customindex/witw_icons/John_Yohe_tiny.jpg" alt="Profile Icon" />
</div>
<!-- row 10 -->
<!-- <div class="member_icon">
<img onclick="displayTrischaZornHudson();return false;" src="mod/customindex/witw_icons/Trischa_Zorn-Hudson_tiny.jpg" alt="Profile Icon" />
</div>
-->
<p class="clear" style="padding-bottom:5px;">
Most recent members to add their profile photo and location:
</p>
<!-- lat, lng, username, location, displayname, title, comment(text area) -->
<?php
//$users = get_entities_from_metadata('icontime', '', 'user', '', 0, 8);
$users = get_entities('user', '', 0, '', 8, 0, false, 0, null);
if($users){
foreach($users as $user){
echo "<div class=\"member_icon\"><img 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>";
}
}
?>
</div>
</div>
<div id="headline2">
<div class="splash_headline">
<h4>Put Yourself On The Map</h4>
<p>
All members of the UNL community are encouraged to join the conversation. It's Huskers like you that are the <strong>Power of Red</strong>.
</p>
</div>
</div>
<div id="headline3">
<div class="splash_headline">
<h4>National TV Spot</h4>
<p>
Watch the 30-second commercial, produced with help from Chris Ervin, '95, who creates visual effects for Hollywood.
</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">
<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">
<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/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 id="promoVideoList">
<a href="http://ucomm.unl.edu/av/video/pyotm/JerryHudginsPYOTM.mp4"><img src="mod/customindex/videoThumbHudgins.jpg" alt="Jerry Hudgins Thumbnail" /></a>
<a href="http://ucomm.unl.edu/av/video/pyotm/MicrogravityU_PYOTM.mp4"><img src="mod/customindex/videoThumbMicrogravity.jpg" alt="Microgravity Thumbnail" /></a>
<a href="http://ucomm.unl.edu/av/video/pyotm/ZNETprojectPYOTM.mp4"><img src="mod/customindex/videoThumbZNet.jpg" alt="Zero Net Energy Thumbnail" /></a>
<a href="http://ucomm.unl.edu/av/video/pyotm/EricaPetersonPYOTM.mp4"><img src="mod/customindex/videoThumbErica.jpg" alt="Video Thumbnail" /></a>
</div>
</div>
</div>
</div>
</div>
<!-- end moded splash code -->
<br style="clear:both" /><br />
<a name="login" href="#"></a>
<?php
if (!isloggedin()) {
?>
<div class="col left">
<div id="login-box">
<h2>Students, Faculty, Staff</h2>
<?php
$form_body = "<p class=\"login-box\"><span>Use your my.UNL account to begin.</span><br />";
$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('user:password:lost') . "</a></p>";
echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."?loginwith=UNLlogin"));
?>
</div>
<div id="login-box">
<h2>Huskers Worldwide</h2>
<?php
$form_body = "<p class=\"login-box\"><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea')) . "</label><br />";
$form_body .= "<label>" . elgg_echo('password') . "<br />" . elgg_view('input/password', array('internalname' => 'password', 'class' => 'login-textarea')) . "</label><br />";
$form_body .= elgg_view('input/submit', array('value' => elgg_echo('login'))) . "</p>";
$form_body .= "<p><a href=\"". $vars['url'] ."account/register.php\">" . elgg_echo('register') . "</a> | <a href=\"". $vars['url'] ."account/forgotten_password.php\">" . elgg_echo('user:password:lost') . "</a></p>";
echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."action/login"));
?>
</div>
</div>
<?php
}
?>
<div class="<?php if (isloggedin()) { echo('four');}else { echo('three');} ?>_col right">
<h2 id="indexheading">The Latest Happenings</h2>
<div class="col left">
<h3 class="sec_main">Featured Groups</h3>
<?php
$groups = get_entities_from_metadata("featured_group", "yes", "group", "", 0, 4, 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="<?php if (isloggedin()) { echo('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
if (isloggedin())
$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());
else
$result = mysql_query("SELECT * from elggentities where type='object' and subtype=4 and site_guid = 1 order by time_created desc limit 0, 3") 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 );
echo '<img style="clear:left;float:left" src="mod/profile/icondirect.php?username=' . $row3["username"] . '&size=small" />';
echo '<div class="index_item" style="overflow:hidden;float:left;max-width:';
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:';
if (isloggedin()) {echo('303px;');}else{echo('51px;');}
echo '"></span>';
echo ' <div style="padding:10px;">';
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>
<div class="zenbox">
<div style="float:left;margin:0px 5px 5px 0px;">
<img src="mod/customindex/witw_icons/Warren_Buffett_medium.jpg" alt="Warren Buffet" style="width:60px;height:60px;" />
</div>
<div style="float:left ;width:140px;">
<span class="name">Warren Buffett</span><br />
<span class="title">Chairman, Berkshire Hathaway</span><br />
<span class="location"> USA - Omaha, NE</span>
</div>
<div class="clear">
Warren Buffett, '50, has some investment advice for everyone: invest in yourself.<br />
<a href="featured/husker/Warren_Buffett/">Continue Reading...</a>
</div>
</div>
<div class="zenbox">
<div style="float:left;margin:0px 5px 5px 0px;">
<img src="mod/customindex/witw_icons/Atorod_Azizinamini_medium.jpg" alt="Atorod Azizinamini" style="width:60px;height:60px;" />
</div>
<div style="float:left ;width:140px;">
<span class="name">Atorod Azizinamini</span><br />
<span class="title">Professor of Civil Engineering and Director of NaBRO</span><br />
<span class="location">South Korea</span>
</div>
<div class="clear">
Atorod Azizinamini is developing better ways to renovate existing bridges and to build new ones that last a century or longer.<br />
<a href="featured/husker/Atorod_Azizinamini/">Continue Reading...</a>
</div>
</div>
<a href="featured/" title="See all the featured Huskers">See all the featured Huskers...</a>
</div>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment