Ejemplo n.º 1
0
 * and its suppliers, if any.  The intellectual  and technical concepts contained herein 
 * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign 
 * Patents, patents in process, and are protected by trade secret or copyright law. 
 * 
 * Dissemination of this information or reproduction of this material is strictly forbidden 
 * unless prior written permission is obtained from SocialApparatus.
 * 
 * Contact Shane Barron admin@socia.us for more information.
 */
namespace SocialApparatus;

denyDirect();
$guid = pageArray(1);
$user = getEntity($guid);
$guids = array($user->guid);
$friends = FriendsPlugin::getFriends($user);
$entities = array();
$body = NULL;
if ($friends && !empty($friends)) {
    foreach ($friends as $friend) {
        $guids[] = $friend->guid;
    }
}
if ($guids) {
    $guids = join(',', $guids);
    $results = getEntities(array("type" => "Activity", "limit" => 10, "metadata_name" => "owner_guid", "metadata_value" => "(" . $guids . ")", "operand" => "IN", "order_by" => "time_created", "order_reverse" => true));
}
$body = viewEntityList($results);
echo <<<HTML
<div class='panel panel-default'>
    <div class='panel-heading'>
Ejemplo n.º 2
0
/* * ***********************************************************************
 * 
 * SocialApparatus CONFIDENTIAL
 * __________________
 * 
 *  [2002] - [2017] SocialApparatus (http://SocialApparatus.co) 
 *  All Rights Reserved.
 * 
 * NOTICE:  All information contained herein is, and remains the property of SocialApparatus 
 * and its suppliers, if any.  The intellectual  and technical concepts contained herein 
 * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign 
 * Patents, patents in process, and are protected by trade secret or copyright law. 
 * 
 * Dissemination of this information or reproduction of this material is strictly forbidden 
 * unless prior written permission is obtained from SocialApparatus.
 * 
 * Contact Shane Barron admin@socia.us for more information.
 */
namespace SocialApparatus;

denyDirect();
$vars = Vars::get("called_by");
$guid = pageArray(1);
$owner = getEntity($guid);
$friends = FriendsPlugin::getFriends($owner, 0, 1000);
$friends_list = viewEntityList($friends, "gallery");
$find_friends_url = getSiteURL() . "members";
$search_friends_form = drawForm(array("name" => "search_friends", "method" => "get", "page" => "searchFriends", "class" => "form-inline"));
$friends_text = translate("friends");
$find_friends_text = translate("find_friends");
echo display("page_elements/panel", array("heading" => "<a href='{$find_friends_url}' class='btn btn-success btn-xs pull-right'>{$find_friends_text}</a>{$friends_text}", "body" => $friends_list, "footer" => $search_friends_form));
Ejemplo n.º 3
0
<?php

/* * ***********************************************************************
 * 
 * SocialApparatus CONFIDENTIAL
 * __________________
 * 
 *  [2002] - [2017] SocialApparatus (http://SocialApparatus.co) 
 *  All Rights Reserved.
 * 
 * NOTICE:  All information contained herein is, and remains the property of SocialApparatus 
 * and its suppliers, if any.  The intellectual  and technical concepts contained herein 
 * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign 
 * Patents, patents in process, and are protected by trade secret or copyright law. 
 * 
 * Dissemination of this information or reproduction of this material is strictly forbidden 
 * unless prior written permission is obtained from SocialApparatus.
 * 
 * Contact Shane Barron admin@socia.us for more information.
 */
namespace SocialApparatus;

denyDirect();
gateKeeper();
$owner = getLoggedInUser();
$limit = 9;
$offset = getInput("offset", 0);
$filter = getInput("filter", NULL);
$friends = FriendsPlugin::getFriends($owner, $offset, $limit, $filter);
$body = viewEntityList($friends, "list");
echo drawPage(array("header" => translate("friends"), "body" => $body, "button" => drawForm(array("name" => "friend_search", "method" => "get", "page" => "friends"))));
 * 
 * SocialApparatus CONFIDENTIAL
 * __________________
 * 
 *  [2002] - [2017] SocialApparatus (http://SocialApparatus.co) 
 *  All Rights Reserved.
 * 
 * NOTICE:  All information contained herein is, and remains the property of SocialApparatus 
 * and its suppliers, if any.  The intellectual  and technical concepts contained herein 
 * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign 
 * Patents, patents in process, and are protected by trade secret or copyright law. 
 * 
 * Dissemination of this information or reproduction of this material is strictly forbidden 
 * unless prior written permission is obtained from SocialApparatus.
 * 
 * Contact Shane Barron admin@socia.us for more information.
 */
namespace SocialApparatus;

denyDirect();
$data = array();
$friends = FriendsPlugin::getFriends(getLoggedInUser());
if ($friends) {
    foreach ($friends as $friend) {
        $data[] = array("name" => $friend->full_name, "value" => $friend->guid);
    }
}
echo display("input/typeahead", array("name" => "to", "label" => "To:", "class" => "form-control", "data" => $data));
echo display("input/text", array("name" => "subject", "label" => "Subject:", "class" => "form-control", "required" => true));
echo display("input/editor", array("name" => "message", "label" => "Message:", "class" => "form-control", "required" => true));
echo display("input/submit", array("label" => "Send", "class" => "btn btn-success disabled"));