Browse Source

Start the rework

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 9 months ago
parent
commit
c5197a86b5
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 51 additions and 125 deletions
  1. +9
    -9
      .htaccess
  2. +25
    -26
      css-white/reset.css
  3. +16
    -23
      inc_footer.php
  4. +1
    -67
      inc_header.php

+ 9
- 9
.htaccess View File

@@ -1,12 +1,12 @@
Options -Indexes

# RewriteEngine On
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_FILENAME}\.php -f
# RewriteRule ^(.*)$ $1.php [L,QSA]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [L,QSA]

Redirect 301 /news https://distrho.sourceforge.io/news.php
Redirect 301 /plugins https://distrho.sourceforge.io/plugins.php
Redirect 301 /ports https://distrho.sourceforge.io/ports.php
Redirect 301 /about https://distrho.sourceforge.io/about.php
# Redirect 301 /news https://distrho.sourceforge.io/news.php
# Redirect 301 /plugins https://distrho.sourceforge.io/plugins.php
# Redirect 301 /ports https://distrho.sourceforge.io/ports.php
# Redirect 301 /about https://distrho.sourceforge.io/about.php

+ 25
- 26
css-white/reset.css View File

@@ -1,47 +1,46 @@
a, abbr, acronym, address, applet, article, aside, audio,
b, blockquote, big, body,
center, canvas, caption, cite, code, command,
datalist, dd, del, details, dfn, dl, div, dt,
datalist, dd, del, details, dfn, dl, div, dt,
em, embed,
fieldset, figcaption, figure, font, footer, form,
fieldset, figcaption, figure, font, footer, form,
h1, h2, h3, h4, h5, h6, header, hgroup, html,
i, iframe, img, ins,
kbd,
kbd,
keygen,
label, legend, li,
label, legend, li,
meter,
nav,
object, ol, output,
p, pre, progress,
q,
q,
s, samp, section, small, span, source, strike, strong, sub, sup,
table, tbody, tfoot, thead, th, tr, tdvideo, tt,
u, ul,
var{
background: transparent;
border: 0 none;
font-size: 100%;
margin: 0;
padding: 0;
border: 0;
outline: 0;
vertical-align: top;
u, ul,
var {
background:transparent;
border:0 none;
font-size:100%;
margin:0;
padding:0;
border:0;
outline:0;
vertical-align:top;
}
ol, ul {
list-style: none;
list-style:none;
}
blockquote, q {
quotes: none;
quotes:none;
}
table, table td {
padding:0;
border:none;
border-collapse:collapse;
table, table td {
padding:0;
border:none;
border-collapse:collapse;
}
img {
vertical-align:top;
vertical-align:top;
}
embed {
vertical-align:top;
}
embed {
vertical-align:top;
}

+ 16
- 23
inc_footer.php View File

@@ -1,28 +1,21 @@
<footer>
<div class="container">
<div class="wrapper">
<div style="position:relative; top: 0px;left: 0px;">
<form class="formleftside" action="<?php echo $_server["script_name"]; ?>" method="post">
<input type="submit" name="changeColorNow" value="Switch Color Theme"/>
</form>
</div>
<div>
<p style="font-size: 90%;">
&#0169;
2012-2018 DISTRHO
&nbsp; &nbsp;
<span style="float:right;">
Sponsored by
<a href="https://kxstudio.linuxaudio.org" target="_blank">KXStudio</a>
&nbsp; &nbsp;|&nbsp; &nbsp;
All the plugins and Linux ports here are free, please consider a
<a href="https://kxstudio.linuxaudio.org/Donations" target="_blank">donation</a>
if possible.
</span>
</p>
</div>
<div class="container">
<div class="wrapper">
<p>
&#0169;
2012-2021 DISTRHO
&nbsp; &nbsp;
<span style="float:right;">
Hosted and maintained by
<a href="https://kx.studio/" target="_blank">KXStudio</a>
&nbsp; &nbsp;|&nbsp; &nbsp;
All the plugins and Linux/LV2 ports here are free and open-source, please consider a
<a href="https://kx.studio/Donations" target="_blank">donation</a>
if possible.
</span>
</p>
</div>
</div>
</div>
</footer>
</body>
</html>

+ 1
- 67
inc_header.php View File

@@ -1,19 +1,5 @@
<?php

function changeColor() {
if ($GLOBALS["THEME"] == "white") {
$GLOBALS["THEME"] = "black";
} else {
$GLOBALS["THEME"] = "white";
}

setcookie("color-theme", $GLOBALS["THEME"], time() + (365 * 24 * 60 * 60)); // expires in 1 year

// force page reload
header("location: " . $_server["script_name"]);
exit();
}

if (file_exists("/home/falktx/Personal/FOSS/")) {
$ROOT = "/distrho";
} else {
@@ -26,10 +12,6 @@ if (isset($_COOKIE["color-theme"])) {
$GLOBALS["THEME"] = "white";
}

if (isset($_POST["changeColorNow"])) {
changeColor();
}

$VERSION_DPF = "v1.1";
$VERSION_PORTS = "2018-04-16";

@@ -47,55 +29,7 @@ $URL_PORTS = "https://github.com/DISTRHO/DISTRHO-Ports/releases/download/" . $VE
<?php if ($CURRENT_PAGE == "index") { ?>
<link rel="stylesheet" href="<?php echo $ROOT; ?>/css-<?php echo $GLOBALS["THEME"]; ?>/style-mini-news.css" type="text/css" media="all">
<?php } ?>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Raleway:200,300' type='text/css' media="all">
<script type="text/javascript" src="<?php echo $ROOT; ?>/js/jquery-1.4.2.min.js" ></script>
<?php if ($CURRENT_PAGE == "index") { ?>
<script type="text/javascript" src="<?php echo $ROOT; ?>/js/roundabout.js"></script>
<script type="text/javascript" src="<?php echo $ROOT; ?>/js/roundabout_shapes.js"></script>
<script type="text/javascript" src="<?php echo $ROOT; ?>/js/gallery_init.js"></script>
<script type="text/javascript" src="<?php echo $ROOT; ?>/js/responsiveslides.min.js"></script>
<?php } else if ($CURRENT_PAGE == "plugins" || $CURRENT_PAGE == "ports") { ?>
<script type="text/javascript" src="<?php echo $ROOT; ?>/js/prototype.js"></script>
<script type="text/javascript" src="<?php echo $ROOT; ?>/js/lightbox.js"></script>
<script type="text/javascript" src="<?php echo $ROOT; ?>/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript">
<?php
if ($CURRENT_PAGE == "plugins") {
$menuClasses = array("miniseries", "nekobi", "kars", "glbars", "prom");
} else if ($CURRENT_PAGE == "ports") {
$menuClasses = array("arctican", "dexed", "drowaudio", "easyssp", "juceopl", "juced", "klangfalter",
"lufsmeter", "luftikus", "mverb", "ndc", "obxd", "pitcheddelay", "refine", "tal",
"stereosourceseparator", "vex", "wolpertinger");
} else {
$menuClasses = array();
}
?>
jQuery(document).ready(function() {
<?php for ($i = 0; $i < count($menuClasses); $i++) { ?>
jQuery('img.menu_class_<?php echo $menuClasses[$i]; ?>').click(function() {
jQuery('ul.the_menu_<?php echo $menuClasses[$i]; ?>').slideToggle('fast');
});
<?php } ?>
});
</script>
<?php } ?>
<script type="text/javascript">
$(function() {
// Slideshow 1
$(".rslides").responsiveSlides({
nav: false,
pager: true,
namespace: "centered-btns"
});
});
</script>
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php echo $ROOT; ?>/css/ie/ie6.css" type="text/css" media="all">
<![endif]-->
<!--[if lt IE 9]>
<script type="text/javascript" src="<?php echo $ROOT; ?>/js/html5.js"></script>
<script type="text/javascript" src="<?php echo $ROOT; ?>/js/IE9.js"></script>
<![endif]-->
<link rel='stylesheet' href='<?php echo $ROOT; ?>/fonts/fonts.css' type='text/css' media="all">
</head>
<body>
<header>


Loading…
Cancel
Save