<?php
add_action("init","goldy_brisk_hook",12);
function goldy_brisk_hook(){

	// add read-more button in Our Portfolio

	remove_action('goldy_our_portfolio_loop','goldy_mex_our_portfolio_loop',5);

	add_action('goldy_our_portfolio_loop','goldy_brisk_our_portfolio_loop',5);
	function goldy_brisk_our_portfolio_loop($info_item){
	?>
	<h3><?php echo $info_item['title'];?></h3>	
	<div class="protfolio_img_main">
		<div class="protfolio_images">
			<?php if(!empty( $info_item['image'])){ ?>
				<img src="<?php echo esc_url($info_item['image']); ?>" alt="The Last of us">
			<?php }else{
				?>
				<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/no-thumb.jpg" alt="The Last of us"> 
				<?php
			} 
			?>
		</div>
	</div>
	
	<div class="our_port_containe">
		<div class="our_portfolio_title" >
			<i class="fa fa-window-minimize" aria-hidden="true"></i>
			<p><?php //echo $info_item->subtitle; ?></p>
			<p class="our_portfolio_desc"><?php echo wp_kses_post($info_item['text']); ?></p>
		</div>	
		<div class="our_portfolio_btn">
		<?php if(!empty($info_item['link_url'])){ ?>
			<a href="<?php echo $info_item['link_url']; ?>">
				
				Read More<i class="fa fa-arrow-right"></i>

			</a>
		<?php } ?>
		</div>
	</div>
	<?php
	}

	// change HTML Our Testimonial   

	remove_action('goldy_our_testimonial_loop','goldy_mex_our_testimonial_loop',5);

	add_action('goldy_our_testimonial_loop','goldy_brisk_our_testimonial_loop',5);
	function goldy_brisk_our_testimonial_loop($info_item){
	?>
	<div class="our_testimonial_data_info">
		<div class="our_testimonial_icon">
	  		<i class="fa fa-quote-left"></i>
		</div>
	<div class="testimonials_center_border"></div>
		<div class="testimonials_content">
			<div class="our_testimonials_container">
				<div class="testimonials_image">
					<div class="image_testimonials">
						<?php
						if(!empty($info_item['image'])){
							?>
							<img src="<?php echo esc_url($info_item['image']);  ?>" alt="">
							<?php
						}else{
							?>
							<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/no-thumb.jpg" alt="">								
							<?php
						}
						?>
					</div>
				</div>
				<div class="testimonials_title">
					<h3><?php echo esc_html($info_item['title']) ?></h3>
					<h4><?php echo  esc_attr($info_item['subtitle']) ?></h4>
				</div>
			</div>
			<div class="testinomial_description">
				<p><?php echo wp_kses_post($info_item['text']) ?></p>
			</div>
			
		</div>												
	</div>
	<?php
	}

}
