0
Welcome Guest! Login
0 items Join Now

Want to add conditionnal css to explorer 8?

    • Patrick Toulze's Avatar
    • Patrick Toulze
    • Elite Rocketeer
    • Posts: 1810
    • Thanks: 18
    • Marketing - Web Designer

    Want to add conditionnal css to explorer 8?

    Posted 15 years 10 months ago
    • In a lot of your template you have:

      In the rt_utils.php with these functions:
      function rok_isIe7() {
          $agent=$_SERVER['HTTP_USER_AGENT'];
          if (stristr($agent, 'msie 7')) return true;
          return false;
      }
       
      function rok_isIe6() {
          $agent=$_SERVER['HTTP_USER_AGENT'];
          if (stristr($agent, 'msie 6')) return true;
          return false;
      }
      QUESTION 1—> What these functions do exactly?
      QUESTION 2 —> and are they related to what is in the rt_head_includes.php:
      <?php if (rok_isIe7()) :?>
      <!--[if gte IE 7]>
      <link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/template_ie7.css" rel="stylesheet" type="text/css" />  
      <![endif]-->    
      <?php endif; ?>
       
      <?php if (rok_isIe6()) :?>
      <!--[if lte IE 6]>
      <link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/template_ie6.css" rel="stylesheet" type="text/css" />
      <style type="text/css">
       
      <!--  Graf remove  png fix for headerimage (DONT WORRY ABOUT THIS PART-->
       
      </style>
      <![endif]-->
      <?php endif; ?>

      As you see I try to add <!--[if gte IE 7]> tho the code to target explorer 8 but it don’t seem to work ( I guess because the <?php if (rok_isIe7()) :? > part....

      QUESTION 3 —> How can I use all that to say to explorer 8 to use template_ie7.css as css ?
      QUESTION 4 —> and how to add other browser conditionnal css?

      QUESTION 5 —> What are you using that <?php if (rok_isIe7()) :? > stuff when you can use something like that in the head of the index:
      <!-- Graf conditional Call -->
      <!--[if gte IE 7]>
      <link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/grafie7.css" rel="stylesheet" type="text/css" />   
      <![endif]-->
      <!--[if lte IE 6]>
      <link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/grafie6.php" rel="stylesheet" type="text/css" />   
      <![endif]-->
      <!--[if Webkit]>
      <link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/grafsafari.css" rel="stylesheet" type="text/css" />    
      <![endif]-->
       

      This is a lot of questions.... :oops: but I really need to resolve this fast.....
    • Graphic Designer - Marketing -Web Sites — Trying to become a decent human being.
      www.grafcomm.ca
    • Patrick Toulze's Avatar
    • Patrick Toulze
    • Elite Rocketeer
    • Posts: 1810
    • Thanks: 18
    • Marketing - Web Designer

    Re: Want to add conditionnal css to explorer 8?

    Posted 15 years 10 months ago
    • Hope somebody show me the light here, I really need to resolve that .
      Anyway I gone a start to hack away all that to put my own conditionnal call and see what happen.

      It will be great to know how Rocket work with that rok_isIe stuff....

      Explorer 8 is going with 6 to 12% of the Market and all RT Templates will need to adapt...

      Help....
    • Graphic Designer - Marketing -Web Sites — Trying to become a decent human being.
      www.grafcomm.ca
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Want to add conditionnal css to explorer 8?

    Posted 15 years 10 months ago
    • hi patrick,

      i have forwarded this to the rest of the team to take a look.

      please so not double post the same question in 2 different boards.
      we can mark this one as solved and continue in the other thread in the hivemind forum.
      www.rockettheme.com/forum/index.php?f=94...art=0&rb_v=viewtopic

      thanks, kat
    • Kat05 / QA Lead & Support / Germany

Time to create page: 0.051 seconds