move themes to /content/themes/ folder

This commit is contained in:
Max Pozdeev 2020-09-18 23:10:39 +03:00
parent 83ac15e582
commit 580640e412
57 changed files with 13 additions and 10 deletions

View file

@ -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

View file

@ -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.

View file

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 237 B

View file

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 118 B

View file

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 117 B

View file

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 248 B

View file

Before

Width:  |  Height:  |  Size: 121 B

After

Width:  |  Height:  |  Size: 121 B

View file

Before

Width:  |  Height:  |  Size: 115 B

After

Width:  |  Height:  |  Size: 115 B

View file

Before

Width:  |  Height:  |  Size: 491 B

After

Width:  |  Height:  |  Size: 491 B

View file

Before

Width:  |  Height:  |  Size: 149 B

After

Width:  |  Height:  |  Size: 149 B

View file

Before

Width:  |  Height:  |  Size: 196 B

After

Width:  |  Height:  |  Size: 196 B

View file

Before

Width:  |  Height:  |  Size: 190 B

After

Width:  |  Height:  |  Size: 190 B

View file

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

Before

Width:  |  Height:  |  Size: 635 B

After

Width:  |  Height:  |  Size: 635 B

View file

Before

Width:  |  Height:  |  Size: 217 B

After

Width:  |  Height:  |  Size: 217 B

View file

Before

Width:  |  Height:  |  Size: 856 B

After

Width:  |  Height:  |  Size: 856 B

View file

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

View file

Before

Width:  |  Height:  |  Size: 517 B

After

Width:  |  Height:  |  Size: 517 B

View file

Before

Width:  |  Height:  |  Size: 519 B

After

Width:  |  Height:  |  Size: 519 B

View file

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 238 B

View file

Before

Width:  |  Height:  |  Size: 180 B

After

Width:  |  Height:  |  Size: 180 B

View file

Before

Width:  |  Height:  |  Size: 200 B

After

Width:  |  Height:  |  Size: 200 B

View file

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

View file

Before

Width:  |  Height:  |  Size: 110 B

After

Width:  |  Height:  |  Size: 110 B

View file

Before

Width:  |  Height:  |  Size: 52 B

After

Width:  |  Height:  |  Size: 52 B

View file

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

Before

Width:  |  Height:  |  Size: 675 B

After

Width:  |  Height:  |  Size: 675 B

View file

Before

Width:  |  Height:  |  Size: 67 B

After

Width:  |  Height:  |  Size: 67 B

View file

Before

Width:  |  Height:  |  Size: 58 B

After

Width:  |  Height:  |  Size: 58 B

View file

Before

Width:  |  Height:  |  Size: 59 B

After

Width:  |  Height:  |  Size: 59 B

View file

Before

Width:  |  Height:  |  Size: 330 B

After

Width:  |  Height:  |  Size: 330 B

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

View file

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

View file

Before

Width:  |  Height:  |  Size: 270 B

After

Width:  |  Height:  |  Size: 270 B

View file

@ -0,0 +1,2 @@
<?php
//empty

View file

@ -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');

View file

@ -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/';

View file

@ -1 +0,0 @@
somewhere