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/public_html/india/wp-content/plugins/rit-core/inc/shortcode/image-hover.php
<?php

if (!function_exists('rit_shortcode_image_hover')) {
    function rit_shortcode_image_hover($atts)
    {

        $atts = shortcode_atts(
            array(
                'image' => '',
                'title' => '',
                'sub_title' => '',
                'link' => '#',
                'text_link' => 'View More',
                'style' => 1,
                'el_class' => ''

            ), $atts);

        return rit_get_template_part('shortcode', 'image-hover', array('atts' => $atts));
    }
}

add_shortcode('rit_image_hover', 'rit_shortcode_image_hover');

add_action('vc_before_init', 'rit_image_hover_integrate_vc');

if (!function_exists('rit_image_hover_integrate_vc')) {
    function rit_image_hover_integrate_vc()
    {
        vc_map(
            array(
                'name' => esc_html__('RIT Image Hover', RIT_TEXT_DOMAIN),
                'base' => 'rit_image_hover',
                'icon' => 'icon-rit',
                'category' => esc_html__('RIT', RIT_TEXT_DOMAIN),
                'description' => esc_html__('Show Image Hover', RIT_TEXT_DOMAIN),
                'params' => array(
                    array(
                        'type' => 'attach_image',
                        'heading' => esc_html__('Image', RIT_TEXT_DOMAIN),
                        'value' => '',
                        'param_name' => 'image',
                    ),
                    array(
                        'type' => 'textfield',
                        'heading' => esc_html__('Title', RIT_TEXT_DOMAIN),
                        'value' => '',
                        'param_name' => 'title',
                    ),
                    array(
                        'type' => 'textfield',
                        'heading' => esc_html__('Sub Title', RIT_TEXT_DOMAIN),
                        'value' => '',
                        'param_name' => 'sub_title',
                    ),
                    array(
                        'type' => 'textfield',
                        'heading' => esc_html__('Link', RIT_TEXT_DOMAIN),
                        'value' => '',
                        'param_name' => 'link',
                    ),
                    array(
                        'type' => 'textfield',
                        'heading' => esc_html__('Text Link', RIT_TEXT_DOMAIN),
                        'value' => '',
                        'param_name' => 'text_link',
                    ),
                    array(
                        'type' => 'textfield',
                        'heading' => esc_html__( 'Extra class name', RIT_TEXT_DOMAIN ),
                        'param_name' => 'el_class',
                        'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', RIT_TEXT_DOMAIN )
                    )
                    
                )
            )
        );
    }
}