_x('Border Type', 'Border Control'), 'type' => ControlsManager::SELECT, 'options' => [ '' => __('None'), 'solid' => _x('Solid', 'Border Control'), 'double' => _x('Double', 'Border Control'), 'dotted' => _x('Dotted', 'Border Control'), 'dashed' => _x('Dashed', 'Border Control'), 'groove' => _x('Groove', 'Border Control'), ], 'selectors' => [ '{{SELECTOR}}' => 'border-style: {{VALUE}};', ], ]; $fields['width'] = [ 'label' => _x('Width', 'Border Control'), 'type' => ControlsManager::DIMENSIONS, 'selectors' => [ '{{SELECTOR}}' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'border!' => '', ], 'responsive' => true, ]; $fields['color'] = [ 'label' => _x('Color', 'Border Control'), 'type' => ControlsManager::COLOR, 'default' => '', 'selectors' => [ '{{SELECTOR}}' => 'border-color: {{VALUE}};', ], 'condition' => [ 'border!' => '', ], ]; return $fields; } /** * Get default options. * * Retrieve the default options of the border control. Used to return the * default options while initializing the border control. * * @since 1.9.0 * @access protected * * @return array Default border control options. */ protected function getDefaultOptions() { return [ 'popover' => false, ]; } }