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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/Nekobi/commits/master.atom',
  39. 'https://github.com/DISTRHO/MVerb/commits/master.atom',
  40. 'https://github.com/DISTRHO/ndc-Plugs/commits/master.atom',
  41. 'https://github.com/DISTRHO/OneKnob-Series/commits/main.atom',
  42. 'https://github.com/DISTRHO/PawPaw/commits/master.atom',
  43. 'https://github.com/DISTRHO/ProM/commits/master.atom',
  44. 'https://github.com/DISTRHO/STK-Plugins/commits/master.atom',
  45. 'https://github.com/DISTRHO/Website/commits/master.atom',
  46. 'https://github.com/falkTX/Cadence/commits/master.atom',
  47. 'https://github.com/falkTX/Cadence-Tools/commits/master.atom',
  48. 'https://github.com/falkTX/Carla/commits/main.atom',
  49. 'https://github.com/falkTX/Carla-Manual/commits/master.atom',
  50. 'https://github.com/falkTX/Carla-Plugins/commits/master.atom',
  51. 'https://github.com/falkTX/Carla-Releases/commits/main.atom',
  52. 'https://github.com/falkTX/Catia/commits/master.atom',
  53. 'https://github.com/falkTX/Chibi/commits/master.atom',
  54. 'https://github.com/falkTX/drmr/commits/lv2unstable.atom',
  55. 'https://github.com/falkTX/FluidPlug/commits/master.atom',
  56. 'https://github.com/falkTX/Hylia/commits/master.atom',
  57. 'https://github.com/falkTX/JackAss/commits/master.atom',
  58. 'https://github.com/falkTX/jack_interposer/commits/master.atom',
  59. 'https://github.com/falkTX/kuriborosu/commits/main.atom',
  60. 'https://github.com/falkTX/lv2vst/commits/master.atom',
  61. 'https://github.com/falkTX/protrekkr/commits/master.atom',
  62. 'https://github.com/jackaudio/jack2/commits/develop.atom',
  63. 'https://github.com/jackaudio/jack2-releases/commits/master.atom',
  64. 'https://github.com/KXStudio/Artwork/commits/master.atom',
  65. 'https://github.com/KXStudio/KXStudio/commits/master.atom',
  66. 'https://github.com/KXStudio/LV2-Extensions/commits/master.atom',
  67. 'https://github.com/KXStudio/Repository/commits/master.atom',
  68. 'https://github.com/KXStudio/Website/commits/master.atom',
  69. ));
  70. $feed->init(); // or die($feed->error());
  71. $feed->handle_content_type();
  72. $lastdate = null;
  73. foreach ($feed->get_items() as $item):
  74. $date = $item->get_gmdate('Y-m-d');
  75. if ($lastdate != $date)
  76. {
  77. if ($lastdate != null) { ?> <hr/> <?php }
  78. $lastdate = $date;
  79. ?>
  80. <h3 id="<?php echo $date ?>">&sect; <a href="#<?php echo $date ?>"><?php echo $item->get_gmdate('F j, Y') ?></a></h3>
  81. <?php
  82. }
  83. ?>
  84. <div class="changeset">
  85. <p>
  86. At
  87. <i><?php echo $item->get_gmdate('g:i a'); ?></i>
  88. by
  89. <b><a href="<?php echo $item->get_author()->get_link(); ?>" target="_blank">
  90. <?php echo $item->get_author()->get_name(); ?></a></b>
  91. <a href="<?php echo $item->get_permalink(); ?>">
  92. [<?php print_sha8($item->get_id()); ?>]</a>
  93. <!-- <?php echo $item->get_title(); ?></a> -->
  94. in
  95. <b><?php print_feed_title($item->get_feed()->get_title()); ?></b>
  96. <div class="box box-description"><?php print_content($item->get_content(true)); ?></div>
  97. </p>
  98. </div>
  99. <?php
  100. endforeach;
  101. include_once("includes/footer.php");
  102. ?>