Expose public selection permissions in admin

This commit is contained in:
Terranom674
2026-08-16 12:53:42 +02:00
parent 5f82503686
commit 8b50ad5b9e

View File

@@ -45,6 +45,8 @@ $categories = bratonien_tools_get_category_tree();
$rules = bratonien_tools_get_album_rules(); $rules = bratonien_tools_get_album_rules();
$engine = bratonien_tools_get_watermark_engine_config(); $engine = bratonien_tools_get_watermark_engine_config();
$cache_workers = bratonien_tools_get_cache_worker_settings(); $cache_workers = bratonien_tools_get_cache_worker_settings();
$public_selection = bratonien_tools_get_public_selection_settings();
$public_selection_groups = bratonien_tools_get_piwigo_groups();
$watermark_options = array(); $watermark_options = array();
$watermark_meta = array(); $watermark_meta = array();
@@ -117,8 +119,13 @@ $template->assign(array(
'WATERMARK_CATEGORIES' => $categories, 'WATERMARK_CATEGORIES' => $categories,
'WATERMARK_ENGINE' => $engine, 'WATERMARK_ENGINE' => $engine,
'CACHE_WORKERS' => $cache_workers, 'CACHE_WORKERS' => $cache_workers,
'PUBLIC_SELECTION' => $public_selection,
'PUBLIC_SELECTION_GROUPS' => $public_selection_groups,
'MAIN_CACHE_STATUS_URL' => get_absolute_root_url(true).'plugins/'.BRATONIEN_TOOLS_ID.'/main-cache-status.php', 'MAIN_CACHE_STATUS_URL' => get_absolute_root_url(true).'plugins/'.BRATONIEN_TOOLS_ID.'/main-cache-status.php',
)); ));
$template->set_filename('plugin_admin_content', BRATONIEN_TOOLS_PATH . 'template/admin.tpl'); $template->set_filename('plugin_admin_content', BRATONIEN_TOOLS_PATH . 'template/admin.tpl');
$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
$template->set_filename('public_selection_admin_content', BRATONIEN_TOOLS_PATH . 'template/public_selection_admin.tpl');
$template->concat('ADMIN_CONTENT', $template->parse('public_selection_admin_content', true));