summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-10 08:18:45 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-10 08:18:45 +0100
commit0582e0b40f3440e8ec4c95c99501019e6933e20b (patch)
tree12b60fd3110eb4fd38eb60b9994db4c3af687952 /admin
parentb8b9f2f9b9b0b2aefe4b76c31a581243d3df01ee (diff)
downloadstock-0582e0b40f3440e8ec4c95c99501019e6933e20b.tar.gz
stock-0582e0b40f3440e8ec4c95c99501019e6933e20b.tar.bz2
stock-0582e0b40f3440e8ec4c95c99501019e6933e20b.zip
stock: remove gallery layout machinery — drop pagination constants, getLayout/getAllLayouts, per-page config, admin UI; simplify mod_components and display inc
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/admin_stock_inc.php8
-rwxr-xr-xadmin/schema_inc.php5
2 files changed, 1 insertions, 12 deletions
diff --git a/admin/admin_stock_inc.php b/admin/admin_stock_inc.php
index 881d6d2..cd81680 100755
--- a/admin/admin_stock_inc.php
+++ b/admin/admin_stock_inc.php
@@ -97,10 +97,6 @@ $formImageLists = [
];
$gBitSmarty->assign( 'formImageLists', $formImageLists );
-use Bitweaver\Stock\StockAssembly;
-
-$gBitSmarty->assign( 'galleryPaginationTypes', StockAssembly::getAllLayouts() );
-
$sortOptions = [
'' => KernelTools::tra( 'None' ),
'lc.title_desc' => KernelTools::tra( 'Title' ). ' - '.KernelTools::tra( 'descending' ),
@@ -129,9 +125,7 @@ if (!empty($_REQUEST['stockAdminSubmit'])) {
simple_set_toggle($item, STOCK_PKG_NAME);
}
- foreach( [ 'default_assembly_pagination', 'rows_per_page', 'cols_per_page', 'total_per_page', 'lines_per_page', 'stock_gallery_default_sort_mode' ] as $key ) {
- $gBitSystem->storeConfig($key, $_REQUEST[$key], STOCK_PKG_NAME);
- }
+ $gBitSystem->storeConfig( 'stock_gallery_default_sort_mode', $_REQUEST['stock_gallery_default_sort_mode'] ?? '', STOCK_PKG_NAME );
foreach ($formImageLists as $item => $data) {
simple_set_toggle( $item, STOCK_PKG_NAME );
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index d76e921..edf8463 100755
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -47,11 +47,6 @@ $gBitInstaller->registerPreferences( STOCK_PKG_NAME, [
[ STOCK_PKG_NAME, 'stock_item_list_creator', 'n' ],
[ STOCK_PKG_NAME, 'stock_item_list_hits', 'n' ],
[ STOCK_PKG_NAME, 'stock_item_list_attid', 'n' ],
- // Pagination defaults
- [ STOCK_PKG_NAME, 'default_gallery_pagination', 'position_number' ],
- [ STOCK_PKG_NAME, 'rows_per_page', '5' ],
- [ STOCK_PKG_NAME, 'cols_per_page', '3' ],
- [ STOCK_PKG_NAME, 'total_per_page', '20' ],
// Movement statuses
[ STOCK_PKG_NAME, 'stock_movement_statuses', 'draft,pending,complete,cancelled' ],
[ STOCK_PKG_NAME, 'stock_movement_status_draft', 'Draft' ],