# elementor/4.2.3/includes/widgets/common-optimized.php

Elementor Website Builder – more than just a page builder, version 4.2.3. 23 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.2.3/code/includes/widgets/common-optimized.php
- Raw: https://pluginprobe.com/plugins/elementor/4.2.3/raw/includes/widgets/common-optimized.php
- Modified: 2024-12-19T21:26:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/4.2.3/code/includes/widgets/common-optimized.php#L10-L20`.

```php
<?php
namespace Elementor;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Widget_Common_Optimized extends Widget_Common_Base {

	const WRAPPER_SELECTOR = '{{WRAPPER}}';
	const WRAPPER_SELECTOR_CHILD = '{{WRAPPER}}';
	const WRAPPER_SELECTOR_HOVER = '{{WRAPPER}}:hover';
	const WRAPPER_SELECTOR_HOVER_CHILD = '{{WRAPPER}}:hover';
	const MASK_SELECTOR_DEFAULT = '{{WRAPPER}}:not( .elementor-widget-image )';
	const MASK_SELECTOR_IMG = '{{WRAPPER}}.elementor-widget-image img';
	const TRANSFORM_SELECTOR_CLASS = '';
	const MARGIN = 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} calc(var(--kit-widget-spacing, 0px) + {{BOTTOM}}{{UNIT}}) {{LEFT}}{{UNIT}};';

	public function get_name() {
		return 'common-optimized'; // TODO: Rename to 'common' and use this version when the Optimized Markup feature is merged.
	}
}

```
