Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » Joomla »

estilos en joomla

Estas en el tema de estilos en joomla en el foro de Joomla en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 13/03/2007, 09:57
Avatar de el_cesar  
Fecha de Ingreso: mayo-2001
Ubicación: Cali
Mensajes: 2.423
Antigüedad: 23 años, 5 meses
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.......
  #2 (permalink)  
Antiguo 13/03/2007, 09:58
Avatar de el_cesar  
Fecha de Ingreso: mayo-2001
Ubicación: Cali
Mensajes: 2.423
Antigüedad: 23 años, 5 meses
Puntos: 20
Re: estilos en joomla

Código PHP:
          <tr>
            <td class="pill_l">&nbsp;</td>
            <td class="pill_m"><div id="pillmenu">
                <?php mosLoadModules('user3', -1); ?>
            </div></td>
            <td class="pill_r">&nbsp;</td>
          </tr>
        </table></td>
        <td>&nbsp;</td>
        <td align="right" title="Buscar por"><?php mosLoadModules 'user4', -); ?></td>
        <td><img src="templates/jardin/images/flechabuscador.gif" alt="buscar" width="15" height="5" /></td>
        <td title="Buscar"><a href="#">Buscar</a></td>
        <td><img src="templates/jardin/images/spacer.gif" alt="2" width="20" height="1" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="3" /></td>
  </tr>
  <tr>
    <td align="center"><table width="726" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#E6E6E6"><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="4" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="3" /></td>
  </tr>
  <tr>
    <td><table width="750" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td rowspan="3"><img src="templates/jardin/images/spacer.gif" alt="2" width="7" height="1" /></td>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="75" valign="bottom" background="templates/jardin/images/newsletter.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td class="titulonewsletter" title="Suscripci&oacute;n a boletines">news letter </td>
              </tr>
              <tr>
                <td title="E-mail aqu&iacute;"><input name="textfield2" type="text" class="camponewsletter" value="e-mail aqu&iacute;" /></td>
              </tr>
              <tr>
                <td align="right"><table width="40" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="right"><img src="templates/jardin/images/flechanwesletter.gif" alt="newsletter" width="10" height="5" /></td>
                    <td><a href="#" class="licknewsletter">Enviar</a></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="6" /></td>
          </tr>
          <tr>
            <td height="75" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="75" valign="bottom" background="templates/jardin/images/registro.jpg"><table width="100%" border="0">
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><?php mosLoadModules 'left', -); ?></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="3" /></td>
              </tr>
              <tr>
                <td height="36" align="center">&nbsp;</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td rowspan="3"><img src="templates/jardin/images/spacer.gif" alt="2" width="7" height="1" /></td>
        <td colspan="3"><img src="templates/jardin/images/bannerlocal.jpg" alt="banner" width="546" height="196" /></td>
        <td rowspan="3"><img src="templates/jardin/images/spacer.gif" alt="2" width="7" height="1" /></td>
      </tr>
      <tr>
        <td><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="6" /></td>
        <td colspan="3"><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="6" /></td>
      </tr>
      <tr>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><?php mosLoadModules('banner', -1); ?></td>
          </tr>
          <tr>
            <td><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="7" /></td>
          </tr>
          <tr>
            <td><?php mosLoadModules('banner', -1); ?></td>
          </tr>
          <tr>
__________________
Say no more.......
  #3 (permalink)  
Antiguo 13/03/2007, 09:59
Avatar de el_cesar  
Fecha de Ingreso: mayo-2001
Ubicación: Cali
Mensajes: 2.423
Antigüedad: 23 años, 5 meses
Puntos: 20
Re: estilos en joomla

