<?php
/**
 * The main template file
 * Template name:Our Partners Page
 * 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: {@link https://codex.wordpress.org/Template_Hierarchy}
 *
 * @package WordPress
 * @subpackage Twenty_Fifteen
 * @since Twenty Fifteen 1.0
 */

get_header(); ?>




 <div class="c_containor">
    <div style="opacity:1;transform:translateX(0%) ;" class="choose_us_block opacity"></div>
    <div style="opacity:1;transform:translateX(0%) ;" class="span6 skills_block opacity"> </div>
    <div class="container">
      <div class="partcon" id="about" >
      
      <div class="abouttxt ourpartner_h">
          <div style="opacity:1;transform:translateX(0%) ;" class="choose_us_block opacity">
            <h1><?php the_title(); ?></h1>
          </div>
        </div>
      
        <div class="partner_logo">
          <div style="opacity:1;transform:translateX(0%) ;" class="span6 skills_block opacity">
            <ul>




<?php $attachment_id = get_post_meta(get_the_ID(),'image1',true);   $image=wp_get_attachment_image_src( $attachment_id,'full');  ?>
			<?php   
			$link = get_fields(get_the_ID(),'link_1');
			//echo $link;
			?>
<a href = "<?php echo $link['link_1']; ?>" target = "_blank">
              <li>
			  
			  <img src="<?php echo $image[0]; ?>" alt="">
			
                <div class="blavkcilor1"></div>
              </li>
  </a>





<?php $attachment_id = get_post_meta(get_the_ID(),'image2',true);   $image=wp_get_attachment_image_src( $attachment_id,'full');  ?>
			<?php   
			$link = get_fields(get_the_ID(),'link_2');
			//echo $link;
			?>
<a href = "<?php echo $link['link_2']; ?>" target = "_blank">
              <li>
			  
			  <img src="<?php echo $image[0]; ?>" alt="">
			
                <div class="blavkcilor1"></div>
              </li>
  </a>




<?php $attachment_id = get_post_meta(get_the_ID(),'image3',true);   $image=wp_get_attachment_image_src( $attachment_id,'full');  ?>
 <a href = "<?php echo $link['link_3']; ?>" target = "_blank">            
			<li><img src="<?php echo $image[0]; ?>" alt="">
                <div class="blavkcilor1"></div>
              </li>
			  </a>
<?php $attachment_id = get_post_meta(get_the_ID(),'image4',true);   $image=wp_get_attachment_image_src( $attachment_id,'full');  ?>
 <a href = "<?php echo $link['link_4']; ?>" target = "_blank">             
			 <li class="blogo"><img src="<?php echo $image[0]; ?>" alt="">
                <div class="blavkcilor1"></div>
              </li>
			  </a>
<?php $attachment_id = get_post_meta(get_the_ID(),'image5',true);   $image=wp_get_attachment_image_src( $attachment_id,'full');  ?>
               <a href = "<?php echo $link['link_5']; ?>" target = "_blank">     
			  <li ><img src="<?php echo $image[0]; ?>" alt="">
                <div class="blavkcilor1"></div>
              </li>
			  </a>
<?php $attachment_id = get_post_meta(get_the_ID(),'image6',true);   $image=wp_get_attachment_image_src( $attachment_id,'full');  ?>
 <a href = "<?php echo $link['link_6']; ?>" target = "_blank">             
			 <li class="blogo"><img src="<?php echo $image[0]; ?>" alt="">
                <div class="blavkcilor1"></div>

              </li>
              </a>
	<?php $attachment_id = get_post_meta(get_the_ID(),'image7',true);   $image=wp_get_attachment_image_src( $attachment_id,'full');  ?>
			<?php   
			$link = get_fields(get_the_ID(),'link_7');
			//echo $link;
			?>
<a href = "<?php echo $link['link_7']; ?>" target = "_blank">
              <li>
			  
			  <img src="<?php echo $image[0]; ?>" alt="">
			
                <div class="blavkcilor1"></div>
              </li>
  </a>
<?php $attachment_id = get_post_meta(get_the_ID(),'image8',true);   $image=wp_get_attachment_image_src( $attachment_id,'full');  ?>
<?php   
			//$link = get_fields(get_the_ID(),'link_8');
			//print_R($link);
			//echo $link;
			?>
			 <a href = "<?php echo $link['link_8']; ?>" target = "_blank">
              <li class="blogo"><img src="<?php echo $image[0]; ?>" alt="">
                <div class="blavkcilor1"></div>
              </li>
			  </a>
<?php $attachment_id = get_post_meta(get_the_ID(),'image9',true);   $image=wp_get_attachment_image_src( $attachment_id,'full');  ?>
 <a href = "<?php echo $link['link_9']; ?>" target = "_blank">            
			<li><img src="<?php echo $image[0]; ?>" alt="">
                <div class="blavkcilor1"></div>
              </li>
			 
			  </a>	
              </a>


		<li class="txt1 blogo"><?php echo get_post_meta(get_the_ID(),'text1',true); ?>
                <div class="blavkcilor"></div>
              </li>
              <li class=" txt2"><?php echo get_post_meta(get_the_ID(),'text2',true); ?>
                <div class="blavkcilor"></div>
              </li>
              <li class="txt1 blogo"><?php echo get_post_meta(get_the_ID(),'text3',true); ?>
                <div class="blavkcilor"></div>
              </li>

	 <li class="txt1 "><?php echo get_post_meta(get_the_ID(),'text4',true); ?>
                <div class="blavkcilor"></div>
              </li>
 		<li class="txt1 blogo"><?php echo get_post_meta(get_the_ID(),'text5',true); ?>
                <div class="blavkcilor"></div>
              </li>
           
              <li class="txt1 "><?php echo get_post_meta(get_the_ID(),'text6',true); ?>
                <div class="blavkcilor"></div>
              </li>	
            </ul>
          </div>
        </div>
        
        <div class="clear"></div>
	<?php while(have_posts()):the_post();?><div class="abouttxt">
<div class="choose_us_block opacity" style="opacity: 1; transform: translateX(0%);"><p><?php echo get_post_meta(get_the_ID(),'sub-title',true);?></p></div></div><p><?php the_content();?></p><?php endwhile;?>
      </div>
    </div>
  </div>
  <div class="clear"></div>

	
<?php get_footer(); ?>
