0d126084ce
git-svn-id: file:///home/shish/svn/shimmie2/trunk@622 7f39781d-f577-437e-ae19-be835c7a54ca
24 lines
472 B
PHP
24 lines
472 B
PHP
<?php
|
|
class Block {
|
|
var $header;
|
|
var $body;
|
|
var $section;
|
|
var $position;
|
|
|
|
public function Block($header, $body, $section="main", $position=50) {
|
|
$this->header = $header;
|
|
$this->body = $body;
|
|
$this->section = $section;
|
|
$this->position = $position;
|
|
}
|
|
}
|
|
|
|
class NavBlock extends Block {
|
|
public function NavBlock() {
|
|
$this->header = "Navigation";
|
|
$this->body = "<a href='".make_link()."'>Index</a>";
|
|
$this->section = "left";
|
|
$this->position = 0;
|
|
}
|
|
}
|
|
?>
|