Elgg  Version 1.11
set_robots.php
Go to the documentation of this file.
1 <?php
7 
8 echo '<div>';
9 echo elgg_echo('admin:robots.txt:instructions');
10 echo elgg_view('input/plaintext', array(
11  'name' => 'text',
12  'value' => $site->getPrivateSetting('robots.txt'),
13 ));
14 echo '</div>';
15 
16 echo '<div>';
17 echo elgg_echo('admin:robots.txt:plugins');
18 echo elgg_view('input/plaintext', array(
19  'value' => elgg_trigger_plugin_hook('robots.txt', 'site', array('site' => $site), ''),
20  'readonly' => true,
21 ));
22 echo '</div>';
23 
24 echo '<div>';
25 echo elgg_view('input/submit', array('value' => elgg_echo('save')));
26 echo '</div>';
elgg_get_site_entity($site_guid=0)
Get an entity (default is current site)
Definition: sites.php:18
$site
Definition: set_robots.php:8
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Definition: elgglib.php:775
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354