';
if ( $settings['eael_facebook_feed_message'] && ! empty( $message ) ) {
$html .= '
' . $this->eael_str_check( $message ) . '
';
}
if ( ! empty( $photo ) || isset( $item['attachments']['data'] ) ) {
$html .= '
';
if ( $item['status_type'] == 'shared_story' ) {
if ( isset( $settings['eael_facebook_feed_is_show_preview_thumbnail'] ) && 'yes' == $settings['eael_facebook_feed_is_show_preview_thumbnail'] ) {
$html .= '
';
if ( !empty($item['attachments']['data'][0]['media_type']) && $item['attachments']['data'][0]['media_type'] == 'video' ) {
$html .= '
';
} else {
$html .= '';
}
$html .= '';
}
$html .= '
';
if ( isset( $settings['eael_facebook_feed_is_show_preview_host'] ) && 'yes' == $settings['eael_facebook_feed_is_show_preview_host'] && !empty($item['attachments']['data'][0]['unshimmed_url']) ) {
$html .= '
' . parse_url( $item['attachments']['data'][0]['unshimmed_url'] )['host'] . '
';
}
if ( isset( $settings['eael_facebook_feed_is_show_preview_title'] ) && 'yes' == $settings['eael_facebook_feed_is_show_preview_title'] ) {
$html .= '
' . esc_html( $item['attachments']['data'][0]['title'] ) . '
';
}
if ( isset( $settings['eael_facebook_feed_is_show_preview_description'] ) && 'yes' == $settings['eael_facebook_feed_is_show_preview_description'] ) {
$description = isset( $item['attachments']['data'][0]['description'] ) ? $item['attachments']['data'][0]['description'] : '';
$html .= '
' . $description . '
';
}
$html .= '
';
} else if ( $item['status_type'] == 'added_video' ) {
if ( isset( $settings['eael_facebook_feed_is_show_preview_thumbnail'] ) && 'yes' == $settings['eael_facebook_feed_is_show_preview_thumbnail'] ) {
$html .= '
';
}
} else {
if ( isset( $settings['eael_facebook_feed_is_show_preview_thumbnail'] ) && 'yes' == $settings['eael_facebook_feed_is_show_preview_thumbnail'] ) {
$html .= '
';
}
}
$html .= '
';
}
if ( $settings['eael_facebook_feed_likes'] || $settings['eael_facebook_feed_comments'] ) {
$html .= '';
}
$html .= '