array( 'config' => array( 'CounterSize' => array( 'config' => array( 'default' => '202', 'min' => '0', 'max' => '2000', 'label' => __( 'Counter Size', 'thrive-cb' ), 'um' => [ 'px' ], ), 'extends' => 'Slider', ), 'FillPercent' => array( 'to' => '.tve_fill_counter_n', 'config' => array( 'default' => '75', 'min' => '0', 'max' => '100', 'label' => __( 'Fill Percentage', 'thrive-cb' ), 'um' => [ '%' ], ), 'extends' => 'Slider', ), 'ExternalFields' => [ 'config' => [ 'key' => 'number', 'shortcode_element' => '.tve_fill_counter_n', ], 'extends' => 'CustomFields', ], 'FillColor' => array( 'to' => '.tve_fill_counter_n', 'config' => array( 'default' => '000', 'label' => __( 'Fill', 'thrive-cb' ), 'options' => [ 'output' => 'object', ], ), 'extends' => 'ColorPicker', ), 'CircleColor' => array( 'to' => '.tve_fill_counter_n', 'config' => array( 'default' => '000', 'label' => __( 'Circle', 'thrive-cb' ), 'options' => [ 'output' => 'object', ], ), 'extends' => 'ColorPicker', ), 'InnerColor' => array( 'to' => '.tve_fill_counter_n', 'config' => array( 'default' => '000', 'label' => __( 'Inner Color', 'thrive-cb' ), 'options' => [ 'output' => 'object', ], ), 'extends' => 'ColorPicker', ), 'DynamicPercent' => array( 'config' => array( 'name' => '', 'label' => __( 'Match fill value with dial value', 'thrive-cb' ), 'default' => true, ), 'to' => '.tve_fill_counter_n', 'extends' => 'Switch', ), ), ), 'layout' => [ 'disabled_controls' => [ 'Width', 'Height', 'Overflow', 'ScrollStyle', ], ], 'typography' => [ 'hidden' => true ], 'background' => [ 'hidden' => true ], 'shadow' => [ 'config' => [ 'disabled_controls' => [ 'inner', 'text' ], ], ], 'animation' => [ 'hidden' => true ], ); } /** * Element category that will be displayed in the sidebar * * @return string */ public function category() { return static::get_thrive_advanced_label(); } /** * Element info * * @return string|string[][] */ public function info() { return [ 'instructions' => [ 'type' => 'help', 'url' => 'fill_counter', 'link' => 'https://help.thrivethemes.com/en/articles/4425789-how-to-use-the-fill-counter-element', ], ]; } }