This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/core/block.class.php

25 lines
472 B
PHP
Raw Normal View History

<?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;
}
}
?>