forked from raulfraile/ladybug-theme-modern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModernTheme.php
92 lines (84 loc) · 1.95 KB
/
ModernTheme.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
<?php
/*
* This file is part of the Ladybug package.
*
* (c) Raul Fraile <raulfraile@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Ladybug\Theme\Modern;
use Ladybug\Theme\AbstractTheme;
use Ladybug\Theme\HtmlThemeInterface;
use Ladybug\Format;
/**
* Modern theme class
*
* @author Raul Fraile <raulfraile@gmail.com>
*/
class ModernTheme extends AbstractTheme implements HtmlThemeInterface
{
/**
* Gets the theme name
*
* @return string
*/
public function getName()
{
return 'Modern';
}
/**
* Gets the theme parent
*
* @return string
*/
public function getParent()
{
return 'Base';
}
/**
* Gets CSS dependencies
*
* @return array
*/
public function getHtmlCssDependencies()
{
return array(
'lib/bootstrap/css/bootstrap.min.css',
'lib/codemirror/lib/codemirror.css',
'css/styles.css'
);
}
/**
* Gets JS dependencies
*
* @return array
*/
public function getHtmlJsDependencies()
{
return array(
'lib/jquery/jquery.min.js',
'lib/bootstrap/js/bootstrap.min.js',
'lib/codemirror/lib/codemirror.js',
'lib/codemirror/mode/clike/clike.js',
'lib/codemirror/mode/css/css.js',
'lib/codemirror/mode/htmlmixed/htmlmixed.js',
'lib/codemirror/mode/htmlembedded/htmlembedded.js',
'lib/codemirror/mode/javascript/javascript.js',
'lib/codemirror/mode/http/http.js',
'lib/codemirror/mode/php/php.js',
'lib/codemirror/mode/xml/xml.js'
);
}
/**
* Gets supported formats
*
* @return array
*/
public function getFormats()
{
return array(
Format\HtmlFormat::FORMAT_NAME
);
}
}