diff options
Diffstat (limited to 'mod/sitepages/views/default/sitepages/metatags.php')
-rw-r--r-- | mod/sitepages/views/default/sitepages/metatags.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/sitepages/views/default/sitepages/metatags.php b/mod/sitepages/views/default/sitepages/metatags.php new file mode 100644 index 000000000..73a7cd17f --- /dev/null +++ b/mod/sitepages/views/default/sitepages/metatags.php @@ -0,0 +1,17 @@ +<?php
+/**
+ * Meta tags
+ **/
+
+$meta_details = elgg_get_entities(array('type' => 'object', 'subtype' => 'seo', 'limit' => 1));
+if($meta_details){
+ foreach($meta_details as $md){
+ $metatags = $md->title;
+ $description = $md->description;
+ }
+}
+
+?>
+
+<meta name="description" content="<?php echo $description; ?>." />
+<meta name="keywords" content="<?php echo $metatags; ?>" />
\ No newline at end of file |