Advertisement
wandrake

Untitled

Mar 1st, 2012
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1. <?php
  2.     require_once("$prefix/include/utils.php");
  3.     require_once("$prefix/utils/Div.php");
  4.     require_once("$prefix/utils/Title.php");
  5.     require_once("$prefix/utils/Image.php");
  6.  
  7.     class Banner {
  8.         private static $_banner;
  9.         public static $_prefix;
  10.        
  11.         public static function initialize() {
  12.             $logo = new Div("logo", "");
  13.             $logo->add(new Image(Banner::$_prefix . '/images/logonew.png', ""));
  14.            
  15.             $slogan = new Div("slogan", "");
  16.             $slogan->add(new Title("Centro assistenza tecnica", 3, ""));
  17.             $slogan->add(new Title("elettrodomestici multimarchio", 3, "margin-left: 30px"));
  18.            
  19.             $header = new Div("header", "");
  20.             $header->add($logo);
  21.             $header->add($slogan);
  22.            
  23.             echo $header->html();
  24.            
  25.             self::$_banner = $header;
  26.         }
  27.        
  28.         public static function show() {
  29.             echo self::$_banner->html();
  30.         }
  31.     }
  32.    
  33.     Banner::initialize();
  34.    
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement