?>
">
			<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 
Пример #2
0
        ?>
>

			<?php 
        vca_get_template_part('single/content-description');
        ?>

			<?php 
        if (CA_Option::get('enable_favorites', true)) {
            vca_get_template_part('single/gallery-filters');
        }
        ?>

			<div
				class="masonry js__masonry js__photoswipe js-masonry"<?php 
        Village_Render::data('masonry-options', $masonry_data);
        ?>
>
				<div class="grid-sizer"></div>
				<?php 
        vca_get_template_part('single/content-gallery');
        ?>
			</div>
			<!-- .masonry -->

		</div>

		<?php 
        vca_comments_template();
        ?>
<?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>