mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-19 06:23:22 +09:00
add hooks for before/after overlay title/excerpt
This commit is contained in:
@@ -177,6 +177,8 @@ class Display_Featured_Image_Genesis_Output {
|
||||
echo '<div class="big-leader">';
|
||||
echo '<div class="wrap">';
|
||||
|
||||
do_action( 'display_featured_image_genesis_before_title' );
|
||||
|
||||
$move_excerpts = $displaysetting['move_excerpts'];
|
||||
$post_types = array();
|
||||
/**
|
||||
@@ -197,7 +199,7 @@ class Display_Featured_Image_Genesis_Output {
|
||||
|
||||
}
|
||||
|
||||
// if titles are not being moved to overlay the image
|
||||
// if titles are being moved to overlay the image
|
||||
elseif ( ! $keep_titles && ! in_array( get_post_type(), $do_not_move_title ) ) {
|
||||
|
||||
if ( ! empty( $item->title ) && ! is_front_page() ) {
|
||||
@@ -228,6 +230,8 @@ class Display_Featured_Image_Genesis_Output {
|
||||
|
||||
}
|
||||
|
||||
do_action( 'display_featured_image_genesis_after_title' );
|
||||
|
||||
// close wrap
|
||||
echo '</div>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user