# give/2.3.0/includes/admin/views/blank-slate.php

GiveWP – Donation Plugin and Fundraising Platform, version 2.3.0. 55 lines.

- Page: https://pluginprobe.com/plugins/give/2.3.0/code/includes/admin/views/blank-slate.php
- Raw: https://pluginprobe.com/plugins/give/2.3.0/raw/includes/admin/views/blank-slate.php
- Modified: 2018-05-03T03:28:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/2.3.0/code/includes/admin/views/blank-slate.php#L10-L20`.

```php
<?php
/**
 * Displays onboarding message in the event of an empty list table.
 *
 * Available Variables:
 *
 *    array $content {
 *        string $image_url
 *        string $image_alt
 *        string $heading
 *        string $message
 *        string $cta_text
 *        string $cta_link
 *        string $help
 *    }
 */
?>

<div class="give-blank-slate">
	<?php if ( ! empty( $content['image_url'] ) ) : ?>
		<img class="give-blank-slate__image" src="<?php echo esc_url( $content['image_url'] ); ?>" alt="<?php echo esc_attr( $content['image_alt'] ); ?>">
	<?php endif; ?>

	<?php if ( ! empty( $content['heading'] ) ) : ?>
		<h2 class="give-blank-slate__heading"><?php esc_html_e( $content['heading'] ); ?></h2>
	<?php endif; ?>

	<?php if ( ! empty( $content['message'] ) ) : ?>
		<p class="give-blank-slate__message"><?php esc_html_e( $content['message'] ); ?></p>
	<?php endif; ?>

	<?php if ( ! empty( $content['cta_text']) && ! empty( $content['cta_link'] ) ) : ?>
		<a class="give-blank-slate__cta button button-primary" href="<?php echo esc_url( $content['cta_link'] ); ?>"><?php esc_html_e( $content['cta_text'] ); ?></a>
	<?php endif; ?>

	<?php if ( ! empty( $content['help'] ) ) : ?>
		<p class="give-blank-slate__help">
			<?php
			$allowed_html = array(
				'a'      => array(
					'href'   => array(),
					'title'  => array(),
					'target' => array(),
				),
				'em'     => array(),
				'strong' => array(),
				'code'   => array(),
			);

			echo wp_kses( $content['help'], $allowed_html );
			?>
		</p>
	<?php endif; ?>
</div>

```
