groups

Link to this snippet:


Download to Code Collector

language: Other
licence: Other

JOOMLA : exemple de gabarit (index.php)

options: send to code collectorview all pierre alexandre payet's snippets
<?php defined( "_JEXEC" ) or die( "Restricted access" ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
   xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">

<head>

	<jdoc:include type="head" />
	<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/<?php echo $this->template?>/css/style.css" type="text/css" />
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/iconize.css" type="text/css" />
	<!-- appel des fichiers javascript -->
	<?php
		$document = &JFactory::getDocument();
		$document->addScript("/media/system/js/v2.standalone.full.min.js");
		$document->addScript("/media/system/js/jquery-1.3.2.min.js");
		$document->addScript("/media/system/js/easySlider1.5.js");
		$document->addScript( '/media/system/js/clearbox.js?dir=/media/system/js/clearbox&lng=fr' );
	?>
	<meta name="robots" content="none"/>

</head>

<body>
 
	<div class="header">
		<jdoc:include type="modules" name="banner" />
		<jdoc:include type="module" name="breadcrumbs" /> <!-- remarque : ici le tag fait appel à un module qui ne peut apparaître qu'une seul fois dans la page d'où -->
	</div>
			
	<div class="nav">
		<jdoc:include type="modules" name="nav" />
	</div>

	<div class="content">				
		<jdoc:include type="component" /> <!-- ce tag permet d'afficher le contenu en lui même (articles, posts, etc.) -->
	</div>
			
	<div class="footer"> 
		<jdoc:include type="modules" name="footer" />
	</div>
	
</body>
</html>