Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Question for Theme designers
  • Posted: 04.01.2003, 01:00
     
    Ulujain.org
    rank:
    Softmore Softmore
    registered:
     December 1969
    Status:
    offline
    last visit:
    15.01.04
    Posts:
    71
    Just curious to know why a lot of you guys echo or print() most of your HTML markup? You guys must be wizzes at tracking down parse errors! :D

    Look at the following: [php:1:d576974604]echo "\n"
    ."\n"
    ."
    \n"
    ."
    \n"
    ."
    \n"
    ."$preformat[catandtitle]";[/php:1:d576974604]

    My god, look at all that concatenation and quoting! My question is, for the sake of readability and hacking, why do this? Most of the above could be marked up as HTML and it would be easier to follow. e.g [php:1:d576974604] width="100%" etc, etc>[/php:1:d576974604]

    Much easier to follow IMHO and far less room for silly parse errors.

    --
    http://www.ulujain.org/
  • Posted: 04.01.2003, 03:15
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    6520
    I've always wondered the same thing. Of course now I develop with AutoTheme, so I do everything in straight HTML.
  • Posted: 06.01.2003, 08:11
     
    TakeIT2
    rank:
    Softmore Softmore
    registered:
     December 1969
    Status:
    offline
    last visit:
    23.10.08
    Posts:
    68
    Hi

    What's "AutoTheme"?

    Paul

    --
    ;)
  • Posted: 06.01.2003, 11:32
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    6520
    Search is your friend. Just search for AutoTheme, I don't have the link handy, but it's a theme system that makes it easy to create your own theme using HTML and some special codes that are HTML comments.
  • Posted: 06.01.2003, 15:22
     
    ColdRolledSteel
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    30.12.05
    Posts:
    1310

    mhalbrook

    I've always wondered the same thing. Of course now I develop with AutoTheme, so I do everything in straight HTML.


    Hmmm... it seems that AutoTheme is no better at generating valid HTML.

    I ran the AutoTheme site with the AT-XP theme through the HTML validator at http://validator.w3.org and got as many or more errors than I've seen on other sites.
  • Posted: 16.01.2003, 03:55
     
    factoid
    rank:
    Softmore Softmore
    registered:
     November 2002
    Status:
    offline
    last visit:
    26.09.05
    Posts:
    73
    AutoTheme is at http://spidean.mckenzies.net

    With virtually no PHP knowledge, I used it to hack together the (still-under-construction) theme for http://www.lavoice.org. It was fairly painless.

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula