-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-menu.php
42 lines (29 loc) · 909 Bytes
/
template-menu.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
/*
Template Name: Template Menu
*/
get_header(); ?>
<div id="primary" class="content-area template-api">
<main id="main" class="site-main api-menu" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->
<?php the_content(); ?>
<?php get_template_part( 'content', 'menu1001' ); ?>
<?php
$menu = array(ID_CARTE);
if(isset($menu)) {
foreach ($menu as $currentmenu)
{
list($tmpmenu, $menurest) = getMenu($currentmenu);
echo displayMenuWeb($tmpmenu, $resto);
}
}
?>
</article><!-- #post-## -->
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>