Changeset 339

Show
Ignore:
Timestamp:
05/13/06 12:25:40 (3 years ago)
Author:
sven
Message:

minor HTML validation fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/.htaccess

    r334 r339  
    11RewriteEngine on 
     2RewriteBase /elgg/ 
    23Options +FollowSymLinks 
    34 
  • devel/_invite/forgotten_password.php

    r306 r339  
    2323         
    2424        echo templates_page_draw( array( 
    25                                         $title, $body, '&nbsp
     25                                        $title, $body, ' 
    2626                    ) 
    2727                    ); 
  • devel/lib/elgglib.php

    r335 r339  
    19111911    $htmlid = 'auto-cb'.sprintf('%04d', ++$idcounter); 
    19121912    $output  = '<span class="checkbox '.$name."\">"; 
    1913     $output .= '<input name="'.$name.'" id="'.$htmlid.'" type="checkbox" value="'.$value.'" alt="'.$alt.'"'.$strchecked.' '.((!empty($script)) ? ' onClick="'.$script.'" ' : '').' />'; 
     1913    $output .= '<input name="'.$name.'" id="'.$htmlid.'" type="checkbox" value="'.$value.'" alt="'.$alt.'"'.$strchecked.' '.((!empty($script)) ? ' onclick="'.$script.'" ' : '').' />'; 
    19141914    if(!empty($label)) { 
    19151915        $output .= ' <label for="'.$htmlid.'">'.$label.'</label>'; 
  • devel/lib/templates.php

    r311 r339  
    19001900 
    19011901                    $column2 .= " | <a href=\"".url."_templates/edit.php?id=".$template->ident."\" >". gettext("Edit") ."</a>"; 
    1902                     $column2 .= " | <a href=\"".url."_templates/?action=deletetemplate&amp;delete_template_id=".$template->ident."\"  onClick=\"return confirm('" . gettext("Are you sure you want to permanently remove this template?") . "')\">" . gettext("Delete") . "</a>"; 
     1902                    $column2 .= " | <a href=\"".url."_templates/?action=deletetemplate&amp;delete_template_id=".$template->ident."\"  onclick=\"return confirm('" . gettext("Are you sure you want to permanently remove this template?") . "')\">" . gettext("Delete") . "</a>"; 
    19031903                    $panel .=templates_draw(array( 
    19041904                                                        'context' => 'databox', 
     
    19801980        case "submenu":           
    19811981            return templates_draw(array( 
    1982                                         'submenuitems' => menu_join('&nbsp|&nbsp;', $PAGE->menu_sub), 
     1982                                        'submenuitems' => menu_join('&nbsp;|&nbsp;', $PAGE->menu_sub), 
    19831983                                        'context' => 'submenu' 
    19841984                                        )); 
     
    19881988            if (logged_on) { 
    19891989                return templates_draw(array( 
    1990                                             'topmenuitems' => menu_join('&nbsp|&nbsp;', $PAGE->menu_top), 
     1990                                            'topmenuitems' => menu_join('&nbsp;|&nbsp;', $PAGE->menu_top), 
    19911991                                            'context' => 'topmenu' 
    19921992                                            )); 
  • devel/mod/community/lib.php

    r279 r339  
    3636        if (run("permissions:check", "profile")) { 
    3737            $PAGE->menu_sub[] = array( 'name' => 'community:pic', 
    38                                        'html' => a_hrefg("{$CFG->wwwroot}_icons/?context=profile&profile_id=$page_owner" , 
     38                                       'html' => a_hrefg("{$CFG->wwwroot}_icons/?context=profile&amp;profile_id=$page_owner" , 
    3939                                                          "Community site picture")); 
    4040 
    4141            $PAGE->menu_sub[] = array( 'name' => 'community:edit', 
    42                                        'html' => a_hrefg("{$CFG->wwwroot}_userdetails/?context=profile&profile_id=$page_owner" , 
     42                                       'html' => a_hrefg("{$CFG->wwwroot}_userdetails/?context=profile&amp;profile_id=$page_owner" , 
    4343                                                         "Edit community details")); 
    4444             
  • devel/mod/profile/lib.php

    r329 r339  
    2828            if (run("users:type:get", $pgowner) == "person") { 
    2929                $PAGE->menu_sub[] = array( 'name' => 'profile:picedit',  
    30                                            'html' => '<a href="'.$CFG->wwwroot.'_icons/?context=profile&profile_id='.$pgowner.'">' 
     30                                           'html' => '<a href="'.$CFG->wwwroot.'_icons/?context=profile&amp;profile_id='.$pgowner.'">' 
    3131                                           . gettext("Change site picture") . '</a>'); 
    3232            } 
  • devel/profile/profile.class.php

    r331 r339  
    906906        } 
    907907         
    908         $icon = "<img src=\"".url.$info->username.'icons/'.$info->icon.'/w/67" />'; 
     908        $icon = "<img alt=\"\" src=\"".url.$info->username.'icons/'.$info->icon.'/w/67" />'; 
    909909        $name = stripslashes($info->name); 
    910910        $url = url . stripslashes($info->username) . "/"; 
  • devel/units/admin/admin_users.php

    r269 r339  
    5252                                            'context' => 'adminTable', 
    5353                                            'name' => "&nbsp;", 
    54                                             'column1' => $prev . "&nbsp" . $next, 
     54                                            'column1' => $prev . "&nbsp;" . $next, 
    5555                                            'column2' => "&nbsp;" 
    5656                                            ) 
  • devel/units/communities/communities_membership_requests.php

    r301 r339  
    3131                    $col1 .= "<a href=\"" . url . $pending_user->username . "/\">" . gettext("Profile") . "</a> | "; 
    3232                    $col1 .= "<a href=\"" . url . $pending_user->username . "/weblog/\">" . gettext("Blog") . "</a></p>"; 
    33                     $col2 = "<p><a href=\"" .url. "_communities/requests.php?action=community:approve:request&request_id=$request_id&owner=$page_owner\">Approve</a> | <a href=\"" .url. "_communities/requests.php?action=community:decline:request&request_id=$request_id&owner=$page_owner\">Decline</a></p>"; 
     33                    $col2 = "<p><a href=\"" .url. "_communities/requests.php?action=community:approve:request&amp;request_id=$request_id&amp;owner=$page_owner\">Approve</a> | <a href=\"" .url. "_communities/requests.php?action=community:decline:request&amp;request_id=$request_id&amp;owner=$page_owner\">Decline</a></p>"; 
    3434                    $ident = $pending_user->ident; 
    3535 
  • devel/units/communities/user_info_menu_text.php

    r269 r339  
    1616            $moderation = get_field('users','moderation','ident',$user_id); 
    1717            switch($moderation) { 
    18             case "no":        $run_result = "<a href=\"".url."_communities/index.php?friends_name=".$_SESSION['username']."&amp;action=friend&amp;friend_id=$user_id\" onClick=\"return confirm('". gettext("Are you sure you want to join this community?") ."')\">" . gettext("Click here to join this community."). "</a>"; 
     18            case "no":        $run_result = "<a href=\"".url."_communities/index.php?friends_name=".$_SESSION['username']."&amp;action=friend&amp;friend_id=$user_id\" onclick=\"return confirm('". gettext("Are you sure you want to join this community?") ."')\">" . gettext("Click here to join this community."). "</a>"; 
    1919                break; 
    20             case "yes":        $run_result = "<a href=\"".url."_communities/index.php?friends_name=".$_SESSION['username']."&amp;action=friend&amp;friend_id=$user_id\" onClick=\"return confirm('". gettext("Are you sure you want to apply to join this community?") ."')\">" . gettext("Click here to apply to join this community."). "</a>"; 
     20            case "yes":        $run_result = "<a href=\"".url."_communities/index.php?friends_name=".$_SESSION['username']."&amp;action=friend&amp;friend_id=$user_id\" onclick=\"return confirm('". gettext("Are you sure you want to apply to join this community?") ."')\">" . gettext("Click here to apply to join this community."). "</a>"; 
    2121                break; 
    2222            case "priv":    $run_result = ""; 
     
    2424            } 
    2525        } else { 
    26             $run_result = "<a href=\"".url."_communities/index.php?friends_name=".$_SESSION['username']."&amp;action=unfriend&amp;friend_id=$user_id\" onClick=\"return confirm('". gettext("Are you sure you want to leave this community?") ."')\">" . gettext("Click here to leave this community."). "</a>"; 
     26            $run_result = "<a href=\"".url."_communities/index.php?friends_name=".$_SESSION['username']."&amp;action=unfriend&amp;friend_id=$user_id\" onclick=\"return confirm('". gettext("Are you sure you want to leave this community?") ."')\">" . gettext("Click here to leave this community."). "</a>"; 
    2727        } 
    2828    } 
  • devel/units/files/folder_view.php

    r269 r339  
    7676                $delete = gettext("Delete"); // gettext variable 
    7777                $foldermenu = <<< END 
    78     [<a href="{$url}_files/action_redirection.php?action=delete_folder&amp;delete_folder_id={$folder_details->ident}" onClick="return confirm('$areyouSure')">$delete</a>] 
     78    [<a href="{$url}_files/action_redirection.php?action=delete_folder&amp;delete_folder_id={$folder_details->ident}" onclick="return confirm('$areyouSure')">$delete</a>] 
    7979END; 
    8080            } else { 
     
    139139                $filemenu .= <<< END 
    140140    [<a href="{$url}_files/edit_file.php?edit_file_id={$file->ident}&amp;owner=$page_owner">$edit</a>] 
    141     [<a href="{$url}_files/action_redirection.php?action=delete_file&amp;delete_file_id={$file->ident}" onClick="return confirm('$areyouSure')">$delete</a>] 
     141    [<a href="{$url}_files/action_redirection.php?action=delete_file&amp;delete_file_id={$file->ident}" onclick="return confirm('$areyouSure')">$delete</a>] 
    142142END; 
    143143            } else { 
  • devel/units/friends/user_friendship_requests.php

    r287 r339  
    3333                    $col1 .= "<a href=\"" . url . $pending_user->username . "/\">" . gettext("Profile") . "</a> | "; 
    3434                    $col1 .= "<a href=\"" . url . $pending_user->username . "/weblog/\">" . gettext("Blog") . "</a></p>"; 
    35                     $col2 = "<p><a href=\"" .url. "_friends/requests.php?action=friends:approve:request&request_id=$request_id\">Approve</a> | <a href=\"" .url. "_friends/requests.php?action=friends:decline:request&request_id=$request_id\">Decline</a></p>"; 
     35                    $col2 = "<p><a href=\"" .url. "_friends/requests.php?action=friends:approve:request&amp;request_id=$request_id\">Approve</a> | <a href=\"" .url. "_friends/requests.php?action=friends:decline:request&amp;request_id=$request_id\">Decline</a></p>"; 
    3636                    $ident = $pending_user->ident; 
    3737 
  • devel/units/friends/user_info_menu_text.php

    r269 r339  
    1717            case 'no': 
    1818            case 'yes': 
    19                 $run_result = "<a href=\"".url."_friends/index.php?friends_name=".$_SESSION['username']."&amp;action=friend&amp;friend_id=$user_id\" onClick=\"return confirm('". gettext("Are you sure you want to add this user as a friend?") ."')\">" . gettext("Click here to add this user as a friend."). "</a>"; 
     19                $run_result = "<a href=\"".url."_friends/index.php?friends_name=".$_SESSION['username']."&amp;action=friend&amp;friend_id=$user_id\" onclick=\"return confirm('". gettext("Are you sure you want to add this user as a friend?") ."')\">" . gettext("Click here to add this user as a friend."). "</a>"; 
    2020                break; 
    2121            case 'priv': 
     
    2424            } 
    2525        } else { 
    26             $run_result = "<a href=\"".url."_friends/index.php?friends_name=".$_SESSION['username']."&amp;action=unfriend&amp;friend_id=$user_id\" onClick=\"return confirm('". gettext("Are you sure you want to remove this user from your friends list?") ."')\">" . gettext("Click here to remove this user from your friends list."). "</a>"; 
     26            $run_result = "<a href=\"".url."_friends/index.php?friends_name=".$_SESSION['username']."&amp;action=unfriend&amp;friend_id=$user_id\" onclick=\"return confirm('". gettext("Are you sure you want to remove this user from your friends list?") ."')\">" . gettext("Click here to remove this user from your friends list."). "</a>"; 
    2727        } 
    2828    } 
  • devel/units/magpie/function_subscriptions.php

    r269 r339  
    4343            if (run("permissions:check", "profile")) { 
    4444                $column2 .= " | <a href=\"".url."_rss/subscriptions.php?action=unsubscribe&amp;feed=".$feed->ident 
    45                     ."\" onClick=\"return confirm('".gettext("Are you sure you want to unsubscribe from this feed?")."')\">" . gettext("Unsubscribe") . "</a>"; 
     45                    ."\" onclick=\"return confirm('".gettext("Are you sure you want to unsubscribe from this feed?")."')\">" . gettext("Unsubscribe") . "</a>"; 
    4646            } 
    4747             
  • devel/units/magpie/function_subscriptions_popular.php

    r269 r339  
    66        $body .= "<p>". gettext("This is a list of the feeds with the most subscribers.") . "</p>"; 
    77         
    8         if ($feed_subscriptions = get_records_sql('SELECT f.ident,f.name,f.last_updated, COUNT(fs.user_id) AS numsubs 
     8        if ($feed_subscriptions = get_records_sql('SELECT f.ident,f.name,f.last_updated,f.siteurl, COUNT(fs.user_id) AS numsubs 
    99                                                   FROM '.$CFG->prefix.'feed_subscriptions fs JOIN '.$CFG->prefix.'feeds f ON f.ident = fs.feed_id 
    10                                                    GROUP BY f.ident,f.name,f.last_updated ORDER BY numsubs ASC LIMIT 25')) { 
     10                                                   GROUP BY f.ident,f.name,f.last_updated,f.siteurl ORDER BY numsubs ASC LIMIT 25')) { 
    1111            $body .= templates_draw( array( 
    1212                    'context' => 'adminTable', 
     
    2424                $subtest = run("rss:subscribed", $feed->ident); 
    2525                if ($subtest) { 
    26                     $column2 .= "<a href=\"".url."_rss/subscriptions.php?action=unsubscribe&amp;feed=".$feed->ident."\" onClick=\"return confirm('".gettext("Are you sure you want to unsubscribe from this feed?")."')\">" . gettext("Unsubscribe") . "</a>"; 
     26                    $column2 .= "<a href=\"".url."_rss/subscriptions.php?action=unsubscribe&amp;feed=".$feed->ident."\" onclick=\"return confirm('".gettext("Are you sure you want to unsubscribe from this feed?")."')\">" . gettext("Unsubscribe") . "</a>"; 
    2727                } else { 
    28                     $column2 .= "<a href=\"".url."_rss/subscriptions.php?action=subscribe&amp;feed=".$feed->ident."\" onClick=\"return confirm('".gettext("Are you sure you want to subscribe to this feed?")."')\">" . gettext("Subscribe") . "</a>"; 
     28                    $column2 .= "<a href=\"".url."_rss/subscriptions.php?action=subscribe&amp;feed=".$feed->ident."\" onclick=\"return confirm('".gettext("Are you sure you want to subscribe to this feed?")."')\">" . gettext("Subscribe") . "</a>"; 
    2929                } 
    3030                 
  • devel/units/magpie/function_view_post.php

    r269 r339  
    4040        if (logged_on) { 
    4141            if (run("rss:subscribed",$post->feed)) { 
    42                 $controls .= "<a href=\"".url."_rss/subscriptions.php?action=unsubscribe&amp;feed=".$post->feed."\" onClick=\"return confirm('".gettext("Are you sure you want to unsubscribe from this feed?")."')\">[" . gettext("Unsubscribe") . "]</a>"; 
     42                $controls .= "<a href=\"".url."_rss/subscriptions.php?action=unsubscribe&amp;feed=".$post->feed."\" onclick=\"return confirm('".gettext("Are you sure you want to unsubscribe from this feed?")."')\">[" . gettext("Unsubscribe") . "]</a>"; 
    4343            } else { 
    44                 $controls .= "<a href=\"".url."_rss/subscriptions.php?action=subscribe&amp;feed=".$post->feed."\" onClick=\"return confirm('".gettext("Are you sure you want to subscribe to this feed?")."')\">[" . gettext("Subscribe") . "]</a>"; 
     44                $controls .= "<a href=\"".url."_rss/subscriptions.php?action=subscribe&amp;feed=".$post->feed."\" onclick=\"return confirm('".gettext("Are you sure you want to subscribe to this feed?")."')\">[" . gettext("Subscribe") . "]</a>"; 
    4545            } 
    4646        } 
  • devel/units/profile/profile_user_info.php

    r287 r339  
    1919$info->icon = run("icons:get", $page_owner); 
    2020 
    21 $icon = '<img src="'.url. $ul_username.'/icons/'.$info->icon.'/h/67/w/67" border="0" />'; // height is the important one here. 
     21$icon = '<img alt="" src="'.url. $ul_username.'/icons/'.$info->icon.'/h/67/w/67" border="0" />'; // height is the important one here. 
    2222// $name = stripslashes($info->name);  
    2323$name = run("profile:display:name"); 
  • devel/units/templates/default_template.php

    r323 r339  
    12861286                                    'id' => 'flagContent', 
    12871287                                    'name' => gettext("flagContent"), 
    1288                                     'description' => gettext("This hold the flag content function throughout Elgg"), 
     1288                                    'description' => gettext("This holds the flag content function throughout Elgg"), 
    12891289                                    'glossary' => array( 
    12901290                                                            '{{name}}' => gettext("Column One"), 
  • devel/units/templates/templates_view.php

    r269 r339  
    7373 
    7474                    $column2 .= " | <a href=\"".url."_templates/edit.php?id=".$template->ident."\" >". gettext("Edit") ."</a>"; 
    75                     $column2 .= " | <a href=\"".url."_templates/?action=deletetemplate&amp;delete_template_id=".$template->ident."\"  onClick=\"return confirm('" . gettext("Are you sure you want to permanently remove this template?") . "')\">" . gettext("Delete") . "</a>"; 
     75                    $column2 .= " | <a href=\"".url."_templates/?action=deletetemplate&amp;delete_template_id=".$template->ident."\"  onclick=\"return confirm('" . gettext("Are you sure you want to permanently remove this template?") . "')\">" . gettext("Delete") . "</a>"; 
    7676                    $panel .= templates_draw(array( 
    7777                                                        'context' => 'adminTable', 
  • devel/units/weblogs/default_template.php

    r284 r339  
    2828    <div class="entry"><!-- Open class entry --> 
    2929        <div class="user"><!-- Open class user --> 
    30             <a href="{{url}}{{username}}/weblog/"><img src="{{url}}{{username}}/icons/{{usericon}}"/></a><br /><a href="{{url}}{{username}}/weblog/">{{fullname}}</a> 
     30            <a href="{{url}}{{username}}/weblog/"><img alt="" src="{{url}}{{username}}/icons/{{usericon}}"/></a><br /><a href="{{url}}{{username}}/weblog/">{{fullname}}</a> 
    3131        </div><!-- Close class user --> 
    3232        <div class="weblog_title"><h3>{{title}}</h3></div> 
  • devel/units/weblogs/weblogs_posts_view.php

    r287 r339  
    120120                <p> 
    121121                    [<a href="{$url}_weblog/edit.php?action=edit&amp;weblog_post_id={$post->ident}&amp;owner={$post->owner}">$Edit</a>] 
    122                     [<a href="{$url}_weblog/action_redirection.php?action=delete_weblog_post&amp;delete_post_id={$post->ident}" onClick="return confirm('$returnConfirm')">$Delete</a>] 
     122                    [<a href="{$url}_weblog/action_redirection.php?action=delete_weblog_post&amp;delete_post_id={$post->ident}" onclick="return confirm('$returnConfirm')">$Delete</a>] 
    123123                </p> 
    124124            </div> 
     
    154154 
    155155                <p> 
    156                         [<a href="{$url}_weblog/action_redirection.php?action=weblog_comment_delete&amp;weblog_comment_delete={$comment->ident}" onClick="return confirm('$returnConfirm')">$Delete</a>] 
     156                        [<a href="{$url}_weblog/action_redirection.php?action=weblog_comment_delete&amp;weblog_comment_delete={$comment->ident}" onclick="return confirm('$returnConfirm')">$Delete</a>] 
    157157                </p> 
    158158END;