summaryrefslogtreecommitdiff
path: root/php/load-css.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/load-css.php')
-rw-r--r--php/load-css.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/php/load-css.php b/php/load-css.php
new file mode 100644
index 0000000..7cabc91
--- /dev/null
+++ b/php/load-css.php
@@ -0,0 +1,9 @@
+<?php
+$isMobile = isset($_SERVER['HTTP_SEC_CH_UA_MOBILE']) && $_SERVER['HTTP_SEC_CH_UA_MOBILE'] === '?1';
+$folder = $isMobile ? 'mobile' : 'desktop';
+?>
+<link rel="stylesheet" href="<?php echo $folder; ?>/body.css">
+<link rel="stylesheet" href="<?php echo $folder; ?>/content.css">
+<link rel="stylesheet" href="<?php echo $folder; ?>/header.css">
+<link rel="stylesheet" href="<?php echo $folder; ?>/footer.css">
+<link rel="stylesheet" href="<?php echo $folder; ?>/container.css">