EditProfileBuilder.php
5 years ago
FieldsShortcodeCallback.php
5 years ago
FrontendProfileBuilder.php
5 years ago
GlobalShortcodes.php
5 years ago
LoginFormBuilder.php
5 years ago
PasswordResetBuilder.php
5 years ago
RegistrationFormBuilder.php
5 years ago
builder-preview.php
5 years ago
index.php
5 years ago
builder-preview.php
31 lines
| 1 | <?php |
| 2 | // if ajax post request is received return the parsed shortcode |
| 3 | use ProfilePress\Core\ShortcodeParser\Builder\FrontendProfileBuilder; |
| 4 | |
| 5 | if ( ! isset($_POST['builder_structure']) || empty($_POST['builder_structure'])) { |
| 6 | return; |
| 7 | } |
| 8 | $builder_structure = stripslashes($_POST['builder_structure']); |
| 9 | $builder_css = stripslashes($_POST['builder_css']); |
| 10 | ?> |
| 11 | |
| 12 | <head> |
| 13 | <script type='text/javascript'>var pp_ajax_form = {"disable_ajax_form": "false"};</script> |
| 14 | |
| 15 | <link rel="stylesheet" type="text/css" href="<?= PPRESS_ASSETS_URL . '/css/frontend.min.css' ?>"> |
| 16 | <link rel="stylesheet" type="text/css" href="<?= PPRESS_ASSETS_URL . '/select2/select2.min.css' ?>"> |
| 17 | <script type="text/javascript" src="<?= includes_url('js/jquery/jquery.js'); ?>"></script> |
| 18 | <script type="text/javascript" src="<?= PPRESS_ASSETS_URL . '/js/frontend.js'; ?>"></script> |
| 19 | <script type="text/javascript" src="<?= PPRESS_ASSETS_URL . '/select2/select2.min.js'; ?>"></script> |
| 20 | <?php if (class_exists('ProfilePress\Libsodium\Recaptcha\Recaptcha')) : ?> |
| 21 | <script type="text/javascript" src="<?= \ProfilePress\Libsodium\Recaptcha\Recaptcha::enqueue_script(true); ?>"></script> |
| 22 | <?php endif; ?> |
| 23 | |
| 24 | <style id="preview-css" type="text/css"><?= $builder_css ?></style> |
| 25 | </head> |
| 26 | <body> |
| 27 | <?php |
| 28 | FrontendProfileBuilder::get_instance(); |
| 29 | echo do_shortcode($builder_structure); |
| 30 | ?> |
| 31 | </body> |