forked from cmb69/realblog_xh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
91 lines (78 loc) · 3.33 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
* Copyright 2006-2010 Jan Kanters
* Copyright 2010-2014 Gert Ebersbach
* Copyright 2014-2023 Christoph M. Becker
*
* This file is part of Realblog_XH.
*
* Realblog_XH is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Realblog_XH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Realblog_XH. If not, see <http://www.gnu.org/licenses/>.
*/
//////////////////////////////////////////////// HISTORIC LICENSE SECTION START
/*
************************************
RealBlog plugin for CMSimple
RealBlog v2.8
released 2014-05-11
Gert Ebersbach - http://www.ge-webdesign.de
------------------------------------
Based on: AdvancedNews from Jan Kanters - http://www.jat-at-home.be/
Version : V 1.0.5 GPL
------------------------------------
Credits : - flatfile database class Copyright 2005 Luke Plant
- FCKEditor (older versions) and TinyMCE
- Date Picker (jscalendar) by Copyright (c) Dynarch.com
License : GNU General Public License, version 2 or later of your choice
************************************
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, see <http://www.gnu.org/licenses>.
*/
////////////////////////////////////////////////// HISTORIC LICENSE SECTION END
use Realblog\Dic;
use Realblog\Infra\Request;
use Realblog\Infra\Responder;
const REALBLOG_VERSION = "3.0beta9";
/**
* @var array<string,array<string,string>> $pth
*/
require_once $pth['folder']['plugin'] . 'compat.php';
Responder::respond(Dic::makeGeneralController()(Request::current()));
Responder::respond(Dic::makeFeedController()(Request::current()));
function realblog_blog(bool $showSearch = false, string $category = "all"): string
{
return Responder::respond(Dic::makeBlogController()(Request::current(), "blog", $showSearch, $category));
}
function realblog_archive(bool $showSearch = false): string
{
return Responder::respond(Dic::makeBlogController()(Request::current(), "archive", $showSearch));
}
function realblog_link(string $pageUrl, bool $showTeaser = false): string
{
return Responder::respond(Dic::makeLinkController()(Request::current(), $pageUrl, $showTeaser));
}
function realblog_mostpopular(string $pageUrl): string
{
return Responder::respond(Dic::makeMostPopularController()(Request::current(), $pageUrl));
}
function realblog_feedlink(string $target = "_self"): string
{
return Responder::respond(Dic::makeFeedLinkController()(Request::current(), $target));
}