46 Commits

Author SHA1 Message Date
Ian
36a36c38cd only show backend install button if not self
References #165
2014-05-22 18:19:39 +02:00
Garvin Hicking
e6320100e8 Provide language constant. 2014-05-22 10:49:36 +02:00
Ian
8401827afb re-introduce fallback constant note for 9388618ac5
while this also is accessed on new theme installes
References #165 3c
2014-05-22 10:32:23 +02:00
Ian
391823d677 add default value to missing constant, as long as not set
References #165
2014-05-21 17:41:26 +02:00
Ian
9388618ac5 fixes #165 3c
@garvinhicking please add additional constant CUSTOM_CONFIG eg = "Custom config file" to langs
2014-05-21 16:24:41 +02:00
Ian
99d354224e fixes edb88c3 with title
References #165 2a and comments
2014-05-21 14:15:38 +02:00
Ian
69fc1a5b73 fixes #165 2b and 4a and 4b 2014-05-21 11:45:13 +02:00
Ian
b4f015e4c0 add custom config to info array - fixes #165 3a and half of 3b 2014-05-20 20:13:22 +02:00
Ian
922e77e4a6 set name truncation for cur_backend too - extends edb88c3
since could be the long named bulletproof template
Reference #165
2014-05-20 18:03:24 +02:00
Ian
edb88c3f57 fixes #165 2 a 2014-05-20 17:48:21 +02:00
Ian
38204c4053 better have logic in php - fixes #165 1 b 2014-05-20 17:45:53 +02:00
onli
d1d95aa643 Show backend preview (#151)
This code really should be revamped
2014-05-16 23:40:06 +02:00
Matthias Mees
77df5f6129 For visual consistency, the button text should be the same.
References #151
2014-05-14 15:13:57 +02:00
Matthias Mees
f1595837df Some visual polish for frontend/backend theme switching.
Also removes redundant text from backend theme info overlay.

References #151
2014-05-14 14:59:00 +02:00
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
Garvin Hicking
94c3a75a96 New language constants, hopefully caught all i18n's. Please check. 2014-03-05 13:22:50 +01:00
Matthias Mees
a9b8c9dd02 Refactor the whole damn zebra striping business. 2014-03-01 19:50:53 +01:00
Matthias Mees
82b2f2f8fe Add missing i18n markers. 2013-10-05 08:56:54 +02:00
Matthias Mees
31925a9c85 Small fixes to labels in templates section.
"Own admin design" sounds strange. Also, I think "Install" makes it
more clear to the user what actually happens than "Select".
2013-10-04 20:23:54 +02:00
onli
af21acc641 consistent template naming 2013-10-04 15:44:01 +02:00
Matthias Mees
d0de74737e Fixes type/href attributes for button elements.
– <button> must have an explicit type="buttons" since it falls back
  to type="submit", which can have side effects
– <button> must not have a href attribute, always use data-href
2013-10-02 11:05:27 +02:00
Matthias Mees
1fb8c54efb Back to button style.
Partial manual revert of 168cb146eaec3c568527bbc5dcf06b4cb6e9bda8.
Please note that this does *not* contain any changes to the UI as
discussed; those will follow later.

References #41
2013-09-23 11:19:31 +02:00
Matthias Mees
0ac1a2f9ce Drop precautionary admin_link class.
References #41
2013-08-19 19:04:23 +02:00
onli
d0e74392fe use magnific everywhere (#52) 2013-08-19 01:38:48 +02:00
onli
168cb146ea Use links instead of buttons (#41)
A bit unfamiliar, let's give it some time. The user/groups-menu are clearer now
2013-08-18 20:59:53 +02:00
Matthias Mees
625458ecda Better titles for fullsize previews (media/templates). 2013-07-08 11:21:47 +02:00
onli
fb100aaa79 use magnific popup 2013-07-07 22:43:11 +02:00
Matthias Mees
d8425e7bd9 Open large template preview in seperate window.
This replicates the behaviour of fullsize view for media db images.
Ultimately, we'll want to replace this with a lightbox or modal.
2013-06-27 11:23:48 +02:00
Matthias Mees
765e232693 Replace some icons. 2013-06-24 12:01:24 +02:00
Matthias Mees
17e0f159b0 Revert jQuery tooltips. 2013-06-24 11:04:56 +02:00
onli
a7ad3dd8e8 template preview: remove inline styles 2013-06-23 21:47:46 +02:00
onli
ea317649ac Use bigger previews in template list
TODO: Generate real previews instead of downscaling the bigger ones, Cleanup inline css
2013-06-23 21:38:23 +02:00
Matthias Mees
0bc97cbc88 Tooltips, tooltips, tooltips. Everywhere. Almost. 2013-06-23 18:45:58 +02:00
Matthias Mees
d653ccd38b Minor typo. 2013-06-23 13:20:08 +02:00
Matthias Mees
b7b3415e9a Zebra striping for theme options.
TODO: Needs to be checked with a theme like BP which actually uses
      nested configuration groups here once all themes use the 2k11
      backend.
2013-06-22 14:56:28 +02:00
Matthias Mees
d62bb7a516 Icon button for set as template. 2013-06-21 11:41:54 +02:00
Matthias Mees
c2a2058fcf Icon button for theme options. 2013-06-21 11:31:37 +02:00
Matthias Mees
a658e20b27 New iconfont build.
This includes only the icons actually used or intended to be used
in the backend. Please note that unfortunately, some class names
have changed. Also some icons have been exchanged.
2013-06-11 12:54:58 +02:00
onli
4617ed15a9 templates: using correct data for overlay 2013-06-03 21:59:32 +02:00
Matthias Mees
60797bddca Info overlay for templates.
NOTE: This would be way nicer if template preview images were a
      bit larger (just like media db thumbnails), but I guess
      were going to have to discuss how to implement that first.
2013-06-03 15:07:46 +02:00
Matthias Mees
6a9bdd0c6a Removed stupid HTML5/jQuery progress hints. 2013-06-01 11:09:10 +02:00
Matthias Mees
6507fa5b1d Simplified current template box. 2013-05-31 16:35:53 +02:00
Matthias Mees
88e5c9a1ba Extract currently selected template from template list.
Also skip currently selected template in template list. Note to
self: this needs more styling to set it off better. (If my code
can be improved, please do so. Best I could come up with.)
2013-05-31 14:47:38 +02:00
Matthias Mees
f646621cc8 Styling template options button. 2013-05-30 23:15:25 +02:00
onli
2911e71bc6 Moved theme-settings to own page 2013-05-30 22:56:40 +02:00
onli
ae74401668 2k11 is default template, included admin-tpls, and made it installable 2013-05-30 22:19:07 +02:00