Skip to content

Commit

Permalink
Apply WordPress coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
cearls committed Aug 2, 2024
1 parent 8c6fba8 commit d5d4514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theme/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ function acf_block_render_callback( $block, $content ) {
$context['post'] = Timber::get_post();
$context['block'] = $block;
$context['fields'] = get_fields();
$block_name = explode( '/', $block['name'] )[1];
$template = 'blocks/'. $block_name . '/index.twig';
$block_name = explode( '/', $block['name'] )[1];
$template = 'blocks/'. $block_name . '/index.twig';

Timber::render( $template, $context );
}
Expand Down

0 comments on commit d5d4514

Please sign in to comment.