projects.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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"]?>projects.css'/>
  12. <!-- Script files -->
  13. <script type="text/javascript" src="<?=$static["js"]?>ui.js"></script>
  14. <!-- Meta tags -->
  15. <link rel='canonical' href='<?=$page->canonical?>'/>
  16. <link rel='author' href='<?=$page->author?>'/>
  17. <link rel='publisher' href='<?=$page->author?>'/>
  18. <meta name='description' content='<?=$page->description?>'/>
  19. <meta property='og:title' content='<?=$page->title?>'/>
  20. <meta property='og:url' content='<?=$page->canonical?>'/>
  21. <meta property='og:description' content='<?=$page->description?>'/>
  22. <meta property='og:image' content='<?=$page->icon?>'/>
  23. <meta property='og:site_name' content='<?=$page->name?>'/>
  24. <meta property='og:type' content='website'/>
  25. <meta property='og:locale' content='<?=$page->lang?>'/>
  26. <meta name='twitter:card' content='summary'/>
  27. <meta name='twitter:title' content='<?=$page->title?>'/>
  28. <meta name='twitter:description' content='<?=$page->description?>'/>
  29. <meta name='twitter:image' content='<?=$page->icon?>'/>
  30. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  31. <meta name='robots' content='index follow'/>
  32. </head>
  33. <body>
  34. <?php
  35. include $path["inc"] . "header.php";
  36. ?>
  37. <main>
  38. <section>
  39. <h3><?=text($page, "PROJECT_TITLE");?></h3>
  40. <?php
  41. foreach ($page->project as $project){
  42. ?>
  43. <article class='project'>
  44. <table>
  45. <tr>
  46. <?php
  47. if (strlen($project->logo) > 0){
  48. ?>
  49. <td>
  50. <a href='<?=$base_url?>/project/<?=$project->permalink?>'>
  51. <img class='project_image' alt='<?=$project->title?>' title='<?=$project->title?>' src='<?=$static["content"]?>project/<?=$project->logo?>' srcset='<?=srcset("project/" . $project->logo)?>'/>
  52. </a>
  53. </td>
  54. <?php
  55. }
  56. ?>
  57. <td class='project_details'>
  58. <h4 class='project_name'>
  59. <a href='<?=$base_url?>/project/<?=$project->permalink?>'>
  60. <?=$project->title?>
  61. </a>
  62. </h4>
  63. <span>
  64. <?=$project->header?>
  65. </span>
  66. </td>
  67. </tr>
  68. </table>
  69. </article> <!-- .project -->
  70. <?php
  71. }
  72. ?>
  73. </section>
  74. </main>
  75. <?php
  76. include $path["inc"] . "footer.php";
  77. ?>
  78. </body>
  79. </html>