forked from CRSS/Website
Remove DRR, add companies template, add Fedbank
This commit is contained in:
parent
aeb2e7fd43
commit
fc5495ab13
17
index.php
17
index.php
|
@ -19,13 +19,6 @@
|
||||||
'short_description' => 'The first nation, prev. known as ROP.',
|
'short_description' => 'The first nation, prev. known as ROP.',
|
||||||
'description' => 'The first nation on CRSS, previously known as ROP.',
|
'description' => 'The first nation on CRSS, previously known as ROP.',
|
||||||
),
|
),
|
||||||
'drr' => array(
|
|
||||||
'name' => 'Democratic Republic of Rayland',
|
|
||||||
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Democratic%20Republic%20of%20Rayland/bannre.png',
|
|
||||||
'short' => 'drr',
|
|
||||||
'short_description' => 'Short description of D.R.R.',
|
|
||||||
'description' => 'Full description of D.R.R', //does this support html and line breaks
|
|
||||||
),
|
|
||||||
'cnk' => array(
|
'cnk' => array(
|
||||||
'name' => 'Chunkia',
|
'name' => 'Chunkia',
|
||||||
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Chunkia/chunkia512.png',
|
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Chunkia/chunkia512.png',
|
||||||
|
@ -42,6 +35,16 @@
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$companies = array(
|
||||||
|
'fbk' => array(
|
||||||
|
'name' => 'FedBank',
|
||||||
|
'logo' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Republic%20of%20Panorama/Flag.svg',
|
||||||
|
'short' => 'fbk',
|
||||||
|
'short_description' => 'An International Bank, owned by the PSF government',
|
||||||
|
'description' => 'FedBank is an International bank owned and controlled by the Panorama Socialist Federation\'s Government. The main building is in PSF, but there is a FedBank in TTK too.'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
if(isset($_SESSION['user'])) {
|
if(isset($_SESSION['user'])) {
|
||||||
$dbUser = $mysql->getUserRecordFromId($_SESSION['user']['id']);
|
$dbUser = $mysql->getUserRecordFromId($_SESSION['user']['id']);
|
||||||
|
|
||||||
|
|
22
template/companies.twig
Normal file
22
template/companies.twig
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{% include 'includes/head.twig' with {'pageTitle': 'Companies'} %}
|
||||||
|
|
||||||
|
{% include 'includes/hero.twig' %}
|
||||||
|
|
||||||
|
{% include 'includes/nav.twig' with {'page': 'companies'} %}
|
||||||
|
|
||||||
|
<main class="pageContent container">
|
||||||
|
<h1>Companies</h1>
|
||||||
|
<div class="cards">
|
||||||
|
{% for company in companies %}
|
||||||
|
<a class="card transitionEnabled" href="/nation/{{ company.short }}">
|
||||||
|
<h1>{{ company.name }}</h1>
|
||||||
|
<p>{{ company.short_description }}</p>
|
||||||
|
<img class="icon" src="{{ company.logo }}">
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{% include 'includes/footer.twig' %}
|
||||||
|
{% include 'includes/foot.twig' %}
|
25
template/company.twig
Normal file
25
template/company.twig
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{% include 'includes/head.twig' with {'pageTitle': company.name} %}
|
||||||
|
|
||||||
|
{% include 'includes/hero.twig' %}
|
||||||
|
|
||||||
|
{% include 'includes/nav.twig' with {'page': 'company'} %}
|
||||||
|
|
||||||
|
<main class="pageContent container">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
code: {{ company.short }}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
name: {{ company.name }}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
flag: <img height="32px" src="{{ company.logo }}" alt="{{ company.name }}'s flag." />
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
description: {{company.description}}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{% include 'includes/footer.twig' %}
|
||||||
|
{% include 'includes/foot.twig' %}
|
Loading…
Reference in a new issue