| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?php
- /**
- * Building list view.
- *
- * Contains the view layout and some code to present the data
- *
- * @author Iñigo Valentin <i@inigovalentin.com>
- * @license https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License V3
- * @package SWDB
- * @category View
- * @property Buildings_Page $page The page model,.
- * @var Buildings_Page $page The page model,.
- */
- ?>
- <!DOCTYPE html>
- <html lang='en'>
- <head>
- <?=$page->generate_head()?>
- </head>
- <body>
- <header>
- <?php
- include __DIR__ . "/inc/header_app.php";
- ?>
- </header>
- <aside id='filters' class='content filters'>
- <h2 id='filters_title'>
- Buildings
- </h2>
- <p>
- A list with every building in the game.
- </p>
- </aside>
- <main>
- <section id='list' class='list'>
- <h2>
- Buildings
- </h2>
- <article>
- <?php
- foreach ($page->get_buildables() as $buildable){
- ?>
- <a href='/buildings/<?=$buildable->get_id()?>'>
- <?=HTML::building_panel($buildable)?>
- </a>
- <?php
- }
- ?>
- </article>
- </section>
- <section id='list' class='list'>
- <h2>
- Decorations
- </h2>
- <article>
- <?php
- foreach ($page->get_decoratives() as $decorative){
- ?>
- <a href='/buildings/<?=$decorative->get_id()?>'>
- <?=HTML::building_panel($decorative)?>
- </a>
- <?php
- }
- ?>
- </article>
- </section>
- <section id='list' class='list'>
- <h2>
- Guild Flags
- </h2>
- <article>
- <?php
- foreach ($page->get_flags() as $flag){
- ?>
- <a href='/buildings/<?=$flag->get_id()?>'>
- <?=HTML::building_panel($flag)?>
- </a>
- <?php
- }
- ?>
- </article>
- </section>
- </main>
- <?php
- include __DIR__ . "/inc/footer.php";
- ?>
- </body>
- </html>
|