From e9ca89769c050bc88a32151012b773ca9c8246f0 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 19 Jun 2009 11:06:45 +0000 Subject: finished phototag search page --- search.php | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'search.php') diff --git a/search.php b/search.php index 2899d2c3f..b7b67295d 100644 --- a/search.php +++ b/search.php @@ -2,22 +2,41 @@ include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); - // Set context set_context('search'); // Get user guid $guid = get_input('guid'); $user = get_entity($guid); -// if ($user) -// $user->name; + + if ($user) + $title = sprintf(elgg_echo('tidypics:usertag'), $user->name); + else + $title = "User does not exist"; - $title = $user->name; + // create main column $body = elgg_view_title($title); $body .= list_entities_from_relationship('phototag', $guid, false, 'object', 'image'); + + // Set up submenus + if (isloggedin()) { + add_submenu_item( elgg_echo("album:yours"), + $CONFIG->wwwroot . "pg/photos/owned/" . $_SESSION['user']->username, + 'tidypics-b' ); + } + add_submenu_item( elgg_echo('album:all'), + $CONFIG->wwwroot . "pg/photos/world/", + 'tidypics-z'); + add_submenu_item( elgg_echo('tidypics:mostrecent'), + $CONFIG->wwwroot . 'pg/photos/mostrecent', + 'tidypics-z'); + + + $body = elgg_view_layout('two_column_left_sidebar','',$body); + page_draw($title,$body); -- cgit v1.2.3