File "animate-image-6.php"
Full Path: /home/tekvhqgl/public_html/wp-content/plugins/digeco-core/elementor/views/animate-image-6.php
File size: 1.24 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* @author RadiusTheme
* @since 1.0
* @version 1.0
*/
namespace radiustheme\Digeco_Core;
use DigecoTheme_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 = '<a ' . $attr . '>' . $data['title'] . '</a>';
}
if ( $attr ) {
$getimg = '<a ' . $attr . '>' .Group_Control_Image_Size::get_attachment_image_html( $data, 'icon_image_size' , 'icon_image' ).'</a>';
}
else {
$getimg = Group_Control_Image_Size::get_attachment_image_html( $data, 'icon_image_size', 'icon_image' );
}
?>
<div class="<?php echo esc_attr( $data['animation_display'] ); ?>">
<div class="default-animate-image animate-image-<?php echo esc_attr( $data['style'] ); ?>">
<div class="figure-holder <?php echo esc_attr( $data['img_hover'] ); ?>">
<div class="translate-<?php echo esc_attr( $data['animation_position'] );?>-50 opacity-animation transition-100 transition-delay-<?php echo esc_attr( $data['delay'] );?>">
<?php echo wp_kses_post($getimg);?>
</div>
</div>
</div>
</div>