-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
61 lines (40 loc) · 1.66 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
require_once './lib/easyHTML5.php';
$myHTML = html::init();
$myHTML->head->meta->add('author', 'Jens Reinemuth');
// Build up navigation
$myHTML->body->add('nav','myNav');
$myHTML->body->myNav->addItem('item1','Link1','#');
$myHTML->body->myNav->addItem('item2','Link2','#');
// Build up Header
$myHTML->body->add('header','myHeader');
$myHTML->body->add('h1','siteHeader');
$myHTML->body->siteHeader->addContent('Wilkommen auf meiner Seite...');
$myHTML->body->myHeader->addContent($myHTML->body->siteHeader->build());
$myHTML->body->myHeader->addContent($myHTML->body->myNav->build());
// Build up the Intro-Section
$myHTML->body->add('section','myIntro');
// Some testing articles
$myHTML->body->add('article','art1');
$myHTML->body->art1->title = 'Testarticle1';
$myHTML->body->art1->time = '10.07.2010 02:11:00';
$myHTML->body->art1->author = 'jens';
$myHTML->body->art1->addContent('Kleiner Test!');
$myHTML->body->add('article','art2');
$myHTML->body->art2->title = 'Testarticle2';
$myHTML->body->art2->time = '11.07.2010 02:11:00';
$myHTML->body->art2->author = 'jens';
$myHTML->body->art2->addContent('Kleiner Test!');
$myHTML->body->add('article','art3');
$myHTML->body->art3->title = 'Testarticle3';
$myHTML->body->art3->time = '12.07.2010 02:11:00';
$myHTML->body->art3->author = 'jens';
$myHTML->body->art3->addContent('Kleiner Test!');
$myHTML->body->myIntro->addContent($myHTML->body->art1->build());
$myHTML->body->myIntro->addContent($myHTML->body->art2->build());
$myHTML->body->myIntro->addContent($myHTML->body->art3->build());
$myHTML->body->add('aside','mySidebar');
// Build up Footer
$myHTML->body->add('footer','myFooter');
echo $myHTML->build();
?>