예제 #1
0
-- Gallery Post Format
*/
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('sunset-format-gallery');
?>
>
	<header class="entry-header text-center">
		
		<?php 
if (sunset_get_attachment()) {
    $attachments = sunset_get_attachment(7);
    //var_dump($attachments);
    ?>
			
			<div id="post-gallery-<?php 
    the_ID();
    ?>
" class="carousel slide" data-ride="carousel">
				
				<div class="carousel-inner" role="listbox">
					
					<?php 
    $i = 0;
    foreach ($attachments as $attachment) {
        $active = $i == 0 ? ' active' : '';
        ?>
예제 #2
0
	
@package sunsettheme
-- Image Post Format
*/
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('sunset-format-image');
?>
>
	
	<header class="entry-header text-center background-image" style="background-image: url(<?php 
echo sunset_get_attachment();
?>
);">
		
		<?php 
the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>');
?>
		
		<div class="entry-meta">
			<?php 
echo sunset_posted_meta();
?>
		</div>
		
		<div class="entry-excerpt image-caption">
			<?php 
예제 #3
0
>
	<header class="entry-header text-center">
		
		<?php 
if (sunset_get_attachment()) {
    ?>
			
			<div id="post-gallery-<?php 
    the_ID();
    ?>
" class="carousel slide sunset-carousel-thumb" data-ride="carousel">
				
				<div class="carousel-inner" role="listbox">
					
					<?php 
    $attachments = sunset_get_bs_slides(sunset_get_attachment(7));
    foreach ($attachments as $attachment) {
        ?>
					
						<div class="item<?php 
        echo $attachment['class'];
        ?>
 background-image standard-featured" style="background-image: url( <?php 
        echo $attachment['url'];
        ?>
 );">
							
							<div class="hide next-image-preview" data-image="<?php 
        echo $attachment['next_img'];
        ?>
"></div>