root/releases/0.9.1/search/personaltags.php

Revision 1022, 1.1 kB (checked in by ben, 2 years ago)

All icons are now displayed using the user_icon_html function; all user full names are displayed using the user_name function. This is to allow potential plugins to do things like hide names if required (eg in a school situation), and add bling to the icon.

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     //    ELGG display popular tags page
4
5     // Run includes
6         require_once(dirname(dirname(__FILE__))."/includes.php");
7         
8         run("search:init");
9         run("profile:init");
10         
11         define("context","profile");
12         
13 //         global $page_owner;
14         
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;
22         }
23         
24         templates_page_setup();
25         
26         $title = user_name($user_id) . " :: " . __gettext("Tags");
27
28         $body = run("content:tags");
29         $body .= run("search:tags:personal:display", $user_id);
30         
31         $body = templates_draw(array(
32                         'context' => 'contentholder',
33                         'title' => $title,
34                         'body' => $body
35                     )
36                     );
37                     
38         echo templates_page_draw( array(
39                     $title, $body
40                 )
41                 );
42
43 ?>
Note: See TracBrowser for help on using the browser.