summaryrefslogtreecommitdiff
path: root/web/core/aesthetic.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-03-30 12:14:42 -0400
committerFreya Murphy <freya@freyacat.org>2024-03-30 12:14:42 -0400
commit1f04b83be337cc91a3fabcf4e574e2306f3d2eaa (patch)
tree74d7d65a7047e60d1877384e3c7b0d70c7b0e49a /web/core/aesthetic.php
parentstart database (user and post), and initial barebones home page (diff)
downloadxssbook2-1f04b83be337cc91a3fabcf4e574e2306f3d2eaa.tar.gz
xssbook2-1f04b83be337cc91a3fabcf4e574e2306f3d2eaa.tar.bz2
xssbook2-1f04b83be337cc91a3fabcf4e574e2306f3d2eaa.zip
refactor
Diffstat (limited to 'web/core/aesthetic.php')
-rw-r--r--web/core/aesthetic.php55
1 files changed, 0 insertions, 55 deletions
diff --git a/web/core/aesthetic.php b/web/core/aesthetic.php
deleted file mode 100644
index 1180ad1..0000000
--- a/web/core/aesthetic.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php /* Copyright (c) 2024 Freya Murphy */
-class Aesthetic {
-
- private $config;
-
- function __construct() {
- $this->config = array(
- '_common' => array(
- 'js' => [
- 'js/jquery-3.7.1.min.js',
- 'js/lib.js',
- 'js/modal.js',
- ],
- 'css' => [
- 'css/common.css'
- ],
- ),
- 'error' => array(
- 'css' => [
- 'css/error.css'
- ],
- ),
- 'home' => array(
- 'js' => [
- 'js/post.js',
- ],
- 'css' => [
- 'css/home.css',
- 'css/post.css'
- ],
- ),
- );
- }
-
- function get_files($route) {
- $js_files = $this->config['_common']['js'];
- $css_files = $this->config['_common']['css'];
-
- if (array_key_exists($route, $this->config)) {
- $config = $this->config[$route];
- if (array_key_exists('js', $config)) {
- $js_files = array_merge($js_files, $config['js']);
- }
- if (array_key_exists('css', $config)) {
- $css_files = array_merge($css_files, $config['css']);
- }
- }
-
- return array(
- 'js_files' => $js_files,
- 'css_files' => $css_files,
- );
- }
-
-}