<?php
  /**
    tool
  **/
  
  $sections = texas_get_section_default(); 
  $default = $sections['tool'];
  
  $default_content = texas_section_content_default('tool');
 
  $tool_1_description     = get_theme_mod( 'tool_1_description',__( 'Here is your site, or cut short description of the company. Here is your site, or cut short description of the company.', 'texas' ) );
 
  $tool_2_title     = get_theme_mod( 'tool_2_title',__( 'Contact Us', 'texas' ) ); 
 
  $tool_3_title     = get_theme_mod( 'tool_3_title',__( 'Google Map', 'texas' ) ); 
 
  $tool_3_google_map_code     = get_theme_mod( 'tool_3_google_map_code','' );

?>
          
<section id="ct_tool" class="ct_section ct_tool ct_section_13 " >
	<div  id="tool" class="section_content">


        <div class="ct_tool_list container">

          	<div class="row ct_tool_row">
          	  	<div class="col-md-4 tool-1">
					<div class="tool-content-1">	
                        <div class="logo-container">
                        <?php 
                            if ( has_custom_logo() )
                            {
                        ?>
                            <a href="<?php echo esc_url(home_url('/')); ?>" title="<?php esc_attr_e('Logo', 'texas'); ?>">
                                <?php the_custom_logo();?>
                            </a>
                        <?php
                            }else{
                        ?> 
                        
                        <div class="logo-text">
                            <h1><a href="<?php echo esc_url(home_url('/')); ?>"><span class="blogname"><?php bloginfo('name'); ?></span></a></h1>
                            <hr>
                        </div>
                        <?php }?>
                        </div>
                        <div class="clear"></div>   
                        <div class="tool-1-text"><?php echo esc_html($tool_1_description);?></div>
                	</div>
    			</div>

            	<div class="col-md-4 tool-2">
					<div class="tool-content-2">	
						<h2>contact us</h2>
                        <hr>
                        <ul>
						<?php
                          $repeater_value = get_theme_mod( 'repeater_tool_2',$default_content);	

                          if ( ! empty( $repeater_value ) ) :	
                            foreach ( $repeater_value as $row ) : 
                              if ( isset( $row[ 'tool_2_icon' ] ) && !empty( $row[ 'tool_2_icon' ] ) ) :
                        ?>
            					<li><i class="fa <?php echo esc_attr($row[ 'tool_2_icon' ]);?>" aria-hidden="true"></i>
									<?php echo esc_html($row[ 'tool_2_text' ]);?>
                                </li>
                        <?php
                              endif;

                            endforeach;	
                          endif; 
                        ?>

                        </ul>
                        
                   	</div>
               	</div>		           
            
            
            	<div class="col-md-4 tool-3">
					<div class="tool-content-3">	
						<h2><?php echo esc_html($tool_3_title);?></h2>
                        <hr>
                        <div class="google_map">
						<?php
                            if( $tool_3_google_map_code !=='' ){ echo esc_html($tool_3_google_map_code);}
						?>
                        </div>
                   	</div>
				</div>


          	</div><!--div class="row"-->         
            
        </div>


	</div>
	<div class="clear"></div>
</section>