better singleton instance

This commit is contained in:
2025-05-07 20:39:12 -07:00
parent 642242511e
commit 036b6e8e34
2 changed files with 1 additions and 45 deletions

View File

@@ -8,47 +8,3 @@ Requires PHP: 7.4
Version: 1.0 Version: 1.0
Text Domain: ofc Text Domain: ofc
*/ */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400;1,500&display=swap");
.title-logo {
max-width: 350px;
width: 100%;
}
body{
text-align: center;
background-color: #212529;
}
p{
font-family:"Roboto", sans-serif;
color:lightgray;
}
h1{
font-family:"Roboto", sans-serif;
color:#ee0099;
font-style: italic;
text-decoration: none;
font-size:3em;
}
h2{
font-family:"Roboto", sans-serif;
color:lightgray;
}
#rad-tag{
font-family:"Roboto", sans-serif;
font-weight: bold;
/* font-style: italic; */
color: lightgray;
}
a {
text-decoration: none;
}
.bottom-link{
color: #ee0099;
}
hr {
border-color: #343a40;
}

View File

@@ -24,6 +24,7 @@ class Site
{ {
if (self::$instance === null) { if (self::$instance === null) {
self::$instance = new self([]); self::$instance = new self([]);
self::$instance->bootstrap();
} }
return self::$instance; return self::$instance;
} }
@@ -35,7 +36,6 @@ class Site
} }
$this->config = $config; $this->config = $config;
$this->bootstrap();
} }
private function bootstrap() private function bootstrap()