chore: complete M1.1 runtime QA and release packaging
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Empty state — no posts / no results.
|
||||
*
|
||||
* @package XShop
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
$title = $args['title'] ?? esc_html__('Nothing found', 'xshop');
|
||||
$text = $args['text'] ?? esc_html__('Try adjusting your search or browse categories.', 'xshop');
|
||||
$ctaLabel = $args['cta_label'] ?? '';
|
||||
$ctaUrl = $args['cta_url'] ?? '';
|
||||
?>
|
||||
<div class="xshop-empty" role="status">
|
||||
<h2 class="xshop-empty__title"><?php echo esc_html($title); ?></h2>
|
||||
<p class="xshop-empty__text"><?php echo esc_html($text); ?></p>
|
||||
<?php if ($ctaLabel !== '' && $ctaUrl !== ''): ?>
|
||||
<a class="xshop-btn xshop-btn--primary" href="<?php echo esc_url($ctaUrl); ?>"><?php echo esc_html($ctaLabel); ?></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user