HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/KLeeuwen/old.samenbouwen.in/wwwroot/wp-content/themes/samenbouwenin/overons.php
<?php 
/*
 * Template Name: Over ons
 * Description: Over ons
 */


get_header(); ?>


<div class="aftermenubar"></div>
<!-- <?php while ( have_posts() ) : the_post(); 
	the_breadcrumb();
  $foto = get_field('foto'); 
	endwhile;
	rewind_posts();
?> -->

<?php if ( function_exists('yoast_breadcrumb') ) {
  yoast_breadcrumb('<p id="breadcrumbs">','</p>');
} ?>




<div class="row-fluid">
			<div class="span9">
				<h1><?php echo get_the_title(); ?></h1>
				<div class="blueline"></div>
			</div>
		</div>

<div class="row-fluid">
		<div class="span9">
       
            <?php
    // TO SHOW THE PAGE CONTENTS
    while ( have_posts() ) : the_post(); ?> <!--Because the_content() works only inside a WP Loop -->
        <div class="entry-content-page">
            <?php the_content(); ?> <!-- Page Content -->


              

        </div><!-- .entry-content-page -->

    <?php
    endwhile; //resetting the page loop
    wp_reset_query(); //resetting the page query
    ?>
      </div>
<div class="span3"> 
<h3 class="orgtext" id="tekst"> MEER <?php
echo empty( $post->post_parent ) ? get_the_title( $post->ID ) : get_the_title( $post->post_parent );
?></h3>
</div>
	</div>

          <div class="span6" style="width:100%">
        <figure><img border="0" src="<?php echo $foto?>"></figure>
    </div>

    <div class="row-fluid">
      <h3 class="orgtext">Ambassadeurs</h3>
      <div class="blueline"></div>


<?php 
   /* $aboutUsLink = esc_url( get_permalink( get_page_by_title('Over ons')));  */
  $args = array('post_type' => array( 'team'), 'post_status' => 'publish', 'posts_per_page' => -1);
  $query = new WP_Query($args);
  if($query->found_posts) {
    while ( $query->have_posts() ) : $query->the_post();
      $image = get_field('afbeelding');
      $detailfoto = get_field('detailfoto');
      ?>             

            <div class="span2" onclick="window.location='<?php echo get_permalink(); ?>'" style="margin-bottom:30px; width: 212px; height: 212px;">
            	<div style="cursor:pointer; border: 1px solid #223a54; text-align:center;width: 212px; height: 212px;">
                	<img src="<?php echo $detailfoto; ?>" style="max-height: 210px;width: auto;">
		        </div>
		        <div class="teaminfo">                
	         		<div class="greyboxt">
	           			<b><?php echo strtoupper(get_the_title());?></b>          
	          		</div>                
	            </div>
		    </div>  
<?php endwhile; 
  } ?>                    

        <div class="blueline"></div>

    		<?php
  if($post->post_parent) {
  $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
  $titlenamer = get_the_title($post->post_parent);
  }

  else {
  $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
  $titlenamer = get_the_title($post->ID);
  }
  if ($children) { ?>
  <ul>
  <?php echo $children; ?>
  </ul>

<?php } ?>
    	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : endif; ?>
    </div>

</div>
	<?php get_footer(); ?>