File: /home/dermova/www/india/wp-content/themes/ri-colias/vc_templates/vc_map/vc_pagebuilder.php
<?php
// ADD attributes Single_image
add_action( 'vc_after_init', 'add_effect_param' );
function add_effect_param() {
$attributes = array(
'type' => 'dropdown',
'heading' => "Image Effect",
'param_name' => 'image_effect',
'value' => array( "no-effect", "affect-zoom","affect-zoom-animation", "affect-plus","affect-border","affect-fast"),
'description' => esc_html__( "Image effect ", 'ri-colias' )
);
vc_add_param( 'vc_single_image', $attributes );
}
// ADD attributes Parallax
add_action( 'vc_after_init', 'add_parallax_param' );
function add_parallax_param() {
$setting = array(
'type' => 'dropdown',
'heading' => __( 'Parallax', 'js_composer' ),
'param_name' => 'parallax',
'value' => array(
__( 'None', 'js_composer' ) => '',
__( 'Simple', 'js_composer' ) => 'content-moving',
__( 'Image', 'js_composer' ) => 'content-moving-image',
__( 'With fade', 'js_composer' ) => 'content-moving-fade',
),
'description' => __( 'Add parallax type background for row (Note: If no image is specified, parallax will use background image from Design Options).', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'is_empty' => true,
),
);
vc_add_param( 'vc_row', $setting );
}