-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
61 lines (52 loc) · 2.01 KB
/
Copy pathsingle.php
File metadata and controls
61 lines (52 loc) · 2.01 KB
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
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package cwrap
*/
get_header('page');
?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', get_post_type() );
endwhile; // End of the loop.
?>
</main><!-- #main -->
</div><!-- #primary -->
<div class="container big-slider-block">
<div class="row">
<div class="col-md-9">
<div class="slider big-slider-for">
<?php if( have_rows('big_article_slider') ): ?>
<?php while( have_rows('big_article_slider') ): the_row();
// переменные
$image = get_sub_field('big_article_slider_img');
?>
<div class="big-slider-for__item zoom1" data-src="<?php echo $image['url']; ?>"><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt'] ?>"></div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
<div class="col-md-3">
<div class="slider big-slider-nav">
<?php if( have_rows('big_article_slider') ): ?>
<?php while( have_rows('big_article_slider') ): the_row();
// переменные
$image = get_sub_field('big_article_slider_img');
?>
<div class="big-slider-nav__item"><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt'] ?>"></div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php get_template_part( 'content', 'articles' ); ?>
<?php get_template_part( 'content', 'form' ); ?>
<?php
get_footer();