'0px',
'top-color' => '',
'top-style' => '',
'right' => '0px',
'right-color' => '',
'right-style' => '',
'bottom' => '0px',
'bottom-color' => '',
'bottom-style' => '',
'left' => '0px',
'left-color' => '',
'left-style' => '',
);
$value = wp_parse_args( $value, $defaults );
/* getting values */
$top_color_style = $bottom_color_style = $left_color_style = $right_color_style = '';
if( $value['top-color'] )
$top_color_style = sprintf(' style="background:%1$s;border-color:%1$s"', $value['top-color']);
if( $value['bottom-color'] )
$bottom_color_style = sprintf(' style="background:%1$s;border-color:%1$s"', $value['bottom-color']);
if( $value['left-color'] )
$left_color_style = sprintf(' style="background:%1$s;border-color:%1$s"', $value['left-color']);
if( $value['right-color'] )
$right_color_style = sprintf(' style="background:%1$s;border-color:%1$s"', $value['right-color']);
?>
>
array ( 'value' => (int)$slider_top ),
"#{$id}-bottom" => array ( 'value' => (int)$slider_bottom ),
"#{$id}-left" => array ( 'value' => (int)$slider_left ),
"#{$id}-right" => array ( 'value' => (int)$slider_right )
);
$js = "panelUi.bind_border( '{$id}', ".json_encode($border).");";
if($is_widget) {
if(!$is_builder)
add_jquery_ready($js);
else
$ui_content .= sprintf( '', $js, "\n" );
return $ui_content;
}
else {
echo $ui_content;
add_jquery_ready($js);
}
}
function spyropress_widget_border( $item, $id, $value, $is_builder = false ) {
return spyropress_ui_border( $item, $id, $value, true, $is_builder );
}
/**
* Border Styles
*/
function spyropress_panel_border_styles() {
return array(
'' => '',
'none' => __( 'None', 'spyropress' ),
'dotted' => __( 'Dotted', 'spyropress' ),
'dashed' => __( 'Dashed', 'spyropress' ),
'double' => __( 'Double', 'spyropress' ),
'groove' => __( 'Groove', 'spyropress' ),
'hidden' => __( 'Hidden', 'spyropress' ),
'inset' => __( 'Inset', 'spyropress' ),
'outset' => __( 'Outset', 'spyropress' ),
'ridge' => __( 'Ridge', 'spyropress' ),
'solid' => __( 'Solid', 'spyropress' )
);
}
?>