Advertisement
nbinks1

Untitled

Dec 5th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. <!--<iframe src="https://www.matchpint.co.uk/pub-widget-20353" width="100%" height="800px" frameBorder="0"></iframe>-->
  2. <?php
  3. $matchPintData = simplexml_load_file("https://www.matchpint.co.uk/pub-xml-feed-20353");
  4.  
  5. //print_r($matchPintData);
  6. ?>
  7.  
  8. <pre style="color: white;"><?php print_r($matchPintData) ?></pre>
  9.  
  10. <div class="std-content">
  11.  
  12. <div class="MP-wrapper">
  13.  
  14. <div class="MP-row">
  15.  
  16. <?php foreach($matchPintData->children() as $fixture): ?>
  17.  
  18. <!-- <pre style="color: white;">--><?php //print_r($fixture) ?><!--</pre>-->
  19.  
  20. <?php foreach($fixture as $item):
  21. $datePicker=strtotime($item->startTimeLocal);
  22. $timePicker=strtotime($item->startTimeLocal);
  23.  
  24. ?>
  25. <div class="MP-col">
  26. <div class="MP-col-head">
  27. <h5><?php echo date("l jS F", $datePicker); ?></h5>
  28. </div>
  29.  
  30.  
  31. <div class="container-fluid">
  32. <div class="MP-inner-row">
  33. <div class="MP-inner-col">
  34. <h5><strong><?php echo $item->sport ?></strong></h5>
  35. </div>
  36. <div class="MP-inner-col">
  37. <div class="content">
  38. <img src="<?php echo $item->team1 ?>" class="img-fluid" />
  39. <p><strong><?php echo $item->title ?></strong></p>
  40. <img src="<?php echo $item->team2 ?>" class="img-fluid" />
  41. </div>
  42. </div>
  43. <div class="MP-inner-col">
  44. <p>@ <?php echo date("G i", $timePicker); ?></p>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <?php endforeach; ?>
  50.  
  51. <?php endforeach; ?>
  52.  
  53. </div>
  54.  
  55. </div>
  56.  
  57. </div>
  58.  
  59. <?php
  60. //
  61. ////function isValidTeam($team1, $team2) {
  62. ////
  63. //// $team1 = strtolower($team1);
  64. //// $team2 = strtolower($team2);
  65. ////
  66. //// return ($team1 === 'newcastle' || $team2 === 'england') || ($team2 === 'newcastle' || $team2 === 'england');
  67. ////}
  68. //
  69. //?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement