move themes to /content/themes/ folder
11
buildzip.php
|
|
@ -47,14 +47,15 @@ print "> Version is $ver\n";
|
|||
rename('db/todolist.db.empty', 'db/todolist.db');
|
||||
rename('db/config.php.default', 'db/config.php');
|
||||
|
||||
|
||||
$fh = fopen("./themes/default/index.php", 'a') or die("cant write index.php\n");
|
||||
/*
|
||||
$fh = fopen("./content/themes/default/index.php", 'a') or die("cant write index.php\n");
|
||||
fwrite($fh, "\n<!-- $rev -->");
|
||||
fclose($fh);
|
||||
|
||||
$fh = fopen("./themes/ie8/index.php", 'a') or die("cant write index.php\n");
|
||||
$fh = fopen("./content/themes/ie8/index.php", 'a') or die("cant write ie8/index.php\n");
|
||||
fwrite($fh, "\n<!-- $rev -->");
|
||||
fclose($fh);
|
||||
*/
|
||||
|
||||
#replace @VERSION
|
||||
replaceVer('./setup.php', $ver);
|
||||
|
|
@ -73,10 +74,10 @@ closedir($dh);
|
|||
|
||||
|
||||
# pack ie8 theme
|
||||
chdir('themes');
|
||||
chdir('content/themes');
|
||||
`zip -9 -r ie8.zip ie8`; #OS dep.!!!
|
||||
deleteTreeIfDir('ie8');
|
||||
chdir('..');
|
||||
chdir('../..');
|
||||
|
||||
|
||||
chdir('..'); # to the root of repo
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|||
myTinyTodo
|
||||
--------------
|
||||
Url: http://www.mytinytodo.net/
|
||||
Copyright: 2009-2010,2020 Max Pozdeev <maxpozdeev@gmail.com>
|
||||
Copyright: 2009-2011,2019-2020 Max Pozdeev <maxpozdeev@gmail.com>
|
||||
License: GPL version 2 (see LICENSE file)
|
||||
|
||||
|
||||
|
|
@ -35,4 +35,4 @@ Copyright: Copyright jQuery Foundation and other contributors
|
|||
License: MIT license. Compatible with GNU GPL.
|
||||
|
||||
|
||||
This software contains images by 3d-parties. See file themes/default/images/COPYRIGHT for details.
|
||||
This software contains images by 3d-parties. See files content/themes/default/images/COPYRIGHT and content/themes/ie8/images/COPYRIGHT for details.
|
||||
|
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: 248 B After Width: | Height: | Size: 248 B |
|
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 121 B |
|
Before Width: | Height: | Size: 115 B After Width: | Height: | Size: 115 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: 196 B After Width: | Height: | Size: 196 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: 635 B After Width: | Height: | Size: 635 B |
|
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 217 B |
|
Before Width: | Height: | Size: 856 B After Width: | Height: | Size: 856 B |
|
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 207 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: 238 B After Width: | Height: | Size: 238 B |
|
Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 180 B |
|
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
|
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 216 B |
|
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 110 B |
|
Before Width: | Height: | Size: 52 B After Width: | Height: | Size: 52 B |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 675 B After Width: | Height: | Size: 675 B |
|
Before Width: | Height: | Size: 67 B After Width: | Height: | Size: 67 B |
|
Before Width: | Height: | Size: 58 B After Width: | Height: | Size: 58 B |
|
Before Width: | Height: | Size: 59 B After Width: | Height: | Size: 59 B |
|
Before Width: | Height: | Size: 330 B After Width: | Height: | Size: 330 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 342 B |
|
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 270 B |
2
src/content/themes/index.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
//empty
|
||||
|
|
@ -42,7 +42,7 @@ else if ( isset($_GET['mobile']) || isset($_GET['pda']) ) {
|
|||
Config::set('mobile', 1);
|
||||
}
|
||||
|
||||
define('TEMPLATEPATH', MTTPATH. 'themes/'. Config::get('template'). '/');
|
||||
define('TEMPLATEPATH', MTTTHEMES. Config::get('template'). '/');
|
||||
|
||||
require(TEMPLATEPATH. 'index.php');
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ if(!defined('MTTPATH')) define('MTTPATH', dirname(__FILE__) .'/');
|
|||
if(!defined('MTTINC')) define('MTTINC', MTTPATH. 'includes/');
|
||||
if(!defined('MTTCONTENT')) define('MTTCONTENT', MTTPATH. 'content/');
|
||||
if(!defined('MTTLANG')) define('MTTLANG', MTTCONTENT. 'lang/');
|
||||
if(!defined('MTTTHEMES')) define('MTTTHEMES', MTTCONTENT. 'themes/');
|
||||
|
||||
require_once(MTTINC. 'common.php');
|
||||
require_once(MTTPATH. 'db/config.php');
|
||||
|
|
@ -154,7 +155,7 @@ function get_unsafe_mttinfo($v)
|
|||
switch($v)
|
||||
{
|
||||
case 'template_url':
|
||||
$_mttinfo['template_url'] = get_unsafe_mttinfo('mtt_url'). 'themes/'. Config::get('template') . '/';
|
||||
$_mttinfo['template_url'] = get_unsafe_mttinfo('mtt_url'). 'content/themes/'. Config::get('template') . '/';
|
||||
return $_mttinfo['template_url'];
|
||||
case 'includes_url':
|
||||
$_mttinfo['includes_url'] = get_unsafe_mttinfo('mtt_url'). 'includes/';
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
somewhere
|
||||