// Die Funktion zum Bereinigen von Boxnamen für Flipbox/Slide Funktionenfunction stripchar($ord) {
$boxname="";
for ($i=0; $i<strlen($ord);$i++) {
if (($ord[$i] >="A" and $ord[$i] <= "Z") or ($ord[$i] >="a" and $ord[$i] <= "z") ) {
$boxname=$boxname.$ord[$i];
}
}
return $boxname;
}
// Die neue Funktion zum Aufbau des Seitenlayoutsfunction theme_layout() {
require_once('layout.html.php');
}
// Die alte render_header($header=null) Funktionfunction render_header($header_content=null) {
global $theme_width, $settings;
echo "<table class='outer-border' width='".$theme_width."' cellspacing='0' cellpadding='0' align='center'>\n";
echo '<tr><td colspan="2" class="full-header">'.$header_content.'</td></tr>
<tr><td class="white-header">
'.showsublinks("","sublinks_block").'</td><td width="15%" nowrap="nowrap" class="white-header" style="text-align: right; padding-right: 8px;">
'.showsubdate().'</td></tr>
<tr><td colspan="2">';
echo '<table cellpadding="0" cellspacing="0" width="100%">
<tr>';
}
// Die alte render_footer($license=false) Funktionfunction render_footer($license=false) {
global $theme_width,$settings;
echo "\n</tr></table>\n";
echo "<table class='footer' width='100%' cellpadding='1' cellspacing='1'><tr>";
echo "<td align='center'>".stripslashes($settings['footer'])."<br>\n";
echo showcopyright('footerlink','image')." ".showcounter()."<br>Theme based on Everton Duo by <a href='http://www.digital-dominion.co.uk/news.php' class='footerlink' target='_blank'>Nick Jones</a> rebuild by <a href='http://www.bs-f.de' class='footerlink' target='_blank'>V.M.</a><br>";
echo "<br>".SERVER_STATS."</td>";
echo "</tr></table>";
echo "</td></tr>";
echo "</table>\n";
}
// Allgemeine Funktion zum Starten von Tabellenfunction opentable($title) {
echo "<table width='100%' class='border'>
<tr><td class='capmain'>".$title."</td></tr>
<tr><td class='main-body'>\n";
}
// die zur opentable() Funktion gehörende Closefunktionenfunction closetable() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
// Funktionen zum Starten und Beenden von den einzelnen Panels (rechte/linke Panels)function openside($title) {
echo "<div style='width:100%' class='border'>
<div><table width='100%' cellspacing='1' cellpadding='1' class='scapmain'><tr><td>".$title."</td><td width='1%'></td></tr></table></div>
<div class='side-body'>\n";
}
function closeside() {
echo "</div>
</div>\n";
tablebreak();
}
// Wie openside() nur mit slideDown Funktion
function opensidex($title,$state="on") {
global $tpl;
$boxname=stripchar($title);
$tpl->more_css('<style>#box_'.$boxname.' {'.($state=="on" ? '' : 'display:none;').'}</style>','text');
$tpl->more_javascript('
<script>
$(document).ready(function(){
$("#'.$boxname.'").click(function() {
$("#box_'.$boxname.'").slideToggle();
});
});
</script>
','text');
echo "<div style='width:100%' class='border'>
<div id='".$boxname."' style='cursor:pointer;' />
<table width='100%' cellspacing='1' cellpadding='1' class='scapmain'><tr><td>".$title."</td></tr></table></div>
<div class='side-body' id='box_".$boxname."' />\n";
}
function closesidex() {
echo "</div>
</div>\n";
tablebreak();
}
// Neue Funktion zur Anzeige der Adminrechte im UserInfo Panelfunction openlabel($title,$state="on") {
global $tpl;
$boxname=stripchar($title);
$tpl->more_css('<style>#box_'.$boxname.' {'.($state=="on" ? '' : 'display:none;').'}</style>','text');
$tpl->more_javascript('
<script>
$(document).ready(function(){
$("#'.$boxname.'").click(function() {
$("#box_'.$boxname.'").slideToggle();
});
});
</script>
','text');
echo "<div style='width:100%'>
<div id='".$boxname."' style='cursor:pointer;' />
<table width='100%' cellspacing='1' cellpadding='1' class='side-label'><tr><td><img src='".THEMEIMAGE."bullet.gif' alt='' /> ".$title."</td></tr></table></div>
<div id='box_".$boxname."' />\n";
}
function closelabel() {
echo "</div>
</div>\n";
}
// wie opentable() nur mit slideDown Funktion (Einsatz für Mittlere Panels und allgemeiner Content)
function opentablex($title,$state="on") {
global $tpl;
$boxname=stripchar($title);
$tpl->more_css('<style>#box_'.$boxname.' {'.($state=="on" ? '' : 'display:none;').'}</style>','text');
$tpl->more_javascript('
<script>
$(document).ready(function(){
$("#'.$boxname.'").click(function() {
$("#box_'.$boxname.'").slideToggle();
});
});
</script>
','text');
echo "<div style='width:100%' class='border'>
<div id='".$boxname."' style='cursor:pointer;' />
<table width='100%' cellspacing='1' cellpadding='1' class='scapmain'><tr><td>".$title."</td></tr></table></div>
<div class='side-body' id='box_".$boxname."' />\n";
}
function closetablex() {
echo "</div>
</div>\n";
tablebreak();
}
// Abstandshalter von Panelboxen bzw. Panels zum Contentfunction tablebreak() {
echo "<div style='width:100%; height:5px'>\n</div>\n";
}