1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-01 18:47:20 +01:00

moved stylesheets into a new "stylesheets" directory

This commit is contained in:
Savetheinternet 2011-07-07 22:35:35 +10:00
parent 7c69eb08ab
commit 94df9dda93
5 changed files with 8 additions and 8 deletions

View File

@ -682,7 +682,7 @@
'Yotsuba' => 'yotsuba.css' 'Yotsuba' => 'yotsuba.css'
); );
// The prefix for each stylesheet URI. Defaults to $config['root'] // The prefix for each stylesheet URI. Defaults to $config['root']/stylesheets/
//$config['uri_stylesheets'] = 'http://static.example.org/stylesheets/'; //$config['uri_stylesheets'] = 'http://static.example.org/stylesheets/';
// The default stylesheet to use // The default stylesheet to use
@ -700,7 +700,7 @@
// Set custom locations for stylesheets, scripts and maybe a banner. // Set custom locations for stylesheets, scripts and maybe a banner.
// This can be good for load balancing across multiple servers or hostnames. // This can be good for load balancing across multiple servers or hostnames.
// $config['url_stylesheet'] = 'http://static.example.org/style.css'; // $config['url_stylesheet'] = 'http://static.example.org/style.css'; // main/base stylesheet
// $config['url_javascript'] = 'http://static.example.org/main.js'; // $config['url_javascript'] = 'http://static.example.org/main.js';
// $config['url_banner'] = '/banner.php'; // $config['url_banner'] = '/banner.php';
// $config['url_favicon'] = '/favicon.gif'; // $config['url_favicon'] = '/favicon.gif';

View File

@ -28,11 +28,6 @@
date_default_timezone_set($config['timezone']); date_default_timezone_set($config['timezone']);
if(!isset($config['url_stylesheet']))
$config['url_stylesheet'] = $config['root'] . 'style.css';
if(!isset($config['url_javascript']))
$config['url_javascript'] = $config['root'] . 'main.js';
if(!isset($config['post_url'])) if(!isset($config['post_url']))
$config['post_url'] = $config['root'] . $config['file_post']; $config['post_url'] = $config['root'] . $config['file_post'];
@ -81,7 +76,12 @@
$config['uri_img'] = sprintf($config['uri_img'], $board['dir']); $config['uri_img'] = sprintf($config['uri_img'], $board['dir']);
if(!isset($config['uri_stylesheets'])) if(!isset($config['uri_stylesheets']))
$config['uri_stylesheets'] = &$config['root']; $config['uri_stylesheets'] = $config['root'] . 'stylesheets/';
if(!isset($config['url_stylesheet']))
$config['url_stylesheet'] = $config['uri_stylesheets'] . 'style.css';
if(!isset($config['url_javascript']))
$config['url_javascript'] = $config['root'] . 'main.js';
if($config['root_file']) { if($config['root_file']) {
chdir($config['root_file']); chdir($config['root_file']);