-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.php
46 lines (26 loc) · 1.17 KB
/
page.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
<?php get_header(); ?>
<?php if(has_post_thumbnail()) { ?>
<?php $comune_image_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'comune_big');?>
<section class="jumbotron jumbotron-fluid text-white call-to-action-box" style="background: linear-gradient(rgba(0,0,0, 0.6), rgba(0,0,0, 0.7)), url( <?php echo $ideagarden_image_attributes[0]; ?>); background-size: cover; background-position: center center">
<div class="container">
<h1 class="cta-title"> <?php the_title(); ?></h1>
</div>
</section>
<?php } ?>
<main class="container mt-5 main-content">
<div class="row">
<div class="col-sm-8 ml-sm-auto mr-sm-auto">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>
<<?php if(has_post_thumbnail()) { }else {?>
<h1 class="display-4 mb-5 text-center"><?php the_title(); ?></h1>
<?php } ?>
<?php the_content(); ?>
</article>
<?php endwhile; else: ?>
<p><?php esc_html_e('Sorry, no post matched your criteria.', 'ideagarden'); ?></p>
<?php endif; ?>
</div>
</div>
</main>
<?php get_footer(); ?>