Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/03/2007, 09:57
Avatar de el_cesar
el_cesar
 
Fecha de Ingreso: mayo-2001
Ubicación: Cali
Mensajes: 2.423
Antigüedad: 23 años
Puntos: 20
estilos en joomla

hola, hice una plantilla en joomla, aqui es mi codigo

<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );$iso = split( '=', _ISO );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(); ?>
<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" />
<?php if ( $my->id ) { initEditor(); } ?>
<?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]/templates/jardinfavicon.ico\" />" ; ?>
<SCRIPT LANGUAGE="JavaScript" SRC="templates/daydream2blue_451a/js/JSCookMenu.js"></SCRIPT>
<LINK HREF="templates/jardin/css/styles.css" REL="stylesheet" TYPE="text/css" />
<SCRIPT LANGUAGE="JavaScript" SRC="templates/daydream2blue_451a/js/ThemeOffice/theme.js"></SCRIPT>
<?php initEditor(); ?>
<?php // Custom MainMenu extension with JSCookMenu
$mymenu_content = <<<EOT
<SCRIPT LANGUAGE="JavaScript"><!--
var myMenu =
[
EOT;
$database->setQuery("SELECT * FROM #__menu WHERE menutype = 'mainmenu' AND published ='1' ORDER BY ordering");
$menus = $database->loadObjectList(); // mainmenu list
$subs = array(); // sub menus
// first pass to collect sub-menu items
foreach ($menus as $row) {
if ($row->parent) {
if (!array_key_exists( $row->parent, $subs )) {
$subs[$row->parent] = array();
}
$subs[$row->parent][] = $row;
}
}
foreach ($menus as $row) { // second pass to insert main-menu items
if ($row->parent == 0 && (trim( $row->link ) || array_key_exists( $row->id, $subs ))) {
$name = addslashes( $row->name );
$alt = addslashes( $row->name );
$link = $row->link ? "'$row->link" : "null";
if ($row->type != "url") {
$link .= "&Itemid=$row->id'";
} else {
$link .= "'";
}
$mymenu_content .= "\n ['<img src=\"'+cmThemeOfficeBase+'darrow.png\">','$name', $link,null,'$alt'";
if (array_key_exists( $row->id, $subs )) {
$mymenu_content .= ',';
foreach ($subs[$row->id] as $sub) { // third pass to insert sub-menu items
$name = addslashes( $sub->name );
$alt = addslashes( $sub->name );
$link = $sub->link ? "'$sub->link" : "null";
if ($sub->type != "url") {
$link .= "&Itemid=$sub->id'";
} else {
$link .= "'";
}
$mymenu_content .= "\n ['<img src=\"'+cmThemeOfficeBase+'sections.png\">','$name ',$link,null,'$alt'";

if (array_key_exists( $sub->id, $subs )) {
$mymenu_content .= ',';
foreach ($subs[$sub->id] as $sub2) { // fourth pass to insert subsub-menu items
$name = addslashes( $sub2->name );
$alt = addslashes( $sub2->name );
$link = $sub2->link ? "'$sub2->link" : "null";
if ($sub2->type != "url") {
$link .= "&Itemid=$sub2->id'";
} else {
$link .= "'";
}
$mymenu_content .= "\n ['<img src=\"'+cmThemeOfficeBase+'sections.png\">','$name ',$link,null,'$alt'],";
}
}
$mymenu_content .= "],";
}
}
$mymenu_content .= "],";
}
}

$mymenu_content .= "];\n";
$mymenu_content .= "--></SCRIPT>\n";

echo $mymenu_content;
?>

<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<body onload="MM_preloadImages('templates/jardin/images/home2.gif','templates/jardinmapa2.gif','templates/jardinfaqs2.gif')">
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td background="templates/jardin/images/cabezotefondo.png"><table width="100%" height="82" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="templates/jardin/images/logo.gif" alt="jardin plaza" width="193" height="82" /></td>
<td>&nbsp;</td>
<td align="center" valign="middle"><img src="templates/jardin/images/separadorcabezote.gif" alt="cabezote" width="2" height="60" /></td>
<td><img src="templates/jardin/images/spacer.gif" alt="2" width="5" height="1" /></td>
<td width="98" align="right"><table width="98" border="0" cellspacing="0" cellpadding="0">
<tr>
<td title="Regresar a Inicio"><a href="#"><img src="templates/jardin/images/home.gif" alt="home" width="15" height="11" border="0" id="Image1" onmouseover="MM_swapImage('Image1','','templates/jardinhome2.gif',1)" onmouseout="MM_swapImgRestore()" /></a></td>
<td><img src="templates/jardin/images/spacer.gif" alt="2" width="19" height="1" /></td>
<td title="Ver Mapa del Sitio"><a href="#"><img src="templates/jardin/images/mapa.gif" alt="mapa" width="17" height="11" border="0" id="Image2" onmouseover="MM_swapImage('Image2','','templates/jardinmapa2.gif',1)" onmouseout="MM_swapImgRestore()" /></a></td>
<td><img src="templates/jardin/images/spacer.gif" alt="2" width="19" height="1" /></td>
<td title="Ver Preguntas Frecuentes"><a href="#"><img src="templates/jardin/images/faqs.gif" alt="faqs" width="11" height="12" border="0" id="Image3" onmouseover="MM_swapImage('Image3','','templates/jardinfaqs2.gif',1)" onmouseout="MM_swapImgRestore()" /></a></td>
<td><img src="templates/jardin/images/spacer.gif" alt="2" width="19" height="1" /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="2" /></td>
</tr>
<tr>
<td background="templates/jardin/images/menufondo.png"><table width="750" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="templates/jardin/images/spacer.gif" alt="2" width="20" height="1" /></td>
<td title="Cont&aacute;cte a Jard&iacute;n PLaza">
<table width="100%" cellpadding="0" cellspacing="0" class="pill" >
__________________
Say no more.......