Skip to content
Snippets Groups Projects
Commit 28ea4bf8 authored by Seth Meranda's avatar Seth Meranda
Browse files

begining stages of UI for new intro/login interactions for non-authenticated users.

parent c70153bf
No related branches found
No related tags found
No related merge requests found
This is the login page.
\ No newline at end of file
unl_theme/views/default/images/wdn_notice_ActionBG.png

695 B

unl_theme/views/default/images/wdn_notice_BG.png

859 B

unl_theme/views/default/images/wdn_notice_EarthIcon.png

9.01 KiB

......@@ -56,6 +56,57 @@ WDN.jQuery(document).ready(function(){
</script>';
}
?>
<?php
if (!isloggedin()) { //The styles for the information box to be displayed if a non-authenticated user has arrived.
?>
<script type="text/javascript">
WDN.jQuery(document).ready(function(){
WDN.jQuery("a#loginLink").colorbox({width:"50%", inline:true, href:"#login-box"});
});
</script>
<style type="text/css">
#maincontent .wdn_notice {
background: url('<?php echo $vars['url']; ?>mod/unl_theme/views/default/images/wdn_notice_BG.png') repeat-x;
}
#maincontent .wdn_notice div.message {
background: url('<?php echo $vars['url']; ?>mod/unl_theme/views/default/images/wdn_notice_EarthIcon.png') no-repeat;
min-height:78px;
padding:0px 5px 0 85px;
}
#maincontent .wdn_notice div.message h4 {
font-size:2em;
padding-bottom:0;
}
#maincontent .wdn_notice div.message h6 {
color:#5585C6;
text-transform:uppercase;
}
#maincontent .wdn_notice div.message .message_sale {
float:left;
padding-top:20px;
}
#maincontent .wdn_notice div.message .message_action {
float:left;
margin-left:60px;
font-size:1.8em;
padding-top:33px;
}
#maincontent .wdn_notice div.message .message_action span {
background: url('<?php echo $vars['url']; ?>mod/unl_theme/views/default/images/wdn_notice_ActionBG.png') no-repeat;
width:167px;
height:45px;
display:inline;
padding:9px 50px 15px 25px;
}
#maincontent .wdn_notice div.message .message_action a span {
color:white !important;
}
#maincontent .wdn_notice div.message .message_action a strong {
margin-left:10px;
}
</style>
<?php } //end if not logged in?>
<?php
if ($vars['title'] == "Edit profile") {
?>
......
......@@ -15,20 +15,29 @@
}
}
?>
<ul class="wdn_tabs disableSwitching">
<?php
if (!isloggedin()) {
?>
<li>
<a href="<?php echo $vars['url']; ?>" ><span>Home</span></a>
</li>
<?php } ?>
<div class="wdn_notice" id="officialMessage">
<div class="message">
<div class="message_sale">
<h4>Planet Red is <strong>your</strong> UNL Social Network.</h4>
<h6>Put Yourself on the Map</h6>
</div>
<div class="message_action">
<a href="<?php echo $vars['url']; ?>account/register.php" title="Register to join Planet Red"><span>Join now</span></a>
</div>
<div class="message_action" style="margin-left:28px;font-size:1.3em;">
or <a href="<?php echo $vars['url']; ?>account/login.php" id="loginLink"><strong>Sign in</strong></a>
</div>
</div>
</div>
<?php }?>
<?php
if (isloggedin()) {
?>
<li>
<ul class="wdn_tabs disableSwitching">
<li>
<a href="<?php echo $_SESSION['user']->getURL(); ?>" ><span style="background:url('<?php echo $_SESSION['user']->getIcon('topbar'); ?>') no-repeat; padding-left:20px;">Profile</span></a>
</li>
<li <?php echo setSelectedTab('pg/dashboard/');?>>
......@@ -87,20 +96,6 @@
<li <?php echo setSelectedTab('action/logout');?>><a href="<?php echo $vars['url']; ?>action/logout"><span><?php echo elgg_echo('logout'); ?></span></a></li>
<?php
} else {
?>
<li <?php echo setSelectedTab('/account/register.php');?>>
<a href="<?php echo $vars['url']; ?>account/register.php" ><span>Register</span></a>
</li>
<li <?php echo setSelectedTab('#login');?>>
<a href="<?php echo $vars['url']; ?>#login" ><span>Login</span></a>
</li>
<?php
}
?>
</ul>
<div id="elgg_topbar_container_search">
<form id="searchform" action="<?php echo $vars['url']; ?>search/" method="get">
......@@ -111,4 +106,12 @@
</fieldset>
</form>
</div>
<?php
}
?>
<div class="clear"></div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment