Shared content now has a surrounding div

This commit is contained in:
Michael Vogel 2016-06-01 21:57:08 +02:00
parent f69409c398
commit 09e63e616a

View file

@ -468,6 +468,7 @@ function bb_ShareAttributes($share, $simplehtml) {
$text .= "<hr />"; $text .= "<hr />";
$text .= $headline.'<blockquote class="shared_content">'.trim($share[3])."</blockquote><br />"; $text .= $headline.'<blockquote class="shared_content">'.trim($share[3])."</blockquote><br />";
$text .= "</div>";
break; break;
case 5: case 5:
@ -489,13 +490,16 @@ function bb_ShareAttributes($share, $simplehtml) {
$text .= "<br /><br />".$link; $text .= "<br /><br />".$link;
break; break;
default: default:
$headline = trim($share[1]).'<div class="shared_header">'; $headline = trim($share[1])."\n";
$headline .= '<div class="shared-wrapper">'."\n";
$headline .= '<div class="shared_header">'."\n";
if ($avatar != "") if ($avatar != "")
$headline .= '<img src="'.proxy_url($avatar, false, PROXY_SIZE_MICRO).'" height="32" width="32" >'; $headline .= '<img src="'.proxy_url($avatar, false, PROXY_SIZE_MICRO).'" height="32" width="32" >';
$headline .= sprintf(t('<span><a href="%s" target="_blank">%s</a> wrote the following <a href="%s" target="_blank">post</a>'.$reldate.':</span>'), $profile, $author, $link); $headline .= sprintf(t('<span><a href="%s" target="_blank">%s</a> wrote the following <a href="%s" target="_blank">post</a>'.$reldate.':</span>'), $profile, $author, $link);
$headline .= "</div>"; $headline .= "</div>\n";
$text = $headline.'<blockquote class="shared_content">'.trim($share[3])."</blockquote>"; $text = $headline.'<blockquote class="shared_content">'.trim($share[3])."</blockquote>\n";
$text .= "<div>\n";
break; break;
} }
return($text); return($text);