' . "\n";
$content .= '
' . "\n";
foreach ( $value as $slide ) {
$content .= '' . "\n";
$content .= '- ';
if ( ! empty( $slide['slide_background'] ) ) {
$content .= '
' . "\n";
}
if ( ! empty( $slide['slide_cta'] ) ) {
$content .= '' . $slide['slide_cta'] . '
' . "\n";
}
if ( ! empty( $slide['slide_cta'] ) ) {
$content .= wpautop( $slide['slide_small'] ) . "\n";
}
$content .= ' ' . "\n";
$content .= '' . "\n";
}
$content .= '
' . "\n";
$content .= '' . "\n";
return $content;
}
/**
* @param $control
* @param $value
* @param $id
*
* @return string
*/
public function parse_medzone_lite_doctors( $control, $value, $id ) {
$content = '';
$content .= '' . "\n";
foreach ( $value as $doctor ) {
$content .= '' . "\n";
if ( ! empty( $doctor['doctor_image'] ) ) {
$content .= '
' . "\n";
}
if ( ! empty( $doctor['doctor_name'] ) ) {
$content .= '' . $doctor['doctor_name'] . '
' . "\n";
}
if ( ! empty( $doctor['doctor_group'] ) ) {
$content .= '' . $doctor['doctor_group'] . '
' . "\n";
}
if ( ! empty( $doctor['doctor_description'] ) ) {
/**
* This accepts editor, so we can wrap it in a div
*/
$content .= '' . $doctor['doctor_description'] . '
' . "\n";
}
$socials = array(
'Facebook' => isset( $doctor['doctor_social_facebook'] ) ? $doctor['doctor_social_facebook'] : '',
'Twitter' => isset( $doctor['doctor_social_twitter'] ) ? $doctor['doctor_social_twitter'] : '',
'Google' => isset( $doctor['doctor_social_google'] ) ? $doctor['doctor_social_google'] : '',
'LinkedIn' => isset( $doctor['doctor_social_linked'] ) ? $doctor['doctor_social_linked'] : '',
);
$socials = array_filter( $socials );
if ( ! empty( $socials ) ) {
$content .= '' . "\n";
foreach ( $socials as $name => $url ) {
$content .= '- ' . $name . '
' . "\n";
}
$content .= '
' . "\n";
}
$content .= '' . "\n";
}
$content .= '' . "\n";
return $content;
}
/**
* @param $control
* @param $value
* @param $id
*
* @return string
*/
public function parse_medzone_lite_testimonials( $control, $value, $id ) {
$content = '';
$content .= '' . "\n";
foreach ( $value as $testimonial ) {
$content .= '' . "\n";
if ( ! empty( $testimonial['testimonial_title'] ) ) {
$content .= '' . $testimonial['testimonial_title'] . '
' . "\n";
}
if ( ! empty( $testimonial['testimonial_subtitle'] ) ) {
$content .= '' . $testimonial['testimonial_subtitle'] . '
' . "\n";
}
if ( ! empty( $testimonial['testimonial_text'] ) ) {
$content .= '' . $testimonial['testimonial_text'] . '
' . "\n";
}
if ( ! empty( $testimonial['testimonial_image'] ) ) {
$content .= '
';
}
$content .= '' . "\n";
}
$content .= '' . "\n";
return $content;
}
/**
* @param $control
* @param $value
* @param $id
*
* @return string
*/
public function parse_medzone_lite_hospital_information( $control, $value, $id ) {
$content = '';
$content .= '' . "\n";
if ( ! empty( $value ) ) {
$content .= '' . "\n";
}
foreach ( $value as $accordion ) {
$content .= '' . "\n";
if ( ! empty( $accordion['info_title'] ) ) {
$content .= '- ' . $accordion['info_title'] . '
' . "\n";
}
if ( ! empty( $accordion['info_text'] ) ) {
$content .= '- ' . $accordion['info_text'] . '
' . "\n";
}
$content .= '' . "\n";
}
if ( ! empty( $value ) ) {
$content .= '
' . "\n";
}
$content .= '' . "\n";
return $content;
}
/**
* @param $control
* @param $value
* @param $id
*
* @return string
*/
public function parse_medzone_lite_cta_services( $control, $value, $id ) {
$content = '';
$content .= '' . "\n";
if ( ! empty( $value ) ) {
$content .= '' . "\n";
}
foreach ( $value as $accordion ) {
$content .= '' . "\n";
if ( ! empty( $accordion['service_title'] ) ) {
$content .= '- ' . $accordion['service_title'] . '
' . "\n";
}
if ( ! empty( $accordion['service_description'] ) ) {
$content .= '- ' . $accordion['service_description'] . '
' . "\n";
}
$content .= '' . "\n";
}
if ( ! empty( $value ) ) {
$content .= '
' . "\n";
}
$content .= '' . "\n";
return $content;
}
/**
* @param $control
* @param $value
* @param $id
*
* @return string
*/
public function parse_medzone_lite_about_info( $control, $value, $id ) {
$content = '';
$content .= '' . "\n";
if ( ! empty( $value ) ) {
$content .= '' . "\n";
}
foreach ( $value as $info ) {
$content .= '' . "\n";
if ( ! empty( $info['info_title'] ) ) {
$content .= '- ' . $info['info_title'] . '
' . "\n";
}
if ( ! empty( $info['info_description'] ) ) {
$content .= '- ' . $info['info_description'] . '
' . "\n";
}
$content .= '' . "\n";
}
if ( ! empty( $value ) ) {
$content .= '
' . "\n";
}
$content .= '' . "\n";
return $content;
}
}