HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wptrinityconsulting/wp-content/plugins/finbuzz-core/elementor/views/info-box-5.php
<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */

namespace radiustheme\Finbuzz_Core;
use FinbuzzTheme_Helper;
use Elementor\Utils;
use Elementor\Group_Control_Image_Size;
extract($data);

$attr = '';
if ( !empty( $data['url']['url'] ) ) {
	$attr  = 'href="' . $data['url']['url'] . '"';
	$attr .= !empty( $data['url']['is_external'] ) ? ' target="_blank"' : '';
	$attr .= !empty( $data['url']['nofollow'] ) ? ' rel="nofollow"' : '';
	
}
//title url

$title_attr = '';
if ( !empty( $data['title_url']['url'] ) ) {
	$title_attr  = 'href="' . $data['title_url']['url'] . '"';
	$title_attr .= !empty( $data['title_url']['is_external'] ) ? ' target="_blank"' : '';
	$title_attr .= !empty( $data['title_url']['nofollow'] ) ? ' rel="nofollow"' : '';
	$title = '<a ' . $title_attr . '>' . $data['title'] . '</a>';
	
}
else {
	$title = $data['title'];
}


$cat_attr = '';
if ( !empty( $data['cat_url']['url'] ) ) {
	$cat_attr  = 'href="' . $data['cat_url']['url'] . '"';
	$cat_attr .= !empty( $data['cat_url']['is_external'] ) ? ' target="_blank"' : '';
	$cat_attr .= !empty( $data['cat_url']['nofollow'] ) ? ' rel="nofollow"' : '';
	$cat = '<a ' . $cat_attr . '>' . $data['cat'] . '</a>';
	
}
else {
	$cat = $data['cat'];
}



$btn = '<a class="read-more-btn" ' . $attr . '>'.'<i class="fas fa-link"></i>' .'</a>';

$getimg = Group_Control_Image_Size::get_attachment_image_html( $data, 'info_5_image_size', 'info_5_image' );

?>
<div class="info-box info-<?php echo esc_attr( $data['style'] );?>">
	<div class="info-item">
		<?php if($getimg){
			echo wp_kses_post( $getimg );
		} ?>
		<div class="info-content">
			<div class="info-category">
                <?php if ( !empty( $data['cat'] ) ) { ?>
                    <?php echo wp_kses_post( $cat);?>
                <?php } ?>
            </div>
			<?php if ( !empty( $data['title'] ) ) { ?>
				<h3 class="info-title"><?php echo wp_kses_post( $title );?></h3>
			<?php }  ?>

		</div>
		<?php if ( $data['button_display']  == 'yes' ) { ?>
			<div class="link-shape-box">
				<div class="link-shape">
					<div class="info-button">
					<?php echo wp_kses_post( $btn );?>
					</div>
				</div>
			</div>
		<?php } ?>
	</div>
</div>