File: /home/dermova/www/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 )
)
)
)
);
}
}