78 $this->
widget = new \YAWK\widget();
100 public function init()
117 echo
"<script type=\"text/javascript\" src=\"system/engines/jquery/jquery.validate.min.js\"></script>";
121 echo
"<script type=\"text/javascript\" src=\"system/engines/jquery/messages_de.min.js\"></script>";
124 echo
"<script type=\"text/javascript\" src=\"system/widgets/newsletter/js/nl.js\"></script>";
134 if (isset($this->newsletterBtnMarginTop) && (!empty($this->newsletterBtnMarginTop)))
136 $this->markupBtnMarginTop =
" style=\"margin-top:$this->newsletterBtnMarginTop\"";
140 $this->markupBtnMarginTop =
'';
144 if (isset($this->newsletterBtnClass) && (!empty($this->newsletterBtnClass)))
146 $this->markupBtnClass =
"$this->newsletterBtnClass";
150 $this->markupBtnClass =
'';
154 if (isset($this->newsletterBtnAlign) && (!empty($this->newsletterBtnAlign)))
156 $this->markupBtnAlign =
" class=\"$this->newsletterBtnAlign\"";
160 $this->markupBtnAlign =
'';
164 if (isset($this->newsletterHideLabels) && ($this->newsletterHideLabels ==
"false"))
166 $this->markupNameLabel =
"<label for=\"name\">$this->newsletterNamePlaceholder</label>";
167 $this->markupEmailLabel =
"<br><label for=\"email\">$this->newsletterEmailPlaceholder</label>";
171 $this->markupNameLabel =
'';
172 $this->markupEmailLabel =
'';
176 if (isset($this->newsletterIcon) && (!empty($this->newsletterIcon)))
178 $this->markupIcon =
"<i class=\"$this->newsletterIcon\"></i> ";
182 $this->markupIcon =
'';
186 if (isset($this->newsletterFontSize) && (!empty($this->newsletterFontSize)))
188 $this->markupFontSizeStart =
"<$this->newsletterFontSize>";
189 $this->markupFontSizeEnd =
"</$this->newsletterFontSize>";
193 $this->markupFontSizeStart =
"<H2>";
194 $this->markupFontSizeEnd =
"</H2>";
198 if (isset($this->newsletterWidth) && (!empty($this->newsletterWidth)))
200 if (substr($this->newsletterWidth, -1) !=
"%")
202 $this->newsletterWidth = $this->newsletterWidth.
"%";
205 $this->markupFormWidth =
" style=\"width: $this->newsletterWidth;\"";
209 $this->markupFormWidth =
'';
220 <div class=\"container-fluid\">
222 <div class=\"col-md-12\">
223 <div id=\"formWrapper\">
224 <div id=\"newsletterTitle\">$this->markupFontSizeStart$this->markupIcon$this->newsletterTitle <small>$this->newsletterSubtext</small>$this->markupFontSizeEnd</div>
225 <form class=\"form-horizontal\" id=\"form\" method=\"post\">
226 $this->markupNameLabel
227 <input type=\"text\" name=\"name\" id=\"name\" class=\"form-control\" placeholder=\"$this->newsletterNamePlaceholder\"$this->markupFormWidth>
228 $this->markupEmailLabel
229 <input type=\"text\" name=\"email\" id=\"email\" class=\"form-control\" placeholder=\"$this->newsletterEmailPlaceholder\"$this->markupFormWidth>
230 <input type=\"hidden\" name=\"thankYouTitle\" id=\"thankYouTitle\" value=\"$this->newsletterThankYouTitle\">
231 <input type=\"hidden\" name=\"thankYouSubtext\" id=\"thankYouSubtext\" value=\"$this->newsletterThankYouSubtext\">
232 <div$this->markupBtnAlign$this->markupFormWidth>
233 <input type=\"button\" class=\"$this->markupBtnClass\" id=\"submit\" name=\"submit\" value=\"$this->newsletterBtnText\"$this->markupBtnMarginTop>
237 <div id=\"thankYouMessage\"></div>
static getCurrentLanguageStatic()
returns the currently set backend language, but is static callable
This class serves methods to create backup from files.
if(isset($_POST['save'])) $settings