<?php

$title=
'Create Conference Theme';

/*
Force create mode
*/

$theme=
$theme
??[
'id'=>null
];

ob_start();

/*
Reuse existing edit page
*/

include
__DIR__
.
'/edit.php';

$out=
ob_get_clean();

/*
Convert update action → create/store
*/

$out=
str_replace(

'/conference-themes/update',

'/conference-themes/store',

$out

);

$out=
str_replace(

'value="<?= (int)$theme[\'id\'] ?>"',

'',

$out

);

$out=
str_replace(

'Edit Conference Theme',

'Create Conference Theme',

$out

);

echo
$out;

