';
$chat_rows = preg_split( "/(\r?\n)+|(
\s*)+/", $content );
$i = 1;
foreach ( $chat_rows as $chat_row ) {
if ( strpos( $chat_row, $separator ) ) {
$chat_row_split = explode( $separator, trim( $chat_row ), 2 );
$chat_author = strip_tags( trim( $chat_row_split[0] ) );
$chat_text = trim( $chat_row_split[1] );
$speaker_id = simple_days_extra_content_chat_row_id( $chat_author );
if($i%2 == 0) {
$f_row_r = 'f_row_r bypostauthor ';
}else{
$f_row_r = '';
}
$chat_output .= "\n\t\t\t\t" . '
' . $chat_row . '
'; } } } $chat_output .= "\n\t\t\t\n"; return apply_filters( 'simple_days_extra_content_chat_content', $chat_output ); //return $chat_output; } function simple_days_extra_content_chat_row_id( $chat_author ) { global $_post_format_chat_ids; $chat_author = strtolower( strip_tags( $chat_author ) ); $_post_format_chat_ids[] = $chat_author; $_post_format_chat_ids = array_unique( $_post_format_chat_ids ); return absint( array_search( $chat_author, $_post_format_chat_ids ) ) + 1; }