function homeSliders($name = '', $id = 0, $w = '1600', $h = '440')
    {
        $html = '<link rel="stylesheet" type="text/css" href="' . get_bloginfo("template_directory") . '/assets/css/flexslider.css" media="screen" />
		<div class=" nopad" id="home-flexslider-wrapper">
		<div class="flexslider" style="margin:0 auto;">
		<ul class="slides">';
        if (get_field($name, $id)) {
            while (has_sub_field($name, $id)) {
                $img = get_template_directory_uri() . '/tmb.php?src=' . get_sub_field('image', $id) . '&amp;w=' . $w . '&h=' . $h . '&amp;q=90';
                $html .= '<li ><img src="' . $img . '" / >
			  <div class="flex-caption">
			  <div>
			  <h3>' . get_sub_field('title', $id) . '</h3>
			  </div>
			  </div>
			  </li>';
            }
            $html .= '</ul>
			<div class="clear"></div>
			</div>
			</div>
			<script type="text/javascript">
			jQuery(document).ready(function($){
			
			jQuery(\'.flexslider\').flexslider({
			animation: "fade",
			pauseOnHover: true,
			start: function(slider){}
			});
			
			});
			</script>';
        }
        return $html;
    }
/**
 * Check if a given field has a sub field
 * @param str $key The meta key
 * @param mixed $id The post ID
 * @return bool
 * @uses has_sub_field()
 */
function _has_sub_field($key, $id = false)
{
    if (function_exists('has_sub_field')) {
        return has_sub_field($key, $id);
    } else {
        return false;
    }
}
Esempio n. 3
0
/**
 * Changes the context for a sidebar
 *
 * return void
 */
function change_sidebar_context()
{
    global $post, $wp_query, $dr_orig_wp_query, $dr_query_modified;
    $dr_orig_wp_query = $wp_query;
    // Get relationship field, if exists
    while (has_sub_field('relationship', 'option')) {
        if (get_sub_field('post_type') == $post->post_type) {
            $post = get_sub_field('detail_page');
            query_posts(array('p' => $post->ID));
            pw_filter_widgets(get_option('sidebars_widgets'));
            $dr_query_modified = true;
        }
    }
}
    function ImageBlocks($id = 0, $w = '1600', $h = '440')
    {
        $name = 'Image_blocks';
        $html = '<div id="image-blocks-wrapper">
		<div class="row" style="margin-bottom:1.5em;">';
        $popupCounter = 0;
        if (get_field($name, $id)) {
            while (has_sub_field($name, $id)) {
                $img = get_template_directory_uri() . '/tmb.php?src=' . get_sub_field('block_image', $id) . '&amp;w=' . $w . '&h=' . $h . '&amp;q=90';
                if (get_sub_field('block_type', $id) == 'popup') {
                    $html .= '<div class="small-12 medium-6 large-4 columns nopad" >
				  <h3>' . get_sub_field('block_title', $id) . '</h3>
				  <a title="click to view more" onclick="jQuery(\'#popup-div' . $popupCounter . '\').foundation(\'reveal\', \'open\');" 
				  href="javascript:return false;" 
				  class="image-block-links"  style="background-image: url(\'' . $img . '\');">
				  <span><div>' . get_sub_field('block_desc', $id) . ' Read More ></div></span></a></div>';
                    // popup content
                    $html .= '<div id="popup-div' . $popupCounter . '" class="reveal-modal" data-reveal>
				  <div class="row row-wide">
				  <div class="large-12 medium-12 columns" >
				  <h2 class="popup-title">' . get_sub_field('block_title', $id) . '</h2> 
					 
					  <div class="large-3 medium-3 small-12 columns nopad" class="popup-image">
					  <div  style="background-image: url(\'' . $img . '\');" class="popup-image"></div>
					  </div>
					  	
					  <div class="large-9 medium-9 small-12 columns" >
					  ' . get_sub_field('block_popup_content', $id) . '
					  </div>
				  
				  </div></div>
				  <a class="close-reveal-modal" id="close-popup-div">&#215;</a> </div>';
                    $popupCounter++;
                } else {
                    $html .= '<div class="small-12 medium-6 large-4 columns nopad" >
			  <h3>' . get_sub_field('block_title', $id) . '</h3>
			  <a title="click to view more" href="' . get_sub_field('block_link', $id) . '" 
			  class="image-block-links"  style="background-image: url(\'' . $img . '\');">
			  <span><div>' . get_sub_field('block_desc', $id) . ' Read More ></div></span></a></div>';
                }
            }
        }
        $html .= '</div></div>';
        return $html;
    }
    function VideoBlocks($id = 0, $w = '1600', $h = '440')
    {
        $name = 'youtube_videos';
        $html = '<div id="image-blocks-wrapper">
		<div class="row" style="margin-bottom:1.5em;">';
        $popupCounter = 0;
        if (get_field($name, $id)) {
            while (has_sub_field($name, $id)) {
                $html .= '
              <div class="small-12 medium-6 large-4 columns nopad" >
			  <h3>' . get_sub_field('video_title', $id) . '</h3>
			  <iframe class="video-block-iframe"
			  src="https://www.youtube.com/embed/' . get_sub_field('video_id', $id) . '?autoplay=0">
			  </iframe></div>';
            }
        }
        $html .= '</div></div>';
        return $html;
    }
