provide footer bbcode
This commit is contained in:
parent
3f90da5643
commit
2d45f9f385
@ -686,6 +686,10 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false)
|
||||
if (strpos($Text,'[/center]') !== false) {
|
||||
$Text = preg_replace("(\[center\](.*?)\[\/center\])ism", "<div style=\"text-align:center;\">$1</div>", $Text);
|
||||
}
|
||||
// Check for footer
|
||||
if (strpos($Text,'[/footer]') !== false) {
|
||||
$Text = preg_replace("(\[footer\](.*?)\[\/footer\])ism", "<div class=\"wall-item-footer\">$1</div>", $Text);
|
||||
}
|
||||
// Check for list text
|
||||
$Text = str_replace("[*]", "<li>", $Text);
|
||||
|
||||
|
@ -300,7 +300,7 @@ function photo_upload($channel, $observer, $args) {
|
||||
|
||||
$activity_format = sprintf(t('%1$s posted %2$s to %3$s','photo_upload'), $author_link, $photo_link, $album_link);
|
||||
|
||||
$summary = $activity_format . "\n\n" . (($args['body']) ? $args['body'] . "\n\n" : '');
|
||||
$summary = (($args['body']) ? $args['body'] : '') . '[footer]' . $activity_format . '[/footer]';
|
||||
|
||||
$obj_body = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']'
|
||||
. $tag . z_root() . "/photo/{$photo_hash}-{$scale}." . $ph->getExt() . '[/zmg]'
|
||||
|
@ -1243,6 +1243,11 @@ img.mail-conv-sender-photo {
|
||||
font-size: $font_size;
|
||||
}
|
||||
|
||||
.wall-item-footer {
|
||||
font-size: $body_font_size;
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.wall-item-content-wrapper {
|
||||
background-color: $item_colour;
|
||||
border-top-right-radius: $radiuspx;
|
||||
|
Reference in New Issue
Block a user