Misja Hoebe <misja@curverider.co.uk> Added comment to allow transfer by some FTP...
[elgg.git] / search / personaltags.php
blobce0a0166a0c7a75a5ee098ff243f1c96371c520a
1 <?php
3 // ELGG display popular tags page
5 // Run includes
6 require_once(dirname(dirname(__FILE__))."/includes.php");
8 run("search:init");
9 run("profile:init");
11 define("context","profile");
13 // global $page_owner;
15 $username = trim(optional_param('profile_name',''));
16 $user_id = user_info_username("ident",$username);
17 if (!$user_id) {
18 $user_id = $page_owner;
19 } else {
20 $page_owner = $user_id;
21 $profile_id = $user_id;
24 templates_page_setup();
26 $title = user_name($user_id) . " :: " . __gettext("Tags");
28 $body = run("content:tags");
29 $body .= run("search:tags:personal:display", $user_id);
31 $body = templates_draw(array(
32 'context' => 'contentholder',
33 'title' => $title,
34 'body' => $body
38 echo templates_page_draw( array(
39 $title, $body