function show_article() { ?> <article id="<?php the_sub_field('id'); ?> " class="Section__article <?php the_sub_field('class'); ?> "> <?php if (get_row_layout() == 'html') { Show_html(); } ?> </article> <?php // }
function ml_slideshow() { //THIS SLIDESHOW FUNCTION CAN BE USED FOR BOTH SLIDESHOWS //THAT NEED TO LIVE ON THE OPTIONS PAGE OR SINGLE PAGE $ss = 'field_simple_slideshow'; $content = 'content'; $img = 'image'; $options = false; ?> <section id = "hero" class="hero"> <div class="slider_img cycle-slideshow" data-cycle-swipe=true data-cycle-pager-template="<span class = 'icon pager-icon'></span>" data-cycle-slides="> div.slide" > <div class="cycle-pager"></div> <?php if (have_rows($ss)) { while (have_rows($ss)) { the_row(); ?> <div class = "slide"> <?php the_sub_field($content); ?> <img src="<?php the_sub_field($img); ?> " /> </div> <?php } } ?> </div><!--cycle--> </section> <?php }
function plankton_all_testimonails() { if (get_field('testimonials')) { while (has_sub_field('testimonials')) { echo '<section>'; $attachment_id = get_sub_field('logo'); $size = "thumbnail"; // (thumbnail, medium, large, full or custom size) $image = wp_get_attachment_image_src($attachment_id, $size); ?> <h3><?php the_sub_field('client_name'); ?> </h3> <?php if (get_sub_field('logo') != '') { ?> <img class="alignleft" src="<?php echo $image[0]; ?> " /> <?php } else { ?> <img src="<?php bloginfo('stylesheet_directory'); ?> /img/mini.png" class="alignleft" /> <?php } the_sub_field('the_testimonial'); ?> </section> <?php } } }
?> <tr> <td><?php the_sub_field('class'); ?> </td> <td><?php the_sub_field('session_name'); ?> </td> <td><?php the_sub_field('start'); ?> </td> <td><?php the_sub_field('end'); ?> </td> </tr> <?php } echo '</table>'; } $i++; } } ?> <div class="right" itemprop="text"> <?php
<?php if (have_rows('menu_items')) { while (have_rows('menu_items')) { the_row(); ?> <div class="menu__item-wrapper"> <div class="menu__item"><?php the_sub_field('menu_item'); ?> </div> <div class="menu__price"><?php the_sub_field('menu_item_price'); ?> </div> <div class="menu__description"><?php the_sub_field('menu_item_description'); ?> </div> </div> <?php } //menu_items } else { } //menu_items ?> </div> <?php }
?> > <?php if (have_rows('membro')) { while (have_rows('membro')) { the_row(); ?> <div class="cadaMembro"> <?php $image = get_sub_field('foto'); $tamanho = 'pessoas'; $pessoa = $image['sizes'][$tamanho]; echo '<div class="miniBio">'; the_sub_field('mini-bio'); echo '</div>'; echo '<img src="' . $pessoa . '" class="foto">'; ?> </div> <?php } } ?> <div id="trabalheConosco"> <h2>Trabalhe Conosco</h2> <a href="http://www.vagas.com.br/vagas-de-precon" target="_blank" class="verMais">Vagas</a> </div> <br class="clear">
<div class="col-md-2 lrpad10"> <div class="panel"> <img class="center-block" src="<?php the_sub_field('icon'); ?> " /> <h1 class="text-center"><?php the_sub_field('price'); ?> </h1> <h2 class="text-center"><?php the_sub_field('title'); ?> </h2> <p><?php the_sub_field('content'); ?> </p> </div> </div> <?php $i++; } ?> <?php } ?> <div class="col-md-1 col-xs-1"></div>
<div class="m-all t-1of4 d-1of4"> <a href="<?php the_sub_field('link'); ?> "><img src="<?php the_sub_field('image'); ?> " alt="<?php the_sub_field('title'); ?> "></a> <h4><a href="<?php the_sub_field('link'); ?> "><?php the_sub_field('title'); ?> </a></h4> </div> <?php } } else { } ?> </div> <!--END RECENT PROJECTS-->
?> " method="post" class="newsletter" style="<?php $image = get_sub_field('image'); if ($image) { if (is_array($image)) { $image = $image['url']; } echo "background-image: url(" . f('img/pattern.png') . "), url({$image});"; } ?> " target="_blank"> <fieldset class="wrap"> <legend class="heading"><?php the_sub_field('title'); ?> </legend> <input type="hidden" name="ml-submit" value="1"> <input type="email" name="fields[email]" autocapitalize="off" autocorrect="off" placeholder="<?php the_sub_field('placeholder'); ?> " aria-label="<?php the_sub_field('placeholder'); ?> " required aria-required="true"> <button type="submit" class="button"><?php the_sub_field('submit_label'); ?> </button> </fieldset> </form>
<div class="row"> <div class="col-lg-8 col-lg-offset-2 top bottom"> <?php // loop through the rows of data while (have_rows('testimonials')) { the_row(); ?> <div class="col-lg-4 testimonial"> <p><?php the_sub_field('quote'); ?> </p> <p class="uppercase handles"><a href="http://twitter.com/<?php the_sub_field('twitter_handle'); ?> "><strong><?php the_sub_field('twitter_handle'); ?> </strong></a></p> </div> <?php } ?> </div> </div> </div> <?php } else { // no rows found }
$tabID = str_replace(' ', '', get_sub_field('tab_label')); echo '<li role="presentation" class="' . ($count == 0 ? "active" : "") . '"><a href="#' . $tabID . '" aria-controls="' . $tabID . '" role="tab" data-toggle="tab">'; the_sub_field('tab_label'); echo '</a></li>'; $count++; } echo '</ul>'; // tab content second echo '<div class="tab-content">'; $count = 0; while (have_rows('tabs')) { the_row(); // display a sub field value $tabID = str_replace(' ', '', get_sub_field('tab_label')); echo '<div role="tabpanel" class="tab-pane' . ($count == 0 ? " active" : "") . '" id="' . $tabID . '">'; the_sub_field('tab_content'); echo '</div>'; $count++; } echo ' </div> </div> </section> '; } else { // no rows found } ?> <?php $btm_content = get_field('btm_content');
"<?php } ?> <?php if (get_sub_field('anchor_label')) { ?> data-label="<?php the_sub_field('anchor_label'); ?> "<?php } ?> class="row clients"> <div class="container"> <h1 class="section-title"><?php the_sub_field('section_title'); ?> </h1> <ul> <?php foreach ($terms as $term) { ?> <li> <?php $taxonomy = $term->taxonomy; $term_id = $term->term_taxonomy_id; $thumbnail = get_field('client_logo', $taxonomy . '_' . $term_id); $image_size = array('width' => 200); $image_url = get_image($thumbnail, $image_size); ?>
$classList .= get_sub_field('right_bracket') ? " rightBracket" : ""; ?> <div class="<?php echo $classList; ?> "> <div class="Wrapper"> <?php // two column text if (get_sub_field('column') == "2") { ?> <p class="twoCol"><?php the_sub_field('text'); ?> </p> <?php // One column text } else { ?> <p><?php the_sub_field('text'); ?> </p> <?php } ?> </div> </div> <?php }
function hbmi_display_fc() { // loop through the rows of data while (have_rows('flexible_content')) { the_row(); // "Hero" Layout if (get_row_layout() === 'hero_row') { $bg_image = get_sub_field('hero_image'); ?> <section class="row content-section hero-row <?php the_sub_field('css_class'); ?> " style="background: url(<?php echo $bg_image['url']; ?> ); background-size: cover;"> <div class="wrap"> <div class="heading-container-wrap"> <div class="hero-content"> <?php if (get_sub_field('hero_content')) { the_sub_field('hero_content'); } ?> </div> </div> </div> </section> <?php } elseif (get_row_layout() === 'row_with_heading') { $bg_color = get_sub_field('background_color'); ?> <section class="row content-section <?php echo the_sub_field('css_class'); ?> " style="background-color: <?php echo $bg_color; ?> ;"> <div class="wrap"> <div class="heading-wrap"> <h2 class="section-heading"> <?php if (get_sub_field('section_heading')) { the_sub_field('section_heading'); } ?> </h2> </div> <div class="content-area"> <?php if (get_sub_field('content_area')) { the_sub_field('content_area'); } ?> </div> </div> </section> <?php } elseif (get_row_layout() === 'row_without_heading') { $background_image = get_sub_field('background_image') ? get_sub_field('background_image') : ''; ?> <section class="row content-section <?php the_sub_field('css_class'); ?> " style="background: url(<?php echo $background_image['url']; ?> ); background-size: cover;"> <div class="wrap"> <div class="content-area"> <?php if (get_sub_field('content_area')) { the_sub_field('content_area'); } ?> </div> </div> </section> <?php } } }
?> font-regular"> <?php the_sub_field("block_simple_button_text"); ?> </p> </div> <a href="<?php the_sub_field("block_simple_button_link"); ?> " class="button uppercase color-white background-<?php the_sub_field('block_simple_button_color_button'); ?> font-size-16 margin-top-30 display-inline-block"> <?php the_sub_field("block_simple_button_label_button"); ?> </a> <?php if (get_sub_field('block_simple_title_button_illustration')) { ?> <div class="site-banner--has-train position-absolute background-white"> </div> <?php } else { // field_name returned false ?> <?php } // end of if field_name logic
<?php while (have_rows('class_type_class')) { the_row(); ?> <div> <?php while (have_rows('class_type_details')) { the_row(); ?> <div class="accor_cont"> <h4><?php the_sub_field('class_name'); ?> </h4> <p><?php the_sub_field('class_description'); ?> </p> </div> <?php } ?> </div> <?php } ?> </div> </div> </div> </div> <section id="list_story" class="container marbot20">
<?php if (get_field('brochures_images')) { ?> <?php while (has_sub_field('brochures_images')) { ?> <?php if (get_sub_field('images')) { ?> <div> <img u="image" src="<?php echo the_sub_field('images'); ?> " /> <img u="thumb" src="<?php echo the_sub_field('images'); ?> " /> </div> <?php } ?> <?php } ?> <?php } ?> <?php } ?>
</ul> </div> </div> <script> (function($) { var locations = [ <?php while (have_rows('map')) { the_row(); $location = get_sub_field('map'); ?> ['<div class="infowindow">'+ '<h3 class="infowindow__title f-16 m-bottom-0"><?php the_sub_field("places_name"); ?> </h3>'+ '<div class="infowindow__content">'+ '</div>', <?php echo !empty($location['lat']) ? $location['lat'] : '0'; ?> , <?php echo !empty($location['lng']) ? $location['lng'] : '0'; ?> ], <?php } wp_reset_query(); ?>
the_sub_field('event_date'); ?> </p> </div> <div class="slt-info"> <p class="slt-member-title"><?php the_sub_field('event_title'); ?> </p> <p class="slt-member-info"><?php the_sub_field('event_excerpt'); ?> </p> <p class="slt-member-info"><?php the_sub_field('event_time'); ?> </p> </div> </article> <?php } } else { echo 'No Events found'; } ?> <?php
<?php if (have_rows('steps')) { while (have_rows('steps')) { the_row(); ?> <div class="col-sm-4"> <div class="icon-block"> <img src="<?php the_sub_field('step_image'); ?> " style="max-height: 140px;" alt="How to get started step"> </div> <?php the_sub_field('step_text'); ?> </div> <?php } } ?> </div> </div> </div> </section> </section> <section class="container"> <?php
?> <i class="fa fa-chevron-right" ></i></a> </div> <div class="a-aside__content"> <?php if (have_rows('vantagens_adesao')) { ?> <ul class="a-aside__list"> <li class="m-b-25"><?php _e('Vantagens', 'turim'); ?> </li> <?php while (have_rows('vantagens_adesao')) { the_row(); ?> <li> <?php the_sub_field('vantagem_adesao'); ?> </li> <?php } ?> </ul> <?php } ?> </div> </div> <?php echo $site->get_partial('modals/adesao', array('ajax' => $ajax));
the_field('subtituloClientes', 'option'); ?> </p> <div id="slider-filmstrip" class="flexslider FilmstripSlider-contenido"> <ul class="slides"> <?php while (have_rows('clientesFelices', 'option')) { the_row(); ?> <li class="FilmstripSlider-slide"> <a href="<?php the_sub_field('url', 'option'); ?> "> <img class="FilmstripSlider-slideImagen" src="<?php the_sub_field('logo', 'option'); ?> " alt=""> </a> </li> <?php } ?> </ul> </div> </div> <figure class="FilmstripSlider-figure"> <img src="<?php echo get_plantilla_url() . '/images/filmstrip.png'; ?>
the_sub_field('id'); ?> " class="collapsed"> <i class="glyphicon glyphicon-triangle-right"></i><i class="glyphicon glyphicon-triangle-bottom"></i> <?php the_sub_field('question'); ?> </a> </h4> </div> <div id="collapse<?php the_sub_field('id'); ?> " class="panel-collapse collapse"> <div class="panel-body"> <?php the_sub_field('answer'); ?> </div> </div> </div> <?php } ?> <!-- close the loop --> </div> <?php } ?> <!-- end of Repeater custom fields and dynamic content --> </div> </div>
</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. ?> </section> <!-- PROYECTO -->
?> "><?php the_sub_field('contact_website'); ?> </a></span> <span class="contact-field"><i class="fa fa-envelope-o"></i><?php the_sub_field('contact_email'); ?> </span> <span class="contact-field"><i class="fa fa-phone"></i><?php the_sub_field('contact_telefoonnummer'); ?> </span> <span class="contact-field"><?php the_sub_field('contact_omschrijving'); ?> </span> </div> </li> <?php } ?> </ul> <?php } ?> </section> <?php
if (get_sub_field('desc')) { ?> <h2><span><?php the_sub_field('desc'); ?> </span></h2> <?php } ?> <?php if (get_sub_field('link_url')) { ?> <p><a href="<?php the_sub_field('link_url'); ?> " class="read-more"><?php the_sub_field('link_text'); ?> </a></p> <?php } ?> </div> </li> <?php } ?> </ul> </div> <?php }
<div id="header-buttons-holder"> <?php while (have_rows('option_headerbuttons', 'option')) { the_row(); ?> <a href="<?php the_sub_field('link'); ?> "<?php if (get_sub_field('cond_targetblank')) { echo ' target="_blank"'; } ?> class="button"> <?php the_sub_field('name'); ?> </a> <?php } ?> </div> </div> <?php }
"><?php the_field('email_address', 'options'); ?> </a> </address> <?php if (have_rows('certifications', 'options')) { ?> <ul class="footer-certifications"> <?php while (have_rows('certifications', 'options')) { the_row(); ?> <li> <a href="<?php the_sub_field('link'); ?> " target="_blank"> <img src="<?php the_img_attr(get_sub_field('image'), 'src'); ?> " alt="<?php the_img_attr(get_sub_field('image'), 'alt'); ?> "> </a> </li> <?php } ?> </ul>
?> "> </a> </div> </div> <div class="partner-info"> <p><?php the_sub_field('description'); ?> </p> <p>Website: <a href="<?php the_sub_field('link'); ?> "><?php the_sub_field('website'); ?> </a></p> </div> </div> <!-- End of Partner Section --> <?php } ?> <?php } ?>
* * @package Mikkel Tschentscher * @subpackage mikkeltschentscher.dk * @since Version 2.0 * @author Mikkel Tschentscher * */ ?> <?php if (have_rows('bullet_list')) { ?> <ul> <?php while (have_rows('bullet_list')) { the_row(); ?> <li> <?php the_sub_field('bullet_icon'); ?> <?php the_sub_field('bullet_text'); ?> </li> <?php } ?> </ul> <?php }