starting work on template tags for media handling
This commit is contained in:
parent
305e3bef8f
commit
cf6f867a86
@ -146,11 +146,12 @@ function RT($which, $restrictions = null, $override_post = null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function M($override_post = null) {
|
function M($override_post = null) {
|
||||||
global $post;
|
global $post, $__attachments, $__ordering;
|
||||||
$post_to_use = !is_null($override_post) ? $override_post : $post;
|
$post_to_use = !is_null($override_post) ? $override_post : $post;
|
||||||
|
|
||||||
$comic_post = new ComicPressComicPost($post_to_use);
|
$comic_post = new ComicPressComicPost($post_to_use);
|
||||||
return $comic_post->get_attachments();
|
$__attachments = $comic_post->get_attachments();
|
||||||
|
$__ordering = $comic_post->normalize_ordering();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,6 +14,9 @@
|
|||||||
|
|
||||||
foreach (M() as $image) {
|
foreach (M() as $image) {
|
||||||
echo $image->embed();
|
echo $image->embed();
|
||||||
|
echo $image->embed('comic');
|
||||||
|
echo $image->embed('rss');
|
||||||
|
echo $image->embed('archive');
|
||||||
}
|
}
|
||||||
|
|
||||||
RT('next'); the_title(); echo '<br />';
|
RT('next'); the_title(); echo '<br />';
|
||||||
|
Loading…
Reference in New Issue
Block a user