-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
28 lines (24 loc) · 758 Bytes
/
footer.php
File metadata and controls
28 lines (24 loc) · 758 Bytes
1
<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>