| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?php
- /**
- * Artifacts view.
- *
- * Contains the view layout and ome code to present the data.
- *
- * @category View
- * @property_read Artifacts_Page $page The page model.
- */
- ?>
- <!DOCTYPE html>
- <html lang='en'>
- <head>
- <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
- <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
- <title><?=$page->title?></title>
- <link rel='shortcut icon' href='<?=$page->favicon?>'/>
- <!-- CSS files -->
- <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>ui.css'/>
- <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>enchantments.css'/>
- <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>filters.css'/>
- <!-- Meta tags -->
- <link rel='canonical' href='<?=$page->canonical?>'/>
- <link rel='author' href='<?=$page->author?>'/>
- <link rel='publisher' href='<?=$page->author?>'/>
- <meta name='description' content='<?=$page->description?>'/>
- <meta property='og:title' content='<?=$page->title?>'/>
- <meta property='og:url' content='<?=$page->canonical?>'/>
- <meta property='og:description' content='<?=$page->description?>'/>
- <meta property='og:image' content='<?=$page->icon?>'/>
- <meta property='og:site_name' content='<?=$page->name?>'/>
- <meta property='og:type' content='website'/>
- <meta property='og:locale' content='en'/>
- <meta name='twitter:card' content='summary'/>
- <meta name='twitter:title' content='<?=$page->title?>'/>
- <meta name='twitter:description' content='<?=$page->description?>'/>
- <meta name='twitter:image' content='<?=$page->icon?>'/>
- <meta name='twitter:url' content='<?=$page->canonical?>'/>
- <meta name='robots' content='index follow'/>
- <script>
- /**
- * Shows or hiddes the filters panel.
- */
- function toggleFilters(){
- var content = document.getElementById('filters_content');
- var slid = document.getElementById('filters_slid');
- if (content.style.maxHeight != '55em'){
- content.style.maxHeight = '55em';
- slid.style.transform = 'rotate(90deg)';
- }
- else{
- content.style.maxHeight = '0px';
- slid.style.transform = 'rotate(0deg)';
- }
- };
- </script>
- </head>
- <body>
- <?php
- include __DIR__ . "/inc/header.php";
- ?>
- <section class='filters'>
- <h2 id='filters_title' onClick='toggleFilters();'>
- <img id='filters_slid' id='filters_slid' alt=' ' src='<?=URL::IMG["ICON"]?>slid.png'/>
- Artifact filters
- </h2>
- <article id='filters_content'>
- <?php
- $filters = $page->filters;
- $custom_filters = $page->custom_filters;
- include __DIR__ . "/inc/filter_enchantments.php";
- ?>
- </article>
- </section> <!-- #filters -->
- <?php
- $prev_group = "";
- $group = "";
- $group_title = "";
- $group_image = "";
- foreach ($page->grindstones as $grindstone){
- //$group = $grindstone->rune->id . "-" . $grindstone->gem . "-" . $grindstone->inmemorial;
- $group = $grindstone->rune->id . "-" . $grindstone->inmemorial;
- if ($prev_group != $group){
- if ($grindstone->inmemorial == 1){
- $group_title = "Inmemorial";
- $group_image = URL::IMG["ICON"] . "star.png";
- }
- else{
- $group_title = $grindstone->rune->name;
- $group_image = URL::IMG["RUNE"] . str_pad($grindstone->rune->id, 2, '0', STR_PAD_LEFT) . ".png";
- }
- if ($prev_group == ""){
- ?>
- <section class='list'>
- <?php
- }
- else{
- ?>
- </article>
- </section>
- <section class='list'>
- <?php
- }
- $prev_group = $group;
- ?>
- <h2>
- <img class='group_image_<?=$group?>' alt='<?=$group_title?>' src='<?=$group_image?>'>
- <span>
- <?=$group_title?>
- </span>
- </h2>
- <article>
- <?php
- }
- ?>
- <?=HTML::craft_panel($grindstone)?>
- <?php
- }
- ?>
- </article> <!-- Close last group -->
- </section>
- <?php
- include __DIR__ . "/inc/footer.php";
- ?>
- </body>
- </html>
|