Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
Totals::get_inline_styles()
Enqueue frontend assets for this block, just in time for rendering.
Метод класса: Totals{}
Хуков нет.
Возвращает
Строку
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_inline_styles( $attributes );
- $attributes(массив) (обязательный)
- Any attributes that currently are available from the block.
Код Totals::get_inline_styles() Totals::get inline styles WC 9.5.1
protected function get_inline_styles( array $attributes ) { $link_classes_and_styles = StyleAttributesUtils::get_link_color_class_and_style( $attributes ); $link_hover_classes_and_styles = StyleAttributesUtils::get_link_hover_color_class_and_style( $attributes ); $border_classes_and_styles = StyleAttributesUtils::get_classes_and_styles_by_attributes( $attributes, [ 'border_color', 'border_radius', 'border_width', 'border_style' ] ); return ' .wc-block-order-confirmation-totals__table a {' . $link_classes_and_styles['style'] . '} .wc-block-order-confirmation-totals__table a:hover, .wc-block-order-confirmation-totals__table a:focus {' . $link_hover_classes_and_styles['style'] . '} .wc-block-order-confirmation-totals__table {' . $border_classes_and_styles['styles'] . '} .wc-block-order-confirmation-totals__table th, .wc-block-order-confirmation-totals__table td {' . $border_classes_and_styles['styles'] . '} '; }