-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
executable file
·63 lines (55 loc) · 1.74 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
58
59
60
61
62
63
<?php
/**
* Carrots is a simple PHP image gallery script, perfect to easily build a portfolio site.
* You just have to upload it to your server along with your files and that's it.
* No code. No databases. Just you and your FTP client.
*
* For PHP 5 or higher
*
* @version 0.4 (2016-10-17)
* @author David López
* @copyright 2012-2016 David López
* @license Released under the MIT License
*
*/
require_once('classes/class.carrots.php');
$url = isset($_GET['url']) ? $_GET['url']: '';
$carrots = new Carrots($url);
$homeUrl = $carrots->getHomeUrl();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title><?php echo $carrots->getTitle(); ?></title>
<link rel="stylesheet" href="<?php echo $homeUrl; ?>styles/<?php echo $settings['theme']; ?>" />
<link rel="stylesheet" href="<?php echo $homeUrl; ?>libraries/slimbox2/css/slimbox2.css" />
<script
src="https://code.jquery.com/jquery-3.6.4.min.js"
integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8="
crossorigin="anonymous"></script>
<script src="<?php echo $homeUrl; ?>libraries/slimbox2/slimbox2.js"></script>
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
</head>
<body>
<div id="wrapper">
<header>
<h1 class="page-title">
<a href="<?php echo $homeUrl; ?>"><?php echo $settings['title']; ?></a>
</h1>
</header>
<nav>
<?php $carrots->displayMenu(); ?>
</nav>
<section class="main">
<?php $carrots->displayContent(); ?>
</section>
<footer>
<p>Powered by <a href="https://github.com/davidlpz/carrots" target="_blank">Carrots</a>
<?php echo $settings['version']; ?></p>
</footer>
</div>
</body>
</html>