support rel=me on channel "homepage" url
This commit is contained in:
parent
2264ad5c6e
commit
11df605c2e
@ -893,7 +893,7 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
|
|||||||
|| (x($profile,'country_name') == 1))
|
|| (x($profile,'country_name') == 1))
|
||||||
$location = t('Location:');
|
$location = t('Location:');
|
||||||
|
|
||||||
$profile['homepage'] = linkify($profile['homepage']);
|
$profile['homepage'] = linkify($profile['homepage'],true);
|
||||||
|
|
||||||
$gender = ((x($profile,'gender') == 1) ? t('Gender:') : False);
|
$gender = ((x($profile,'gender') == 1) ? t('Gender:') : False);
|
||||||
$marital = ((x($profile,'marital') == 1) ? t('Status:') : False);
|
$marital = ((x($profile,'marital') == 1) ? t('Status:') : False);
|
||||||
|
@ -873,8 +873,8 @@ function valid_email($x){
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function linkify($s) {
|
function linkify($s,$me = false) {
|
||||||
$s = preg_replace("/(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\@\~\#\'\%\$\!\+]*)/", ' <a href="$1" >$1</a>', $s);
|
$s = preg_replace("/(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\@\~\#\'\%\$\!\+]*)/", (($me) ? ' <a href="$1" rel="me" >$1</a>' : ' <a href="$1" >$1</a>'), $s);
|
||||||
$s = preg_replace("/\<(.*?)(src|href)=(.*?)\&\;(.*?)\>/ism",'<$1$2=$3&$4>',$s);
|
$s = preg_replace("/\<(.*?)(src|href)=(.*?)\&\;(.*?)\>/ism",'<$1$2=$3&$4>',$s);
|
||||||
return($s);
|
return($s);
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
2015-02-22.952
|
2015-02-24.953
|
||||||
|
Reference in New Issue
Block a user