AddToCartButton.php
3 months ago
CartMenuIcon.php
1 year ago
CollectionTags.php
1 year ago
Media.php
1 year ago
PriceChooser.php
1 year ago
Product.php
1 year ago
ProductCard.php
1 year ago
ProductContent.php
7 months ago
ProductLineItemNote.php
10 months ago
ProductPricing.php
1 year ago
ProductQuickAddButton.php
7 months ago
ProductReviewAverageRatingStars.php
4 months ago
ProductReviewAverageRatingValue.php
4 months ago
ProductReviewBreakdown.php
4 months ago
ProductReviewContent.php
4 months ago
ProductReviewList.php
2 months ago
ProductReviewRating.php
4 months ago
ProductReviewTotalRating.php
4 months ago
ProductReviews.php
4 months ago
Quantity.php
1 year ago
ReusableFormWidget.php
1 year ago
SaleBadge.php
1 year ago
SelectedPriceAdHocAmount.php
1 year ago
VariantPills.php
6 months ago
ProductReviews.php
58 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SureCart\Integrations\Elementor\Widgets; |
| 4 | |
| 5 | if ( ! defined( 'ABSPATH' ) ) { |
| 6 | exit; // Exit if accessed directly. |
| 7 | } |
| 8 | |
| 9 | /** |
| 10 | * Product Reviews widget. |
| 11 | */ |
| 12 | class ProductReviews extends \Elementor\Widget_Base { |
| 13 | /** |
| 14 | * Get widget name. |
| 15 | * |
| 16 | * @return string |
| 17 | */ |
| 18 | public function get_name() { |
| 19 | return 'surecart-product-reviews'; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Get widget title. |
| 24 | * |
| 25 | * @return string |
| 26 | */ |
| 27 | public function get_title() { |
| 28 | return esc_html__( 'Product Reviews', 'surecart' ); |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Get widget icon. |
| 33 | * |
| 34 | * @return string |
| 35 | */ |
| 36 | public function get_icon() { |
| 37 | return 'eicon-review'; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Get the widget keywords. |
| 42 | * |
| 43 | * @return array |
| 44 | */ |
| 45 | public function get_keywords() { |
| 46 | return array( 'surecart', 'rating', 'stars', 'review', 'reviews', 'average' ); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Get the widget categories. |
| 51 | * |
| 52 | * @return array |
| 53 | */ |
| 54 | public function get_categories() { |
| 55 | return [ 'surecart-elementor-layout' ]; |
| 56 | } |
| 57 | } |
| 58 |