Advertisement
Guest User

Arif

a guest
Jan 21st, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.18 KB | None | 0 0
  1. <?php
  2.   $league_point_table_notes =rwmb_meta( 'goalkick_league_point_table_notes');
  3.   $goalkick_league_point_table_options =rwmb_meta( 'goalkick_league_point_table_option'); ?>
  4.   <?php
  5.   if( !empty($goalkick_league_point_table_options)) {?>
  6.     <!-- /Start .point-table-wrapper -->
  7.     <div class="point-table-wrapper table-responsive">
  8.       <!-- /Start .table table-bordered -->
  9.       <table class="table table-bordered competition-table table-hover">
  10.         <thead class="thead-dark">
  11.           <tr class="table-head">
  12.             <th class="text-center thead-light">
  13.               <abbr title="Position">
  14.                 <?php _e( 'P', 'goalkick' ); ?>
  15.               </abbr>
  16.             </th>
  17.             <th class="text-center">
  18.               <?php _e( 'Team', 'goalkick' ); ?>
  19.             </th>
  20.             <th class="text-center">
  21.               <abbr title="Match Played">
  22.                 <?php _e( 'MP', 'goalkick' ); ?>
  23.               </abbr>
  24.             </th>
  25.             <th class="text-center">
  26.               <abbr title="Won">
  27.                 <?php _e( 'W', 'goalkick' ); ?>
  28.               </abbr>
  29.             </th>
  30.             <th class="text-center">
  31.               <abbr title="Lost">
  32.                 <?php _e( 'L', 'goalkick' ); ?>
  33.               </abbr>
  34.             </th>
  35.             <th class="text-center">
  36.               <abbr title="Drawn">
  37.                 <?php _e( 'D', 'goalkick' ); ?>
  38.               </abbr>
  39.             </th>
  40.             <th class="text-center">
  41.               <abbr title="Goals For">
  42.                 <?php _e( 'GF', 'goalkick' ); ?>
  43.               </abbr>
  44.             </th>
  45.             <th class="text-center">
  46.               <abbr title="Goals Against">
  47.                 <?php _e( 'GA', 'goalkick' ); ?>
  48.               </abbr>
  49.             </th>
  50.             <th class="text-center">
  51.               <abbr title="Goals Difference">
  52.                 <?php _e( 'GD', 'goalkick' ); ?>
  53.               </abbr>
  54.             </th>
  55.             <th class="text-center">
  56.               <abbr title="Points">
  57.                 <?php _e( 'Pts', 'goalkick' ); ?>
  58.               </abbr>
  59.             </th>
  60.           </tr>
  61.         </thead>
  62.         <tbody>
  63.           <?php
  64.           foreach ($goalkick_league_point_table_options as $goalkick_league_point_table_option) {
  65.             $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'] : '';
  66.             $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'] : '';
  67.             $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'] : '';
  68.             $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'] : '';
  69.             $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'] : '';
  70.             $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'] : '';
  71.             $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'] : '';
  72.             $league_standing_match_draw_manual = $league_standing_match_played_manual-($league_standing_match_win_manual +$league_standing_match_loss_manual);
  73.             $league_standing_goal_difference_manual = $league_standing_goal_scored_manual-$league_standing_goal_concided_manual;
  74.             $league_standing_points_manual = ($league_standing_match_win_manual*3)+$league_standing_match_draw_manual ; ?>
  75.             <tr class="table-data">
  76.               <td class="table-rank">
  77.               </td>
  78.    
  79.               <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
  80.                 <td class="text-center" class="text-center">
  81.                   <?php echo $league_point_table_team_manual; ?>
  82.                 </td>
  83.               <?php } ?>
  84.  
  85.               <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
  86.                 <td class="text-center">
  87.                   <?php echo $league_standing_match_played_manual ; ?>
  88.                 </td>
  89.               <?php } ?>
  90.              
  91.               <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
  92.                 <td class="text-center" class="text-center">
  93.                   <?php echo $league_standing_match_win_manual ; ?>
  94.                 </td>
  95.               <?php } ?>
  96.              
  97.               <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
  98.                 <td class="text-center" class="text-center">
  99.                   <?php echo $league_standing_match_loss_manual ; ?>
  100.                 </td>
  101.               <?php } ?>
  102.              
  103.               <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
  104.                 <td class="text-center" class="text-center">
  105.                   <?php echo $league_standing_match_draw_manual ; ?>
  106.                 </td>
  107.               <?php } ?>
  108.              
  109.               <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
  110.                 <td class="text-center" class="text-center">
  111.                   <?php echo $league_standing_goal_scored_manual ; ?>
  112.                 </td>
  113.               <?php } ?>
  114.              
  115.               <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
  116.                 <td class="text-center" class="text-center">
  117.                   <?php echo $league_standing_goal_concided_manual ; ?>
  118.                 </td>
  119.               <?php } ?>
  120.              
  121.               <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
  122.                 <td class="text-center" class="text-center">
  123.                   <?php echo $league_standing_goal_difference_manual ; ?>
  124.                 </td>
  125.               <?php } ?>
  126.              
  127.               <?php if( $league_point_table_data_selection_type == 'manual' ) {?>
  128.                 <td class="text-center" class="text-center">
  129.                   <?php echo $league_standing_points_manual ; ?>
  130.                 </td>
  131.               <?php } ?>
  132.             </tr>
  133.           <?php } ?>
  134.         </tbody>
  135.       </table>
  136.       <!-- /End .table table-bordered -->
  137.     </div>
  138.     <!-- /End .point-table-wrapper -->
  139.     <!-- /Start .point-table-notes -->
  140.     <div class="point-table-notes">
  141.       <h2>
  142.       </h2>
  143.       <?php echo $league_point_table_notes ; ?>
  144.     </div>
  145.     <!-- /End .point-table-notes -->
  146.   <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement