Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Chameleon relies on theme_blocks, which was removed from includes/theme.inc
by #351235: hook_page_alter()
Comment | File | Size | Author |
---|---|---|---|
#7 | chameleon_frh.patch | 3.36 KB | mr.baileys |
#5 | 374650-chameleon.patch | 3.14 KB | mr.baileys |
#4 | chameleon_frh.patch | 3.36 KB | Frando |
Comments
Comment #1
Frando CreditAttribution: Frando commentedso.. let's just remove chameleon?
Comment #2
webchickHm. PHP themes are still a valid means of designing a Drupal site. IMO we need to put this ability back, even if Chameleon is ultimately removed from core.
Comment #3
webchickVery few people actually have issue IDs memorized, so changing title. ;)
Comment #4
Frando CreditAttribution: Frando commentedOK. Patch attached. Node pages and listings were completely broken as well, so I also fixed chameleon_node while I was at it.
Comment #5
mr.baileysThanks Frando,
checked and applied patch and works like a charm. My only gripe would be readability: I'd switch the "render comments" and "Render remaining parts of the node content.", because right now the order is:
Patch attached just moves the "render comments" logic down a bit. If this is ok with you, I think this is RTBC.
Comment #6
Frando CreditAttribution: Frando commentedI haven't tested your patch but I don't think it works as intended. Placing drupal_render($node->content['comments']) above drupal_render($node->content) was on purpose, because drupal_render($node->content) will render everything in $node->content that hasn't been rendered so far, including comments, if they haven't been rendered before.
We want comments to appear below e.g. upload attachments, so we have to first render the comments, put them into a variable, then render the remaining content parts, and then append the rendered comments to the output. This is what my patch does.
Comment #7
mr.baileysStrange, changing the order does seem to work (looks like $node->content['comments'] is rendered earlier?)
In any case I can follow your reasoning as to why the order shouldn't be changed. I'm going to re-attach your original patch and put this back to CNR. I'd set it to RTBC, but I feel my previous post caused me to lose that privilege ;).
Comment #8
Dries CreditAttribution: Dries commentedLet's remove Chameleon instead? :)
Comment #9
JohnAlbinOk. I volunteer to take Chameleon and the other crufty themes and maintain them in contrib.
There’s some project/CVS permissions problems for me with bluemarine and pushbutton since they already exist in contributions/themes.
But I've created http://drupal.org/project/chameleon. Also, mr.baileys and frando’s patch works as advertised which I've committed to contrib.
Subscribing for now; I need to head to the airport all too soon.
Comment #10
jrabeemer CreditAttribution: jrabeemer commented+1 vote to remove Chameleon theme. I just enabled it for kicks and was surprised to get a white screen of death.
I think we need to remove ALL the old crufty themes.
As a tangent, I was at DrupalCon DC BoF with designers. Those guys are chomping at the bit to do a theming/design competition to create new Drupal themes. Opportunity waiting?!?!?!
Comment #11
mr.baileys@John: thanks for volunteering to maintain Chameleon in contrib. As Frando's patch has been commited, this issue can be marked fixed.
Actual removal of Chameleon from core can be addressed in #315533: Remove all themes but Garland and Stark from core.