public function register_components() {

		foreach ( $this->struct['component'] as $component_id => $component_struct ) {

			if ( ! empty( $component_struct['id'] ) ) {
				$component_id = $component_struct['id'];
			}

			$component_struct += $this->base_component( $component_id );

			if ( ! empty( $component_struct['setup'] ) ) {
				$component_struct['section'] = $component_struct['setup'];
				unset( $component_struct['setup'] );
			}

			$this->modals[] = $this->modal( $component_id, $component_struct );
		}

	}
public function register_components() {

		foreach ( $this->struct['component'] as $component_id => $component_struct ) {

			if ( ! empty( $component_struct['id'] ) ) {
				$component_id = $component_struct['id'];
			}

			$component_struct += $this->base_component( $component_id );

			if ( ! empty( $component_struct['setup'] ) ) {
				$component_struct['section'] = $component_struct['setup'];
				unset( $component_struct['setup'] );
			}

			$this->modals[] = $this->modal( $component_id, $component_struct );
		}

	}
public function register_components ( ) { foreach ( $ this -> struct [ 'component' ] as $ component_id => $ component_struct ) { if ( ! empty ( $ component_struct [ 'id' ] ) ) { $ component_id = $ component_struct [ 'id' ] ; } $ component_struct += $ this -> base_component ( $ component_id ) ; if ( ! empty ( $ component_struct [ 'setup' ] ) ) { $ component_struct [ 'section' ] = $ component_struct [ 'setup' ] ; unset ( $ component_struct [ 'setup' ] ) ; } $ this -> modals [ ] = $ this -> modal ( $ component_id , $ component_struct ) ; } }
Register components for layout.

@since  1.0.0
@access public
Register components for layout .