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
-
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?
-
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
-
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; ?>
-
<!--[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
-
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?
-
Gli altri fogli di stili presenti, come dire? Quelli di default di quel template.
-
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?
-
ventus85, ho bisogno del tuo aiuto...
-
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/
-
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?
-
ce nessuno che mi aiuti?