Fix protected recommendations
This commit is contained in:
parent
9a5929ecb8
commit
87f218ace2
@ -47,16 +47,25 @@ get_header( null, array( 'type' => 'fcn_recommendation' ) );
|
||||
get_template_part( 'partials/_recommendation-header', null, $hook_args );
|
||||
|
||||
// Hook after header
|
||||
do_action( 'fictioneer_recommendation_after_header', $hook_args );
|
||||
?>
|
||||
if ( ! post_password_required() ) {
|
||||
do_action( 'fictioneer_recommendation_after_header', $hook_args );
|
||||
}
|
||||
|
||||
<?php if ( has_post_thumbnail() ) echo fictioneer_get_recommendation_page_cover( $post ); ?>
|
||||
// Thumbnail
|
||||
if ( has_post_thumbnail() && ! post_password_required() ) {
|
||||
echo fictioneer_get_recommendation_page_cover( $post );
|
||||
}
|
||||
?>
|
||||
|
||||
<section class="recommendation__content content-section"><?php the_content(); ?></section>
|
||||
|
||||
<?php do_action( 'fictioneer_recommendation_after_content', $hook_args ); ?>
|
||||
<?php if ( ! post_password_required() ) : ?>
|
||||
|
||||
<footer class="recommendation__footer"><?php do_action( 'fictioneer_recommendation_footer', $hook_args ); ?></footer>
|
||||
<?php do_action( 'fictioneer_recommendation_after_content', $hook_args ); ?>
|
||||
|
||||
<footer class="recommendation__footer"><?php do_action( 'fictioneer_recommendation_footer', $hook_args ); ?></footer>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</article>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user