+

:4736 Function create_function() is deprecated [8192]

Last commit for projectinfos/templates/summary.php: e538d65f710c830cb12383fb162775f5229232eb

Put CSS in separated file

Benjamin Renard [2013-08-21 17:39:18]
Put CSS in separated file
  1. <?php
  2. global $page;
  3. ?>
  4. <style>
  5. dl.projectinfos {
  6. margin: 0;
  7. padding: 0;
  8. }
  9.  
  10. dl.projectinfos dt {
  11. position: relative;
  12. width: 7em;
  13. left: 0.2em;
  14. font-weight: bold;
  15. }
  16.  
  17. dl.projectinfos dd {
  18. margin-left: 7em;
  19. margin-top: -1.3em;
  20. padding: 0;
  21. }
  22.  
  23. dl.projectinfos ul {
  24. list-style-type: none;
  25. margin: 0;
  26. padding: 0;
  27. }
  28. </style>
  29. <h1 class='projectinfos'>Project informations</h1>
  30. <dl class='projectinfos'>
  31. <dt>Description</dt>
  32. <dd><?php echo $page['project_infos']['description']; ?></dd>
  33.  
  34. <dt>Last Change</dt>
  35. <dd><?php echo $page['project_infos']['head_datetime']; ?></dd>
  36.  
  37. <?php
  38. if (isset($page['project_infos']['url'])) {
  39. echo "<dt>URL</dt>
  40. <dd><ul>";
  41. foreach ($page['project_infos']['url'] as $url) {
  42. echo "<li>$url</li>";
  43. }
  44. echo "</ul></dd>";
  45. }
  46. ?>
  47. </dl>