';
// Box Shadow - Style.
$label = 'Shadow Style';
if ( isset( $settings['label_style'] ) && '' != $settings['label_style'] ) {
$label = $settings['label_style']; }
$html .= '
';
$html .= '
';
$html .= ' ';
$html .= '
';
$html .= '
';
// BORDER - WIDTH.
$html .= '
';
foreach ( $positions as $key => $default_value ) {
switch ( $key ) {
case 'Horizontal':
$dashicon = 'dashicons dashicons-leftright';
$html .= $this->ultimate_boxshadow_param_item( $dashicon, $unit, $default_value, $key );
break;
case 'Vertical':
$dashicon = 'dashicons dashicons-sort';
$html .= $this->ultimate_boxshadow_param_item( $dashicon, $unit, $default_value, $key );
break;
case 'Blur':
$dashicon = 'dashicons dashicons-visibility';
$html .= $this->ultimate_boxshadow_param_item( $dashicon, $unit, $default_value, $key );
break;
case 'Spread':
$dashicon = 'dashicons dashicons-location';
$html .= $this->ultimate_boxshadow_param_item( $dashicon, $unit, $default_value, $key );
break;
}
}
$html .= $this->get_units( $unit );
$html .= '
';
// Box Shadow - Color.
if ( $enable_color ) {
$label = 'Box Shadow 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_boxshadow_param_item.
*
* @param string $dashicon Dashicon.
* @param string $unit Unit.
* @param string $default_value Default_value.
* @param string $key Key.
*/
public function ultimate_boxshadow_param_item( $dashicon, /*$mode,*/ $unit, /* $default_value,*/ $default_value, $key ) {
$html = '