?> "> <img src="<?php echo esc_url_raw($image['thumb']); ?> " alt="<?php echo esc_attr($image['desc']); ?> "/> </a> <?php if ($enable_smart_tags || $enable_favorites || isset($image_name)) { ?> <div<?php Village_Render::attributes($entry_meta); ?> > <?php if ($enable_smart_tags || isset($image_name)) { ?> <div class="ca-image__title"> <?php if (isset($image_name)) { ?> <div class="ca-image__name"><?php echo $image_name; ?> </div> <?php
<?php $protected_area = array('class' => array('protected-area')); $featured_image = get_post_meta(get_the_ID(), 'featured_background_image', true); $image_url = wp_get_attachment_url($featured_image); if (!empty($image_url)) { $protected_area['style']['background-image'] = 'url(' . $image_url . ')'; } ?> <div<?php Village_Render::attributes($protected_area); ?> > <div class="entry-content content-area"> <h3 class="protected-area__title"><?php the_title(); ?> </h3> <div class="protected-area__password"> <?php the_content(); ?> </div> </div>