title: If URL contains X echo Y, elseif URL
body: <p>I want to echo out different classes in a div depending on the URL. It's for a localized wordpress theme where a div will be using a different background depending on which site you are on.</p>
  
  <pre><code>&lt;?php 
      if (strpos($_SERVER['REQUEST_URI'],'/language/no') !== false) 
      {
          echo 'class="project_decal_no"';
      } 
      elseif (strpos($_SERVER['REQUEST_URI'],'/language/en') !== false) 
      {
          echo 'class="project_decal_en"';
      } 
      else 
      {
          echo 'class="project_decal"';
      }
  ?&gt;
  </code></pre>
  
  <p>Am I on the right path with this? What should change to make it work?</p>