mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:35:13 +00:00
Merge branch 'master' of https://github.com/friendica/red
This commit is contained in:
commit
4ba8c744c4
2 changed files with 14 additions and 4 deletions
|
@ -431,14 +431,16 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
|
|||
|
||||
// replace [observer.baseurl]
|
||||
if ($observer) {
|
||||
$s1 = '<span class="bb_observer">';
|
||||
$s2 = '</span>';
|
||||
$obsBaseURL = $observer['xchan_connurl'];
|
||||
$obsBaseURL = preg_replace("/\/poco\/.*$/", '', $obsBaseURL);
|
||||
$Text = str_replace('[observer.baseurl]', $obsBaseURL, $Text);
|
||||
$Text = str_replace('[observer.url]',$observer['xchan_url'], $Text);
|
||||
$Text = str_replace('[observer.name]',$observer['xchan_name'], $Text);
|
||||
$Text = str_replace('[observer.address]',$observer['xchan_addr'], $Text);
|
||||
$Text = str_replace('[observer.webname]',substr($observer['xchan_addr'],0,strpos($observer['xchan_addr'],'@')), $Text);
|
||||
$Text = str_replace('[observer.photo]','[zmg]'.$observer['xchan_photo_l'].'[/zmg]', $Text);
|
||||
$Text = str_replace('[observer.name]',$s1 . $observer['xchan_name'] . $s2, $Text);
|
||||
$Text = str_replace('[observer.address]',$s1 . $observer['xchan_addr'] . $s2, $Text);
|
||||
$Text = str_replace('[observer.webname]',$s1 . substr($observer['xchan_addr'],0,strpos($observer['xchan_addr'],'@')) . $s2, $Text);
|
||||
$Text = str_replace('[observer.photo]',$s1 . '[zmg]'.$observer['xchan_photo_l'].'[/zmg]' . $s2, $Text);
|
||||
} else {
|
||||
$Text = str_replace('[observer.baseurl]', '', $Text);
|
||||
$Text = str_replace('[observer.url]','', $Text);
|
||||
|
|
|
@ -2388,3 +2388,11 @@ aside .nav > li > a:hover, aside .nav > li > a:focus {
|
|||
height: 300px;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.bb_observer {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.bb_observer img {
|
||||
border: 3px solid red !important;
|
||||
}
|
Loading…
Reference in a new issue