?> </div> <div class="cmmt"> <div class="info"> <div> <img src="<?php echo image_path('forum-threads-statuson.gif', false); ?> " alt="" /> <p><?php echo $thread->getTitle(); ?> </p> </div> <div class="postdate"> <?php $date = RaykuCommon::formatDateForPost($post->getUpdatedAt()); ?> Posted on <?php echo $date; ?> </div> <?php $logedUserId = $_SESSION['symfony/user/sfUser/attributes']['symfony/user/sfUser/attributes']['user_id']; if ($sf_user->getRaykuUserId() == $user->getId()) { echo '<div class="btns">'; if ($thread->getVisible() == 1) { echo link_to('close', '@thread_status?thread_id=' . $thread->getId() . '&status=close', array('class' => 'close')); } else { // echo link_to('Re-activate','@thread_status?thread_id='.$thread->getId().'&status=reactive',array('class' => 'reac')); echo link_to('Closed', '@view_thread?thread_id=' . $thread->getId(), array('class' => 'closed')); }