refactor _views folder

This commit is contained in:
Murphy 2024-12-12 10:14:46 -05:00
parent ce12380727
commit 859f31065d
Signed by: freya
GPG key ID: 9FBC6FFD6D2DBF17
14 changed files with 9 additions and 9 deletions

View file

@ -16,7 +16,7 @@ class Blog_controller extends Controller {
$data = $this->blog_model->get_data();
$this->view('header', $data);
$this->view('apps/blog', $data);
$this->view('blog/main', $data);
$this->view('footer', $data);
}
@ -44,7 +44,7 @@ class Blog_controller extends Controller {
$this->error(404);
}
$this->view('header', $data);
$this->view('apps/blog_post', $data);
$this->view('blog/post', $data);
$ref = "blog/post/{$name}";
$this->comments_controller->comments($data['post']['meta']['name'], $ref);
$this->view('footer', $data);
@ -61,7 +61,7 @@ class Blog_controller extends Controller {
$this->error(404);
}
$this->view('header', $data);
$this->view('apps/blog_writeup', $data);
$this->view('blog/writeup', $data);
$ref = "blog/writeup/{$name}";
$this->comments_controller->comments($data['post']['meta']['name'], $ref);
$this->view('footer', $data);
@ -71,7 +71,7 @@ class Blog_controller extends Controller {
{
$data = $this->blog_model->get_data();
header('Content-Type: application/xml');
$this->view('apps/blog_rss', $data);
$this->view('blog/rss', $data);
die();
}

View file

@ -16,7 +16,7 @@ class Bucket_controller extends Controller {
$this->error(400);
return;
}
$this->view('apps/bucket', $data);
$this->view('bucket/main', $data);
}
}

View file

@ -15,7 +15,7 @@ class Error_controller extends Controller {
$data = $this->error_model->get_data($code);
$this->view('header', $data);
$this->view('apps/error', $data);
$this->view('error/main', $data);
$this->view('footer', $data);
}

View file

@ -7,7 +7,7 @@ class Home_controller extends Controller {
$data = Model::get_base_data();
$this->view('header', $data);
$this->view('apps/home', $data);
$this->view('home/main', $data);
$this->view('footer', $data);
}

View file

@ -14,7 +14,7 @@ class Projects_controller extends Controller {
$data = $this->projects_model->get_data();
$this->view('header', $data);
$this->view('apps/projects', $data);
$this->view('projects/main', $data);
$this->view('footer', $data);
}

View file

@ -34,7 +34,7 @@
type="hidden"
class="hidden"
name="ref"
value="<?=base64_encode($ref)?>">
value="<?=esc(base64_encode($ref))?>">
<div><input
type="hidden"
class="hidden"