<div class="full col-sm-9"> <!-- main col left --> <div class="col-sm-8"> <?php foreach ($wda as $o) { ?> <!-- All status upadtes on wall --> <div class="panel panel-default"> <?php $done = "shared"; $time = $o->post_time; $images = Image_info::getImages("post", $o->post_id); $val = "false"; if ($o->user_id == $this->session->userdata('user_id')) { $val = "true"; } ?> <div class="panel-heading"><?php if ($val == "true") { ?> <a href="#" class="pull-right">Delete</a> <?php } ?> <h4><?php echo $o->first_name . " " . $o->last_name . " " . $done . " on " . $time; ?> </h4></div>