move theme files to content/theme/ and includes/theme.php
|
Before Width: | Height: | Size: 237 B After Width: | Height: | Size: 237 B |
|
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 118 B |
|
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 117 B |
|
Before Width: | Height: | Size: 115 B After Width: | Height: | Size: 115 B |
|
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 217 B |
|
Before Width: | Height: | Size: 491 B After Width: | Height: | Size: 491 B |
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 149 B |
|
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 190 B |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 394 B |
|
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 403 B |
|
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 217 B |
|
Before Width: | Height: | Size: 211 B After Width: | Height: | Size: 211 B |
|
Before Width: | Height: | Size: 517 B After Width: | Height: | Size: 517 B |
|
Before Width: | Height: | Size: 519 B After Width: | Height: | Size: 519 B |
|
Before Width: | Height: | Size: 528 B After Width: | Height: | Size: 528 B |
|
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 177 B |
|
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
|
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 260 B |
|
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 216 B |
|
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 259 B |
|
|
@ -9,14 +9,14 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php mttinfo('title'); ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php mttinfo('template_url'); ?>style.css?v=<?php mttinfo('version'); ?>" media="all" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php mttinfo('template_url'); ?>markdown.css?v=<?php mttinfo('version'); ?>" media="all" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php mttinfo('theme_url'); ?>style.css?v=<?php mttinfo('version'); ?>" media="all" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php mttinfo('theme_url'); ?>markdown.css?v=<?php mttinfo('version'); ?>" media="all" />
|
||||
<?php if (get_mttinfo('appearance') == 'system'): ?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php mttinfo('template_url'); ?>dark.css?v=<?php mttinfo('version'); ?>" media="screen" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php mttinfo('theme_url'); ?>dark.css?v=<?php mttinfo('version'); ?>" media="screen" />
|
||||
<?php endif; ?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php mttinfo('template_url'); ?>print.css?v=<?php mttinfo('version'); ?>" media="print" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php mttinfo('theme_url'); ?>print.css?v=<?php mttinfo('version'); ?>" media="print" />
|
||||
<?php if(Config::get('rtl')): ?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php mttinfo('template_url'); ?>style_rtl.css?v=<?php mttinfo('version'); ?>" media="all" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php mttinfo('theme_url'); ?>style_rtl.css?v=<?php mttinfo('version'); ?>" media="all" />
|
||||
<?php endif; ?>
|
||||
</head>
|
||||
|
||||
|
|
@ -27,9 +27,7 @@ if (need_auth() && access_token() == '') {
|
|||
update_token();
|
||||
}
|
||||
|
||||
define('TEMPLATEPATH', MTTTHEMES. Config::get('template'). '/');
|
||||
|
||||
require(TEMPLATEPATH. 'index.php');
|
||||
require(MTTINC. 'theme.php');
|
||||
|
||||
// end
|
||||
|
||||
|
|
@ -79,7 +77,7 @@ function js_options()
|
|||
"showdate" => Config::get('showdate') ? true : false,
|
||||
"duedatepickerformat" => htmlspecialchars(Config::get('dateformat2')),
|
||||
"firstdayofweek" => (int) Config::get('firstdayofweek'),
|
||||
"calendarIcon" => get_mttinfo('template_url'). 'images/calendar.svg',
|
||||
"calendarIcon" => get_mttinfo('theme_url'). 'images/calendar.svg',
|
||||
"autotag" => Config::get('autotag') ? true : false,
|
||||
"markdown" => Config::get('markup') == 'v1' ? false : true
|
||||
);
|
||||
|
|
|
|||
|
|
@ -251,9 +251,9 @@ function get_unsafe_mttinfo($v)
|
|||
}
|
||||
switch($v)
|
||||
{
|
||||
case 'template_url':
|
||||
$_mttinfo['template_url'] = get_unsafe_mttinfo('mtt_url'). 'content/themes/'. Config::get('template') . '/';
|
||||
return $_mttinfo['template_url'];
|
||||
case 'theme_url':
|
||||
$_mttinfo['theme_url'] = get_unsafe_mttinfo('mtt_url'). 'content/theme/';
|
||||
return $_mttinfo['theme_url'];
|
||||
case 'includes_url':
|
||||
$_mttinfo['includes_url'] = get_unsafe_mttinfo('mtt_url'). 'includes/';
|
||||
return $_mttinfo['includes_url'];
|
||||
|
|
|
|||