# stockpack/2.2/templates/empty.php

StockPack – Stock photos and AI images from Unsplash, Adobe Stock, Freepik and more, version 2.2. 18 lines.

- Page: https://pluginprobe.com/plugins/stockpack/2.2/code/templates/empty.php
- Raw: https://pluginprobe.com/plugins/stockpack/2.2/raw/templates/empty.php
- Modified: 2019-12-03T06:19:48+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/stockpack/2.2/code/templates/empty.php#L10-L20`.

```php
<script type="text/html" id="tmpl-stockpack-empty">
	<# var messageClass = data.message ? 'has-message' : 'no-message'; #>
	<# var errorClass = data.error ? 'has-error' : 'no-error'; #>
	<div class="no-data {{ messageClass }} {{errorClass}}">
		<# if ( data.message ) { #>
		<h2 class="stockpack-message">{{ data.message }}</h2>
		<# } #>
		<# if ( data.error ) { #>
		<pre class="stockpack-error">{{{ data.error }}}</pre>
		<# } #>
		<# if ( data.link ) { #>
		<a  target="_blank" href="{{ data.link.url }}" class="stockpack-link">{{ data.link.text }}</a>
		<# } #>
		<# if ( data.retry ) { #>
		<button type="button" class="button media-button button-primary button-large retry">{{data.retry}}</button>
		<# } #>
	</div>
</script>
```
