PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 All 140 releases
← All changes | inc/admin/meta-box/fields/list-emails.php +60 -60 4.3.8 → 4.4.9 View file →
@@ -1,60 +1,60 @@
1 -<?php $emails = LP_Emails::instance()->emails; ?>
2 -
3 -<table class="learn-press-emails">
4 - <thead>
5 - <tr>
6 - <th></th>
7 - <th><?php esc_html_e( 'Email', 'learnpress' ); ?></th>
8 - <th><?php esc_html_e( 'Description', 'learnpress' ); ?></th>
9 - <th></th>
10 - </tr>
11 - </thead>
12 -
13 - <tbody>
14 - <?php
15 - foreach ( $emails as $email ) {
16 - $group = '';
17 -
18 - if ( $email->group ) {
19 - $url = esc_url_raw(
20 - add_query_arg(
21 - array(
22 - 'section' => $email->group->group_id,
23 - 'sub-section' => $email->id,
24 - ),
25 - admin_url( 'admin.php?page=learn-press-settings&tab=emails' )
26 - )
27 - );
28 -
29 - $group = $email->group;
30 - } else {
31 - $url = esc_url_raw( add_query_arg( array( 'section' => $email->id ), admin_url( 'admin.php?page=learn-press-settings&tab=emails' ) ) );
32 - }
33 - ?>
34 -
35 - <tr id="email-<?php echo esc_attr( $email->id ); ?>">
36 - <td class="status <?php echo esc_attr( $email->enable ? 'enabled' : '' ); ?>">
37 - <span class="change-email-status dashicons dashicons-yes" data-status="<?php echo esc_attr( $email->enable ? 'on' : 'off' ); ?>" data-id="<?php echo esc_attr( $email->id ); ?>"></span>
38 - </td>
39 - <td class="name">
40 - <a href="<?php echo esc_url_raw( $url ); ?>">
41 - <?php
42 - if ( $group ) {
43 - echo join( ' &rarr; ', array( $group, $email->title ) );
44 - } else {
45 - echo wp_kses_post( $email->title );
46 - }
47 - ?>
48 - </a>
49 - </td>
50 - <td class="description"><?php echo wp_kses_post( $email->description ); ?></td>
51 - <td class="manage"><a class="button" href="<?php echo esc_url_raw( $url ); ?>"><?php esc_html_e( 'Manage', 'learnpress' ); ?></a></td>
52 - </tr>
53 - <?php } ?>
54 - </tbody>
55 -</table>
56 -
57 -<p class="email-actions">
58 - <button class="button" id="learn-press-enable-emails" data-status="yes"><?php esc_html_e( 'Enable all', 'learnpress' ); ?></button>
59 - <button class="button" id="learn-press-disable-emails" data-status="no"><?php esc_html_e( 'Disable all', 'learnpress' ); ?></button>
60 -</p>
1 +<?php $emails = LP_Emails::instance()->emails; ?>
2 +
3 +<table class="learn-press-emails">
4 + <thead>
5 + <tr>
6 + <th></th>
7 + <th><?php esc_html_e( 'Email', 'learnpress' ); ?></th>
8 + <th><?php esc_html_e( 'Description', 'learnpress' ); ?></th>
9 + <th></th>
10 + </tr>
11 + </thead>
12 +
13 + <tbody>
14 + <?php
15 + foreach ( $emails as $email ) {
16 + $group = '';
17 +
18 + if ( $email->group ) {
19 + $url = esc_url_raw(
20 + add_query_arg(
21 + array(
22 + 'section' => $email->group->group_id,
23 + 'sub-section' => $email->id,
24 + ),
25 + admin_url( 'admin.php?page=learn-press-settings&tab=emails' )
26 + )
27 + );
28 +
29 + $group = $email->group;
30 + } else {
31 + $url = esc_url_raw( add_query_arg( array( 'section' => $email->id ), admin_url( 'admin.php?page=learn-press-settings&tab=emails' ) ) );
32 + }
33 + ?>
34 +
35 + <tr id="email-<?php echo esc_attr( $email->id ); ?>">
36 + <td class="status <?php echo esc_attr( $email->enable ? 'enabled' : '' ); ?>">
37 + <span class="change-email-status dashicons dashicons-yes" data-status="<?php echo esc_attr( $email->enable ? 'on' : 'off' ); ?>" data-id="<?php echo esc_attr( $email->id ); ?>"></span>
38 + </td>
39 + <td class="name">
40 + <a href="<?php echo esc_url_raw( $url ); ?>">
41 + <?php
42 + if ( $group ) {
43 + echo join( ' &rarr; ', array( $group, $email->title ) );
44 + } else {
45 + echo wp_kses_post( $email->title );
46 + }
47 + ?>
48 + </a>
49 + </td>
50 + <td class="description"><?php echo wp_kses_post( $email->description ); ?></td>
51 + <td class="manage"><a class="button" href="<?php echo esc_url_raw( $url ); ?>"><?php esc_html_e( 'Manage', 'learnpress' ); ?></a></td>
52 + </tr>
53 + <?php } ?>
54 + </tbody>
55 +</table>
56 +
57 +<p class="email-actions">
58 + <button class="button" id="learn-press-enable-emails" data-status="yes"><?php esc_html_e( 'Enable all', 'learnpress' ); ?></button>
59 + <button class="button" id="learn-press-disable-emails" data-status="no"><?php esc_html_e( 'Disable all', 'learnpress' ); ?></button>
60 +</p>