public function component_templates() {
		$output = null;
		foreach ( $this->modals as $modal ) {

			$width  = 'data-width="950"';
			$height = 'data-height="550"';

			$output .= '<script type="text/html" ' . $width . ' ' . $height . ' id="' . esc_attr( $this->id() ) . '-' . esc_attr( $modal->slug ) . '">';
			if ( isset( $modal->struct['preview'] ) ) {
				$template = uix()->add( 'control', $modal->slug, array(
					'type'     => 'template',
					'template' => $modal->struct['preview'],
				) );

				$output .= $template->render();
			} else {
				$output .= '<div>' . $modal->struct['label'] . '</div>';
			}
			$output .= '</script>';

		}

		return $output;
	}
public function component_templates() {
		$output = null;
		foreach ( $this->modals as $modal ) {

			$width  = 'data-width="950"';
			$height = 'data-height="550"';

			$output .= '<script type="text/html" ' . $width . ' ' . $height . ' id="' . esc_attr( $this->id() ) . '-' . esc_attr( $modal->slug ) . '">';
			if ( isset( $modal->struct['preview'] ) ) {
				$template = uix()->add( 'control', $modal->slug, array(
					'type'     => 'template',
					'template' => $modal->struct['preview'],
				) );

				$output .= $template->render();
			} else {
				$output .= '<div>' . $modal->struct['label'] . '</div>';
			}
			$output .= '</script>';

		}

		return $output;
	}
public function component_templates ( ) { $ output = null ; foreach ( $ this -> modals as $ modal ) { $ width = 'data-width="950"' ; $ height = 'data-height="550"' ; $ output .= '<script type="text/html" ' . $ width . ' ' . $ height . ' id="' . esc_attr ( $ this -> id ( ) ) . '-' . esc_attr ( $ modal -> slug ) . '">' ; if ( isset ( $ modal -> struct [ 'preview' ] ) ) { $ template = uix ( ) -> add ( 'control' , $ modal -> slug , array ( 'type' => 'template' , 'template' => $ modal -> struct [ 'preview' ] , ) ) ; $ output .= $ template -> render ( ) ; } else { $ output .= '<div>' . $ modal -> struct [ 'label' ] . '</div>' ; } $ output .= '</script>' ; } return $ output ; }
Render component templates

@since  1.0.0
@see    \uix\ui\uix
@access public
@return string HTML of templates for components
Render component templates