get_attributes(); extract( $attributes ); $styles = array( ' button' => array( 'padding' => sprintf( '%s %s %s %s', $padding['top'], $padding['right'], $padding['bottom'], $padding['left'] ), 'width' => 'custom' === $buttonWidthType ? $buttonWidth : 'auto', 'color' => $textColor, 'background' => $bgColor, ), ); BlockHelper::generate_css( $styles, "[data-id='$id']" ); } }