Exemplo n.º 1
0
<body>
<div id="wrapper">
<?php 
include_template_part("header");
?>

	<div id="main">
		<h2 class="fz24 fwb">Index</h2>
		<ul class="mt10">
			<li>- <a href="<?php 
echo $home;
?>
/index.php" class="tdu">index.php</a></li>
			<li>- <a href="<?php 
echo $home;
?>
/subpage/index.php" class="tdu">subpage/index.php</a></li>
			<li>- <a href="<?php 
echo $home;
?>
/subpage/foo.php" class="tdu">subpage/foo.php</a></li>
		</ul>
	</div><!-- #main -->

<?php 
include_template_part("footer");
?>
</div><!-- #wrapper -->
</body>
</html>
Exemplo n.º 2
0
 function include_module($slug, $data = '')
 {
     include_template_part('inc/modules/' . $slug, $data);
 }