#wrapper {
margin: 0 auto 100px auto;
}
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<?php mosShowHead(); ?>
<?php
$templatewidth ="980";
if ( $my->id ) { initEditor(); }
// calculation for midsectright
if ( mosCountModules('left')) {
$midsect_mid = $templatewidth - 420;
}
if ( mosCountModules('right')) {
$midsect_mid = $templatewidth - 420;
}
if ( mosCountModules('left') && mosCountModules('right')) {
$midsect_mid = $templatewidth - 620;
}
if ( mosCountModules('left') + mosCountModules('right')==0) {
$midsect_mid = $templatewidth - 210;
}
// 4 top mod width calculation
if (mosCountModules('user11') || mosCountModules('user12') || mosCountModules('user13') || mosCountModules('user14')) {
$topsecmodwidth = "100%";
}
if (mosCountModules('user11') && mosCountModules('user12') && mosCountModules('user13') && mosCountModules('user14')) {
$topsecmodwidth = "25%";
}
if (mosCountModules('user11') + mosCountModules('user12') + mosCountModules('user13') + mosCountModules('user14')==3) {
$topsecmodwidth = "33%";
}
if (mosCountModules('user11') + mosCountModules('user12') + mosCountModules('user13') + mosCountModules('user14')==2) {
$topsecmodwidth = "50%";
}
?>
<link rel="stylesheet" href="templates/natura_plazza/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="templates/natura_plazza/css/sfish.css" type="text/css" />
<script language="javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $cur_template; ?>/lib/js/mootools/mootools.js" type="text/javascript"></script>
</head>
<body class="bodies">
<div id="bottom">
<div id="wrapper" align="center" >
<div id="pagewrapper" style="width:<?php echo $templatewidth; ?>px;">
<div id="pagewrapper_inner_left">
<div id="pagewrapper_inner_right">
<div id="bodywrapper">
<div id="bodywrapper_inner">
<?php if (mosCountModules('left1')) { ?>
<div id="midsect_right1">
<?php mosLoadModules ( 'left1',-2 ); ?>
</div>
<?php } ?>
<div id="logo">
<a href="<?php echo $mosConfig_live_site;?>">
<img src="templates/natura_plazza/images/spacer.gif" border="0" width="350" height="56" alt="Logo" />
</a>
</div>
<div id="xtd_menu"><?php mosLoadModules ( 'user8',-2 ); ?></div>
<div style="clear:both; line-height:1px;"> </div>
<?php if (mosCountModules('user5')) { ?>
<div id="slideshow" align="center">
<?php mosLoadModules( 'user5', -2 ); ?>
</div> <!-- end slideshow -->
<div style="clear:both; line-height:1px;"> </div>
<?php } ?>
<!-- start 4 top module -->
<?php if(mosCountModules('user11') || mosCountModules('user12') || mosCountModules('user13') || mosCountModules('user14')) { ?>
<div>
<div id="topmodsection">
<div id="topmodsection_inner">
<div class="topmodsection_inner_c">
<?php if (mosCountModules('user11')) { ?>
<div id="topmodsection_1" style="width:<?php echo $topsecmodwidth; ?>">
<?php mosLoadModules ( 'user11',-2 ); ?></div>
<?php } ?>
<?php if (mosCountModules('user12')) { ?>
<div id="topmodsection_2" style="width:<?php echo $topsecmodwidth; ?>">
<?php mosLoadModules ( 'user12',-2 ); ?></div>
<?php } ?>
<?php if (mosCountModules('user13')) { ?>
<div id="topmodsection_3" style="width:<?php echo $topsecmodwidth; ?>">
<?php mosLoadModules ( 'user13',-2 ); ?></div>
<?php } ?>
<?php if (mosCountModules('user14')) { ?>
<div id="topmodsection_4" style="width:<?php echo $topsecmodwidth; ?>">
<?php mosLoadModules ( 'user14',-2 ); ?></div>
<?php } ?>
<div style="clear:both; line-height:1px;"> </div>
</div>
</div>
</div>
</div>
<?php } ?>
<!-- start body section -->
<div id="midsect" align="center">
<?php if (mosCountModules('left')) { ?>
<div id="midsect_left">
<?php mosLoadModules ( 'left',-2 ); ?>
</div>
<?php } ?>
<div id="midsect_mid" style="width:<?php echo $midsect_mid; ?>px;">
<?php mosMainBody(); ?>
</div>
<?php if (mosCountModules('right')) { ?>
<div id="midsect_right">
<?php mosLoadModules ( 'right',-2 ); ?>
</div>
<?php } ?>
<div style="clear:both;"></div>
</div><!-- end midsect -->
<div style="clear:both; line-height:1px;"> </div>
</div><!-- end bodywrapper_inner -->
<div id="footer_wrapper">
<!-- <div id="footer_left"><?php include_once('includes/footer.php'); ?></div>
<?php if (mosCountModules('user3')) { ?>
<div id="footer_right"><?php mosLoadModules ( 'user3',-2 ); ?></div>
<?php } ?> >-->
<div style="clear:both;"></div>
</div>
</div><!-- end bodywrapper -->
</div><!-- end pagewrapper_inner_right -->
</div><!-- end pagewrapper_inner_left -->
</div> <!-- end pagewrapper -->
</div> <!-- end wrapper -->
<br />
<?php if (mosCountModules('verybottom')) { ?>
<div id="verybottom">
<?php mosLoadModules ( 'verybottom',-2 ); ?>
</div>
<?php } ?>
</script>
</body>
</html>
.bodies {
font-weight:normal;
font-family: arial,Verdana,tahoma;
color:#666;
background: url(../images/bg_all.gif) repeat-x #FFFFFF;
}
#wrapper {
margin:0 auto 100px auto;
}
#pagewrapper {
background:url(../images/bg_repeatx.jpg) repeat-x;
}
#pagewrapper_inner_left {
background:url(../images/bg_norepeat_left.jpg) no-repeat top left;
}
#pagewrapper_inner_right {
background:url(../images/bg_norepeat_right.jpg) no-repeat top right;
}
#bodywrapper {
margin:0 100px 0 100px;
padding-top:72px;
height:100%;
/* border:1px solid #333333;*/
}
#logo {
text-align:left;}
#xtd_menu {
margin-left:20px;
}
#slideshow {
margin-top:10px;
margin-left:0px!important;
margin-left:10px;
}
#midsect {
margin-top:10px;
margin-left:10px;}
#midsect_left {
width:190px;
margin-right:10px;
float:left;}
#midsect_right div.moduletable h3,
#midsect_left div.moduletable h3 {
margin-bottom:5px;
padding-left:25px;
font-weight:bold;
line-height:34px;
background:url(../images/star.gif) no-repeat;
width:170px;}
#midsect_right div.moduletable,
#midsect_left div.moduletable {
margin-bottom:5px;
}
#midsect_mid {
float:left;
text-align:left;
}
#midsect_right {
width:190px;
float:left;
margin-left:10px;}
/* setting for 4 top medule */
#topmodsection {
background: url(../images/bggreenshad.gif) repeat-x top left #599534;
width:760px;
margin-top:10px;
}
#topmodsection a { color:#FBFBB4;}
#topmodsection a:hover { color:#FFFFFF;}
#topmodsection_inner {}
.topmodsection_inner_c{}
#topmodsection_1 {
float:left;
}
#topmodsection_2 {
float:left;}
#topmodsection_3 {
float:left;}
#topmodsection_4 {
float:left;}
#topmodsection div.moduletable h3 {
font-size:12px;
font-family:"Lucida Sans", Arial, Verdana;
text-transform:uppercase;
font-weight:bold;
color:#fff;
margin-bottom:7px;
padding-left:25px;
line-height:20px;
background:url(../images/leaf.gif) no-repeat top left;
}
#topmodsection div.moduletable,
#topmodsection div.moduletable p,
#topmodsection div.moduletable td {
color:#FFFFFF;
padding:10px;
font-size:11px;
margin-bottom:0;
}
/*setting for footer */
#footer_wrapper {
margin-top:10px;
padding:10px;
}
#footer_left {
width:300px;
float:left;}
#footer_left div {
text-align:left;
font-size:10px;
color:#666;}
#footer_left div a {
color:#666;}
#footer_right {
width:450px;
float:right;
padding-top:5px;}
#midsect_right1 {
float:left;
margin-left:10px;
width:290px;
margin-top:-25px;
margin-Left:65px;
}
#verybottom {
background:url(../images/grass.png) repeat-x;
height:84px;
text-align:center;
float:center;
}
#bottom {
background: url(../images/grass.jpg) repeat-x center bottom;
height:100%;
}
Time to create page: 0.070 seconds