function aps_scholarship_author()
{
    $echo_string = "";
    if (get_field('scholarship_is_author_member') == 'Yes') {
        $echo_string .= '<a href="' . bp_core_get_user_domain(get_field('scholarship_author_member')['ID']) . '">' . get_field('scholarship_author') . '</a>';
    } else {
        $echo_string .= get_field('scholarship_author');
    }
    if (get_field('scholarship_are_there_secondary_authors') === "Yes") {
        while (has_sub_field('scholarship_secondary_authors')) {
            $echo_string .= ", ";
            if (get_sub_field('scholarship_is_author_member') == 'Yes') {
                $echo_string .= '<a href="' . bp_core_get_user_domain(get_sub_field('scholarship_author_member')['ID']) . '">' . get_sub_field('scholarship_author') . '</a>';
            } else {
                $echo_string .= get_sub_field('scholarship_author');
            }
        }
    }
    echo $echo_string;
}
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 
        }
    }
}
  <div class="container">
    <h3 class="text-uppercase text-center"><?php 
    the_field("client_success_title");
    ?>
</h3>
    <!-- Example row of columns -->
    <div class="row">
      <div class="col-md-1 col-xs-1"></div>
      
<?php 
    if (get_field('client_success_strip')) {
        ?>
							 
		<?php 
        $i = 1;
        while (has_sub_field('client_success_strip')) {
            ?>
	
      <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');
            ?>
                top: 0px; left: 0px;width: 100%;height:100%;">
            </div>
        </div>

        <!-- Slides Container -->
        <div u="slides" style="cursor: move; position: absolute; left: 0px; top: 0px; width: 720px; height: 480px;
            overflow: hidden;">
				<?php 
while (have_posts()) {
    the_post();
    ?>
			        <?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 
        ?>
					<h2><?php 
        echo esc_html($title);
        ?>
</h2>
				<?php 
    }
    ?>
				<?php 
    if ($description) {
        ?>
					<h4><?php 
        echo esc_html($description);
        ?>
</h4>
				<?php 
    }
    ?>
				<?php 
    if ($buttons) {
        while (has_sub_field('buttons')) {
            GRAV_BLOCKS::get_link_html('button', 'button');
        }
    }
    ?>
			</div>
		</div>
	</div>

<?php 
}
Esempio n. 11
0
						">
						<div class="inner container" style="<?php 
                    if (get_sub_field('custom_css')) {
                        the_sub_field('custom_css');
                        ?>
; <?php 
                    }
                    ?>
">
						
						<?php 
                    $total_columns = count(get_sub_field('columns', $id));
                    ?>

						<?php 
                    while (has_sub_field('columns', $id)) {
                        ?>
							<?php 
                        switch ($total_columns) {
                            case 2:
                                $class = 'five';
                                break;
                            case 3:
                                $class = 'one-third';
                                break;
                            case 4:
                                $class = 'one-fourth';
                                break;
                            case 5:
                                $class = 'one-fifth';
                                break;
Esempio n. 12
0
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package kp
 */
get_header();
?>

<?php 
$orderby = $_GET['orderby'];
$order = $_GET['order'];
if (!isset($orderby)) {
    while (has_sub_field('date')) {
        $orderby = get_sub_field('start_date');
    }
}
if (!isset($order)) {
    $order = "asc";
}
$args = array('post_type' => 'see');
$loop = new WP_Query($args);
if ($_GET['view'] == 'calendar') {
    $isSelected = " btn-selected";
} else {
    $thisSelected = " btn-selected";
}
?>
</div>
<div class="section" id="about" > 
  <!--container -->
  <div class="container">
    <nav class="side-navigation hide-mobile">
      <ul>
        <li><a title="Welcome" href="#main"><span>Welcome</span></a></li>
        <li><a title="Services" href="#services"><span>Services</span></a></li>
        <li><a title="Testimonials" href="#clients"><span>Testimonials</span></a></li>
        <li><a title="Portfolio" href="#portfolio"><span>Portfolio</span></a></li>
        <li><a class="active" title="About" href="#about"><span>About</span></a></li>
        <li><a title="Contact" href="#contact"><span>Contact</span></a></li>
      </ul>
    </nav>
    <?php 
while (has_sub_field('about_block')) {
    ?>
    <h2 class="animated" data-animation="bounceInDown" data-revert="bounceOutUp">About</h2>
    <div class="clear"></div>
    <span class="line animated" data-animation="bounceInLeft" data-revert="bounceOutRight">&nbsp;</span>
    <div class="sub-head animated"  data-animation="flipInX" data-revert="flipOutX">
      <?php 
    the_sub_field('about_subtitle');
    ?>
    </div>
    <?php 
}
?>
    <ul>
      <?php 
$args = array('post_type' => 'post', 'category_name' => 'blog', 'orderby' => 'post_date', 'posts_per_page' => '1');
Esempio n. 14
0
function psp_phases($id, $style = null)
{
    if ($style == 'psp-shortcode') {
        $psp_phases = '<div class="psp-shortcode-phases">';
    } else {
        $psp_phases = '<div class="psp-row">';
    }
    $i = 0;
    $c = 0;
    while (has_sub_field('phases', $id)) {
        $i++;
        $c++;
        if ($i % 2 == 1 && $style != 'psp-shortcode') {
            $psp_phases .= '</div><div class="psp-row">';
        }
        if ($c == 1) {
            $color = 'blue';
            $chex = '#3299BB';
        } elseif ($c == 2) {
            $color = 'teal';
            $chex = '#4ECDC4';
        } elseif ($c == 3) {
            $color = 'green';
            $chex = '#CBE86B';
        } elseif ($c == 4) {
            $color = 'pink';
            $chex = '#FF6B6B';
        } elseif ($c == 5) {
            $color = 'maroon';
            $chex = '#C44D58';
            $c = 0;
        }
        $psp_phases .= '<div class="psp-phase color-' . $color . '">';
        $completed = 0;
        $tasks = 0;
        $task_completion = 0;
        $completed_tasks = 0;
        if (get_sub_field('auto_progress')) {
            while (has_sub_field('tasks', $id)) {
                $tasks++;
                $task_completion += get_sub_field('status');
                if (get_sub_field('status') == '100') {
                    $completed_tasks++;
                }
            }
            if ($tasks > 1) {
                $completed += ceil($task_completion / $tasks);
            } elseif ($tasks == 1) {
                $completed = 0;
            } else {
                $completed += $task_completion;
            }
        } else {
            $completed = get_sub_field('percent_complete');
        }
        $remaining = 100 - $completed;
        $psp_phases .= '<h3>' . get_sub_field('title') . '</h3>
				
					<div class="psp-phase-overview cf">
						<div class="psp-high-level">
							<ul>
								<li><span>' . $completed . '%</span> Complete</h4>
								<li>';
        if (get_sub_field('tasks', $id)) {
            $psp_phases .= '<span>' . $completed_tasks . ' of ' . $tasks . '</span> tasks completed';
        } else {
            $psp_phases .= '<span>No Tasks</span>';
        }
        $psp_phases .= '</li>
							</ul>
						</div>
						<div class="psp-chart">
							<canvas id="chart-' . $i . '" class="chart-canvas" width="350" height="350"></canvas>
						</div>
						<div class="psp-phase-info">

							
							' . get_sub_field('description') . '
							
							
						</div>
					</div>
				
				
				<script type="text/javascript">
				
				var data' . $i . ' = [
					{
						value: ' . $completed . ',
						color: "' . $chex . '"
					},
					{
						value : ' . $remaining . ',
						color : "#CCCCCC"
					}

				]
					var ctx = document.getElementById("chart-' . $i . '").getContext("2d");
					new Chart(ctx).Doughnut(data' . $i . ');
			
				</script>';
        if (get_sub_field('tasks', $id)) {
            $psp_phases .= '<h4>Tasks</h4>
								    <ul class="psp-task-list">';
            while (has_sub_field('tasks', $id)) {
                $taskCompleted = get_sub_field('status');
                $psp_phases .= '<li class="';
                if ($taskCompleted == '100') {
                    $psp_phases .= 'complete';
                }
                $psp_phases .= '"><strong>' . get_sub_field('task') . '</strong> <span><em class="status psp-' . get_sub_field('status') . '"></em></span></li>';
            }
            $psp_phases .= '</ul>';
        }
        $psp_phases .= '</div>';
    }
    $psp_phases .= '</div>
	</div>';
    return $psp_phases;
}
            </article>
           <?php 
        }
        ?>

           <!-- tipo de bloque: Carrusel -->
            <?php 
        if (get_sub_field('tipo') == 'carrusel') {
            ?>

            <article class="carrusel <?php 
            print $clasesBloque;
            ?>
">
                <?php 
            while (has_sub_field('media')) {
                ?>
                    <figure class="media">
                        <h2 class="titulo"><?php 
                the_sub_field('titulo');
                ?>
</h2>
                        <div class="texto">
                            <?php 
                the_sub_field('texto');
                ?>
                        </div>
                        <img class="imagen" src="<?php 
                the_sub_field('imagen');
                ?>
" alt="<?php 
Esempio n. 16
0
	  <!-- Engineering column -->
      <div class="col-md-6 team-bio-div">
        <div class="center">
          <h3 class="team-category uppercase"><?php 
    the_field("engineering_title");
    ?>
</h3>
        </div>

<?php 
    if (get_field('engineering_strip')) {
        ?>
		<?php 
        $i = 1;
        while (has_sub_field('engineering_strip')) {
            ?>
        <div>
          <div class="image-circle-mask-wrapper">
            <img src="<?php 
            the_sub_field('image');
            ?>
" style="width:300px; <?php 
            if ($i == 2) {
                ?>
margin: -40px 0 0 0;<?php 
            }
            ?>
"/>
          </div>
          <div class="center">
<?php

global $P;
while (the_flexible_field("modules", $P)) {
    if (get_row_layout() == "three_column_content") {
        ?>
     
        <!-- Features Section -->
        <section class="features-intro border">
        <!-- Page Content -->
        <div class="container">

            <!-- Marketing Icons Section -->
            <div class="row">
            <?php 
        while (has_sub_field('three_column_module', 'options')) {
            ?>
                <div class="col-md-4">
                    <div class="panel panel-default">
                        <div class="wow fadeInUp center" data-wow-delay="0.1s">
                            <div class="panel-image">
                                <?php 
            $timg = get_sub_field('threecol_image', 'options');
            ?>
                                <?php 
            if (isset($timg['sizes']['threecol-img'])) {
                ?>
<img src="<?php 
                echo $timg['sizes']['threecol-img'];
                ?>
" alt="<?php 
Esempio n. 18
0
        wp_reset_postdata();
        ?>
							<!-- divider -->
							<div class="text-center"><hr/></div>
							
							<div class="row">
								<div class="col-sm-12 text-center">
									<h2>Wedding Services</h2>
								</div>
							</div>
							<?php 
        if (get_field('wedding_services')) {
            ?>
							
							<?php 
            while (has_sub_field('wedding_services')) {
                ?>
							
							<article id="post-<?php 
                the_ID();
                ?>
" <?php 
                post_class('row clearfix');
                ?>
 role="article" itemscope itemtype="http://schema.org/BlogPosting">
								<div class="col-sm-12 col-md-10 col-md-offset-1 ">
									<h3><?php 
                the_sub_field('service_name');
                ?>
</h3>
									<p><?php 
Esempio n. 19
0
function the_flexible_field($field_name, $post_id = false)
{
    return has_sub_field($field_name, $post_id);
}
Esempio n. 20
0
			<?php 
if (!is_user_logged_in()) {
    ?>
			<div class="sns-login sns-desktop">
				<div><?php 
    //echo do_shortcode('[wordpress_social_login]');
    ?>
</div>
				<h2>SNS Login:</h2>
				<ul class="list-inline">
					<?php 
    $row = 1;
    if (get_field('sns_log_in_list')) {
        ?>
	      				<?php 
        while (has_sub_field('sns_log_in_list')) {
            ?>
							<li>
								<?php 
            the_sub_field('sns_social_link');
            ?>
									<?php 
            the_sub_field('sns_social');
            ?>
								</a>
							</li>
						<?php 
            $row++;
        }
        ?>
					<?php 
									<div class="list">
										<ul class="attachments <?php 
                the_sub_field('ll_title');
                ?>
">
											<li>
												<h4><?php 
                the_sub_field('ll_title');
                ?>
</h4>
											</li>
											<?php 
                if (get_sub_field('link')) {
                    ?>
											<?php 
                    while (has_sub_field('link')) {
                        ?>
												<li>
													<span class="att_icon" aria-hidden="true" data-icon="<?php 
                        the_sub_field('icon_font');
                        ?>
"></span>
													<a href="<?php 
                        the_sub_field('link_url');
                        ?>
" target="<?php 
                        the_sub_field('int_or_ext');
                        ?>
"><?php 
                        the_sub_field('link_text');
                        ?>
Esempio n. 22
0
<?php

/*Template Name: Home*/
get_header();
?>
	<div class="mainbanner">
		<div class="flexslider">
			<ul class="slides">
				<?php 
$row = 1;
if (get_field('home_slider')) {
    ?>
					 <?php 
    while (has_sub_field('home_slider')) {
        ?>
					 	<li><img src="<?php 
        the_sub_field('slider_image');
        ?>
" /></li>
					 <?php 
        $row++;
    }
    ?>
				<?php 
}
?>
			</ul>
		</div>
		<div class="defaultWidth center searchwrap">
			<form method="get" action="<?php 
echo site_url();
    ?>
		    <?php 
}
?>
				</ul>
				<h3><?php 
_e('Photographs', 'Rotary');
?>
</h3>
				<ul class="clearfix" >
					<?php 
if (get_field('rotary_project_picture_gallery')) {
    ?>
						<li class="speakerthumbs">
						<?php 
    while (has_sub_field('rotary_project_picture_gallery')) {
        ?>
						<?php 
        $image = wp_get_attachment_image_src(get_sub_field('rotary_project_picture'), 'full');
        ?>
						<a class="fancybox" rel="gallery1" href="<?php 
        echo $image[0];
        ?>
" title="">
							<?php 
        $image = wp_get_attachment_image_src(get_sub_field('rotary_project_picture'), 'thumbnail');
        ?>
							<img class="alignleft" src="<?php 
        echo $image[0];
        ?>
" alt="" title=""/></a>
           <?php 
$slider_post = array('post_type' => 'inner_slider');
$slider = new WP_Query($slider_post);
?>
            <section class="slider">
                <div class="flexslider">
                    <ul class="slides">
                    	<?php 
while ($slider->have_posts()) {
    $slider->the_post();
    ?>
        <?php 
    if (get_field('slider_image', 1841)) {
        ?>
            <?php 
        while (has_sub_field('slider_image', 1841)) {
            ?>
                	
               
                 <li><img src="<?php 
            the_sub_field('image');
            ?>
" /></li>
                
            <?php 
        }
        ?>
        <?php 
    }
    ?>
    <?php 



</div>
</div>

<div class="col grid_12_of_12">
<?php 
        if (get_field('rehearsal_page_slideshow')) {
            ?>
<div id="rehearsal-space-slideshow">
<?php 
            if (get_field('rehearsal_page_slideshow')) {
                $i = 0;
                while (has_sub_field('rehearsal_page_slideshow')) {
                    $i++;
                    if ($i != 1) {
                        ?>

<?php 
                        $attachment_id = get_sub_field('slideshow_images_for_rehearsal_space');
                        $size = "proportional-crop";
                        $image = wp_get_attachment_image_src($attachment_id, $size);
                        $image_credit = get_sub_field('wedding_image_event_credits');
                        ?>
    <img class="rehearsal-space-slideshow-images" src="<?php 
                        echo $image[0];
                        ?>
" />
  <div class="wrap hpad clearfix center">
    <?php 
scratch_sub_field('header', 'h2');
scratch_sub_field('blurb');
if (get_sub_field('use_custom_columns')) {
    $columns = 'custom';
} else {
    $columns = 4;
}
if (get_sub_field('icon_or_image') === 'Icon') {
    $icon_or_image = 'icon';
} else {
    $icon_or_image = 'image';
}
scratch_sub_layout_declare('columns', $columns);
while (has_sub_field('columns')) {
    scratch_layout_start();
    scratch_sub_link_start('link', 'header');
    if ($icon_or_image === 'icon') {
        scratch_sub_icon_circle('icon');
    } else {
        scratch_sub_image_start('image', 'circle');
        scratch_sub_image_end('image');
    }
    scratch_sub_field('header', 'h3');
    scratch_sub_link_end('link');
    scratch_sub_field('blurb');
    if (get_sub_field('link')) {
        ?>
      <p>
        <a href="<?php 
Esempio n. 27
0
function new_build_i_world_map_exec($id, $overlay = false)
{
    global $iwmparam_array;
    global $apiver;
    //    i_world_map_defaults();
    $simplemap = get_field('interactive_regions', $id);
    if ($simplemap == 'simple') {
        if (get_field('simple_interactive_regions', $id)) {
            $mapinput = '';
            while (has_sub_field('simple_interactive_regions', $id)) {
                $regioncode = imap_place_replace(get_sub_field('region_code'));
                $tooltiptitle = imap_place_replace(get_sub_field('title'));
                $tooltipinfo = imap_place_replace(get_sub_field('tooltip'));
                $actionvalue = imap_place_replace(get_sub_field('action_value'));
                $colorcode = imap_place_replace(get_sub_field('color'));
                $mapinput .= $regioncode . ',' . $tooltiptitle . ',' . $tooltipinfo . ',' . $actionvalue . ',' . $colorcode . ';';
            }
            //            $input = htmlspecialchars($mapinput);
            $input = $mapinput;
        }
    } else {
        $input = get_field('advanced_data_editor', $id);
        //        $input = htmlspecialchars($mapinput);
    }
    $styles = '';
    $overrideh = false;
    //    $placeholder = __("<div class='iwm_placeholder'><img width='32px' src='".plugins_url('imgs/placeholder.png', __FILE__)."'><br>".$mapdata['name']."</div>",'iw_maps');
    //$input = str_replace(array("\r\n", "\r", "\n"), ' ', addslashes($mapdata['places']));
    $usehtml = 1;
    $apiv = "1";
    $apiv = $apiver;
    $bg_color = '#FFFFFF';
    $ina_color = 'transparent';
    $border_color = '#CCCCCC';
    $border_stroke = 0;
    $act_color = '#438094';
    $marker_size = 10;
    $width = "";
    $height = "";
    $aspect_ratio = 1;
    imap_include_responsive_js();
    $tooltipt = 1;
    //none , selection , focus
    $diplaym = get_field('display_mode', $id);
    $interactive = "true";
    $display_mode = $diplaym;
    $areashow = explode(",", get_field('region_to_display', $id));
    $region = $areashow[0];
    $resolution = $areashow[1];
    $map_action = get_field('active_region_action', $id);
    $custom_action = '';
    $projection = "mercator";
    $beforediv = "";
    $afterdiv = "";
    if ($map_action != "none" || $map_action != 'null') {
        if ($map_action == 'i_map_action_content_below') {
            $afterdiv .= "<div id='imap" . $id . "message'></div>";
        }
        if ($map_action == 'i_map_action_content_above') {
            $beforediv = "<div id='imap" . $id . "message'></div>";
        }
    }
    $new_iwm_array = array("apiversion" => $apiv, "usehtml" => $usehtml, "id" => $id, "bgcolor" => $bg_color, "stroke" => $border_stroke, "bordercolor" => $border_color, "incolor" => $ina_color, "actcolor" => $act_color, "width" => $width, "height" => $height, "aspratio" => $aspect_ratio, "interactive" => $interactive, "tooltip" => $tooltipt, "region" => $region, "resolution" => $resolution, "markersize" => $marker_size, "displaymode" => $display_mode, "placestxt" => $input, "action" => $map_action, "custom_action" => '', "projection" => $projection);
    array_push($iwmparam_array, $new_iwm_array);
    i_world_map_scripts($iwmparam_array);
    $style = '';
    if ($overlay == 'base') {
        $style .= "style='pointer-events:visible;' ";
    }
    $class = '';
    $style .= "class='iwm_map_canvas";
    if ($overlay == 'data') {
        $style .= " iwm_data";
    }
    //closing class=""
    $style .= "'";
    //if the size height is overrided with css, we need extra class
    if ($overrideh) {
        $beforediv .= '<div id="iwm_' . $id . '">';
        $afterdiv = '</div>' . $afterdiv;
    }
    return $styles . $beforediv . "<div " . $style . "><div id='map_canvas_" . $id . "' class='i_world_map ' " . $style . ">" . $placeholder . "</div></div>" . $afterdiv;
}
           <?php 
$slider_post = array('post_type' => 'inner_slider');
$slider = new WP_Query($slider_post);
?>
            <section class="slider">
                <div class="flexslider">
                    <ul class="slides">
                    	<?php 
while ($slider->have_posts()) {
    $slider->the_post();
    ?>
        <?php 
    if (get_field('slider_image', $page_id)) {
        ?>
            <?php 
        while (has_sub_field('slider_image', $page_id)) {
            ?>
                	
               
                 <li><img src="<?php 
            the_sub_field('image');
            ?>
" /></li>
                
            <?php 
        }
        ?>
        <?php 
    }
    ?>
    <?php 
Esempio n. 29
0
	<div class="container">
		<div class="row">
			<div class="col-lg-10 col-lg-offset-1">
				<h1 class="push">Frequently Asked Questions</h1>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-12 col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
				<!-- Get FAQ Repeater custom fields from this Page -->
				<?php 
if (get_field('faq')) {
    ?>
					<div class="panel-group" id="accordion">
						<!-- open the loop -->
						<?php 
    while (has_sub_field('faq')) {
        ?>
							<div class="panel panel-default">
								<div class="panel-heading">
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion" href="#collapse<?php 
        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 
echo $layout_count;
?>
-id-<?php 
the_ID();
?>
"
         class="staggered">
  <?php 
if (get_sub_field('icon_or_image') === 'Icon') {
    $icon_or_image = 'icon';
} else {
    $icon_or_image = 'image';
}
?>
  <?php 
while (has_sub_field('rows')) {
    ?>
    <div class="row vpad-2x">
      <div class="wrap hpad clearfix">
        <div class="fivecol first">
          <?php 
    if ($icon_or_image === 'icon') {
        scratch_sub_icon_circle('icon');
    } else {
        scratch_sub_image_start('image', 'circle');
        scratch_sub_image_end('image');
    }
    ?>
        </div>
        <div class="sevencol last">
          <div class="content valign">