-
Notifications
You must be signed in to change notification settings - Fork 1
/
single-user_documentation.php
55 lines (35 loc) · 1.39 KB
/
single-user_documentation.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
<?php
/**
* The template for displaying all single posts and attachments
*/
get_header(); ?>
<div id="documentation">
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<?php wp_list_pages(array(
'post_type' => get_post_type( get_the_ID() ),
'sort_column' => 'menu_order',
'echo' => true,
'title_li' => null,
'depth' => 1,
)) ?>
</div>
<!-- Main -->
<main role="main" id="post-main">
<div class="grid-x grid-margin-x grid-padding-x">
<div class="cell large-3 medium-4 callout hide-for-small-only">
<?php get_template_part( "parts/sidebar", "user-documentation" ); ?>
</div>
<div class="cell large-9 medium-8">
<span class="hide-for-medium"
style="font-size:30px;cursor:pointer" onclick="openNav()">☰ Contents</span>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'parts/loop', 'documentation' ); ?>
<?php endwhile; else : ?>
<?php get_template_part( 'parts/content', 'missing' ); ?>
<?php endif; ?>
</div>
</div>
</main> <!-- end #main -->
</div>
<?php get_footer(); ?>