A privacy respecting, self-hosted weather website 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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

125 lines
6.5 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 rel="stylesheet" href="//brick.freetls.fastly.net/Roboto:300,400,700/Roboto+Mono:400">';
if($debug == false) {
echo '<link type="text/css" rel="stylesheet preload" href="https://cdn.airikr.me/all.min.css">';
} else {
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.($config_development == true ? url('stylesheets/theme-'.$settings_theme.'.css?'.time(), true) : $cdnurl.'/css/theme-'.$settings_theme.'.css').'">';
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).'">';
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.($config_development == true ? url('stylesheets/pe-icon-7-weather.css?'.time(), true) : $cdnurl.'/css/pe-icon-7-weather.css').'">';
echo '<link type="text/css" rel="stylesheet preload" as="style" href="'.($config_development == true ? url('stylesheets/leaflet.css?'.time(), true) : $cdnurl.'/css/leaflet.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="'.url('javascripts/main.js?'.time(), true).'" 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>';
?>