Back to top

Autore Topic: Index.php per joomla 1.6 non funziona, stesso index.php per joomla 1.5 funge  (Letto 3556 volte)

Offline pikkolo

  • Esploratore
  • **
  • Post: 56
    • Mostra profilo
Ciao a tutti


Questo è l index.php del mio template per joomla 1.6


Codice: [Seleziona]
<?php
/**
 * @version    $Id: index.php 18232 2010-07-24 09:21:45Z infograf768 $
 * @package    Joomla.Site
 * @copyright  Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>

<!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" xml:lang="<?php echo $this->language?>" lang="<?php echo $this->language?>" >

<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/template.css" type="text/css" />

</head>

<body>
<div id="<?php
$ora 
date("s"time());
if( 
$ora >= && $ora <= 20 ) {
echo 
"component_notte";
}
elseif ( 
$ora >= 20 && $ora <= 40 ) {
echo 
"component_giorno";
} else {
echo 
"component_sera";
}
?>
"><jdoc:include type="component" /></div>

</body>
</html>

Questo è l index.php del mio template per joomla 1.5

Codice: [Seleziona]
<!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" xml:lang="<?php echo $this->language?>" lang="<?php echo $this->language?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/template_base_by_boh_15/css/template_joomla.css" type="text/css" />
</head>
<body>
<div id="<?php
$ora 
date("s"time());
if( 
$ora >= && $ora <= 20 ) {
echo 
"component_notte";
}
elseif ( 
$ora >= 20 && $ora <= 40 ) {
echo 
"component_giorno";
} else {
echo 
"component_sera";
}
?>
"><jdoc:include type="component" /></div>
</body>
</html>



perchè il template 1.5 funge a meraviglia e quello 1.6 no ?

Per la precisione, nel caso di 1.6 firebug dice che la pagina visualizzata non ha alcuna css rule .. quindi immagino non venga caricato il file css :(

Grazie a chiunque vorrà aiutare :°)
« Ultima modifica: 18 Set 2010, 12:58:29 da pikkolo »

Offline maicolstaip

  • Global Moderator
  • Instancabile
  • ********
  • Post: 17623
  • Sesso: Maschio
    • Mostra profilo
Ciao pikkolo,
a prima vista manca la chiamata al css

Codice: [Seleziona]
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/nome_del_template/css/template.css" type="text/css" />
Non si risponde a PM tecnici. Postate sul forum. Grazie.

Offline pikkolo

  • Esploratore
  • **
  • Post: 56
    • Mostra profilo
Non è questa ? :o

Codice: [Seleziona]
<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/template.css" type="text/css" />

</head>

Offline pikkolo

  • Esploratore
  • **
  • Post: 56
    • Mostra profilo
Dopo una settimana di sclero mi sono accorto che c' era un typo gigantesco :) Il percorso dell inclusione per il css nel 1.6 puntava alla directory system e non a quella del template :D scusate cari ora funge

 



Web Design Bolzano Kreatif