On 31 Led, 23:44, Michael Bishop <
miklb.onl...@gmail.com> wrote:
> On Jan 31, 5:15 pm, Kahi <
kahi...@gmail.com> wrote:
>
> Not sure what page templates are. All Habari related templates,
> afaik, must reside in the theme directory. Anything else could be in
> it's own directory, ie, /includes, /css, /scripts, /images
WP allows to create two types of main content - classic time-based
blogpost and time-independent Pages. There is always a default Page
template but you can also create it's modifications and set every Page
to behave by an individual template. It's almost forgotten
possibility, people like widgets, all-doing plugins and template files
are directly modified less and less frequently.
With files I have meant php files before all, Sean T. Evans explains
it well, see below please...
> Are you suggesting the Habari files be split into directories?
Not necessarily. It would also work
On 1 Ún, 00:52, "Sean T. Evans" <
se...@morydd.net> wrote:
>
> I think I see what Kahi is getting at. At a glance, there's no way to
> tell what a file does in the theme directory and where it comes from. We
> have files that are required, but there are many optional files. For
> example, we allow that if you have a page with the slug "archives" you
> can give it a custom layout by including file in your theme directory
> page.archives.php. I think what Kahi is suggesting is extending that
> structure so that items like sidebar.php would become inc.sidebar.php
> and home.php might be core.home.php.
>
> I'm sort of making those up as I go, but I can see the utility in this
> for people who regularly work with other people's themes. (Or several of
> their own). I believe that as, other than the core files, the files are
> generally called by the theme files, there's nothing stopping designers
> from doing this with anything they add on their own (in fact, I may give
> the idea a try myself on my next theme, as it makes a lot of sense to me.)
>
> While I see the advantage to this, I think, other than the "core" files
> it could be implemented without any changes to the existing habari
> structure.
Yes, you are right, much difference will make just only prefixing core-
independent files. I'm practicing this while creating WP templates, as
this screen describes:
http://kahi.cz/wordpress/wp-content/images/12/reordered-theme-folder.png
. But I would say that with help of core the tidiness will grow even
more. Then the "tidiness" in theme folder would not exist only
optionally, but by default.