Elgg  Version 3.0
robots.txt.php
Go to the documentation of this file.
1 <?php
2 
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], '');
9  $content = $content . "\n\n" . $plugin_content;
10 }
$plugin_content
Definition: robots.txt.php:7
elgg echo
Translates a string.
Definition: languages.js:43
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Definition: elgglib.php:720
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:130
$site
Definition: robots.txt.php:3
$content
Definition: robots.txt.php:6