From a8ccbfaa8372e74f564fc29ae00853916e7525d5 Mon Sep 17 00:00:00 2001 From: Ps0ke Date: Mon, 27 Aug 2012 23:29:57 +0200 Subject: [PATCH] Renamed `static/' to `theme/' to better fit the purpose and not to confuse people. --- admin/index.php | 8 ++++---- core/functions/functions.php | 2 +- index.php | 8 ++++---- install/index.php | 4 ++-- plugins/README.md | 14 +++++++------- {static => theme}/css/mobile.css | 0 {static => theme}/css/style.css | 0 {static => theme}/js/php-date-format.js | 0 {static => theme}/js/showdown-gui.js | 0 {static => theme}/js/showdown.js | 0 {static => theme}/templates/admin.php | 4 ++-- {static => theme}/templates/alert.php | 2 +- {static => theme}/templates/footer.php | 0 {static => theme}/templates/header.php | 4 ++-- {static => theme}/templates/new-edit.php | 10 +++++----- {static => theme}/templates/no-results.php | 0 {static => theme}/templates/post.php | 0 {static => theme}/templates/really.php | 2 +- 18 files changed, 29 insertions(+), 29 deletions(-) rename {static => theme}/css/mobile.css (100%) rename {static => theme}/css/style.css (100%) rename {static => theme}/js/php-date-format.js (100%) rename {static => theme}/js/showdown-gui.js (100%) rename {static => theme}/js/showdown.js (100%) rename {static => theme}/templates/admin.php (93%) rename {static => theme}/templates/alert.php (92%) rename {static => theme}/templates/footer.php (100%) rename {static => theme}/templates/header.php (94%) rename {static => theme}/templates/new-edit.php (82%) rename {static => theme}/templates/no-results.php (100%) rename {static => theme}/templates/post.php (100%) rename {static => theme}/templates/really.php (94%) diff --git a/admin/index.php b/admin/index.php index 070ebb4..296c163 100644 --- a/admin/index.php +++ b/admin/index.php @@ -7,12 +7,12 @@ if(isset($_GET['new'])){ $type = 'new'; - require(BASE_PATH.'static/templates/new-edit.php'); + require(BASE_PATH.'theme/templates/new-edit.php'); } else if(preg_match('/^\d\d\d\d-\d\d-\d\d_\d\d-\d\d$/', $_GET['edit'])){ $type = 'edit'; $post = post_details(BASE_PATH."posts/".$_GET['edit'].".md"); - require(BASE_PATH.'/static/templates/new-edit.php'); + require(BASE_PATH.'/theme/templates/new-edit.php'); } else if(preg_match('/^\d\d\d\d-\d\d-\d\d_\d\d-\d\d$/', $_GET['delete'])){ if(isset($_GET['really'])){ @@ -24,10 +24,10 @@ } } else - require(BASE_PATH.'static/templates/really.php'); + require(BASE_PATH.'theme/templates/really.php'); } else{ - require(BASE_PATH.'static/templates/admin.php'); + require(BASE_PATH.'theme/templates/admin.php'); } } if('POST' == $_SERVER['REQUEST_METHOD']){ diff --git a/core/functions/functions.php b/core/functions/functions.php index a0b3f99..bb96b16 100644 --- a/core/functions/functions.php +++ b/core/functions/functions.php @@ -86,7 +86,7 @@ function to_url($string){ function alert($alert_message, $alert_type, $alert_return_url = BASE_URL, $alert_delay = DEFAULT_ALERT_DELAY){ foreach(glob(BASE_PATH."plugins/*/php_functions-alert.php") as $filename){include $filename;} - include(BASE_PATH.'/static/templates/alert.php'); + include(BASE_PATH.'/theme/templates/alert.php'); exit(); } ?> diff --git a/index.php b/index.php index 4b4b5f5..7eea80c 100644 --- a/index.php +++ b/index.php @@ -85,7 +85,7 @@ function SpeedTest(){ foreach(glob(BASE_PATH."plugins/*/php_main-before-include-header.php") as $pluginfilename){include $pluginfilename;} -include(BASE_PATH.'static/templates/header.php'); +include(BASE_PATH.'theme/templates/header.php'); if($files) foreach($files as $filename){ @@ -101,13 +101,13 @@ function SpeedTest(){ foreach(glob(BASE_PATH."plugins/*/php_main-post-before-include.php") as $pluginfilename){include $pluginfilename;} - include(BASE_PATH.'static/templates/post.php'); + include(BASE_PATH.'theme/templates/post.php'); } } else - include(BASE_PATH.'static/templates/no-results.php'); + include(BASE_PATH.'theme/templates/no-results.php'); -include(BASE_PATH.'static/templates/footer.php'); +include(BASE_PATH.'theme/templates/footer.php'); if(DEV_MODE){ echo ""; diff --git a/install/index.php b/install/index.php index fe3390d..30e1b28 100644 --- a/install/index.php +++ b/install/index.php @@ -18,8 +18,8 @@ <?php echo POWERED_BY; ?> - - + +