diff --git a/admin.php b/admin.php index 27327c2..35a7b91 100644 --- a/admin.php +++ b/admin.php @@ -45,6 +45,8 @@ $categories = bratonien_tools_get_category_tree(); $rules = bratonien_tools_get_album_rules(); $engine = bratonien_tools_get_watermark_engine_config(); $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_meta = array(); @@ -117,8 +119,13 @@ $template->assign(array( 'WATERMARK_CATEGORIES' => $categories, 'WATERMARK_ENGINE' => $engine, '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', )); $template->set_filename('plugin_admin_content', BRATONIEN_TOOLS_PATH . 'template/admin.tpl'); $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));