uawdijnntqw1x1x1
IP : 3.20.233.121
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
/
..
/
plugins
/
woocommerce
/
src
/
Blocks
/
BlockTypes
/
AllReviews.php
/
/
<?php namespace Automattic\WooCommerce\Blocks\BlockTypes; /** * AllReviews class. */ class AllReviews extends AbstractBlock { /** * Block name. * * @var string */ protected $block_name = 'all-reviews'; /** * Get the frontend script handle for this block type. * * @see $this->register_block_type() * @param string $key Data to get, or default to everything. * @return array|string */ protected function get_block_type_script( $key = null ) { $script = [ 'handle' => 'wc-reviews-block-frontend', 'path' => $this->asset_api->get_block_asset_build_path( 'reviews-frontend' ), 'dependencies' => [], ]; return $key ? $script[ $key ] : $script; } /** * Extra data passed through from server to client for block. * * @param array $attributes Any attributes that currently are available from the block. * Note, this will be empty in the editor context when the block is * not in the post content on editor load. */ protected function enqueue_data( array $attributes = [] ) { parent::enqueue_data( $attributes ); $this->asset_data_registry->add( 'reviewRatingsEnabled', wc_review_ratings_enabled() ); $this->asset_data_registry->add( 'showAvatars', '1' === get_option( 'show_avatars' ) ); } }
/home/batcwwjx/www/wp-content/plugins/../plugins/woocommerce/src/Blocks/BlockTypes/AllReviews.php