WC_Admin_Addons::output_column_block()public staticWC 1.0

Deprecated from version 5.9.0. It is no longer supported and can be removed in future releases. Use d in In-App Marketplace instead.

Handles the outputting of a column block.

Method of the class: WC_Admin_Addons{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Addons::output_column_block( $block );
$block(object) (required)
Column block data.

Changelog

Deprecated since 5.9.0 No longer used in In-App Marketplace

WC_Admin_Addons::output_column_block() code WC 8.7.0

<?php
public static function output_column_block( $block ) {
	?>
	<div class="addons-column-block">
		<h1><?php echo esc_html( $block->title ); ?></h1>
		<p><?php echo esc_html( $block->description ); ?></p>
		<?php foreach ( $block->items as $item ) : ?>
			<?php if ( self::show_extension( $item ) ) : ?>
				<div class="addons-column-block-item">
					<div class="addons-column-block-item-icon">
						<img class="addons-img" src="<?php echo esc_url( $item->image ); ?>" />
					</div>
					<div class="addons-column-block-item-content">
						<h2><?php echo esc_html( $item->title ); ?></h2>
						<?php
							self::output_button(
								$item->href,
								$item->button,
								'addons-button-solid',
								$item->plugin
							);
						?>
						<p><?php echo esc_html( $item->description ); ?></p>
					</div>
				</div>
			<?php endif; ?>
		<?php endforeach; ?>
	</div>

	<?php
}