mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
Fallback CSS includes for theme subfolder in install.php
Themes can't "share" the "themes/" toplevel folder if checked out directly via git, or indirectly via composer. That's a problem for themes like blackcandy, which have nested subthemes. The theme autoloading already handles this transparently, but we need to adjust the installer which is also using blackcandy.
This commit is contained in:
parent
5f3b70f6d3
commit
5779b89382
@ -909,13 +909,14 @@ class Installer extends InstallRequirements {
|
||||
}
|
||||
|
||||
function install($config) {
|
||||
$themePath = file_exists('themes/blackcandy/blackcandy') ? 'themes/blackcandy/blackcandy' : 'themes/blackcandy';
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Installing SilverStripe...</title>
|
||||
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/layout.css" />
|
||||
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/typography.css" />
|
||||
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/form.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $themePath ?>/css/layout.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $themePath ?>/css/typography.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $themePath ?>/css/form.css" />
|
||||
<link rel="stylesheet" type="text/css" href="sapphire/dev/install/install.css" />
|
||||
<script src="sapphire/thirdparty/jquery/jquery.js"></script>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user