Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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', array('site' => $site), '');
9  $content = $content . "\n\n" . $plugin_content;
10 }
11 echo $content;
elgg_get_site_entity($site_guid=0)
Get an entity (default is current site)
Definition: sites.php:18
$plugin_content
Definition: robots.txt.php:7
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Definition: elgglib.php:801
$site
Definition: robots.txt.php:3
$content
Definition: robots.txt.php:6