Elgg  Version 1.9
default.php
Go to the documentation of this file.
1 <?php
12 // Set title
13 if (empty($vars['title'])) {
14  $title = elgg_get_config('sitename');
15 } else {
16  $title = elgg_get_config('sitename') . ": " . $vars['title'];
17 }
18 
19 // Remove RSS from URL
22 
23 $rssurl = htmlspecialchars($url, ENT_NOQUOTES, 'UTF-8');
24 $url = htmlspecialchars($url, ENT_NOQUOTES, 'UTF-8');
25 
26 $body = elgg_extract('body', $vars, '');
27 $description = elgg_extract('description', $vars, '');
28 
29 $namespaces = elgg_view('extensions/xmlns');
30 $extensions = elgg_view('extensions/channel');
31 
32 
33 // allow caching as required by stupid MS products for https feeds.
34 header('Pragma: public', true);
35 header("Content-Type: text/xml");
36 
37 echo "<?xml version='1.0'?>";
38 echo <<<END
39 <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" $namespaces>
40 <channel>
41  <title><![CDATA[$title]]></title>
42  <link>$url</link>
43  <atom:link href="$rssurl" rel="self" type="application/rss+xml" />
44  <description><![CDATA[$description]]></description>
46  $body
47 </channel>
48 </rss>
49 END;
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
ui datepicker title
Definition: admin.php:592
$description
Definition: default.php:18
current_page_url()
Returns the current page&#39;s complete URL.
Definition: input.php:106
$rssurl
Definition: default.php:20
$comment description
Definition: save.php:49
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1464
string version
Definition: conf.py:51
$namespaces
Definition: default.php:29
elgg_http_remove_url_query_element($url, $element)
Removes an element from a URL&#39;s query string.
Definition: elgglib.php:1311
elgg echo
Translates a string.
Definition: languages.js:43
$url
Definition: default.php:34
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:23
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
$title
Definition: default.php:32
clearfix elgg elgg elgg elgg page header
Definition: admin.php:127
list style type
Definition: admin.php:724
$body
Definition: default.php:29
$extensions
Definition: default.php:30