diff --git a/index.php b/index.php index 0bc0cc7..12dfb0f 100644 --- a/index.php +++ b/index.php @@ -19,13 +19,6 @@ 'short_description' => 'The first nation, prev. 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( 'name' => 'Chunkia', 'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Chunkia/chunkia512.png', @@ -41,6 +34,16 @@ 'description' => 'In the vast landsacpe of CRSS, The Toaster-Königreich is one of the most industrialized Marxist district of CRSS. With Charge Industries as one of the main government controlled company in the nation.', ) ); + + $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'])) { $dbUser = $mysql->getUserRecordFromId($_SESSION['user']['id']); diff --git a/template/companies.twig b/template/companies.twig new file mode 100644 index 0000000..32a49d1 --- /dev/null +++ b/template/companies.twig @@ -0,0 +1,22 @@ +{% include 'includes/head.twig' with {'pageTitle': 'Companies'} %} + +{% include 'includes/hero.twig' %} + +{% include 'includes/nav.twig' with {'page': 'companies'} %} + +
+

Companies

+
+ {% for company in companies %} + +

{{ company.name }}

+

{{ company.short_description }}

+ +
+ {% endfor %} +
+ +
+ +{% include 'includes/footer.twig' %} +{% include 'includes/foot.twig' %} \ No newline at end of file diff --git a/template/company.twig b/template/company.twig new file mode 100644 index 0000000..8ccaabb --- /dev/null +++ b/template/company.twig @@ -0,0 +1,25 @@ +{% include 'includes/head.twig' with {'pageTitle': company.name} %} + +{% include 'includes/hero.twig' %} + +{% include 'includes/nav.twig' with {'page': 'company'} %} + +
+ +
+ +{% include 'includes/footer.twig' %} +{% include 'includes/foot.twig' %} \ No newline at end of file