Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("$prefix/include/utils.php");
- require_once("$prefix/utils/Div.php");
- require_once("$prefix/utils/Title.php");
- require_once("$prefix/utils/Image.php");
- class Banner {
- private static $_banner;
- public static $_prefix;
- public static function initialize() {
- $logo = new Div("logo", "");
- $logo->add(new Image(Banner::$_prefix . '/images/logonew.png', ""));
- $slogan = new Div("slogan", "");
- $slogan->add(new Title("Centro assistenza tecnica", 3, ""));
- $slogan->add(new Title("elettrodomestici multimarchio", 3, "margin-left: 30px"));
- $header = new Div("header", "");
- $header->add($logo);
- $header->add($slogan);
- echo $header->html();
- self::$_banner = $header;
- }
- public static function show() {
- echo self::$_banner->html();
- }
- }
- Banner::initialize();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement