MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/plugins/rit-core/html/shortcode-image-hover.php
<div class="rit-element-builder rit-element-image-hover <?php echo esc_attr(($atts['el_class']) ? $atts['el_class'] : ''); ?>">
    <div class="image-hover-inner">
        <?php if($atts['image']) { ?>
            <a href="<?php echo esc_url($atts['link']); ?>">
                <?php echo wp_get_attachment_image($atts['image'], 'full'); ?>
            </a>
        <?php } ?>
        <?php if($atts['title'] || $atts['sub_title'] || $atts['text_link']) { ?>
            <div class="image-content-hover">
                <div class="border-mask"></div>
                <div class="content">
                    <?php
                        $html = '';
                        if($atts['title']){
                            $html .= '<h3>'. esc_html($atts['title']) .'</h3>';
                        }
                        if($atts['sub_title']){
                            $html .= '<h4>'. esc_html($atts['sub_title']) .'</h4>';
                        }
                        if($atts['text_link']){
                            $html .= '<a href="'.esc_html($atts['link']).'">'.esc_html($atts['text_link']).'</a>';
                        }
                        echo $html;
                    ?>
                </div>
            </div>
        <?php } ?>
    </div>
</div>