home.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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"]?>home.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. <main>
  38. <div id='left'>
  39. <section>
  40. <h3>
  41. <?=$page->name?>
  42. </h3>
  43. <!-- TODO: Profile form model -->
  44. <article id='profile'>
  45. <img id='profile_image' srcset='<?=srcset("profile/profile.png")?>' src='<?=$path["img"]["content"]?>profile/x400/profile.png' alt='<?=text($page, "USER_NAME");?>' title='<?=text($page, "USER_NAME");?>' />
  46. <div id='profile_content'>
  47. <span id='tagline'><?=text($page, "USER_TAGLINE");?></span>
  48. <span id='bio'><?=text($page, "USER_BIO");?></span>
  49. <a class='a_button' href='<?=$root?>profile/'>
  50. <?=text($page, "INDEX_PROFILE");?>
  51. </a>
  52. </div>
  53. </article>
  54. </section>
  55. </div> <!-- left -->
  56. <div id='right'>
  57. <section>
  58. <h3>
  59. <?=text($page, "INDEX_PROJECTS");?>
  60. </h3>
  61. <?php
  62. foreach ($page->project as $project){
  63. ?>
  64. <article>
  65. <table>
  66. <tr>
  67. <?php
  68. if (strlen($project->logo) > 0){
  69. ?>
  70. <td>
  71. <a href='<?=$root?>project/<?=$project->permalink?>'>
  72. <img alt='<?=text($page, $project->title)?>' title='<?=text($page, $project->title)?>' srcset='<?=srcset("project/" . $project->logo)?>' src='<?=$path["img"]["content"]?>project/x200/<?=$project->logo?>'/>
  73. </a>
  74. </td>
  75. <?php
  76. }
  77. ?>
  78. <td>
  79. <a href='<?=$root?>project/<?=$project->permalink?>'>
  80. <h4 class='project_name'><?=$project->title?></h4>
  81. </a>
  82. <span>
  83. <?=$project->header?>
  84. </span>
  85. </td>
  86. </tr>
  87. </table>
  88. </article>
  89. <?php
  90. }
  91. ?>
  92. <a class='a_button' href='<?=$root?>project/'>
  93. <span class='header_container'>
  94. <span class='header_icon_container'>
  95. <img class='header_icon' alt='<?=text($page, "HEADER_PROJECTS");?>' src='<?=$path["img"]["layout"]?>icon/projects.gif'/>
  96. </span>
  97. <?=text($page, "INDEX_PROJECTS");?>
  98. </span>
  99. </a>
  100. </section>
  101. </div> <!-- #right -->
  102. </main>
  103. <?php
  104. include __DIR__ . "/inc/footer.php";
  105. ?>
  106. </body>
  107. </html>