| 1 |
<?php |
| 2 |
/** |
| 3 |
* Live filter block attributes file for Smart Post Show Blocks. |
| 4 |
* |
| 5 |
* @package Smart_Post_Show_Pro |
| 6 |
* @subpackage Smart_Post_Show_Pro/blocks/includes |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
return array( |
| 14 |
'layout' => array( |
| 15 |
'type' => 'string', |
| 16 |
'default' => 'layoutOne', |
| 17 |
), |
| 18 |
'spBlockId' => array( 'type' => 'string' ), |
| 19 |
'uniqueId' => array( 'type' => 'string' ), |
| 20 |
'dynamicCss' => array( 'type' => 'string' ), |
| 21 |
'fontLists' => array( 'type' => 'string' ), |
| 22 |
'fieldAlignment' => array( |
| 23 |
'type' => 'string', |
| 24 |
'default' => 'center', |
| 25 |
), |
| 26 |
'blockName' => array( |
| 27 |
'type' => 'string', |
| 28 |
), |
| 29 |
'postType' => array( |
| 30 |
'type' => 'string', |
| 31 |
'default' => 'multiple_post_type', |
| 32 |
), |
| 33 |
'innerBlockLength' => array( |
| 34 |
'type' => 'number', |
| 35 |
), |
| 36 |
'multiplePostType' => array( |
| 37 |
'type' => 'array', |
| 38 |
'default' => array(), |
| 39 |
), |
| 40 |
'postQuery' => array( |
| 41 |
'type' => 'string', |
| 42 |
'default' => '', |
| 43 |
), |
| 44 |
'gap' => array( |
| 45 |
'type' => 'object', |
| 46 |
'default' => array( |
| 47 |
'device' => array( |
| 48 |
'Desktop' => 16, |
| 49 |
'Tablet' => 12, |
| 50 |
'Mobile' => 8, |
| 51 |
), |
| 52 |
'unit' => array( |
| 53 |
'Desktop' => 'px', |
| 54 |
'Tablet' => 'px', |
| 55 |
'Mobile' => 'px', |
| 56 |
), |
| 57 |
), |
| 58 |
), |
| 59 |
'multipleFilterRelation' => array( |
| 60 |
'type' => 'string', |
| 61 |
'default' => 'and', |
| 62 |
), |
| 63 |
// style attr. |
| 64 |
'titleTypography' => array( |
| 65 |
'type' => 'object', |
| 66 |
'default' => array( |
| 67 |
'googleFont' => array( |
| 68 |
'family' => 'Default', |
| 69 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 70 |
), |
| 71 |
'typography' => array( |
| 72 |
'family' => '', |
| 73 |
'fontWeight' => '', |
| 74 |
'style' => '', |
| 75 |
'transform' => '', |
| 76 |
'decoration' => '', |
| 77 |
), |
| 78 |
), |
| 79 |
), |
| 80 |
'titleGlobalTypography' => array( |
| 81 |
'type' => 'object', |
| 82 |
'default' => array(), |
| 83 |
), |
| 84 |
'titleFontSize' => $this->ranger_attribute( '' ), |
| 85 |
'titleLatterSpacing' => $this->ranger_attribute( '' ), |
| 86 |
'titleWordSpacing' => $this->ranger_attribute( '' ), |
| 87 |
'titleLineHeight' => array( |
| 88 |
'type' => 'object', |
| 89 |
'default' => array( |
| 90 |
'device' => array( |
| 91 |
'Desktop' => '', |
| 92 |
'Tablet' => '', |
| 93 |
'Mobile' => '', |
| 94 |
), |
| 95 |
), |
| 96 |
), |
| 97 |
|
| 98 |
|
| 99 |
'menuTypography' => array( |
| 100 |
'type' => 'object', |
| 101 |
'default' => array( |
| 102 |
'googleFont' => array( |
| 103 |
'family' => 'Default', |
| 104 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 105 |
), |
| 106 |
'typography' => array( |
| 107 |
'family' => '', |
| 108 |
'fontWeight' => '', |
| 109 |
'style' => '', |
| 110 |
'transform' => '', |
| 111 |
'decoration' => '', |
| 112 |
), |
| 113 |
), |
| 114 |
), |
| 115 |
'menuGlobalTypography' => array( |
| 116 |
'type' => 'object', |
| 117 |
'default' => array(), |
| 118 |
), |
| 119 |
'menuFontSize' => $this->ranger_attribute( '14', '14', '14' ), |
| 120 |
'menuLatterSpacing' => $this->ranger_attribute( '' ), |
| 121 |
'menuWordSpacing' => $this->ranger_attribute( '' ), |
| 122 |
'menuLineHeight' => array( |
| 123 |
'type' => 'object', |
| 124 |
'default' => array( |
| 125 |
'device' => array( |
| 126 |
'Desktop' => '', |
| 127 |
'Tablet' => '', |
| 128 |
'Mobile' => '', |
| 129 |
), |
| 130 |
), |
| 131 |
), |
| 132 |
|
| 133 |
'menuColor' => array( |
| 134 |
'type' => 'object', |
| 135 |
'default' => array( |
| 136 |
'color' => '', |
| 137 |
'hover' => '', |
| 138 |
), |
| 139 |
), |
| 140 |
|
| 141 |
'optionTypography' => array( |
| 142 |
'type' => 'object', |
| 143 |
'default' => array( |
| 144 |
'googleFont' => array( |
| 145 |
'family' => 'Default', |
| 146 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 147 |
), |
| 148 |
'typography' => array( |
| 149 |
'family' => '', |
| 150 |
'fontWeight' => '', |
| 151 |
'style' => '', |
| 152 |
'transform' => '', |
| 153 |
'decoration' => '', |
| 154 |
), |
| 155 |
), |
| 156 |
), |
| 157 |
'optionGlobalTypography' => array( |
| 158 |
'type' => 'object', |
| 159 |
'default' => array(), |
| 160 |
), |
| 161 |
'optionFontSize' => $this->ranger_attribute( '' ), |
| 162 |
'optionLatterSpacing' => $this->ranger_attribute( '' ), |
| 163 |
'optionWordSpacing' => $this->ranger_attribute( '' ), |
| 164 |
'optionLineHeight' => array( |
| 165 |
'type' => 'object', |
| 166 |
'default' => array( |
| 167 |
'device' => array( |
| 168 |
'Desktop' => '', |
| 169 |
'Tablet' => '', |
| 170 |
'Mobile' => '', |
| 171 |
), |
| 172 |
), |
| 173 |
), |
| 174 |
'titleColor' => array( |
| 175 |
'type' => 'object', |
| 176 |
'default' => array( |
| 177 |
'color' => 'var(--smart-post-dark-2-text)', |
| 178 |
), |
| 179 |
), |
| 180 |
'optionColor' => array( |
| 181 |
'type' => 'object', |
| 182 |
'default' => array( |
| 183 |
'color' => '', |
| 184 |
'hover' => '', |
| 185 |
), |
| 186 |
), |
| 187 |
'bgColor' => array( |
| 188 |
'type' => 'object', |
| 189 |
'default' => array( |
| 190 |
'color' => '#FFFFFF', |
| 191 |
'hover' => '#e5f0ff', |
| 192 |
), |
| 193 |
), |
| 194 |
'borderNormal' => array( |
| 195 |
'type' => 'object', |
| 196 |
'default' => array( |
| 197 |
'color' => 'var(--smart-post-dark-2-text)', |
| 198 |
'style' => 'solid', |
| 199 |
), |
| 200 |
), |
| 201 |
'borderHover' => array( |
| 202 |
'type' => 'object', |
| 203 |
'default' => array( |
| 204 |
'color' => '#838487', |
| 205 |
'style' => 'solid', |
| 206 |
), |
| 207 |
), |
| 208 |
'borderWidthNormal' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 209 |
'borderWidthHover' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 210 |
'borderRadiusNormal' => $this->spacing_attribute( 2, 2, 2, 2, 'px', true ), |
| 211 |
'borderRadiusHover' => $this->spacing_attribute( 2, 2, 2, 2, 'px', true ), |
| 212 |
'padding' => $this->spacing_attribute( 10, 12, 10, 12, 'px', false ), |
| 213 |
'margin' => $this->spacing_attribute( 0, 0, 40, 0, 'px', false ), |
| 214 |
'additionalCssClass' => array( |
| 215 |
'type' => 'string', |
| 216 |
'default' => '', |
| 217 |
), |
| 218 |
'customCss' => array( |
| 219 |
'type' => 'string', |
| 220 |
'default' => '', |
| 221 |
), |
| 222 |
'hideOnDesktop' => array( |
| 223 |
'type' => 'boolean', |
| 224 |
'default' => false, |
| 225 |
), |
| 226 |
'hideOnTablet' => array( |
| 227 |
'type' => 'boolean', |
| 228 |
'default' => false, |
| 229 |
), |
| 230 |
'hideOnMobile' => array( |
| 231 |
'type' => 'boolean', |
| 232 |
'default' => false, |
| 233 |
), |
| 234 |
'globalBreakPointData' => array( |
| 235 |
'type' => 'object', |
| 236 |
'default' => array(), |
| 237 |
), |
| 238 |
'taxonomyType' => array( |
| 239 |
'type' => 'string', |
| 240 |
'default' => 'category', |
| 241 |
), |
| 242 |
'selectedTerms' => array( |
| 243 |
'type' => 'array', |
| 244 |
'default' => array(), |
| 245 |
), |
| 246 |
'taxonomyStyle' => array( |
| 247 |
'type' => 'string', |
| 248 |
'default' => 'more', |
| 249 |
), |
| 250 |
'allTextLabel' => array( |
| 251 |
'type' => 'string', |
| 252 |
'default' => 'All', |
| 253 |
), |
| 254 |
'taxonomyLimit' => array( |
| 255 |
'type' => 'object', |
| 256 |
'default' => array( |
| 257 |
'device' => array( |
| 258 |
'Desktop' => 3, |
| 259 |
'Tablet' => 2, |
| 260 |
'Mobile' => 1, |
| 261 |
), |
| 262 |
), |
| 263 |
), |
| 264 |
|
| 265 |
'filterType' => array( |
| 266 |
'type' => 'string', |
| 267 |
'default' => 'button', |
| 268 |
), |
| 269 |
'activeBottomLine' => array( |
| 270 |
'type' => 'boolean', |
| 271 |
'default' => true, |
| 272 |
), |
| 273 |
|
| 274 |
'headingStyle' => array( |
| 275 |
'type' => 'string', |
| 276 |
'default' => 'styleOne', |
| 277 |
), |
| 278 |
|
| 279 |
'headingLabel' => array( |
| 280 |
'type' => 'string', |
| 281 |
'default' => 'Latest Posts', |
| 282 |
), |
| 283 |
'headingTag' => array( |
| 284 |
'type' => 'string', |
| 285 |
'default' => 'h3', |
| 286 |
), |
| 287 |
|
| 288 |
'menuAlignment' => array( |
| 289 |
'type' => 'string', |
| 290 |
'default' => 'right', |
| 291 |
), |
| 292 |
|
| 293 |
'headingTypography' => array( |
| 294 |
'type' => 'object', |
| 295 |
'default' => array( |
| 296 |
'googleFont' => array( |
| 297 |
'family' => 'Default', |
| 298 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 299 |
), |
| 300 |
'typography' => array( |
| 301 |
'family' => '', |
| 302 |
'fontWeight' => '', |
| 303 |
'style' => '', |
| 304 |
'transform' => '', |
| 305 |
'decoration' => '', |
| 306 |
), |
| 307 |
), |
| 308 |
), |
| 309 |
'headingGlobalTypography' => array( |
| 310 |
'type' => 'object', |
| 311 |
'default' => array(), |
| 312 |
), |
| 313 |
'headingFontSize' => $this->ranger_attribute( '18', '18', '14' ), |
| 314 |
'headingLatterSpacing' => $this->ranger_attribute( '' ), |
| 315 |
'headingWordSpacing' => $this->ranger_attribute( '' ), |
| 316 |
'headingLineHeight' => array( |
| 317 |
'type' => 'object', |
| 318 |
'default' => array( |
| 319 |
'device' => array( |
| 320 |
'Desktop' => '', |
| 321 |
'Tablet' => '', |
| 322 |
'Mobile' => '', |
| 323 |
), |
| 324 |
), |
| 325 |
), |
| 326 |
|
| 327 |
'headingColor' => array( |
| 328 |
'type' => 'object', |
| 329 |
'default' => array( |
| 330 |
'color' => '', |
| 331 |
'hover' => '', |
| 332 |
), |
| 333 |
), |
| 334 |
'headingBg' => array( |
| 335 |
'type' => 'object', |
| 336 |
'default' => array( |
| 337 |
'color' => '', |
| 338 |
'hover' => '', |
| 339 |
), |
| 340 |
), |
| 341 |
'widthLineThickness' => array( |
| 342 |
'type' => 'number', |
| 343 |
'default' => 2, |
| 344 |
), |
| 345 |
|
| 346 |
'headingBorder' => array( |
| 347 |
'type' => 'object', |
| 348 |
'default' => array( |
| 349 |
'color' => '#838487', |
| 350 |
'style' => 'none', |
| 351 |
), |
| 352 |
), |
| 353 |
|
| 354 |
'headingBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 355 |
'headingBorderRadius' => $this->spacing_attribute( 2, 2, 2, 2, 'px', true ), |
| 356 |
'headingPadding' => $this->spacing_attribute( 8, 20, 8, 20, 'px', false ), |
| 357 |
'widthLineColor' => array( |
| 358 |
'type' => 'string', |
| 359 |
'default' => '#E0E0E0', |
| 360 |
|
| 361 |
), |
| 362 |
'selectTermsType' => array( |
| 363 |
'type' => 'string', |
| 364 |
'default' => 'all', |
| 365 |
), |
| 366 |
'excludeTerms' => array( |
| 367 |
'type' => 'array', |
| 368 |
'default' => array(), |
| 369 |
), |
| 370 |
); |
| 371 |
|