first commit

This commit is contained in:
Roman Pyrih
2026-04-21 15:48:41 +02:00
commit 7483681901
10216 changed files with 3236626 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
?>
<div id="installer-switch-wrapper">
<span class="btn-group small">
<button
type="button"
id="s1-switch-template-btn-basic"
class="s1-switch-template-btn active"
title="Enable basic installer mode"
>
Basic
</button>
<button
type="button"
id="s1-switch-template-btn-advanced"
class="s1-switch-template-btn"
data-template="<?php echo DUPX_Template::TEMPLATE_ADVANCED; ?>"
title="Enable advanced installer mode"
>
Advanced
</button>
</span>
</div>

View File

@@ -0,0 +1,31 @@
<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
use Duplicator\Installer\Core\Params\PrmMng;
?>
<div id="next_action" class="bottom-step-action no-display" >
<div class="footer-buttons">
<div class="content-left">
<?php
dupxTplRender('pages-parts/step1/terms-and-conditions');
PrmMng::getInstance()->getHtmlFormParam(PrmMng::PARAM_ACCEPT_TERM_COND);
?>
</div>
<div class="content-right" >
<button
id="s1-deploy-btn"
type="button"
title="<?php echo DUPX_U::esc_attr('To enable this button the checkbox above under the "Terms & Notices" must be checked.'); ?>"
class="default-btn">
Next <i class="fa fa-caret-right"></i>
</button>
</div>
</div>
</div>

View File

@@ -0,0 +1,8 @@
<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;

View File

@@ -0,0 +1,15 @@
<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
dupxTplRender('pages-parts/head/header-main', [
'htmlTitle' => 'Step <span class="step">1</span> of 2: Deployment ' .
'<div class="sub-header">This step will extract the archive file, install & update the database.</div>',
'showSwitchView' => true,
'showHeaderLinks' => false,
]);

View File

@@ -0,0 +1,10 @@
<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
dupxTplRender('pages-parts/head/header-main', ['htmlTitle' => 'Step <span class="step">2</span> of 2: Test Site']);

View File

@@ -0,0 +1,24 @@
<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
use Duplicator\Installer\Core\Security;
use Duplicator\Installer\Core\Params\PrmMng;
use Duplicator\Installer\Utils\SecureCsrf;
use Duplicator\Libs\Snap\SnapJson;
$nextStepPrams = [
PrmMng::PARAM_CTRL_ACTION => 'ctrl-step4',
Security::CTRL_TOKEN => SecureCsrf::generate('ctrl-step4'),
];
?>
<script>
DUPX.deployStep1 = function () {
DUPX.oneStepDeploy($('#s1-input-form'), <?php echo SnapJson::jsonEncode($nextStepPrams); ?>);
};
</script>