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


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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

You need to login to post a comment.