PDA

Zobacz pełną wersję : Edycja szablonu (right module)



grzyb123
15-09-2007, 12:02
Nie jestem dobry w edycji szablonów i mam pytanie w którym miejscu mam umieści wpis "<?php mosLoadModules( 'right' ); ?>" w index.php aby otrzymać drugie menu po prawej stronie np. na sondy. i jak ustawić jego wymiary.

Bardzo proszę o pomoc!!!

Oto plik index.php:

<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<!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 if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<?php mosShowHead(); ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ; ?>
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- edit -->
<table width="775" height="457" border="0" align="center" cellpadding="0" cellspacing="0" id="Tabela_01">
<tr>
<td colspan="4" rowspan="3">
<img src="templates/wds_carbon/images/carbon_01.png" width="296" height="126" alt=""></td>
<td colspan="5">
<img src="templates/wds_carbon/images/carbon_02.gif" width="479" height="58" alt=""></td>
</tr>
<tr>
<td>
<img src="templates/wds_carbon/images/carbon_03.gif" width="70" height="28" alt=""></td>
<td>
<a href="index.php"><img src="templates/wds_carbon/images/carbon_04.gif" alt="" width="107" height="28" border="0"></a></td>
<td>
<a href="index.php?option=com_content&amp;task=section&amp;id=1&amp;Ite mid=2"><img src="templates/wds_carbon/images/carbon_05.gif" alt="" width="97" height="28" border="0"></a></td>
<td>
<a href="index.php?option=com_weblinks&amp;Itemid=23"><img src="templates/wds_carbon/images/carbon_06.gif" alt="" width="96" height="28" border="0"></a></td>
<td>
<a href="index.php?option=com_contact&amp;Itemid=3"><img src="templates/wds_carbon/images/carbon_07.gif" alt="" width="109" height="28" border="0"></a></td>
</tr>
<tr>
<td colspan="5">
<img src="templates/wds_carbon/images/carbon_08.jpg" width="479" height="40" alt=""></td>
</tr>
<tr>
<td colspan="9"><img src="templates/wds_carbon/images/carbon_09.jpg" width="775" height="151" alt="" /></td>
</tr>
<tr>
<td colspan="2">
<img src="templates/wds_carbon/images/carbon_10.gif" width="214" height="33" alt=""></td>
<td colspan="7" valign="bottom" background="templates/wds_carbon/images/carbon_11.gif" class="12"><?php mosPathWay(); ?></td>
</tr>
<tr>
<td rowspan="2" valign="top" bgcolor="#339933"><?php mosLoadModules ( 'left' ); ?></td>
<td colspan="2" rowspan="2" valign="top" background="templates/wds_carbon/images/carbon_13.jpg">&nbsp;</td>
<td colspan="6" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="col"><?php mosLoadModules ( 'user1' ); ?></th>
<th scope="col"><?php mosLoadModules ( 'user2' ); ?></th>
</tr>
</table></td>
</tr>
<tr>
<td colspan="6" valign="top" bgcolor="#FFFFFF"><?php mosMainBody(); ?></td>
</tr>
<tr>
<td height="122" colspan="9" background="templates/wds_carbon/images/carbon_16.gif"><div align="right" class="style1"></div></td>
</tr>
<tr>
<td><!-- edit -->
<img src="templates/wds_carbon/images/odstep.gif" width="210" height="1" alt=""></td>
<td>
<img src="templates/wds_carbon/images/odstep.gif" width="4" height="1" alt=""></td>
<td>
<img src="templates/wds_carbon/images/odstep.gif" width="7" height="1" alt=""></td>
<td>
<img src="templates/wds_carbon/images/odstep.gif" width="75" height="1" alt=""></td>
<td>
<img src="templates/wds_carbon/images/odstep.gif" width="70" height="1" alt=""></td>
<td>
<img src="templates/wds_carbon/images/odstep.gif" width="107" height="1" alt=""></td>
<td>
<img src="templates/wds_carbon/images/odstep.gif" width="97" height="1" alt=""></td>
<td>
<img src="templates/wds_carbon/images/odstep.gif" width="96" height="1" alt=""></td>
<td>
<img src="templates/wds_carbon/images/odstep.gif" width="109" height="1" alt=""></td>
</tr>
</table>
<!-- edit -->
</body>
</html>