Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $league_point_table_notes =rwmb_meta( 'goalkick_league_point_table_notes');
- $goalkick_league_point_table_options =rwmb_meta( 'goalkick_league_point_table_option'); ?>
- <?php
- if( !empty($goalkick_league_point_table_options)) {?>
- <!-- /Start .point-table-wrapper -->
- <div class="point-table-wrapper table-responsive">
- <!-- /Start .table table-bordered -->
- <table class="table table-bordered competition-table table-hover">
- <thead class="thead-dark">
- <tr class="table-head">
- <th class="text-center thead-light">
- <abbr title="Position">
- <?php _e( 'P', 'goalkick' ); ?>
- </abbr>
- </th>
- <th class="text-center">
- <?php _e( 'Team', 'goalkick' ); ?>
- </th>
- <th class="text-center">
- <abbr title="Match Played">
- <?php _e( 'MP', 'goalkick' ); ?>
- </abbr>
- </th>
- <th class="text-center">
- <abbr title="Won">
- <?php _e( 'W', 'goalkick' ); ?>
- </abbr>
- </th>
- <th class="text-center">
- <abbr title="Lost">
- <?php _e( 'L', 'goalkick' ); ?>
- </abbr>
- </th>
- <th class="text-center">
- <abbr title="Drawn">
- <?php _e( 'D', 'goalkick' ); ?>
- </abbr>
- </th>
- <th class="text-center">
- <abbr title="Goals For">
- <?php _e( 'GF', 'goalkick' ); ?>
- </abbr>
- </th>
- <th class="text-center">
- <abbr title="Goals Against">
- <?php _e( 'GA', 'goalkick' ); ?>
- </abbr>
- </th>
- <th class="text-center">
- <abbr title="Goals Difference">
- <?php _e( 'GD', 'goalkick' ); ?>
- </abbr>
- </th>
- <th class="text-center">
- <abbr title="Points">
- <?php _e( 'Pts', 'goalkick' ); ?>
- </abbr>
- </th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach ($goalkick_league_point_table_options as $goalkick_league_point_table_option) {
- $league_point_table_data_selection_type = isset( $goalkick_league_point_table_option['goalkick_league_point_table_data_selection_type'] ) ? $goalkick_league_point_table_option['goalkick_league_point_table_data_selection_type'] : '';
- $league_point_table_team_manual = isset( $goalkick_league_point_table_option['goalkick_league_point_table_team_manual'] ) ? $goalkick_league_point_table_option['goalkick_league_point_table_team_manual'] : '';
- $league_standing_match_played_manual = isset( $goalkick_league_point_table_option['goalkick_league_standing_match_played_manual'] ) ? $goalkick_league_point_table_option['goalkick_league_standing_match_played_manual'] : '';
- $league_standing_match_win_manual = isset( $goalkick_league_point_table_option['goalkick_league_standing_match_win_manual'] ) ? $goalkick_league_point_table_option['goalkick_league_standing_match_win_manual'] : '';
- $league_standing_match_loss_manual = isset( $goalkick_league_point_table_option['goalkick_league_standing_match_loss_manual'] ) ? $goalkick_league_point_table_option['goalkick_league_standing_match_loss_manual'] : '';
- $league_standing_goal_scored_manual = isset( $goalkick_league_point_table_option['goalkick_league_standing_goal_scored_manual'] ) ? $goalkick_league_point_table_option['goalkick_league_standing_goal_scored_manual'] : '';
- $league_standing_goal_concided_manual = isset( $goalkick_league_point_table_option['goalkick_league_standing_goal_concided_manual'] ) ? $goalkick_league_point_table_option['goalkick_league_standing_goal_concided_manual'] : '';
- $league_standing_match_draw_manual = $league_standing_match_played_manual-($league_standing_match_win_manual +$league_standing_match_loss_manual);
- $league_standing_goal_difference_manual = $league_standing_goal_scored_manual-$league_standing_goal_concided_manual;
- $league_standing_points_manual = ($league_standing_match_win_manual*3)+$league_standing_match_draw_manual ; ?>
- <tr class="table-data">
- <td class="table-rank">
- </td>
- <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
- <td class="text-center" class="text-center">
- <?php echo $league_point_table_team_manual; ?>
- </td>
- <?php } ?>
- <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
- <td class="text-center">
- <?php echo $league_standing_match_played_manual ; ?>
- </td>
- <?php } ?>
- <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
- <td class="text-center" class="text-center">
- <?php echo $league_standing_match_win_manual ; ?>
- </td>
- <?php } ?>
- <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
- <td class="text-center" class="text-center">
- <?php echo $league_standing_match_loss_manual ; ?>
- </td>
- <?php } ?>
- <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
- <td class="text-center" class="text-center">
- <?php echo $league_standing_match_draw_manual ; ?>
- </td>
- <?php } ?>
- <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
- <td class="text-center" class="text-center">
- <?php echo $league_standing_goal_scored_manual ; ?>
- </td>
- <?php } ?>
- <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
- <td class="text-center" class="text-center">
- <?php echo $league_standing_goal_concided_manual ; ?>
- </td>
- <?php } ?>
- <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
- <td class="text-center" class="text-center">
- <?php echo $league_standing_goal_difference_manual ; ?>
- </td>
- <?php } ?>
- <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
- <td class="text-center" class="text-center">
- <?php echo $league_standing_points_manual ; ?>
- </td>
- <?php } ?>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- <!-- /End .table table-bordered -->
- </div>
- <!-- /End .point-table-wrapper -->
- <!-- /Start .point-table-notes -->
- <div class="point-table-notes">
- <h2>
- </h2>
- <?php echo $league_point_table_notes ; ?>
- </div>
- <!-- /End .point-table-notes -->
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement