示例#1
0
					<div id="vod_content">
						<h2 class="vod-content-h2">Новинки видеотеки</h2>
							<div class="cursors">
								<div id="cursor-vod-next" class="cursor-next"></div>
								<div id="cursor-vod-prev" class="cursor-prev"></div>
							</div>
							<div id="vod_dynamic"></div>
							<input type="hidden" id="vod_page" value="1"></input>
					</div>
				</div>
			<?php 
}
?>
				
			<?php 
if (is_home_tmpl() || empty($frame)) {
    ?>
				<div id="posts"> 
					<?php 
    if (have_posts()) {
        ?>
						<?php 
        while (have_posts()) {
            the_post();
            ?>
							<?php 
            get_template_part("content", get_post_format());
            ?>
						<?php 
        }
        ?>
示例#2
0
function define_template_part()
{
    return is_home_tmpl() && get_option("show_on_front") == "page" ? "main" : "content";
}