';
switch ( $free_pro['features_type'] ) {
case 'image':
if ( ! empty( $free_pro['features_img'] ) ) {
$output .= '
';
if ( ! empty( $free_pro['pro_theme_link'] ) && ! empty( $free_pro['get_pro_theme_label'] ) ) {
$output .= '
' . wp_kses_post( $free_pro['get_pro_theme_label'] ) . '';
}
}
break;
case 'table':
if ( ! empty( $free_pro['features'] ) ) {
$output .= '
';
$output .= '';
$output .= '';
$output .= ' | ';
$output .= '' . esc_html( $free_pro['free_theme_name'] ) . ' | ';
$output .= '' . esc_html( $free_pro['pro_theme_name'] ) . ' | ';
$output .= '
';
$output .= '';
$output .= '';
foreach ( $free_pro['features'] as $feature ) {
$output .= '';
if ( ! empty( $feature['title'] ) || ! empty( $feature['description'] ) ) {
$output .= '';
$output .= $this->get_feature_title_and_description( $feature );
$output .= ' | ';
}
if ( ! empty( $feature['is_in_lite'] ) && ( (bool) $feature['is_in_lite'] === true ) ) {
$output .= ' | ';
} else {
$output .= ' | ';
}
if ( ! empty( $feature['is_in_pro'] ) && ( (bool) $feature['is_in_pro'] === true ) ) {
$output .= ' | ';
} else {
$output .= ' | ';
}
echo '
';
}
if ( ! empty( $free_pro['pro_theme_link'] ) && ! empty( $free_pro['get_pro_theme_label'] ) ) {
$output .= '';
$output .= '';
if ( ! empty( $free_pro['banner_link'] ) && ! empty( $free_pro['banner_src'] ) ) {
$output .= '';
}
$output .= ' | ';
$output .= '' . wp_kses_post( $free_pro['get_pro_theme_label'] ) . ' | ';
$output .= '
';
}
$output .= '';
$output .= '
';
}
break;
}
echo $output;
echo '