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.

header.php 12KB

6 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <?php
  2. $SHOW_NOTE = FALSE;
  3. $ROOT = "";
  4. if (file_exists("/home/falktx/.jackdrc") || file_exists("/home/daeavelwyn/public_html/kxstudio/"))
  5. {
  6. $ROOT = "/kxstudio";
  7. $SHOW_NOTE = FALSE;
  8. }
  9. if (false && $PAGE_TYPE != "PASTE" && $PAGE_TYPE != "DONATIONS" && $PAGE_TYPE != "NAMESPACE") {
  10. require "donate/config.php";
  11. require "donate/connect.php";
  12. $cur_amount = 0.0;
  13. $cur_percent = 0.0;
  14. if ($db_link) {
  15. $sql_donations = mysqli_query($db_link, "SELECT * FROM donations WHERE MONTH(dt) = MONTH(NOW()) AND YEAR(dt) = YEAR(NOW())");
  16. if (mysqli_num_rows($sql_donations)) {
  17. while ($sql_row = mysqli_fetch_assoc($sql_donations)) {
  18. $cur_amount += $sql_row["amount"];
  19. }
  20. }
  21. $cur_percent = $cur_amount / 500.0 * 100.0;
  22. $cur_amount = intval($cur_amount);
  23. if ($cur_percent > 100.0) {
  24. $cur_percent = 100.0;
  25. }
  26. }
  27. }
  28. ?>
  29. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  30. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  31. <head>
  32. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  33. <!--[if lt IE 7]>
  34. <meta http-equiv="imagetoolbar" content="no" />
  35. <![endif]-->
  36. <title><?php echo $PAGE_TITLE; ?></title>
  37. <link rel="copyright" href="https://creativecommons.org/publicdomain/zero/1.0/" />
  38. <link rel="stylesheet" href="/css/style.fluid.css" type="text/css" media="screen" />
  39. <link rel="stylesheet" href="/css/style.css" type="text/css" media="screen" />
  40. <link rel="icon" type="image/png" href="/images/ico_kxstudio.png" />
  41. <link rel="shortcut icon" href="/favicon.ico" />
  42. <?php if (false && $PAGE_TYPE == "DONATIONS") { ?>
  43. <style type="text/css">
  44. html > body .liberapay-btn {
  45. background-color: #f6c915;
  46. border-radius: 4px;
  47. color: #1a171b;
  48. display: inline-block;
  49. font-family: Helvetica Neue, Helvetica, sans-serif;
  50. font-size: 14px;
  51. font-weight: 700;
  52. line-height: 22px;
  53. padding: 5px 7px 3px;
  54. position: relative;
  55. text-decoration: none;
  56. }
  57. html > body .liberapay-btn:hover {
  58. background-color: #fbce1a;
  59. color: #444;
  60. }
  61. .liberapay-btn > svg {
  62. position: absolute;
  63. left: 7px;
  64. top: 7px;
  65. }
  66. .liberapay-btn > span {
  67. margin-left: 19px;
  68. }
  69. </style>
  70. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  71. <link rel="stylesheet" href="/paste/kxstudio.css" type="text/css" media="screen" />
  72. <!-- Special Paste CSS -->
  73. <style type="text/css">
  74. html, body {
  75. color: white;
  76. }
  77. .paste_textarea_border {
  78. height: 300px;
  79. border: 1px solid gray;
  80. }
  81. <?php if ($show_paste) { ?>
  82. div .paste_canvas_area {
  83. font-family: monospace;
  84. }
  85. <?php } ?>
  86. <?php if ($show_numbers) { ?>
  87. div .paste_canvas_area {
  88. padding-left: 10px;
  89. }
  90. <?php } ?>
  91. textarea {
  92. width: 100%;
  93. height: 100%;
  94. margin: 0;
  95. padding: 0;
  96. border-width: 0;
  97. resize: none;
  98. }
  99. </style>
  100. <?php } else if ($PAGE_TYPE == "REPOSITORY_PACKAGES") { ?>
  101. <!-- Special Repository Packages CSS -->
  102. <style type="text/css">
  103. .repository-package-list {
  104. display: flex;
  105. flex-direction: row;
  106. flex-wrap: wrap;
  107. }
  108. .repository-package {
  109. display: flex;
  110. flex-direction: row;
  111. margin: 15px;
  112. width: 485px;
  113. /* max-width: calc(92% / 3 - 32px); */
  114. }
  115. .repository-package > div:first-child {
  116. padding-top: calc(0.5em + 0.5px);
  117. }
  118. tr {
  119. vertical-align: top;
  120. }
  121. tr > td:first-child {
  122. font-weight: lighter;
  123. white-space: nowrap;
  124. }
  125. tbody > tr:first-child > td:last-child {
  126. font-weight: bold;
  127. }
  128. .img_clickable:hover {
  129. cursor: pointer;
  130. }
  131. .img_clickable:active > .img_clickable_overlay {
  132. display: block;
  133. }
  134. .img_clickable_overlay {
  135. position: fixed;
  136. top: 0px;
  137. left: 0px;
  138. width: 100%;
  139. min-height: 100%;
  140. background-color: black;
  141. background-color: rgba(11, 11, 11, 0.75);
  142. z-index: 1;
  143. display: none;
  144. }
  145. .img_clickable_overlay:active {
  146. display: none !important;
  147. }
  148. .img_clickable_overlay:hover {
  149. cursor: initial;
  150. display: block;
  151. }
  152. .img_clickable_overlay > img {
  153. /*
  154. display: block;
  155. margin: 0 auto;
  156. */
  157. margin: auto;
  158. position: absolute;
  159. top: 0;
  160. bottom: 0;
  161. left: 0;
  162. right: 0;
  163. max-width: 100%;
  164. max-height: 100%;
  165. }
  166. </style>
  167. <?php } ?>
  168. </head>
  169. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid">
  170. <!-- Top link -->
  171. <a name="Top" id="Top"></a>
  172. <!-- Start: Header -->
  173. <div id="header">
  174. <div id="header-content" class="container_12">
  175. <a id="header-logo" href="/">
  176. <img src="/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
  177. </a>
  178. <a id="header-home" href="/">Home</a>
  179. <ul id="global-navigation">
  180. <li id="item-news"><a href="/News">News</a></li>
  181. <li id="item-soft" class="item-menu">
  182. <a href="/Applications">Software &#9660;</a>
  183. <div class="item-menu-children">
  184. <p><a href="/Applications"><img src="/images/ico_cadence.png" alt=""/> &nbsp; Applications</a></p>
  185. <p><a href="/Plugins"><img src="/images/ico_distrho.png" alt=""/> &nbsp; Plugins</a></p>
  186. </div>
  187. </li>
  188. <li id="item-repos" class="item-menu">
  189. <a href="/Repositories">Repositories &#9660;</a>
  190. <div class="item-menu-children">
  191. <p><a href="/Repositories">About / How-to</a></p>
  192. <p><a href="/Repositories:Applications">Applications (in Repo)</a></p>
  193. <p><a href="/Repositories:Plugins">Plugins (in Repo)</a></p>
  194. <p><a href="/Repositories:FAQ">FAQ</a></p>
  195. </div>
  196. </li>
  197. <li id="item-community" class="item-menu">
  198. <a href="/Documentation">Community &#9660;</a>
  199. <div class="item-menu-children">
  200. <p>
  201. <a href="https://webchat.freenode.net/?channels=#kxstudio,#opensourcemusicians" class="external" rel="nofollow" target="_blank">
  202. <img src="/images/ico_chat.png" width="16px" height="16px" alt=""/> &nbsp; IRC Channel
  203. </a>
  204. </p>
  205. <p>
  206. <a href="https://chat.kx.studio/" class="external" rel="nofollow" target="_blank">
  207. <img src="/images/ico_rocketchat.png" width="16px" height="16px" alt=""/> &nbsp; Rocket Chat
  208. </a>
  209. </p>
  210. <p>
  211. <a href="https://soundcloud.com/search/sounds?q=kxstudio" class="external" rel="nofollow" target="_blank">
  212. <img src="/images/ico_soundcloud.png" width="16px" height="16px" alt=""/> &nbsp; Songs
  213. </a>
  214. </p>
  215. </div>
  216. </li>
  217. <li id="item-documentation"><a href="/Documentation">Documentation</a></li>
  218. <li id="item-donate"><a href="/Donations">Donations</a></li>
  219. <li id="item-downloads"><a href="/Downloads">Downloads</a></li>
  220. <li id="item-paste"><a href="/Paste">Paste</a></li>
  221. </ul>
  222. </div>
  223. </div>
  224. <!-- End: Header -->
  225. <?php if (false && $PAGE_TYPE != "DONATIONS" && $db_link) { ?>
  226. <div id="donations_container" style="position:absolute; top:40px; right:5%; width: 250px; height: 10px; font-size: 0.8em;">
  227. <div id="donations_bar"><div style="width:<?php print_r($cur_percent); ?>%"></div></div>
  228. </div>
  229. <div style="position:absolute; top:44px; right:5%; width: 270px; height: 10px; font-size: 0.8em; text-align: center;">
  230. This month donations: <?php print_r($cur_amount); ?> / 500 &euro;
  231. </div>
  232. <?php } ?>
  233. <div id="subheader" class="container_16">
  234. <div id="breadcrump" class="grid_12 alpha">
  235. <a href="/" title="Home"><img src="/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
  236. <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
  237. &gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
  238. <?php } ?>
  239. </div>
  240. </div>
  241. <!-- Start: Main Content Area -->
  242. <div id="content" class="container_16 content-wrapper">
  243. <div id="some-content" class="box box-shadow grid_77 clearfix">
  244. <!-- Start: Box header -->
  245. <div class="box-header header-tabs">
  246. <ul>
  247. <li><a href="#Top">Top</a></li>
  248. <?php if ($PAGE_TYPE == "APPLICATION") { ?>
  249. <li><a href="#Interface">Interface</a></li>
  250. <li><a href="#Usage">Usage</a></li>
  251. <li><a href="#Download">Download</a></li>
  252. <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
  253. <li><a href="#Interface">Interface</a></li>
  254. <li><a href="#Download">Download</a></li>
  255. <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
  256. <li><a href="#Binaries">Binaries</a></li>
  257. <li><a href="#SourceCode">Source Code</a></li>
  258. <li><a href="#Artwork">Artwork</a></li>
  259. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  260. <li><a href="/Paste" title="Create new paste">New Paste</a></li>
  261. <?php if ($show_paste && ! $is_error) { ?>
  262. <li><a href="/Paste/raw/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
  263. <li><a href="/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
  264. <?php } ?>
  265. <?php } ?>
  266. </ul>
  267. </div>
  268. <div id="contentSub"></div>
  269. <!-- End: Box header -->
  270. <div class="alpha omega paste_canvas_area">
  271. <?php if ($PAGE_TYPE == "HOME") { ?>
  272. <h1><span class="mw-headline"> About KXStudio </span></h1>
  273. <?php } else if ($PAGE_TYPE == "NEWS") { ?>
  274. <div style="float: right; padding-right: 16px;">
  275. <a href="/News/?action=feed"><img src="images/rss.png" alt="RSS"/></a>
  276. </div>
  277. <h1 style="margin-top: 0px"><span class="mw-headline"> KXStudio&nbsp;: News </span></h1>
  278. <?php } else if ($PAGE_TYPE != "PASTE") { ?>
  279. <h1><span class="mw-headline"> <?php
  280. for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
  281. {
  282. if ($i == 0)
  283. {
  284. if ($PAGE_TYPE == "NONKXSTUDIO")
  285. {
  286. echo $PAGE_SOURCE_2[$i];
  287. continue;
  288. }
  289. echo "KXStudio";
  290. }
  291. echo "&nbsp;: " . $PAGE_SOURCE_2[$i];
  292. }
  293. ?> </span></h1>
  294. <?php } ?>
  295. <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
  296. <p style="color:#fa3a3a;">
  297. NOTE: The KXStudio project is currently on a break, regular development is expected to return later in 2019.
  298. Thanks for understanding.
  299. </p>
  300. <?php } ?>
  301. <!-- - - - - - - - Begin Content Area - - - - - - - -->