Пример #1
0
        }
        ?>
				
				
				<div class="sing-tit-cont">
					
					<!--<p class="cat"> <?php 
        the_category(',');
        ?>
</p> -->
					<?php 
        echo get_the_term_list(get_the_ID(), 'categorie', '<p class="cat">', ', ', '</p>');
        ?>
					
					<h3 class="sing-tit"><?php 
        echo getSceneTitle($post->ID, 'long', true);
        ?>
</h3>
	
				
					<p class="meta">
					
						<i class="fa fa-clock-o"></i> <?php 
        the_time('j M , Y');
        ?>
 

						<?php 
        if (function_exists('the_views')) {
            echo '&nbsp;|&nbsp; ';
            the_views();
Пример #2
0
            echo get_the_term_list(get_the_ID(), 'genre', '<p class="grid-cat">', ', ', '</p>');
        } else {
            if ($taxonomy->name == 'scene') {
                echo get_the_term_list(get_the_ID(), 'categorie', '<p class="grid-cat">', ', ', '</p>');
            }
        }
        ?>
						
						
						<h2 class="grid-tit"><a href="<?php 
        the_permalink();
        ?>
">
						<?php 
        if ($postType == 'scene') {
            echo getSceneTitle($post->ID);
        } else {
            the_title();
        }
        ?>
</a></h2>
						
												
							<?php 
        $video = get_post_meta($post->ID, 'fullby_video', true);
        if ($video != '') {
            ?>
						 			
						 		<i class="fa fa-video-camera"></i> Video
						 			
						 	<?php 
Пример #3
0
function getOtherScenesByScene($scene)
{
    //affiche les scenes issues du meme film que la scene courante
    global $post;
    ////////// AFFICHAGE DES AUTRES SCENES DU FILM
    $related = p2p_type('film2scene')->get_related(get_queried_object());
    if ($related->have_posts()) {
        ?>
		
		<?php 
        while ($related->have_posts()) {
            $related->the_post();
            //makeThumb($post->ID,"court",3);
            echo '<a href="' . get_permalink() . '" title="' . get_the_title() . '" >';
            echo get_the_post_thumbnail($post_id, 'thumbnail', array('class' => 'thumbnail'));
            echo '<h2 class="title">';
            getSceneTitle($post->ID, 'court', true);
            echo '</h2>';
            echo '<div class="date"><i class="fa fa-clock-o"></i>';
            the_time('j M , Y');
            echo '&nbsp;';
            echo '</div></a>';
        }
        ?>
		
		<?php 
        // Prevent weirdness
        wp_reset_postdata();
    }
}
Пример #4
0
post_class();
?>
>
	<header class="entry-header">
	
		<?php 
$post_type = get_post_type($post->ID);
?>
	
		<h3 class="entry-title"><a href="<?php 
the_permalink();
?>
" rel="bookmark">
		<?php 
if ($post_type == 'scene') {
    echo getSceneTitle($post->ID, 'moyen', true);
} else {
    the_title();
}
?>
		</a></h3>

		<?php 
if ('post' == get_post_type()) {
    ?>
		<div class="entry-meta">
			<?php 
    //upbootwp_posted_on();
    ?>
		</div><!-- .entry-meta -->
		<?php