-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
137 lines (135 loc) · 5.28 KB
/
index.php
File metadata and controls
137 lines (135 loc) · 5.28 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php get_header();?>
<div class="container">
<div class="col-lg-12 about-main">
<div class="about-agency-title">
<h4><?php the_field('about-agency-title')?></h4>
</div>
<div class="about-agency-content">
<?php the_field('about-agency-content')?>
</div>
<div class="autograph">
<img src="<?php bloginfo( 'template_url' ); ?>/img/signature.png" alt="">
</div>
</div>
</div>
<div class="bgc">
<div class="container">
<?php $arg = array(
'post_type' => 'portfolio', /*<--отут указується назніє поста який в вордпресі */
'order' => 'ASC',
'orderby' => 'menu_order',
'posts_per_page' => 4
);
$the_query = new WP_Query( $arg );
if ($the_query->have_posts() ) :?>
<div class="row">
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="col-lg-3">
<div class="about-main-content">
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail('', array('class' => ' about__img'/*<--отут задавать клас картинки*/));} ?>
<?php the_excerpt(); ?>
</div>
</div>
<?php endwhile; ?>
</div>
<?php endif;?>
</div>
</div>
<?php wp_reset_postdata(); ?>
<div class="container">
<div class="row best_projects">
<div class="col-lg-12">
<div class="gallery-tittle-for"><?php the_field('gallery-tittle')?></div>
<div class="gallery-content"><?php the_field('gallery-about')?></div>
</div>
</div>
</div>
<?php
$images = get_field('tables');
if( $images ): ?>
<div class="row tables">
<?php foreach( $images as $image ): ?>
<div class="col-lg-4 ">
<div class="tables">
<img src="<?php echo esc_url($image['sizes']['table1.png'/*<-в function.php указується розмєр виводімих картінок.Названіє должно буть однаковим!!!*/]); ?>" alt="<?php echo esc_attr($image['alt']); ?>" />
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
<?php wp_reset_postdata(); ?>
<div class="bgc-slider">
<div class="container">
<div class="row ">
<div class="col-lg-12 slider-items">
<?php $arg = array(
'post_type' => 'slider_first', /*<--отут указується назніє поста який в вордпресі */
'order' => 'ASC',
'orderby' => 'menu_order',
'posts_per_page' => 3
);
$the_query = new WP_Query( $arg );
if ($the_query->have_posts() ) :?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail('', array('class' => ' about__img'/*<--отут задавать клас картинки*/));} ?>
<div class="exerpt"><?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
</div>
<?php endif;?>
</div>
</div>
</div>
<div class="ssss">
<div class="container">
<?php $arg = array(
'post_type' => 'parthners', /*<--отут указується назніє поста який в вордпресі */
'order' => 'ASC',
'orderby' => 'menu_order',
'posts_per_page' => 5
);
$the_query = new WP_Query( $arg );
if ($the_query->have_posts() ) :?>
<div class="row">
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="parthners_2">
<a href="#"><div class="parthners"></div></a>
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail('', array('class' => ' about__img'/*<--отут задавать клас картинки*/));} ?>
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
</div>
<?php endif;?>
</div>
</div>
<?php wp_reset_postdata(); ?> <!-- НАДА ВСТАВЛЯТЬ ПІСЛЯ КАЖДОГО ЦИКЛА ШОБ ОБНУЛИТЬ ШОСЬ -->
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="latest_blog">
<?php the_field('latest_blog')?>
</div>
</div>
</div>
</div>
<!-- ---------------------------------------------------------------------------------------------------------------- -->
<?php
$images = get_field('second_slider');
if( $images ): ?>
<div class="row second_slider">
<?php foreach( $images as $image ): ?>
<div class="col-lg-12">
<div class="slider-items_for">
<img src="<?php echo esc_url($image['sizes']['img1.png'/*<-в function.php указується розмєр виводімих картінок.Названіє должно буть однаковим!!!*/]); ?>" alt="<?php echo esc_attr($image['alt']); ?>" />
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
<?php wp_reset_postdata(); ?>
<?php get_footer();?>