public function __construct($backgroundimagePath, $height, $absolute = false, $fixed = false, $id = null) { parent::__construct($id, null, null, "section", new simpleproperty(new padding(0))); $background = new \famoser\opc\css\properties\background(new \famoser\opc\css\properties\base\background('url("..' . $backgroundimagePath . '")'), new backgroundsize("cover"), $fixed); $this->addCssElements(new simpleproperty($background)); $this->addCssElements(new simpleproperty(new width("100%"))); $this->addCssElements(new simpleproperty(new height($height))); if ($absolute == true) { $this->addCssElements(new simpleproperty(new position("absolute"))); } }
public function __construct($foreground = COLOR_GREY_DARK, $background = COLOR_GREY_LIGHT) { parent::__construct("debug", $foreground, $background); $div = new div(); $div->addClass("wrapper"); $p = new p(); $p->addClass("text-center"); $text = new text(); $text->setText("try again @ "); $a = new a(ONEPAGECREATOR_HOOK); $p->addChildren($text); $p->addChildren($a); $div->addChildren($p); $this->addChildren($div); }
public function __construct($foreground = COLOR_GREY_DARK, $background = COLOR_GREY_LIGHT) { parent::__construct("footer", $foreground, $background, "footer", new responsiveproperty(new emptyproperty(), new padding(EXTRA_SMALL_SPACER, NO_SPACER, SMALL_SPACER, NO_SPACER), new padding(SMALL_SPACER, NO_SPACER, LARGE_SPACER, NO_SPACER), new padding(LARGE_SPACER, NO_SPACER, EXTRA_LARGE_SPACER, NO_SPACER), new padding(LARGE_SPACER, NO_SPACER, EXTRA_LARGE_SPACER, NO_SPACER))); $div = new div(); $div->addClass("wrapper"); $p = new p(); $p->addClass("text-center"); $text = new text(); $text->setText("Copyright © " . AUTHOR_NAME . " - "); $a = new a(AUTHOR_PAGE, AUTHOR_PAGE, AUTHOR_NAME, "_self"); $p->addChildren($text); $p->addChildren($a); $div->addChildren($p); $this->addChildren($div); }
public function __construct($foreground, $background) { parent::__construct("header", $foreground, $background, "header", new responsiveproperty(new emptyproperty(), new padding(EXTRA_SMALL_SPACER, NO_SPACER), new padding(SMALL_SPACER, NO_SPACER), new padding(EXTRA_SMALL_SPACER, NO_SPACER), new padding(SMALL_SPACER, NO_SPACER))); $this->setNode("header"); }