wordpress/wp-content/themes/basic/themify/themify-builder/includes/components/base.php
/**
	 * Map initial origin value and returns transform origin property
	 *
	 * @param string $props Initial origin value
	 *
	 * @return string Returns transform origin value of element based on initial value
	 */
Map initial origin value and returns transform origin property
@param string $props Initial origin value

@return string Returns transform origin value of element based on initial value
Map initial origin value and returns transform origin property @param string $props Initial origin value @return string Returns transform origin value of element based on initial value
private static function map_transform_origin( $props ) {
		switch ( $props ) {
			case '0,0':
				$output = 'top left';
				break;
			case '50,0':
				$output = 'top center';
				break;
			case '100,0':
				$output = 'top right';
				break;
			case '0,50':
				$output = 'left center';
				break;
			case '50,50':
				$output = 'center center';
				break;
			case '100,50':
				$output = 'right center';
				break;
			case '0,100':
				$output = 'bottom left';
				break;
			case '50,100':
				$output = 'bottom center';
				break;
			case '100,100':
				$output = 'bottom right';
				break;
			default:
			    $perc = explode(',', $props);
				$output = $perc[0] . '% ' . $perc[1] . '%';
		}
		return $output;
	}
private static function map_transform_origin ( $ props ) { switch ( $ props ) { case '0,0' : $ output = 'top left' ; break ; case '50,0' : $ output = 'top center' ; break ; case '100,0' : $ output = 'top right' ; break ; case '0,50' : $ output = 'left center' ; break ; case '50,50' : $ output = 'center center' ; break ; case '100,50' : $ output = 'right center' ; break ; case '0,100' : $ output = 'bottom left' ; break ; case '50,100' : $ output = 'bottom center' ; break ; case '100,100' : $ output = 'bottom right' ; break ; default : $ perc = explode ( ',' , $ props ) ; $ output = $ perc [ 0 ] . '% ' . $ perc [ 1 ] . '%' ; } return $ output ; }
Map initial origin value and returns transform origin property
 @param string $props Initial origin value
Map initial origin value and returns transform origin property @param string $props Initial origin value