?> <li> <a href="<?php echo ossn_site_url('administrator'); ?> "><?php echo ossn_print('admin'); ?> </a> </li> <?php } ?> <li> <?php echo ossn_view_template('output/url', array('href' => ossn_site_url('action/user/logout'), 'text' => ossn_print('logout'), 'action' => true)); ?> </li> </ul> </div> </div> <!-- notification box --> <div class="ossn-notifications-box" style="height: 140px;"> <div class="selected"></div> <div class="type-name"> <?php echo ossn_print('notifications'); ?> </div> <div class="metadata"> <div style="height: 66px;">
} elseif ($comment->type == 'comments:post') { echo ' ' . $comment->getParam('comments:post'); } $image = $comment->getParam('file:comment:photo'); if (!empty($image)) { $image = str_replace('comment/photo/', '', $image); $image = ossn_site_url("comment/image/{$comment->id}/{$image}"); echo "<img src='{$image}' />"; } ?> </p> <div class="comment-metadata"> <?php echo ossn_user_friendly_time($comment->time_created); ?> <?php if (ossn_isLoggedIn()) { if (!$OssnLikes->isLiked($comment->id, ossn_loggedin_user()->guid, $type)) { echo ossn_view_template('output/url', array('href' => ossn_site_url("action/annotation/like?annotation={$comment->id}"), 'text' => ossn_print('like'), 'class' => 'ossn-like-comment', 'data-type' => 'Like', 'action' => true)); } else { echo ossn_view_template('output/url', array('href' => ossn_site_url("action/annotation/unlike?annotation={$comment->id}"), 'text' => ossn_print('unlike'), 'class' => 'ossn-like-comment', 'data-type' => 'Unlike', 'action' => true)); } } // Likes only for loggedin users end // Show total likes echo ossn_view_template('output/url', array('href' => 'javascript::;', 'text' => $likes_total, 'class' => "ossn-total-likes-{$comment->id}", 'data-likes' => $datalikes)); ?> </div> </div> </div>