WordPress.org

Plugin Directory

Changeset 219872


Ignore:
Timestamp:
03/20/10 11:55:42 (4 years ago)
Author:
gnarf
Message:

version 1.0.1

Location:
no-ie-welcome/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • no-ie-welcome/trunk/noie.php

    r196295 r219872  
    44Plugin URI: http://wordpress.losmuchachos.at/no_ie_welcome 
    55Description: React in different Ways, when Vistor uses Microsoft Internet Explorer or IE of a specific Version Number. 
    6 Version: 1.0 
     6Version: 1.0.1 
    77Author: gnarf 
    88Author URI: http://worpress.losmuchachos.at 
     
    2626function noie_decide_theme() {  
    2727    global $iever, $noie; 
     28     
     29     
    2830    $th=get_theme(get_current_theme()); 
    2931    $dir=stripslashes(str_replace($th['Theme Root'],"",$th['Template Dir'])); 
     
    274276 
    275277 
     278function 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 
    276296 
    277297 
     
    281301add_action('wp_print_styles', 'add_noie_stylesheet'); 
    282302add_action('wp_head', 'add_noie_js'); // javascript hinzufügen 
     303add_action('wp_footer', 'noie_debug'); // debugging 
    283304add_action('plugins_loaded', 'noie_init'); // plugin und globale variablen initialisieren 
    284305 
  • no-ie-welcome/trunk/readme.txt

    r196295 r219872  
    55Requires at least: 2.9 
    66Tested up to: 2.9.1 
    7 Stable tag: 1.0 
     7Stable tag: 1.0.1 
    88 
    99No 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. 
     
    31313. configure in settings menu.  
    3232 
     33== Changelog == 
    3334 
     35= 1.0.1 = 
     36* Added debug fuction (see Plugin Homepage for further instruction) 
Note: See TracChangeset for help on using the changeset viewer.