diff options
author | friendica <info@friendica.com> | 2013-09-17 02:26:34 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-17 02:26:34 -0700 |
commit | 56de8aa05b0475b982946d9f3e36818c43d19803 (patch) | |
tree | 4ba6a9a526bff76e75578ef8af1cd732c9d5608b | |
parent | 3354abfd428d1baef3d69886b75588163292aeae (diff) | |
download | volse-hubzilla-56de8aa05b0475b982946d9f3e36818c43d19803.tar.gz volse-hubzilla-56de8aa05b0475b982946d9f3e36818c43d19803.tar.bz2 volse-hubzilla-56de8aa05b0475b982946d9f3e36818c43d19803.zip |
SEO: add keywords to appropriate channel pages
-rwxr-xr-x | boot.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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']; |