Changeset 219872
- Timestamp:
- 03/20/2010 11:55:42 AM (16 years ago)
- Location:
- no-ie-welcome/trunk
- Files:
-
- 2 edited
-
noie.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
no-ie-welcome/trunk/noie.php
r196295 r219872 4 4 Plugin URI: http://wordpress.losmuchachos.at/no_ie_welcome 5 5 Description: React in different Ways, when Vistor uses Microsoft Internet Explorer or IE of a specific Version Number. 6 Version: 1.0 6 Version: 1.0.1 7 7 Author: gnarf 8 8 Author URI: http://worpress.losmuchachos.at … … 26 26 function noie_decide_theme() { 27 27 global $iever, $noie; 28 29 28 30 $th=get_theme(get_current_theme()); 29 31 $dir=stripslashes(str_replace($th['Theme Root'],"",$th['Template Dir'])); … … 274 276 275 277 278 function noie_debug() { 279 global $iever, $noie; 280 281 if(!isset($_GET['noiedebug'])) return; 282 echo ("<hr><h1> NoIE Debug</h1>"); 283 echo ('<table><tr><td>HTTP_USER_AGENT</td><td>'.$_SERVER["HTTP_USER_AGENT"].'</td></tr>'); 284 echo ('<tr><td>iever</td><td>'.$iever.'</td></tr>'); 285 echo ('<tr><td>noie[version]</td><td>'.$noie['version'].'</td></tr>'); 286 287 288 echo ('</table>'); 289 if($iever>0 and $iever <=$noie['version']) {echo ('<h2>NoIE Welcome should trigger !!</h2>');} else echo('<h3>NoIE should NOT trigger !</h3>'); 290 291 292 293 } 294 295 276 296 277 297 … … 281 301 add_action('wp_print_styles', 'add_noie_stylesheet'); 282 302 add_action('wp_head', 'add_noie_js'); // javascript hinzufügen 303 add_action('wp_footer', 'noie_debug'); // debugging 283 304 add_action('plugins_loaded', 'noie_init'); // plugin und globale variablen initialisieren 284 305 -
no-ie-welcome/trunk/readme.txt
r196295 r219872 5 5 Requires at least: 2.9 6 6 Tested up to: 2.9.1 7 Stable tag: 1.0 7 Stable tag: 1.0.1 8 8 9 9 No IE Welcome allows you to inform Vistors of a specified IE Version to Update their Browser. Also a different Theme can be used for these Visitors. … … 31 31 3. configure in settings menu. 32 32 33 == Changelog == 33 34 35 = 1.0.1 = 36 * Added debug fuction (see Plugin Homepage for further instruction)
Note: See TracChangeset
for help on using the changeset viewer.