<?php /** * Elgg collections of friends * * @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ */ // Start engine require_once dirname(dirname(__FILE__)) . "/engine/start.php"; // You need to be logged in for this one gatekeeper(); $area2 = elgg_view_access_collections($_SESSION['user']->getGUID()); // Format page $body = elgg_view_layout('two_column_left_sidebar', '', elgg_view_title(elgg_echo('friends:collections')) . $area2); // Draw it page_draw(elgg_echo('friends:collections'), $body);
<?php /** * Elgg collections of friends * * @package Elgg.Core * @subpackage Social.Collections */ $owner = elgg_get_logged_in_user_entity(); if (!$owner) { forward('', '404'); } $title = elgg_echo('friends:collections'); if ($owner->canEdit()) { elgg_register_menu_item('title', ['name' => 'add', 'href' => "collections/add/{$owner->guid}", 'text' => elgg_echo('collections:add'), 'link_class' => 'elgg-button elgg-button-action']); } $content = elgg_view_access_collections($owner->guid); $body = elgg_view_layout('content', array('filter' => false, 'content' => $content, 'title' => $title, 'context' => 'collections')); echo elgg_view_page($title, $body);
<?php echo 'dfadfd fuffufufu'; /** * Elgg collections of friends * * @package Elgg.Core * @subpackage Social.Collections */ $title = elgg_echo('friends:collections'); elgg_register_title_button('collections', 'add'); $content = elgg_view_access_collections(elgg_get_logged_in_user_guid()); $body = elgg_view_layout('content', array('filter' => false, 'content' => $content, 'title' => $title, 'context' => 'collections')); echo elgg_view_page($title, $body);