1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
| <?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(); ?>
<!-- ici -->
<script>
var width_a = screen.width;
</script>
<?
$width_a = "<script>document.write(width_a);</script>";
if ($width_a == 1280) {
$templatewidth = '1280';
echo 'resolution 1280';
}else{
echo 'inconnu';
}
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" />
</head>
<body class="bodies">
<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">
<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 />
<script type="text/javascript">
if(typeof sIFR == "function"){
sIFR.replaceElement("#midsect_left div.moduletable h3, #midsect_right div.moduletable h3", named(
{sFlashSrc: "mambots/system/goodfoot.swf", sColor: "#000000", sWmode: "transparent"}
));
}
</script>
</body>
</html> |
Partager