project.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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"]?>project.css'/>
  12. <!-- Script files -->
  13. <script type="text/javascript" src="<?=$path["js"]?>ui.js"></script>
  14. <script type="text/javascript" src="<?=$path["js"]?>project.js"></script>
  15. <!-- Meta tags -->
  16. <link rel='canonical' href='<?=$page->canonical?>'/>
  17. <link rel='author' href='<?=$page->author?>'/>
  18. <link rel='publisher' href='<?=$page->author?>'/>
  19. <meta name='description' content='<?=$page->description?>'/>
  20. <meta property='og:title' content='<?=$page->title?>'/>
  21. <meta property='og:url' content='<?=$page->canonical?>'/>
  22. <meta property='og:description' content='<?=$page->description?>'/>
  23. <meta property='og:image' content='<?=$page->icon?>'/>
  24. <meta property='og:site_name' content='<?=$page->name?>'/>
  25. <meta property='og:type' content='website'/>
  26. <meta property='og:locale' content='<?=$page->lang?>'/>
  27. <meta name='twitter:card' content='summary'/>
  28. <meta name='twitter:title' content='<?=$page->title?>'/>
  29. <meta name='twitter:description' content='<?=$page->description?>'/>
  30. <meta name='twitter:image' content='<?=$page->icon?>'/>
  31. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  32. <meta name='robots' content='index follow'/>
  33. </head>
  34. <body>
  35. <?php
  36. include __DIR__ . "/inc/header.php";
  37. ?>
  38. <main>
  39. <section id='info'>
  40. <h3>
  41. <?=$page->project->title?>
  42. </h3>
  43. <h4 id='summary'>
  44. <?=$page->project->header?>
  45. </h4>
  46. <p id='text'>
  47. <?php
  48. if (strlen($page->project->logo) > 0){
  49. ?>
  50. <img id='logo' src='<?=$path["img"]["content"]?>project/<?=$page->project->logo?>' title='<?=$page->project->title?>' alt='<?=$page->project->title?>'/>
  51. <?php
  52. }
  53. ?>
  54. <?=$page->project->text?>
  55. </p>
  56. <?php
  57. foreach($page->project->url as $embed){
  58. if ($embed->type->id == "E"){
  59. ?>
  60. <iframe id='demo' src='<?=$path["demo"]?><?=$embed->url?>' onload='resizeDemo(this);'></iframe>
  61. <?php
  62. }
  63. }
  64. ?>
  65. <?php
  66. if (sizeof($page->project->image) > 0){
  67. ?>
  68. <div id='image_reel'>
  69. <table>
  70. <tr>
  71. <?php
  72. foreach($page->project->image as $image){
  73. ?>
  74. <td>
  75. <img title='<?=$page->project->title?>' alt='<?=$page->project->title?>' src='<?=$path["img"]["content"]?>project/<?=$image->image?>'/>
  76. </td>
  77. <?php
  78. }
  79. ?>
  80. </tr>
  81. </table>
  82. </div> <!-- #image_reel -->
  83. <?php
  84. }
  85. ?>
  86. </div> <!-- #info -->
  87. <section id='details'>
  88. <h3 class='section_title'>
  89. <?=text($page, "PROJECT_INFO")?>
  90. </h3>
  91. <div id='tags' class='details'>
  92. <?php
  93. $str_tag = "";
  94. foreach($page->project->tag as $tag){
  95. $str_tag = $str_tag . "<a class='tag' href='TODO' title='" . $tag->tag . "'>" . $tag->tag . "</a>, ";
  96. }
  97. $str_tag = rtrim($str_tag, ", ");
  98. ?>
  99. <?=text($page, "PROJECT_TAGS")?>: <?=$str_tag?>
  100. <hr class='details_separator'/>
  101. </div> <!-- #tags -->
  102. <?php
  103. if (sizeof($page->project->url) > 0){
  104. ?>
  105. <div id='links' class='details'>
  106. <?php
  107. foreach($page->project->url as $url){
  108. if ($url->type->id != "E"){
  109. ?>
  110. <td>
  111. <a class='link' href='<?=$url->url?>'>
  112. <img class='link' title='<?=$url->type->title?>' alt='<?=$url->type->title?>' src='<?=$path["img"]["content"]?>url/<?=$url->type->logo?>'/>
  113. <?=$url->type->title?>
  114. </a>
  115. </td>
  116. <?php
  117. }
  118. }
  119. ?>
  120. <hr class='details_separator'/>
  121. </div> <!-- #links -->
  122. <?php
  123. }
  124. ?>
  125. <div id='license' class='details'>
  126. <?=text($page, "PROJECT_LICENSE")?>:
  127. <img src='<?=$path["img"]["content"]?>license/<?=$page->project->license->logo?>' title='<?=$page->project->license->id?>' alt='<?=$page->project->license->id?>'/>
  128. </div> <!-- #license -->
  129. </section> <!-- #details -->
  130. </main> <!-- .content -->
  131. <?php
  132. include __DIR__ . "/inc/footer.php";
  133. ?>
  134. </body>
  135. </html>