58 $this->
widget = new \YAWK\widget();
82 public function init()
98 if (isset($this->soundcloudUrl) && (!empty($this->soundcloudUrl)
99 && (is_string($this->soundcloudUrl))))
101 $this->soundcloudUrl = strstr($this->soundcloudUrl,
'soundcloud.com/');
105 $this->
errorMsg =
"Here should be a SoundCloud music player, but no SoundCloud URL was set.";
109 if (isset($this->soundcloudTitle) && (!empty($this->soundcloudTitle)))
112 if (isset($this->soundcloudSubtext) && (!empty($this->soundcloudSubtext)))
114 $this->soundcloudSubtext =
"<small>$this->soundcloudSubtext</small>";
115 $this->headline =
"<h1>$this->soundcloudTitle " .
"$this->soundcloudSubtext</h1>";
119 $this->headline =
"<h1>$this->soundcloudTitle</h1>";
124 $this->headline =
'';
141 width=\"$this->soundcloudWidth\"
142 height=\"$this->soundcloudHeight\"
146 src=\"https://w.soundcloud.com/player/?url=https%3A//$this->soundcloudUrl&color=%23ff5500&auto_play=$this->soundcloudAutoplay&hide_related=$this->soundcloudHideRelated&show_comments=$this->soundcloudShowComments&show_user=$this->soundcloudShowUser&show_reposts=$this->soundcloudShowReposts&show_teaser=$this->soundcloudShowTeaser&visual=$this->soundcloudVisual\">
if(isset($_POST['save'])) $settings