aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-17 02:26:34 -0700
committerfriendica <info@friendica.com>2013-09-17 02:26:34 -0700
commit56de8aa05b0475b982946d9f3e36818c43d19803 (patch)
tree4ba6a9a526bff76e75578ef8af1cd732c9d5608b
parent3354abfd428d1baef3d69886b75588163292aeae (diff)
downloadvolse-hubzilla-56de8aa05b0475b982946d9f3e36818c43d19803.tar.gz
volse-hubzilla-56de8aa05b0475b982946d9f3e36818c43d19803.tar.bz2
volse-hubzilla-56de8aa05b0475b982946d9f3e36818c43d19803.zip
SEO: add keywords to appropriate channel pages
-rwxr-xr-xboot.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index b30d9ae49..a0c1abf90 100755
--- a/boot.php
+++ b/boot.php
@@ -1614,6 +1614,13 @@ function profile_load(&$a, $nickname, $profile = '') {
$r[0]['keywords'] = $x[0]['keywords'];
}
+ if($r[0]['keywords']) {
+ $keywords = str_replace(array('#',',',' ',',,'),array('',' ',',',','),$R[0]['keywords']);
+ if(strlen($keywords))
+ $a->page['htmlhead'] .= '<meta name="keywords" content="' . htmlentities($keywords,ENT_COMPAT,'UTF-8') . '" />' . "\r\n" ;
+
+ }
+
$a->profile = $r[0];
$a->profile_uid = $r[0]['profile_uid'];