diff --git a/htdocs/application/controllers/main.php b/htdocs/application/controllers/main.php index ae81df7..7897d15 100755 --- a/htdocs/application/controllers/main.php +++ b/htdocs/application/controllers/main.php @@ -239,6 +239,9 @@ class Main extends CI_Controller $this->dbforge->add_key('hits_updated'); $this->dbforge->add_column('pastes', $fields); } + + //load theme + $this->load->theme('classic'); } function _form_prep($lang = false, $title = '', $paste = '', $reply = false) diff --git a/htdocs/application/core/MY_Loader.php b/htdocs/application/core/MY_Loader.php new file mode 100644 index 0000000..7d4a9f8 --- /dev/null +++ b/htdocs/application/core/MY_Loader.php @@ -0,0 +1,47 @@ +template = $template; + $this->data = $this->_ci_object_to_array($data); + $this->return = $return; + } + + function view($view, $vars = array() , $return = FALSE) + { + log_message('debug', 'Using view "themes/' . $this->template . '/views/' . $view . '.php"'); + return $this->_ci_load(array( + '_ci_view' => '../themes/' . $this->template . '/views/' . $view . '.php', + '_ci_vars' => $this->_ci_object_to_array($vars) , + '_ci_return' => $return + )); + } +} diff --git a/htdocs/static/styles/codemirror.css b/htdocs/application/themes/classic/css/codemirror.css similarity index 100% rename from htdocs/static/styles/codemirror.css rename to htdocs/application/themes/classic/css/codemirror.css diff --git a/htdocs/static/styles/diff.css b/htdocs/application/themes/classic/css/diff.css similarity index 100% rename from htdocs/static/styles/diff.css rename to htdocs/application/themes/classic/css/diff.css diff --git a/htdocs/static/styles/embed.css b/htdocs/application/themes/classic/css/embed.css similarity index 100% rename from htdocs/static/styles/embed.css rename to htdocs/application/themes/classic/css/embed.css diff --git a/htdocs/static/styles/fonts.css b/htdocs/application/themes/classic/css/fonts.css similarity index 100% rename from htdocs/static/styles/fonts.css rename to htdocs/application/themes/classic/css/fonts.css diff --git a/htdocs/static/styles/iphone.css b/htdocs/application/themes/classic/css/iphone.css similarity index 100% rename from htdocs/static/styles/iphone.css rename to htdocs/application/themes/classic/css/iphone.css diff --git a/htdocs/static/styles/main.css b/htdocs/application/themes/classic/css/main.css similarity index 100% rename from htdocs/static/styles/main.css rename to htdocs/application/themes/classic/css/main.css diff --git a/htdocs/static/styles/print.css b/htdocs/application/themes/classic/css/print.css similarity index 100% rename from htdocs/static/styles/print.css rename to htdocs/application/themes/classic/css/print.css diff --git a/htdocs/static/styles/raw.css b/htdocs/application/themes/classic/css/raw.css similarity index 100% rename from htdocs/static/styles/raw.css rename to htdocs/application/themes/classic/css/raw.css diff --git a/htdocs/static/styles/reset.css b/htdocs/application/themes/classic/css/reset.css similarity index 100% rename from htdocs/static/styles/reset.css rename to htdocs/application/themes/classic/css/reset.css diff --git a/htdocs/static/images/bg-x.png b/htdocs/application/themes/classic/images/bg-x.png similarity index 100% rename from htdocs/static/images/bg-x.png rename to htdocs/application/themes/classic/images/bg-x.png diff --git a/htdocs/static/images/button.png b/htdocs/application/themes/classic/images/button.png similarity index 100% rename from htdocs/static/images/button.png rename to htdocs/application/themes/classic/images/button.png diff --git a/htdocs/application/themes/classic/theme.php b/htdocs/application/themes/classic/theme.php new file mode 100644 index 0000000..011f7dd --- /dev/null +++ b/htdocs/application/themes/classic/theme.php @@ -0,0 +1 @@ +