YaWK  24.1
Yet another WebKit
soundcloud.php
Go to the documentation of this file.
1 <?php
2 // check if db obj exits
3 if (!isset($db) || (empty($db)))
4 { // if not, create new db obj
5  $db = new \YAWK\db();
6 }
7 // check if soundcloud player obj is loaded
8 if(!isset($soundcloud) || (empty($soundcloud)))
9 {
10  // if not, include soundcloud widget class
11  require_once ('classes/soundcloud.php');
12  // create soundcloud player widget object
13  $soundcloud = new \YAWK\WIDGETS\SOUNDCLOUD\PLAYER\soundcloud($db);
14 }
15 // init current soundcloud player
16 $soundcloud->init();