← All changes
|
app/Modules/Templating/Bricks/Elements/BuySection.php
+10
-10
1.5.0
→
1.6.6
View file →
| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | class BuySection extends Element |
| 14 | 14 | { |
| 15 | 15 | public $category = 'fluent-cart'; |
| 16 | 16 | public $name = 'fct-product-buy-section'; |
| 17 | - public $icon = 'ti-shopping-cart'; | |
| 17 | + public $icon = 'ti-bag fluent-cart-element-icon'; | |
| 18 | 18 | |
| 19 | 19 | public function enqueue_scripts() |
| 20 | 20 | { |
| 21 | 21 | AssetLoader::loadSingleProductAssets(); |
| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | public function get_label() |
| 25 | 25 | { |
| 26 | - return esc_html__('Buy Section (FluentCart)', 'fluent-cart'); | |
| 26 | + return esc_html__('Buy Section', 'fluent-cart'); | |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | public function set_control_groups() |
| 30 | 30 | { |
| @@ -44,12 +44,12 @@ | ||
| 44 | 44 | { |
| 45 | 45 | $this->controls['queryType'] = [ |
| 46 | 46 | 'tab' => 'content', |
| 47 | 47 | 'type' => 'select', |
| 48 | - 'label' => esc_html__('Query Type', 'fluent-cart-bricks-blocks'), | |
| 48 | + 'label' => esc_html__('Query Type', 'fluent-cart'), | |
| 49 | 49 | 'options' => [ |
| 50 | - 'default' => esc_html__('Default', 'fluent-cart-bricks-blocks'), | |
| 51 | - 'custom' => esc_html__('Custom', 'fluent-cart-bricks-blocks'), | |
| 50 | + 'default' => esc_html__('Default', 'fluent-cart'), | |
| 51 | + 'custom' => esc_html__('Custom', 'fluent-cart'), | |
| 52 | 52 | ], |
| 53 | 53 | 'default' => 'default', |
| 54 | 54 | 'inline' => true, |
| 55 | 55 | ]; |
| @@ -56,11 +56,11 @@ | ||
| 56 | 56 | |
| 57 | 57 | $this->controls['productId'] = [ |
| 58 | 58 | 'tab' => 'content', |
| 59 | 59 | 'type' => 'select', |
| 60 | - 'label' => esc_html__('Product', 'fluent-cart-bricks-blocks'), | |
| 60 | + 'label' => esc_html__('Product', 'fluent-cart'), | |
| 61 | 61 | 'options' => BricksLoader::getProductOptions(), |
| 62 | - 'placeholder' => esc_html__('Select a product', 'fluent-cart-bricks-blocks'), | |
| 62 | + 'placeholder' => esc_html__('Select a product', 'fluent-cart'), | |
| 63 | 63 | 'searchable' => true, |
| 64 | 64 | 'rerender' => true, |
| 65 | 65 | 'required' => ['queryType', '=', 'custom'], |
| 66 | 66 | ]; |
| @@ -67,10 +67,10 @@ | ||
| 67 | 67 | |
| 68 | 68 | $this->controls['manualProductId'] = [ |
| 69 | 69 | 'tab' => 'content', |
| 70 | 70 | 'type' => 'text', |
| 71 | - 'label' => esc_html__('Manual Product ID', 'fluent-cart-bricks-blocks'), | |
| 72 | - 'description' => esc_html__('Use this if the product is not available in dropdown.', 'fluent-cart-bricks-blocks'), | |
| 71 | + 'label' => esc_html__('Manual Product ID', 'fluent-cart'), | |
| 72 | + 'description' => esc_html__('Use this if the product is not available in dropdown.', 'fluent-cart'), | |
| 73 | 73 | 'required' => [['queryType', '=', 'custom'], ['productId', '=', '']], |
| 74 | 74 | ]; |
| 75 | 75 | |
| 76 | 76 | // BUTTONS |
| @@ -355,9 +355,9 @@ | ||
| 355 | 355 | $product = ProductDataSetup::getProductModel($productId); |
| 356 | 356 | |
| 357 | 357 | if (!$product) { |
| 358 | 358 | return $this->render_element_placeholder([ |
| 359 | - 'title' => esc_html__('Select a product', 'fluent-cart-bricks-blocks'), | |
| 359 | + 'title' => esc_html__('Select a product', 'fluent-cart'), | |
| 360 | 360 | ]); |
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | ?> |