design.ini
; Kommentare beginnen mit einem Semikolon
; Der Aufbau der Datei ist sehr einfach du gibst einfach den Modulnamen an
; und dann die index Datei relativ zur design.ini also die index Datei die verwendet werden soll muss auch im
; Designordner liegen (kann aber natuerlich in Unterordnern liegen wie z.B. fuer das forum:
; forum = "indexes/forum.htm"
; oder einfach nur:
; forum = "index_forum.htm"
; ausserdem moeglich ist es etwas zu konstruieren wie:
; teams-2 = "index_teams2.htm"
; was also immmer wenn die details des team 2 angezeigt wuerden die index_team2 als design vorlage verwendet
; wenn z.b. teams und teams-2 angegeben ist wird erst geschaut ob geraede teams-2 aufgerufen wird und erst dann
; wenn es sich als falsch rausstellt ob teams aufgerufen wird ...
; dann ist es noch moeglich zu sagen, egal welches team ich anschaue, in den team-details soll immer eine
; andere datei verwendet werden das erreicht man durch:
; teams-* = "index_teamdetails.htm
; jetzt wird also egal ob teams-1 oder teams-2 aufgerufen wird immer die datei index_teamdetails.htm verwendet
; das * steht also fuer beliebigezeichen bis wieder ein bindestrich kommt.
forum = "index_forum.htm"
news = "index_news.htm"
Hier die index.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd">
<html>
<head>
<title>{TITLE}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="include/designs/u-17/style.css">
<link rel="stylesheet" type="text/css" href="include/designs/u-17/aufbau.css">
<link rel="stylesheet" type="text/css" href="include/designs/u-17/stl.css">
<!-- Images Uploader -->
<link href="include/admin/weplay/css/style.css" rel="stylesheet" />
<!-- Images Uploader -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript" src="include/includes/js/jquery.nivo.slider.pack.js"></script>
<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="../lib/jquery.mousewheel-3.0.6.pack.js"></script>
<!-- Add fancyBox main JS and CSS files -->
<script type="text/javascript" src="include/designs/u-17/lightbox/source/jquery.fancybox.js?v=2.1.5"></script>
<link rel="stylesheet" type="text/css" href="include/designs/u-17/lightbox/source/jquery.fancybox.css?v=2.1.5" media="screen" />
<!-- Add Button helper (this is optional) -->
<link rel="stylesheet" type="text/css" href="include/designs/u-17/lightbox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" />
<script type="text/javascript" src="../source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<!-- Add Thumbnail helper (this is optional) -->
<link rel="stylesheet" type="text/css" href="include/designs/u-17/lightbox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" />
<script type="text/javascript" src="../source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>
<!-- Add Media helper (this is optional) -->
<script type="text/javascript" src="include/designs/u-17/lightbox/source/helpers/jquery.fancybox-media.js?v=1.0.6"></script>
<link rel="stylesheet" type="text/css" href="include/includes/css/nivo-slider.css" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
/*
* Simple image gallery. Uses default settings
*/
$('.fancybox').fancybox();
/*
* Different effects
*/
// Change title type, overlay closing speed
$(".fancybox-effects-a").fancybox({
helpers: {
title : {
type : 'outside'
},
overlay : {
speedOut : 0
}
}
});
// Disable opening and closing animations, change title type
$(".fancybox-effects-b").fancybox({
openEffect : 'none',
closeEffect : 'none',
helpers : {
title : {
type : 'over'
}
}
});
// Set custom style, close if clicked, change title type and overlay color
$(".fancybox-effects-c").fancybox({
wrapCSS : 'fancybox-custom',
closeClick : true,
openEffect : 'none',
helpers : {
title : {
type : 'inside'
},
overlay : {
css : {
'background' : 'rgba(238,238,238,0.85)'
}
}
}
});
// Remove padding, set opening and closing animations, close if clicked and disable overlay
$(".fancybox-effects-d").fancybox({
padding: 0,
openEffect : 'elastic',
openSpeed : 150,
closeEffect : 'elastic',
closeSpeed : 150,
closeClick : true,
helpers : {
overlay : null
}
});
/*
* Button helper. Disable animations, hide close button, change title type and content
*/
$('.fancybox-buttons').fancybox({
openEffect : 'none',
closeEffect : 'none',
prevEffect : 'none',
nextEffect : 'none',
closeBtn : false,
helpers : {
title : {
type : 'inside'
},
buttons : {}
},
afterLoad : function() {
this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
}
});
/*
* Thumbnail helper. Disable animations, hide close button, arrows and slide to next gallery item if clicked
*/
$('.fancybox-thumbs').fancybox({
prevEffect : 'none',
nextEffect : 'none',
closeBtn : false,
arrows : false,
nextClick : true,
helpers : {
thumbs : {
width : 50,
height : 50
}
}
});
/*
* Media helper. Group items, disable animations, hide arrows, enable media and button helpers.
*/
$('.fancybox-media')
.attr('rel', 'media-gallery')
.fancybox({
openEffect : 'none',
closeEffect : 'none',
prevEffect : 'none',
nextEffect : 'none',
arrows : false,
helpers : {
media : {},
buttons : {}
}
});
/*
* Open manually
*/
$("#fancybox-manual-a").click(function() {
$.fancybox.open('1_b.jpg');
});
$("#fancybox-manual-b").click(function() {
$.fancybox.open({
href : 'iframe.html',
type : 'iframe',
padding : 5
});
});
$("#fancybox-manual-c").click(function() {
$.fancybox.open([
{
href : '1_b.jpg',
title : 'My title'
}, {
href : '2_b.jpg',
title : '2nd title'
}, {
href : '3_b.jpg'
}
], {
helpers : {
thumbs : {
width: 75,
height: 50
}
}
});
});
});
</script>
<style>
div#page {
}
.back-to-top {
position: fixed;
bottom: 2em;
right: 0px;
text-decoration: none;
color: #000000;
font-size: 12px;
padding: 1em;
display: none;
}
.back-to-top:hover {
}
</style>
</head>
<body>
<!--HEADBAR -->
<div id="headbar">
<div id="headbarcon">
<div id="headbarlinks"><a href="http://svwilhelmshaven.de/" target="_blank">
<img width="122" height="30" border="0" onmouseout="this.src='/include/designs/u-17/images/button/headbar/button1.png'" onmouseover="this.src='/include/designs/u-17/images/button/headbar/button1-hover.png'" src="/include/designs/u-17/images/button/headbar/button1.png"></a><a href="http://www.youtube.com/channel/UCO9RgZqlrLlKMNQuGNXwkyg?feature=watch" target="_blank"><img width="64" height="30" border="0" onmouseout="this.src='/include/designs/u-17/images/button/headbar/button2.png'" onmouseover="this.src='/include/designs/u-17/images/button/headbar/button2-hover.png'" src="/include/designs/u-17/images/button/headbar/button2.png"></a></div>
<div id="headbarplatzhalter"></div>
</div>
</div>
<!--HEADBAR ENDE -->
<!-- HOMEPAGE -->
<div id="wrap">
<div id="header"></div>
<div id="menubar">{_boxes_u-17-hmenu}</div>
<div id="content">
<div id="con-left">
<div id="sliderbg">
<div class="headueberschrift">Presse NEWS</div>
<div id="sliderbox">{_boxes_pa_nivoslider}</div>
</div>
<div id="sliderbgklein">
<div class="headueberschrift">Portraits SVW-U-17 Saison 2013/2014</div>
<div id="sliderboxklein">{_boxes_u-17-kader}</div>
</div>
<div id="conhead" class="conhead" >Informations Panel</div>
<div id="con">{EXPLODE}</div>
<div id="confoot"></div>
<div id="sliderbgklein2">
<div class="headueberschrift">Videos / Interviews</div>
<div id="sliderboxklein2">{_boxes_u-17-youtube}</div>
</div>
</div>
<div id="con-right">
<div id="menuheader" class="headueberschrift">Termine & Events</div>
<div id="menumiddle" style="height:261px;">{_boxes_u-17-termin}</div>
<div id="menufooter"></div>
<div id="box_rechts_umriss">
{_list_menunr1@
<div id="menuheader" class="headueberschrift">%1</div>
<div id="menumiddle">%2</div>
<div id="menufooter"></div>
}
</div>
</div>
</div>
<div id="platzhalter"></div>
</div>
<!-- HOMEPAGE ENDE -->
<div id="footerbar">
<div id="footer">
<div id="fmenu">{_boxes_u-17-fmenu}</div>
<div id="findus">{_boxes_u-17-findus}</div>
<div id="newsletter">{_boxes_newsletter}</div>
<div id="copyright" class="designfontsmall">
© Copyright by: <a href="http://whv-kicker.de/" target="_blank">www.whv-kicker.de</a> | Design by: <a href="https://www.facebook.com/andreas.risse2" target="_blank">Andreas Risse</a> | Code by: <a href="https://www.lastchaos-arts.de" target="_blank">www.LastChaos-Arts.de</a> | Script by: <a href="http://www.ilch.de" target="_blank">ilch</a></div>
</div> <a href="#" class="back-to-top"><img src="include/designs/u-17/images/up.png" width="50" height="50" border="0" /></a>
<script>
jQuery(document).ready(function() {
var offset = 220;
var duration = 500;
jQuery(window).scroll(function() {
if (jQuery(this).scrollTop() > offset) {
jQuery('.back-to-top').fadeIn(duration);
} else {
jQuery('.back-to-top').fadeOut(duration);
}
});
jQuery('.back-to-top').click(function(event) {
event.preventDefault();
jQuery('html, body').animate({scrollTop: 0}, duration);
return false;
})
});
</script>
</div>
<div class="right-01">
<a href="index.php?contact"><img width="40" height="178" src="include/designs/u-17/images/bewerben.png" /></a>
</div>
<div class="right-02">
<a href="http://www.pro-fsj.de/" target="_blank"><img width="125" height="96" src="include/designs/u-17/images/fsj.png" /></a>
</div>
<div class="right-03">
<a href="http://www.linda.de/" target="_blank"><img width="125" height="96" src="include/designs/u-17/images/linda.png" /></a>
</div>
<div class="right-04">
<a href="http://lastchaos-arts.de" target="_blank"><img src="http://lastchaos-arts.de/include/images/linkus/lca.png" border="0" ></a>
</div>
</body>
</html>
<!--
{_list_DDDmenupoint@
<strong><big>·</big></strong>
<a %1 class="box" href="%2">%3</a>
<br />
}
//-->
<!-- beispiel:
[null, '%3', '%2', '%1', null|],|,
-->
<!-- anfang + link |ende |teilende|teilee -->
<!-- horizontaler menupunkt -->
{_list_hmenupoint@<li><a target="%1" class="box" href="%2">%3</a>|</li>|<br />|</ul></li>}
<!-- horizontaler menupunkt anfang -->
{_list_hmenubegi@<ul>}
<!-- horizontaler menupunkt ende -->
{_list_hmenuende@</ul>}
<!-- vertikaler menupunkt -->
{_list_vmenupoint@<li><a target="%1" class="box" href="%2">%3</a>|</li>|<br /><ul>|</ul></li>}
<!-- vertikaler menupunkt anfang -->
{_list_vmenubegi@<ul>}
<!-- vertikaler menupunkt ende -->
{_list_vmenuende@</ul>}
Und hier die index.php (steht im Hauptverzeichnis)
<?php
# Copyright by: Manuel
# Support: www.ilch.de
define ( 'main' , TRUE );
session_name ('sid');
session_start ();
require_once ('include/includes/config.php');
require_once ('include/includes/loader.php');
db_connect();
$allgAr = getAllgAr ();
$menu = new menu();
user_identification();
site_statistic();
require_once ('include/contents/'.$menu->get_url());
db_close();
if (FALSE) { //debugging aktivieren
debug('anzahl sql querys: '.$count_query_xyzXYZ);
debug('',1,true);
}
?>
Zuletzt modifiziert von CaptainJack am 23.03.2014 - 23:10:53