Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Fix template rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejchalubek committed Apr 11, 2017
1 parent 537d17a commit cb5bf49
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Setup/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
* @see do_action('theme/index/post/thumbnail')
* @uses resources/templates/partials/post/thumbnail-{{format}}.tpl.php
*/
function render_post_content()
function render_post_thumbnail()
{
template('partials/post/thumbnail', [get_post_format()]);
template(['partials/post/thumbnail', get_post_format()]);
}
add_action('theme/index/post/thumbnail', 'App\Theme\Setup\render_post_content');
add_action('theme/index/post/thumbnail', 'App\Theme\Setup\render_post_thumbnail');

/**
* Renders empty post thumbnail
Expand All @@ -34,11 +34,11 @@ function render_post_content()
* @see do_action('theme/index/post/none')
* @uses resources/templates/partials/post/thumbnail-none.tpl.php
*/
function render_empty_post_content()
function render_empty_post_thumbnail()
{
template('partials/post/thumbnail', ['none']);
template(['partials/post/thumbnail', 'none']);
}
add_action('theme/index/post/none', 'App\Theme\Setup\render_empty_post_content');
add_action('theme/index/post/none', 'App\Theme\Setup\render_empty_post_thumbnail');

/**
* Renders [button] shortcode after homepage content.
Expand Down

0 comments on commit cb5bf49

Please sign in to comment.