Current File : /home/kelaby89/muzza.fit/wp-content/plugins/wolf-visual-composer/inc/elements/row.php.bak
<?php
/**
 * Row
 *
 * @package WordPress
 * @subpackage %NAME%
 * @version %VERSION%
 */

if ( ! defined( 'ABSPATH' ) ){
	exit; // Exit if accessed directly
}

/* Removing parameters */
if ( function_exists( 'vc_remove_param' ) ) {
	vc_remove_param( 'vc_row', 'el_id' );
	vc_remove_param( 'vc_row', 'full_width' );
	vc_remove_param( 'vc_row', 'full_height' );
	vc_remove_param( 'vc_row', 'video_bg' );
	vc_remove_param( 'vc_row', 'video_bg_url' );
	vc_remove_param( 'vc_row', 'video_bg_parallax' );
	vc_remove_param( 'vc_row', 'parallax' );
	vc_remove_param( 'vc_row', 'parallax_image' );
	vc_remove_param( 'vc_row', 'parallax_speed_bg' );
	vc_remove_param( 'vc_row', 'parallax_speed_video' );
	vc_remove_param( 'vc_row', 'disable_element' );
	//vc_remove_param( 'vc_row', 'css' );
	//vc_remove_param( 'vc_row', 'background-color' );
}

// Anchor
vc_add_param( 'vc_row', array(
	'type' => 'wvc_textfield',
	'heading' => esc_html__( 'Anchor', '%TEXTDOMAIN%' ),
	'description' => esc_html__( 'An unique identifier for your section (Note: make sure it is unique).', '%TEXTDOMAIN%' ),
	'param_name' => 'el_id',
	'weight' => 1,
) );

// Content type
vc_add_param( 'vc_row', array(
	'type' => 'dropdown',
	'heading' => esc_html__( 'Content type', '%TEXTDOMAIN%' ),
	'param_name' => 'content_type',
	'value' => array(
		sprintf( esc_html__( 'Standard width (%s centered)', '%TEXTDOMAIN%' ), '1140px' ) => 'standard',
		sprintf( esc_html__( 'Small width (%s centered)', '%TEXTDOMAIN%' ), '750px' ) => 'small',
		sprintf( esc_html__( 'Large width (%s centered)', '%TEXTDOMAIN%' ), '98%' ) => 'large',
		sprintf( esc_html__( 'Full width (%s)', '%TEXTDOMAIN%' ), '100%' ) => 'full',
	),
	'weight' => 1,
) );

// Font color
vc_add_param( 'vc_row', array(
	'type' => 'dropdown',
	'heading' => esc_html__( 'Color Skin', '%TEXTDOMAIN%' ),
	'param_name' => 'font_color',
	'value' => array(
		esc_html__( 'Light', '%TEXTDOMAIN%' ) => 'dark',
		esc_html__( 'Dark', '%TEXTDOMAIN%' ) => 'light',
	),
	'weight' => 1,
) );

vc_add_param( 'vc_row', array(
	'type' => 'dropdown',
	'heading' => esc_html__( 'Background type', '%TEXTDOMAIN%' ),
	'param_name' => 'background_type',
	'value' => array(
		esc_html__( 'Default', '%TEXTDOMAIN%' ) => 'default',
		esc_html__( 'Image', '%TEXTDOMAIN%' ) => 'image',
		esc_html__( 'Slideshow', '%TEXTDOMAIN%' ) => 'slideshow',
		esc_html__( 'Video', '%TEXTDOMAIN%' ) => 'video',
		esc_html__( 'Transparent', '%TEXTDOMAIN%' ) => 'transparent',
	),
	'weight' => 1,
) );

vc_add_param( 'vc_row', array(
	'type' => 'colorpicker',
	'heading' => esc_html__( 'Background Color', '%TEXTDOMAIN%' ),
	'param_name' => 'background_color',
	'dependency' => array( 'element' => 'background_type', 'value' => array( 'image' ) ),
	'weight' => 1,
) );

