gallery.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html lang='<?=$page->lang?>'>
  3. <head>
  4. <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
  5. <meta charset='utf-8'/>
  6. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
  7. <title><?=$page->title?></title>
  8. <link rel='shortcut icon' href='<?=$page->favicon?>'/>
  9. <!-- CSS files -->
  10. <link rel='stylesheet' type='text/css' href='<?=$static["css"]?>ui.css'/>
  11. <link rel='stylesheet' type='text/css' href='<?=$static["css"]?>gallery.css'/>
  12. <!-- Script files -->
  13. <script type='text/javascript' src='<?=$static["js"]?>ui.js'></script>
  14. <script type='text/javascript' src='<?=$static["js"]?>gallery.js'></script>
  15. <!-- Meta tags -->
  16. <link rel='canonical' href='<?=$page->canonical?>'/>
  17. <link rel='author' href='<?=$page->author?>'/>
  18. <link rel='publisher' href='<?=$page->author?>'/>
  19. <meta name='description' content='<?=$page->description?>'/>
  20. <meta property='og:title' content='<?=$page->title?>'/>
  21. <meta property='og:url' content='<?=$page->canonical?>'/>
  22. <meta property='og:description' content='<?=$page->description?>'/>
  23. <meta property='og:image' content='<?=$page->icon?>'/>
  24. <meta property='og:site_name' content='<?=$page->name?>'/>
  25. <meta property='og:type' content='website'/>
  26. <meta property='og:locale' content='<?=$page->lang?>'/>
  27. <meta name='twitter:card' content='summary'/>
  28. <meta name='twitter:title' content='<?=$page->title?>'/>
  29. <meta name='twitter:description' content='<?=$page->description?>'/>
  30. <meta name='twitter:image' content='<?=$page->icon?>'/>
  31. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  32. <meta name='robots' content='index follow'/>
  33. </head>
  34. <body>
  35. <?php
  36. include $path["include"] . "header.php";
  37. ?>
  38. <main>
  39. <section id='album_list'>
  40. <h3>
  41. <?=$page->title?>
  42. </h3>
  43. <?php
  44. foreach($page->album as $album) {
  45. ?>
  46. <article>
  47. <h4>
  48. <a href='<?=$base_url?>/galeria/<?=$album->permalink?>'><?=album->title?></a>
  49. </h4>
  50. <?php
  51. for($i = 0; $i < 4; $i ++) {
  52. $r = mt_rand (0, strlen($album->photo) - 1);
  53. ?>
  54. <a href='<?=$base_url?>/galeria/<?=$album->permalink?>'>
  55. <img alt=' <?=$album->photo[$r]->title?>' title=' <?=$album->photo[$r]->title?>' src='<?=$static["content"]?>gallery/<?=$album->photo[$r]->image?>' srcset='<?=srcset("gallery/" . $album->photo[$r]->image)?>'/>
  56. </a>
  57. <?php
  58. }
  59. ?>
  60. </article>
  61. <?php
  62. } // foreach($page->album as $album)
  63. ?>
  64. </section>
  65. </main>
  66. <?php
  67. include $path["include"] . "footer.php";
  68. ?>
  69. </body>
  70. </html>