uawdijnntqw1x1x1
IP : 3.129.206.232
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
www
/
wp-content
/
plugins
/
woocommerce
/
src
/
Blocks
/
Utils
/
..
/
BlockTypes
/
CatalogSorting.php
/
/
<?php declare( strict_types = 1 ); namespace Automattic\WooCommerce\Blocks\BlockTypes; use Automattic\WooCommerce\Blocks\Utils\StyleAttributesUtils; /** * CatalogSorting class. */ class CatalogSorting extends AbstractBlock { /** * Block name. * * @var string */ protected $block_name = 'catalog-sorting'; /** * Render the block. * * @param array $attributes Block attributes. * @param string $content Block content. * @param WP_Block $block Block instance. * * @return string | void Rendered block output. */ protected function render( $attributes, $content, $block ) { ob_start(); woocommerce_catalog_ordering( $attributes ); $catalog_sorting = ob_get_clean(); if ( ! $catalog_sorting ) { return; } $classes_and_styles = StyleAttributesUtils::get_classes_and_styles_by_attributes( $attributes, array(), array( 'extra_classes' ) ); $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', array_filter( [ 'woocommerce wc-block-catalog-sorting', esc_attr( $classes_and_styles['classes'] ), ] ) ), 'style' => esc_attr( $styles_and_classes['styles'] ?? '' ), ) ); return sprintf( '<div %1$s>%2$s</div>', $wrapper_attributes, $catalog_sorting ); } /** * Get the frontend script handle for this block type. * * @param string $key Data to get, or default to everything. */ protected function get_block_type_script( $key = null ) { return null; } }
/home/batcwwjx/www/wp-content/plugins/woocommerce/src/Blocks/Utils/../BlockTypes/CatalogSorting.php