Skip to content

Commit b3641a1

Browse files
Added a basic template (created with https://replit.com/
1 parent a8bfc15 commit b3641a1

File tree

3 files changed

+930
-1
lines changed

3 files changed

+930
-1
lines changed

public_html/shared/view/common/content_top.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<header class="header">
22
<div class="container">
33
<div class="header-content">
4-
<a href="#" class="logo" aria-label="Spindle CMS Home">
4+
<a href="{{ link_home }}" class="logo" aria-label="Spindle CMS Home">
55
Spindle CMS
66
</a>
77
<nav aria-label="Main navigation">
88
<ul class="nav">
99
<li><a href="{{ link_home }}" class="nav-link">Home</a></li>
1010
<li><a href="{{ link_docs }}" class="nav-link">Docs</a></li>
11+
<li><a href="#" class="nav-link">Examples</a></li>
1112
<li><a href="https://github.com/RandomCoderTinker/Spindle" class="nav-link" target="_blank"
1213
rel="noopener noreferrer">GitHub</a></li>
1314
</ul>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/*
3+
* Spindle CMS
4+
* Copyright (c) 2025. All rights reserved.
5+
*
6+
* This file is part of the Spindle CMS project — a lightweight, modular PHP content framework derived from OpenCart.
7+
*
8+
* @license GNU General Public License v3.0 (GPL-3.0-or-later)
9+
* @link https://github.com/RandomCoderTinker/Spindle
10+
*/
11+
12+
namespace Spindle\Docs\Controller\Common;
13+
14+
use Spindle\System\Engine\Controller;
15+
16+
class Home extends Controller
17+
{
18+
19+
public function index ()
20+
{
21+
// Load in the extra css page (duplicates code from home page, but so what - i copied and pasted)
22+
$this->document->addStyle(CDN_LOCATION . "css/docs.css", sortOrder: 100);
23+
24+
$data['header'] = $this->load->controller('common/header');
25+
$data['content_top'] = $this->load->controller('common/content_top');
26+
27+
$this->response->setOutput($this->load->view('common/home', $data));
28+
}
29+
30+
}

0 commit comments

Comments
 (0)