mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
repeated items from ostatus and diaspora are now using the share-element.
Some design changes to repeated items in "vier".
This commit is contained in:
parent
9ab34f8857
commit
c22f65bafa
9 changed files with 56 additions and 20 deletions
|
@ -251,11 +251,11 @@ function bb_ShareAttributes($match) {
|
|||
if ($avatar != "")
|
||||
$headline .= '<img src="'.$avatar.'" height="32" width="32" >';
|
||||
|
||||
$headline .= sprintf(t('<span><a href="%s">%s</a> wrote the following <a href="%s">post</a>:</span>'), $profile, $author, $link);
|
||||
$headline .= sprintf(t('<span><a href="%s" target="external-link">%s</a> wrote the following <a href="%s" target="external-link">post</a>:</span>'), $profile, $author, $link);
|
||||
|
||||
$headline .= "</div>";
|
||||
|
||||
$text = "<br />".$headline.'<blockquote class="shared_content">'.trim($match[2])."</blockquote>";
|
||||
$text = $headline.'<blockquote class="shared_content">'.trim($match[2])."</blockquote>";
|
||||
|
||||
return($text);
|
||||
}
|
||||
|
@ -314,6 +314,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
|
|||
|
||||
// We'll emulate it.
|
||||
|
||||
$Text = trim($Text);
|
||||
$Text = str_replace("\r\n","\n", $Text);
|
||||
$Text = str_replace(array("\r","\n"), array('<br />','<br />'), $Text);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue