]> git.mxchange.org Git - friendica.git/commitdiff
Shared content now has a surrounding div
authorMichael Vogel <icarus@dabo.de>
Wed, 1 Jun 2016 19:57:08 +0000 (21:57 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 1 Jun 2016 19:57:08 +0000 (21:57 +0200)
include/bbcode.php

index bc307677702bc6ce40c1cd45734f4d1ff92ae2ea..73e8f8fee3b119ec96cf7ddaedb0616c0ddacdd1 100644 (file)
@@ -468,6 +468,7 @@ function bb_ShareAttributes($share, $simplehtml) {
                                $text .= "<hr />";
 
                        $text .= $headline.'<blockquote class="shared_content">'.trim($share[3])."</blockquote><br />";
+                       $text .= "</div>";
 
                        break;
                case 5:
@@ -489,13 +490,16 @@ function bb_ShareAttributes($share, $simplehtml) {
                                $text .= "<br /><br />".$link;
                        break;
                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 != "")
                                $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 .= "</div>";
-                       $text = $headline.'<blockquote class="shared_content">'.trim($share[3])."</blockquote>";
+                       $headline .= "</div>\n";
+                       $text = $headline.'<blockquote class="shared_content">'.trim($share[3])."</blockquote>\n";
+                       $text .= "<div>\n";
                        break;
        }
        return($text);