You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.5 KiB
PHP
51 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class Helper extends \Leaf\Model {
|
|
|
|
public static function mainNav() {
|
|
$nav = array();
|
|
|
|
$nav['about'] = ['title' => 'About', 'link' => '/about'];
|
|
$nav['servers'] = ['title' => 'Servers', 'link' => '/#servers'];
|
|
$servers = self::servers();
|
|
foreach ($servers as $server) {
|
|
$nav['servers']['children'][] = ['title' => $server['type'], 'link' => 'LINK'];
|
|
}
|
|
$nav['sf'] = ['title' => 'Simple Floor', 'link' => '/sf'];
|
|
$nav['example'] = ['title' => 'Example', 'link' => '/example'];
|
|
$nav['faq'] = ['title' => 'FAQs', 'link' => '/#faq'];
|
|
|
|
return $nav;
|
|
}
|
|
|
|
public static function servers(){
|
|
$servers = [
|
|
['type' => 'Minecraft'
|
|
, 'servers' => [
|
|
[
|
|
'name' => 'survival.mc.aney.co.uk'
|
|
,'description' => 'An open to all survival minecraft server.'
|
|
]
|
|
,[
|
|
'name' => 'creative.mc.aney.co.uk'
|
|
,'description' => 'Creative minecraft server.'
|
|
]
|
|
]
|
|
]
|
|
,['type' => 'Factorio'
|
|
, 'servers' => [
|
|
[
|
|
'name' => 'factorio.aney.co.uk'
|
|
,'description' => 'The factory must grow.'
|
|
]
|
|
]
|
|
]
|
|
,['type' => 'misc', 'servers' => []]
|
|
];
|
|
|
|
return $servers;
|
|
}
|
|
}
|