-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-widgets.php
119 lines (90 loc) · 7.58 KB
/
page-widgets.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?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="pb widget-container">
<h2>Catalog Search with Multiple Options</h2>
<iframe id="iframe_htCatalogSearch01" style="border: 0; margin: 0 3px; overflow: hidden" width="451" height="91"><a href="https://catalog.hathitrust.org">Search the HathiTrust Digital Library Catalog</a></iframe><script type="text/javascript">var ht_url = "https://www.hathitrust.org/searchbox_multi/?referrer=" + window.location.hostname;document.getElementById("iframe_htCatalogSearch01").contentWindow.document.location.href = ht_url;</script>
<form>
<div>
<label for="widgetcode_01">Copy Code Snippet:</label>
<input type="text" id="widgetcode_01" style="font-family:monospace;" value='<iframe id="iframe_htCatalogSearch01" style="border: 0; margin: 0 3px; overflow: hidden" width="451" height="91"><a href="https://catalog.hathitrust.org">Search the HathiTrust Digital Library Catalog</a></iframe><script type="text/javascript">var ht_url = "https://www.hathitrust.org/searchbox_multi/?referrer=" + window.location.hostname;document.getElementById("iframe_htCatalogSearch01").contentWindow.document.location.href = ht_url;</script>'>
</div>
</form>
</div>
<div class="pb widget-container">
<h2>Catalog Search</h2>
<iframe id="iframe_htCatalogSearch02" style="border: 0; margin: 0 3px; overflow: hidden" width="294" height="26"><a href="https://catalog.hathitrust.org">Search the HathiTrust Digital Library Catalog</a></iframe><script type="text/javascript">var ht_url = 'https://www.hathitrust.org/searchbox_catalog/?referrer=' + window.location.hostname;document.getElementById('iframe_htCatalogSearch02').contentWindow.document.location.href = ht_url;</script>
<form>
<div>
<label for="widgetcode_02">Copy Code Snippet:</label>
<input type="text" id="widgetcode_02" style="font-family:monospace;" value='<iframe id="iframe_htCatalogSearch02" style="border: 0; margin: 0 3px; overflow: hidden" width="294" height="26"><a href="https://catalog.hathitrust.org">Search the HathiTrust Digital Library Catalog</a></iframe><script type="text/javascript">var ht_url = "https://www.hathitrust.org/searchbox_catalog/?referrer=" + window.location.hostname;document.getElementById("iframe_htCatalogSearch02").contentWindow.document.location.href = ht_url;</script>'>
</div>
</form>
</div>
<div class="pb widget-container">
<h2>Catalog Search with Full View Option</h2>
<iframe id="iframe_htCatalogSearch03" style="border: 0; margin: 0 3px; overflow: hidden" width="300" height="63" ><a href="https://catalog.hathitrust.org">Search the HathiTrust Digital Library Catalog</a></iframe><script type="text/javascript">var ht_url = 'https://www.hathitrust.org/searchbox_catalog_fv/?referrer=' + window.location.hostname;document.getElementById('iframe_htCatalogSearch03').contentWindow.document.location.href = ht_url;</script>
<form>
<div>
<label for="widgetcode_03">Copy Code Snippet:</label>
<input type="text" id="widgetcode_03" style="font-family:monospace;" value='<iframe id="iframe_htCatalogSearch03" style="border: 0; margin: 0 3px; overflow: hidden" width="300" height="63" ><a href="https://catalog.hathitrust.org">Search the HathiTrust Digital Library Catalog</a></iframe><script type="text/javascript">var ht_url = "https://www.hathitrust.org/searchbox_catalog_fv/?referrer=" + window.location.hostname;document.getElementById("iframe_htCatalogSearch03").contentWindow.document.location.href = ht_url;</script>'>
</div>
</form>
</div>
<div class="pb widget-container">
<h2>Full Text Search</h2>
<iframe id="iframe_htFullTextSearch01" style="border: 0; margin: 0 3px; overflow: hidden" width="294" height="26"><a href="https://catalog.hathitrust.org">Search the HathiTrust Digital Library Catalog</a></iframe><script type="text/javascript">var ht_url = 'https://www.hathitrust.org/searchbox_fulltext/?referrer=' + window.location.hostname;document.getElementById('iframe_htFullTextSearch01').contentWindow.document.location.href = ht_url;</script>
<form>
<div>
<label for="widgetcode_04">Copy Code Snippet:</label>
<input type="text" id="widgetcode_04" style="font-family:monospace;" value='<iframe id="iframe_htFullTextSearch01" style="border: 0; margin: 0 3px; overflow: hidden" width="294" height="26"><a href="https://catalog.hathitrust.org">Search the HathiTrust Digital Library Catalog</a></iframe><script type="text/javascript">var ht_url = "https://www.hathitrust.org/searchbox_fulltext/?referrer=" + window.location.hostname;document.getElementById("iframe_htFullTextSearch01").contentWindow.document.location.href = ht_url;</script>'>
</div>
</form>
</div>
<div class="pb widget-container">
<h2>Full Text Search with Full View Option</h2>
<iframe id="iframe_htFullTextSearch02" style="border: 0; margin: 0 3px; overflow: hidden" width="300" height="63"><a href="https://catalog.hathitrust.org">Search the HathiTrust Digital Library Catalog</a></iframe><script type="text/javascript">var ht_url = 'https://www.hathitrust.org/searchbox_fulltext_fv/?referrer=' + window.location.hostname;document.getElementById('iframe_htFullTextSearch02').contentWindow.document.location.href = ht_url;</script>
<form>
<div>
<label for="widgetcode_05">Copy Code Snippet:</label>
<input type="text" id="widgetcode_05" style="font-family:monospace;" value='<iframe id="iframe_htFullTextSearch02" style="border: 0; margin: 0 3px; overflow: hidden" width="300" height="63"><a href="https://catalog.hathitrust.org">Search the HathiTrust Digital Library Catalog</a></iframe><script type="text/javascript">var ht_url = "https://www.hathitrust.org/searchbox_fulltext_fv/?referrer=" + window.location.hostname;document.getElementById("iframe_htFullTextSearch02").contentWindow.document.location.href = ht_url;</script>'>
</div>
</form>
</div>
</div>
</div>
</div>
<?php
}
get_template_part( 'inc/backtotop' );
}
get_footer();
?>