wordpress/wp-content/themes/basic/themify/themify-builder/includes/components/base.php
/**
     * Return the correct animation css class name
     * @param string $effect 
     * @return string
     */
Return the correct animation css class name
@param string $effect
@return string
Return the correct animation css class name @param string $effect @return string
public static function parse_animation_effect( $settings, array $attr = array() ) {
		if ( ! is_array( $settings ) ) {
			return '';
		}
	static $has=null;
	if($has===null){
	    $has=Themify_Builder_Model::is_animation_active();
	}
	if ($has!==false) {
	    if (!empty($settings['hover_animation_effect'])) {
		$attr['data-tf-animation_hover']=$settings['hover_animation_effect'];
		if(isset($attr['class'])){
		    $attr['class'].=' hover-wow';
		}
		else{
		    $attr['class']='hover-wow';
		}
		if($has!=='done'){
		    $has='load';
		}
	    }
	    if(!empty($settings['animation_effect'])){
		    $attr['data-tf-animation']=$settings['animation_effect'];
		    if(!in_array($settings['animation_effect'], array('fade-in', 'fly-in', 'slide-up'), true)){
				    if(isset($attr['class'])){
				    $attr['class'].=' wow';
			}
			else{
			    $attr['class']='wow';
			}
		    }
		    if (!empty($settings['animation_effect_delay'])) {
			    $attr['data-tf-animation_delay']=$settings['animation_effect_delay'];
		    }
		    if (!empty($settings['animation_effect_repeat'])) {
			    $attr['data-tf-animation_repeat']=$settings['animation_effect_repeat'];
		    }
		    if($has!=='done'){
			$has='load';
		    }
	    }
	    if($has==='load'){
		$has='done';
		Themify_Enqueue_Assets::preFetchAnimtion();
	    }
	}
	return $attr;
    }
public static function parse_animation_effect ( $ settings , array $ attr = array ( ) ) { if ( ! is_array ( $ settings ) ) { return '' ; } static $ has = null ; if ( $ has === null ) { $ has = Themify_Builder_Model :: is_animation_active ( ) ; } if ( $ has !== false ) { if ( ! empty ( $ settings [ 'hover_animation_effect' ] ) ) { $ attr [ 'data-tf-animation_hover' ] = $ settings [ 'hover_animation_effect' ] ; if ( isset ( $ attr [ 'class' ] ) ) { $ attr [ 'class' ] .= ' hover-wow' ; } else { $ attr [ 'class' ] = 'hover-wow' ; } if ( $ has !== 'done' ) { $ has = 'load' ; } } if ( ! empty ( $ settings [ 'animation_effect' ] ) ) { $ attr [ 'data-tf-animation' ] = $ settings [ 'animation_effect' ] ; if ( ! in_array ( $ settings [ 'animation_effect' ] , array ( 'fade-in' , 'fly-in' , 'slide-up' ) , true ) ) { if ( isset ( $ attr [ 'class' ] ) ) { $ attr [ 'class' ] .= ' wow' ; } else { $ attr [ 'class' ] = 'wow' ; } } if ( ! empty ( $ settings [ 'animation_effect_delay' ] ) ) { $ attr [ 'data-tf-animation_delay' ] = $ settings [ 'animation_effect_delay' ] ; } if ( ! empty ( $ settings [ 'animation_effect_repeat' ] ) ) { $ attr [ 'data-tf-animation_repeat' ] = $ settings [ 'animation_effect_repeat' ] ; } if ( $ has !== 'done' ) { $ has = 'load' ; } } if ( $ has === 'load' ) { $ has = 'done' ; Themify_Enqueue_Assets :: preFetchAnimtion ( ) ; } } return $ attr ; }
Return the correct animation css class name
 @param string $effect
 @return string
Return the correct animation css class name @param string $effect @return string
/* backward compatibility for addons */