Fix all includes in theme

This commit is contained in:
Frédéric K 2015-09-15 18:27:21 +02:00
parent 97c3cc8fce
commit 16aae77ab4
1 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<head> <head>
<!-- Meta tags --> <!-- Meta tags -->
<?php include('php/head.php') ?> <?php include(dirname(__FILE__).'/php/head.php') ?>
</head> </head>
<body> <body>
@ -16,7 +16,7 @@
<!-- Sidebar --> <!-- Sidebar -->
<div class="sidebar pure-u-1 pure-u-md-1-4"> <div class="sidebar pure-u-1 pure-u-md-1-4">
<?php include('php/sidebar.php') ?> <?php include(dirname(__FILE__).'/php/sidebar.php') ?>
</div> </div>
<!-- Main --> <!-- Main -->
@ -26,15 +26,15 @@
<?php <?php
if( ($Url->whereAmI()=='home') || ($Url->whereAmI()=='tag') ) if( ($Url->whereAmI()=='home') || ($Url->whereAmI()=='tag') )
{ {
include('php/home.php'); include(dirname(__FILE__).'/php/home.php');
} }
elseif($Url->whereAmI()=='post') elseif($Url->whereAmI()=='post')
{ {
include('php/post.php'); include(dirname(__FILE__).'/php/post.php');
} }
elseif($Url->whereAmI()=='page') elseif($Url->whereAmI()=='page')
{ {
include('php/page.php'); include(dirname(__FILE__).'/php/page.php');
} }
?> ?>