Changeset 81
- Timestamp:
- 06/25/07 11:44:58 (2 years ago)
- Files:
-
- trunk/wp-infocard/wp/admin.pw.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-infocard/wp/admin.pw.php
r79 r81 204 204 { 205 205 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 206 215 $chunk = ""; 207 216 if( !$current_user->ID ) 208 217 { 218 $chunk = '<link rel="stylesheet" href="'.$css.'" type="text/css" />'; 209 219 // note I set the CSS styles inline because otherwise 210 220 // the user has to link infocard.css - not worth it 211 221 // for this one icon 212 $chunk ='</li><li><a id="pw_frontpage_icon" href="'222 $chunk .='</li><li><a id="pw_frontpage_link" href="' 213 223 . PW_SECUREPLUGINURL .'/' . PW_PLUGIN 214 224 . '/login/infocard-login.php" alt="' 215 225 . __('Information Card Login') 216 . '"><img src="'226 . '"><img id="pw_frontpage_icon" src="' 217 227 . PW_IMGURL . '/' .PW_FP_ICON 218 . '" style="padding:5px"/></a></li>';228 . '"/></a></li>'; 219 229 } 220 230 return $link . $chunk;
