MyAccountTag.php
1 month ago
account-settings.tmpl.php
3 years ago
billing-details.tmpl.php
1 year ago
change-password.tmpl.php
1 year ago
dashboard.tmpl.php
3 years ago
delete-account.tmpl.php
1 year ago
downloads.tmpl.php
1 year ago
edit-profile.tmpl.php
1 year ago
email-notifications.tmpl.php
3 years ago
index.php
5 years ago
orders.tmpl.php
3 years ago
subscriptions.tmpl.php
1 year ago
view-order.tmpl.php
1 year ago
view-subscription.tmpl.php
1 year ago
email-notifications.tmpl.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | use ProfilePress\Core\Classes\PROFILEPRESS_sql; |
| 4 | use ProfilePress\Core\ShortcodeParser\MyAccount\MyAccountTag; |
| 5 | |
| 6 | if ( ! defined('ABSPATH')) { |
| 7 | exit; // Exit if accessed directly |
| 8 | } |
| 9 | |
| 10 | $current_user = get_user_by('id', get_current_user_id()); |
| 11 | ?> |
| 12 | <div class="profilepress-myaccount-notification"> |
| 13 | |
| 14 | <h2><?= esc_html__('Email Notifications', 'wp-user-avatar') ?></h2> |
| 15 | |
| 16 | <?php if (isset($_GET['edit']) && $_GET['edit'] == 'true') : ?> |
| 17 | <?php MyAccountTag::alert_message(apply_filters('ppmyac_email_notifications_success_message', esc_html__('Account was updated successfully.', 'wp-user-avatar'))) ?> |
| 18 | <?php endif; |
| 19 | |
| 20 | $contents = MyAccountTag::email_notification_endpoint_content(); |
| 21 | |
| 22 | if ( ! empty($contents)) { |
| 23 | |
| 24 | foreach ($contents as $content) { |
| 25 | ?> |
| 26 | <div class="profilepress-myaccount-email-notifications-wrap"> |
| 27 | |
| 28 | <h3><?= $content['title']; ?></h3> |
| 29 | |
| 30 | <div class="profilepress-myaccount-form-wrap"> |
| 31 | <?= $content['content']; ?> |
| 32 | </div> |
| 33 | |
| 34 | </div> |
| 35 | <?php |
| 36 | } |
| 37 | } |
| 38 | ?> |
| 39 | </div> |
| 40 | <?php |
| 41 | |
| 42 | do_action('ppress_myaccount_email_notification'); |