????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.55 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.eu/wp-content/plugins/fusion-builder/shortcodes/ |
Upload File : |
<?php
/**
* Column shortcode.
*
* @since 1.0
* @param array $atts The attributes array.
* @param string $content The content.
*/
function fusion_builder_column_inner( $atts, $content = '' ) {
// @codingStandardsIgnoreStart
global $inner_column, $global_column_inner_array, $inner_columns, $is_IE, $is_edge;
// @codingStandardsIgnoreEnd
$content_id = get_the_id();
extract( shortcode_atts(
array(
'hide_on_mobile' => fusion_builder_default_visibility( 'string' ),
'class' => '',
'id' => '',
'background_color' => '',
'background_image' => '',
'background_position' => 'left top',
'background_repeat' => 'no-repeat',
'border_style' => '',
'border_size' => '',
'border_color' => '',
'margin_top' => '',
'margin_bottom' => '',
'row_column_index' => '',
'spacing' => '4%',
'padding' => '',
'animation_type' => '',
'animation_direction' => 'left',
'animation_speed' => '0.3',
'animation_offset' => ( class_exists( 'Avada' ) ) ? Avada()->settings->get( 'animation_offset' ) : '',
'center_content' => 'no',
'type' => '1_3',
'link' => '',
'hover_type' => 'none',
'min_height' => '',
/* 'last' => 'no', // Deprecated. use css last-child instead. */
), $atts
) );
$style = '';
$classes = '';
$wrapper_classes = 'fusion-column-wrapper';
$wrapper_style = '';
$wrapper_style_bg = '';
$href_link = '';
$last = 'no';
$current_row = '';
$current_column_type = '';
if ( '' === $margin_bottom ) {
$margin_bottom = FusionBuilder::get_theme_option( 'col_margin', 'bottom' );
} else {
$margin_bottom = FusionBuilder::get_value_with_unit( $margin_bottom );
}
if ( '' === $margin_top ) {
$margin_top = FusionBuilder::get_theme_option( 'col_margin', 'top' );
} else {
$margin_top = FusionBuilder::get_value_with_unit( $margin_top );
}
if ( $border_size ) {
$border_size = FusionBuilder::validate_shortcode_attr_value( $border_size, 'px' );
}
// If there is no map of columns, we must use fallback method like 4.0.3.
if ( ( ! isset( $global_column_inner_array[ $content_id ] ) || ! array( $global_column_inner_array[ $content_id ] ) || 0 === count( $global_column_inner_array[ $content_id ] ) ) && 'no' !== $spacing ) {
$spacing = 'yes';
}
// Set the row and column index as well as the column type for the current column.
if ( '' !== $row_column_index ) {
$row_column_index = explode( '_', $row_column_index );
$current_row_index = $row_column_index[0];
$current_column_index = $row_column_index[1];
$current_row = $global_column_inner_array[ $content_id ][ $current_row_index ];
if ( isset( $current_row ) && is_array( $current_row ) ) {
$current_row_number_of_columns = count( $current_row );
$current_column_type = $current_row[ $current_column_index ][1];
}
}
// Column size value.
switch ( $type ) {
case '1_1' :
$column_size = 1;
$classes .= ' fusion-one-full';
break;
case '1_4' :
$column_size = 0.25;
$classes .= ' fusion-one-fourth';
break;
case '3_4' :
$column_size = 0.75;
$classes .= ' fusion-three-fourth';
break;
case '1_2' :
$column_size = 0.50;
$classes .= ' fusion-one-half';
break;
case '1_3' :
$column_size = 0.3333;
$classes .= ' fusion-one-third';
break;
case '2_3' :
$column_size = 0.6666;
$classes .= ' fusion-two-third';
break;
case '1_5' :
$column_size = 0.20;
$classes .= ' fusion-one-fifth';
break;
case '2_5' :
$column_size = 0.40;
$classes .= ' fusion-two-fifth';
break;
case '3_5' :
$column_size = 0.60;
$classes .= ' fusion-three-fifth';
break;
case '4_5' :
$column_size = 0.80;
$classes .= ' fusion-four-fifth';
break;
case '5_6' :
$column_size = 0.8333;
$classes .= ' fusion-five-sixth';
break;
case '1_6' :
$column_size = 0.1666;
$classes .= ' fusion-one-sixth';
break;
}
// Map old column width to old width with spacing.
$map_old_spacing = array(
'0.1666' => '13.3333%',
'0.8333' => '82.6666%',
'0.2' => '16.8%',
'0.4' => '37.6%',
'0.6' => '58.4%',
'0.8' => '79.2%',
'0.25' => '22%',
'0.75' => '74%',
'0.3333' => '30.6666%',
'0.6666' => '65.3333%',
'0.5' => '48%',
);
$old_spacing_values = array(
'yes',
'Yes',
'No',
'no',
);
// Check if all columns are yes, no, or empty.
$fallback = true;
if ( is_array( $current_row ) && 0 !== count( $global_column_inner_array[ $content_id ] ) ) {
foreach ( $current_row as $column_space ) {
if ( isset( $column_space[0] ) && ! in_array( $column_space[0], $old_spacing_values ) ) {
$fallback = false;
}
}
}
// If not using a fallback, work out first and last from the generated array.
if ( ! $fallback ) {
if ( false !== strpos( $current_column_type, 'first' ) ) {
$classes .= ' fusion-column-first';
}
if ( false !== strpos( $current_column_type, 'last' ) ) {
$classes .= ' fusion-column-last';
$last = 'yes';
} else {
$last = 'no';
}
// If we are using the fallback, then work out first and last using global var.
} else {
$last = '';
if ( ! $inner_columns ) {
$inner_columns = 0;
}
if ( 0 === $inner_columns ) {
$classes .= ' fusion-column-first';
}
$inner_columns += $column_size;
if ( 0.990 < $inner_columns ) {
$last = 'yes';
$inner_columns = 0;
}
if ( 1 < $inner_columns ) {
$last = 'no';
$inner_columns = $column_size;
$classes .= ' fusion-column-first';
}
if ( 'yes' === $last ) {
$classes .= ' fusion-column-last';
}
}
// Background.
$background_color_style = '';
if ( ! empty( $background_color ) ) {
$alpha = 1;
if ( class_exists( 'Avada_Color' ) ) {
$alpha = Avada_Color::new_color( $background_color )->alpha;
}
if ( empty( $background_image ) || 1 > $alpha ) {
$background_color_style = 'background-color:' . esc_attr( $background_color ) . ';';
if ( ( 'none' === $hover_type || empty( $hover_type ) ) && empty( $link ) ) {
$wrapper_style .= $background_color_style;
} else {
$wrapper_style_bg .= $background_color_style;
}
}
}
$background_image_style = '';
if ( ! empty( $background_image ) ) {
$background_image_style .= "background-image: url('" . esc_attr( $background_image ) . "');"; }
if ( ! empty( $background_position ) ) {
$background_image_style .= 'background-position:' . esc_attr( $background_position ) . ';';
}
if ( ! empty( $background_repeat ) ) {
$background_image_style .= 'background-repeat:' . esc_attr( $background_repeat ) . ';';
if ( 'no-repeat' === $background_repeat ) {
$background_image_style .= '-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;';
}
}
// @codingStandardsIgnoreStart
if ( ( ! $is_IE && ! $is_edge ) || ( 'none' !== $hover_type || ( ! empty( $hover_type ) && 'none' !== $hover_type ) || ! empty( $link ) ) ) {
$wrapper_style_bg .= $background_image_style;
}
// @codingStandardsIgnoreEnd
// Border.
if ( ! empty( $border_size ) ) {
$wrapper_style .= 'border-width: ' . esc_attr( $border_size ) . ';';
$wrapper_style .= 'border-color: ' . esc_attr( $border_color ) . ';';
$wrapper_style .= 'border-style: ' . esc_attr( $border_style ) . ';';
}
// Padding.
if ( ! empty( $padding ) ) {
$wrapper_style .= 'padding: ' . esc_attr( $padding ) . ';';
}
// Margins.
if ( '' !== $margin_top && 'undefined' !== $margin_top ) {
$style .= 'margin-top: ' . esc_attr( $margin_top ) . ';';
}
if ( '' !== $margin_bottom && 'undefined' !== $margin_bottom ) {
$style .= 'margin-bottom: ' . esc_attr( $margin_bottom ) . ';';
}
// Fix the spacing values.
if ( is_array( $current_row ) ) {
foreach ( $current_row as $key => $value ) {
if ( '' === $value[0] || 'yes' === $value[0] ) {
$current_row[ $key ] = '4%';
} elseif ( 'no' === $value[0] ) {
unset( $current_row[ $key ] );
} else {
$current_row[ $key ] = $value[0];
}
}
}
// Spacing. If using fallback and spacing is no then ignore and just use full % width.
if ( isset( $spacing ) && ! ( in_array( $spacing, array( '0px', 'no' ) ) && $fallback ) ) {
$width = $column_size * 100 . '%';
if ( 'yes' === $spacing || '' === $spacing ) {
$spacing = '4%';
} elseif ( 'no' === $spacing ) {
$spacing = '0px';
}
$spacing = FusionBuilder::get_value_with_unit( esc_attr( $spacing ) );
if ( '0' == filter_var( $spacing, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION ) ) {
$classes .= ' fusion-spacing-no';
}
$width_offset = '';
if ( is_array( $current_row ) ) {
$width_offset = '( ( ' . implode( ' + ', $current_row ) . ' ) * ' . $column_size . ' ) ';
}
if ( 'yes' !== $last && ! ( $fallback && '0px' == $spacing ) ) {
$spacing_direction = 'right';
if ( is_rtl() ) {
$spacing_direction = 'left';
}
if ( ! $fallback ) {
$style .= 'width:' . $width . ';width:calc(' . $width . ' - ' . $width_offset . ');margin-' . $spacing_direction . ':' . $spacing . ';';
} else {
$style .= 'width:' . $map_old_spacing[ strval( $column_size ) ] . '; margin-' . $spacing_direction . ':' . $spacing . ';';
}
} elseif ( isset( $current_row_number_of_columns ) && 1 < $current_row_number_of_columns ) {
if ( ! $fallback ) {
$style .= 'width:' . $width . ';width:calc(' . $width . ' - ' . $width_offset . ');';
} elseif ( '0px' != $spacing && isset( $map_old_spacing[ strval( $column_size ) ] ) ) {
$style .= 'width:' . $map_old_spacing[ strval( $column_size ) ];
} else {
$style .= 'width:' . $width;
}
} elseif ( ! isset( $current_row_number_of_columns ) && isset( $map_old_spacing[ strval( $column_size ) ] ) ) {
$style .= 'width:' . $map_old_spacing[ strval( $column_size ) ];
}
}
// Custom CSS class.
if ( ! empty( $class ) ) {
$classes .= " {$class}";
}
// Visibility classes.
$classes .= fusion_builder_visibility_atts( $hide_on_mobile, $classes );
// Hover type or link.
if ( ! empty( $link ) || ( 'none' !== $hover_type && ! empty( $hover_type ) ) ) {
$classes .= ' fusion-column-inner-bg-wrapper';
}
// Hover type or link.
if ( ! empty( $link ) ) {
$href_link .= 'href="' . $link . '"';
}
// Min height for newly created columns by the converter.
if ( 'none' === $min_height ) {
$classes .= ' fusion-column-no-min-height';
}
// Animation.
$animation = fusion_builder_animation_data( $animation_type, $animation_direction, $animation_speed, $animation_offset );
$classes .= $animation['class'];
// Style.
$style = ! empty( $style ) ? " style='{$style}'" : '';
// Wrapper Style.
$wrapper_style = ! empty( $wrapper_style ) ? $wrapper_style : '';
// Shortcode content.
$inner_content = do_shortcode( fusion_builder_fix_shortcodes( $content ) );
// If content should be centered, add needed markup.
if ( 'yes' === $center_content ) {
$inner_content = '<div class="fusion-column-content-centered"><div class="fusion-column-content">' . $inner_content . '</div></div>';
}
if ( ( 'none' === $hover_type && empty( $link ) ) || ( empty( $hover_type ) && empty( $link ) ) ) {
// Background color fallback for IE and Edge.
$additional_bg_image_div = '';
// @codingStandardsIgnoreStart
if ( $is_IE || $is_edge ) {
$additional_bg_image_div = '<div class="' . $wrapper_classes . '" style="content:\'\';z-index:-1;position:absolute;top:0;right:0;bottom:0;left:0;' . $background_image_style . '" data-bg-url="' . $background_image . '"></div>';
}
// @codingStandardsIgnoreEnd
$output =
'<div ' . ( ! empty( $id ) ? 'id="' . esc_attr( $id ) . '"' : '' ) . esc_attr( $animation['data'] ) . ' class="fusion-layout-column fusion_builder_column fusion_builder_column_' . $type . ' ' . esc_attr( $classes ) . ' ' . ( ! empty( $type ) ? esc_attr( $type ) : '' ) . '" ' . $style . '>
<div class="' . $wrapper_classes . '" style="' . $wrapper_style . $wrapper_style_bg . '" data-bg-url="' . $background_image . '">
' . $inner_content
. $additional_bg_image_div . '
</div>
</div>';
} else {
// Background color fallback for IE and Edge.
$additional_bg_color_span = '';
// @codingStandardsIgnoreStart
if ( $background_color_style && ( $is_IE || $is_edge ) ) {
$additional_bg_color_span = '<span class="fusion-column-inner-bg-image" style="' . $background_color_style . '"></span>';
}
// @codingStandardsIgnoreEnd
$output =
'<div ' . ( ! empty( $id ) ? 'id="' . esc_attr( $id ) . '"' : '' ) . esc_attr( $animation['data'] ) . ' class="fusion-layout-column fusion_builder_column fusion_builder_column_' . $type . ' ' . esc_attr( $classes ) . ' ' . ( ! empty( $type ) ? esc_attr( $type ) : '' ) . '" ' . $style . '>
<div class="' . $wrapper_classes . '" style="' . $wrapper_style . '" data-bg-url="' . $background_image . '">
' . $inner_content . '
</div>
<span class="fusion-column-inner-bg hover-type-' . $hover_type . '">
<a ' . $href_link . '>
<span class="fusion-column-inner-bg-image" style="' . $wrapper_style_bg . '"></span>'
. $additional_bg_color_span .
'</a>
</span>
</div>';
}
return $output;
}
add_shortcode( 'fusion_builder_column_inner', 'fusion_builder_column_inner' );
/**
* Map Column shortcode to Fusion Builder.
*
* @since 1.0
*/
function fusion_element_column_inner() {
fusion_builder_map( array(
'name' => esc_attr__( 'Nested Column', 'fusion-builder' ),
'shortcode' => 'fusion_builder_column_inner',
'hide_from_builder' => true,
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_attr__( 'Column Spacing', 'fusion-builder' ),
'description' => esc_attr__( 'Controls the margin added to the column. Enter value including any valid CSS unit, ex: 4%.', 'fusion-builder' ),
'param_name' => 'spacing',
'group' => esc_attr__( 'General', 'fusion-builder' ),
'value' => '',
),
array(
'type' => 'radio_button_set',
'heading' => esc_attr__( 'Center Content', 'fusion-builder' ),
'description' => esc_attr__( 'Set to "Yes" to center the content vertically.', 'fusion-builder' ),
'param_name' => 'center_content',
'default' => 'no',
'group' => esc_attr__( 'General', 'fusion-builder' ),
'value' => array(
esc_attr__( 'Yes', 'fusion-builder' ) => 'yes',
esc_attr__( 'No', 'fusion-builder' ) => 'no',
),
),
array(
'type' => 'radio_button_set',
'heading' => esc_attr__( 'Hover Type', 'fusion-builder' ),
'description' => esc_attr__( 'Select the hover effect type. This will disable links and hover effects on elements inside the column.', 'fusion-builder' ),
'param_name' => 'hover_type',
'default' => 'none',
'value' => array(
esc_attr__( 'None', 'fusion-builder' ) => 'none',
esc_attr__( 'Zoom In', 'fusion-builder' ) => 'zoomin',
esc_attr__( 'Zoom Out', 'fusion-builder' ) => 'zoomout',
esc_attr__( 'Lift Up', 'fusion-builder' ) => 'liftup',
),
),
array(
'type' => 'textfield',
'heading' => esc_attr__( 'Link URL', 'fusion-builder' ),
'description' => esc_attr__( 'Add the URL the column will link to, ex: http://example.com.', 'fusion-builder' ),
'param_name' => 'link',
'value' => '',
),
array(
'type' => 'radio_button_set',
'heading' => esc_attr__( 'Ignore Equal Heights', 'fusion-builder' ),
'description' => esc_attr__( 'Choose to ignore equal heights on this column if you are using equal heights on the surrounding container.', 'fusion-builder' ),
'param_name' => 'min_height',
'default' => '',
'group' => esc_attr__( 'General', 'fusion-builder' ),
'value' => array(
esc_attr__( 'Yes', 'fusion-builder' ) => 'none',
esc_attr__( 'No', 'fusion-builder' ) => '',
),
),
array(
'type' => 'checkbox_button_set',
'heading' => esc_attr__( 'Column Visibility', 'fusion-builder' ),
'param_name' => 'hide_on_mobile',
'value' => fusion_builder_visibility_options( 'full' ),
'default' => fusion_builder_default_visibility( 'array' ),
'description' => esc_attr__( 'Choose to show or hide the column on small, medium or large screens. You can choose more than one at a time.', 'fusion-builder' ),
),
array(
'type' => 'textfield',
'heading' => esc_attr__( 'CSS Class', 'fusion-builder' ),
'description' => esc_attr__( 'Add a class to the wrapping HTML element.', 'fusion-builder' ),
'param_name' => 'class',
'value' => '',
'group' => esc_attr__( 'General', 'fusion-builder' ),
),
array(
'type' => 'textfield',
'heading' => esc_attr__( 'CSS ID', 'fusion-builder' ),
'description' => esc_attr__( 'Add an ID to the wrapping HTML element.', 'fusion-builder' ),
'param_name' => 'id',
'value' => '',
'group' => esc_attr__( 'General', 'fusion-builder' ),
),
array(
'type' => 'colorpickeralpha',
'heading' => esc_attr__( 'Background Color', 'fusion-builder' ),
'description' => esc_attr__( 'Controls the background color.', 'fusion-builder' ),
'param_name' => 'background_color',
'value' => '',
'group' => esc_attr__( 'Design', 'fusion-builder' ),
),
array(
'type' => 'upload',
'heading' => esc_attr__( 'Background Image', 'fusion-builder' ),
'description' => esc_attr__( 'Upload an image to display in the background.', 'fusion-builder' ),
'param_name' => 'background_image',
'value' => '',
'group' => esc_attr__( 'Design', 'fusion-builder' ),
),
array(
'type' => 'select',
'heading' => esc_attr__( 'Background Position', 'fusion-builder' ),
'description' => esc_attr__( 'Choose the postion of the background image.', 'fusion-builder' ),
'param_name' => 'background_position',
'default' => 'left top',
'group' => esc_attr__( 'Design', 'fusion-builder' ),
'dependency' => array(
array(
'element' => 'background_image',
'value' => '',
'operator' => '!=',
),
),
'value' => array(
esc_attr__( 'Left Top', 'fusion-builder' ) => 'left top',
esc_attr__( 'Left Center', 'fusion-builder' ) => 'left center',
esc_attr__( 'Left Bottom', 'fusion-builder' ) => 'left bottom',
esc_attr__( 'Right Top', 'fusion-builder' ) => 'right top',
esc_attr__( 'Right Center', 'fusion-builder' ) => 'right center',
esc_attr__( 'Right Bottom', 'fusion-builder' ) => 'right bottom',
esc_attr__( 'Center Top', 'fusion-builder' ) => 'center top',
esc_attr__( 'Center Center', 'fusion-builder' ) => 'center center',
esc_attr__( 'Center Bottom', 'fusion-builder' ) => 'center bottom',
),
),
array(
'type' => 'select',
'heading' => esc_attr__( 'Background Repeat', 'fusion-builder' ),
'description' => esc_attr__( 'Choose how the background image repeats.', 'fusion-builder' ),
'param_name' => 'background_repeat',
'value' => array(
esc_attr__( 'No Repeat', 'fusion-builder' ) => 'no-repeat',
esc_attr__( 'Repeat Vertically and Horizontally', 'fusion-builder' ) => 'repeat',
esc_attr__( 'Repeat Horizontally', 'fusion-builder' ) => 'repeat-x',
esc_attr__( 'Repeat Vertically', 'fusion-builder' ) => 'repeat-y',
),
'default' => 'no-repeat',
'group' => esc_attr__( 'Design', 'fusion-builder' ),
'dependency' => array(
array(
'element' => 'background_image',
'value' => '',
'operator' => '!=',
),
),
),
array(
'type' => 'range',
'heading' => esc_attr__( 'Border Size', 'fusion-builder' ),
'description' => esc_attr__( 'In pixels.', 'fusion-builder' ),
'param_name' => 'border_size',
'value' => '0',
'min' => '0',
'max' => '50',
'step' => '1',
'group' => esc_attr__( 'Design', 'fusion-builder' ),
),
array(
'type' => 'colorpicker',
'heading' => esc_attr__( 'Border Color', 'fusion-builder' ),
'description' => esc_attr__( 'Controls the border color.', 'fusion-builder' ),
'param_name' => 'border_color',
'value' => '',
'group' => esc_attr__( 'Design', 'fusion-builder' ),
'dependency' => array(
array(
'element' => 'border_size',
'value' => '0',
'operator' => '!=',
),
),
),
array(
'type' => 'radio_button_set',
'heading' => esc_attr__( 'Border Style', 'fusion-builder' ),
'description' => esc_attr__( 'Controls the border style.', 'fusion-builder' ),
'param_name' => 'border_style',
'default' => 'solid',
'group' => esc_attr__( 'Design', 'fusion-builder' ),
'dependency' => array(
array(
'element' => 'border_size',
'value' => '0',
'operator' => '!=',
),
),
'value' => array(
esc_attr__( 'Solid', 'fusion-builder' ) => 'solid',
esc_attr__( 'Dashed', 'fusion-builder' ) => 'dashed',
esc_attr__( 'Dotted', 'fusion-builder' ) => 'dotted',
),
),
array(
'type' => 'dimension',
'heading' => esc_attr__( 'Padding', 'fusion-builder' ),
'description' => esc_attr__( 'In pixels (px), ex: 10px.', 'fusion-builder' ),
'param_name' => 'padding',
'value' => '',
'group' => esc_attr__( 'Design', 'fusion-builder' ),
),
array(
'type' => 'dimension',
'remove_from_atts' => true,
'heading' => esc_attr__( 'Margin', 'fusion-builder' ),
'description' => esc_attr__( 'Spacing above and below the column. In px, em or %, e.g. 10px.', 'fusion-builder' ),
'param_name' => 'dimension_margin',
'value' => array(
'margin_top' => '',
'margin_bottom' => '',
),
'group' => esc_attr__( 'Design', 'fusion-builder' ),
),
array(
'type' => 'select',
'heading' => esc_attr__( 'Animation Type', 'fusion-builder' ),
'description' => esc_attr__( 'Select the type of animation to use on the element.', 'fusion-builder' ),
'param_name' => 'animation_type',
'value' => fusion_builder_available_animations(),
'default' => '',
'group' => esc_attr__( 'Animation', 'fusion-builder' ),
),
array(
'type' => 'radio_button_set',
'heading' => esc_attr__( 'Direction of Animation', 'fusion-builder' ),
'description' => esc_attr__( 'Select the incoming direction for the animation.', 'fusion-builder' ),
'param_name' => 'animation_direction',
'default' => 'left',
'group' => esc_attr__( 'Animation', 'fusion-builder' ),
'dependency' => array(
array(
'element' => 'animation_type',
'value' => '',
'operator' => '!=',
),
),
'value' => array(
esc_attr__( 'Top', 'fusion-builder' ) => 'down',
esc_attr__( 'Right', 'fusion-builder' ) => 'right',
esc_attr__( 'Bottom', 'fusion-builder' ) => 'up',
esc_attr__( 'Left', 'fusion-builder' ) => 'left',
esc_attr__( 'Static', 'fusion-builder' ) => 'static',
),
),
array(
'type' => 'range',
'heading' => esc_attr__( 'Speed of Animation', 'fusion-builder' ),
'description' => esc_attr__( 'Type in speed of animation in seconds (0.1 - 1).', 'fusion-builder' ),
'param_name' => 'animation_speed',
'min' => '0.1',
'max' => '1',
'step' => '0.1',
'value' => '0.3',
'group' => esc_attr__( 'Animation', 'fusion-builder' ),
'dependency' => array(
array(
'element' => 'animation_type',
'value' => '',
'operator' => '!=',
),
),
),
array(
'type' => 'select',
'heading' => esc_attr__( 'Offset of Animation', 'fusion-builder' ),
'description' => esc_attr__( 'Controls when the animation should start.', 'fusion-builder' ),
'param_name' => 'animation_offset',
'default' => '',
'group' => esc_attr__( 'Animation', 'fusion-builder' ),
'dependency' => array(
array(
'element' => 'animation_type',
'value' => '',
'operator' => '!=',
),
),
'value' => array(
esc_attr__( 'Default', 'fusion-builder' ) => '',
esc_attr__( 'Top of element hits bottom of viewport', 'fusion-builder' ) => 'top-into-view',
esc_attr__( 'Top of element hits middle of viewport', 'fusion-builder' ) => 'top-mid-of-view',
esc_attr__( 'Bottom of element enters viewport', 'fusion-builder' ) => 'bottom-in-view',
),
),
),
) );
}
add_action( 'fusion_builder_before_init', 'fusion_element_column_inner' );