30 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
Matthias Mees
ba1c0e4a7b Bump 2k11 update date. 2014-01-08 13:47:01 +01:00
Matthias Mees
55f10e2a09 Bump 2k11 update date. 2013-07-24 16:23:37 +02:00
Matthias Mees
b543fae655 Updated 2k11 to v1.2.7. 2013-05-04 13:27:43 +02:00
Matthias Mees
d4341061e5 Updated 2k11 to v1.2.6. 2013-03-30 12:55:45 +01:00
Ian
eb77dc369a added empty $template_config_groups var
for template changes, if previous template had these set
2013-02-03 11:28:11 +01:00
Matthias Mees
f3d2bab969 Updated 2k11 to v1.2.5. 2013-01-13 21:19:21 +01:00
Matthias Mees
8a24cd47eb Updated 2k11 to v1.2.4. 2012-12-04 12:44:50 +01:00
Matthias Mees
7be050e1e2 Updated 2k11 to v1.2.3. 2012-10-15 08:36:10 +02:00
Matthias Mees
2ca675a90e Updated 2k11 to v1.2. 2012-10-03 15:42:05 +02:00
Matthias Mees
c04aeca1d7 Updated 2k11 to v1.1.8. 2012-08-01 14:25:01 +02:00
Matthias Mees
613355f481 Updated 2k11 to v1.1.7. 2012-05-07 13:54:02 +02:00
Matthias Mees
04218b42ad Updated 2k11 to v1.1.6. 2012-04-18 15:33:43 +02:00
Matthias Mees
a2c1b1fe1f Updated 2k11 to v1.1.5. 2012-04-07 19:36:09 +02:00
Matthias Mees
b1ac65eaa4 Updated 2k11 to v1.1.3. 2012-03-15 13:20:44 +01:00
Matthias Mees
763d121b85 Updated 2k11 to v1.1.1. 2012-02-10 23:32:22 +01:00
Matthias Mees
9e4aba597b Updated 2k11 to v1.1. 2012-02-01 16:24:53 +01:00
Matthias Mees
e2c95b3904 Updated 2k11 to v1.0.9. 2012-01-30 01:39:04 +01:00
Matthias Mees
40032c15e2 Updated 2k11 to 1.0.8. 2012-01-28 07:08:29 +01:00
Matthias Mees
5548e6531a Updated 2k11 to v1.0.7. 2012-01-27 17:40:32 +01:00
Matthias Mees
a2404fb1b9 Updated 2k11 to 1.0.6. 2012-01-25 03:28:43 +01:00
Matthias Mees
695c1e7715 Updated 2k11 to v1.0.5. 2012-01-20 21:04:38 +01:00
Matthias Mees
ce92a306a2 Updated 2k11 to v1.0.4. 2012-01-06 18:38:00 +01:00
Matthias Mees
2ca2410843 Updated 2k11 to v1.0.3. 2012-01-01 17:08:37 +01:00
Matthias Mees
7e0d7a61d9 Some minor fixes for 2k11. 2011-12-16 21:27:53 +01:00
Matthias Mees
e2f60038bb Even more last minute additions to 2k11. (You're welcome, Garvin.) 2011-12-07 16:49:57 +01:00
Matthias Mees
214018109d Updated 2k11 to latest snapshot. 2011-12-05 12:23:37 +01:00
Matthias Mees
2cc2b70f40 More last-minute updates to 2k11. 2011-12-01 13:28:07 +01:00
Matthias Mees
4cb2714995 Updated 2k11 to what I consider to be v1.0. Yay! 2011-11-30 22:35:16 +01:00
Matthias Mees
f57a5e5975 Added 2k11 to templates. 2011-11-28 07:44:46 +01:00