Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
resources
robots.txt.php
Go to the documentation of this file.
1
<?php
2
3
$site
=
elgg_get_site_entity
();
4
header(
"Content-type: text/plain;charset=utf-8"
);
5
6
$content
=
$site
->getPrivateSetting(
'robots.txt'
);
7
$plugin_content
=
elgg_trigger_plugin_hook
(
'robots.txt'
,
'site'
, [
'site'
=>
$site
],
''
);
8
if
(
$plugin_content
) {
9
$content
=
$content
.
"\n\n"
.
$plugin_content
;
10
}
11
echo
$content
;
$plugin_content
$plugin_content
Definition:
robots.txt.php:7
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_trigger_plugin_hook
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Definition:
elgglib.php:720
elgg_get_site_entity
elgg_get_site_entity()
Get the current site entity.
Definition:
entities.php:130
$site
$site
Definition:
robots.txt.php:3
$content
$content
Definition:
robots.txt.php:6
Generated on Thu Jan 21 2021 00:00:23 for Elgg by
1.8.11