<footer class="footer"> <?php dynamic_sidebar( 'Footer Left' ); ?> <?php dynamic_sidebar( 'Footer Right' ); ?> <a href="#" id="go-to-top">Go to top <span class="icon-elloup-open-1"></span> </a> <p class="copy">© <?php echo date( "Y" ); echo " "; bloginfo( 'name' ); ?></p> </footer><!-- footer --> <?php wp_footer(); ?> <?php $dir = get_template_directory_uri() . '/'; $head = file($dir . 'footer.html'); for($i=0; $i < count($head); $i++) { $tmp = $head[$i]; if(strpos($tmp, 'src') !== false) { $tmp = str_replace('src="', 'src="' . $dir, $tmp); } else if(strpos($tmp, 'href') !== false) { $tmp = str_replace('href="', 'href="' . $dir, $tmp); } echo $tmp; } ?> </body> </html>