Advertisement
Guest User

Untitled

a guest
Aug 1st, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1.         <?php
  2.         //in IE11 you can't use the conditional comments as in older browsers
  3.         //browscap must be enabled  and configured for get_browser to work
  4.         //if not enabled we include the script anyway because the script has capabilities detections
  5.         //WARNING if browscap is not setup make sure scripts are compatible with all the other browsers
  6.         $is_IE=true;
  7.         if (get_cfg_var('browscap')){
  8.             $browser = get_browser();
  9.             if($browser->browser != 'IE')
  10.                 $is_IE=false;
  11.         }
  12.         if($is_IE){
  13.               echo '<script src="'.Yii::app()->theme->baseUrl.'/js/ie/dom4.js" cache="false"></script>';
  14.         }
  15.         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement