projects.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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='<?=$path["css"]?>ui.css'/>
  11. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>projects.css'/>
  12. <!-- Script files -->
  13. <script type="text/javascript" src="<?=$path["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 __DIR__ . "/inc/header.php";
  36. ?>
  37. <div id='content'>
  38. <div class='section'>
  39. <h3 class='section_title'><?=$page->title?></h3>
  40. <!-- TODO: Search and sorting -->
  41. <div id='project_list'>
  42. <?php
  43. foreach ($page->project as $project){
  44. ?>
  45. <div class='entry project'>
  46. <table>
  47. <tr>
  48. <?php
  49. if (strlen($project->logo) > 0){
  50. ?>
  51. <td>
  52. <a href='<?=$root?>project/<?=$project->permalink?>'>
  53. <img class='project_logo' alt='<?=$project->title?>' title='<?=$project->title?>' src='<?=$path["img"]["content"]?>project/<?=$project->logo?>'/>
  54. </a>
  55. </td>
  56. <?php
  57. }
  58. ?>
  59. <td>
  60. <a href='<?=$root?>project/<?=$project->permalink?>'>
  61. <h4 class='project_name'><?=$project->title?></h4>
  62. </a>
  63. <span>
  64. <?=$project->header?>
  65. </span>
  66. </td>
  67. </tr>
  68. </table>
  69. </div> <!-- .entry -->
  70. <?php
  71. }
  72. ?>
  73. </div> <!-- #project_list -->
  74. </div> <!-- .section -->
  75. </div> <!-- .content -->
  76. <?php
  77. include __DIR__ . "/inc/footer.php";
  78. ?>
  79. </body>
  80. </html>