-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey all,

On Thursday 23 Sep 2004 14:22, Mathieu Roy wrote:
> An improvement of the dirty hack related to MSIE (search for MSIE in
> Layout.class) permits to be able to modify themes without much risk of
> doing something unbearable with MSIE.
>
> So now cosmetics changes can be done more freely than it was
> yesterday -- we should no longer fear big breakage.

kinda, sorta unrelated, but use of a (even a simple) templating engine would 
help multi-browser support a lot.  If the logic is separated from the layout, 
it's a lot easier to maintain too, from my webmaster'ing exp. :-)

Considering smarty, we could export several (or a lot) of interfaces to API 
functions through smarty plugin's, and use them in a template like this:

 ---8<---
  {* simple usage browser checking *}

  <link rel="stylesheet" href="/style/base.css" />

  {if browser_plugin.browser_short_name == "moz"}
      <link rel="stylesheet" href="/style/moz.css" />
  {else if browser_plugin.browser_short_name == "konq"}
      <link rel="stylesheet" href="/style/konq.css" />
  {else if browser_plugin.browser_short_name == "other-browser"}
      <link rel="stylesheet" href="/style/other-browser.css" />
  ...
- --->8---  

(That's very basic and doesn't show you all the magic and simplifications you 
could make! ;-)

So you'd get base.css plus a custom css if needed (to fix browser bugs, better 
support, etc).

Just throwing this out there in case it sounds like it could be a good 
improvement. :-)

Elfyn

- -- 
Elfyn McBratney
beu on irc.freenode.net/savannah.[non]gnu.org

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBU7FoaIgMKkVlSLQRAtoGAKCcclGNILnwewX4HtdUfO/YhrncxwCbBOPC
ZwtM+U6eCH1k6ROswzT0LCc=
=eoCU
-----END PGP SIGNATURE-----

_______________________________________________
Savane-dev mailing list
[EMAIL PROTECTED]
https://mail.gna.org/listinfo/savane-dev

Reply via email to