<?php
if ( ! function_exists( 'flatsome_child_numbes_value_shortcode' ) ) {
	function flatsome_child_numbes_value_shortcode( $atts = array() ) {
		$atts = shortcode_atts(
			array(
				'class'   => '',

				'number1' => '100.000.000',
				'text1'   => 'mét vải đã sản xuất',

				'number2' => '20.000+',
				'text2'   => 'đối tác, khách hàng',

				'number3' => '200',
				'text3'   => 'nhân sự',

				'number4' => '10+',
				'text4'   => 'năm kinh nghiệm',
			),
			$atts,
			'numbes_value'
		);

		$classes = array( 'zb-element', 'zb-el-container' );
		if ( ! empty( $atts['class'] ) ) {
			$classes[] = $atts['class'];
		}

		return
			'<div id="uid1511406598921" class="number-value-wrap ' . esc_attr( implode( ' ', $classes ) ) . '">' .
				'<div id="uid1511406741061" class="zb-column--3 zb-column zb-element zb-el-zionColumn"></div>' .
				'<div id="uid1511406741062" class="zb-column--9 zb-column zb-element zb-el-zionColumn">' .
					'<div id="uid1511407224691" class="zb-element zb-el-container ajs__element fadeInUp animated" data-ajs-animation="fadeInUp">' .
						'<p id="uid1511408638151" class="linear_gradient zb-element zb-el-zionHeading">' . esc_html( $atts['number1'] ) . '</p>' .
						'<div id="uid1511430699571" class="sub-linear_gradient zb-element zb-el-zionText"><h3>' . esc_html( $atts['text1'] ) . '</h3></div>' .
					'</div>' .
					'<div id="uid1511413905241" class="zb-element zb-el-container">' .
						'<div id="uid1511435629811" class="zb-element zb-el-container ajs__element fadeInUp animated" data-ajs-animation="fadeInUp">' .
							'<p id="uid1511413905242" class="linear_gradient zb-element zb-el-zionHeading">' . esc_html( $atts['number2'] ) . '</p>' .
							'<div id="uid1511436411462" class="sub-linear_gradient zb-element zb-el-zionText"><h3>' . esc_html( $atts['text2'] ) . '</h3></div>' .
						'</div>' .
						'<div id="uid1511444893754" class="zb-element zb-el-container ajs__element fadeInUp animated" data-ajs-animation="fadeInUp">' .
							'<p id="uid1511444893755" class="linear_gradient zb-element zb-el-zionHeading">' . esc_html( $atts['number3'] ) . '</p>' .
							'<div id="uid1511444893756" class="sub-linear_gradient zb-element zb-el-zionText"><h3>' . esc_html( $atts['text3'] ) . '</h3></div>' .
						'</div>' .
					'</div>' .
					'<div id="uid1511414645171" class="zb-element zb-el-container">' .
						'<p id="uid1511414645173" class="linear_gradient filter zb-element zb-el-zionHeading">' . esc_html( $atts['number4'] ) . '</p>' .
						'<div id="uid1511436496632" class="sub-linear_gradient zb-element zb-el-zionText"><h3>' . esc_html( $atts['text4'] ) . '</h3></div>' .
					'</div>' .
				'</div>' .
			'</div>';
	}

	add_shortcode( 'numbes_value', 'flatsome_child_numbes_value_shortcode' );
}
