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.

278 lines
13KB

  1. <?php
  2. $SHOW_NOTE = TRUE;
  3. if (file_exists("/home/falk2/"))
  4. {
  5. $ROOT = "/kxstudio";
  6. $SHOW_NOTE = FALSE;
  7. }
  8. else
  9. {
  10. $ROOT = "";
  11. $SHOW_NOTE = FALSE;
  12. }
  13. ?>
  14. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  15. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  18. <!--[if lt IE 7]>
  19. <meta http-equiv="imagetoolbar" content="no" />
  20. <![endif]-->
  21. <title><?php echo $PAGE_TITLE; ?></title>
  22. <link rel="copyright" href="http://creativecommons.org/licenses/publicdomain/" />
  23. <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.fluid.css" type="text/css" media="screen" />
  24. <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.css" type="text/css" media="screen" />
  25. <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Raleway:200,700,800,400" type="text/css" media="screen" />
  26. <link rel="icon" type="image/png" href="<?php echo $ROOT; ?>/images/ico_kxstudio.png" />
  27. <link rel="shortcut icon" href="<?php echo $ROOT; ?>/favicon.ico" />
  28. <?php if ($PAGE_TYPE == "HOME") { ?>
  29. <script type="text/javascript" src="includes/jquery-1.4.2.min.js"></script>
  30. <script type="text/javascript" src="includes/responsiveslides.min.js"></script>
  31. <?php } ?>
  32. <script type="text/javascript">
  33. <?php if ($PAGE_TYPE == "HOME") { ?>
  34. $(window).load(function(){
  35. $(".rslides").responsiveSlides({
  36. auto: true,
  37. nav: true,
  38. pager: false,
  39. speed: 1000,
  40. timeout: 7500,
  41. namespace: "large-btns"
  42. });
  43. });
  44. <?php } ?>
  45. function closeAllMenus(){
  46. var objSoftwareMenu = document.getElementById("div_menuSoftware");
  47. var objRepositoriesMenu = document.getElementById("div_menuRepositories");
  48. var objSupportMenu = document.getElementById("div_menuSupport");
  49. var objCommunityMenu = document.getElementById("div_menuCommunity");
  50. if (objSoftwareMenu.style.visibility == "visible")
  51. objSoftwareMenu.style.visibility = "hidden";
  52. if (objRepositoriesMenu.style.visibility == "visible")
  53. objRepositoriesMenu.style.visibility = "hidden";
  54. if (objSupportMenu.style.visibility == "visible")
  55. objSupportMenu.style.visibility = "hidden";
  56. if (objCommunityMenu.style.visibility == "visible")
  57. objCommunityMenu.style.visibility = "hidden";
  58. };
  59. function menuItemClicked(event, menu, itemName){
  60. event.stopPropagation();
  61. closeAllMenus();
  62. //if (menu.style.visibility != "visible")
  63. {
  64. var leftPos = document.getElementById(itemName).getBoundingClientRect().left - 1;
  65. menu.style.left = "" + leftPos + "px";
  66. menu.style.visibility = "visible";
  67. }
  68. //else
  69. //{
  70. // menu.style.visibility = "hidden";
  71. //}
  72. return false;
  73. };
  74. function bodyClicked(){
  75. closeAllMenus();
  76. return true;
  77. };
  78. function itemSoftwareClicked(event) { return menuItemClicked(event, document.getElementById("div_menuSoftware"), "item-soft"); };
  79. function itemRepositoriesClicked(event){ return menuItemClicked(event, document.getElementById("div_menuRepositories"), "item-repos"); };
  80. function itemSupportClicked(event) { return menuItemClicked(event, document.getElementById("div_menuSupport"), "item-support"); };
  81. function itemCommunityClicked(event) { return menuItemClicked(event, document.getElementById("div_menuCommunity"), "item-community"); };
  82. </script>
  83. <?php if ($PAGE_TYPE == "DONATIONS") { ?>
  84. <script type="text/javascript">
  85. /* <![CDATA[ */
  86. (function() {
  87. var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
  88. s.type = 'text/javascript';
  89. s.async = true;
  90. s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
  91. t.parentNode.insertBefore(s, t);
  92. })();
  93. /* ]]> */
  94. </script>
  95. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  96. <link rel="stylesheet" href="<?php echo $ROOT; ?>/paste/kxstudio.css" type="text/css" media="screen" />
  97. <!-- Special Paste CSS -->
  98. <style type="text/css">
  99. html, body {
  100. color: white;
  101. }
  102. .paste_textarea_border {
  103. height: 300px;
  104. border: 1px solid gray;
  105. }
  106. <?php if ($show_paste) { ?>
  107. div .paste_canvas_area {
  108. font-family: monospace;
  109. }
  110. <?php } ?>
  111. <?php if ($show_numbers) { ?>
  112. div .paste_canvas_area {
  113. padding-left: 10px;
  114. }
  115. <?php } ?>
  116. textarea {
  117. width: 100%;
  118. height: 100%;
  119. margin: 0;
  120. padding: 0;
  121. border-width: 0;
  122. resize: none;
  123. }
  124. </style>
  125. <?php } ?>
  126. </head>
  127. <?php if ($PAGE_TYPE == "HOME") { ?>
  128. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid" style="min-width:1080px" onClick="return bodyClicked();">
  129. <?php } else { ?>
  130. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid" style="min-width:1080px" onClick="return bodyClicked();">
  131. <?php } ?>
  132. <!-- Software sub menu -->
  133. <div id="div_menuSoftware" class="div_menuDropdown">
  134. <p><a href="<?php echo $ROOT; ?>/Applications"><img src="<?php echo $ROOT; ?>/images/ico_cadence.png" alt=""/> &nbsp; Applications</a></p>
  135. <p><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/ico_distrho.png" alt=""/> &nbsp; Plugins</a></p>
  136. </div>
  137. <!-- Repositories sub menu -->
  138. <div id="div_menuRepositories" class="div_menuDropdown">
  139. <p><a href="<?php echo $ROOT; ?>/Repositories">About</a></p>
  140. <p><a href="<?php echo $ROOT; ?>/Repositories:Applications">Applications (in Repo)</a></p>
  141. <p><a href="<?php echo $ROOT; ?>/Repositories:Plugins">Plugins (in Repo)</a></p>
  142. </div>
  143. <!-- Support sub menu -->
  144. <div id="div_menuSupport" class="div_menuDropdown">
  145. <p><a href="<?php echo $ROOT; ?>/Documentation">Documentation</a></p>
  146. </div>
  147. <!-- Community sub menu -->
  148. <div id="div_menuCommunity" class="div_menuDropdown">
  149. <p><a href="http://webchat.freenode.net/?channels=#kxstudio,#opensourcemusicians"><img src="<?php echo $ROOT; ?>/images/ico_chat.png" class="external" rel="nofollow" target="_blank" alt=""/> &nbsp; Chat</a></p>
  150. <p><a href="http://linuxmusicians.com/viewforum.php?f=47"><img src="<?php echo $ROOT; ?>/images/ico_forum.png" class="external" rel="nofollow" target="_blank" alt=""/> &nbsp; Forum</a></p>
  151. <p><a href="https://soundcloud.com/groups/kxstudio"><img src="<?php echo $ROOT; ?>/images/ico_soundcloud.png" class="external" rel="nofollow" target="_blank" alt=""/> &nbsp; Songs</a></p>
  152. </div>
  153. <!-- Top link -->
  154. <a name="Top" id="Top"></a>
  155. <!-- Start: Header -->
  156. <div id="header">
  157. <div id="header-content" class="container_12">
  158. <a id="header-logo" href="<?php echo $ROOT; ?>/">
  159. <img src="<?php echo $ROOT; ?>/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
  160. </a>
  161. <a id="header-home" href="<?php echo $ROOT; ?>/" style="font-size:1.2em">Home</a>
  162. <ul id="global-navigation">
  163. <li id="item-news"><a href="<?php echo $ROOT; ?>/News">News</a></li>
  164. <li id="item-soft"><a href="#" onClick="return itemSoftwareClicked(event);">Software &#9660;</a></li>
  165. <li id="item-repos"><a href="#" onClick="return itemRepositoriesClicked(event);">Repositories &#9660;</a></li>
  166. <li id="item-support"><a href="#" onClick="return itemSupportClicked(event);">Support &#9660;</a></li>
  167. <li id="item-community"><a href="#" onClick="return itemCommunityClicked(event);">Community &#9660;</a></li>
  168. <li id="item-donate"><a href="<?php echo $ROOT; ?>/Donations">Donations</a></li>
  169. <li id="item-downloads"><a href="<?php echo $ROOT; ?>/Downloads">Downloads</a></li>
  170. <li id="item-paste"><a href="<?php echo $ROOT; ?>/Paste">Paste</a></li>
  171. </ul>
  172. </div>
  173. </div>
  174. <!-- End: Header -->
  175. <?php if ($PAGE_TYPE == "HOME") { ?>
  176. <div id="rslides_container">
  177. <ul class="rslides" id="slider1">
  178. <li><a href="<?php echo $ROOT; ?>/Repositories:Applications"><img src="<?php echo $ROOT; ?>/images/slider-applications.jpg" alt=""/></a></li>
  179. <li><a href="<?php echo $ROOT; ?>/Documentation:KXStudio12043:About"><img src="<?php echo $ROOT; ?>/images/slider-distribution.jpg" alt=""/></a></li>
  180. <li><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/slider-plugins.jpg" alt=""/></a></li>
  181. </ul>
  182. </div>
  183. <?php } else { ?>
  184. <?php if ($PAGE_TYPE == "PASTE") { ?>
  185. <a href="http://qbnz.com/highlighter" class="external text" rel="nofollow" target="_blank" style="position:absolute; top:37px; right:5%;"><img src="<?php echo $ROOT; ?>/images/powered-by-geshi.png" alt="Powered by GeSHi"/></a>
  186. <?php } ?>
  187. <div id="subheader" class="container_16">
  188. <div id="breadcrump" class="grid_12 alpha">
  189. <a href="<?php echo $ROOT; ?>/" title="Home"><img src="<?php echo $ROOT; ?>/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
  190. <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
  191. &gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
  192. <?php } ?>
  193. </div>
  194. </div>
  195. <?php } ?>
  196. <!-- Start: Main Content Area -->
  197. <div id="content" class="container_16 content-wrapper">
  198. <?php if ($PAGE_TYPE == "HOME") { ?>
  199. <div id="some-content" class="box box-shadow grid_13 clearfix">
  200. <?php } else { ?>
  201. <div id="some-content" class="box box-shadow grid_77 clearfix">
  202. <?php } ?>
  203. <!-- Start: Box header -->
  204. <div class="box-header header-tabs">
  205. <ul>
  206. <li><a href="#Top">Top</a></li>
  207. <?php if ($PAGE_TYPE == "APPLICATION") { ?>
  208. <li><a href="#Interface">Interface</a></li>
  209. <li><a href="#Usage">Usage</a></li>
  210. <li><a href="#Download">Download</a></li>
  211. <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
  212. <li><a href="#Interface">Interface</a></li>
  213. <li><a href="#Download">Download</a></li>
  214. <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
  215. <li><a href="#Binaries">Binaries</a></li>
  216. <li><a href="#SourceCode">Source Code</a></li>
  217. <li><a href="#LiveDVD">Live-DVD</a></li>
  218. <li><a href="#Artwork">Artwork</a></li>
  219. <li><a href="#AllDownloads">All Downloads</a></li>
  220. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  221. <li><a href="<?php echo $ROOT; ?>/Paste" title="Create new paste">New Paste</a></li>
  222. <?php if ($show_paste && ! $is_error) { ?>
  223. <li><a href="<?php echo $ROOT; ?>/Paste/repo/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
  224. <li><a href="<?php echo $ROOT; ?>/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
  225. <?php } ?>
  226. <?php } ?>
  227. </ul>
  228. </div>
  229. <div id="contentSub"></div>
  230. <!-- End: Box header -->
  231. <div class="alpha omega paste_canvas_area">
  232. <?php if ($PAGE_TYPE == "HOME") { ?>
  233. <h1><span class="mw-headline"> About KXStudio </span></h1>
  234. <?php } else if ($PAGE_TYPE != "PASTE") { ?>
  235. <h1><span class="mw-headline"> <?php
  236. for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
  237. {
  238. if ($i == 0)
  239. {
  240. if ($PAGE_TYPE == "NONKXSTUDIO")
  241. {
  242. echo $PAGE_SOURCE_2[$i];
  243. continue;
  244. }
  245. echo "KXStudio";
  246. }
  247. echo "&nbsp;: " . $PAGE_SOURCE_2[$i];
  248. }
  249. ?> </span></h1>
  250. <?php } ?>
  251. <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
  252. <p style="color:#fa3a3a;">
  253. NOTE: Parts of this website are currently being rewritten, some links might not work at the moment.
  254. </p>
  255. <?php } ?>
  256. <!-- - - - - - - - Begin Content Area - - - - - - - -->