WordPress at Your Fingertips
function is not described

WC_Admin_Addons::output_small_dark_block() public WC 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 small dark block.

{} It's a method of the class: WC_Admin_Addons{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Addons::output_small_dark_block( $block );
$block(object) (required)
Block data.

Changelog

Deprecated Since 5.9.0 No longer used in In-App Marketplace

Code of WC_Admin_Addons::output_small_dark_block() WC 5.9.0

<?php
public static function output_small_dark_block( $block ) {
	?>
	<div class="addons-small-dark-block">
		<h1><?php echo esc_html( $block->title ); ?></h1>
		<p><?php echo esc_html( $block->description ); ?></p>
		<div class="addons-small-dark-items">
			<?php foreach ( $block->items as $item ) : ?>
				<div class="addons-small-dark-item">
					<?php if ( ! empty( $item->image ) ) : ?>
						<div class="addons-small-dark-item-icon">
							<img class="addons-img" src="<?php echo esc_url( $item->image ); ?>" />
						</div>
					<?php endif; ?>
					<?php
						self::output_button(
							$item->href,
							$item->button,
							'addons-button-outline-white'
						);
					?>
				</div>
			<?php endforeach; ?>
		</div>
	</div>
	<?php
}