vc_add_param( 'vc_row', array(
	'type' => 'attach_image',
	'heading' => esc_html__( 'Background Image', '%TEXTDOMAIN%' ),
	'param_name' => 'background_img',
	'value' => '',
	'dependency' => array( 'element' => 'background_type', 'value' => array( 'image' ) ),
	'weight' => 1,
) );

vc_add_param( 'vc_row', array(
	'type' => 'dropdown',
	'heading' => esc_html__( 'Background position', '%TEXTDOMAIN%' ),
	'param_name' => 'background_position',
	'value' => array(
		esc_html__( 'center center', '%TEXTDOMAIN%' ) => 'center center',
		esc_html__( 'center top', '%TEXTDOMAIN%' )  => 'center top',
		esc_html__( 'left top', '%TEXTDOMAIN%' ) => 'left top',
		esc_html__( 'right top', '%TEXTDOMAIN%' )  => 'right top',
		esc_html__( 'center bottom', '%TEXTDOMAIN%' )  => 'center bottom',
		esc_html__( 'left bottom', '%TEXTDOMAIN%' )  => 'left bottom',
		esc_html__( 'right bottom', '%TEXTDOMAIN%' ) => 'right bottom',
		esc_html__( 'left center', '%TEXTDOMAIN%' ) => 'left center',
		esc_html__( 'right center', '%TEXTDOMAIN%' ) => 'right center',
	),
	'dependency' => array( 'element' => 'background_type', 'value' => array( 'image' ) ),
	'weight' => 1,
) );

vc_add_param( 'vc_row', array(
	'type' => 'dropdown',
	'heading' => esc_html__( 'Background repeat', '%TEXTDOMAIN%' ),
	'param_name' => 'background_repeat',
	'value' => array(
		esc_html__( 'no repeat', '%TEXTDOMAIN%' ) => 'no-repeat',
		esc_html__( 'repeat', '%TEXTDOMAIN%' ) => 'repeat',
		esc_html__( 'repeat-x', '%TEXTDOMAIN%' ) => 'repeat-x',
		esc_html__( 'repeat-y', '%TEXTDOMAIN%' ) => 'repeat-y',
	),
	'dependency' => array( 'element' => 'background_type', 'value' => array( 'image' ) ),
	'weight' => 1,
) );

vc_add_param( 'vc_row', array(
	'type' => 'dropdown',
	'heading' => esc_html__( 'Background size', '%TEXTDOMAIN%' ),
	'param_name' => 'background_size',
	'value' => array(
		esc_html__( 'cover', '%TEXTDOMAIN%' ) => 'cover',
		esc_html__( 'default', '%TEXTDOMAIN%' ) => 'default',
		esc_html__( 'contain', '%TEXTDOMAIN%' ) => 'contain',
	),
	'dependency' => array( 'element' => 'background_type', 'value' => array( 'image' ) ),
	'weight' => 1,
) );

vc_add_param( 'vc_row', array(
	'type' => 'dropdown',
	'heading' => esc_html__( 'Background Effect', '%TEXTDOMAIN%' ),
	'param_name' => 'background_effect',
	'value' => array(
		esc_html__( 'None', '%TEXTDOMAIN%' ) => 'none',
		esc_html__( 'Parallax', '%TEXTDOMAIN%' ) => 'parallax',
	),
	'dependency' => array( 'element' => 'background_type', 'value' => array( 'image' ) ),
	'weight' => 1,
) );

// Video URL
vc_add_param( 'vc_row', array(
	'type' => 'wvc_video_url',
	'heading' => esc_html__( 'Video URL', '%TEXTDOMAIN%' ),
	'param_name' => 'video_bg_url',
	'value' => '',
	'description' => esc_html__( 'A YouTube or mp4 URL.', '%TEXTDOMAIN%' ),
	'dependency' => array( 'element' => 'background_type', 'value' => array( 'video' ) ),
	'weight' => 1,
) );

// Slideshow images
vc_add_param( 'vc_row', array(
	'type' => 'attach_images',
	'heading' => esc_html__( 'Slideshow Images', '%TEXTDOMAIN%' ),
	'param_name' => 'slideshow_img_ids',
	'dependency' => array( 'element' => 'background_type', 'value' => array( 'slideshow' ) ),
	'weight' => 1,
) );

