61 $this->
widget = new \YAWK\widget();
83 public function init()
92 if (isset($this->cbaHeading) && (!empty($this->cbaHeading)))
94 $this->cbaHeading =
"$this->cbaHeading";
97 if (isset($this->cbaSubtext) && (!empty($this->cbaSubtext)))
99 $this->cbaSubtext =
"<small>$this->cbaSubtext</small>";
100 $this->headline =
"<h1>$this->cbaHeading ".
"$this->cbaSubtext</h1>";
104 $this->headline =
"<h1>$this->cbaHeading</h1>";
109 $this->headline =
'';
113 if ($this->cbaWaveform ===
"1")
115 $this->cbaWaveform =
"&waveform=true";
119 $this->cbaWaveform =
"&waveform=false";
123 if ($this->cbaTitle ===
"1")
125 $this->cbaTitle =
"&title=true";
129 $this->cbaTitle =
"&title=false";
133 if ($this->cbaSocialmedia ===
"1")
135 $this->cbaSocialmedia =
"&socialmedia=true";
139 $this->cbaSocialmedia =
"&socialmedia=false";
143 if ($this->cbaSeries ===
"1")
145 $this->cbaSeries =
"&series_link=true";
149 $this->cbaSeries =
"&series_link=false";
153 if ($this->cbaPodcast ===
"1")
155 $this->cbaPodcast =
"&subscribe=true";
159 $this->cbaSeries =
"&subscribe=false";
163 if ($this->cbaDescription ===
"1")
165 $this->cbaDescription =
"&description=true";
169 $this->cbaDescription =
"&description=false";
173 if ($this->cbaMeta ===
"1")
175 $this->cbaMeta =
"&meta=true";
179 $this->cbaMeta =
"&meta=false";
183 public function embed()
193 $this->cbaSource = $this->cbaUrl.
"/embed?".$this->cbaWaveform.$this->cbaTitle.$this->cbaSocialmedia.$this->cbaPodcast.$this->cbaSeries.$this->cbaDescription.$this->cbaMeta;
196 <!-- cba stream iframe -->
198 <iframe width=\"$this->cbaWidth\"
199 height=\"$this->cbaHeight\"
200 src=\"$this->cbaSource\"
203 style=\"border:none; width:$this->cbaWidth; height:$this->cbaHeight;\">
if(isset($_POST['save'])) $settings