project.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. <!-- 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 id='info' class='section'>
  39. <h3 class='section_title'>
  40. <?=$page->project->title?>
  41. </h3>
  42. <h4 id='summary'>
  43. <?=$page->project->header?>
  44. </h4>
  45. <p id='text'>
  46. <?php
  47. if (strlen($page->project->logo) > 0){
  48. ?>
  49. <img id='logo' src='<?=$path["img"]["content"]?>project/<?=$page->project->logo?>' title='<?=$page->project->title?>' alt='<?=$page->project->title?>'/>
  50. <?php
  51. }
  52. ?>
  53. <?=$page->project->text?>
  54. </p>
  55. <?php
  56. if (sizeof($page->project->image) > 0){
  57. ?>
  58. <div id='image_reel'>
  59. <table>
  60. <tr>
  61. <?php
  62. foreach($page->project->image as $image){
  63. ?>
  64. <td>
  65. <img title='<?=$page->project->title?>' alt='<?=$page->project->title?>' src='<?=$path["img"]["content"]?>project/<?=$image->image?>'/>
  66. </td>
  67. <?php
  68. }
  69. ?>
  70. </tr>
  71. </table>
  72. </div> <!-- #image_reel -->
  73. <?php
  74. }
  75. ?>
  76. </div> <!-- #info -->
  77. <div id='details' class='section'>
  78. <h3 class='section_title'>
  79. <?=text($page, "PROJECT_INFO")?>
  80. </h3>
  81. <div id='tags' class='details'>
  82. <?php
  83. $str_tag = "";
  84. foreach($page->project->tag as $tag){
  85. $str_tag = $str_tag . "<a class='tag' href='TODO' title='" . $tag->tag . "'>" . $tag->tag . "</a>, ";
  86. }
  87. $str_tag = rtrim($str_tag, ", ");
  88. ?>
  89. <?=text($page, "PROJECT_TAGS")?>: <?=$str_tag?>
  90. <hr class='details_separator'/>
  91. </div> <!-- #tags -->
  92. <?php
  93. if (sizeof($page->project->url) > 0){
  94. ?>
  95. <div id='links' class='details'>
  96. <?php
  97. foreach($page->project->url as $url){
  98. ?>
  99. <td>
  100. <a class='link' href='<?=$url->url?>'>
  101. <img class='link' title='<?=$url->type->title?>' alt='<?=$url->type->title?>' src='<?=$path["img"]["content"]?>url/<?=$url->type->logo?>'/>
  102. <?=$url->type->title?>
  103. </a>
  104. </td>
  105. <?php
  106. }
  107. ?>
  108. <hr class='details_separator'/>
  109. </div> <!-- #links -->
  110. <?php
  111. }
  112. ?>
  113. <div id='version' class='details'>
  114. <?=text($page, "PROJECT_VERSION")?>:<?=$page->project->version[0]->name?>
  115. <br/>
  116. <a href='TODO'><?=text($page, "PROJECT_VERSION_TREE")?></a>
  117. <hr class='details_separator'/>
  118. </div> <!-- #license -->
  119. <div id='license' class='details'>
  120. <?=text($page, "PROJECT_LICENSE")?>:
  121. <img src='<?=$path["img"]["content"]?>license/<?=$page->project->license->logo?>' title='<?=$page->project->license->id?>' alt='<?=$page->license->id?>'/>
  122. </div> <!-- #license -->
  123. </div> <!-- #details -->
  124. </div> <!-- .content -->
  125. <?php
  126. include __DIR__ . "/inc/footer.php";
  127. ?>
  128. </body>
  129. </html>