7 Commits

Author SHA1 Message Date
Garvin Hicking
dd83225447 This is my proposal on implementing the ability to switch frontend and backend templates independently.
- This introduces a new option "template_backend" that will be set to indicate the backend template, defaults to 2k11.
- The "Engine: xxx" line in info.txt still works, but only for the frontend
- The frontend fallback chain defaults to the old "default" template to ensure that themes will work that have "old-style" HTML output
- The backend fallback chain only falls back to 2k11 and then "default"
- In the future, we will remove templates/default/admin once the mechanism is proven stable

To test this in all cases you can:

- Copy 2k11/ to 2k11-custom, edit info.txt, give it a distinct name. Edit the admin/index.tpl file to add some code to ensure that you will see that template in the backend if you pick it, or adjust the style.css or whatever.
- Copy idea/ to idea-custom, edit info.txt, add a "Engine: 2k11" line. Now you can test how a template would look like that fallsback on 2k11 instead of "default"

Those permutations can be checked and come to my mind:

- Backend: 2k11, Frontend: 2k11
- Backend: 2k11-custom, Frontend: 2k11
- Backend: 2k11, Frontend: 2k11-custom

- Backend: 2k11, Frontend: idea
- Backend: 2k11, Frontend: idea-custom

- Backend: 2k11-custom, Frontend: idea
- Backend: 2k11-custom, Frontend: idea-custom

They seem to work.

Currently the display of backend and frontend theme in templates.inc.tpl takes up some larger space. Maybe it could be prettified somehow, maybe put frontend and backend template next to each other, not beneath each other? Maybe @yellowled has some suggestions.

@onli and @ophian - please have a look at this, since you both also worked on the fallback chains. Please tell me if you have issues with this. We can easily revert, if you see this approach as not workable. This is more a "proof of concept" draft.
2014-05-14 12:58:06 +02:00
onli
cbe07715fd use include_once 2013-06-21 18:11:03 +02:00
Garvin Hicking
d9a5d6a8c8 Make checksum code skippable 2008-12-09 10:41:48 +00:00
Garvin Hicking
e9eeac61df Better shared mode integration, thanks to stm9x9 2007-08-04 13:28:21 +00:00
Garvin Hicking
fa724f71c7 mbstring check by mila 2007-01-14 12:55:58 +00:00
Garvin Hicking
f03841587a Ensure to not be able to call s9y files under circumstances where .htaccess does not deny request AND register_globals is turned on 2006-11-30 21:34:29 +00:00
Garvin Hicking
80e14346a5 Also support "last X" REST interface 2006-08-02 10:07:34 +00:00