* @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
get_header();
?>

<section id="page-header">
	<?php 
if (get_field('header_images')) {
    ?>
<section class="full-slider">
   <div class="flexslider">
 		<ul class="slides">
		  <?php 
    while (the_repeater_field('header_images')) {
        ?>
		  	<?php 
        $image = wp_get_attachment_image_src(get_sub_field('interior_header_image'), 'full');
        ?>
			<li style="background:url(<?php 
        echo $image[0];
        ?>
) no-repeat;background-size:100%;">
				
	<!-- <img src="<?php 
        echo $image[0];
        ?>
" alt="<?php 
        echo get_the_title(get_sub_field('interior_header_image'));
        ?>
Example #2
0
function the_flexible_field($field_name, $post_id = false)
{
    return the_repeater_field($field_name, $post_id);
}
<?php

if (get_field('flexslider') && get_field('flexslider') . length > 0) {
    ?>
<div class="slider">
	<ul class="slides">
		<?php 
    while (the_repeater_field('flexslider')) {
        ?>
		<li>
			<?php 
        $image = wp_get_attachment_image_src(get_sub_field('image'), 'articlepageFlexslider');
        ?>
			<img src="<?php 
        echo $image[0];
        ?>
" alt="<?php 
        echo get_the_title(get_sub_field('image'));
        ?>
">
			<div class="content">
			<?php 
        if (get_sub_field('desc')) {
            ?>
				<h2><span><?php 
            the_sub_field('desc');
            ?>
</span></h2>
			<?php 
        }
        ?>
Example #4
0
			
		<div class="gray-divide"></div>
				
<!--
			<h2 class="adelle display-inline float-left"><?php 
the_field('main_blue_title');
?>
</h2>
			<?php 
if (get_field('tag_line_words')) {
    ?>
				<section id="tagline">
				<h2 class="adelle display-inline float-left">If you can dream it, we can&nbsp;</h2>
				  	<article class="display-inline float-left verb-container">
		  			<?php 
    while (the_repeater_field('tag_line_words')) {
        ?>
						<h2 class="adelle verb blue"><?php 
        the_sub_field('word');
        ?>
&nbsp;</h2>
		  			<?php 
    }
    ?>
		  			</article>
		  			<h2 class="display-inline float-left clear-none">it.<sup>™</sup></h2>
			</section>
			<?php 
}
?>
			<p class="clear-both home-text"><?php 
Example #5
0
<?php if(get_field('accordian')): ?>
				
	<div class="accordianContainer">
		<?php while(the_repeater_field('accordian')): ?>
			<div class="accordianItem">
				<div class="accordianHeading">
					<h3><?php the_sub_field('accordian_heading'); ?></h3>
				</div>
				
				<div class="accordianContent">
					<?php the_sub_field('accordian_wysiwyg'); ?>
				</div>
			</div>
		<?php endwhile; ?>
	</div>

<?php endif; ?>
Example #6
0
</style>

<?php 
$event_ary = array();
$args = array('post_type' => 'calendar_event', 'posts_per_page' => 100);
$myposts = get_posts($args);
foreach ($myposts as $post) {
    setup_postdata($post);
    $date1 = get_field('start_date', $postID);
    $startdate = date("m-d-y", strtotime($date1));
    $date2 = get_field('end_date', $postID);
    $enddate = date("m-d-y", strtotime($date2));
    $dstart = date("F j", strtotime($date1));
    $dend = date("F j", strtotime($date2));
    if (get_field('event_day')) {
        while (the_repeater_field('event_day')) {
            $active = get_sub_field('event_date');
            $formatted = date("m-d-Y", strtotime($active));
            $event_ary[$formatted][] = array("e-title" => "", "e-title-2" => get_field('title'), "e-show-title" => get_field('sub_title'), "e-time" => "", "e-date" => "", "e-details" => "", "e-show-date" => $dstart . " - " . $dend, "e-gallery-hours" => get_field('gallery_hours'));
        }
    }
}
$today = $_SERVER['REQUEST_TIME'];
if ($_GET["month"] == "") {
    $themonth = date("n", $today);
} else {
    $themonth = $_GET['month'];
}
if ($_GET["cyear"] == "") {
    $theyear = date("Y", $today);
} else {
        echo trim($output);
    }
    ?>
">
				 <a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    the_title();
    ?>
">
					<article class="pic">
   						<div class="border-pic">
   							<div>
								<?php 
    $images = the_repeater_field('header_images');
    $thumb = wp_get_attachment_image_src(get_sub_field('interior_header_image'), 'large');
    ?>
<img src="<?php 
    echo $thumb[0];
    ?>
" alt="<?php 
    the_title();
    ?>
">
								
								
	
   							</div>
   						</div>
					</article>
Example #8
0
    ?>
                        </div>
                    </div>
                </div>
                <script type="text/javascript">
                    randomizeContent("slide");
                </script>
            <?php 
} else {
    if (get_field('header_image', 'options')) {
        ?>
                <div class="main_img">
                    <div id="slides">
                        <div class="slides_container">
                            <?php 
        while (the_repeater_field('header_image', 'options')) {
            ?>
                                <div class="slide">
                                    <img src="<?php 
            the_sub_field('image');
            ?>
" alt="<?php 
            the_sub_field('title');
            ?>
" />
                                    <div class="caption" style="bottom:0">
                                        <h2><?php 
            the_sub_field('title');
            ?>
</h2>
                                        <p><?php 
Example #9
0
<?php

if (get_field('one-third')) {
    ?>
<div class="g one-whole">
	<div class="gw">
		<?php 
    while (the_repeater_field('one-third')) {
        ?>
		<article class="puff small g one-third">
			<?php 
        if (get_sub_field('image')) {
            ?>
			<div class="box">
				<a href="<?php 
            the_sub_field('link_url');
            ?>
" class="overlay">
					<?php 
            $image = wp_get_attachment_image_src(get_sub_field('image'), 'startpageThirdPuff');
            ?>
					<img src="<?php 
            echo $image[0];
            ?>
" alt="<?php 
            echo get_the_title(get_sub_field('image'));
            ?>
">
					
					<?php 
            if (get_sub_field('title')) {
Example #10
0
        ?>
</p>
                    <a href="/people/" class="roundel">Find out<br>More ></a>
                </aside>
                <div class="clear"></div>
            </section>
        </section>
        <section id="team">
        	<a class="anchor" id="the-team"></a>
        	<section class="container">
                <h2>Meet the team</h2>
                <?php 
        if (get_field('team_members')) {
            ?>
                    <?php 
            while (the_repeater_field('team_members')) {
                ?>
                        <aside class="col-1-of-3">
                        	<?php 
                if (get_sub_field('linkedin_url')) {
                    ?>
                            	<a href="<?php 
                    the_sub_field('linkedin_url');
                    ?>
" target="_blank">
	                        		<img src="<?php 
                    the_sub_field('picture');
                    ?>
" alt="<?php 
                    the_sub_field('name');
                    ?>
Example #11
0
                    the_title();
                }
                ?>
"></a></li>
								<?php 
            }
            ?>
							</ul>
						</section>
						<div class="overlay-wrap" id="gallery-content">
							<div class="overlay-container">
								<div class="overlay-content">
									<a href="#" class="overlay-close"><i class="fa fa-times-circle fa-2x"></i></a>
									<ul id="gallery-images">
										<?php 
            while (the_repeater_field('gallery')) {
                ?>
											<?php 
                $full = wp_get_attachment_image_src(get_sub_field('image'), 'large');
                ?>
											<li><img src="<?php 
                echo $full[0];
                ?>
" alt="<?php 
                if (get_sub_field('title')) {
                    the_sub_field('title');
                } else {
                    the_title();
                }
                ?>
" title="<?php 
Example #12
0
							<li><a href="/place">Place</a></li><li><strong style="color:#fff"><?php 
echo the_title();
?>
</strong></li>
						</ul>
						
						
						
						
						<ul id="controls">
						</ul>		
					</div>			<div id="pages">								<div id="chapter">
				<?php 
if (get_field('furnishing_page')) {
    $i = 0;
    while (the_repeater_field('furnishing_page')) {
        $i++;
        if ($i == 1) {
            $bgimg = get_sub_field('f_background_image');
            ?>
										<?php 
        }
        ?>
					
					<div id="page-<?php 
        echo $i;
        ?>
" class="page" data-bg-image="<?php 
        echo get_sub_field('f_background_image');
        ?>
">						<div id="two-column-container" class="gallery">
			?>
		</div>
		
				
		<div class="text">
			<?php echo short_opis(); ?>
		</div>
		
		
		<ul class="dm_gallery">
			<?php 
					$counter = 0;
					$id = get_the_ID();
					$rel = ' rel="lightbox['.$id.']" ';
					
					while(the_repeater_field('zdjecia')){
						$counter++;
						$thumb = get_sub_field('zdjecie_galerii');
						$link = $thumb;
					
					
						$thumb = site_url().'/resize/138x140x1/r/'. dm_relative($thumb);
						$opis = get_sub_field('opis-zdjecia');
						
			?>
						
	<li><a class="gallery-item" href="<?= $link; ?>" <?= $rel; echo ' title="'.$opis.'"';?> >
		<img src="<?= $thumb; ?>"  alt="<?= $opis; ?>" />
	</a></li>
						
						
Example #14
0
"
					sizes="250px" 
					alt="<?php 
    echo $thumbs['alt'];
    ?>
" 
					title="<?php 
    echo $thumbs['title'];
    ?>
"
				>
			</label>
		</li>
	<?php 
    $i = 1;
    while (the_repeater_field('galeria_de_imagenes')) {
        $thumb = get_sub_field('gallery_image');
        $slide_src = wp_get_attachment_image_url($thumb['id'], 'full-size');
        $slides_srcset = wp_get_attachment_image_srcset($thumb['id'], 'full-size');
        ?>
		<li class="slider__extra-images--thumb">
			<label for="slider__image--<?php 
        echo $i;
        ?>
" class="slider__extra-images--thumbnail" id="img-dot-<?php 
        echo $i;
        ?>
">
				<img
					src="<?php 
        echo esc_url($img_src);
Example #15
0
$header_slider = get_field('header_slider');
if ($header_slider) {
    ?>
	
        <div id="carousel-example-generic" class="carousel slide hidden-xs" data-ride="carousel">
                <div class="carousel-inner" role="listbox" align="center">
                    <?php 
    foreach ($header_slider as $post) {
        ?>
                            <?php 
        setup_postdata($post);
        $i = 0;
        ?>
													
                            <?php 
        while (the_repeater_field('imagenes', get_the_ID())) {
            ?>
											
                                    <?php 
            $url = get_sub_field('url');
            ?>
                                     <div class="item <?php 
            echo $i == 0 ? 'active' : '';
            ?>
">
                                            <?php 
            if ($url[0] != "") {
                ?>
<a href="<?php 
                echo get_permalink($url[0]);
                ?>
Example #16
0
							<table>
								<?php 
        while (the_repeater_field('kit_list')) {
            ?>
									<tr>
										<th><?php 
            the_sub_field('type');
            ?>
</th>
										<?php 
            if (get_sub_field('items')) {
                ?>
											<td>
												<ul>
													<?php 
                while (the_repeater_field('items')) {
                    ?>
														<li><?php 
                    the_sub_field('item_name');
                    ?>
</li>
													<?php 
                }
                ?>
												</ul>
											</td>
										<?php 
            }
            ?>
									</tr>
								<?php 
Example #17
0
<?php

if (get_field('imageGallery')) {
    while (the_repeater_field('imageGallery')) {
        ?>
<section class="g one-third press">
	<div class="box">
		<?php 
        if (get_sub_field('title')) {
            ?>
		<h2><?php 
            the_sub_field('title');
            ?>
</h2>
		<?php 
        }
        ?>
		
		<?php 
        if (get_sub_field('image')) {
            ?>
			<?php 
            $image = wp_get_attachment_image_src(get_sub_field('image'), 'imageGallery');
            ?>
			<?php 
            $fullimage = wp_get_attachment_image_src(get_sub_field('image'), 'full');
            ?>
			<img src="<?php 
            echo $image[0];
            ?>
" alt="<?php 
							<li><a href="/place">Place</a></li><li class="crumbit"><a href="/collections">collection</a></li><li><strong><?php 
echo $theArist;
?>
</strong></li>
						</ul>
						
						
						
						
						<ul id="controls">
						</ul>		
					</div>			<div id="pages">								<div id="chapter">
				<?php 
if (get_field('collection_images')) {
    $i = 0;
    while (the_repeater_field('collection_images')) {
        $i++;
        ?>
					<div id="page-<?php 
        echo $i;
        ?>
" class="page">						
						<div id="two-column-container" class="gallery">
							<a href="<?php 
        echo get_sub_field('collection_image');
        ?>
"><img src="<?php 
        echo get_sub_field('collection_image');
        ?>
" alt="" style="max-height:100%;max-width:100%;"/></a>
						</div>						
Example #19
0
"><?php 
echo get_field('breadcrumb_parent_title');
?>
 > </a></li><li> <strong><?php 
echo get_field('title');
?>
</strong></li>
						</ul>
						<ul id="controls">
						</ul>		
					</div>
		<div id="pages" class="mobile-scroll">								<div id="chapter">
				<?php 
if (get_field('pages')) {
    $i = 0;
    while (the_repeater_field('pages')) {
        $i++;
        ?>
					<div id="page-<?php 
        echo $i;
        ?>
" class="page show">												<div id="side-container" class="gallery">
							</div>							<div id="main-container" class="text">	
								<?php 
        if ($i == 1) {
            ?>
									
									<h2 class="calendar-title"><?php 
            echo get_field('title');
            ?>
</h2>		
		return $string;
	}
?>



		<?php if (have_posts()) : the_post();?>

		<div class="breadcrumbs_new"><?php breadcrumbs(); ?></div>

		
		<div class="text">
			<p><?php echo short_opis(); ?></p>
		
			<?php 
					while(the_repeater_field('linki_do_filmow')){
						$link = get_sub_field('link');
						
						echo convert_videos($link);
						echo '<div style="display: block; height: 30px;"></div>';
			
					}
			?>
		</div>
			
			
			
	<?php else : ?>
		<h2>---</h2>
	<?php endif; ?>
</div>
Example #21
0
?>

	<h1 class="page-title"><?php 
the_title();
?>
</h1>
	<?php 
if (get_field('featured_at_top') == 'yes') {
    ?>
		<!–Output if toggled ‘yes’–>
			<div class="featured slider cycle-slideshow" data-cycle-auto-height=container >
				<?php 
    if (get_field('featured_slideshow')) {
        ?>
					<?php 
        while (the_repeater_field('featured_slideshow')) {
            ?>
					<?php 
            $image_main_slider = wp_get_attachment_image_src(get_sub_field('featured_slideshow_image'), 'full');
            ?>
						<img src="<?php 
            echo $image_main_slider[0];
            ?>
"style="display: none;" />
					<?php 
        }
        ?>
					 <div class="cycle-pager"></div>
				<?php 
    }
    ?>
Example #22
0
$defaults = array('menu' => 'MOBILE Navigation', 'container' => '', 'menu_class' => '', 'menu_id' => 'mobile-nav');
wp_nav_menu($defaults);
?>
	        </div>
	        <div id="subnav-social">
				<?php 
$defaults = array('menu' => 'Sub Navigation (TOP)', 'container' => '', 'menu_class' => '', 'menu_id' => 'subnav');
wp_nav_menu($defaults);
?>
				<?php 
$other_page = 4;
if (get_field('social_networks', $other_page)) {
    ?>
				<div class="social-networks">
					<?php 
    while (the_repeater_field('social_networks', $other_page)) {
        ?>
					<a href="<?php 
        if (get_sub_field('link_url', $other_page)) {
            the_sub_field('link_url', $other_page);
        } else {
            ?>
#<?php 
        }
        ?>
" target="_blank"<?php 
        if (get_sub_field('title', $other_page)) {
            ?>
 title="<?php 
            the_sub_field('title', $other_page);
            ?>
					        </li>
					    	<?php 
            $x++;
            ?>
						<?php 
        }
        ?>
			        </ul>
			    	<div style="clear:both"></div>
		         
			        <!-- Tab 1 Contents -->
		        <?php 
        $y = 1;
        ?>
		        <?php 
        while (the_repeater_field('conditions', 6)) {
            ?>
					<div id="tab_<?php 
            echo $y;
            ?>
_contents" class="tab_contents <?php 
            echo $y == 1 ? 'tab_contents_active' : '';
            ?>
">
			            <div class="">
							<h3><?php 
            echo get_sub_field('condition_title');
            ?>
</h3>
							<p><?php 
            echo get_sub_field('conditional_text');
Example #24
0
                echo the_title();
                ?>
" width="137" height="104"  /></a></li>
																		
											<?php 
            }
        }
        ?>
									</ul>
									
									<ul class="small-box-container"  id="s6">
										<?php 
        wp_reset_postdata();
        wp_reset_query();
        $i = 0;
        while (the_repeater_field('record_images_6')) {
            $image = get_sub_field('trecord_image');
            $image = $image['url'];
            $i++;
            if ($i < 5) {
                ?>
											
											<li class="small-box b-<?php 
                if ($i == 1) {
                    ?>
1st<?php 
                }
                if ($i == 2) {
                    ?>
2nd<?php 
                }
Example #25
0
						Lo mucho que nos gusta
					</h1>
					<h2>
						chambear contigo
					</h2>
				</hgroup>
				<a class="btn-orange" href="index.php/contacto">
					Contáctanos
				</a>
			</section>
			<!-- /CONTÁCTANOS -->
			<?php 
    if (get_field('imagenes-nosotros')) {
        ?>
				<?php 
        while (the_repeater_field('imagenes-nosotros')) {
            ?>
					<img src="<?php 
            the_sub_field('img-nosotros');
            ?>
"/>
				<?php 
        }
        ?>
			<?php 
    }
    ?>
		<?php 
}
// end of the loop.
?>
Example #26
0
			<img src="<?php 
        the_field('chimical-picture');
        ?>
" alt="<?php 
        the_sub_field('alt');
        ?>
" />
		</div>
		
			<div class="grid">
			    <?php 
        if (get_field('lookbook')) {
            ?>

			        <?php 
            while (the_repeater_field('lookbook')) {
                ?>
			             <div class="pictures"><img src="<?php 
                the_sub_field('images');
                ?>
" alt="<?php 
                the_sub_field('alt');
                ?>
" /></div>
			        <?php 
            }
            ?>

			    <?php 
        }
        ?>
Example #27
0
						<span>País:</span> <?php 
    the_field('pais');
    ?>
					</li>
				</ul>
				<div class="proyecto-desc">
					<?php 
    the_content();
    ?>
				</div>
			</div>
			<?php 
    if (get_field('imagenes-proyecto')) {
        ?>
				<?php 
        while (the_repeater_field('imagenes-proyecto')) {
            ?>
					<img src="<?php 
            the_sub_field('imagen');
            ?>
"/>
				<?php 
        }
        ?>
			<?php 
    }
    ?>
		<!-- /INFO PROYECTO -->
		<?php 
}
// end of the loop.
Example #28
0
            ?>
" alt="<?php 
            the_title();
            ?>
" /></div><?php 
        } else {
        }
        ?>
</div>
		    	<div class="clear"></div>
				<?php 
        if (get_field('callouts')) {
            ?>
				<ul class="callouts">
				<?php 
            while (the_repeater_field('callouts')) {
                ?>
					<li class="three columns">
						<?php 
                if (get_sub_field('photo')) {
                    if (get_sub_field('link_url')) {
                        ?>
<a href="<?php 
                        the_sub_field('link_url');
                        ?>
"><?php 
                    } else {
                    }
                    ?>
<img src="<?php 
                    the_sub_field('photo');
Example #29
0
get_header();
?>

	<section class="container">
		<article class="holding">
			<h1 class="page-title">Welcome to Eaton Fine Art.</h1>
			<?php 
the_content();
?>
		</article>
		<?php 
if (get_field('holding_gallery')) {
    ?>
			<ul id="holding-gallery">
				<?php 
    while (the_repeater_field('holding_gallery')) {
        ?>
					<?php 
        $image_id = get_sub_field('image');
        $thumbnail = wp_get_attachment_image_src($image_id, 'gallery-thumb');
        $thumbnail_url = $thumbnail[0];
        ?>
					<li>
						<img src="<?php 
        echo $thumbnail_url;
        ?>
" alt="<?php 
        echo $gallery_name;
        ?>
">
					</li>
Example #30
0
	function get_thumb(){
		global $post;
		// glowne zdjecie
		$thumb = get_field('zdjecie');
		if (!empty($thumb))
			return $thumb;
		
		//"okladka" galerii zdjec
		$thumb = '';
		while(the_repeater_field('zdjecia')){
			if (!empty($thumb)){continue;};
			$thumb = get_sub_field('zdjecie_galerii');
		}
		if (!empty($thumb))
			return $thumb;
			
			
		//"okladka" galerii VIDEO
		$video = '';
		while(the_repeater_field('linki_do_filmow')){
			if (!empty($video)){ continue; };
			$video = get_sub_field('link');
		}
		$thumb = video_image($video);		
		if (!empty($thumb))
			return $thumb;
		//powinno sie dodac jeszcze wyciaganie pierwszego zdjecia z contentu :)
		//brak zdjecia - domysle teatr baza
		return get_bloginfo('template_directory')."/images/null.gif";	
	}