if(get_options("template")=='twentytwelve'){
           do something
      }