| 1 |
<?php |
| 2 |
namespace ABlocks\Classes; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
use ABlocks\Helper; |
| 9 |
|
| 10 |
abstract class ControlBaseAbstract { |
| 11 |
abstract public static function get_attribute_default_value( $is_responsive = false); |
| 12 |
abstract public static function get_attribute( $attributeName, $is_responsive = false); |
| 13 |
abstract public static function get_css( $attribute_value, $property = '', $device = ''); |
| 14 |
public static function has_value( $value ) { |
| 15 |
return isset( $value ) && ! empty( $value ); |
| 16 |
} |
| 17 |
public static function get_unit( $attribute_value, $device = '' ) { |
| 18 |
return Helper::get_responsive_value( |
| 19 |
$attribute_value, |
| 20 |
'unit', |
| 21 |
$device, |
| 22 |
[] |
| 23 |
); |
| 24 |
} |
| 25 |
} |
| 26 |
|