Select your Top Menu from wp menus

2018 STANDINGS

ELITE LEAGUE STANDINGS

[insert_php]

// League Standings
$url = “https://api.pointstreak.com/hockey/season/standings/18470/xml”;
$args = array(
‘headers’ => array( “apikey” => “Oa9QFwzzWg5TZx4oaatC” )
);
$response = wp_remote_get($url, $args);
$body = wp_remote_retrieve_body($response);
$oXML = new SimpleXMLElement($body);

[/insert_php]

[insert_php]

foreach($oXML->team as $tm){
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
}

[/insert_php]

Team GP W L OL SOL RW PTS
‘.$tm->rank.’ ‘.$tm->teamname.’ ‘.$tm->gp.’ ‘.$tm->wins.’ ‘.$tm->losses.’ ‘.$tm->overtimelosses.’ ‘.$tm->shootoutlosses.’ ‘.$tm->regulationwins.’ ‘.$tm->points.’
ERHARDT CONFERNCE STANDINGS

[insert_php]

// Erdhart Conference
//$url = “https://api.pointstreak.com/hockey/division/standings/91556/18470/xml”;
$url = “https://api.pointstreak.com/hockey/season/conferencestandings/18470/xml”;
$args = array(
‘headers’ => array( “apikey” => “elXB8YV7Q6uGZjJGUEo0” )
);
$response = wp_remote_get($url, $args);
$body = wp_remote_retrieve_body($response);
$oXML = new SimpleXMLElement($body);
[/insert_php]

[insert_php]
$pos = 1;
foreach($oXML->team as $tm){
if ($tm->division[‘divisionid’] == ‘91556’) {
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
$pos++;
}
}

[/insert_php]

Team GP W L OL SOL RW PTS
‘.$pos.’ ‘.$tm->teamname.’ ‘.$tm->gp.’ ‘.$tm->wins.’ ‘.$tm->losses.’ ‘.$tm->overtimelosses.’ ‘.$tm->shootoutlosses.’ ‘.$tm->regulationwins.’ ‘.$tm->points.’
CHALLENGE CUP GROUP A

[insert_php]

// Challenge Cup A
//$url = “https://api.pointstreak.com/hockey/division/standings/101195/18469/xml”;
$url = “https://api.pointstreak.com/hockey/season/conferencestandings/18469/xml”;

$args = array(
‘headers’ => array( “apikey” => “elXB8YV7Q6uGZjJGUEo0” )
);
$response = wp_remote_get($url, $args);
$body = wp_remote_retrieve_body($response);
$oXML = new SimpleXMLElement($body);
[/insert_php]

[insert_php]
$pos = 1;
foreach($oXML->team as $tm){
if ($tm->division[‘divisionid’] == ‘108073’) {
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
$pos++;
}
}

[/insert_php]

Team GP W L OL SOL RW PTS
‘.$pos.’ ‘.$tm->teamname.’ ‘.$tm->gp.’ ‘.$tm->wins.’ ‘.$tm->losses.’ ‘.$tm->overtimelosses.’ ‘.$tm->shootoutlosses.’ ‘.$tm->regulationwins.’ ‘.$tm->points.’