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
+27
View File
@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
defined('ABSPATH') || exit;
add_action('widgets_init', 'xshop_register_sidebars');
function xshop_register_sidebars(): void {
$sidebars = [
['id'=>'sidebar-main','name'=>__('Main Sidebar','xshop'),'desc'=>__('Appears on blog and pages.','xshop')],
['id'=>'sidebar-shop','name'=>__('Shop Sidebar','xshop'),'desc'=>__('Appears on shop archives.','xshop')],
['id'=>'footer-1','name'=>__('Footer Column 1','xshop'),'desc'=>''],
['id'=>'footer-2','name'=>__('Footer Column 2','xshop'),'desc'=>''],
['id'=>'footer-3','name'=>__('Footer Column 3','xshop'),'desc'=>''],
['id'=>'footer-4','name'=>__('Footer Column 4','xshop'),'desc'=>''],
];
foreach ($sidebars as $s) {
register_sidebar([
'name' => $s['name'],
'id' => $s['id'],
'description' => $s['desc'],
'before_widget' => '<section id="%1$s" class="xshop-widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h3 class="xshop-widget__title">',
'after_title' => '</h3>',
]);
}
}