Changeset 81

Show
Ignore:
Timestamp:
06/25/07 11:44:58 (2 years ago)
Author:
pdingle
Message:

added custom CSS for front-page icon

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-infocard/wp/admin.pw.php

    r79 r81  
    204204        { 
    205205                global $current_user; 
     206                if (strpos($_SERVER[SCRIPT_URI], "https")) 
     207                { 
     208                        $css = PW_PLUGINURL . "/custom/infocard-frontpage.css"; 
     209                } 
     210                else 
     211                { 
     212                        $css = PW_SECUREPLUGINURL . "/custom/infocard-frontpage.css"; 
     213                } 
     214 
    206215                $chunk = ""; 
    207216                if( !$current_user->ID ) 
    208217                { 
     218                        $chunk = '<link rel="stylesheet" href="'.$css.'" type="text/css" />'; 
    209219                        // note I set the CSS styles inline because otherwise 
    210220                        // the user has to link infocard.css - not worth it 
    211221                        // for this one icon 
    212                        $chunk ='</li><li><a id="pw_frontpage_icon" href="' 
     222                       $chunk .='</li><li><a id="pw_frontpage_link" href="' 
    213223                        . PW_SECUREPLUGINURL .'/' . PW_PLUGIN 
    214224                        . '/login/infocard-login.php" alt="' 
    215225                        . __('Information Card Login') 
    216                         . '"><img src="' 
     226                        . '"><img id="pw_frontpage_icon" src="' 
    217227                        . PW_IMGURL . '/' .PW_FP_ICON  
    218                         . '" style="padding:5px"/></a></li>'; 
     228                        . '"/></a></li>'; 
    219229                } 
    220230                return $link . $chunk;