| 1 |
<?php |
| 2 |
/** |
| 3 |
* Search Filter attributes file. |
| 4 |
* |
| 5 |
* @package Smart_Post_Show |
| 6 |
* @subpackage Smart_Post_Show/blocks/includes |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
return array( |
| 14 |
'blockName' => array( |
| 15 |
'type' => 'string', |
| 16 |
), |
| 17 |
'uniqueId' => array( |
| 18 |
'type' => 'string', |
| 19 |
), |
| 20 |
'dynamicCss' => array( 'type' => 'string' ), |
| 21 |
|
| 22 |
'showSearchLabel' => array( |
| 23 |
'type' => 'boolean', |
| 24 |
'default' => true, |
| 25 |
), |
| 26 |
'searchLabel' => array( |
| 27 |
'type' => 'string', |
| 28 |
'default' => 'Search', |
| 29 |
), |
| 30 |
'placeholderText' => array( |
| 31 |
'type' => 'string', |
| 32 |
'default' => 'Search posts', |
| 33 |
), |
| 34 |
|
| 35 |
// style. |
| 36 |
'fieldLabelColor' => array( |
| 37 |
'type' => 'string', |
| 38 |
'default' => '', |
| 39 |
), |
| 40 |
'fieldBg' => array( |
| 41 |
'type' => 'object', |
| 42 |
'default' => array( |
| 43 |
'color' => '', |
| 44 |
'hoverColor' => '', |
| 45 |
), |
| 46 |
), |
| 47 |
'fieldBorder' => array( |
| 48 |
'type' => 'object', |
| 49 |
'default' => array( |
| 50 |
'color' => '', |
| 51 |
'style' => '', |
| 52 |
), |
| 53 |
), |
| 54 |
'fieldBorderHover' => array( |
| 55 |
'type' => 'object', |
| 56 |
'default' => array( |
| 57 |
'color' => '', |
| 58 |
'style' => '', |
| 59 |
), |
| 60 |
), |
| 61 |
'fieldBorderWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 62 |
'fieldBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 63 |
'fieldBorderWidthHover' => $this->spacing_attribute( '1', '1', '1', '1', 'px', true ), |
| 64 |
'fieldBorderRadiusHover' => $this->spacing_attribute( 2, 2, 2, 2, 'px', true ), |
| 65 |
'fieldPadding' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 66 |
'additionalCssClass' => array( |
| 67 |
'type' => 'string', |
| 68 |
'default' => '', |
| 69 |
), |
| 70 |
'customCss' => array( |
| 71 |
'type' => 'string', |
| 72 |
'default' => '', |
| 73 |
), |
| 74 |
'titleGlobalTypography' => array( |
| 75 |
'type' => 'object', |
| 76 |
'default' => array(), |
| 77 |
), |
| 78 |
'globalBreakPointData' => array( |
| 79 |
'type' => 'object', |
| 80 |
'default' => array(), |
| 81 |
), |
| 82 |
'filterWidth' => $this->ranger_attribute( '', '', '', 'px' ), |
| 83 |
'enableSearchIcon' => array( |
| 84 |
'type' => 'boolean', |
| 85 |
'default' => true, |
| 86 |
), |
| 87 |
); |
| 88 |
|