Elementor\Control_Box_Shadow::content_template PHP Method

content_template() public method

public content_template ( )
    public function content_template()
    {
        ?>
		<#
		var defaultColorValue = '';

		if ( data.default.color ) {
			if ( '#' !== data.default.color.substring( 0, 1 ) ) {
				defaultColorValue = '#' + data.default.color;
			} else {
				defaultColorValue = data.default.color;
			}

			defaultColorValue = ' data-default-color=' + defaultColorValue; // Quotes added automatically.
		}
		#>
		<div class="elementor-control-field">
			<label class="elementor-control-title"><?php 
        _e('Color', 'elementor');
        ?>
</label>
			<div class="elementor-control-input-wrapper">
				<input data-setting="color" class="elementor-box-shadow-color-picker" type="text" maxlength="7" placeholder="<?php 
        esc_attr_e('Hex Value', 'elementor');
        ?>
" data-alpha="true"{{{ defaultColorValue }}} />
			</div>
		</div>
		<?php 
        foreach ($this->get_sliders() as $slider) {
            ?>
			<div class="elementor-box-shadow-slider">
				<label class="elementor-control-title"><?php 
            echo $slider['label'];
            ?>
</label>
				<div class="elementor-control-input-wrapper">
					<div class="elementor-slider" data-input="<?php 
            echo $slider['type'];
            ?>
"></div>
					<div class="elementor-slider-input">
						<input type="number" min="<?php 
            echo $slider['min'];
            ?>
" max="<?php 
            echo $slider['max'];
            ?>
" step="{{ data.step }}" data-setting="<?php 
            echo $slider['type'];
            ?>
"/>
					</div>
				</div>
			</div>
		<?php 
        }
        ?>
		<?php 
    }