forked from aokod/Bakelite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskin.php
More file actions
46 lines (37 loc) · 1.19 KB
/
skin.php
File metadata and controls
46 lines (37 loc) · 1.19 KB
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
<?php
// AediBootstrap/skin.php
// AediBootstrap skin file.
if (!defined("IN_ESO")) exit;
class AediBootstrap extends Skin {
var $name = "AediBootstrap";
var $version = "1.0";
var $author = "grntbg";
var $numberOfColors = 27;
// Add stylesheets and a favicon to the page header.
function init()
{
global $config;
// Register the custom wrapper.
$this->registerView("wrapper.php", "skins/AediBootstrap/wrapper.view.php");
$this->eso->addCSS("skins/base.css");
$this->eso->addCSS("skins/{$config["skin"]}/styles.css");
// Add the custom CSS file to an array.
$this->eso->addCSS("skins/{$config["skin"]}/custom.css");
$this->eso->addCSS("skins/ie6.css", "ie6");
$this->eso->addCSS("skins/ie7.css", "ie7");
$this->eso->addToHead("<link rel='shortcut icon' type='image/ico' href='skins/{$config["skin"]}/favicon.ico'/>");
}
// Generate button HTML.
function button($attributes)
{
$class = $id = $style = ""; $attr = " type='submit'";
foreach ($attributes as $k => $v) {
if ($k == "class") $class = " $v";
elseif ($k == "id") $id = " id='$v'";
elseif ($k == "style") $style = " style='$v'";
else $attr .= " $k='$v'";
}
return "<span class='button$class'$id$style><input$attr/></span>";
}
}
?>