Joomla.it Forum

Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => I Template di Joomla 1.5.x => : far 07 Mar 2009, 18:21:49

: template
: far 07 Mar 2009, 18:21:49
all'inizio dell'head di un template ce questa stringa, <jdoc:include type="head" />, cosa significa?
sto cercando di capirci qualcosa su come è fatto un template, qualcuno sa se ce qualche quida che mi spieghi un dato template passo passo?
: Re: template
: ventus85 07 Mar 2009, 18:27:17
http://wiki.joomla.it/index.php?title=Joomla_1.5_Template_tutori (http://wiki.joomla.it/index.php?title=Joomla_1.5_Template_tutori)al
: Re: template
: far 07 Mar 2009, 19:17:28
ok, quella stringa l'ho capita, però non riesco a capire quello che viene dopo
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/<?php echo $this->params->get('backgroundVariation'); ?>_bg.css" type="text/css" />

<!--[if lte IE 6]>

<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->

<?php if($this->direction == 'rtl') : ?>
   <link href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/template_rtl.css" rel="stylesheet" type="text/css" />
<?php endif; ?>
: Re: template
: ventus85 07 Mar 2009, 19:24:42
<!--[if lte IE 6]>

<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->


Nel caso che il browser in usi sia Internet Explorer 6 viene usato il foglio di stile ieonly.css
: Re: template
: far 07 Mar 2009, 19:35:52


Nel caso che il browser in usi sia Internet Explorer 6 viene usato il foglio di stile ieonly.css
[/quote]

e nel caso in cui il browser sia diverso cosa viene usato?
: Re: template
: ventus85 07 Mar 2009, 19:39:47
Gli altri fogli di stili presenti, come dire? Quelli di default di quel template.
: Re: template
: far 07 Mar 2009, 19:48:44
quindi quel codice sorgente è "uguale" per quei broweser che utilizzano internet explorer 6.
secondo te, quale è la scelta che deve essere fatta?
ma sei il broweser non utilizza internet explorer 6, la pagina non viene visualizzata?
: Re: template
: far 07 Mar 2009, 20:22:08
ventus85, ho bisogno del tuo aiuto...
: Re: template
: ventus85 07 Mar 2009, 20:30:48
quindi quel codice sorgente è "uguale" per quei broweser che utilizzano internet explorer 6.
secondo te, quale è la scelta che deve essere fatta?
ma sei il broweser non utilizza internet explorer 6, la pagina non viene visualizzata?

No, il codice richiama i fogli di stili di default ma prima fa un controllo sul tipo di browser usato.
Quello di IE 6 è un caso particolare, infatti se guardi c'è una struttura if:
"se il browser che stai usando è IE 6 allora usa questo file"
in tutti gli altri casi usa quelli presenti dentro la cartella (quelli che ho chiamato "di default").
Questo succede perchè spesso IE 6 e precedenti hanno "regole" diverse per "tradurre" un foglio di stile.
Comunque di solito la grafica è abbastanza simile nei vari casi.

Edit: ora che ci penso, se vuoi vedere come il tuo sito viene visualizzato con browser diversi e di versioni diverse usa questo:
http://browsershots.org/
: Re: template
: far 07 Mar 2009, 20:59:12
grazie..

sto notando che in altri template viene utilizzato un altro codice...


<?php JHTML::_('behavior.mootools'); ?>

<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />

<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script>

<?php if ($tmpTools->getParam('rightCollapsible')): ?>
<script language="javascript" type="text/javascript">
var rightCollapseDefault='<?php echo $tmpTools->getParam('rightCollapseDefault'); ?>';
var excludeModules='<?php echo $tmpTools->getParam('excludeModules'); ?>';


</script

mi puoi indirizzare per quale motivo?
: Re: template
: far 08 Mar 2009, 12:18:39
ce nessuno che mi aiuti?