KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Development.php 4.3KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?php
  2. $PAGE_TITLE = "KXStudio : Development Timeline";
  3. $PAGE_TYPE = "DEVELOPMENT";
  4. $PAGE_SOURCE_1 = ARRAY("/Development");
  5. $PAGE_SOURCE_2 = ARRAY("Development Timeline");
  6. include_once("includes/header.php");
  7. require_once("/home/falktx/bin/simplepie/SimplePie.compiled.php");
  8. ?>
  9. <?php
  10. function print_sha8($id) {
  11. $id = strstr($id, '/');
  12. echo substr($id, 1, 9);
  13. }
  14. function print_feed_title($title) {
  15. $title = strstr($title, ':', true);
  16. echo strrchr($title, ' ');
  17. }
  18. function print_content($content) {
  19. $content2 = strstr($content, 'Signed-off-by', true);
  20. if (! $content2) {
  21. $content2 = $content;
  22. }
  23. echo trim($content2);
  24. }
  25. $feed = new SimplePie();
  26. $feed->set_cache_location("/home/falktx/bin/simplepie/cache");
  27. $feed->set_feed_url(ARRAY(
  28. 'https://github.com/DISTRHO/DISTRHO-Ports/commits/master.atom',
  29. 'https://github.com/DISTRHO/DISTRHO-Ports-Extra/commits/master.atom',
  30. 'https://github.com/DISTRHO/DPF/commits/develop.atom',
  31. 'https://github.com/DISTRHO/DPF-Max-Gen/commits/master.atom',
  32. 'https://github.com/DISTRHO/DPF-Plugins/commits/master.atom',
  33. 'https://github.com/DISTRHO/DPF-Widgets/commits/main.atom',
  34. 'https://github.com/DISTRHO/glBars/commits/master.atom',
  35. 'https://github.com/DISTRHO/JuicePlugins/commits/master.atom',
  36. 'https://github.com/DISTRHO/Kars/commits/master.atom',
  37. 'https://github.com/DISTRHO/Mini-Series/commits/master.atom',
  38. 'https://github.com/DISTRHO/MVerb/commits/master.atom',
  39. 'https://github.com/DISTRHO/ndc-Plugs/commits/master.atom',
  40. 'https://github.com/DISTRHO/OneKnob-Series/commits/main.atom',
  41. 'https://github.com/DISTRHO/PawPaw/commits/master.atom',
  42. 'https://github.com/DISTRHO/ProM/commits/master.atom',
  43. 'https://github.com/DISTRHO/STK-Plugins/commits/master.atom',
  44. 'https://github.com/DISTRHO/Website/commits/master.atom',
  45. 'https://github.com/falkTX/Cadence/commits/master.atom',
  46. 'https://github.com/falkTX/Cadence-Tools/commits/master.atom',
  47. 'https://github.com/falkTX/Carla/commits/main.atom',
  48. 'https://github.com/falkTX/Carla-Manual/commits/master.atom',
  49. 'https://github.com/falkTX/Carla-Plugins/commits/master.atom',
  50. 'https://github.com/falkTX/Carla-Releases/commits/main.atom',
  51. 'https://github.com/falkTX/Catia/commits/master.atom',
  52. 'https://github.com/falkTX/Chibi/commits/master.atom',
  53. 'https://github.com/falkTX/drmr/commits/lv2unstable.atom',
  54. 'https://github.com/falkTX/FluidPlug/commits/master.atom',
  55. 'https://github.com/falkTX/Hylia/commits/master.atom',
  56. 'https://github.com/falkTX/JackAss/commits/master.atom',
  57. 'https://github.com/falkTX/jack_interposer/commits/master.atom',
  58. 'https://github.com/falkTX/kuriborosu/commits/main.atom',
  59. 'https://github.com/falkTX/lv2vst/commits/master.atom',
  60. 'https://github.com/falkTX/protrekkr/commits/master.atom',
  61. 'https://github.com/jackaudio/jack2/commits/develop.atom',
  62. 'https://github.com/jackaudio/jack2-releases/commits/master.atom',
  63. 'https://github.com/KXStudio/Artwork/commits/master.atom',
  64. 'https://github.com/KXStudio/KXStudio/commits/master.atom',
  65. 'https://github.com/KXStudio/LV2-Extensions/commits/master.atom',
  66. 'https://github.com/KXStudio/Repository/commits/master.atom',
  67. 'https://github.com/KXStudio/Website/commits/master.atom',
  68. ));
  69. $feed->init(); // or die($feed->error());
  70. $feed->handle_content_type();
  71. $lastdate = null;
  72. foreach ($feed->get_items() as $item):
  73. $date = $item->get_gmdate('Y-m-d');
  74. if ($lastdate != $date)
  75. {
  76. if ($lastdate != null) { ?> <hr/> <?php }
  77. $lastdate = $date;
  78. ?>
  79. <h3 id="<?php echo $date ?>">&sect; <a href="#<?php echo $date ?>"><?php echo $item->get_gmdate('F j, Y') ?></a></h3>
  80. <?php
  81. }
  82. ?>
  83. <div class="changeset">
  84. <p>
  85. At
  86. <i><?php echo $item->get_gmdate('g:i a'); ?></i>
  87. by
  88. <b><a href="<?php echo $item->get_author()->get_link(); ?>" target="_blank">
  89. <?php echo $item->get_author()->get_name(); ?></a></b>
  90. <a href="<?php echo $item->get_permalink(); ?>">
  91. [<?php print_sha8($item->get_id()); ?>]</a>
  92. <!-- <?php echo $item->get_title(); ?></a> -->
  93. in
  94. <b><?php print_feed_title($item->get_feed()->get_title()); ?></b>
  95. <div class="box box-description"><?php print_content($item->get_content(true)); ?></div>
  96. </p>
  97. </div>
  98. <?php
  99. endforeach;
  100. include_once("includes/footer.php");
  101. ?>