<?php /** * Open Source Social Network * * @package Open Source Social Network * @author Open Social Website Core Team <*****@*****.**> * @copyright 2014 iNFORMATIKON TECHNOLOGIES * @license General Public Licence http://www.opensource-socialnetwork.org/licence * @link http://www.opensource-socialnetwork.org/licence */ $OssnLikes = new OssnLikes(); $OssnComments = new OssnComments(); $object = $params['entity_guid']; $count = $OssnLikes->CountLikes($object, 'entity'); if (ossn_isLoggedIn()) { ?> <div class="like_share comments-like-comment-links"> <div id="ossn-like-<?php echo $object; ?> " class="button-container"> <?php if (!$OssnLikes->isLiked($object, ossn_loggedin_user()->guid, 'entity')) { $link['onclick'] = "Ossn.EntityLike({$object});"; $link['href'] = 'javascript::;'; $link['text'] = ossn_print('ossn:like'); echo ossn_view('system/templates/link', $link); } else { $user_liked = true; $link['onclick'] = "Ossn.EntityUnlike({$object});";
* Open Source Social Network * * @packageOpen Source Social Network * @author Open Social Website Core Team <*****@*****.**> * @copyright 2014 iNFORMATIKON TECHNOLOGIES * @license General Public Licence http://www.opensource-socialnetwork.org/licence * @link http://www.opensource-socialnetwork.org/licence */ ossn_trigger_callback('comment', 'load', $params['comment']); $OssnLikes = new OssnLikes(); $comment = arrayObject($params['comment'], 'OssnWall'); $user = ossn_user_by_guid($comment->owner_guid); if ($comment->type == 'comments:post' || $comment->type == 'comments:entity') { $type = 'annotation'; } $likes_total = $OssnLikes->CountLikes($comment->id, $type); $datalikes = ''; if ($likes_total > 0) { $datalikes = $likes_total; $likes_total = '<span class="dot-likes">.</span><div class="ossn-like-icon"></div>' . $likes_total; } ?> <div class="comments-item" id="comments-item-<?php echo $comment->id; ?> "> <div class="ossn-comment-menu" onclick="Ossn.CommentMenu(this);"> <?php echo ossn_view_menu('comments', 'comments/menu/comments'); ?> </div>
<?php /** * Open Source Social Network * * @package Open Source Social Network * @author Open Social Website Core Team <*****@*****.**> * @copyright 2014 iNFORMATIKON TECHNOLOGIES * @license General Public Licence http://www.opensource-socialnetwork.org/licence * @link http://www.opensource-socialnetwork.org/licence */ $OssnLikes = new OssnLikes(); $OssnComments = new OssnComments(); $object = $params->guid; $count = $OssnLikes->CountLikes($object); $user_liked = ''; if (ossn_isLoggedIn()) { ?> <div class="like_share comments-like-comment-links"> <div id="ossn-like-<?php echo $object; ?> " class="button-container"> <?php if (!$OssnLikes->isLiked($object, ossn_loggedin_user()->guid)) { $link['onclick'] = "Ossn.PostLike({$object});"; $link['href'] = 'javascript::;'; $link['text'] = ossn_print('ossn:like'); echo ossn_view('system/templates/link', $link); } else {