forked from torresmateo/map-of-thrones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-3cols.php
52 lines (38 loc) · 1.23 KB
/
page-3cols.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
<?php
/*
Template Name: 3 Columnas
*/
$pageList = get_pages(array(
'sort_order' => 'ASC',
'sort_column' => 'menu_order',
'child_of' => $post->ID
));
$paginas = '';
foreach ($pageList as $pageKey => $page) {
$paginas .= '<li><a href="'.get_permalink($page->ID).'">'. strtolower($page->post_title) .'</a></li>';
}
?>
<?php get_template_parts( array( 'parts/shared/html-header', 'parts/shared/header' ) ); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div class="columnas">
<div class="col_iii_1">
<div class="cols_contenido">
<?php the_field('columna_1'); ?>
<?php if(get_field('listar_subpaginas')=="c1"){ echo $paginas; }; ?>
</div>
</div>
<div class="col_iii_2">
<div class="cols_contenido">
<?php the_field('columna_2'); ?>
<?php if(get_field('listar_subpaginas')=="c2"){ echo $paginas; }; ?>
</div>
</div>
<div class="col_iii_3">
<div class="cols_contenido">
<?php the_field('columna_3'); ?>
<?php if(get_field('listar_subpaginas')=="c3"){ echo $paginas; }; ?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php get_template_parts( array( 'parts/shared/footer','parts/shared/html-footer' ) ); ?>