';
if ( 'heading-right' == $ult_info_box_settings['pos'] || 'right' == $ult_info_box_settings['pos'] ) {
if ( 'right' == $ult_info_box_settings['pos'] ) {
$html .= '
';
}
if ( '' !== $ult_info_box_settings['title'] ) {
$html .= ' ';
}
if ( 'right' !== $ult_info_box_settings['pos'] ) {
if ( 'none' !== $ult_info_box_settings['icon'] || '' !== $ult_info_box_settings['icon_img'] ) {
$html .= '
' . $box_icon . '
';
}
}
if ( '' !== $content ) {
$html .= '
';
$html .= do_shortcode( $content );
if ( 'none' !== $ult_info_box_settings['link'] ) {
if ( 'more' == $ult_info_box_settings['read_more'] ) {
$href = vc_build_link( $ult_info_box_settings['link'] );
$url = ( isset( $href['url'] ) && '' !== $href['url'] ) ? $href['url'] : '';
$target = ( isset( $href['target'] ) && '' !== $href['target'] ) ? esc_attr( trim( $href['target'] ) ) : '';
$link_title = ( isset( $href['title'] ) && '' !== $href['title'] ) ? esc_attr( $href['title'] ) : '';
$rel = ( isset( $href['rel'] ) && '' !== $href['rel'] ) ? esc_attr( $href['rel'] ) : '';
$more_link = '
';
$more_link .= $ult_info_box_settings['read_text'];
$more_link .= ' »';
$more_link .= '';
$html .= $more_link;
}
}
$html .= '
';
}
if ( 'right' == $ult_info_box_settings['pos'] ) {
$html .= '
';
if ( 'none' !== $ult_info_box_settings['icon'] || '' !== $ult_info_box_settings['icon_img'] ) {
$html .= '
' . $box_icon . '
';
}
}
} else {
if ( 'none' !== $ult_info_box_settings['icon'] || '' != $ult_info_box_settings['icon_img'] ) {
$html .= '
' . $box_icon . '
';
}
if ( 'left' == $ult_info_box_settings['pos'] ) {
$html .= '
';
}
if ( '' !== $ult_info_box_settings['title'] ) {
$html .= ' ';
}
if ( '' !== $content ) {
$html .= '
';
$html .= do_shortcode( $content );
if ( 'none' !== $ult_info_box_settings['link'] ) {
if ( 'more' == $ult_info_box_settings['read_more'] ) {
$href = vc_build_link( $ult_info_box_settings['link'] );
$url = ( isset( $href['url'] ) && '' !== $href['url'] ) ? $href['url'] : '';
$target = ( isset( $href['target'] ) && '' !== $href['target'] ) ? esc_attr( trim( $href['target'] ) ) : '';
$link_title = ( isset( $href['title'] ) && '' !== $href['title'] ) ? esc_attr( $href['title'] ) : '';
$rel = ( isset( $href['rel'] ) && '' !== $href['rel'] ) ? esc_attr( $href['rel'] ) : '';
$more_link = '
';
$more_link .= $ult_info_box_settings['read_text'];
$more_link .= ' »';
$more_link .= '';
$html .= $more_link;
}
}
$html .= '
';
}
if ( 'left' == $ult_info_box_settings['pos'] ) {
$html .= '
';
}
}
$html .= '
';
if ( 'none' !== $ult_info_box_settings['link'] ) {
if ( 'box' == $ult_info_box_settings['read_more'] ) {
$href = vc_build_link( $ult_info_box_settings['link'] );
$url = ( isset( $href['url'] ) && '' !== $href['url'] ) ? $href['url'] : '';
$target = ( isset( $href['target'] ) && '' !== $href['target'] ) ? esc_attr( trim( $href['target'] ) ) : '';
$link_title = ( isset( $href['title'] ) && '' !== $href['title'] ) ? esc_attr( $href['title'] ) : '';
$rel = ( isset( $href['rel'] ) && '' !== $href['rel'] ) ? esc_attr( $href['rel'] ) : '';
$output = $prefix . '