mainHtmlBlockParams( $width, $i )) . '>';
$output .= $column_controls;
$output .= '
';
$output .= $this->outputTitle( $this->settings['name'] );
if ( isset( $this->settings['params'] ) ) {
$inner = '';
if (is_array($this->settings['params']) && count($this->settings['params']) > 0) {
foreach ($this->settings['params'] as $param) {
$param_value = isset( ${$param['param_name']} ) ? ${$param['param_name']} : '';
if ( is_array( $param_value ) ) {
// Get first element from the array
reset( $param_value );
$first_key = key( $param_value );
$param_value = $param_value[$first_key];
}
$inner .= $this->singleParamHtmlHolder( $param, $param_value );
}
}
$output .= $inner;
}
$output .= '
containerHtmlBlockParams( $width, $i )) . '>';
$output .= do_shortcode( shortcode_unautop( $content ) );
$output .= '
';
$output .= '
';
$output .= $column_controls_bottom;
$output .= '
';
}
return $output;
}
protected function outputTitle( $title ) {
$icon = $this->settings('icon');
if( filter_var( $icon, FILTER_VALIDATE_URL ) ) $icon = '';
return '