|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/nandedex/www/wp-content/plugins11/financial-pack-pro/api/examples/ |
<?php
$abspath = realpath( str_repeat( '../', 5 ) );
require $abspath . '/wp-load.php';
$events = bsfp_get_events( 'bitcoin' );
//$events = bsfp_get_events( 'bitcoin' );
if ( $events === FALSE ) {
die( "<h1>Cannot fetch events :-/</h1>" );
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Events</title>
</head>
<body>
<table border="1">
<thead>
<tr>
<th>Title</th>
<th>Date</th>
<th>location</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<?php foreach ( $events as $event ) : ?>
<tr>
<td><a href="<?php echo $event['url'] ?>" target="_blank"><?php echo $event['title'] ?></a></td>
<td><?php echo $event['date'] ?></td>
<td><?php echo $event['location'] ?></td>
<td><?php echo $event['desc'] ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</body>
</html>