'', 'right' => '', 'bottom' => '', 'left' => '', 'isLinked' => true, ] ); } /** * Get dimensions control default settings. * * Retrieve the default settings of the dimensions control. Used to return the * default settings while initializing the dimensions control. * * @since 1.0.0 * @access protected * * @return array Control default settings. */ protected function get_default_settings() { return array_merge( parent::get_default_settings(), [ 'label_block' => true, 'allowed_dimensions' => 'all', 'placeholder' => '', ] ); } /** * Render dimensions control output in the editor. * * Used to generate the control HTML in the editor using Underscore JS * template. The variables for the class are available using `data` JS * object. * * @since 1.0.0 * @access public */ public function content_template() { $dimensions = [ 'top' => esc_html__( 'Top', 'elementor' ), 'right' => esc_html__( 'Right', 'elementor' ), 'bottom' => esc_html__( 'Bottom', 'elementor' ), 'left' => esc_html__( 'Left', 'elementor' ), ]; ?>
print_units_template(); ?>
<# if ( data.description ) { #>
{{{ data.description }}}
<# } #>