starting work on template tags for media handling

This commit is contained in:
John Bintz 2009-11-13 19:26:50 -05:00
parent 305e3bef8f
commit cf6f867a86
2 changed files with 6 additions and 2 deletions

View File

@ -146,11 +146,12 @@ function RT($which, $restrictions = null, $override_post = null) {
}
function M($override_post = null) {
global $post;
global $post, $__attachments, $__ordering;
$post_to_use = !is_null($override_post) ? $override_post : $post;
$comic_post = new ComicPressComicPost($post_to_use);
return $comic_post->get_attachments();
$__attachments = $comic_post->get_attachments();
$__ordering = $comic_post->normalize_ordering();
}
/**

View File

@ -14,6 +14,9 @@
foreach (M() as $image) {
echo $image->embed();
echo $image->embed('comic');
echo $image->embed('rss');
echo $image->embed('archive');
}
RT('next'); the_title(); echo '<br />';