Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F15170935
credits.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
credits.php
View Options
<?php
# Copyright (C) 2020 Valerio Bozzolan
#
# 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 3 of the License, or
# (at your option) any later version.
#
# 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 Affero 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/>.
// load the configuration file and autoload classes
require
'load.php'
;
// enqueue default stylesheet
enqueue_js
(
'cronos'
)
;
template
(
'header'
)
;
?>
<
div class="container">
<
h1>Wikimedia CH Cronos —
<?=
__
(
"Credits"
)
?>
<
/h1>
<
div class="card-panel">
<
h2>
<?=
__
(
"Image credits"
)
?>
<
/h2>
<
p class="flow-text">
<?=
__
(
"Visit the related page to see the image author and the license."
)
?>
<
/p>
<
ul class="collection">
<?php
foreach
(
Category
::
all
(
)
as
$category
)
:
?>
<
li class="collection-item">
<
a href="
<?=
esc_attr
(
$category
->
getCommonsURL
(
)
)
?>
">
<
img src="
<?=
esc_attr
(
$category
->
getImageURL
(
)
)
?>
" />
<?=
$category
->
getFilename
(
)
?>
<
/a>
<
/li>
<?php
endforeach
?>
<
/ul>
<
/div>
<
div class="card-panel">
<
h3>
<?=
__
(
"Nerd stuff"
)
?>
<
/h3>
<
p>
<?=
__
(
"This block of information can be used inside your wiki to inherit these official categories. Ignore this part if you are not truly nerd to avoid brain explosion."
)
?>
<
/p>
<
pre>
<?php
// print some Lua code
foreach
(
Category
::
all
(
)
as
$category
)
{
printf
(
"['%1\$s'] = { uid: '%1\$s', name: '%2\$s', filename: 'File:%3\$s' },\n"
,
$category
->
getUID
(
)
,
$category
->
getName
(
)
,
$category
->
getFilename
(
)
)
;
}
?>
<
/pre>
<
/div>
<
div class="divider">
<
/div>
<
p>
<
a href="
<?=
ROOT
?>
/" class="btn waves-effect">
<?=
__
(
"Home"
)
?>
<
/a>
<
/p>
<
/div>
<?php
template
(
'footer'
)
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Nov 19, 00:24 (12 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263508
Default Alt Text
credits.php (2 KB)
Attached To
Mode
R47 wmch-cronos-form
Attached
Detach File
Event Timeline