mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-19 14:33:32 +09:00
Set empty options for CPT/author blocks
This commit is contained in:
@@ -45,8 +45,11 @@ class DisplayFeaturedImageGenesisWidgetsBlocksOutput {
|
||||
public function render_author( $atts ) {
|
||||
$block_id = 'author';
|
||||
$atts = $this->update_attributes( $atts, $block_id );
|
||||
$classes = $this->get_block_classes( $atts, $block_id );
|
||||
include_once plugin_dir_path( dirname( __FILE__ ) ) . 'output/class-displayfeaturedimagegenesis-output-author.php';
|
||||
if ( empty( $atts['user'] ) ) {
|
||||
return '';
|
||||
}
|
||||
$classes = $this->get_block_classes( $atts, $block_id );
|
||||
|
||||
ob_start();
|
||||
echo '<div class="' . esc_attr( $classes ) . '">';
|
||||
|
||||
Reference in New Issue
Block a user