Elgg
Version 2.3
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'
, array(
'site'
=>
$site
),
''
);
8
if
(
$plugin_content
) {
9
$content
=
$content
.
"\n\n"
.
$plugin_content
;
10
}
11
echo
$content
;
elgg_get_site_entity
elgg_get_site_entity($site_guid=0)
Get an entity (default is current site)
Definition:
sites.php:18
$plugin_content
$plugin_content
Definition:
robots.txt.php:7
echo
elgg echo
Translates a string.
Definition:
languages.js:48
elgg_trigger_plugin_hook
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Definition:
elgglib.php:826
header
clearfix elgg elgg elgg elgg page header
Definition:
admin.css.php:127
$site
$site
Definition:
robots.txt.php:3
$content
$content
Definition:
robots.txt.php:6
Generated on Thu Oct 31 2024 00:06:15 for Elgg by
1.8.11