Skip to content

Commit

Permalink
[yarpp]: Basic template
Browse files Browse the repository at this point in the history
  • Loading branch information
teajaymars committed Mar 9, 2012
1 parent d4a2b1e commit 95b2104
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions single.php
@@ -1,3 +1,11 @@
<?
/* Activate Magazine-mode */
add_filter('body_class','browser_body_class');
function browser_body_class($classes = '') {
array_push($classes,"magazine");
return $classes;
}
?>
<?php get_header() ?>

<div id="content">
Expand Down
11 changes: 11 additions & 0 deletions yarpp-template-magazine.php
@@ -0,0 +1,11 @@
<?php /*
Magazine template for the YARPP engine
Author: Tom Rees
*/
if ($related_query->have_posts()) {
echo '<h3>Related Posts</h3>';
while ($related_query->have_posts()) {
$related_query->the_post();
echo_magazine_post($post, false);
}
}

0 comments on commit 95b2104

Please sign in to comment.