58 $this->
widget = new \YAWK\widget();
83 if ($this->youtubeFullscreen ==
"true")
85 $this->youtubeFullscreenMarkup =
"allowfullscreen=\"true\"";
89 $this->youtubeFullscreenMarkup =
'';
93 if ($this->youtubeAutoplay ==
"true")
95 $this->youtubeAutoplayMarkup =
"?autoplay=1";
99 $this->youtubeAutoplayMarkup =
'';
103 if (isset($this->youtubeCssClass) && (!empty($this->youtubeCssClass)))
105 $this->cssMarkup =
" class=\"$this->youtubeCssClass\"";
109 $this->cssMarkup =
'';
113 if (isset($this->youtubeHeading) && (!empty($this->youtubeHeading)))
116 if (isset($this->youtubeSubtext) && (!empty($this->youtubeSubtext)))
118 $this->youtubeSubtext =
"<small>$this->youtubeSubtext</small>";
119 $this->headlineMarkup =
"<h1>$this->youtubeHeading $this->youtubeSubtext</h1>";
123 $this->headlineMarkup =
"<h1>$this->youtubeHeading</h1>";
128 $this->headlineMarkup =
'';
132 if (isset($this->youtubeDescription) && (!empty($this->youtubeDescription)))
134 $this->descriptionMarkup =
"<p>$this->youtubeDescription</p>";
138 $this->descriptionMarkup =
'';
142 $this->youtubeVideoUrl = str_replace(
"watch?v=",
"embed/",$this->youtubeVideoUrl.$this->youtubeAutoplayMarkup);
151 padding-bottom: 56.25%; /* 16:9 */
155 .videoWrapper iframe {
166 $this->headlineMarkup
167 <!-- youtube video wrapper -->
168 <div class=\"videoWrapper\">
169 <!-- youtube video iframe -->
170 <iframe width=\"$this->youtubeWidth\"
171 height=\"$this->youtubeHeight\"
172 src=\"$this->youtubeVideoUrl\"
175 $this->youtubeFullscreenMarkup
178 $this->descriptionMarkup
179 <!-- end video wrapper -->
if(isset($_POST['save'])) $settings