mirror of
https://github.com/proelements/proelements.git
synced 2026-04-18 01:52:20 +00:00
v3.33.1
This commit is contained in:
36
modules/woocommerce/widgets/product-content.php
Normal file
36
modules/woocommerce/widgets/product-content.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
namespace ElementorPro\Modules\Woocommerce\Widgets;
|
||||
|
||||
use ElementorPro\Modules\ThemeBuilder\Widgets\Post_Content;
|
||||
use ElementorPro\Plugin;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Product_Content extends Post_Content {
|
||||
|
||||
public function get_name() {
|
||||
return 'woocommerce-product-content';
|
||||
}
|
||||
|
||||
public function get_title() {
|
||||
return esc_html__( 'Product Content', 'elementor-pro' );
|
||||
}
|
||||
|
||||
public function get_categories() {
|
||||
return [ 'woocommerce-elements-single' ];
|
||||
}
|
||||
|
||||
public function get_keywords() {
|
||||
return [ 'content', 'post', 'product' ];
|
||||
}
|
||||
|
||||
public function get_group_name() {
|
||||
return 'woocommerce';
|
||||
}
|
||||
|
||||
public function has_widget_inner_wrapper(): bool {
|
||||
return ! Plugin::elementor()->experiments->is_feature_active( 'e_optimized_markup' );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user