-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-projeto.php
42 lines (39 loc) · 1.45 KB
/
page-projeto.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
<?php
get_header();
$pageID = get_the_ID();
$page = get_post(get_the_ID());
$thumb = get_the_post_thumbnail_url();
$pageID = get_the_ID();
$destaque_projeto = get_field('frase_destaque_projeto', $pageID);
?>
<section class="header-projeto">
<img class="thumb-projeto" src="<?php echo $thumb ?>" alt="">
<!-- <div class="bg-img thumb-projeto" style="background-image: url(<?php echo $thumb ?> )"></div> -->
</section>
<section>
<div class="container">
<div class="row">
<div class="col-lg-8 offset-lg-2 col-12">
<div class="titulo-projeto">
<div class="bg-title" style="background-image: url(<?php bloginfo('template_url'); ?>/src/images/titulo-1.png )">
<h1><?php the_title(); ?></h1>
</div>
<h3><?php echo $destaque_projeto; ?></h3>
</div>
</div>
<div class="col-lg-8 offset-lg-2 col-12">
<div class="conteudo">
<?php
if ( has_blocks( $page->post_content ) ) {
$blocks = parse_blocks( $page->post_content );
foreach ( $blocks as $block ) {
echo apply_filters( 'the_content', render_block( $block ) );
}
}
?>
</div>
</div>
</div>
</div>
</section>
<?php get_footer(); ?>