31 $this->
widget = new \YAWK\widget();
45 if (isset($this->embedPageName) && (!empty($this->embedPageName)))
48 $this->file =
"content/pages/$this->embedPageName";
50 if (substr($this->file, -5) ==
".html")
52 $this->file = substr($this->file, 0, -5);
53 $this->file = $this->file.
".php";
56 if (is_file($this->file))
58 include ($this->file);
61 else if (is_file($this->embedPageName))
63 include ($this->embedPageName);
67 echo
"Embed: $this->file not found!";
72 echo
"Embed page name $this->embedPageName not set";
Embed any static page in any widget position.
init()
Init and embed static page.
__construct($db)
Load all widget settings from database and fill object.
if(isset($_POST['save'])) $settings