-
Notifications
You must be signed in to change notification settings - Fork 2
/
flexipeehp.php
77 lines (57 loc) · 2.05 KB
/
flexipeehp.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
declare(strict_types=1);
/**
* This file is part of the VitexSoftware package
*
* https://vitexsoftware.com/
*
* (c) Vítězslav Dvořák <http://vitexsoftware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace VSCZ;
use League\CommonMark\CommonMarkConverter;
require_once 'includes/VSInit.php';
$oPage->addItem(new ui\PageTop(_('FlexiPeeHP')));
$container = $oPage->addItem(new \Ease\TWB5\Container());
$oPage->AddItem('<a href="https://github.com/Spoje-NET/FlexiPeeHP" class="ribbon bg-teal">Forkni na GitHubu</a>');
$prehled = new \Ease\TWB5\Card();
$prehled->addItem(new \Ease\Html\DivTag('<strong>FlexiPeeHP</strong> je aktívně vyvíjen od roku 2015. '));
$buttons = new \Ease\Container();
$buttons->addItem(new \Ease\TWB5\LinkButton(
'/flexipeehp/',
'<img src="img/apigen.png" width="20"> '._('Apigen documentation'),
'info btn-lg',
));
$buttons->addItem(new \Ease\TWB5\LinkButton(
'https://github.com/Spoje-NET/FlexiPeeHP',
'<i class = "fa fa-github"></i> GitHub',
'info btn-lg',
));
$buttons->addItem(new \Ease\TWB5\LinkButton(
'https://github.com/Spoje-NET/FlexiPeeHP/commits/master.atom',
'<i class = "fa fa-rss-square"></i> '._('RSS Feed'),
'info btn-lg',
));
$prehled->addItem($buttons);
if (file_exists('easelastmsg.txt')) {
$prehled->addItem('<hr>');
$prehled->addItem(new \Ease\Html\H4Tag(_('Latest change')));
$prehled->addItem(file('flexipeehplastlog'));
}
$efRow = new \Ease\TWB5\Row();
$efRow->addColumn(8, $prehled);
$download = new \Ease\Html\DivTag();
$efRow->addColumn(4, '<img src="img/flexipeehp-1.8.png" class="img-responsive">');
$container->addItem($efRow);
$readme = '/usr/share/doc/FlexiPeeHP/README.md';
if (file_exists($readme)) {
$converter = new CommonMarkConverter();
$container->addItem(new \Ease\Html\DivTag(
$converter->convertToHtml(file_get_contents($readme)),
['class' => 'jumbotron'],
));
}
$oPage->addItem(new ui\PageBottom());
$oPage->draw();