 <?php
		$image = get_field('mm_image');
		$size = 'memor';
			if($image){
			$thumb = $image['sizes'][$size];
			}
		?>



    		<div class="member-loop mht">
           
            <?php if($thumb)  { ?>
         <div class="member-img" data-mh="image">
           <a href="<?php the_permalink(); ?>">         
           <img src="<?php echo $thumb; ?>" alt="<?php the_title() ?>" />
           </a>
         
         </div> <!--m-img-->                  
                              
        <?php } else { ?>
        
           <div class="member-img no-img" data-mh="image">
          <a href="<?php the_permalink(); ?>">    
              <img src="<?php bloginfo ('template_url'); ?>/images/nomember.png"  alt="<?php the_title() ?>" />          
           </a>
           </div><!--m-img-->
         <?php } ?>     
        	
        <h3 class="m-title">
         <a href="<?php the_permalink(); ?>">   
          <?php 
			 $pref = get_field ('pref');
			 if ((get_field ('pref'))&&($pref !='none')) { ?>
             <span><?php the_field ('pref'); ?></span>
             <?php } ?>
             <span><?php the_field ('mem_first_name'); ?></span>
              <span><?php the_field ('mm_last_name'); ?></span>
             </a>
          </h3>
          
          <div class="years">
          <?php the_field ('from_year'); ?> - <?php the_field ('mm_to_year'); ?>
          </div>
          
</div><!--loop-->