PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
← All changes | app/Modules/Templating/Bricks/Elements/ProductContent.php +11 -14 1.4.2 → 1.6.5 View file →
@@ -13,27 +13,24 @@
13 13 class ProductContent extends Element
14 14 {
15 15 public $category = 'fluent-cart';
16 16 public $name = 'fct-product-content';
17 - public $icon = 'ion-md-list-box';
17 + public $icon = 'ion-md-list-box fluent-cart-element-icon';
18 18
19 19 public function get_label()
20 20 {
21 - return esc_html__('Product Content (FluentCart)', 'fluent-cart');
21 + return esc_html__('Product Content', 'fluent-cart');
22 22 }
23 23
24 24 public function set_controls()
25 25 {
26 - $edit_link = Helpers::get_preview_post_link(get_the_ID());
27 - $label = esc_html__('Edit product content in FluentCart.', 'fluent-cart');
28 -
29 26 $this->controls['queryType'] = [
30 27 'tab' => 'content',
31 28 'type' => 'select',
32 - 'label' => esc_html__('Query Type', 'fluent-cart-bricks-blocks'),
29 + 'label' => esc_html__('Query Type', 'fluent-cart'),
33 30 'options' => [
34 - 'default' => esc_html__('Default', 'fluent-cart-bricks-blocks'),
35 - 'custom' => esc_html__('Custom', 'fluent-cart-bricks-blocks'),
31 + 'default' => esc_html__('Default', 'fluent-cart'),
32 + 'custom' => esc_html__('Custom', 'fluent-cart'),
36 33 ],
37 34 'default' => 'default',
38 35 'inline' => true,
39 36 ];
@@ -40,11 +37,11 @@
40 37
41 38 $this->controls['productId'] = [
42 39 'tab' => 'content',
43 40 'type' => 'select',
44 - 'label' => esc_html__('Product', 'fluent-cart-bricks-blocks'),
41 + 'label' => esc_html__('Product', 'fluent-cart'),
45 42 'options' => BricksLoader::getProductOptions(),
46 - 'placeholder' => esc_html__('Select a product', 'fluent-cart-bricks-blocks'),
43 + 'placeholder' => esc_html__('Select a product', 'fluent-cart'),
47 44 'searchable' => true,
48 45 'rerender' => true,
49 46 'required' => ['queryType', '=', 'custom'],
50 47 ];
@@ -51,10 +48,10 @@
51 48
52 49 $this->controls['manualProductId'] = [
53 50 'tab' => 'content',
54 51 'type' => 'text',
55 - 'label' => esc_html__('Manual Product ID', 'fluent-cart-bricks-blocks'),
56 - 'description' => esc_html__('Use this if the product is not available in dropdown.', 'fluent-cart-bricks-blocks'),
52 + 'label' => esc_html__('Manual Product ID', 'fluent-cart'),
53 + 'description' => esc_html__('Use this if the product is not available in dropdown.', 'fluent-cart'),
57 54 'required' => [['queryType', '=', 'custom'], ['productId', '=', '']],
58 55 ];
59 56
60 57 $this->controls['info'] = [
@@ -59,9 +56,9 @@
59 56
60 57 $this->controls['info'] = [
61 58 'tab' => 'content',
62 59 'type' => 'info',
63 - 'content' => $edit_link ? '<a href="' . esc_url($edit_link) . '" target="_blank">' . $label . '</a>' : $label,
60 + 'content' => esc_html__('Edit product content in FluentCart.', 'fluent-cart'),
64 61 ];
65 62 }
66 63
67 64 public function render()
@@ -83,9 +80,9 @@
83 80 $product = ProductDataSetup::getProductModel($productId);
84 81
85 82 if (!$product) {
86 83 return $this->render_element_placeholder([
87 - 'title' => esc_html__('Select a product', 'fluent-cart-bricks-blocks'),
84 + 'title' => esc_html__('Select a product', 'fluent-cart'),
88 85 ]);
89 86 }
90 87
91 88 $content = $product->post_content;