Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
Downloads::get_inline_styles()
Enqueue frontend assets for this block, just in time for rendering.
Метод класса: Downloads{}
Хуков нет.
Возвращает
Строку
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_inline_styles( $attributes );
- $attributes(массив) (обязательный)
- Any attributes that currently are available from the block.
Код Downloads::get_inline_styles() Downloads::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-downloads__table a {' . $link_classes_and_styles['style'] . '} .wc-block-order-confirmation-downloads__table a:hover, .wc-block-order-confirmation-downloads__table a:focus {' . $link_hover_classes_and_styles['style'] . '} .wc-block-order-confirmation-downloads__table {' . $border_classes_and_styles['styles'] . '} .wc-block-order-confirmation-downloads__table th, .wc-block-order-confirmation-downloads__table td {' . $border_classes_and_styles['styles'] . '} '; }