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.

Comments

MadFish’s picture

StatusFileSize
new1.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

StatusFileSize
new1.95 KB

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
StatusFileSize
new598 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
StatusFileSize
new461 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

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 1750250)