diff options
author | Friendika <info@friendika.com> | 2011-03-14 20:19:45 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-03-14 20:19:45 -0700 |
commit | 53dcede27894c655cbe1abaa9149dd0bed043a8d (patch) | |
tree | e599fd7c31a3452620f59da790d9190324440ca3 | |
parent | bae15f9aaee5737b5f2efc9b3acf749c0c61f01e (diff) | |
download | volse-hubzilla-53dcede27894c655cbe1abaa9149dd0bed043a8d.tar.gz volse-hubzilla-53dcede27894c655cbe1abaa9149dd0bed043a8d.tar.bz2 volse-hubzilla-53dcede27894c655cbe1abaa9149dd0bed043a8d.zip |
pub_keywords -> meta keywords
-rw-r--r-- | boot.php | 2 | ||||
-rw-r--r-- | mod/profile.php | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -4,7 +4,7 @@ set_time_limit(0); define ( 'FRIENDIKA_VERSION', '2.1.918' ); define ( 'DFRN_PROTOCOL_VERSION', '2.1' ); -define ( 'DB_UPDATE_VERSION', 1041 ); +define ( 'DB_UPDATE_VERSION', 1042 ); define ( 'EOL', "<br />\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/mod/profile.php b/mod/profile.php index 5615573b9..88fc16ebb 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -28,6 +28,11 @@ function profile_init(&$a) { $a->page['htmlhead'] .= '<link rel="openid.delegate" href="' . $delegate . '" />' . "\r\n"; } + $keywords = ((x($a->profile,'pub_keywords')) ? $a->profile['pub_keywords'] : ''); + $keywords = str_replace(array(',',' ',',,'),array(' ',',',','),$keywords); + if(strlen($keywords)) + $a->page['htmlhead'] .= '<meta name="keywords" content="' . $keywords . '" />' . "\r\n" ; + $a->page['htmlhead'] .= '<meta name="dfrn-global-visibility" content="' . (($a->profile['net-publish']) ? 'true' : 'false') . '" />' . "\r\n" ; $a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . $a->get_baseurl() . '/dfrn_poll/' . $which .'" />' . "\r\n" ; $uri = urlencode('acct:' . $a->profile['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : '')); |