File: /var/www/iq22073873/data/www/bckln.ru/wp-content/themes/dt-the7/template-ideas-page.php
<?php
/* Template Name: Page Ideas */
/**
* Media Albums template. Uses dt_gallery post type and dt_gallery_category taxonomy.
*
* @package presscore
* @since presscore 0.1
*/
// File Security Check
// File Security Check
if (!defined('ABSPATH')) {
exit;
}
$config = Presscore_Config::get_instance();
$config->set('template', 'page');
get_header(); ?>
<?php if (presscore_is_content_visible()): ?>
<div id="content" class="content" role="main">
<div class="wf-container">
<?php if (have_posts()):
while (have_posts()):
the_post(); ?>
<?php do_action('presscore_before_loop'); ?>
<div class="wf-cell wf-1-3 project-content">
<?php the_content(); ?>
</div>
<?php wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'the7mk2'), 'after' => '</div>')); ?>
<?php presscore_display_share_buttons_for_post('page'); ?>
<?php comments_template('', true); ?>
<?php endwhile; ?>
<?php else: ?>
<?php get_template_part('no-results', 'page'); ?>
<?php endif; ?>
<div class="wf-cell wf-2-3 project-slider">
<div class="box-ideas">
<?php
$a = get_the_ID();
if ($pd = get_field('gallery-photo', $a)) {
;
echo '<ul class="photo-list">';
foreach ($pd as $el) {
echo '<li>';
$bg = 'background:url(' . wp_get_attachment_url($el['image']) . ') no-repeat 50% 0';
echo '<a data-fancybox="gallery-' . $a . '" href="' . wp_get_attachment_image_url($el['image'], 'full') . '" data-caption="' . $el['text'] . '">';
echo '<span class="holder-img" style="' . $bg . '">';
echo wp_get_attachment_image($el['image'], array(250, 200));
echo '</span>';
echo '</a>';
echo '</li>';
}
echo '</ul>';
}
?>
</div>
</div>
</div>
</div><!-- #content -->
<?php do_action('presscore_after_content'); ?>
<?php endif; // if content visible ?>
</div>
</div>
<div>
<div>
<?php get_footer(); ?>