-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
57 lines (47 loc) · 1.37 KB
/
index.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
<?php
use BCcampus\OpenTextBooks\Controllers\Catalogue;
use BCcampus\OpenTextBooks\Controllers\Reviews;
include_once 'autoloader.php';
include( OTB_DIR . 'assets/templates/partial/style.php' );
?>
<style type="text/css">
.solrContainer-fluid {
padding-left: 0px;
padding-right: 0px;
}
#second-menu ul.nav > li > a{
padding: 10px 0 0 0;
}
.post_content{
padding-top: 0px;
}
</style>
<?php
include( OTB_DIR . 'assets/templates/partial/container-solr-start.php' );
include( OTB_DIR . 'assets/templates/partial/menu.php' );
?>
<div class="col-lg-9 col-md-9 col-sm-8 col-xs-12" itemscope itemtype="https://schema.org/Book">
<?php
$args = $_GET;
$args['type_of'] = 'books';
new Catalogue\Otb( $args );
if ( isset( $args['uuid'] ) && $args['uuid'] !== '' ) {
// overwrite variable
$args['type_of'] = 'reviews';
try {
new Reviews\LimeSurvey( $args );
} catch ( \Exception $exc ) {
error_log( $exc->getMessage(), 0 ); //@codingStandardsIgnoreLine
}
}
unset( $_GET );
?>
</div>
<?php
include( OTB_DIR . 'assets/templates/partial/container-end.php' );
include( OTB_DIR . 'assets/templates/partial/scripts.php' );
?>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script async src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>