remove theme_comment_block();
add template_preprocess_comment_block();
create comment-block.twig for Startk theme

*edit* Please please please DO NOT REMOVE THEME FUNCTIONS. It will break everything other than the Stark theme.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MadFish’s picture

FileSize
1.97 KB
podarok’s picture

Status: Needs review » Reviewed & tested by the community

looks good!
thanks

andypost’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/themes/stark/templates/comment/comment-block.twig
@@ -0,0 +1,9 @@
+{{ content }}
\ No newline at end of file

Require crlf at the end of the file

podarok’s picture

fixed #3
commited #1

podarok’s picture

Status: Needs work » Fixed
podarok’s picture

Component: Code » Twig templates

commited into 8.x branch

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Fabianx’s picture

Status: Closed (fixed) » Needs work

Reopened due to not having been merged to front-end branch.

*DO NOT RENAME theme_ functions for now*

Needs re-roll.

vlad.dancer’s picture

Assigned: MadFish » vlad.dancer
Status: Needs work » Active
vlad.dancer’s picture

Status: Active » Needs review
Issue tags: +Documentation
FileSize
598 bytes

Just checked, patch already in front-end branch.
Don't forget close issues if it marked as fixed in "Core theme functions" g.docs!
But i did some func. doc changes + renamed preprocess func. Need review

Fabianx’s picture

Assigned: vlad.dancer » psynaptic

I thought template_ was correct for the very first implementation?

@psynaptic: Can you have a look?

podarok’s picture

#10 make sense for me
Workaround used for comment module only, why template_ ?

vlad.dancer’s picture

Assigned: psynaptic » Unassigned
FileSize
461 bytes

It seems to be we using template_preprocess for initial adding variables, so below is my patch just with doc block update.

merdekiti’s picture

Status: Needs review » Reviewed & tested by the community
podarok’s picture

Status: Reviewed & tested by the community » Fixed

#13 commited / push to front-end

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

added desperate plea for help