Posted By

alexandrepayet on 04/15/10


Tagged

php template html structure joomla gabarit squelette basique exemple


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

pauloc


HTML, PHP, JOOMLA : Exemple de structure d\'un fichier de template Joomla


 / Published in: PHP
 

  1. <?php defined( "_JEXEC" ) or die( "Restricted access" ); ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4. xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
  5. <head>
  6.  
  7. <jdoc:include type="head" />
  8. <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
  9. <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
  10. <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/style.css" type="text/css" />
  11. <!-- appel des fichiers javascript -->
  12.  
  13. </head>
  14.  
  15. <body>
  16.  
  17. <div class="header">
  18. <jdoc:include type="modules" name="banner" />
  19. <jdoc:include type="modules" name="breadcrumbs" />
  20. </div>
  21.  
  22. <div class="nav">
  23. <jdoc:include type="modules" name="nav" />
  24. </div>
  25.  
  26. <div class="content">
  27. <jdoc:include type="component" /> <!-- ce tag permet d'afficher le contenu en lui m���ªme (articles, posts, etc.) -->
  28. </div>
  29.  
  30. <div class="footer">
  31. <jdoc:include type="modules" name="footer" />
  32. </div>
  33.  
  34. </body>
  35. </html>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: technova on April 16, 2010

C'est tout sauf du SPIP : inutile d'y mettre du PHP, et _JEXEC n'a rien à voir avec ce bô CMS ;)

Posted By: alexandrepayet on July 28, 2010

@technova Autant pour moi, je me suis trompé en ajoutant le titre et les tags. C'est du Joomla bien sûr !

You need to login to post a comment.