mirror of
https://github.com/YunoHost-Apps/agendav_ynh.git
synced 2024-09-03 20:36:12 +02:00
47 lines
1,001 B
PHP
47 lines
1,001 B
PHP
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title><?php echo $title?></title>
|
|
|
|
<link rel="shortcut icon" type="image/x-icon"
|
|
href="<?php echo base_url() . 'favicon.ico';?>" />
|
|
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
<?php
|
|
if (ENVIRONMENT == 'development') {
|
|
$css = Defs::$cssfiles;
|
|
$printcss = Defs::$printcssfiles;
|
|
} else {
|
|
$css = array(
|
|
'agendav-' . AGENDAV_VERSION . '.css',
|
|
);
|
|
$printcss = array(
|
|
'agendav-' . AGENDAV_VERSION . '.print.css',
|
|
);
|
|
}
|
|
|
|
foreach ($css as $cssfile) {
|
|
echo link_tag('css/' . $cssfile);
|
|
}
|
|
|
|
foreach ($printcss as $pcss) {
|
|
echo link_tag(array(
|
|
'href' => 'css/' . $pcss,
|
|
'type' => 'text/css',
|
|
'rel' => 'stylesheet',
|
|
'media' => 'print',
|
|
)
|
|
);
|
|
}
|
|
?>
|
|
</head>
|
|
<?php
|
|
// Body classes
|
|
$final_body_class = array('ui-form');
|
|
if (isset($body_class)) {
|
|
$final_body_class = array_merge($final_body_class, (array)$body_class);
|
|
}
|
|
?>
|
|
<body class="<?php echo implode(' ', $final_body_class)?>">
|