| @@ -1,0 +1,36 @@ | ||
| 1 | +<?php | |
| 2 | +namespace ABlocks\Controls; | |
| 3 | + | |
| 4 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 5 | + exit; | |
| 6 | +} | |
| 7 | + | |
| 8 | +use ABlocks\Classes\ControlBaseAbstract; | |
| 9 | + | |
| 10 | +class Link extends ControlBaseAbstract { | |
| 11 | + | |
| 12 | + public static function get_attribute_default_value( $is_responsive = false ) { | |
| 13 | + return [ | |
| 14 | + 'linkDestination' => '', | |
| 15 | + 'href' => '', | |
| 16 | + 'lightbox' => '', | |
| 17 | + 'linkTarget' => '', | |
| 18 | + 'rel' => '', | |
| 19 | + 'noFollow' => '', | |
| 20 | + 'keyValue' => '', | |
| 21 | + 'linkClass' => '', | |
| 22 | + ]; | |
| 23 | + } | |
| 24 | + | |
| 25 | + public static function get_attribute( $attributeName, $isResponsive = false ) { | |
| 26 | + return [ | |
| 27 | + $attributeName => [ | |
| 28 | + 'type' => 'object', | |
| 29 | + 'default' => self::get_attribute_default_value( $isResponsive ) | |
| 30 | + ] | |
| 31 | + ]; | |
| 32 | + } | |
| 33 | + public static function get_css( $attribute_value, $property = '', $device = '' ) { | |
| 34 | + | |
| 35 | + } | |
| 36 | +} | |