Created
July 7, 2015 17:13
-
-
Save lianglee/9119bfe5ce6f94432874 to your computer and use it in GitHub Desktop.
photo.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* OpenSource-SocialNetwork | |
* | |
* @package (Informatikon.com).ossn | |
* @author OSSN Core Team <info@opensource-socialnetwork.com> | |
* @copyright 2014 iNFORMATIKON TECHNOLOGIES | |
* @license General Public Licence http://opensource-socialnetwork.com/licence | |
* @link http://www.opensource-socialnetwork.com/licence | |
*/ | |
$image = ossn_get_entity($params['post']->item_guid); | |
$image = ossn_profile_photo_wall_url($image); | |
?> | |
<div class="activity-item" id="activity-item-<?php echo $params['post']->guid; ?>"> | |
<div class="activity-item-container"> | |
<div class="owner"> | |
<img src="<?php echo $params['user']->iconURL()->small; ?>" width="40" height="40"/> | |
</div> | |
<div class="post-controls"> | |
<?php | |
if (ossn_is_hook('wall', 'post:menu') && ossn_isLoggedIn()) { | |
$menu['post'] = $params['post']; | |
echo ossn_call_hook('wall', 'post:menu', $menu); | |
} | |
?> | |
</div> | |
<div class="subject"> | |
<?php if ($params['user']->guid == $params['post']->owner_guid) { ?> | |
<a class="owner-link" | |
href="<?php echo $params['user']->profileURL(); ?>"> <?php echo $params['user']->fullname; ?> </a> | |
<div class="ossn-wall-item-type"><?php echo ossn_print('ossn:profile:picture:updated');?></div> | |
<?php | |
} | |
?> | |
<br/> | |
<div class="time" title="<?php echo date("F j, Y, g:i a", $params['post']->time_created);?>"> | |
<?php echo ossn_user_friendly_time($params['post']->time_created); ?> | |
<?php echo $params['location']; ?> - | |
<div | |
class="ossn-inline-table ossn-icon-access-<?php echo ossn_access_id_str($params['post']->access); ?>" | |
title="<?php echo ossn_print("title:access:{$params['post']->access}"); ?>"></div> | |
</div> | |
</div> | |
<div class="description"> | |
<img src="<?php echo $image; ?>"/> | |
</div> | |
</div> | |
<div class="comments-likes"> | |
<?php | |
if (ossn_is_hook('post', 'likes:entity')) { | |
$entity['entity_guid'] = $params['post']->item_guid; | |
echo ossn_call_hook('post', 'likes:entity', $entity); | |
} | |
?> | |
<div class="comments-item" style="border-bottom:1px solid #ddd;"> | |
<?php | |
if (ossn_is_hook('post', 'comments:entity')) { | |
$entity['entity_guid'] = $params['post']->item_guid; | |
echo ossn_call_hook('post', 'comments:entity', $entity); | |
} | |
?> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment