wp-user-avatar
/
src
/
Admin
/
SettingsPages
/
ShortcodeBuilder
/
EditShortcodeUserProfile
/
edit_screen.php
wp-user-avatar
/
src
/
Admin
/
SettingsPages
/
ShortcodeBuilder
/
EditShortcodeUserProfile
Last commit date
EditShortcodeUserProfile.php
5 years ago
edit_screen.php
5 years ago
edit_screen.php
49 lines
| 1 | <?php |
| 2 | |
| 3 | use ProfilePress\Core\Classes\FormRepository; |
| 4 | |
| 5 | $form_id = absint($_GET['id']); |
| 6 | |
| 7 | $title = FormRepository::get_name($form_id, FormRepository::USER_PROFILE_TYPE); |
| 8 | $structure = FormRepository::get_form_meta($form_id, FormRepository::USER_PROFILE_TYPE, FormRepository::FORM_STRUCTURE); |
| 9 | $css = FormRepository::get_form_meta($form_id, FormRepository::USER_PROFILE_TYPE, FormRepository::FORM_CSS); |
| 10 | |
| 11 | $content = isset($_POST['fep_structure']) ? stripslashes($_POST['fep_structure']) : $structure; |
| 12 | |
| 13 | ?> |
| 14 | |
| 15 | <form method="post"> |
| 16 | <div class="ppSCB-margin-r"> |
| 17 | <div class="ppSCB-tab-box"> |
| 18 | <div id="titlediv"> |
| 19 | <div id="titlewrap"> |
| 20 | <label class="screen-reader-text" id="title-prompt-text" for="title"><?= esc_html__('Enter title here', 'wp-user-avatar') ?></label> |
| 21 | <input name="fep_title" type="text" value="<?= $title ?>" id="title"> |
| 22 | <input class="ppSCB-save-btn button-primary" type="submit" name="edit_user_profile_page" value="<?= esc_html__('Save Changes', 'wp-user-avatar') ?>"> |
| 23 | </div> |
| 24 | </div> |
| 25 | <h2 class="nav-tab-wrapper"> |
| 26 | <a class="nav-tab" href="#ppStructure"><?= esc_html__('Structure', 'wp-user-avatar') ?></a> |
| 27 | <a class="nav-tab" href="#ppCSS"><?= esc_html__('CSS', 'wp-user-avatar') ?></a> |
| 28 | |
| 29 | <span class="pp-form-builder-shortcodes-btn"> |
| 30 | <a href="#" id="ppress-available-shortcodes-btn" class="button button-secondary"><?= esc_html__('Available Shortcodes', 'wp-user-avatar') ?></a> |
| 31 | </span> |
| 32 | </h2> |
| 33 | <div class="ppSCB-tab-box-div"> |
| 34 | <div id="ppStructure" class="ppSCB-tab-content"> |
| 35 | <textarea rows="30" name="fep_structure" id="pp_fe_profile_structure"><?php echo $content ?></textarea> |
| 36 | <div class="ppSCB-clear-both"></div> |
| 37 | </div> |
| 38 | <div id="ppCSS" class="ppSCB-tab-content"> |
| 39 | <textarea rows="30" name="fep_css" id="pp_fe_profile_css"><?php echo isset($_POST['fep_css']) ? stripslashes($_POST['fep_css']) : $css; ?></textarea> |
| 40 | <div class="ppSCB-clear-both"></div> |
| 41 | </div> |
| 42 | </div> |
| 43 | </div> |
| 44 | <div class="ppSCB-sidebar"> |
| 45 | <h3><?= esc_html__('Preview', 'wp-user-avatar') ?></h3> |
| 46 | <iframe id="indexIframe"></iframe> |
| 47 | </div> |
| 48 | </div> |
| 49 | </form> |