-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
167 lines (134 loc) · 3.57 KB
/
archive.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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?php get_header(); ?>
<?php
$increase_sidebar_position = get_field('increase_options_sidebar_position','options');
?>
<div class="wrap <?php if($increase_sidebar_position != 'disabled'){echo 'row';} ?>">
<?php if($increase_sidebar_position != 'disabled'){ ?>
<div class="col-12 col-lg-2" style="padding-top:250px; z-index:9;">
<div class="h4">Media</div>
<div class="display-4 text-light">Stiri</div>
</div>
<div class="col-12 col-lg-10">
<?php } ?>
<?php /* <header class="entry-header">
<?php
the_archive_title( '<h1 class="title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
</header> */ ?>
<div class="paine1" style="position:absolute; bottom: -10px; left: 50%;">
<img src="<?php echo the_field('paine_1'); ?>" alt="">
</div>
<div class="paine1" style="
position: fixed;
top: 70%;
right: 10%;
">
<img src="/wp-content/uploads/2019/08/paine2.png" alt="">
</div>
<div class="paine2" style="
position: fixed;
top: 0%;
left: 0;
">
<img src="/wp-content/uploads/2019/08/paine2.png" alt="">
</div>
<div class="paine3" style="
position: fixed;
bottom: -30%;
left: -20%;
">
<img src="/wp-content/uploads/2019/08/Top-bread.png" alt="">
</div>
<div class="paine4" style="
position: fixed;
top: 13%;
right: 5%;
">
<img src="/wp-content/uploads/2019/08/paine1.png" alt="">
</div>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php if (have_posts()) { ?>
<div class="posts-wrap row">
<?php while (have_posts()) : the_post();
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
?>
<div class="col-12 col-sm-6 mb-5">
<div style="
background: url('<?php echo $url ?>') no-repeat ;
background-size:contain;
height: 300px;
width:100%;
">
</div>
</div>
<?
get_template_part('template-parts/post/content', 'excerpt');
endwhile;
if ($wp_query->max_num_pages > 1) {
if (function_exists('wp_pagenavi')) {
wp_pagenavi();
} else {
?><div class="alignleft"><?php next_posts_link( __( '<span>«</span> Older posts', 'increase' ) );?></div>
<div class="alignright"><?php previous_posts_link( __( 'Newer posts <span>»</span>', 'increase' ) );?></div><?php
}
} ?>
</div>
<?php } else {
if ( is_home() && current_user_can( 'publish_posts' ) ) { ?>
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'increase' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
<?php } else { ?>
<p><?php _e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'increase'); ?></p>
<?php
get_search_form();
};
}; ?>
</main>
</div>
<?php if($increase_sidebar_position != 'disabled'){ ?>
</div>
<?php } ?>
</div>
<style media="screen">
body {
min-height: 100%;
webkit-overflow-scrolling: touch;
/* overflow:hidden; */
margin: 0;
padding: 0;
background: url(/wp-content/uploads/2019/08/background-green.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
footer#site-footer{
display:none;
}
.entry-summary{
color:white;
}
h2.title{
font-size:24px;
}
.navbar-brand > img {
position: absolute;
top: 65px;
left: 50%;
width: 90px;
height: 98px;
margin-top: -5px;
margin-left: -47px;
z-index: 999999999999999999999;
}
ul.cnss-social-icon li.cn-fa-icon a{
background-color:transparent !important;
}
@media (min-width: 993px) {
div#primary{
padding-top:250px;
}
}
</style>
<?php get_footer();