Changeset 14

Show
Ignore:
Timestamp:
11/06/06 10:42:30 (2 years ago)
Author:
sven
Message:

friendicon: fix all-friends link, and html validation fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • friendicon/mod/friendicon/user_info.php

    r13 r14  
    11<?php 
    22 
    3 global $profile_id
     3global $page_owner
    44global $CFG, $USER; 
    55 
     
    1212 
    1313    $body  = ""; 
    14     $body .= "<span>\n"; 
    1514    $body .= "<table>\n\t<tr>\n"; 
    1615    $cellnum = -1; 
     
    3433        if ($icon = user_flag_get('friendicon_sidebar', $USER->ident)) { 
    3534            $body .= <<< END 
    36         <td/
     35        <td
    3736        <a href="{$CFG->wwwroot}{$info->username}/"> 
    38             <img src="{$CFG->wwwroot}_icon/user/{$info->icon}/h/50/w/50"/ alt="{$username}"> 
    39         </a> 
    40         <br/> 
     37            <img src="{$CFG->wwwroot}_icon/user/{$info->icon}/h/50/w/50" alt="{$username}" /> 
     38        </a><br /> 
    4139        <a href="{$CFG->wwwroot}{$info->username}/">{$username}</a> 
    4240        </td> 
     
    4846 
    4947    $body .= "\t</tr>\n</table>\n"; 
    50     $body .= "</span>"; 
    51     $body .= "<a href=\"".url."_friends/?owner=$profile_id\">[" . __gettext("View all Friends") . "]</a>"; 
     48    $body .= "<a href=\"".url."_friends/?owner=$page_owner\">[" . __gettext("View all Friends") . "]</a>"; 
    5249 
    5350    $run_result .= templates_draw(array(