Código PHP:
            <td><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="7" /></td>
          </tr>
          <tr>
            <td><table width="174" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="25" align="right" background="templates/jardin/images/noticiastitulo.gif" class="encabezado" title="Noticias">noticias</td>
              </tr>
              <tr>
                <td align="center" bgcolor="#8D1310"><table width="90%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td colspan="3"><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="5" /></td>
                  </tr>
                  <tr>
                    <td colspan="3" align="left" class="titulo"><a href="#" class="titulo">lo ultimo en tecnolog&iacute;a </a></td>
                  </tr>
                  <tr>
                    <td colspan="3"><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="5" /></td>
                  </tr>
                  <tr>
                    <td colspan="3" align="left" valign="top" class="contenidohome"><a href="#" class="contenidohome">Con tecnolog&iacute;a de punta se han construido las 15 salas de cine, abriran sus puertas ...</a></td>
                  </tr>
                  <tr>
                    <td colspan="3"><img src="templates/jardin/images/spacer.gif" alt="22" width="1" height="5" /></td>
                  </tr>
                  <tr>
                    <td align="left"><img src="templates/jardin/images/flechasnoticias.gif" alt="noticias" width="8" height="7" /></td>
                    <td>&nbsp;</td>
                    <td align="right"><a href="#" class="vertodasnoticias">Ver todas la noticias </a></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td colspan="3" valign="top"><table width="546" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td title="Eventos Jard&iacute;n Plaza"><img src="templates/jardin/images/eventos.jpg" alt="eventos" width="177" height="20" /></td>
            <td rowspan="2"><img src="templates/jardin/images/spacer.gif" alt="2" width="8" height="1" /></td>
            <td title="Bonos de Descuento"><img src="templates/jardin/images/bonos.jpg" alt="bonos" width="177" height="20" /></td>
            <td rowspan="2"><img src="templates/jardin/images/spacer.gif" alt="2" width="8" height="1" /></td>
            <td title="Tour Virtual por Jard&iacute;n laza"><img src="templates/jardin/images/tour.jpg" alt="2" width="177" height="20" /></td>
          </tr>
          <tr>
            <td height="167" align="center" valign="top" background="templates/jardin/images/fondoebentos.jpg"><table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td colspan="3"><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="5" /></td>
              </tr>
              <tr>
                <td colspan="3"><?php if(mosCountModules('user1') || mosCountModules('user2')) { ?>
                  <table class="nopad user1user2">
                    <tr valign="top">
                      <?php if(mosCountModules('user1')) { ?>
                      <td><?php mosLoadModules('user1', -1); ?>
                      </td>
                      <?php ?>
                      <?php //if(mosCountModules('user1') && mosCountModules('user2')) { ?>
                      <td class="greyline">&nbsp;</td>
                      <?php ?>
                      <?php //if(mosCountModules('user2')) { ?>
                      <td><?php //mosLoadModules('user2', -2); ?>
                      </td>
                      <?php // } ?>
                    </tr>
                  </table>
                  <div id="maindivider"></div>
                  <?php //} ?>
                  <table class="nopad">
                    <tr valign="top">
                      <td><?php //mosMainBody(); ?>
                      </td>
                      <?php //if(mosCountModules('right')) { ?>
                      <td class="greyline">&nbsp;</td>
                      <td width="170"><?php //mosLoadModules('right', -2); ?>
                      </td>
                      <?php //} ?>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td colspan="3"><img src="templates/jardin/images/separadoreventos.gif" alt="eventos" width="159" height="2" /></td>
              </tr>
              <tr>
                <td colspan="3"><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="7" /></td>
              </tr>
              <tr>
                <td align="left">&nbsp;</td>
                <td>&nbsp;</td>
                <td align="right"><a href="#" class="vertodoseventos"></a></td>
              </tr>
            </table></td>
            <td background="templates/jardin/images/fondobonos.jpg">&nbsp;</td>
            <td background="templates/jardin/images/fondotour.jpg">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="5"><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="7" /></td>
          </tr>
          <tr>
            <td colspan="5" bgcolor="#8D1310"><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="3" /></td>
          </tr>
          <tr>
            <td colspan="5"><img src="templates/jardin/images/spacer.gif" alt="2" width="1" height="7" /></td>
          </tr>
          <tr>
            <td colspan="3"><?php mosLoadModules('banner', -1); ?></td>
            <td><img src="templates/jardin/images/spacer.gif" alt="2" width="8" height="1" /></td>
            <td><?php mosLoadModules('banner', -1); ?></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="center"><table width="500" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center"><a href="#" class="linckfooter">[email protected] </a><span class="footer">/ Copyright &copy; Derechos reservados 2007</span></td>
      </tr>
      <tr>
        <td><a href="index.php"></a></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
__________________
Say no more.......
  #4 (permalink)  
Antiguo 13/03/2007, 10:02
Avatar de el_cesar  
Fecha de Ingreso: mayo-2001
Ubicación: Cali
Mensajes: 2.423
Antigüedad: 23 años, 5 meses
Puntos: 20
Re: estilos en joomla

ahora si mi pregunta jeje, resulta que en este codigo no me esta tomando los estilos que deben aplicar para la plantilla, como los puedo traer?

y otra cosa, en un espacio debo poner un resumen de noticias, segun he visto esto se llama con la instruccion
Código PHP:
<?php mosLoadModules('user1', -1); ?>
pero resulta que no me lo esta tomando, alguien me puede ayudar?


gracias
__________________
Say no more.......
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:33.