forked from telabotanica/wp-theme-telabotanica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
56 lines (43 loc) · 1.62 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
47
48
49
50
51
52
53
54
55
56
<?php
/**
* Page
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php the_telabotanica_module('cover'); ?>
<div class="layout-content-col">
<div class="layout-wrapper">
<aside class="layout-column">
<?php the_telabotanica_module('toc'); ?>
<?php the_telabotanica_module('button-top'); ?>
</aside>
<div class="layout-content">
<?php the_telabotanica_module('breadcrumbs'); ?>
<article>
<?php
// Si la page utilise des composants
if( have_rows('components') ):
// On boucle sur les composants
while ( have_rows('components') ) : the_row();
the_telabotanica_component(get_row_layout());
endwhile;
else :
// no layouts found
endif;
wp_link_pages( [
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
] );
?>
</article>
</div>
</div>
</div>
</main><!-- .site-main -->
</div><!-- .content-area -->
<?php get_footer(); ?>