I don't know if these issues titles make enough sense or not, but I'm thinking to label them as their theme api interface. Anyways...
1. theme('toolbar') is a little messed up (as in messy and not even working) and
2. theme('toolbar_toggle') needs to be replaced with theme('link') as per #1595614: [meta] Remove all the theme functions and templates in core that simply output a link. Replace with #type 'link' render arrays.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | Screen Shot 2013-01-26 at 4.12.49 PM.png | 24.17 KB | johnnydarkko |
| #11 | d8tts-theme-toolbar-1825828-11.patch | 2.05 KB | steveoliver |
| #7 | d8tts-theme-toolbar-1825828-7.patch | 7.58 KB | steveoliver |
| #3 | d8tts-theme-toolbar-1825828-3.patch | 8.19 KB | steveoliver |
| #1 | d8tts-theme-toolbar-1825828-1.patch | 8.34 KB | steveoliver |
Comments
Comment #1
steveoliver commentedThis is how I think
theme('toolbar')should work.1. Uses
theme('link')instead oftheme('toolbar_toggle')(Recommended in #1779104: Convert theme_toolbar_toggle to twig (#30).2. Cleans up template by implementing
template_preprocess_toolbar.Comment #2
fabianx commentedDo not pre-render things before the template.
Render is called explicitly, so {{ toolbar.toolbar_home }} will work.
Comment #3
steveoliver commentedFabianx: Keeping preprocess, but not render() ing.
?
Comment #4
podarok#3 looks good for me
any backgrounds from FabianX ?
Comment #5
fabianx commentedNope,
preprocess will be as much as possible removed even later.
Do not add additional vars.
Comment #6
podarok#5 is about this
Comment #7
steveoliver commentedWithout preprocess...
Comment #8
podarok#7 deletes toolbar_theme()
looks like wrong patch again
Comment #9
steveoliver commentedThat's the point. It's a silly theme function I'm trying to replace with an implementation of theme('link').
Comment #10
steveoliver commentedAlso remember this needs #1825820: theme('link')
Comment #11
steveoliver commented1. Toolbar toggle link can use
theme('link')without preprocess and withouttheme('toolbar_toggle')) in #1779104-37: Convert theme_toolbar_toggle to twig.3. This attached patch cleans up the toolbar.html.twig template.
Comment #12
steveoliver commentedThis is just cleanup. Committed in bc0fe9e.
Comment #13
jessebeach commentedHi all, I just wanted to mention that the toolbar theme issues are being addressed in the responsive toolbar patch. I just switched from tpl to twig in the latest patch.
#1137920-282: Fix toolbar on small screen sizes and redesign toolbar for desktop
I would suggest closing this issue as a duplicate or at least postponing it. I'd like to avoid you all spending time on unnecessary work here.
Comment #14
fabianx commentedComment #15
johnnydarkko commentedToolbar wasn't showing up.
Accidentally reopened and commented about this issue in #1779104: Convert theme_toolbar_toggle to twig sorry...
Committed WIP in 92bf9756
This is as far as I got:
