<?php // pages on the group index page //check to make sure this group forum has been activated if ($vars['entity']->pages_enable != 'no') { ?> <div id="group_tasks_widget"> <h2><?php echo elgg_echo("tasks:group"); ?> </h2> <?php set_context('search'); $objects = list_entities("object", "tasks", page_owner(), 5, false); set_context('tasks'); $users_tasks_url = $vars['url'] . "pg/tasks/" . page_owner_entity()->username; if ($objects) { echo $objects; echo "<div class=\"forum_latest\"><a href=\"{$users_tasks_url}\">" . elgg_echo('tasks:more') . "</a></div>"; } else { echo "<div class=\"forum_latest\">" . elgg_echo("tasks:nogroup") . "</div>"; } ?> <br class="clearfloat" /> </div> <?php }
<?php /** * Elgg view all blog posts from all users page * * @package ElggBlog * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd <*****@*****.**> * @copyright Curverider Ltd 2008-2009 * @link http://elgg.com/ */ // Load Elgg engine define('everyoneblog', 'true'); require_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; // Get the current page's owner $page_owner = $_SESSION['user']; set_page_owner($_SESSION['guid']); $area2 = elgg_view_title(elgg_echo('blog:everyone')); $area2 .= list_entities('object', 'blog', 0, 10, false); // get tagcloud // $area3 = "This will be a tagcloud for all blog posts"; // Get categories, if they're installed global $CONFIG; $area3 = elgg_view('blog/categorylist', array('baseurl' => $CONFIG->wwwroot . 'search/?subtype=blog&tagtype=universal_categories&tag=', 'subtype' => 'blog')); $body = elgg_view_layout("two_column_left_sidebar", '', $area2, $area3); // Display page page_draw(elgg_echo('blog:everyone'), $body);
* @author Curverider Ltd * @copyright Curverider Ltd 2008-2009 * @link http://elgg.com/ * * * TODO: File icons, download & mime types */ //require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); require_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; if (is_callable('group_gatekeeper')) { group_gatekeeper(); } //set the title if (page_owner() == $_SESSION['user']) { $area2 = elgg_view_title($title = elgg_echo('file:yours')); } else { $area2 = elgg_view_title($title = elgg_echo('files')); } // Get objects set_context('search'); $area2 .= list_entities("object", "file", page_owner(), 10); set_context('file'); $get_filter = get_filetype_cloud(page_owner()); if ($get_filter) { $area1 = $get_filter; } else { $area2 .= elgg_view('page_elements/contentwrapper', array('body' => elgg_echo("file:none"))); } $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2); // Finally draw the page page_draw(sprintf(elgg_echo("file:user"), page_owner_entity()->name), $body);
add_submenu_item(elgg_echo('pages:all'), $CONFIG->wwwroot . "mod/pages/world.php", 'pageslinksgeneral'); } if ($owner instanceof ElggEntity && can_write_to_container(0, $owner->guid)) { add_submenu_item(elgg_echo('pages:new'), $CONFIG->url . "pg/pages/new/?container_guid=" . page_owner(), 'pagesactions'); if ($owner instanceof ElggUser) { add_submenu_item(elgg_echo('pages:welcome'), $CONFIG->url . "pg/pages/welcome/", 'pagesactions'); } } if (is_callable('group_gatekeeper')) { group_gatekeeper(); } $limit = get_input("limit", 10); $offset = get_input("offset", 0); if ($owner instanceof ElggGroup) { $title = sprintf(elgg_echo("pages:group"), $owner->name); } else { $title = sprintf(elgg_echo("pages:user"), $owner->name); } // Get objects $context = get_context(); set_context('search'); $objects = list_entities("object", "page_top", page_owner(), $limit, false); set_context($context); //get the owners latest welcome message $welcome_message = get_entities("object", "pages_welcome", $owner->guid, '', 1); $body = elgg_view_title($title); $body .= elgg_view("pages/welcome", array('entity' => $welcome_message)); $body .= $objects; $body = elgg_view_layout('two_column_left_sidebar', '', $body); // Finally draw the page page_draw($title, $body);
<?php if (is_plugin_enabled('pages')) { $limit = get_plugin_setting('pages_num_items', 'vazco_mainpage'); if (!isset($limit) || !$limit) { $limit = 10; } $objects = list_entities("object", "page_top", 0, $limit, false); ?> <div class="index_box listing_narrow"> <h2><?php echo elgg_echo("custom:pages"); ?> </h2> <div class="search_listing"> <?php if ($objects != '') { echo $objects; } else { echo elgg_echo('vazco_mainpage:pages:nopages'); } ?> </div> </div> <?php }
* @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ */ // Load Elgg engine require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php"; // Set context set_context('search'); // Get input $tag = stripslashes(get_input('tag')); if (!empty($tag)) { $title = sprintf(elgg_echo('content_item:content_search_title'), $tag); $body = ""; $body .= elgg_view_title($title); // elgg_view_title(sprintf(elgg_echo('searchtitle'),$tag)); $body .= elgg_view('user/search/startblurb', array('tag' => $tag)); $offset = (int) get_input('offset'); $limit = 50; $count = (int) search_for_user($tag, 50, 0, '', true); $entities = search_for_user($tag, $limit, $offset); $body .= elgg_view_entity_list($entities, $count, $offset, $limit, $fullview, false); /// The above code instead of the line below //$body .= list_user_search($tag); } else { $title = elgg_echo('item:user'); $body .= elgg_view_title($title); $body .= list_entities('user'); } $body = elgg_view_layout('one_column', $body); page_draw($title, $body);
<style type="text/css"> #pages_widget .pagination { display:none; } </style> <?php /** * Elgg pages widget edit * * @package ElggPages * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd <*****@*****.**> * @copyright Curverider Ltd 2008-2009 * @link http://elgg.com/ */ $num_display = (int) $vars['entity']->pages_num; $pages = list_entities("object", "page_top", page_owner(), $num_display, false); $pagesurl = $vars['url'] . "pg/pages/owned/" . page_owner_entity()->username; $pages .= "<div class=\"pages_widget_singleitem_more\"><a href=\"{$pagesurl}\">" . elgg_echo('pages:more') . "</a></div>"; echo "<div id=\"pages_widget\">" . $pages . "</div>";
<?php /** * Elgg administration user system index * * @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ */ // Get the Elgg framework require_once dirname(dirname(__FILE__)) . "/engine/start.php"; // Make sure only valid admin users can see this admin_gatekeeper(); // Set admin user for user block //set_page_owner($_SESSION['guid']); // Are we performing a search $search = get_input('s'); $limit = get_input('limit', 10); $offset = get_input('offset', 0); $context = get_context(); $title = elgg_view_title(elgg_echo('admin:user')); set_context('search'); $result = list_entities('user', '', 0, $limit, false); set_context('admin'); // Display main admin menu page_draw(elgg_echo("admin:user"), elgg_view_layout("two_column_left_sidebar", '', $title . elgg_view("admin/user") . $result));
set_context('search'); if ($tag != "") { $objects = list_entities_from_metadata('tags', $tag, 'group', "", "", $limit, false); } else { switch ($filter) { case "newest": $objects = list_entities('group', 'project', 0, $limit, false); break; case "pop": $objects = list_entities_by_relationship_count('member', 'false', 'group', 'project'); break; case "active": $objects = list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 40, 0, 0, false, true); break; case 'default': $objects = list_entities('group', "project", 0, $limit, false); break; } } //get a group count $group_count = get_entities("group", "project", 0, "", 10, 0, true, 0, null); //DISABLE find groups (Sx: Search by tag needs to be reconstituted or removed from the left side of the people and project lists) //$area1 = elgg_view("groups/find"); //menu options $area1 .= elgg_view("groups/side_menu"); //featured groups $featured_groups = get_entities_from_metadata("featured_group", "yes", "group", "project", 0, 10, false, false, false); $area1 .= elgg_view("groups/featured", array("featured" => $featured_groups)); set_context($context); $title = sprintf(elgg_echo("groups:all"), page_owner_entity()->name); $area2 = elgg_view_title($title);
<?php /** * Elgg view all thewire posts from all users page * * @package ElggTheWire * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider <*****@*****.**> * @copyright Curverider Ltd 2008-2009 * @link http://elgg.com/ */ // Load Elgg engine require_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; $area2 = elgg_view_title(elgg_echo("thewire:everyone")); //add form $area2 .= elgg_view("thewire/forms/add"); $area2 .= list_entities('object', 'thewire'); // elgg_view("thewire/view",array('entity' => $thewireposts)); $body = elgg_view_layout("two_column_left_sidebar", '', $area2); // Display page page_draw(elgg_echo('thewire:everyone'), $body);
<?php /** * Elgg vazco_mainpage plugin * * @author Michal Zacher [michal.zacher@gmail.com] */ if (is_plugin_enabled('groups')) { //newest groups $groups = list_entities('group', '', 0, 4, false, false, false); ?> <!-- display latest groups --> <div class="index_box group_listing_narrow"> <h2><?php echo elgg_echo("custom:groups"); ?> </h2> <?php if (!empty($groups)) { echo $groups; //this will display groups } else { echo "<p><?php echo elgg_echo('custom:nogroups'); ?>.</p>"; } ?> </div> <?php }
/** * Convenience function for listing recent images * * @param int $max * @param bool $pagination * @return string */ function tp_mostrecentimages($max = 8, $pagination = true) { return list_entities("object", "image", 0, $max, false, false, $pagination); }
// Start engine require_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; $page_owner = page_owner_entity(); if ($page_owner === false || is_null($page_owner)) { $page_owner = $_SESSION['user']; set_page_owner($page_owner->getGUID()); } // List tasks $context = get_context(); $title = sprintf(elgg_echo('tasks:read'), $page_owner->name); $area2 = elgg_view_title($title); set_context('search'); $limit = 10; $status = get_input('status'); if ($status == '') { $area2 .= list_entities('object', 'tasks', page_owner(), $limit, false); } else { if ($status == 'open') { $area2 .= list_entities_from_metadata('status', '0', 'object', 'tasks', page_owner(), $limit); } elseif ($status == 'closed') { $area2 .= list_entities_from_metadata('status', '5', 'object', 'tasks', page_owner(), $limit); } elseif ($status == 'info') { $area2 .= list_entities_from_metadata('status', '4', 'object', 'tasks', page_owner(), $limit); } elseif ($status == 'testing') { $area2 .= list_entities_from_metadata('status', '3', 'object', 'tasks', page_owner(), $limit); } elseif ($status == 'progress') { $area2 .= list_entities_from_metadata('status', '2', 'object', 'tasks', page_owner(), $limit); } elseif ($status == 'assigned') { $area2 .= list_entities_from_metadata('status', '1', 'object', 'tasks', page_owner(), $limit); } }
<?php include_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; $body = list_entities('object', 'companion', 0, 10, false); $body = elgg_view_layout('two_column_left_sidebar', '', $body); page_draw("Collections of Educational Resources", $body);
<?php /** * @package Elgg * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Roger Curry, Grid Research Centre [curry@cpsc.ucalgary.ca] * @author Tingxi Tan, Grid Research Centre [txtan@cpsc.ucalgary.ca] * @link http://grc.ucalgary.ca/ */ define('everyonepublication', 'true'); require_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; $page_owner = $_SESSION['user']; set_page_owner($_SESSION['guid']); $nav = elgg_view('navigation/pagination', array('baseurl' => $_SERVER['REQUEST_URI'], 'offset' => 0, 'count' => $count, 'limit' => 10, 'word' => 'annoff', 'nonefound' => false)); $area2 .= $nav; $area2 = elgg_view_title(elgg_echo('publication:everyone')); set_context('references'); $area2 .= '<div class="contentWrapper">'; $area2 .= list_entities('object', 'publication', 0, 0, false); $area2 .= '</div>'; set_context('publications'); $area3 = elgg_view('publication/search'); $body = elgg_view_layout("two_column_left_sidebar", '', $area2, $area3); page_draw(elgg_echo('publication:everyone'), $body);
<?php /** * Elgg tasks plugin everyone page * * @package Elggtasks * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider <*****@*****.**> * @copyright Curverider Ltd 2008-2009 * @link http://elgg.org/ */ // Start engine require_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; // Get the current page's owner $page_owner = page_owner_entity(); if ($page_owner === false || is_null($page_owner)) { $page_owner = $_SESSION['user']; set_page_owner($_SESSION['guid']); } // List tasks $area2 = elgg_view_title(elgg_echo('tasks:everyone')); set_context('search'); $area2 .= list_entities('object', 'tasks'); set_context('tasks'); // Format page $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2); // Draw it echo page_draw(elgg_echo('tasks:everyone'), $body);
/** * Generic search viewer * Given a GUID, this page will try and display any entity * * @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ */ // Load Elgg engine require_once dirname(dirname(__FILE__)) . "/engine/start.php"; // Set context set_context('search'); // Get input $tag = stripslashes(get_input('tag')); if (!empty($tag)) { $title = sprintf(elgg_echo('groups:searchtitle'), $tag); $body = ""; $body .= elgg_view_title($title); // elgg_view_title(sprintf(elgg_echo('searchtitle'),$tag)); $body .= elgg_view('group/search/startblurb', array('tag' => $tag)); $body .= list_group_search($tag); //$body = elgg_view_layout('two_column_left_sidebar','',$body); } else { $title = elgg_echo('item:group'); $body .= elgg_view_title($title); $body .= list_entities('groups'); } $body = elgg_view_layout('two_column_left_sidebar', '', $body); page_draw($title, $body);
* Elgg file browser * * @package ElggFile * @author Curverider Ltd * @copyright Curverider Ltd 2008-2009 - 2009 * @link http://elgg.com/ */ require_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; $limit = get_input("limit", 10); $offset = get_input("offset", 0); $tag = get_input("tag"); // Get the current page's owner $page_owner = page_owner_entity(); if ($page_owner === false || is_null($page_owner)) { $page_owner = $_SESSION['user']; set_page_owner($_SESSION['guid']); } // Get objects $area2 = elgg_view_title($title = elgg_echo('file:type:all')); $area1 = get_filetype_cloud(); // the filter set_context('search'); if ($tag != "") { $area2 .= list_entities_from_metadata('tags', $tag, 'object', 'file'); } else { $area2 .= list_entities('object', 'file'); } set_context('file'); $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2); // Finally draw the page page_draw(sprintf(elgg_echo("file:yours"), $_SESSION['user']->name), $body);
<?php /** * Elgg groups plugin * * @package ElggGroups * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd * @copyright Curverider Ltd 2008-2009 * @link http://elgg.com/ */ require_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; $limit = get_input("limit", 10); $offset = get_input("offset", 0); $title = sprintf(elgg_echo("groups:owned"), page_owner_entity()->name); // Get objects $area2 = elgg_view_title($title); set_context('search'); $objects = list_entities("group", "", page_owner(), $limit, false); set_context('groups'); $area2 .= $objects; $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2); // Finally draw the page page_draw($title, $body);
<?php /** * New wire post view for the activity stream */ //grab the users latest from the wire $latest_wire = list_entities("object", "thewire", $_SESSION['user']->getGUID(), 1, true, false, false); ?> <script> function textCounter(field,cntfield,maxlimit) { // if too long...trim it! if (field.value.length > maxlimit) { field.value = field.value.substring(0, maxlimit); } else { // otherwise, update 'characters left' counter cntfield.value = maxlimit - field.value.length; } } </script> <div class="sidebarBox"> <form action="<?php echo $vars['url']; ?> action/thewire/add" method="post" name="noteForm"> <?php $display .= "<h3>" . elgg_echo('thewire:newpost') . "</h3><textarea name='note' value='' onKeyDown=\"textCounter(document.noteForm.note,document.noteForm.remLen1,140)\" onKeyUp=\"textCounter(document.noteForm.note,document.noteForm.remLen1,140)\" id=\"thewire_sidebarInputBox\">{$msg}</textarea><br />"; $display .= "<div class='thewire_characters_remaining'><input readonly type=\"text\" name=\"remLen1\" size=\"3\" maxlength=\"3\" value=\"140\" class=\"thewire_characters_remaining_field\">";
<?php /** * Profile Manager * * Profile Types list view * * @package profile_manager * @author ColdTrick IT Solutions * @copyright Coldtrick IT Solutions 2009 * @link http://www.coldtrick.com/ */ $profile_types_count = get_entities("object", CUSTOM_PROFILE_FIELDS_PROFILE_TYPE_SUBTYPE, null, null, null, null, true); if ($profile_types_count > 0) { $list = list_entities("object", CUSTOM_PROFILE_FIELDS_PROFILE_TYPE_SUBTYPE, null, $profile_types_count, false, false, false); } else { $list = elgg_echo("profile_manager:profile_types:list:no_types"); } ?> <div class="contentWrapper"> <h3 class="settings"><span class='custom_fields_more_info' id='more_info_profile_type_list'></span><?php echo elgg_echo("profile_manager:profile_types:list:title"); ?> </h3> <div id="custom_fields_profile_types_list_custom"> <?php echo $list; ?> </div> </div>
set_context('search'); if ($tag != "") { $objects = list_entities_from_metadata('tags', $tag, 'dgroup', "", "", $limit, false); } else { switch ($filter) { case "newest": $objects = list_entities('group', "dgroup", 0, $limit, false); break; case "pop": $objects = list_entities_by_relationship_count('member', 'false', 'group', 'dgroup'); break; case "active": $objects = list_entities_from_annotations("object", "dgroupforumtopic", "dgroup_topic_post", "", 40, 0, 0, false, true); break; case 'default': $objects = list_entities('group', "dgroup", 0, $limit, false); break; } } //get a dgroup count $dgroup_count = get_entities("group", "dgroup", 0, "", 10, 0, true, 0, null); //DISABLE find dgroups Sx: Search by tag needs to be reconstituted or removed from the left side of the people and project lists //$area1 = elgg_view("dgroups/find"); //menu options $area1 .= elgg_view("dgroups/side_menu"); //featured dgroups $featured_dgroups = get_entities_from_metadata("featured_group", "yes", "group", "dgroup", 0, 10, false, false, false); $area1 .= elgg_view("dgroups/featured", array("featured" => $featured_dgroups)); set_context($context); $title = sprintf(elgg_echo("dgroups:all"), page_owner_entity()->name); $area2 = elgg_view_title($title);
/** * List all admin messages. * * @param int $limit Limit */ function list_admin_messages($limit = 10) { return list_entities('object', 'admin_message', 0, $limit); }
case "newest": if (!isadminloggedin()) { $content .= list_entities_from_metadata("validated", "1", "user", "", "", 10, false, false); } else { $content = list_entities("user", "", 0, 10, false); } break; case "pop": $content = list_entities_by_relationship_count('friend', true); break; case "active": $content = elgg_view("members/online"); break; case "search": set_context('search'); $content = list_user_search($tag); break; case "search_tags": //$content = trigger_plugin_hook('search','',$tag,""); $content .= list_entities_from_metadata("", $tag, "user", "", "", 10, false, false); $members = get_entities_from_metadata("", $tag, "user", "", 0, 1000, 0, '', 0, true, false); break; case 'default': $content = list_entities("user", "", 0, 10, false, true); break; } $area2 .= elgg_view('page_elements/contentwrapper', array('body' => elgg_view("members/members_sort_menu", array("count" => $members, "filter" => $filter)) . $content, 'subclass' => 'members')); //select the correct canvas area $body = elgg_view_layout("sidebar_boxes", $area1, $area2); // Display page page_draw(sprintf(elgg_echo('members:members'), $page_owner->name), $body);
<?php // Get the Elgg framework require_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; gatekeeper(); $context = get_context(); $title = elgg_view_title(elgg_echo('memberlist')); set_context('search'); $result = list_entities('user'); // Display main admin menu page_draw(elgg_echo("memberlist"), elgg_view_layout("two_column_left_sidebar", '', $title . elgg_view("everybody/user") . $result));
<?php /** * Elgg bookmarks plugin everyone page * * @package ElggBookmarks * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider <*****@*****.**> * @copyright Curverider Ltd 2008-2010 * @link http://elgg.org/ */ // Start engine require_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; // get the filter menu $area1 = elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'bookmarks')); // List bookmarks set_context('search'); $area2 .= list_entities('object', 'bookmarks'); set_context('bookmarks'); // include a view for plugins to extend $area3 = elgg_view("bookmarks/sidebar", array("object_type" => 'bookmarks')); // if logged in, get the bookmarklet if (isloggedin()) { $area3 .= elgg_view("bookmarks/bookmarklet"); } // include statistics $area3 .= elgg_view("bookmarks/stats"); // Format page $body = elgg_view_layout('one_column_with_sidebar', $area1 . $area2, $area3); // Draw it echo page_draw(elgg_echo('bookmarks:all'), $body);
if ($page_owner === false || is_null($page_owner)) { $page_owner = $_SESSION['user']; set_page_owner($page_owner->getGUID()); } elgg_push_breadcrumb(elgg_echo('bookmarks:all'), $CONFIG->wwwroot . "mod/bookmarks/all.php"); elgg_push_breadcrumb(sprintf(elgg_echo("bookmarks:user"), $page_owner->name)); //set bookmarks header if (page_owner() == get_loggedin_userid()) { $area1 .= elgg_view('page_elements/content_header', array('context' => "own", 'type' => 'bookmarks')); } else { $area1 .= elgg_view('navigation/breadcrumbs'); $area1 .= elgg_view('page_elements/content_header_member', array('type' => 'bookmarks')); } // List bookmarks set_context('search'); $bookmarks = list_entities('object', 'bookmarks', page_owner()); if (!$bookmarks && $page_owner->guid == get_loggedin_user()->guid) { $bookmarks = elgg_view('help/bookmarks'); } $area2 .= $bookmarks; set_context('bookmarks'); //if the logged in user is not looking at their stuff, display the ownerblock if (page_owner() != get_loggedin_user()->guid) { $area3 = elgg_view('bookmarks/ownerblock'); } // include a view for plugins to extend $area3 .= elgg_view("bookmarks/sidebar", array("object_type" => 'bookmarks')); if (isloggedin()) { // if logged in, get the bookmarklet $area3 .= elgg_view("bookmarks/bookmarklet"); }
<?php /** * Activity viewer * * @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ */ require_once dirname(dirname(__FILE__)) . "/engine/start.php"; set_context('search'); $area2 = list_entities("", "", 0, 10, false); set_context('entities'); $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2); page_draw("", $body);
} else { if (page_owner() && page_owner() != $_SESSION['guid']) { $area2 = elgg_view_title(sprintf(elgg_echo("file:user:type:" . $tag), page_owner_entity()->name)); } else { $area2 = elgg_view_title(elgg_echo("file:type:" . $tag)); } } } if ($friends) { $area1 = get_filetype_cloud($friends, true); } else { if ($owner_guid) { $area1 = get_filetype_cloud($owner_guid); } else { $area1 = get_filetype_cloud(); } } // Set context set_context('search'); $limit = 10; if ($search_viewtype == "gallery") { $limit = 12; } if (!empty($tag)) { $area2 .= list_entities_from_metadata($md_type, $tag, 'object', 'file', $owner_guid, $limit); } else { $area2 .= list_entities("object", "file", $owner_guid, $limit); } set_context("file"); $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2); page_draw(sprintf(elgg_echo('searchtitle'), $tag), $body);
<?php global $CONFIG; // get filter $category = get_input('category'); $category_label = $CONFIG->plugincats[$category]; $title = sprintf(elgg_echo('plugins:category:title'), $category_label); // Get objects set_context('search'); if ($category) { if ($category == 'all') { $title = sprintf(elgg_echo('plugins:category:title'), elgg_echo('plugins:cat:all')); $list = list_entities('object', 'plugin_project', 0, 10, true, false, true); } else { $list = list_entities_from_metadata("plugincat", $category, "object", "plugin_project", 0, 10, true, false, true); } } set_context('plugins'); $sidebar = elgg_view('plugins/search/sidebar'); $main = elgg_view('plugins/search/main', array('area1' => $list)); $body = elgg_view_layout('plugins_layout', $main, $sidebar); page_draw($title, $body);