projects.php 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <a href='<?=$base_url?>/project/<?=$project->permalink?>'>
  59. <h4 class='project_name'><?=$project->title?></h4>
  60. </a>
  61. <span>
  62. <?=$project->header?>
  63. </span>
  64. </td>
  65. </tr>
  66. </table>
  67. </article> <!-- .project -->
  68. <?php
  69. }
  70. ?>
  71. </section>
  72. </main>
  73. <?php
  74. include $path["inc"] . "footer.php";
  75. ?>
  76. </body>
  77. </html>