BBCodeLibrary::DoQuote( $bbcode, $action, $name, $default, $params, $content )
Description
Source
File: bp-forums/admin/parser.php
986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 | function DoQuote( $bbcode , $action , $name , $default , $params , $content ) { if ( $action == BBCODE_CHECK) return true; if (isset( $params [ 'name' ])) { $title = htmlspecialchars(trim( $params [ 'name' ])) . " wrote" ; if (isset( $params [ 'date' ])) $title .= " on " . htmlspecialchars(trim( $params [ 'date' ])); $title .= ":" ; if (isset( $params [ 'url' ])) { $url = trim( $params [ 'url' ]); if ( $bbcode ->IsValidURL( $url )) $title = "<a href=\"" . htmlspecialchars( $params [ 'url' ]) . "\">" . $title . "</a>" ; } } else if (! is_string ( $default )) $title = "Quote:" ; else $title = htmlspecialchars(trim( $default )) . " wrote:" ; return "\n<div class=\"bbcode_quote\">\n<div class=\"bbcode_quote_head\">" . $title . "</div>\n<div class=\"bbcode_quote_body\">" . $content . "</div>\n</div>\n" ; } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.