forked from LiveCarta/LiveCartaWP
Changed source root directory
This commit is contained in:
17
html/wp-content/plugins/flamingo/includes/formatting.php
Normal file
17
html/wp-content/plugins/flamingo/includes/formatting.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
function flamingo_htmlize( $val ) {
|
||||
$result = '';
|
||||
|
||||
if ( is_array( $val ) ) {
|
||||
foreach ( $val as $v ) {
|
||||
$result .= sprintf( '<li>%s</li>', flamingo_htmlize( $v ) );
|
||||
}
|
||||
|
||||
$result = sprintf( '<ul>%s</ul>', $result );
|
||||
} else {
|
||||
$result = wpautop( esc_html( (string) $val ) );
|
||||
}
|
||||
|
||||
return apply_filters( 'flamingo_htmlize', $result, $val );
|
||||
}
|
||||
Reference in New Issue
Block a user