Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
283 views
in Q2A Core by

I'm understand that is possible to add anything to q2a theme but why theme architecture is so complex, why is not like in WP theme ?:

http://paveiksleliu-talpinimas.kar.lt/p/capturxmx.png

....

1 Answer

+3 votes
by
 
Best answer
It's a great question, and I have given this issue a lot of thought.

The reason is that Q2A is changing very quickly, so a template-based theming engine (where the theme consists of HTML code plus placeholderes) would very quickly fall behind enhancements to the platform. By using an object-oriented theme architecture (where the theme only overrides small parts of the HTML), a theme is much less likely to break when a new version of Q2A comes out.

When Q2A hopefully settles down (perhaps around version 2.0?) it will be the right time to consider a template-based theming engine.

BTW, the other reason is that there are tons of options in Q2A to show/hide different pieces of information (e.g. post times, user points, etc...). This is hard to do with template-type themes, unless of course you use a templating language like Smarty with if/else structures and the like. But in that case it probably just makes sense to stick to basic PHP, so people don't have to learn two languages.

To summarize, I haven't found a way to make theming as easy as it is in WordPress, while keeping the flexibility that Q2A currently needs. I'm very much open to suggestions though...

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...