add qr-codes, share button, and pwa config toggle

This commit is contained in:
Joey Kimsey
2025-02-05 19:39:54 -05:00
parent a38d132e61
commit a6b241c7f0
10 changed files with 168 additions and 66 deletions

View File

@ -194,12 +194,12 @@ class Install extends Controller {
*/
public function configure() {
if ( Forms::Check( 'installConfigure' ) ) {
$logo = $baseConfig['main']['template']['default'];
TheTempusProject::$activeConfig->load( BEDROCK_CONFIG_JSON );
$baseConfig = TheTempusProject::$configMatrix;
$logo = $baseConfig['main']['logo']['default'];
if ( Input::exists( 'logo' ) && Upload::image( 'logo', 'System' ) ) {
$logo = 'Uploads/Images/System/' . Upload::last();
}
TheTempusProject::$activeConfig->load( BEDROCK_CONFIG_JSON );
$baseConfig = TheTempusProject::$configMatrix;
$baseConfig['main']['logo']['value'] = $logo;
$baseConfig['main']['name']['value'] = Input::postNull( 'siteName' );
$baseConfig['database']['dbEnabled']['value'] = $baseConfig['database']['dbEnabled']['default'];