PluginProbe
School Management System – WPSchoolPress / trunk
School Management System – WPSchoolPress vtrunk
2.2.48 2.2.47 2.2.46 2.2.45 2.2.44 2.2.43 2.2.42 2.2.41 2.2.40 2.2.39 2.2.38 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 All 103 releases
← All changes | pages/wpsp-payment.php +19 -2 2.2.43 → trunk View file →
@@ -9,8 +9,16 @@
9 9 wpsp_sidebar();
10 10 wpsp_body_start();
11 11 $id = sanitize_text_field(stripslashes($_GET['id']));
12 12 $user_id = esc_sql(base64_decode($id));
13 + /**
14 + * Hand off this page's body to a payment add-on if one is active.
15 + * Falls back to the legacy markup below when no add-on is hooked in,
16 + * so existing installs without the add-on keep working unchanged.
17 + */
18 + if ( has_action( 'wpsp_render_payment_dashboard' ) ) {
19 + do_action( 'wpsp_render_payment_dashboard', 'admin' );
20 + } else {
13 21 ?>
14 22 <div class="wpsp-row">
15 23 <div class="wpsp-col-md-12">
16 24 <div class="wpsp-card">
@@ -26,9 +34,9 @@
26 34 <th><?php esc_html_e( 'Class Name', 'wpschoolpress' ); ?></th>
27 35 <th><?php esc_html_e( 'Class Teacher Name', 'wpschoolpress' ); ?></th>
28 36 <th><?php esc_html_e( 'Amount', 'wpschoolpress' ); ?></th>
29 37 <th><?php esc_html_e( 'Date', 'wpschoolpress' ); ?></th>
30 - <th><?php esc_html_e( 'Class Fee Status', 'wpschoolpress' ); ?></th>
38 + <th><?php esc_html_e( 'Class Fee Status3', 'wpschoolpress' ); ?></th>
31 39 </tr>
32 40 </thead>
33 41 <tbody>
34 42 <?php
@@ -109,8 +117,9 @@
109 117 </div>
110 118 </div>
111 119 </div>
112 120 <?php
121 + } // end else (legacy fallback markup)
113 122 wpsp_body_end();
114 123 wpsp_footer();
115 124 }else if($current_user_role=='parent' || $current_user_role='student'){
116 125 wpsp_topbar();
@@ -115,8 +124,15 @@
115 124 }else if($current_user_role=='parent' || $current_user_role='student'){
116 125 wpsp_topbar();
117 126 wpsp_sidebar();
118 127 wpsp_body_start();
128 + /**
129 + * Same hand-off as the admin/teacher branch above — a payment add-on
130 + * renders the parent/student view here when active.
131 + */
132 + if ( has_action( 'wpsp_render_payment_dashboard' ) ) {
133 + do_action( 'wpsp_render_payment_dashboard', 'parent_student' );
134 + } else {
119 135 ?>
120 136 <div class="wpsp-row">
121 137 <div class="wpsp-col-md-12">
122 138 <div class="wpsp-card">
@@ -132,9 +148,9 @@
132 148 <th><?php esc_html_e( 'Class Name', 'wpschoolpress' ); ?></th>
133 149 <th><?php esc_html_e( 'Class Teacher Name', 'wpschoolpress' ); ?></th>
134 150 <th><?php esc_html_e( 'Amount', 'wpschoolpress' ); ?></th>
135 151 <th><?php esc_html_e( 'Date', 'wpschoolpress' ); ?></th>
136 - <th><?php esc_html_e( 'Class Fee Status', 'wpschoolpress' ); ?></th>
152 + <th><?php esc_html_e( 'Class Fee Status4', 'wpschoolpress' ); ?></th>
137 153 </tr>
138 154 </thead>
139 155 <tbody>
140 156 <?php
@@ -276,8 +292,9 @@
276 292 </div>
277 293 </div>
278 294 </div>
279 295 <?php
296 + } // end else (legacy fallback markup)
280 297 wpsp_body_end();
281 298 wpsp_footer();
282 299 }
283 300 }else{