Commit c4e02e7c authored by Nicolas Widart's avatar Nicolas Widart

Adding the user first last name to the sidebars

parent 9ce90265
...@@ -5,10 +5,14 @@ ...@@ -5,10 +5,14 @@
<!-- Sidebar user panel --> <!-- Sidebar user panel -->
<div class="user-panel"> <div class="user-panel">
<div class="pull-left image"> <div class="pull-left image">
<img src="#" class="img-circle" alt="User Image" /> <img src="{{ $user->present()->gravatar() }}" class="img-circle" alt="User Image" />
</div> </div>
<div class="pull-left info"> <div class="pull-left info">
<p><em>Complete your profile.</em></p> <?php if ($user->present()->fullname() != ' '): ?>
<p><?= $user->present()->fullname(); ?></p>
<?php else: ?>
<p><em>Complete your profile.</em></p>
<?php endif; ?>
<a href="#"><i class="fa fa-circle text-success"></i> Online</a> <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
</div> </div>
......
...@@ -14,18 +14,24 @@ ...@@ -14,18 +14,24 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="glyphicon glyphicon-user"></i> <i class="glyphicon glyphicon-user"></i>
<span> <span>
<em>Complete your profile.</em> <?php if ($user->present()->fullname() != ' '): ?>
<?= $user->present()->fullName(); ?>
<?php else: ?>
<em>Complete your profile.</em>
<?php endif; ?>
<i class="caret"></i> <i class="caret"></i>
</span> </span>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<!-- User image --> <!-- User image -->
<li class="user-header bg-light-blue"> <li class="user-header bg-light-blue">
<img src="" class="img-circle" alt="User Image" /> <img src="{{ $user->present()->gravatar() }}" class="img-circle" alt="User Image" />
<p> <p>
<?php if ($user->present()->fullname() != ' '): ?>
<em>Complete your profile.</em> <?= $user->present()->fullname(); ?>
<small>Member since Nov. 2012</small> <?php else: ?>
<em>Complete your profile.</em>
<?php endif; ?>
</p> </p>
</li> </li>
<!-- Menu Footer--> <!-- Menu Footer-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment