This is the source code for the website of Serenum.
https://serenum.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
6.7 KiB
125 lines
6.7 KiB
<?php |
|
|
|
require_once 'site-settings.php'; |
|
|
|
|
|
|
|
echo '<!DOCTYPE html>'; |
|
echo '<html lang="sv">'; |
|
echo '<head>'; |
|
echo '<title>'; |
|
echo $og_title; |
|
echo '</title>'; |
|
|
|
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5">'; |
|
# echo '<meta name="robots" content="noindex">'; |
|
echo '<meta name="google" content="notranslate">'; |
|
|
|
echo '<meta property="og:title" content="'.$og_title.'">'; |
|
echo '<meta property="og:site_name" content="'.$og_title.'">'; |
|
echo '<meta property="og:type" content="website">'; |
|
echo '<meta property="og:url" content="'.$og_url.'">'; |
|
echo '<meta property="og:image" content="'.$og_image.'">'; |
|
echo '<meta property="og:image:secure_url" content="'.$og_image.'">'; |
|
echo '<meta property="og:image:type" content="image/jpeg">'; |
|
echo '<meta property="og:image:width" content="256">'; |
|
echo '<meta property="og:image:height" content="256">'; |
|
echo '<meta property="og:image:alt" content="'.$og_image_alternative.'">'; |
|
echo '<meta property="og:description" content="'.$og_description.'">'; |
|
echo '<meta property="og:locale" content="'.($settings_language == 'en' ? 'en_GB' : 'sv_SE').'">'; |
|
|
|
echo '<meta name="description" content="'.$og_description.'">'; |
|
|
|
echo '<meta name="twitter:card" content="summary">'; |
|
|
|
echo '<link rel="canonical" href="'.$og_url.'">'; |
|
echo '<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon">'; |
|
|
|
|
|
|
|
echo '<link type="text/css" rel="stylesheet preload" as="style" href="//brick.freetls.fastly.net/Clear+Sans:400,700/Roboto+Mono,400">'; |
|
|
|
if($config_development == true) { |
|
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.url('stylesheets/theme-'.$settings_theme.'.css?'.time(), true).'">'; |
|
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.url('stylesheets/desktop.css?'.time(), true).'">'; |
|
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.url('stylesheets/portable.css?'.time(), true).'">'; |
|
} else { |
|
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.$cdnurl.'/css/theme-'.$settings_theme.'.min.css">'; |
|
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.$cdnurl.'/css/desktop-portable.min.css">'; |
|
} |
|
|
|
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.($config_development == true ? url('stylesheets/pe-icon-7-weather.min.css?'.time(), true) : $cdnurl.'/css/pe-icon-7-weather.min.css').'">'; |
|
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.($config_development == true ? url('stylesheets/leaflet.css?'.time(), true) : $cdnurl.'/css/leaflet.min.css').'">'; |
|
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.($config_development == true ? url('stylesheets/pretty-checkbox.min.css?'.time(), true) : $cdnurl.'/css/pretty-checkbox.min.css').'">'; |
|
|
|
echo '<script src="'.($config_development == true ? url('javascripts/jquery.min.js?'.time(), true) : $cdnurl.'/js/jquery.min.js').'" type="text/javascript"></script>'; |
|
echo '<script src="'.($config_development == true ? url('javascripts/main.js?'.time(), true) : $cdnurl.'/js/main.min.js').'" type="text/javascript"></script>'; |
|
echo '<script src="'.($config_development == true ? url('javascripts/validator.min.js?'.time(), true) : $cdnurl.'/js/validator.min.js').'" type="text/javascript"></script>'; |
|
echo '<script src="'.($config_development == true ? url('javascripts/moment.min.js?'.time(), true) : $cdnurl.'/js/moment.min.js').'" type="text/javascript"></script>'; |
|
echo '<script src="'.($config_development == true ? url('javascripts/moment-timezone-with-data.min.js?'.time(), true) : $cdnurl.'/js/moment-timezone-with-data.min.js').'" type="text/javascript"></script>'; |
|
echo '<script src="'.($config_development == true ? url('javascripts/format.min.js?'.time(), true) : $cdnurl.'/js/format.min.js').'" type="text/javascript"></script>'; |
|
echo '<script src="'.($config_development == true ? url('javascripts/leaflet.min.js?'.time(), true) : $cdnurl.'/js/leaflet.min.js').'" type="text/javascript"></script>'; |
|
echo '<script src="'.($config_development == true ? url('javascripts/leaflet-fullscreen.min.js?'.time(), true) : $cdnurl.'/js/leaflet-fullscreen.min.js').'" type="text/javascript"></script>'; |
|
echo '<script src="'.($config_development == true ? url('javascripts/jquery.nicescroll.min.js?'.time(), true) : $cdnurl.'/js/jquery.nicescroll.min.js').'" type="text/javascript"></script>'; |
|
echo '<script src="'.($config_development == true ? url('javascripts/clipboard.min.js?'.time(), true) : $cdnurl.'/js/clipboard.min.js').'" type="text/javascript"></script>'; |
|
echo '<script src="'.($config_development == true ? url('javascripts/js.cookie.min.js?'.time(), true) : $cdnurl.'/js/js.cookie.min.js').'" type="text/javascript"></script>'; |
|
echo '</head>'; |
|
echo '<body>'; |
|
|
|
|
|
|
|
echo '<noscript>'; |
|
echo '<style type="text/css">'; |
|
echo 'section#settings > h2 {'; |
|
echo 'margin-bottom: 30px;'; |
|
echo '}'; |
|
|
|
echo 'section#settings > form > .side-by-side > .gps,'; |
|
echo 'section#settings > form > .save > .copy {'; |
|
echo 'cursor: not-allowed;'; |
|
echo 'opacity: .3;'; |
|
echo '}'; |
|
|
|
echo '.js-disabled {'; |
|
echo 'display: block;'; |
|
echo '}'; |
|
|
|
echo '.js-enabled {'; |
|
echo 'display: none;'; |
|
echo '}'; |
|
|
|
echo 'section#weather > .weather > div#map,'; |
|
echo 'section#settings > div#map,'; |
|
echo 'section#settings > form > .side-by-side > .gps > .option > a,'; |
|
echo 'section#settings > form > .save > p > a {'; |
|
echo 'display: none;'; |
|
echo '}'; |
|
echo '</style>'; |
|
|
|
/* echo '<main>'; |
|
echo $lang->noscript; |
|
echo '</main>'; */ |
|
echo '</noscript>'; |
|
|
|
|
|
|
|
echo '<section id="website"'; |
|
echo ' data-domain="'.$config_domain.'"'; |
|
echo " data-default-maplayer-light='".$config_map_layer_light."'"; |
|
echo " data-default-maplayer-light-text='".$config_map_layer_light_text."'"; |
|
echo " data-default-maplayer-dark='".$config_map_layer_dark."'"; |
|
echo " data-default-maplayer-dark-text='".$config_map_layer_dark_text."'"; |
|
echo ' data-default-map-zoom="'.$config_map_zoom.'"'; |
|
echo ' data-default-map-zoom-min="'.$config_map_zoom_min.'"'; |
|
echo ' data-default-map-zoom-max="'.$config_map_zoom_max.'"'; |
|
echo ' data-settings-language="'.($cookie_exists == false ? $settings_language : $cs_language).'"'; |
|
echo ' data-settings-theme="'.($cookie_exists == false ? $settings_theme : $cs_theme).'"'; |
|
echo '>'; |
|
|
|
echo '<header>'; |
|
echo '<div class="name">'.$config_title.'</div>'; |
|
echo '</header>'; |
|
|
|
echo '<main>'; |
|
|
|
?>
|
|
|