summaryrefslogtreecommitdiff
path: root/src/web/core/model.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-02-23 22:57:27 -0500
committerFreya Murphy <freya@freyacat.org>2026-02-23 22:57:27 -0500
commitf373ead95fb5beb962c376b5b7b46dfde8ac4e57 (patch)
treec99df23521ff2a5e5e2e4627c525a5e99dc2e3ae /src/web/core/model.php
parentadd 96x96 logo (diff)
downloadwebsite-f373ead95fb5beb962c376b5b7b46dfde8ac4e57.tar.gz
website-f373ead95fb5beb962c376b5b7b46dfde8ac4e57.tar.bz2
website-f373ead95fb5beb962c376b5b7b46dfde8ac4e57.zip
update website to work with crimson framework
Diffstat (limited to 'src/web/core/model.php')
-rw-r--r--src/web/core/model.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/web/core/model.php b/src/web/core/model.php
deleted file mode 100644
index 6a42a98..0000000
--- a/src/web/core/model.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php /* Copyright (c) 2024 Freya Murphy */
-
-abstract class Model extends Component {
-
- /**
- * @return array<string,mixed>
- */
- public static function get_base_data(?string $app = NULL): array
- {
- $data = array();
- $data['title'] = lang('first_name');
- $data['desc'] = lang('default_short_desc');
- $data['css'] = array();
- $data['js'] = array();
-
- $style = CONFIG['style'];
- $js = CONFIG['js'];
-
- if (!$app)
- $app = CONTEXT['app'];
-
- if (isset($style[$app])) {
- $css = $style[$app];
- if (!is_array($css))
- $css = array($css);
- $data['css'] = $css;
- }
-
- if (isset($js[$app])) {
- $js = $js[$app];
- if (!is_array($js))
- $js = array($js);
- $data['js'] = $js;
- }
-
- return $data;
- }
-
-}