Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--<iframe src="https://www.matchpint.co.uk/pub-widget-20353" width="100%" height="800px" frameBorder="0"></iframe>-->
- <?php
- $matchPintData = simplexml_load_file("https://www.matchpint.co.uk/pub-xml-feed-20353");
- //print_r($matchPintData);
- ?>
- <pre style="color: white;"><?php print_r($matchPintData) ?></pre>
- <div class="std-content">
- <div class="MP-wrapper">
- <div class="MP-row">
- <?php foreach($matchPintData->children() as $fixture): ?>
- <!-- <pre style="color: white;">--><?php //print_r($fixture) ?><!--</pre>-->
- <?php foreach($fixture as $item):
- $datePicker=strtotime($item->startTimeLocal);
- $timePicker=strtotime($item->startTimeLocal);
- ?>
- <div class="MP-col">
- <div class="MP-col-head">
- <h5><?php echo date("l jS F", $datePicker); ?></h5>
- </div>
- <div class="container-fluid">
- <div class="MP-inner-row">
- <div class="MP-inner-col">
- <h5><strong><?php echo $item->sport ?></strong></h5>
- </div>
- <div class="MP-inner-col">
- <div class="content">
- <img src="<?php echo $item->team1 ?>" class="img-fluid" />
- <p><strong><?php echo $item->title ?></strong></p>
- <img src="<?php echo $item->team2 ?>" class="img-fluid" />
- </div>
- </div>
- <div class="MP-inner-col">
- <p>@ <?php echo date("G i", $timePicker); ?></p>
- </div>
- </div>
- </div>
- </div>
- <?php endforeach; ?>
- <?php endforeach; ?>
- </div>
- </div>
- </div>
- <?php
- //
- ////function isValidTeam($team1, $team2) {
- ////
- //// $team1 = strtolower($team1);
- //// $team2 = strtolower($team2);
- ////
- //// return ($team1 === 'newcastle' || $team2 === 'england') || ($team2 === 'newcastle' || $team2 === 'england');
- ////}
- //
- //?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement