-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-gallery.php
74 lines (68 loc) · 2.01 KB
/
single-gallery.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* The template for displaying Galery item page
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package poligon22
*/
get_header();
?>
<main id="main" class="is-main">
<section class="is-breadcrumbs">
<div class="container">
<div class="row">
<div class="col-lg-12">
<nav aria-label="breadcrumb">
<?php
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb( '<ol style="margin-left:0px;" class="breadcrumb bc-yoast">','</ol>' );
}
?>
</nav>
</div>
</div>
</div>
</section>
<section class="is-photogalery-item container-xxl container-xl container">
<div class="row">
<div class="col-lg-12">
<p class="galery-type">
Галерея игры
</p>
<h2 class="galery-name">
<? the_title(); ?>
</h2>
<p class="galery-date">
<i class="fas fa-clock"></i>
<? the_date(); ?>
</p class="galery-date">
</div>
</div>
<div class="row mt-3">
<?php
$images = get_field('games_gallery');
if( $images ): ?>
<?php foreach( $images as $image ): ?>
<div class="col-md-6 col-lg-4 col-xl-3">
<div data-fancybox="image" href="<?php echo esc_url($image['url']); ?>" class="card short" style="background: url(<?php echo esc_url($image['url']); ?>);">
<div class="mask">
<div class="angle top-left"></div>
<div class="angle top-right"></div>
<div class="angle bottom-left"></div>
<div class="angle bottom-right"></div>
<img src="<? echo get_template_directory_uri() . '/assets/img/photogalery_aim.svg' ?>" alt="<? the_title(); ?>">
</div>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</section>
<?php
get_footer();