You are on page 1of 1

Cédric KEIFLIN pseudo : ced1870 none Condition d'affichage templateDetails.

xml
http://www.joomlack.fr ...contenu du module... <?php if ($this->countModules('position-7')): ?> <?xml version="1.0" encoding="utf-8"?>
<div class="navigation"> <extension
v. 3.x xhtml <jdoc:include type="modules" name="position-7" style="xhtml" /> version="3.0"
Templates <div class="moduletable[suffixe]"> type="template"
index.php Cheatsheet </div>
defined('_JEXEC') or die; <h3>Titre du module</h3> <?php endif; ?> client="site"
(Mootools More) ...contenu du module... Module Chrome method="upgrade"
Librairies
</div> >
JHtml::_('behavior.framework', true); templates/[TEMPLATE]/html/modules.php
JHtml::_('bootstrap.framework'); </extension>
JHtmlBootstrap::loadCss( rounded function modChrome_foobar($module, &$params, &$attribs) {...}
<div class="module[suffixe]"> <jdoc:include type="modules" name="position-7" style="foobar" /> Infos
$includeMaincss = false,
<div> $params->get('moduleclass_sfx') <name></name>
$this->direction);
JHtml::_('jquery.framework', true); <div> $module->showtitle <version></version>
Modules (No conflict) <div> $module->title <creationDate></creationDate>
<jdoc:include type="modules"
<h3>Titre du module</h3> $module->content <author></author>
...contenu du module... DOCTYPE <authorEmail></authorEmail>
name="position-0"
</div> <copyright></copyright>
style="none" /> <!DOCTYPE html> (HTML5)
</div> <description></description>
Positions standards <!DOCTYPE html PUBLIC (XHTML1)
</div> Fichiers
<jdoc:include type="modules" </div> "-//W3C//DTD XHTML 1.0 Transitional//EN"
name="debug" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <files>
style="none" /> table HTML <filename>index.php</filename>
<jdoc:include type="head" /> <table cellpadding="0" cellspacing="0" <html xmlns="http://www.w3.org/1999/xhtml" <folder>css</folder>
<jdoc:include type="component" /> </files>
<jdoc:include type="message" /> class="moduletable[suffixe]"> xml:lang="<?php echo $this->language; ?>"
<tr> lang="<?php echo $this->language; ?>" Positions de modules
Variables
$this->baseurl <th>Titre du module</th> dir="<?php echo $this->direction; ?>" > <positions>
$this->template </tr> Appel CSS <position>debug</position>
$this->direction <tr>
$this->params->get('templateparam') <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" </positions>
$this->language <td> Langues
rel="stylesheet" type="text/css">
...contenu du module... <languages folder="language">
Styles de modules $doc->addStyleSheet($this->baseurl.'templates/'.$this->template.'/css/template.css');
</td> <language tag="en-GB">
none </tr> <style type="text/css">code ici</style>
xhtml en-GB/en-GB.tpl_foobar.ini</language>
rounded </table> Appel Javascript
table
<language tag="en-GB">
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/template.js" en-GB/en-GB.tpl_foobar.sys.ini</language>
html5 html5
horz type="text/javascript"></script>
<TAG class="moduletable[suffixe] BS"> </languages>
Images $doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/template.js'); Options
<HEADER class="HEADERCLASS">
<script type="text/javascript">code ici</script>
template_preview.png [640x400 px] Titre du module <config>
</HEADER> Commentaire conditionnel <fields name="params">
template_thumbnail.png [200x150 px]
...contenu du module... <!--[if IE 7]> <fieldset name="advanced">
Template Override </TAG> <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie7only.css"> <field name="foobar" type="text" />
Fichier source TAG : $params->get('module_tag', 'div') <![endif]--> </fieldset>
HEADER : $params->get('header_tag', 'h3') </fields>
components/com_content/views
BS : 'span'+$params->get('bootstrap_size', 0) [if gt IE 7] : Plus grand que IE7 </config>
/article/tmpl/default.php [if gte IE 7] : Plus grand et égal que IE7
Fichier cible horz [if lt IE 7] : Plus petit que IE7
<table cellspacing="1" cellpadding="0" CSS (Cascading StyleSheet)
templates/[yourtemplate]/html [if lte IE 7] : Plus petit et égal que IE7
/com_content/article/default.php width="100%"> ID
<tr> Responsive design
<p id="foobar"></p>
Variables Joomla! <td> <meta name="viewport" content="width=device-width, initial-scale=1.0"> #foobar { color:red; }
$config = JFactory::getConfig() charge le module avec le style table @media screen and (max-width: 1024px) { } CLASS
$config->get('sitename') </td>
<p class="foobar"></p>
$app = JFactory::getApplication() </tr>
.foobar { color:red; }
$doc = JFactory::getDocument() </table>