PluginProbe
UiCore Elements – Free widgets and templates for Elementor / 1.3.17
UiCore Elements – Free widgets and templates for Elementor v1.3.17
1.3.17 1.3.16 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 All 41 releases
← All changes | includes/utils/grid-component.php +16 -14 1.2.01.3.17 View file →
@@ -1,5 +1,6 @@
1 1 <?php
2 +
2 3 namespace UiCoreElements\Utils;
3 4
4 5 use Elementor\Controls_Manager;
5 6 use Elementor\Group_Control_Background;
@@ -7,9 +8,10 @@
7 8 use Elementor\Group_Control_Box_Shadow;
8 9
9 10 defined('ABSPATH') || exit();
10 11
11 -trait Grid_Trait {
12 +trait Grid_Trait
13 +{
12 14
13 15 /**
14 16 * Registers the grid layout controls.
15 17 *
@@ -20,9 +22,9 @@
20 22
21 23 $this->add_responsive_control(
22 24 'columns',
23 25 [
24 - 'label' => __( 'Columns', 'uicore-elements' ),
26 + 'label' => __('Columns', 'uicore-elements'),
25 27 'type' => Controls_Manager::SELECT,
26 28 'desktop_default' => 3,
27 29 'tablet_default' => 2,
28 30 'mobile_default' => 1,
@@ -45,21 +47,21 @@
45 47 );
46 48 $this->add_responsive_control(
47 49 'gap',
48 50 [
49 - 'label' => esc_html__( 'Items Gap', 'uicore-elements' ),
51 + 'label' => esc_html__('Items Gap', 'uicore-elements'),
50 52 'type' => Controls_Manager::SLIDER,
51 53 'size_units' => ['px'],
52 - 'range' => [
53 - 'px' => [
54 - 'min' => 0,
55 - 'max' => 200,
56 - ],
57 - ],
58 - 'default' => [
59 - 'unit' => 'px',
60 - 'size' => 20,
61 - ],
54 + 'range' => [
55 + 'px' => [
56 + 'min' => 0,
57 + 'max' => 200,
58 + ],
59 + ],
60 + 'default' => [
61 + 'unit' => 'px',
62 + 'size' => 20,
63 + ],
62 64 'selectors' => [
63 65 '{{WRAPPER}} .ui-e-grid' => 'grid-gap: {{SIZE}}{{UNIT}};',
64 66 '{{WRAPPER}} .ui-e-adv-grid' => 'grid-gap: {{SIZE}}{{UNIT}};', // Old APG Suport
65 67 ],
@@ -79,5 +81,5 @@
79 81 'condition' => $conditions
80 82 ]
81 83 );
82 84 }
83 -}
85 +}