home.php 5.1 KB

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