-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-hathifiles.php
75 lines (56 loc) · 1.68 KB
/
page-hathifiles.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
get_header();
if ( have_posts() ) {
while ( have_posts() ) { the_post();
get_template_part( 'inc/breadcrumbs' );
$override = get_field( 'title_override' );
$title = $override ? $override : get_the_title();
?>
<div class="twocol">
<div class="twocol-side">
<h1><?= wp_kses_post( $title ); ?></h1>
<?php
if ( have_rows( 'sidebar_blocks' ) ) {
while ( have_rows( 'sidebar_blocks' ) ) { the_row();
get_template_part( 'inc/sidebar-block', get_row_layout() );
}
}
?>
</div>
<div class="twocol-main" id="page-content">
<div class="mainplain">
<?php
the_content();
if ( have_rows( 'main_blocks' ) ) {
$i = 0;
while ( have_rows( 'main_blocks' ) ) { the_row();
$i++;
get_template_part( 'inc/block', get_row_layout(), array( 'i' => $i ) );
}
}
?>
<div class="btable-wrapper">
<table class="btable">
<thead>
<tr>
<th>File</th>
<th>Date</th>
<th>File size</th>
</tr>
</thead>
<tbody>
<?php
//takes $directory and $linkpath variables and creates table rows
file_list("/htapps/www/files/hathifiles", "https://www.hathitrust.org/files/hathifiles/" ); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php
}
get_template_part( 'inc/backtotop' );
}
get_footer();
?>