Changeset 1536

Show
Ignore:
Timestamp:
03/01/08 13:53:02 (2 months ago)
Author:
Paul
Message:

Minor alteration to breadcrumb links.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/punbb-1.3-dev/upload/include/functions.php

    r1533 r1536  
    590590                { 
    591591                        if ($i < ($num_crumbs - 1)) 
    592                                 $crumbs .= '<span class="crumb'.(($i == 0) ? ' crumbfirst' : '').'"><span>'.(($i >= 1) ? $lang_common['Crumb separator'] : '').$lang_common['Back to'].' </span>'.(is_array($pun_page['crumbs'][$i]) ? '<a href="'.$pun_page['crumbs'][$i][1].'">'.pun_htmlencode($pun_page['crumbs'][$i][0]).'</a>' : pun_htmlencode($pun_page['crumbs'][$i])).'</span>'; 
     592                                $crumbs .= '<span class="crumb'.(($i == 0) ? ' crumbfirst' : '').'">'.(($i >= 1) ? '<span>'.$lang_common['Crumb separator'].'</span> ' : '').(is_array($pun_page['crumbs'][$i]) ? '<a href="'.$pun_page['crumbs'][$i][1].'"><span>'.$lang_common['Back to'].' </span>'.pun_htmlencode($pun_page['crumbs'][$i][0]).'</a>' : pun_htmlencode($pun_page['crumbs'][$i])).'</span>'; 
    593593                        else 
    594                                 $crumbs .= '<strong class="crumb crumblast'.(($i == 0) ? ' crumbfirst' : '').'"><span>'.(($i >= 1) ? $lang_common['Crumb separator'] : '').$lang_common['You are here'].' </span>'.(is_array($pun_page['crumbs'][$i]) ? '<a href="'.$pun_page['crumbs'][$i][1].'">'.pun_htmlencode($pun_page['crumbs'][$i][0]).'</a>' : pun_htmlencode($pun_page['crumbs'][$i])).'</strong>'; 
     594                                $crumbs .= '<span class="crumb crumblast'.(($i == 0) ? ' crumbfirst' : '').'">'.(($i >= 1) ? '<span>'.$lang_common['Crumb separator'].'</span> ' : '').(is_array($pun_page['crumbs'][$i]) ? '<a href="'.$pun_page['crumbs'][$i][1].'"><span>'.$lang_common['You are here'].' </span>'.pun_htmlencode($pun_page['crumbs'][$i][0]).'</a>' : '<span>'.$lang_common['You are here'].'</span> '.pun_htmlencode($pun_page['crumbs'][$i])).'</span>'; 
    595595                } 
    596596        } 
     
    17921792 
    17931793        // 
    1794         // A helper function for csrf_confirm_form. It takes a multi-dimensional array and returns it as a  
     1794        // A helper function for csrf_confirm_form. It takes a multi-dimensional array and returns it as a 
    17951795        // single-dimensional array suitable for use in hidden fields. 
    17961796        // 
     
    19881988// $target_url should be an absolute URL and it should be exactly the URL that the user is going to 
    19891989// Alternately, if the form token is going to be used in GET (which would mean the token is going to be 
    1990 // a part of the URL itself), $target_url may be a plain string containing information related to the URL.  
     1990// a part of the URL itself), $target_url may be a plain string containing information related to the URL. 
    19911991// 
    19921992function generate_form_token($target_url)