Created
December 2, 2017 14:59
-
-
Save maulayyacyber/e6952389adec65e88b9ef91aed43a40f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ($this->apps->apps_id()) { ?> | |
<?php | |
if($this->session->userdata("apps_foto") == "") | |
{ | |
$avatar = base_url().'resources/images/avatar/user.png'; | |
}else{ | |
$avatar = base_url().'resources/images/avatar/'.$this->session->userdata('apps_foto'); | |
} | |
?> | |
<li class="dropdown"> | |
<a class="dropdown-toggle" style="padding-top: 11px;line-height: 30px;padding-bottom:9px;background-color: #F1F1F1" data-toggle="dropdown" href="#"><img src="<?php echo $avatar ?>" width="45" height="45" alt="" style="border-radius:25px" class="avatar alignnone photo avatar-default"> <?php print $this->session->userdata('apps_nama'); ?> | |
<span class="caret"></span></a> | |
<ul class="dropdown-menu" style="min-width:200px;font-family: Roboto;font-weight: 300"> | |
<div style="color:#333;margin-left:17px">Selamat Datang</div> | |
<div style="color:#333;margin-left:17px;font-weight: 500;"><?php print $this->session->userdata('apps_nama'); ?></div> | |
<li class="divider"></li> | |
<li><a style="font-family: Roboto;font-weight: 300" href="<?php print base_url() ?>user/dashboard/"><i class="fa fa-home"></i> Dashboard</a></li> | |
<li><a style="font-family: Roboto;font-weight: 300" href="<?php print base_url() ?>user/blog/"><i class="fa fa-book"></i> Blog <span class="pull-right-container"><small class="label pull-right bg-danger" style="background-color: #c74333;margin-top: 2px;padding-top: 4px"><?php echo new_blog(); ?></small></span></a></li> | |
<li><a style="font-family: Roboto;font-weight: 300" href="<?php print base_url() ?>user/screencast/"><i class="fa fa-youtube-play"></i> Screencast</a></li> | |
<?php | |
if($this->session->userdata("apps_role") == "100") { | |
?> | |
<li><a style="font-family: Roboto;font-weight: 300" href="<?php print base_url() ?>user/feedback/"><i class="fa fa-bell"></i> Feedback <span class="pull-right-container"><small class="label pull-right bg-danger" style="background-color: #c74333;margin-top: 2px;padding-top: 4px"><?php echo new_feedback(); ?></small></span></a></li> | |
<?php } ?> | |
<li class="divider"></li> | |
<li><a style="font-family: Roboto;font-weight: 300" href="<?php print base_url() ?>user/account/"><i class="fa fa-user-circle-o"></i> Account</a></li> | |
<li><a style="font-family: Roboto;font-weight: 300" href="<?php print base_url() ?>user/sign-out/"><i class="fa fa-sign-out"></i> Sign out</a></li> | |
</ul> | |
</li> | |
<?php } else { ?> | |
<?php | |
if($this->uri->segment(1) == "sign-in") { | |
echo '<a class="btn btn-success btn-md" style="margin-top: 15px;border-radius: 50px;margin-left: 5px" href="'.base_url().'sign-up/"><i class="fa fa-user-plus"></i> Sign up</a>'; | |
}elseif($this->uri->segment(1) == "sign-up") { | |
echo '<a class="btn btn-default btn-md" style="margin-top: 15px;border-radius: 50px;margin-left: 5px" href="'.base_url().'sign-in/"><i class="fa fa-sign-in"></i> Sign in</a>'; | |
}else{ | |
echo '<a class="btn btn-default btn-md" style="margin-top: 15px;border-radius: 50px;margin-left: 5px" href="'.base_url().'sign-in/"><i class="fa fa-sign-in"></i> Sign in</a>'; | |
echo '<a class="btn btn-success btn-md" style="margin-top: 15px;border-radius: 50px;margin-left: 5px" href="'.base_url().'sign-up/"><i class="fa fa-user-plus"></i> Sign up</a>'; | |
} | |
?> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment