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 @@
<!-- Sidebar user panel -->
<div class="user-panel">
<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 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>
</div>
......
......@@ -14,18 +14,24 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="glyphicon glyphicon-user"></i>
<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>
</span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<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>
<em>Complete your profile.</em>
<small>Member since Nov. 2012</small>
<?php if ($user->present()->fullname() != ' '): ?>
<?= $user->present()->fullname(); ?>
<?php else: ?>
<em>Complete your profile.</em>
<?php endif; ?>
</p>
</li>
<!-- 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