Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Conditional Statements and IE9.


Reply

2 Posts   1537 Views

Avatar
thenergle

5 May 2011 at 10:00am Community Member, 5 Posts

I've been developing a theme with a client for the past month or so, and of course IE was just released along with it. Anyway, the theme has a flash intro which of course now of course doesn't work in IE9. Through a little bit of my research I found that Adobe is working on a fix, so in the interim I just wanted to swap out the Flash with an image. But I have not been able to get the conditional statements to work. They work fine in just plain HTML sites but when I add them to the SilverStripe theme it's as though they aren't even there.

Here is what I am using:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
   <head>
      <% base_tag %>
<title><% if MetaTitle %>$MetaTitle<% else %>$Title<% end_if %> &raquo; $SiteConfig.Title</title>      
      <link rel="stylesheet" type="text/css" href="/themes/loris/css/layout.css" />
      <link rel="stylesheet" type="text/css" href="/themes/loris/css/typography.css" />
      <link rel="stylesheet" type="text/css" href="/themes/loris/css/form.css" />
      <!--[if IE 9]>
<style ="text/css">
@import url(themes/loris/css/ie9.css);
</style>
      <![endif]-->
   </head>

has anyone else had any issues?

Avatar
BLU42 Media

1 June 2011 at 7:02am Community Member, 71 Posts

Not sure if you are still needing help on this... have you tried using a <link/> tag instead of the @import?