chore: complete M1.1 runtime QA and release packaging

This commit is contained in:
XShop
2026-09-13 19:04:41 +03:30
commit f11e1d650d
66 changed files with 3094 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
/**
* Section Heading — reusable for home sections.
*
* @package XShop
*/
declare(strict_types=1);
defined('ABSPATH') || exit;
$title = $args['title'] ?? '';
if ($title === '') { return; }
$linkLabel = $args['link_label'] ?? '';
$linkUrl = $args['link_url'] ?? '';
$tag = $args['tag'] ?? 'h2';
$allowed = ['h2','h3','div'];
if (!in_array($tag, $allowed, true)) { $tag = 'h2'; }
?>
<div class="xshop-section__header">
<<?php echo esc_attr($tag); ?> class="xshop-section__title"><?php echo esc_html($title); ?></<?php echo esc_attr($tag); ?>>
<?php if ($linkLabel !== '' && $linkUrl !== ''): ?>
<a class="xshop-section__link" href="<?php echo esc_url($linkUrl); ?>"><?php echo esc_html($linkLabel); ?></a>
<?php endif; ?>
</div>