WordPress.org

Ready to get started?Download WordPress

Forums

Respectfully chopping up index.php (6 posts)

  1. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Have you looked at the nightlies ? cvs ?

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    I am following this and it is very much inline with my own thinking and the work I have done for 1.3. We are not only going to upgrade our templates for 1.3 but we are going to add additional functionality. I am thinking of plug-in template packs and an admin interface based switcher. As a further ehancement it might be possible to call the CSS with php as well givibg reuseable code. Eg php call for layout, color and everything else. Just my 2c but these are exciting times. Thanks for sharing your thinking Muffinboy.

  3. Stuart
    Member
    Posted 9 years ago #

    As I currently use a template system I would like to make some suggestions here. I would follow Muffinboy's basic system but I think the inclusion of templates within templates will confuse people. I also think that the placement of opening and closing div tags for one template in another template is the wrong direction. Each template should be totally self-contained i.e. it should have it's opening and closing div tags within it.
    So my suggestion would be that you have a basic "page" template which would contain all the "head" stuff such as page type, title, calls to various CSS etc. then the opening "body" tag and "rap" tag. From then on you call the separate templates such as "header", "content", "sidebar" and "footer", then the bottom of the "page" template has the closing "rap", "body" and "html" tags. Each of the templates would contain it's own opening and closing tags so people don't have to go looking for them somewhere else which is the current (3 days ago) situation with the beta.
    It would also be handy if there were some kind of "template creation" tool so people who wanted, say, a horizontal navbar could create a template for it easily and then include it where they wanted in the "page" template. Another useful idea would be the ability to modify the "page" template and save it as something else so people who wanted to create "static" pages or pages with single posts with no "commenting" etc. outside their blog could create specific templates for them. Just my 2c worth.

  4. Root
    Member
    Posted 9 years ago #

    That anon was me. Just noticed I wasnt logged in sorry.

  5. Root
    Member
    Posted 9 years ago #

    I should add I am a couple of days behind in the CVs and the hackers list which I have now just read up. As far as I can see - and for my 2c this all looks very cool indeed. I have had my issues but I think it right that I should thank Matt and the guys for doing a terrific job. This new interface stuff is just what a lot of end users are looking for. The 1.3 release could be the killer app of the century. :)

  6. serendipity
    Member
    Posted 9 years ago #

    I second Stuart's point: the included files must have self-contained markup. It's just too much of a danger of not closing a <div> somewhere, esp. since many people don't comment their closing divs.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.