<?php /** * A simple view to provide the user with group filters and the number of group on the site **/ $members = $vars['count']; if (!$num_groups) { $num_groups = 0; } $filter = $vars['filter']; //url $url = $vars['url'] . "mod/members/index.php"; $pages = search_for_object('DF_' . 'PeopleListContent'); if ($pages && sizeof($pages) > 0) { $toptext .= $pages[0]->description; } echo $toptext; ?> <div id="elgg_horizontal_tabbed_nav"> <ul> <li <?php if ($filter == "newest") { echo "class='selected'"; } ?> ><a href="<?php echo $url; ?> ?filter=newest">Newest</a></li> </ul> </div>
<?php /** * A simple view to provide the user with dgroup filters and the number of dgroup on the site **/ $num_dgroups = $vars['count']; if (!$num_dgroups) { $num_dgroups = 0; } $filter = $vars['filter']; //url $url = $vars['url'] . "pg/dgroups/world/"; $pages = search_for_object('DF_' . 'Starting_A_Group'); if ($pages && sizeof($pages) > 0) { $toptext .= $pages[0]->description; } echo $toptext; ?> <div id="elgg_horizontal_tabbed_nav"> <ul> <li <?php if ($filter == "newest") { echo "class='selected'"; } ?> ><a href="<?php echo $url; ?> ?filter=newest"><?php echo elgg_echo('dgroups:newest'); ?>
<?php /** * A simple view to provide the user with group filters and the number of group on the site **/ $num_groups = $vars['count']; if (!$num_groups) { $num_groups = 0; } $filter = $vars['filter']; //url $url = $vars['url'] . "pg/groups/world/"; $pages = search_for_object('DF_' . 'ProjectListContent'); if ($pages && sizeof($pages) > 0) { $toptext .= $pages[0]->description; } echo $toptext; ?> <div id="elgg_horizontal_tabbed_nav"> <ul> <li <?php if ($filter == "newest") { echo "class='selected'"; } ?> ><a href="<?php echo $url; ?> ?filter=newest"><?php echo elgg_echo('groups:newest');
/** * 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']; $group = get_input("group"); set_context($group); $area2 = elgg_view_title(elgg_echo('blog:everyone')); $type = get_input("type"); $pages = search_for_object('DF_' . 'LabListContent'); if ($pages && sizeof($pages) > 0) { $toptext .= $pages[0]->description; } $area2 = $toptext . list_entities_from_metadata_multi(array("content_owner" => $group, "blog_type" => $type), "object", "blog", 0, 10, false, false, true); global $CONFIG; foreach ($CONFIG->BLOG_TYPES as $key => $option) { add_submenu_item($option, $url . 'group.php?group=' . $CONFIG->community_group_guid . '&type=' . $key); } $body = elgg_view_layout("two_column_left_sidebar", '', $area2, $area3); // Display page page_draw(elgg_echo('blog:everyone'), $body);