// Slideshow speed
vc_add_param( 'vc_row', array(
	'type' => 'wvc_textfield',
	'heading' => esc_html__( 'Slideshow Speed', '%TEXTDOMAIN%' ),
	'param_name' => 'slideshow_speed',
	'description' => esc_html__( 'In milliseconds.', '%TEXTDOMAIN%' ),
	'placeholder' => 5000,
	'dependency' => array( 'element' => 'background_type', 'value' => array( 'slideshow' ) ),
	'weight' => 1,
) );

// Full Height
vc_add_param( 'vc_row', array(
	'type' => 'dropdown',
	'heading' => esc_html__( 'Full Height', '%TEXTDOMAIN%' ),
	'param_name' => 'full_height',
	'value' => array(
		esc_html__( 'No', '%TEXTDOMAIN%' ) => '',
		esc_html__( 'Yes', '%TEXTDOMAIN%' ) => 'yes',
	),
	'weight' => 1,
) );

vc_add_param( 'vc_row', array(
	'type' => 'checkbox',
	// 'class' => 'wpb-col-6 wpb-first',
	'label' => esc_html__( 'Add pointing down arrow', '%TEXTDOMAIN%' ),
	'description' => esc_html__( 'Allow user to scroll to the next section when clicking on the arrow', '%TEXTDOMAIN%' ),
	'param_name' => 'arrow_down',
	'dependency' => array( 'element' => 'full_height', 'value' => array( 'yes' ) ),
	'weight' => 1,
) );

vc_add_param( 'vc_row', array(
	'type' => 'wvc_textfield',
	// 'class' => 'wpb-col-6 wpb-last',
	'heading' => esc_html__( 'Arrow Caption', '%TEXTDOMAIN%' ),
	'param_name' => 'arrow_down_text',
	'placeholder' => esc_html__( 'Continue', '%TEXTDOMAIN%' ),
	'dependency' => array( 'element' => 'full_height', 'value' => array( 'yes' ) ),
	'weight' => 1,
) );

// Overlay
vc_add_param( 'vc_row', array(
	'type' => 'dropdown',
	'heading' => esc_html__( 'Add Overlay', '%TEXTDOMAIN%' ),
	'param_name' => 'overlay',
	'value' => array(
		esc_html__( 'No', '%TEXTDOMAIN%' ) => '',
		esc_html__( 'Yes', '%TEXTDOMAIN%' ) => 'yes',
	),
) );

// Overlay color
vc_add_param( 'vc_row', array(
	'type' => 'colorpicker',
	'heading' => esc_html__( 'Overlay Color', '%TEXTDOMAIN%' ),
	'param_name' => 'overlay_color',
	'value' => '#000000',
	'dependency' => array( 'element' => 'overlay', 'value' => array( 'yes' ) ),
) );

// Overlay opacity
vc_add_param( 'vc_row', array(
	'type' => 'wvc_textfield',
	'heading' => esc_html__( 'Overlay Opacity in Oercent', '%TEXTDOMAIN%' ),
	'param_name' => 'overlay_opacity',
	'description' => '',
	'value' => 40,
	'dependency' => array( 'element' => 'overlay', 'value' => array( 'yes' ) ),
) );

// Visibility
vc_add_param( 'vc_row', array(
	'type' => 'dropdown',
	'heading' => esc_html__( 'Visibility', '%TEXTDOMAIN%' ),
	'param_name' => 'hide_class',
	'value' => array(
		esc_html__( 'Always visible', '%TEXTDOMAIN%' ) => '',
		esc_html__( 'Hide on tablet and mobile', '%TEXTDOMAIN%' ) => 'wvc-hide-tablet',
		esc_html__( 'Hide on mobile', '%TEXTDOMAIN%' ) => 'wvc-hide-mobile',
		esc_html__( 'Show on tablet and mobile only', '%TEXTDOMAIN%' ) => 'wvc-show-tablet',
		esc_html__( 'Show on mobile only', '%TEXTDOMAIN%' ) => 'wvc-show-mobile',
		esc_html__( 'Always hidden', '%TEXTDOMAIN%' ) => 'wvc-hide',
	),
) );
Page not found – Hello World !