-
Notifications
You must be signed in to change notification settings - Fork 29
/
html.php
41 lines (32 loc) · 984 Bytes
/
html.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
<?php
class Html {
public static function header() {
}
public static function style() {
if (file_exists(WEB . "css" . DS . "style.css")) {
echo "<link rel=\"stylesheet\" href=\"css/style.css\" type=\"text/css\" />\n";
}
$gitCss = System::get('git_css');
if ($gitCss) {
echo "<link rel=\"stylesheet\" href=\"css/gitstyle.css\" type=\"text/css\" />\n";
}
}
function breadcrumbs() {
echo "<div class=\"githead\">\n";
$crumb = "<a href=\"" . sanitized_url() . "\">projects</a> / ";
if (isset($_GET['p'])){
$crumb .= html_ahref(array('p'=>$_GET['p'], 'pg'=>"")) . $_GET['p'] ."</a> / ";
}
if (isset($_GET['b'])){
$crumb .= "blob";
}
if (isset($_GET['t'])){
$crumb .= "tree";
}
if ($_GET['a'] == 'commitdiff'){
$crumb .= 'commitdiff';
}
echo $crumb;
echo "</div>\n";
}
}