?>
<?php get_header(); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-
- <?php
+ <?php if (have_posts()) : while (have_posts()) : the_post();
$path = dirname(ABSPATH);
$file = get_post_meta(get_the_ID(), 'include-markdown', true);
$cachekey = "cached_include_" . $file;
-
- if ( false === ( $content = get_transient($cachekey) ) ) {
+ if ( is_super_cache_enabled() || false === ( $content = get_transient($cachekey) ) ) {
ob_start();
include $path . '/' . $file;
$content = ob_get_clean();
set_transient($cachekey, $content, DAY_IN_SECONDS);
}
- ?>
+ ?>
<article class="page<?php if ( has_table_of_contents() ) echo ' with-toc';?>" id="post-<?php the_ID(); ?>">
- <h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
+ <h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
- <div class="bodycopy">
+ <div class="bodycopy">
<?php table_of_contents(); ?>
<?php
echo apply_filters('the_content', $content);
?>
- </div>
+ </div>
</article>
- <?php //comments_template(); ?>
+ <?php //comments_template(); ?>
- <?php endwhile; else:
+ <?php endwhile; else:
include('444.php');
- endif; ?>
+ endif; ?>
-<?php get_footer(); ?>
\ No newline at end of file
+<?php get_footer(); ?>