} ?> <?php } else { ?> <li class="dropdown" id="secondary-nav"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-comment"></i> <?php $querys = get_notific(user_session_id()); $notifiche = count($querys); if ($notifiche > 0) { ?> <span class="label label-info"><?php echo $notifiche; ?> </span> <?php } ?> </a> <?php if ($notifiche > 0) { ?>
<div class="col-md-7"> <!-- Latest Orders/List Widget --> <div class="widget widget-heading-simple widget-body-gray" data-toggle="collapse-widget"> <!-- Widget Heading --> <div class="widget-head"> <h4 class="heading glyphicons shopping_cart"><i></i>Last orders</h4> <a href="" class="details pull-right">view all</a> </div> <!-- // Widget Heading --> <div class="widget-body list products"> <ul> <?php $querys = get_notific($profile->id); $notifiche = count($querys); if ($notifiche > 0) { foreach ($querys as $notific) { echo ' <li> <img src="' . get_profile_photo_by_id($notific['user_id_created_by'], "thumb") . '" width="50px"> <span class="title">10 items<br/><strong>' . $notific['user_notification_type'] . ' €5,900.00</strong></span> <span class="count"></span> </li>'; } } else { ?> <!-- List item --> <li> <span class="img">photo</span>