Ejemplo n.º 1
0
	<div id="main-content" class="main-content">
		<div id="primary" class="content-area">
			<article class="page hentry">
			<div id="content" class="entry-content" role="main">
				<?php 
if (apply_filters('muut_show_title_on_forum_page', false)) {
    ?>
					<h1 class="entry-title"><?php 
    the_title();
    ?>
</h1>
				<?php 
}
?>
				<?php 
while (have_posts()) {
    the_post();
    if (muut_is_forum_page()) {
        muut_page_embed();
    }
}
?>
			</div><!-- #content -->
				</article>
		</div><!-- #primary -->
	</div><!-- #main-content -->
<?php 
if (apply_filters('muut_forum_template_use_primary_theme_sidebar', true)) {
    get_sidebar();
}
get_footer();
 public function registerCanonicalTagAction()
 {
     if (isset($_REQUEST['_escaped_fragment_']) && is_singular() && (muut_is_forum_page() || muut_post_uses_muut() || muut_is_channel_page())) {
         if (function_exists('rel_canonical')) {
             remove_action('wp_head', 'rel_canonical');
         }
         add_action('wp_head', array($this, 'canonicalTag'));
     }
 }