Changeset 1626

Show
Ignore:
Timestamp:
11/02/06 19:53:41 (2 years ago)
Author:
cfriesen
Message:

Allow a theme the ability to hide the login box. Defaults to show.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/cls/wrappers/header.php

    r1584 r1626  
    135135} 
    136136 
    137 function rss_header_logininfo() { 
     137function rss_header_logininfo($showLoginBox = true) { 
    138138 
    139139    $ret = "<div id=\"loginfo\">\n"; 
     
    142142        $ret .= sprintf(__('Logged in as <strong>%s</strong>'), rss_user_name()) 
    143143                ."&nbsp;|&nbsp;<a href=\"".getPath()."?logout\">".__('Logout')."</a>\n"; 
    144     } else { 
     144    } else if(true == $showLoginBox) { 
    145145        $ret .= __('Not logged in') 
    146146                ."&nbsp;|&nbsp;<a href=\"#\" onclick=\"miniloginform(); return false;\">".__('Login')."</a>";