wordpress/wp-content/themes/basic/themify/themify-builder/includes/components/base.php
/**
     * Computes and returns the HTML a color overlay.
     *
     * @since 2.3.3
     *
     * @param array $styling The row's or column's styling array.
     *
     * @return bool Returns false if $styling doesn't have a color overlay. Otherwise outputs the HTML;
     */
Computes and returns the HTML a color overlay.

@param array $styling The row's or column's styling array.

@return bool Returns false if $styling doesn't have a color overlay. Otherwise outputs the HTML.
Computes and returns the HTML a color overlay . @param array $styling The row ' s or column ' s styling array . @return bool Returns false if $styling doesn ' t have a color overlay . Otherwise outputs the HTML .
private static function do_color_overlay($styling) {
		$type = !isset( $styling['cover_color-type'] ) || $styling['cover_color-type'] === 'color' ? 'color' : 'gradient';
		$is_empty = $type === 'color' ? empty( $styling['cover_color'] ) : empty( $styling['cover_gradient-gradient'] );
		if ( $is_empty === true ) {
			$hover_type = !isset( $styling['cover_color_hover-type'] ) || $styling['cover_color_hover-type'] === 'hover_color' ? 'color' : 'gradient';
			$is_empty_hover = $hover_type === 'color' ? empty( $styling['cover_color_hover'] ) : empty( $styling['cover_gradient_hover-gradient'] );
		}
		if ( $is_empty === false || $is_empty_hover === false) {
			echo '<div class="tf_abs builder_row_cover"></div>';
			return true;
		}
		return false;
	}
private static function do_color_overlay ( $ styling ) { $ type = ! isset ( $ styling [ 'cover_color-type' ] ) || $ styling [ 'cover_color-type' ] === 'color' ? 'color' : 'gradient' ; $ is_empty = $ type === 'color' ? empty ( $ styling [ 'cover_color' ] ) : empty ( $ styling [ 'cover_gradient-gradient' ] ) ; if ( $ is_empty === true ) { $ hover_type = ! isset ( $ styling [ 'cover_color_hover-type' ] ) || $ styling [ 'cover_color_hover-type' ] === 'hover_color' ? 'color' : 'gradient' ; $ is_empty_hover = $ hover_type === 'color' ? empty ( $ styling [ 'cover_color_hover' ] ) : empty ( $ styling [ 'cover_gradient_hover-gradient' ] ) ; } if ( $ is_empty === false || $ is_empty_hover === false ) { echo '<div class="tf_abs builder_row_cover"></div>' ; return true ; } return false ; }
Computes and returns the HTML a color overlay.
Computes and returns the HTML a color overlay .