';
$html .= '
';
$html .= '
';
$html .= ' ';
$html .= '
';
$html .= '
';
/** BORDER - {WIDTH}
*---------------------------------------------------*/
$label = 'Border Width';
if ( isset( $settings['label_width'] ) && '' != $settings['label_width'] ) {
$label = $settings['label_width']; }
$html .= '
';
if ( $enable_radius ) :
$label = 'Border Radius';
if ( isset( $settings['label_radius'] ) && '' != $settings['label_radius'] ) {
$label = $settings['label_radius']; }
$html .= '
';
$html .= '
';
$html .= esc_html( $label );
$html .= '
';
$html .= '
Expand / Collapse
';
$radius = $settings['radius'];
foreach ( $radius as $key => $default_value ) {
switch ( $key ) {
case 'Top Left':
$key = 'top-left-radius';
$dashicon = 'dashicons dashicons-arrow-up-alt';
$placeholder = 'T. Left';
$html .= $this->ultimate_border_radius_item( $dashicon, /*$mode,*/ $unit, $default_value, /*$default_value,*//*$default_value,*/ $key, $placeholder );
break;
case 'Top Right':
$key = 'top-right-radius';
$dashicon = 'dashicons dashicons-arrow-right-alt';
$placeholder = 'T. Right';
$html .= $this->ultimate_border_radius_item( $dashicon, /*$mode,*/ $unit, $default_value, /*$default_value,*//*$default_value,*/ $key, $placeholder );
break;
case 'Bottom Right':
$key = 'bottom-right-radius';
$dashicon = 'dashicons dashicons-arrow-down-alt';
$placeholder = 'B. Right';
$html .= $this->ultimate_border_radius_item( $dashicon, /*$mode,*/ $unit, $default_value, /*$default_value,*//*$default_value,*/ $key, $placeholder );
break;
case 'Bottom Left':
$key = 'bottom-left-radius';
$dashicon = 'dashicons dashicons-arrow-left-alt';
$placeholder = 'B. Left';
$html .= $this->ultimate_border_radius_item( $dashicon, /*$mode,*/ $unit, $default_value, /*$default_value,*//*$default_value,*/ $key, $placeholder );
break;
}
}
// {all} - border radius.
$html .= '
';
$html .= ' ';
$html .= ' ';
$html .= ' ';
$html .= ' ';
$html .= '
';
$html .= '
';
$html .= ' ';
$html .= '
';
$html .= '
';
endif;
// add color picker.
$label = 'Border Color';
if ( isset( $settings['label_color'] ) && '' != $settings['label_color'] ) {
$label = $settings['label_color']; }
$html .= '
';
$html .= '
';
$html .= esc_html( $label );
$html .= '
';
$html .= '
';
$html .= ' ';
$html .= '
';
$html .= '
';
$html .= '
';
$html .= '
';
return $html;
}
/**
* Ultimate_border_radius_item.
*
* @param string $dashicon Dashicon.
* @param string $unit Unit.
* @param string $default_value Default_value.
* @param string $key Key.
* @param string $placeholder Placeholder.
*/
public function ultimate_border_radius_item( $dashicon, /*$mode,*/ $unit, /* $default_value,*/ $default_value, $key, $placeholder ) {
$html = '