function ddsg_generate_sitemap($content) {
	if (strpos($content, "<!-- ddsitemapgen -->") !== FALSE) {
		$content = preg_replace('/<p>\s*<!--(.*)-->\s*<\/p>/i', "<!--$1-->", $content);
		$content = str_replace('<!-- ddsitemapgen -->', ddsg_create_sitemap(), $content);
	}
	return $content;
}
Exemplo n.º 2
0
<?php

get_header();
?>
<div class="band" id="main">
	<div class="container">
		<div class="eleven offset-by-five columns" id="content">
			<h2>Error 404 - Page Not Found</h2>
			<p>Please check our sitemap for the page you're looking for.</p>
			<?php 
echo ddsg_create_sitemap();
?>
		</div>
	</div>
</div>
<?php 
get_footer();