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

more work on the index page

parent 07dd6159
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,6 @@
$body = elgg_view_layout('one_column', $area1);
// Draw page
echo page_draw(elgg_echo('this will be the page title'), $body);
echo page_draw(elgg_echo(' Huskers Around The World'), $body);
?>
\ No newline at end of file
......@@ -18,25 +18,36 @@
<!-- begin splash code from ucommcoleman/workspace/wdntempaltes/splash.shtml -->
<div class="four_col">
<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>
Alumni, students, faculty, staff and friends of the University of Nebraska-Lincoln are doing fantastic stuff around the world. Check out these Huskers:
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>
<?php
$users = get_entities('user', '', 0, '', 6, 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 "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $user, 'size' => 'small')) . "</div>";
}
}
?>
</p>
</div>
</div>
<div id="headline2">
<div class="splash_headline">
<h4>Put Yourself On The Map</h4>
<p>
Join UNL's new social network and join other alumni and supporters of UNL. Click here to get started!
All University of Nebraska-Lincoln community members are encouraged to become part of the conversation. It's Huskers like you that are the <strong>Power of Red</strong>.
</p>
</div>
</div>
......@@ -52,6 +63,7 @@
<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">
<p>Beginning May 11, several of the artist's large ceramic pieces will be placed in Sheldon's Great Hall. On June 19, his paintings and works on paper will open in three second-floor galleries. The exhibition will be on view through Oct. 11. <a href="http://newsroom.unl.edu/releases/2009/04/29/Paintings%2C+objects+of+Jun+Kaneko+opens+May+11+at+Sheldon+Museum+of+Art">Read the full news release.</a></p>
......@@ -65,3 +77,64 @@
</div>
</div>
<!-- end moded splash code -->
<br style="clear:both" /><br />
<?php
if (!isloggedin()) {
?>
<div class="col left">
<div id="login-box">
<h2>Students, Faculty, Staff</h2>
<?php
$form_body = "<p class=\"login-box\"><span>Have a my.UNL username and password?</span><br />";
$form_body .= elgg_view('input/submit', array('value' => elgg_echo('UNL Login'))) . "</p>";
$form_body .= "<p><a href=\"". $vars['url'] ."?loginwith=UNLlogin\">" . elgg_echo('register') . "</a> | <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>Friends of UNL</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">New Groups</h3>
<?php
$groups = get_entities('group', '', 0, '', 6, 0, false, 0, null);
if($groups){
foreach($groups as $group){
echo "<div class=\"index_item\">";
echo "<div class=\"index_item_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">Discussions</h3>
</div>
<div class="col right">
<h3 class="sec_main">Spotlight Huskers</h3>
</div>
</div>
......@@ -13,18 +13,21 @@
//Put some extra CSS below if needed
?>
/************************************************/
/* this is the elgg wrapper - we reset it here to cancel it out */
#one_column {
-moz-border-radius: 0px;
background:transparent;
padding:0;
margin:0;
}
div.four_col {
/************************************************/
/* splash rotation */
#splashwrapper {
border-top:1px solid #ddd;
border-bottom:1px solid #ddd;
padding:1px 0;
margin:10px 0 0 0;
}
#splash * {
margin:0;
......@@ -55,7 +58,7 @@
border-top:1px solid #660000;
}
#headlines div.splash_headline {
background:#efefef;
background:#f5f5f5;
height:135px;
border-top:1px solid #ccc;
color:#666;
......@@ -86,7 +89,6 @@
width:640px;
height:480px;
position:absolute;
top:0;left:0;
background:#d2d2d2;
}
#poster1 {
......@@ -98,4 +100,54 @@
#FE_InfoWindow { z-index: 9999; }
\ No newline at end of file
/************************************************/
/* the stuff below the splash headlines,posters */
#maincontent #indexheading {
border-bottom: 1px solid #e6e6e6;
margin-bottom:20px;
padding-bottom:0;
font-size:2.1em;
}
/*login*/
#myunlsignin {
-moz-border-radius:4px;
background:#6cbd45;
color:#fff;
font-weight:bold;
font-size:14px;
}
#login-box {
width:220px;
}
#login-box form {
width: 180px;
}
#login-box .login-textarea {
width:140px;
}
#maincontent #login-box p.login-box {
margin:0;
padding:10px 0 0 0;
}
#maincontent #login-box p.login-box span {
color:gray;
font-size:1.1em;
}
/* dynamically generated lists */
div.index_item {
margin-bottom:12px;
}
div.index_item_icon {
float:left;
}
div.index_item_name {
margin-left:50px;
min-height:40px;
}
div.index_item_name span.membercount {
margin-left:10px;
font-style: italic;
font-size:0.9em;
}
\ No newline at end of file
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