blob: 6213dde52e10b1bb2d125f47502b1b4254b5ebba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
/**
* Add any additional defined metatags or CSS.
*
* @package SitePages
*/
$meta_details = sitepages_get_sitepage_object('seo');
if ($meta_details) {
$metatags = $meta_details->title;
$description = $meta_details->description;
echo <<<___END
<meta name="description" content="$description" />
<meta name="keywords" content="$metatags" />
___END;
}
// only show on the custom front page.
if (elgg_get_context() == 'sitepages:front') {
$custom_css = sitepages_get_sitepage_object('front');
if ($custom_css && $custom_css->css) {
echo <<<___END
<style type="text/css">
{$custom_css->css}
</style>
___END;
}
}
|