File tree Expand file tree Collapse file tree 3 files changed +930
-1
lines changed Expand file tree Collapse file tree 3 files changed +930
-1
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments