ID, 'bernadetta_header-thumbnail-src', true ) != '' ) {
$header_img = get_post_meta( $post->ID, 'bernadetta_header-thumbnail-src', true );
} else {
$header_img = of_get_option( 'default_header_img_blog', '' );
if ( trim( $header_img ) == '' ) {
$header_img = get_template_directory_uri() . '/assets/img/default-header-image.png';
}
}
if ( get_post_meta( $post->ID, 'bernadetta_header-thumbnail2x-src', true ) != '' ) {
$header_img2x = get_post_meta( $post->ID, 'bernadetta_header-thumbnail2x-src', true );
} else {
if ( get_post_meta( $post->ID, 'bernadetta_header-thumbnail-src', true ) == '' ) {
$header_img2x = of_get_option( 'default_header_img2x_blog', '' );
if ( trim( $header_img2x ) == '' ) {
$header_img2x = get_template_directory_uri() . '/assets/img/default-header-image@2x.png';
}
} else {
$header_img2x = $header_img;
}
}
if ( get_post_meta( $post->ID, 'bernadetta_header-thumbnail-paralax', true ) != '' ) {
$header_paralax = get_post_meta( $post->ID, 'bernadetta_header-thumbnail-paralax', true );
} else {
$header_paralax = of_get_option( 'default_header_paralax_blog', '0' );
if ( trim( $header_paralax ) == '' ) {
$header_paralax = '0';
}
}
$no_text = get_post_meta( $post->ID, 'bernadetta_header-thumbnail-notext', true );
if ( $no_text == '' ) {
$no_text = '0';
}
if ( get_post_meta( $post->ID, 'bernadetta_header-thumbnail-paralax', true ) == '1' ) {
$header_height = get_post_meta( $post->ID, 'bernadetta_header-thumbnail-height', true );
} else {
$header_height = of_get_option( 'default_header_height_blog', '450' );
}
if ( is_attachment() ) :
get_template_part( 'template-parts/content', get_post_format() );
else :
?>
style="background: url(''); background-size: 100% auto; max-height: px; ">