| 1 |
<?php |
| 2 |
/** |
| 3 |
* Shared 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 |
$content_area_attr = array( |
| 14 |
'contentVerticalPosition' => array( |
| 15 |
'type' => 'string', |
| 16 |
'default' => 'center', |
| 17 |
), |
| 18 |
'contentHorizontalPosition' => array( |
| 19 |
'type' => 'string', |
| 20 |
'default' => 'right', |
| 21 |
), |
| 22 |
'contentAreaWidth' => $this->ranger_attribute( '80', '85', '85', '%' ), |
| 23 |
'contentAreaHeight' => $this->ranger_attribute( '', '', '', '%' ), |
| 24 |
'contentAreaBg' => array( |
| 25 |
'type' => 'object', |
| 26 |
'default' => array( |
| 27 |
'color' => array( |
| 28 |
'style' => '', |
| 29 |
'transparent' => '', |
| 30 |
'solidColor' => '', |
| 31 |
'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.92) 0%, rgba(136, 169, 231, 0.89) 51%, rgba(144, 234, 228, 0.86) 100%)', |
| 32 |
), |
| 33 |
'hover' => array( |
| 34 |
'style' => '', |
| 35 |
'transparent' => '', |
| 36 |
'solidColor' => '', |
| 37 |
'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.9) 0%, rgba(136, 169, 231, 0.75) 51%, rgba(144, 234, 228, 0.7) 100%)', |
| 38 |
), |
| 39 |
), |
| 40 |
), |
| 41 |
'contentAreaBorder' => array( |
| 42 |
'type' => 'object', |
| 43 |
'default' => array( |
| 44 |
'style' => 'none', |
| 45 |
'color' => '#cccccc', |
| 46 |
'hoverColor' => '', |
| 47 |
'activeColor' => '#000000', |
| 48 |
), |
| 49 |
), |
| 50 |
'contentAreaBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 51 |
'contentAreaBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 52 |
'contentAreaEnableBoxShadow' => array( |
| 53 |
'type' => 'boolean', |
| 54 |
'default' => false, |
| 55 |
), |
| 56 |
'contentAreaBoxShadow' => array( |
| 57 |
'type' => 'object', |
| 58 |
'default' => array( |
| 59 |
'device' => array( |
| 60 |
'Desktop' => array( |
| 61 |
'top' => 3, |
| 62 |
'right' => 3, |
| 63 |
'bottom' => 6, |
| 64 |
'left' => 0, |
| 65 |
), |
| 66 |
'Tablet' => array( |
| 67 |
'top' => '', |
| 68 |
'right' => '', |
| 69 |
'bottom' => '', |
| 70 |
'left' => '', |
| 71 |
), |
| 72 |
'Mobile' => array( |
| 73 |
'top' => '', |
| 74 |
'right' => '', |
| 75 |
'bottom' => '', |
| 76 |
'left' => '', |
| 77 |
), |
| 78 |
), |
| 79 |
'unit' => array( |
| 80 |
'Desktop' => 'outset', |
| 81 |
'Tablet' => 'outset', |
| 82 |
'Mobile' => 'outset', |
| 83 |
), |
| 84 |
'color' => '#4E4F521A', |
| 85 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 86 |
), |
| 87 |
), |
| 88 |
'contentAreaPadding' => $this->spacing_attribute(), |
| 89 |
'largeContentAreaPadding' => $this->spacing_attribute(), |
| 90 |
'contentAreaMargin' => $this->spacing_attribute( '' ), |
| 91 |
'contentAreaHoverBorderWidth' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 92 |
'contentAreaHoverBorderRadius' => $this->spacing_attribute(), |
| 93 |
'contentAreaInnerWidth' => $this->ranger_attribute( 85, '', 100, '%' ), |
| 94 |
'contentAreaThumbsBorder' => array( |
| 95 |
'type' => 'object', |
| 96 |
'default' => array( |
| 97 |
'style' => 'solid', |
| 98 |
'color' => '', |
| 99 |
'hoverColor' => '', |
| 100 |
), |
| 101 |
), |
| 102 |
'contentAreaThumbsBorderWidth' => $this->spacing_attribute(), |
| 103 |
'contentAreaThumbsBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 104 |
'postCardBg' => array( |
| 105 |
'type' => 'object', |
| 106 |
'default' => array( |
| 107 |
'color' => array( |
| 108 |
'style' => '', |
| 109 |
'transparent' => '', |
| 110 |
'solidColor' => '', |
| 111 |
'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)', |
| 112 |
), |
| 113 |
'hover' => array( |
| 114 |
'style' => '', |
| 115 |
'transparent' => '', |
| 116 |
'solidColor' => '', |
| 117 |
'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)', |
| 118 |
), |
| 119 |
), |
| 120 |
), |
| 121 |
'postCardBorder' => array( |
| 122 |
'type' => 'object', |
| 123 |
'default' => array( |
| 124 |
'style' => 'none', |
| 125 |
'hoverStyle' => '', |
| 126 |
'color' => '', |
| 127 |
'hoverColor' => '', |
| 128 |
), |
| 129 |
), |
| 130 |
'postCardBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 131 |
'postCardHoverBorderWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 132 |
'postCardBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 133 |
'postCardHoverBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 134 |
'postCardBoxShadowEnable' => array( |
| 135 |
'type' => 'boolean', |
| 136 |
'default' => false, |
| 137 |
), |
| 138 |
'postCardHoverBoxShadowEnable' => array( |
| 139 |
'type' => 'boolean', |
| 140 |
'default' => false, |
| 141 |
), |
| 142 |
'multipleFilterRelation' => array( |
| 143 |
'type' => 'string', |
| 144 |
'default' => 'and', |
| 145 |
), |
| 146 |
'postCardBoxShadow' => array( |
| 147 |
'type' => 'object', |
| 148 |
'default' => array( |
| 149 |
'device' => array( |
| 150 |
'Desktop' => array( |
| 151 |
'top' => 5, |
| 152 |
'right' => 5, |
| 153 |
'bottom' => 10, |
| 154 |
'left' => 0, |
| 155 |
), |
| 156 |
'Tablet' => array( |
| 157 |
'top' => '', |
| 158 |
'right' => '', |
| 159 |
'bottom' => '', |
| 160 |
'left' => '', |
| 161 |
), |
| 162 |
'Mobile' => array( |
| 163 |
'top' => '', |
| 164 |
'right' => '', |
| 165 |
'bottom' => '', |
| 166 |
'left' => '', |
| 167 |
), |
| 168 |
), |
| 169 |
'unit' => array( |
| 170 |
'Desktop' => 'outset', |
| 171 |
'Tablet' => 'outset', |
| 172 |
'Mobile' => 'outset', |
| 173 |
), |
| 174 |
'color' => '#4E4F521A', |
| 175 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 176 |
), |
| 177 |
), |
| 178 |
'postCardHoverBoxShadow' => array( |
| 179 |
'type' => 'object', |
| 180 |
'default' => array( |
| 181 |
'device' => array( |
| 182 |
'Desktop' => array( |
| 183 |
'top' => 5, |
| 184 |
'right' => 5, |
| 185 |
'bottom' => 10, |
| 186 |
'left' => 0, |
| 187 |
), |
| 188 |
'Tablet' => array( |
| 189 |
'top' => '', |
| 190 |
'right' => '', |
| 191 |
'bottom' => '', |
| 192 |
'left' => '', |
| 193 |
), |
| 194 |
'Mobile' => array( |
| 195 |
'top' => '', |
| 196 |
'right' => '', |
| 197 |
'bottom' => '', |
| 198 |
'left' => '', |
| 199 |
), |
| 200 |
), |
| 201 |
'unit' => array( |
| 202 |
'Desktop' => 'outset', |
| 203 |
'Tablet' => 'outset', |
| 204 |
'Mobile' => 'outset', |
| 205 |
), |
| 206 |
'color' => '#4E4F521A', |
| 207 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 208 |
), |
| 209 |
), |
| 210 |
'postCardPadding' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 211 |
); |
| 212 |
$style_title = array( |
| 213 |
'titleShow' => array( |
| 214 |
'type' => 'boolean', |
| 215 |
'default' => true, |
| 216 |
), |
| 217 |
'titleHTMLTag' => array( |
| 218 |
'type' => 'string', |
| 219 |
'default' => 'h3', |
| 220 |
), |
| 221 |
'titleType' => array( |
| 222 |
'type' => 'string', |
| 223 |
'default' => 'full', |
| 224 |
), |
| 225 |
'titleLength' => array( |
| 226 |
'type' => 'object', |
| 227 |
'default' => array( |
| 228 |
'value' => 7, |
| 229 |
'unit' => 'words', |
| 230 |
), |
| 231 |
), |
| 232 |
'titleTypography' => array( |
| 233 |
'type' => 'object', |
| 234 |
'default' => array( |
| 235 |
'googleFont' => array( |
| 236 |
'family' => 'Default', |
| 237 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 238 |
), |
| 239 |
'typography' => array( |
| 240 |
'family' => '', |
| 241 |
'fontWeight' => '', |
| 242 |
'style' => '', |
| 243 |
'transform' => '', |
| 244 |
'decoration' => '', |
| 245 |
), |
| 246 |
), |
| 247 |
), |
| 248 |
'titleGlobalTypography' => array( |
| 249 |
'type' => 'object', |
| 250 |
'default' => array(), |
| 251 |
), |
| 252 |
'titleFontSize' => $this->ranger_attribute( '', '', '', 'px' ), |
| 253 |
'titleLatterSpacing' => $this->ranger_attribute( '' ), |
| 254 |
'titleWordSpacing' => $this->ranger_attribute( '' ), |
| 255 |
'titleLineHeight' => array( |
| 256 |
'type' => 'object', |
| 257 |
'default' => array( |
| 258 |
'device' => array( |
| 259 |
'Desktop' => '', |
| 260 |
'Tablet' => '', |
| 261 |
'Mobile' => '', |
| 262 |
), |
| 263 |
// 'unit' => array( |
| 264 |
// 'Desktop' => 'px', |
| 265 |
// 'Tablet' => 'px', |
| 266 |
// 'Mobile' => 'px', |
| 267 |
// ), |
| 268 |
), |
| 269 |
), |
| 270 |
'titleColor' => array( |
| 271 |
'type' => 'object', |
| 272 |
'default' => array( |
| 273 |
'color' => '', |
| 274 |
'hoverColor' => '', |
| 275 |
), |
| 276 |
), |
| 277 |
'titleMargin' => $this->spacing_attribute( '' ), |
| 278 |
'largeItemTitleColor' => array( |
| 279 |
'type' => 'object', |
| 280 |
'default' => array( |
| 281 |
'color' => '#000000', |
| 282 |
'hoverColor' => 'var(--smart-post-secondary)', |
| 283 |
), |
| 284 |
), |
| 285 |
'largeItemTitleLineHeight' => array( |
| 286 |
'type' => 'object', |
| 287 |
'default' => array( |
| 288 |
'device' => array( |
| 289 |
'Desktop' => '', |
| 290 |
'Tablet' => '', |
| 291 |
'Mobile' => '', |
| 292 |
), |
| 293 |
// 'unit' => array( |
| 294 |
// 'Desktop' => 'px', |
| 295 |
// 'Tablet' => 'px', |
| 296 |
// 'Mobile' => 'px', |
| 297 |
// ), |
| 298 |
), |
| 299 |
), |
| 300 |
'largeItemTitleTypography' => array( |
| 301 |
'type' => 'object', |
| 302 |
'default' => array( |
| 303 |
'googleFont' => array( |
| 304 |
'family' => 'Default', |
| 305 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 306 |
), |
| 307 |
'typography' => array( |
| 308 |
'family' => '', |
| 309 |
'fontWeight' => '', |
| 310 |
'style' => '', |
| 311 |
'transform' => '', |
| 312 |
'decoration' => '', |
| 313 |
), |
| 314 |
), |
| 315 |
), |
| 316 |
'largeItemTitleGlobalTypography' => array( |
| 317 |
'type' => 'object', |
| 318 |
'default' => array(), |
| 319 |
), |
| 320 |
'largeItemTitleFontSize' => $this->ranger_attribute( 26 ), |
| 321 |
'largeItemTitleLatterSpacing' => array( |
| 322 |
'type' => 'object', |
| 323 |
'default' => array( |
| 324 |
'device' => array( |
| 325 |
'Desktop' => '', |
| 326 |
'Tablet' => '', |
| 327 |
'Mobile' => '', |
| 328 |
), |
| 329 |
'unit' => array( |
| 330 |
'Desktop' => 'px', |
| 331 |
'Tablet' => 'px', |
| 332 |
'Mobile' => 'px', |
| 333 |
), |
| 334 |
), |
| 335 |
), |
| 336 |
'largeItemTitleWordSpacing' => $this->ranger_attribute( '' ), |
| 337 |
'postBadgesShow' => array( |
| 338 |
'type' => 'boolean', |
| 339 |
'default' => false, |
| 340 |
), |
| 341 |
'postBadgesPosition' => array( |
| 342 |
'type' => 'string', |
| 343 |
'default' => 'before-title', |
| 344 |
), |
| 345 |
'badgesGap' => $this->ranger_attribute( 3, 3, 3, 'px' ), |
| 346 |
'postBadgesTypography' => array( |
| 347 |
'type' => 'object', |
| 348 |
'default' => array( |
| 349 |
'googleFont' => array( |
| 350 |
'family' => 'Default', |
| 351 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 352 |
), |
| 353 |
'typography' => array( |
| 354 |
'family' => '', |
| 355 |
'fontWeight' => '600', |
| 356 |
'style' => 'normal', |
| 357 |
'transform' => 'uppercase', |
| 358 |
'decoration' => '', |
| 359 |
), |
| 360 |
), |
| 361 |
), |
| 362 |
'postBadgesGlobalTypography' => array( |
| 363 |
'type' => 'object', |
| 364 |
'default' => array(), |
| 365 |
), |
| 366 |
'postBadgesFontSize' => $this->ranger_attribute( 12 ), |
| 367 |
'postBadgesLineHeight' => array( |
| 368 |
'type' => 'object', |
| 369 |
'default' => array( |
| 370 |
'device' => array( |
| 371 |
'Desktop' => 1.3, |
| 372 |
'Tablet' => 1.3, |
| 373 |
'Mobile' => 1.3, |
| 374 |
), |
| 375 |
), |
| 376 |
), |
| 377 |
'postBadgesLetterSpacing' => $this->ranger_attribute( '' ), |
| 378 |
'postBadgesWordSpacing' => $this->ranger_attribute( '' ), |
| 379 |
|
| 380 |
'postBadgesEffectColor' => array( |
| 381 |
'type' => 'string', |
| 382 |
'default' => '#FFFFFF', |
| 383 |
), |
| 384 |
'badgesLabelColor' => array( |
| 385 |
'type' => 'string', |
| 386 |
'default' => '#FFFFFF', |
| 387 |
), |
| 388 |
'badgesBgColor' => array( |
| 389 |
'type' => 'string', |
| 390 |
'default' => '#FF5B2E', |
| 391 |
), |
| 392 |
'badgesBorder' => array( |
| 393 |
'type' => 'object', |
| 394 |
'default' => array( |
| 395 |
'style' => 'solid', |
| 396 |
'color' => '#cccccc', |
| 397 |
), |
| 398 |
), |
| 399 |
'badgesBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 400 |
'badgesBorderRadius' => $this->spacing_attribute( 2, 2, 2, 2, 'px', true ), |
| 401 |
'badgesPadding' => $this->spacing_attribute( 4, 8, 4, 8, 'px', false ), |
| 402 |
); |
| 403 |
$shared_attributes = array( |
| 404 |
'liveFilterEnable' => array( |
| 405 |
'type' => 'boolean', |
| 406 |
'default' => false, |
| 407 |
), |
| 408 |
'alignment' => array( |
| 409 |
'type' => 'string', |
| 410 |
'default' => '', |
| 411 |
), |
| 412 |
'uniqueId' => array( 'type' => 'string' ), |
| 413 |
'spBlockId' => array( 'type' => 'string' ), |
| 414 |
'isPreview' => array( |
| 415 |
'type' => 'boolean', |
| 416 |
'default' => false, |
| 417 |
), |
| 418 |
'postQuery' => array( |
| 419 |
'type' => 'string', |
| 420 |
'default' => '', |
| 421 |
), |
| 422 |
'paginationUniqueId' => array( 'type' => 'string' ), |
| 423 |
'dynamicCss' => array( |
| 424 |
'type' => 'string', |
| 425 |
'default' => '', |
| 426 |
), |
| 427 |
'blockLocation' => array( |
| 428 |
'type' => 'string', |
| 429 |
'default' => '', |
| 430 |
), |
| 431 |
'fontLists' => array( |
| 432 |
'type' => 'string', |
| 433 |
'default' => '', |
| 434 |
), |
| 435 |
'fontListsEditPage' => array( |
| 436 |
'type' => 'string', |
| 437 |
'default' => '', |
| 438 |
), |
| 439 |
'blockName' => array( |
| 440 |
'type' => 'string', |
| 441 |
'default' => '', |
| 442 |
), |
| 443 |
'contentOrientation' => array( |
| 444 |
'type' => 'string', |
| 445 |
'default' => 'orientation_one', |
| 446 |
), |
| 447 |
'openedAccordion' => array( |
| 448 |
'type' => 'string', |
| 449 |
'default' => 'general', |
| 450 |
), |
| 451 |
'contentAlignment' => array( |
| 452 |
'type' => 'string', |
| 453 |
'default' => 'left', |
| 454 |
), |
| 455 |
'smallItemContentAlignment' => array( |
| 456 |
'type' => 'string', |
| 457 |
'default' => 'center', |
| 458 |
), |
| 459 |
'generalLinkOpen' => array( |
| 460 |
'type' => 'string', |
| 461 |
'default' => 'new-tab', |
| 462 |
), |
| 463 |
'preloaderEnable' => array( |
| 464 |
'type' => 'boolean', |
| 465 |
'default' => true, |
| 466 |
), |
| 467 |
'tabName' => array( |
| 468 |
'type' => 'string', |
| 469 |
'default' => 'general', |
| 470 |
), |
| 471 |
// 'itemsPerPage' => array( |
| 472 |
// 'type' => 'number', |
| 473 |
// 'default' => 6, |
| 474 |
// ), |
| 475 |
'keywordSearchIconSize' => $this->ranger_attribute( 24 ), |
| 476 |
'keywordSearchInputWidth' => array( |
| 477 |
'type' => 'object', |
| 478 |
'default' => array( |
| 479 |
'device' => array( |
| 480 |
'Desktop' => 33, |
| 481 |
'Tablet' => '', |
| 482 |
'Mobile' => '', |
| 483 |
), |
| 484 |
'unit' => array( |
| 485 |
'Desktop' => '%', |
| 486 |
'Tablet' => 'px', |
| 487 |
'Mobile' => 'px', |
| 488 |
), |
| 489 |
), |
| 490 |
), |
| 491 |
'keywordSearchInputHeight' => $this->ranger_attribute( 40 ), |
| 492 |
'showFeatureVideo' => array( |
| 493 |
'type' => 'boolean', |
| 494 |
'default' => false, |
| 495 |
), |
| 496 |
'showImageGallery' => array( |
| 497 |
'type' => 'boolean', |
| 498 |
'default' => false, |
| 499 |
), |
| 500 |
'imageGallerySource' => array( |
| 501 |
'type' => 'string', |
| 502 |
'default' => 'post_gallery', |
| 503 |
), |
| 504 |
'showImageGalleryNavArrow' => array( |
| 505 |
'type' => 'boolean', |
| 506 |
'default' => true, |
| 507 |
), |
| 508 |
'showImageGalleryNavArrowHover' => array( |
| 509 |
'type' => 'boolean', |
| 510 |
'default' => false, |
| 511 |
), |
| 512 |
'imageGalleryNavArrowStyle' => array( |
| 513 |
'type' => 'string', |
| 514 |
'default' => 'chevron-solid', |
| 515 |
), |
| 516 |
'imageGalleryNavArrowSize' => $this->ranger_attribute( 12 ), |
| 517 |
'imageFeaturedImg' => array( |
| 518 |
'type' => 'boolean', |
| 519 |
'default' => true, |
| 520 |
), |
| 521 |
'imageGalleryNavArrowColor' => array( |
| 522 |
'type' => 'object', |
| 523 |
'default' => array( |
| 524 |
'color' => '', |
| 525 |
'hoverColor' => '', |
| 526 |
), |
| 527 |
), |
| 528 |
'imageGalleryNavArrowBgColor' => array( |
| 529 |
'type' => 'object', |
| 530 |
'default' => array( |
| 531 |
'color' => '', |
| 532 |
'hoverColor' => '', |
| 533 |
), |
| 534 |
), |
| 535 |
'imageSize' => array( |
| 536 |
'type' => 'string', |
| 537 |
'default' => 'smart-post-landscape', |
| 538 |
), |
| 539 |
'imageWidth' => $this->ranger_attribute( '', '', '', '%' ), |
| 540 |
'imageHeight' => $this->ranger_attribute( '' ), |
| 541 |
'largeImageSize' => array( |
| 542 |
'type' => 'string', |
| 543 |
'default' => 'custom', |
| 544 |
), |
| 545 |
'largeImageWidth' => $this->ranger_attribute( 100, '', '', '%' ), |
| 546 |
'largeImageHeight' => array( |
| 547 |
'type' => 'object', |
| 548 |
'default' => array( |
| 549 |
'device' => array( |
| 550 |
'Desktop' => '', |
| 551 |
'Tablet' => '', |
| 552 |
'Mobile' => 210, |
| 553 |
), |
| 554 |
'unit' => array( |
| 555 |
'Desktop' => 'px', |
| 556 |
'Tablet' => '%', |
| 557 |
'Mobile' => 'px', |
| 558 |
), |
| 559 |
), |
| 560 |
), |
| 561 |
'imagePosition' => array( |
| 562 |
'type' => 'string', |
| 563 |
'default' => 'top', |
| 564 |
), |
| 565 |
'imageOverlayType' => array( |
| 566 |
'type' => 'string', |
| 567 |
'default' => 'full', |
| 568 |
), |
| 569 |
'imageOverlayColor' => array( |
| 570 |
'type' => 'string', |
| 571 |
'default' => 'no-overlay', |
| 572 |
), |
| 573 |
'imageOverlayCustomColor' => array( |
| 574 |
'type' => 'object', |
| 575 |
'default' => array( |
| 576 |
'color' => array( |
| 577 |
'style' => 'bgColor', |
| 578 |
'transparent' => '', |
| 579 |
'solidColor' => '#000000AD', |
| 580 |
'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 5%, rgba(144, 234, 228, 0.2) 100%)', |
| 581 |
), |
| 582 |
'hover' => array( |
| 583 |
'style' => 'bgColor', |
| 584 |
'transparent' => '', |
| 585 |
'solidColor' => '#000000AD', |
| 586 |
'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)', |
| 587 |
), |
| 588 |
), |
| 589 |
), |
| 590 |
'imageScale' => array( |
| 591 |
'type' => 'string', |
| 592 |
'default' => 'cover', |
| 593 |
), |
| 594 |
'imageFallbackReplace' => array( |
| 595 |
'type' => 'string', |
| 596 |
'default' => 'source', |
| 597 |
), |
| 598 |
'imageSrcset' => array( |
| 599 |
'type' => 'boolean', |
| 600 |
'default' => false, |
| 601 |
), |
| 602 |
'imageLazyLoad' => array( |
| 603 |
'type' => 'boolean', |
| 604 |
'default' => true, |
| 605 |
), |
| 606 |
'imageReplaceWith' => array( |
| 607 |
'type' => 'array', |
| 608 |
'default' => array(), |
| 609 |
), |
| 610 |
'toggleCustomFallbackBg' => array( |
| 611 |
'type' => 'string', |
| 612 |
'default' => 'img', |
| 613 |
), |
| 614 |
'imageHoverEffect' => array( |
| 615 |
'type' => 'string', |
| 616 |
'default' => 'zoom-in', |
| 617 |
), |
| 618 |
'imageOpacityEffect' => array( |
| 619 |
'type' => 'number', |
| 620 |
'default' => 1, |
| 621 |
), |
| 622 |
// 'imageMode' => array( |
| 623 |
// 'type' => 'string', |
| 624 |
// 'default' => 'original', |
| 625 |
// ), |
| 626 |
// 'imageGrayscaleHover' => array( |
| 627 |
// 'type' => 'boolean', |
| 628 |
// 'default' => false, |
| 629 |
// ), |
| 630 |
// 'imageNormalHover' => array( |
| 631 |
// 'type' => 'boolean', |
| 632 |
// 'default' => false, |
| 633 |
// ), |
| 634 |
'imageGrayscaleLevel' => array( |
| 635 |
'type' => 'object', |
| 636 |
'default' => array( |
| 637 |
'value' => 0, |
| 638 |
'unit' => '%', |
| 639 |
), |
| 640 |
), |
| 641 |
'imageGrayscaleLevelHover' => array( |
| 642 |
'type' => 'object', |
| 643 |
'default' => array( |
| 644 |
'value' => 0, |
| 645 |
'unit' => '%', |
| 646 |
), |
| 647 |
), |
| 648 |
'imageBlurEffect' => array( |
| 649 |
'type' => 'object', |
| 650 |
'default' => array( |
| 651 |
'value' => 0, |
| 652 |
'unit' => 'px', |
| 653 |
), |
| 654 |
), |
| 655 |
'imageBlurEffectHover' => array( |
| 656 |
'type' => 'object', |
| 657 |
'default' => array( |
| 658 |
'value' => 0, |
| 659 |
'unit' => 'px', |
| 660 |
), |
| 661 |
), |
| 662 |
'imageBrightness' => array( |
| 663 |
'type' => 'number', |
| 664 |
'default' => 1, |
| 665 |
), |
| 666 |
'imageBrightnessHover' => array( |
| 667 |
'type' => 'number', |
| 668 |
'default' => 1, |
| 669 |
), |
| 670 |
'imageRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 671 |
'imageSpace' => $this->ranger_attribute( 12, 12, 12, 'px' ), |
| 672 |
'imageReplaceWithCustomBg' => array( |
| 673 |
'type' => 'string', |
| 674 |
'default' => 'image', |
| 675 |
), |
| 676 |
'imageReplaceWithImage' => array( |
| 677 |
'type' => 'object', |
| 678 |
'default' => array(), |
| 679 |
), |
| 680 |
'imageReplaceWithVideo' => array( |
| 681 |
'type' => 'object', |
| 682 |
'default' => array(), |
| 683 |
), |
| 684 |
'metaAuthorShow' => array( |
| 685 |
'type' => 'boolean', |
| 686 |
'default' => true, |
| 687 |
), |
| 688 |
'metaAuthorStyle' => array( |
| 689 |
'type' => 'string', |
| 690 |
'default' => 'name_with_icon', |
| 691 |
), |
| 692 |
'metaUserIcon' => array( |
| 693 |
'type' => 'string', |
| 694 |
'default' => 'outline', |
| 695 |
), |
| 696 |
'metaDateShow' => array( |
| 697 |
'type' => 'boolean', |
| 698 |
'default' => true, |
| 699 |
), |
| 700 |
'metaDateFormat' => array( |
| 701 |
'type' => 'string', |
| 702 |
'default' => 'default', |
| 703 |
), |
| 704 |
'metaCommentCounter' => array( |
| 705 |
'type' => 'boolean', |
| 706 |
'default' => true, |
| 707 |
), |
| 708 |
'metaViewCount' => array( |
| 709 |
'type' => 'boolean', |
| 710 |
'default' => true, |
| 711 |
), |
| 712 |
'metaLike' => array( |
| 713 |
'type' => 'boolean', |
| 714 |
'default' => true, |
| 715 |
), |
| 716 |
'metaReadingTime' => array( |
| 717 |
'type' => 'boolean', |
| 718 |
'default' => true, |
| 719 |
), |
| 720 |
'metaPerMin' => array( |
| 721 |
'type' => 'object', |
| 722 |
'default' => array( |
| 723 |
'value' => 100, |
| 724 |
'unit' => 'words', |
| 725 |
), |
| 726 |
), |
| 727 |
'metaReadingTimePostfix' => array( |
| 728 |
'type' => 'string', |
| 729 |
'default' => 'Read', |
| 730 |
), |
| 731 |
'metaTypography' => array( |
| 732 |
'type' => 'object', |
| 733 |
'default' => array( |
| 734 |
'googleFont' => array( |
| 735 |
'family' => 'Default', |
| 736 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 737 |
), |
| 738 |
'typography' => array( |
| 739 |
'family' => '', |
| 740 |
'fontWeight' => '', |
| 741 |
'style' => '', |
| 742 |
'transform' => '', |
| 743 |
'decoration' => '', |
| 744 |
), |
| 745 |
), |
| 746 |
), |
| 747 |
'metaGlobalTypography' => array( |
| 748 |
'type' => 'object', |
| 749 |
'default' => array(), |
| 750 |
), |
| 751 |
'metaFontSize' => $this->ranger_attribute( '' ), |
| 752 |
'metaFontSpacing' => $this->ranger_attribute( '' ), |
| 753 |
'metaWordSpacing' => $this->ranger_attribute( '' ), |
| 754 |
'metaLineHeight' => array( |
| 755 |
'type' => 'object', |
| 756 |
'default' => array( |
| 757 |
'device' => array( |
| 758 |
'Desktop' => '', |
| 759 |
'Tablet' => '', |
| 760 |
'Mobile' => '', |
| 761 |
), |
| 762 |
// 'unit' => array( |
| 763 |
// 'Desktop' => 'px', |
| 764 |
// 'Tablet' => 'px', |
| 765 |
// 'Mobile' => 'px', |
| 766 |
// ), |
| 767 |
), |
| 768 |
), |
| 769 |
'metaLargeTypography' => array( |
| 770 |
'type' => 'object', |
| 771 |
'default' => array( |
| 772 |
'googleFont' => array( |
| 773 |
'family' => 'Default', |
| 774 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 775 |
), |
| 776 |
'typography' => array( |
| 777 |
'family' => '', |
| 778 |
'fontWeight' => '', |
| 779 |
'style' => '', |
| 780 |
'transform' => '', |
| 781 |
'decoration' => '', |
| 782 |
), |
| 783 |
), |
| 784 |
), |
| 785 |
'metaLargeFontSize' => $this->ranger_attribute( 14 ), |
| 786 |
'metaLargeFontSpacing' => $this->ranger_attribute( '' ), |
| 787 |
'metaLargeWordSpacing' => $this->ranger_attribute( '' ), |
| 788 |
'metaLargeLineHeight' => array( |
| 789 |
'type' => 'object', |
| 790 |
'default' => array( |
| 791 |
'device' => array( |
| 792 |
'Desktop' => '', |
| 793 |
'Tablet' => '', |
| 794 |
'Mobile' => '', |
| 795 |
), |
| 796 |
// 'unit' => array( |
| 797 |
// 'Desktop' => 'px', |
| 798 |
// 'Tablet' => 'px', |
| 799 |
// 'Mobile' => 'px', |
| 800 |
// ), |
| 801 |
), |
| 802 |
), |
| 803 |
'advancedBg' => array( |
| 804 |
'type' => 'object', |
| 805 |
'default' => array( |
| 806 |
'color' => array( |
| 807 |
'style' => 'transparent', |
| 808 |
'transparent' => '', |
| 809 |
'solidColor' => '#E9F4FFF2', |
| 810 |
'gradient' => 'linear-gradient(135deg,rgba(179,50,95,0.44) 0%,rgba(227,86,43,0.45) 100%)', |
| 811 |
), |
| 812 |
'hover' => array( |
| 813 |
'style' => 'bgColor', |
| 814 |
'transparent' => '', |
| 815 |
'solidColor' => '', |
| 816 |
'gradient' => 'linear-gradient(135deg,rgba(179,50,95,0.44) 0%,rgba(227,86,43,0.45) 100%)', |
| 817 |
), |
| 818 |
), |
| 819 |
), |
| 820 |
'metaColors' => array( |
| 821 |
'type' => 'object', |
| 822 |
'default' => array( |
| 823 |
'color' => '', |
| 824 |
'hoverColor' => '', |
| 825 |
), |
| 826 |
), |
| 827 |
'largeMetaColors' => array( |
| 828 |
'type' => 'object', |
| 829 |
'default' => array( |
| 830 |
'color' => '#d5d5d5', |
| 831 |
'hoverColor' => 'var(--smart-post-secondary)', |
| 832 |
), |
| 833 |
), |
| 834 |
'metaSeparator' => array( |
| 835 |
'type' => 'string', |
| 836 |
'default' => 'normal-space', |
| 837 |
), |
| 838 |
'metaSeparatorColor' => array( |
| 839 |
'type' => 'string', |
| 840 |
'default' => '', |
| 841 |
), |
| 842 |
'metaSpaceBetween' => array( |
| 843 |
'type' => 'number', |
| 844 |
'default' => array( 'value' => 12 ), |
| 845 |
), |
| 846 |
'metaRowGap' => array( |
| 847 |
'type' => 'number', |
| 848 |
'default' => array( 'value' => 4 ), |
| 849 |
), |
| 850 |
'metadataMargin' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 851 |
'excerptShow' => array( |
| 852 |
'type' => 'boolean', |
| 853 |
'default' => false, |
| 854 |
), |
| 855 |
'seoMetaShow' => array( |
| 856 |
'type' => 'boolean', |
| 857 |
'default' => false, |
| 858 |
), |
| 859 |
'activeSeoPlugin' => array( |
| 860 |
'type' => 'string', |
| 861 |
'default' => '', |
| 862 |
), |
| 863 |
'excerptType' => array( |
| 864 |
'type' => 'string', |
| 865 |
'default' => 'limited', |
| 866 |
), |
| 867 |
'excerptLength' => array( |
| 868 |
'type' => 'object', |
| 869 |
'default' => array( |
| 870 |
'value' => 14, |
| 871 |
'unit' => 'words', |
| 872 |
), |
| 873 |
), |
| 874 |
'ellipsisPointsEndingExcerpt' => array( |
| 875 |
'type' => 'string', |
| 876 |
'default' => '...', |
| 877 |
), |
| 878 |
'excerptTypography' => array( |
| 879 |
'type' => 'object', |
| 880 |
'default' => array( |
| 881 |
'googleFont' => array( |
| 882 |
'family' => 'Default', |
| 883 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 884 |
), |
| 885 |
'typography' => array( |
| 886 |
'family' => '', |
| 887 |
'fontWeight' => '', |
| 888 |
'style' => '', |
| 889 |
'transform' => '', |
| 890 |
'decoration' => '', |
| 891 |
), |
| 892 |
), |
| 893 |
), |
| 894 |
'excerptGlobalTypography' => array( |
| 895 |
'type' => 'object', |
| 896 |
'default' => array(), |
| 897 |
), |
| 898 |
'excerptFontSize' => $this->ranger_attribute( '' ), |
| 899 |
'excerptFontSpacing' => $this->ranger_attribute( '' ), |
| 900 |
'excerptWordSpacing' => $this->ranger_attribute( '' ), |
| 901 |
'excerptLineHeight' => array( |
| 902 |
'type' => 'object', |
| 903 |
'default' => array( |
| 904 |
'device' => array( |
| 905 |
'Desktop' => '', |
| 906 |
'Tablet' => '', |
| 907 |
'Mobile' => '', |
| 908 |
), |
| 909 |
// 'unit' => array( |
| 910 |
// 'Desktop' => 'px', |
| 911 |
// 'Tablet' => 'px', |
| 912 |
// 'Mobile' => 'px', |
| 913 |
// ), |
| 914 |
'allChange' => true, |
| 915 |
), |
| 916 |
), |
| 917 |
'excerptColor' => array( |
| 918 |
'type' => 'object', |
| 919 |
'default' => array( |
| 920 |
'color' => '', |
| 921 |
'hoverColor' => '', |
| 922 |
), |
| 923 |
), |
| 924 |
'largeExcerptColor' => array( |
| 925 |
'type' => 'object', |
| 926 |
'default' => array( |
| 927 |
'color' => '', |
| 928 |
'hoverColor' => '', |
| 929 |
), |
| 930 |
), |
| 931 |
'excerptMargin' => array( |
| 932 |
'type' => 'object', |
| 933 |
'default' => array( |
| 934 |
'device' => array( |
| 935 |
'Desktop' => array( |
| 936 |
'top' => '', |
| 937 |
'right' => '', |
| 938 |
'bottom' => '', |
| 939 |
'left' => '', |
| 940 |
), |
| 941 |
'Tablet' => array( |
| 942 |
'top' => '', |
| 943 |
'right' => '', |
| 944 |
'bottom' => '', |
| 945 |
'left' => '', |
| 946 |
), |
| 947 |
'Mobile' => array( |
| 948 |
'top' => '', |
| 949 |
'right' => '', |
| 950 |
'bottom' => '', |
| 951 |
'left' => '', |
| 952 |
), |
| 953 |
), |
| 954 |
'unit' => array( |
| 955 |
'Desktop' => 'px', |
| 956 |
'Tablet' => 'px', |
| 957 |
'Mobile' => 'px', |
| 958 |
), |
| 959 |
'allChange' => false, |
| 960 |
), |
| 961 |
), |
| 962 |
'displayAdvertisement' => array( |
| 963 |
'type' => 'boolean', |
| 964 |
'default' => false, |
| 965 |
), |
| 966 |
'advertisementPosition' => array( |
| 967 |
'type' => 'string', |
| 968 |
'default' => 'random', |
| 969 |
), |
| 970 |
'repeatAdvertisement' => array( |
| 971 |
'type' => 'object', |
| 972 |
'default' => array( 'value' => 1 ), |
| 973 |
), |
| 974 |
'adContents' => array( |
| 975 |
'type' => 'array', |
| 976 |
'default' => array(), |
| 977 |
), |
| 978 |
'advertisementPositionNumber' => array( 'type' => 'number' ), |
| 979 |
'showReadMoreButton' => array( |
| 980 |
'type' => 'boolean', |
| 981 |
'default' => false, |
| 982 |
), |
| 983 |
'readMoreButtonLabel' => array( |
| 984 |
'type' => 'string', |
| 985 |
'default' => 'Read More', |
| 986 |
), |
| 987 |
'readMoreButtonTypography' => array( |
| 988 |
'type' => 'object', |
| 989 |
'default' => array( |
| 990 |
'googleFont' => array( |
| 991 |
'family' => 'Default', |
| 992 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 993 |
), |
| 994 |
'typography' => array( |
| 995 |
'family' => '', |
| 996 |
'fontWeight' => '', |
| 997 |
'style' => '', |
| 998 |
'transform' => '', |
| 999 |
'decoration' => '', |
| 1000 |
), |
| 1001 |
), |
| 1002 |
), |
| 1003 |
'readMoreButtonGlobalTypography' => array( |
| 1004 |
'type' => 'object', |
| 1005 |
'default' => array(), |
| 1006 |
), |
| 1007 |
'readMoreButtonFontSize' => $this->ranger_attribute( '' ), |
| 1008 |
'readMoreButtonFontSpacing' => $this->ranger_attribute( '' ), |
| 1009 |
'readMoreButtonWordSpacing' => $this->ranger_attribute( '' ), |
| 1010 |
'readMoreButtonLineHeight' => array( |
| 1011 |
'type' => 'object', |
| 1012 |
'default' => array( |
| 1013 |
'device' => array( |
| 1014 |
'Desktop' => '', |
| 1015 |
'Tablet' => '', |
| 1016 |
'Mobile' => '', |
| 1017 |
), |
| 1018 |
// 'unit' => array( |
| 1019 |
// 'Desktop' => 'px', |
| 1020 |
// 'Tablet' => 'px', |
| 1021 |
// 'Mobile' => 'px', |
| 1022 |
// ), |
| 1023 |
), |
| 1024 |
), |
| 1025 |
'readMoreIocVisibility' => array( |
| 1026 |
'type' => 'string', |
| 1027 |
'default' => 'none', |
| 1028 |
), |
| 1029 |
'readMoreIconStyle' => array( |
| 1030 |
'type' => 'string', |
| 1031 |
'default' => 'right-open', |
| 1032 |
), |
| 1033 |
'readMoreIconGap' => $this->ranger_attribute( 4, 4, 4 ), |
| 1034 |
'readMoreColor' => array( |
| 1035 |
'type' => 'object', |
| 1036 |
'default' => array( |
| 1037 |
'color' => '', |
| 1038 |
'hoverColor' => '', |
| 1039 |
), |
| 1040 |
), |
| 1041 |
'largeItemReadMoreColor' => array( |
| 1042 |
'type' => 'object', |
| 1043 |
'default' => array( |
| 1044 |
'color' => '', |
| 1045 |
'hoverColor' => '', |
| 1046 |
), |
| 1047 |
), |
| 1048 |
'readMoreBg' => array( |
| 1049 |
'type' => 'object', |
| 1050 |
'default' => array( |
| 1051 |
'color' => array( |
| 1052 |
'style' => '', |
| 1053 |
'transparent' => '', |
| 1054 |
'solidColor' => '', |
| 1055 |
'gradient' => 'linear-gradient(135deg,rgb(6,147,227) 0%,rgb(133,49,213) 100%)', |
| 1056 |
), |
| 1057 |
'hover' => array( |
| 1058 |
'style' => 'bgColor', |
| 1059 |
'transparent' => '', |
| 1060 |
'solidColor' => '', |
| 1061 |
'gradient' => 'linear-gradient(135deg,rgb(6,147,227) 0%,rgb(133,49,213) 100%)', |
| 1062 |
), |
| 1063 |
), |
| 1064 |
), |
| 1065 |
'largeItemReadMoreBg' => array( |
| 1066 |
'type' => 'object', |
| 1067 |
'default' => array( |
| 1068 |
'color' => array( |
| 1069 |
'style' => 'bgColor', |
| 1070 |
'transparent' => '', |
| 1071 |
'solidColor' => '#FFFFFF', |
| 1072 |
'gradient' => 'linear-gradient(135deg,rgb(6,147,227) 0%,rgb(133,49,213) 100%)', |
| 1073 |
), |
| 1074 |
'hover' => array( |
| 1075 |
'style' => 'bgColor', |
| 1076 |
'transparent' => '', |
| 1077 |
'solidColor' => 'var(--smart-post-secondary)', |
| 1078 |
'gradient' => 'linear-gradient(135deg,rgb(6,147,227) 0%,rgb(133,49,213) 100%)', |
| 1079 |
), |
| 1080 |
), |
| 1081 |
), |
| 1082 |
'readMoreButtonPadding' => $this->spacing_attribute( '', '', '', '', 'px', false ), |
| 1083 |
'readMoreButtonMargin' => $this->spacing_attribute( '', '', '', '', 'px', false ), |
| 1084 |
'readMoreButtonBorder' => array( |
| 1085 |
'type' => 'object', |
| 1086 |
'default' => array( |
| 1087 |
'style' => '', |
| 1088 |
'hoverStyle' => '', |
| 1089 |
'color' => '', |
| 1090 |
'hoverColor' => '', |
| 1091 |
), |
| 1092 |
), |
| 1093 |
'readMoreButtonBorderWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 1094 |
'readMoreButtonBorderWidthHover' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 1095 |
'largeItemReadMoreButtonBorder' => array( |
| 1096 |
'type' => 'object', |
| 1097 |
'default' => array( |
| 1098 |
'style' => '', |
| 1099 |
'color' => '', |
| 1100 |
'hoverColor' => '', |
| 1101 |
), |
| 1102 |
), |
| 1103 |
'largeItemReadMoreButtonBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 1104 |
'readMoreButtonBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 1105 |
'readMoreButtonBorderRadiusHover' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 1106 |
'socialShareEnableSocial' => array( |
| 1107 |
'type' => 'boolean', |
| 1108 |
'default' => false, |
| 1109 |
), |
| 1110 |
'socialSharingMedia' => array( |
| 1111 |
'type' => 'array', |
| 1112 |
'default' => array( |
| 1113 |
array( |
| 1114 |
'id' => 1, |
| 1115 |
'label' => 'Facebook', |
| 1116 |
'value' => 'facebook', |
| 1117 |
), |
| 1118 |
array( |
| 1119 |
'id' => 2, |
| 1120 |
'label' => 'X', |
| 1121 |
'value' => 'x', |
| 1122 |
), |
| 1123 |
array( |
| 1124 |
'id' => 3, |
| 1125 |
'label' => 'LinkedIn', |
| 1126 |
'value' => 'linkedin', |
| 1127 |
), |
| 1128 |
), |
| 1129 |
), |
| 1130 |
'socialShareIconSize' => array( |
| 1131 |
'type' => 'object', |
| 1132 |
'default' => array( |
| 1133 |
'value' => 16, |
| 1134 |
'unit' => 'px', |
| 1135 |
), |
| 1136 |
), |
| 1137 |
'socialShareIconType' => array( |
| 1138 |
'type' => 'string', |
| 1139 |
'default' => 'original', |
| 1140 |
), |
| 1141 |
'socialIconOnly' => array( |
| 1142 |
'type' => 'boolean', |
| 1143 |
'default' => false, |
| 1144 |
), |
| 1145 |
'socialShareCustomColor' => array( |
| 1146 |
'type' => 'object', |
| 1147 |
'default' => array( |
| 1148 |
'color' => '#FFFFFF', |
| 1149 |
'hoverColor' => '', |
| 1150 |
), |
| 1151 |
), |
| 1152 |
'socialShareCustomBgColor' => array( |
| 1153 |
'type' => 'object', |
| 1154 |
'default' => array( |
| 1155 |
'color' => '#4e4f52', |
| 1156 |
'hoverColor' => 'var(--smart-post-secondary)', |
| 1157 |
), |
| 1158 |
), |
| 1159 |
'socialShareBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 1160 |
'socialShareBorder' => array( |
| 1161 |
'type' => 'object', |
| 1162 |
'default' => array( |
| 1163 |
'color' => '#4e4f52', |
| 1164 |
'style' => 'none', |
| 1165 |
'hoverColor' => '#4e4f52', |
| 1166 |
), |
| 1167 |
), |
| 1168 |
'socialShareBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 1169 |
'socialShareSpaceBetween' => array( |
| 1170 |
'type' => 'object', |
| 1171 |
'default' => array( |
| 1172 |
'value' => 8, |
| 1173 |
'unit' => 'px', |
| 1174 |
), |
| 1175 |
), |
| 1176 |
'socialShareMargin' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 1177 |
'postType' => array( |
| 1178 |
'type' => 'string', |
| 1179 |
'default' => 'multiple_post_type', |
| 1180 |
), |
| 1181 |
'multiplePostType' => array( |
| 1182 |
'type' => 'array', |
| 1183 |
'default' => array( |
| 1184 |
array( |
| 1185 |
'id' => 1, |
| 1186 |
'label' => 'Posts', |
| 1187 |
'value' => 'post', |
| 1188 |
), |
| 1189 |
), |
| 1190 |
), |
| 1191 |
'filterProduct' => array( |
| 1192 |
'type' => 'string', |
| 1193 |
'default' => 'recent', |
| 1194 |
), |
| 1195 |
'quickQuery' => array( |
| 1196 |
'type' => 'string', |
| 1197 |
'default' => '', |
| 1198 |
), |
| 1199 |
'taxonomyType' => array( |
| 1200 |
'type' => 'string', |
| 1201 |
'default' => '', |
| 1202 |
), |
| 1203 |
'filterByAuthor' => array( |
| 1204 |
'type' => 'array', |
| 1205 |
'default' => array(), |
| 1206 |
), |
| 1207 |
'filterByDate' => array( |
| 1208 |
'type' => 'string', |
| 1209 |
'default' => '', |
| 1210 |
), |
| 1211 |
'specificDate' => array( |
| 1212 |
'type' => 'string', |
| 1213 |
'default' => wp_date( 'Y-m-d H:i:s' ), |
| 1214 |
), |
| 1215 |
'specificMonth' => array( |
| 1216 |
'type' => 'string', |
| 1217 |
'default' => '1', |
| 1218 |
), |
| 1219 |
'specificYear' => array( |
| 1220 |
'type' => 'string', |
| 1221 |
'default' => '2024', |
| 1222 |
), |
| 1223 |
'specificPeriodAfter' => array( |
| 1224 |
'type' => 'string', |
| 1225 |
'default' => wp_date( 'Y-m-d H:i:s' ), |
| 1226 |
), |
| 1227 |
'specificPeriodBefore' => array( |
| 1228 |
'type' => 'string', |
| 1229 |
'default' => wp_date( 'Y-m-d H:i:s' ), |
| 1230 |
), |
| 1231 |
'specificDateBefore' => array( |
| 1232 |
'type' => 'string', |
| 1233 |
'default' => wp_date( 'Y-m-d H:i:s' ), |
| 1234 |
), |
| 1235 |
'specificDateAfter' => array( |
| 1236 |
'type' => 'string', |
| 1237 |
'default' => wp_date( 'Y-m-d H:i:s' ), |
| 1238 |
), |
| 1239 |
'excludeDateBefore' => array( |
| 1240 |
'type' => 'string', |
| 1241 |
'default' => wp_date( 'Y-m-d H:i:s' ), |
| 1242 |
), |
| 1243 |
'excludeDateAfter' => array( |
| 1244 |
'type' => 'string', |
| 1245 |
'default' => wp_date( 'Y-m-d H:i:s' ), |
| 1246 |
), |
| 1247 |
'filterByKeyword' => array( |
| 1248 |
'type' => 'string', |
| 1249 |
'default' => '', |
| 1250 |
), |
| 1251 |
'taxonomies' => array( |
| 1252 |
'type' => 'array', |
| 1253 |
'default' => array( |
| 1254 |
array( |
| 1255 |
'id' => 1, |
| 1256 |
'type' => '', |
| 1257 |
'value' => array(), |
| 1258 |
'operator' => 'IN', |
| 1259 |
'initialOpen' => true, |
| 1260 |
), |
| 1261 |
), |
| 1262 |
), |
| 1263 |
'relation' => array( |
| 1264 |
'type' => 'string', |
| 1265 |
'default' => 'AND', |
| 1266 |
), |
| 1267 |
'customFieldRelation' => array( |
| 1268 |
'type' => 'string', |
| 1269 |
'default' => 'AND', |
| 1270 |
), |
| 1271 |
'filterByCustomFields' => array( |
| 1272 |
'type' => 'array', |
| 1273 |
'default' => array(), |
| 1274 |
), |
| 1275 |
'orderBy' => array( |
| 1276 |
'type' => 'string', |
| 1277 |
'default' => 'date', |
| 1278 |
), |
| 1279 |
'orderDirection' => array( |
| 1280 |
'type' => 'string', |
| 1281 |
'default' => 'DESC', |
| 1282 |
), |
| 1283 |
'includeOnlyPost' => array( |
| 1284 |
'type' => 'array', |
| 1285 |
'default' => array(), |
| 1286 |
), |
| 1287 |
'excludePost' => array( |
| 1288 |
'type' => 'array', |
| 1289 |
'default' => array(), |
| 1290 |
), |
| 1291 |
'excludeTerm' => array( |
| 1292 |
'type' => 'array', |
| 1293 |
'default' => array(), |
| 1294 |
), |
| 1295 |
'excludeAuthor' => array( |
| 1296 |
'type' => 'array', |
| 1297 |
'default' => array(), |
| 1298 |
), |
| 1299 |
'excludeStickyPosts' => array( |
| 1300 |
'type' => 'boolean', |
| 1301 |
'default' => false, |
| 1302 |
), |
| 1303 |
'excludeCurrentPosts' => array( |
| 1304 |
'type' => 'boolean', |
| 1305 |
'default' => true, |
| 1306 |
), |
| 1307 |
'excludeProtectedPosts' => array( |
| 1308 |
'type' => 'boolean', |
| 1309 |
'default' => false, |
| 1310 |
), |
| 1311 |
'excludeChildrenPosts' => array( |
| 1312 |
'type' => 'boolean', |
| 1313 |
'default' => false, |
| 1314 |
), |
| 1315 |
'excludePostWithoutImagePosts' => array( |
| 1316 |
'type' => 'boolean', |
| 1317 |
'default' => false, |
| 1318 |
), |
| 1319 |
'offset' => array( |
| 1320 |
'type' => 'number', |
| 1321 |
'default' => 0, |
| 1322 |
), |
| 1323 |
'postLimit' => array( |
| 1324 |
'type' => 'string', |
| 1325 |
'default' => '8', |
| 1326 |
), |
| 1327 |
'noResultFoundResult' => array( |
| 1328 |
'type' => 'string', |
| 1329 |
'default' => 'No post found', |
| 1330 |
), |
| 1331 |
'liveSearchText' => array( |
| 1332 |
'type' => 'string', |
| 1333 |
'default' => '', |
| 1334 |
), |
| 1335 |
'catTabCategoryEnable' => array( |
| 1336 |
'type' => 'boolean', |
| 1337 |
'default' => true, |
| 1338 |
), |
| 1339 |
'catTabCategoryType' => array( |
| 1340 |
'type' => 'string', |
| 1341 |
'default' => 'category', |
| 1342 |
), |
| 1343 |
'catTabCategoryPosition' => array( |
| 1344 |
'type' => 'string', |
| 1345 |
'default' => '', |
| 1346 |
), |
| 1347 |
'catTabCategoryTypography' => array( |
| 1348 |
'type' => 'object', |
| 1349 |
'default' => array( |
| 1350 |
'googleFont' => array( |
| 1351 |
'family' => 'Default', |
| 1352 |
'variants' => array( '300', '400', '500', '600', '700', '800', '900' ), |
| 1353 |
), |
| 1354 |
'typography' => array( |
| 1355 |
'family' => '', |
| 1356 |
'fontWeight' => '', |
| 1357 |
'style' => '', |
| 1358 |
'transform' => '', |
| 1359 |
'decoration' => '', |
| 1360 |
), |
| 1361 |
), |
| 1362 |
), |
| 1363 |
'catTabCategoryGlobalTypography' => array( |
| 1364 |
'type' => 'object', |
| 1365 |
'default' => array(), |
| 1366 |
), |
| 1367 |
'catTabCategoryFontSize' => $this->ranger_attribute( '' ), |
| 1368 |
'catTabCategoryLetterSpacing' => $this->ranger_attribute( '' ), |
| 1369 |
'catTabCategoryWordSpacing' => $this->ranger_attribute( '' ), |
| 1370 |
'catTabCategoryLineHeight' => array( |
| 1371 |
'type' => 'object', |
| 1372 |
'default' => array( |
| 1373 |
'device' => array( |
| 1374 |
'Desktop' => '', |
| 1375 |
'Tablet' => '', |
| 1376 |
'Mobile' => '', |
| 1377 |
), |
| 1378 |
// 'unit' => array( |
| 1379 |
// 'Desktop' => 'px', |
| 1380 |
// 'Tablet' => 'px', |
| 1381 |
// 'Mobile' => 'px', |
| 1382 |
// ), |
| 1383 |
), |
| 1384 |
), |
| 1385 |
'catTabCategoryColor' => array( |
| 1386 |
'type' => 'object', |
| 1387 |
'default' => array( |
| 1388 |
'color' => '', |
| 1389 |
'hoverColor' => '', |
| 1390 |
), |
| 1391 |
), |
| 1392 |
'catTabCategoryBg' => array( |
| 1393 |
'type' => 'object', |
| 1394 |
'default' => array( |
| 1395 |
'color' => array( |
| 1396 |
'style' => 'bgColor', |
| 1397 |
'transparent' => '', |
| 1398 |
'solidColor' => '', |
| 1399 |
'gradient' => 'linear-gradient(135deg,rgb(181, 51, 97) 0%,rgb(226, 87, 44) 100%)', |
| 1400 |
), |
| 1401 |
'hover' => array( |
| 1402 |
'style' => 'bgColor', |
| 1403 |
'transparent' => '', |
| 1404 |
'solidColor' => '', |
| 1405 |
'gradient' => 'linear-gradient(135deg,rgb(181, 51, 97) 0%,rgb(226, 87, 44) 56.02%)', |
| 1406 |
), |
| 1407 |
), |
| 1408 |
), |
| 1409 |
'catTabCategoryBorder' => array( |
| 1410 |
'type' => 'object', |
| 1411 |
'default' => array( |
| 1412 |
'style' => '', |
| 1413 |
'hoverStyle' => '', |
| 1414 |
'color' => '', |
| 1415 |
'hoverColor' => '', |
| 1416 |
), |
| 1417 |
), |
| 1418 |
'catTabCategoryBorderWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 1419 |
'catTabCategoryBorderWidthHover' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 1420 |
'catTabCategoryBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 1421 |
// 'catTabCategoryBorderRadius' => array( |
| 1422 |
// 'type' => 'object', |
| 1423 |
// 'default' => array( |
| 1424 |
// 'top' => 0, |
| 1425 |
// 'bottom' => 0, |
| 1426 |
// 'right' => 0, |
| 1427 |
// 'left' => 0, |
| 1428 |
// 'unit' => 'px', |
| 1429 |
// 'allChange' => true, |
| 1430 |
// ), |
| 1431 |
// ), |
| 1432 |
'catTabCategoryBorderRadiusHover' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 1433 |
// 'catTabCategoryBorderRadiusHover' => array( |
| 1434 |
// 'type' => 'object', |
| 1435 |
// 'default' => array( |
| 1436 |
// 'top' => 0, |
| 1437 |
// 'bottom' => 0, |
| 1438 |
// 'right' => 0, |
| 1439 |
// 'left' => 0, |
| 1440 |
// 'unit' => 'px', |
| 1441 |
// 'allChange' => true, |
| 1442 |
// ), |
| 1443 |
// ), |
| 1444 |
'catTabCategorySpaceBetween' => array( |
| 1445 |
'type' => 'object', |
| 1446 |
'default' => array( |
| 1447 |
'value' => 4, |
| 1448 |
'unit' => 'px', |
| 1449 |
), |
| 1450 |
), |
| 1451 |
'catTabCategoryPadding' => $this->spacing_attribute( '', '', '', '', 'px', false ), |
| 1452 |
'catTabCategoryMargin' => $this->spacing_attribute(), |
| 1453 |
'imageBorder' => array( |
| 1454 |
'type' => 'object', |
| 1455 |
'default' => array( |
| 1456 |
'style' => 'none', |
| 1457 |
'color' => '#4E4F52', |
| 1458 |
'hoverColor' => '#4E4F52', |
| 1459 |
), |
| 1460 |
), |
| 1461 |
'imageBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 1462 |
'metaDateCustomDateFormat' => array( |
| 1463 |
'type' => 'string', |
| 1464 |
'default' => 'F j, Y', |
| 1465 |
), |
| 1466 |
'dynamicClassNames' => array( |
| 1467 |
'type' => 'object', |
| 1468 |
'default' => array(), |
| 1469 |
), |
| 1470 |
'hideOnDesktop' => array( |
| 1471 |
'type' => 'boolean', |
| 1472 |
'default' => false, |
| 1473 |
), |
| 1474 |
'hideOnTablet' => array( |
| 1475 |
'type' => 'boolean', |
| 1476 |
'default' => false, |
| 1477 |
), |
| 1478 |
'hideOnMobile' => array( |
| 1479 |
'type' => 'boolean', |
| 1480 |
'default' => false, |
| 1481 |
), |
| 1482 |
'equalHeightEnable' => array( |
| 1483 |
'type' => 'boolean', |
| 1484 |
'default' => false, |
| 1485 |
), |
| 1486 |
'advancedBorderStyle' => array( |
| 1487 |
'type' => 'object', |
| 1488 |
'default' => array( |
| 1489 |
'style' => 'none', |
| 1490 |
'hoverStyle' => '', |
| 1491 |
'color' => '#cccccc', |
| 1492 |
'hoverColor' => '#000000', |
| 1493 |
), |
| 1494 |
), |
| 1495 |
'advancedBorderStyleWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 1496 |
'advancedBorderStyleWidthHover' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 1497 |
'advancedBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 1498 |
'advancedBorderRadiusHover' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 1499 |
'advancedMargin' => $this->spacing_attribute( 8, 0, 8, 0, 'px', false ), |
| 1500 |
'advancedPadding' => $this->spacing_attribute( '', '', '', '', 'px', false ), |
| 1501 |
'advancedBoxShadowEnable' => array( |
| 1502 |
'type' => 'boolean', |
| 1503 |
'default' => false, |
| 1504 |
), |
| 1505 |
'advancedBoxShadow' => array( |
| 1506 |
'type' => 'object', |
| 1507 |
'default' => array( |
| 1508 |
'device' => array( |
| 1509 |
'Desktop' => array( |
| 1510 |
'top' => 8, |
| 1511 |
'right' => 8, |
| 1512 |
'bottom' => 16, |
| 1513 |
'left' => 0, |
| 1514 |
), |
| 1515 |
'Tablet' => array( |
| 1516 |
'top' => '', |
| 1517 |
'right' => '', |
| 1518 |
'bottom' => '', |
| 1519 |
'left' => '', |
| 1520 |
), |
| 1521 |
'Mobile' => array( |
| 1522 |
'top' => '', |
| 1523 |
'right' => '', |
| 1524 |
'bottom' => '', |
| 1525 |
'left' => '', |
| 1526 |
), |
| 1527 |
), |
| 1528 |
'unit' => array( |
| 1529 |
'Desktop' => 'outset', |
| 1530 |
'Tablet' => 'outset', |
| 1531 |
'Mobile' => 'outset', |
| 1532 |
), |
| 1533 |
'color' => '#4E4F521A', |
| 1534 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 1535 |
), |
| 1536 |
), |
| 1537 |
'popupImageSize' => array( |
| 1538 |
'type' => 'string', |
| 1539 |
'default' => 'large', |
| 1540 |
), |
| 1541 |
'popupImageWidth' => $this->ranger_attribute( 500, '', '', 'px' ), |
| 1542 |
'popupImageHeight' => array( |
| 1543 |
'type' => 'object', |
| 1544 |
'default' => array( |
| 1545 |
'device' => array( |
| 1546 |
'Desktop' => 500, |
| 1547 |
'Tablet' => '', |
| 1548 |
'Mobile' => '', |
| 1549 |
), |
| 1550 |
'unit' => array( |
| 1551 |
'Desktop' => 'px', |
| 1552 |
'Tablet' => '%', |
| 1553 |
'Mobile' => '%', |
| 1554 |
), |
| 1555 |
), |
| 1556 |
), |
| 1557 |
'popupCloseBtnEnable' => array( |
| 1558 |
'type' => 'boolean', |
| 1559 |
'default' => true, |
| 1560 |
), |
| 1561 |
'popupCloseBtnSize' => $this->ranger_attribute( 18 ), |
| 1562 |
'popupMaxWidth' => array( |
| 1563 |
'type' => 'object', |
| 1564 |
'default' => array( |
| 1565 |
'value' => 1050, |
| 1566 |
'unit' => 'px', |
| 1567 |
), |
| 1568 |
), |
| 1569 |
'popupMaxHeight' => array( |
| 1570 |
'type' => 'object', |
| 1571 |
'default' => array( |
| 1572 |
'value' => 700, |
| 1573 |
'unit' => 'px', |
| 1574 |
), |
| 1575 |
), |
| 1576 |
'popupTitleColor' => array( |
| 1577 |
'type' => 'string', |
| 1578 |
'default' => '#000', |
| 1579 |
), |
| 1580 |
'popupMetaFieldsColor' => array( |
| 1581 |
'type' => 'string', |
| 1582 |
'default' => '#575757', |
| 1583 |
), |
| 1584 |
'popupExcerptColor' => array( |
| 1585 |
'type' => 'string', |
| 1586 |
'default' => '#000', |
| 1587 |
), |
| 1588 |
'popupBgColor' => array( |
| 1589 |
'type' => 'string', |
| 1590 |
'default' => '#fff', |
| 1591 |
), |
| 1592 |
'popupOverlayColor' => array( |
| 1593 |
'type' => 'string', |
| 1594 |
'default' => '#0b0b0bcc', |
| 1595 |
), |
| 1596 |
'popupCloseBtnColor' => array( |
| 1597 |
'type' => 'object', |
| 1598 |
'default' => array( |
| 1599 |
'color' => '#FF0000', |
| 1600 |
'hover' => '', |
| 1601 |
), |
| 1602 |
), |
| 1603 |
'popupNavArrowColor' => array( |
| 1604 |
'type' => 'object', |
| 1605 |
'default' => array( |
| 1606 |
'color' => '#fff', |
| 1607 |
'hover' => '#fff', |
| 1608 |
), |
| 1609 |
), |
| 1610 |
'popupNavArrowBgColor' => array( |
| 1611 |
'type' => 'object', |
| 1612 |
'default' => array( |
| 1613 |
'color' => '#222222', |
| 1614 |
'hover' => 'var(--smart-post-secondary)', |
| 1615 |
), |
| 1616 |
), |
| 1617 |
'additionalCssClass' => array( |
| 1618 |
'type' => 'string', |
| 1619 |
'default' => '', |
| 1620 |
), |
| 1621 |
'metaDataArray' => array( |
| 1622 |
'type' => 'array', |
| 1623 |
'default' => array( |
| 1624 |
array( |
| 1625 |
'id' => 1, |
| 1626 |
'label' => 'Author', |
| 1627 |
'value' => 'author', |
| 1628 |
), |
| 1629 |
array( |
| 1630 |
'id' => 2, |
| 1631 |
'label' => 'Date', |
| 1632 |
'value' => 'date', |
| 1633 |
), |
| 1634 |
), |
| 1635 |
), |
| 1636 |
'showPrice' => array( |
| 1637 |
'type' => 'boolean', |
| 1638 |
'default' => true, |
| 1639 |
), |
| 1640 |
'priceColor' => array( |
| 1641 |
'type' => 'object', |
| 1642 |
'default' => array( |
| 1643 |
'color' => '#444444', |
| 1644 |
'hoverColor' => '', |
| 1645 |
), |
| 1646 |
), |
| 1647 |
'discountColor' => array( |
| 1648 |
'type' => 'object', |
| 1649 |
'default' => array( |
| 1650 |
'color' => '#888888', |
| 1651 |
'hoverColor' => '', |
| 1652 |
), |
| 1653 |
), |
| 1654 |
'showRating' => array( |
| 1655 |
'type' => 'boolean', |
| 1656 |
'default' => true, |
| 1657 |
), |
| 1658 |
'showReviewCount' => array( |
| 1659 |
'type' => 'boolean', |
| 1660 |
'default' => true, |
| 1661 |
), |
| 1662 |
'starColor' => array( |
| 1663 |
'type' => 'object', |
| 1664 |
'default' => array( |
| 1665 |
'color' => '#F4C100', |
| 1666 |
'hoverColor' => '', |
| 1667 |
), |
| 1668 |
), |
| 1669 |
'emptyStarColor' => array( |
| 1670 |
'type' => 'object', |
| 1671 |
'default' => array( |
| 1672 |
'color' => '#C8C8C8', |
| 1673 |
'hoverColor' => '', |
| 1674 |
), |
| 1675 |
), |
| 1676 |
'reviewCounterColor' => array( |
| 1677 |
'type' => 'object', |
| 1678 |
'default' => array( |
| 1679 |
'color' => '#444444', |
| 1680 |
'hoverColor' => '', |
| 1681 |
), |
| 1682 |
), |
| 1683 |
'showAddToCart' => array( |
| 1684 |
'type' => 'boolean', |
| 1685 |
'default' => true, |
| 1686 |
), |
| 1687 |
'addToCartColor' => array( |
| 1688 |
'type' => 'object', |
| 1689 |
'default' => array( |
| 1690 |
'color' => '#222222', |
| 1691 |
'hoverColor' => '#fff', |
| 1692 |
), |
| 1693 |
), |
| 1694 |
'addToCartBg' => array( |
| 1695 |
'type' => 'object', |
| 1696 |
'default' => array( |
| 1697 |
'color' => array( |
| 1698 |
'style' => 'transparent', |
| 1699 |
'transparent' => '', |
| 1700 |
'solidColor' => '', |
| 1701 |
'gradient' => 'linear-gradient(135deg,rgb(6,147,227) 0%,rgb(133,49,213) 100%)', |
| 1702 |
), |
| 1703 |
'hover' => array( |
| 1704 |
'style' => 'bgColor', |
| 1705 |
'transparent' => '', |
| 1706 |
'solidColor' => '', |
| 1707 |
'gradient' => 'linear-gradient(135deg,rgb(6,147,227) 0%,rgb(133,49,213) 100%)', |
| 1708 |
), |
| 1709 |
), |
| 1710 |
), |
| 1711 |
'addToCartBorder' => array( |
| 1712 |
'type' => 'object', |
| 1713 |
'default' => array( |
| 1714 |
'style' => 'solid', |
| 1715 |
'color' => '#4e4f52', |
| 1716 |
'hoverColor' => '', |
| 1717 |
), |
| 1718 |
), |
| 1719 |
'addToCartBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 1720 |
'blockLayoutName' => array( |
| 1721 |
'type' => 'string', |
| 1722 |
'default' => '', |
| 1723 |
), |
| 1724 |
'addToCartTypography' => array( |
| 1725 |
'type' => 'object', |
| 1726 |
'default' => array( |
| 1727 |
'googleFont' => array( |
| 1728 |
'family' => 'Default', |
| 1729 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 1730 |
), |
| 1731 |
'typography' => array( |
| 1732 |
'family' => '', |
| 1733 |
'fontWeight' => '', |
| 1734 |
'style' => '', |
| 1735 |
'transform' => '', |
| 1736 |
'decoration' => '', |
| 1737 |
), |
| 1738 |
), |
| 1739 |
), |
| 1740 |
'addToCartFontSize' => $this->ranger_attribute( 16 ), |
| 1741 |
'addToCartLatterSpacing' => $this->ranger_attribute( 0 ), |
| 1742 |
'addToCartWordSpacing' => $this->ranger_attribute( 0 ), |
| 1743 |
'addToCartLineHeight' => array( |
| 1744 |
'type' => 'object', |
| 1745 |
'default' => array( |
| 1746 |
'device' => array( |
| 1747 |
'Desktop' => '', |
| 1748 |
'Tablet' => '', |
| 1749 |
'Mobile' => '', |
| 1750 |
), |
| 1751 |
// 'unit' => array( |
| 1752 |
// 'Desktop' => 'px', |
| 1753 |
// 'Tablet' => 'px', |
| 1754 |
// 'Mobile' => 'px', |
| 1755 |
// ), |
| 1756 |
), |
| 1757 |
), |
| 1758 |
'priceTypography' => array( |
| 1759 |
'type' => 'object', |
| 1760 |
'default' => array( |
| 1761 |
'googleFont' => array( |
| 1762 |
'family' => 'Default', |
| 1763 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 1764 |
), |
| 1765 |
'typography' => array( |
| 1766 |
'family' => '', |
| 1767 |
'fontWeight' => '', |
| 1768 |
'style' => '', |
| 1769 |
'transform' => '', |
| 1770 |
'decoration' => '', |
| 1771 |
), |
| 1772 |
), |
| 1773 |
), |
| 1774 |
'priceFontSize' => $this->ranger_attribute( 16 ), |
| 1775 |
'priceLatterSpacing' => $this->ranger_attribute( 0 ), |
| 1776 |
'priceWordSpacing' => $this->ranger_attribute( 0 ), |
| 1777 |
'priceLineHeight' => array( |
| 1778 |
'type' => 'object', |
| 1779 |
'default' => array( |
| 1780 |
'device' => array( |
| 1781 |
'Desktop' => '', |
| 1782 |
'Tablet' => '', |
| 1783 |
'Mobile' => '', |
| 1784 |
), |
| 1785 |
), |
| 1786 |
), |
| 1787 |
'smallItemHeight' => $this->ranger_attribute(), |
| 1788 |
'largeItemHeight' => $this->ranger_attribute(), |
| 1789 |
'currentScreen' => array( |
| 1790 |
'type' => 'string', |
| 1791 |
'default' => '', |
| 1792 |
), |
| 1793 |
'customCss' => array( 'type' => 'string' ), |
| 1794 |
'contentPartArray' => array( |
| 1795 |
'type' => 'array', |
| 1796 |
'default' => array( |
| 1797 |
array( |
| 1798 |
'id' => 1, |
| 1799 |
'label' => 'Taxonomy (Category)', |
| 1800 |
'value' => 'taxonomy', |
| 1801 |
), |
| 1802 |
array( |
| 1803 |
'id' => 2, |
| 1804 |
'label' => 'Title', |
| 1805 |
'value' => 'title', |
| 1806 |
), |
| 1807 |
array( |
| 1808 |
'id' => 3, |
| 1809 |
'label' => 'Meta Data', |
| 1810 |
'value' => 'metadata', |
| 1811 |
), |
| 1812 |
array( |
| 1813 |
'id' => 4, |
| 1814 |
'label' => 'Excerpt', |
| 1815 |
'value' => 'excerpt', |
| 1816 |
), |
| 1817 |
array( |
| 1818 |
'id' => 5, |
| 1819 |
'label' => 'Read More', |
| 1820 |
'value' => 'readMoreButton', |
| 1821 |
), |
| 1822 |
array( |
| 1823 |
'id' => 6, |
| 1824 |
'label' => 'Social Share', |
| 1825 |
'value' => 'socialShare', |
| 1826 |
), |
| 1827 |
), |
| 1828 |
), |
| 1829 |
'metaDataAllContentArray' => array( |
| 1830 |
'type' => 'array', |
| 1831 |
'default' => array( |
| 1832 |
array( |
| 1833 |
'label' => 'Author', |
| 1834 |
'value' => 'author', |
| 1835 |
'id' => 1, |
| 1836 |
'show' => true, |
| 1837 |
), |
| 1838 |
array( |
| 1839 |
'label' => 'Date', |
| 1840 |
'value' => 'date', |
| 1841 |
'id' => 2, |
| 1842 |
'show' => true, |
| 1843 |
), |
| 1844 |
array( |
| 1845 |
'label' => 'Comments', |
| 1846 |
'value' => 'comments', |
| 1847 |
'id' => 3, |
| 1848 |
'show' => true, |
| 1849 |
), |
| 1850 |
array( |
| 1851 |
'label' => 'Views', |
| 1852 |
'value' => 'views', |
| 1853 |
'id' => 4, |
| 1854 |
'show' => false, |
| 1855 |
'pro' => true, |
| 1856 |
), |
| 1857 |
array( |
| 1858 |
'label' => 'Likes', |
| 1859 |
'value' => 'likes', |
| 1860 |
'id' => 5, |
| 1861 |
'show' => false, |
| 1862 |
'pro' => true, |
| 1863 |
), |
| 1864 |
array( |
| 1865 |
'label' => 'Reading Time', |
| 1866 |
'value' => 'reading-time', |
| 1867 |
'id' => 6, |
| 1868 |
'show' => false, |
| 1869 |
'pro' => true, |
| 1870 |
), |
| 1871 |
), |
| 1872 |
), |
| 1873 |
'socialIconDisplayType' => array( |
| 1874 |
'type' => 'string', |
| 1875 |
'default' => 'inline-icon', |
| 1876 |
), |
| 1877 |
'socialShareDisplayOnHover' => array( |
| 1878 |
'type' => 'boolean', |
| 1879 |
'default' => false, |
| 1880 |
), |
| 1881 |
'socialShareIconPosition' => array( |
| 1882 |
'type' => 'string', |
| 1883 |
'default' => 'beside-meta', |
| 1884 |
), |
| 1885 |
'socialShareDisplayStyle' => array( |
| 1886 |
'type' => 'string', |
| 1887 |
'default' => 'style-one', |
| 1888 |
), |
| 1889 |
'socialPopupShareColor' => array( |
| 1890 |
'type' => 'object', |
| 1891 |
'default' => array( |
| 1892 |
'color' => '#ffffff', |
| 1893 |
'hoverColor' => '', |
| 1894 |
), |
| 1895 |
), |
| 1896 |
'socialPopupCountColor' => array( |
| 1897 |
'type' => 'object', |
| 1898 |
'default' => array( |
| 1899 |
'color' => '#fff', |
| 1900 |
'hoverColor' => '#333', |
| 1901 |
), |
| 1902 |
), |
| 1903 |
'socialPopupShareBGColor' => array( |
| 1904 |
'type' => 'object', |
| 1905 |
'default' => array( |
| 1906 |
'color' => '#FFFFFF00', |
| 1907 |
'hoverColor' => '#FFFFFF00', |
| 1908 |
), |
| 1909 |
), |
| 1910 |
'socialPopupContainerBGColor' => array( |
| 1911 |
'type' => 'object', |
| 1912 |
'default' => array( |
| 1913 |
'color' => '#ffffff', |
| 1914 |
'hoverColor' => '#fff', |
| 1915 |
), |
| 1916 |
), |
| 1917 |
'socialSharePadding' => $this->spacing_attribute( 8, 8, 8, 8, 'px', true ), |
| 1918 |
'socialShareCount' => array( |
| 1919 |
'type' => 'boolean', |
| 1920 |
'default' => false, |
| 1921 |
), |
| 1922 |
'socialTotalShareCount' => array( |
| 1923 |
'type' => 'boolean', |
| 1924 |
'default' => false, |
| 1925 |
), |
| 1926 |
'socialSharePopupBorder' => array( |
| 1927 |
'type' => 'object', |
| 1928 |
'default' => array( |
| 1929 |
'color' => '#000', |
| 1930 |
'style' => 'none', |
| 1931 |
'hoverColor' => '#fff', |
| 1932 |
), |
| 1933 |
), |
| 1934 |
'socialSharePopupBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 1935 |
'socialSharePopupBorderRadius' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 1936 |
'socialShareBoxShadow' => array( |
| 1937 |
'type' => 'boolean', |
| 1938 |
'default' => false, |
| 1939 |
), |
| 1940 |
'socialShareBoxShadowValue' => array( |
| 1941 |
'type' => 'object', |
| 1942 |
'default' => array( |
| 1943 |
'device' => array( |
| 1944 |
'Desktop' => array( |
| 1945 |
'top' => 0, |
| 1946 |
'right' => 0, |
| 1947 |
'bottom' => 0, |
| 1948 |
'left' => 0, |
| 1949 |
), |
| 1950 |
'Tablet' => array( |
| 1951 |
'top' => 0, |
| 1952 |
'right' => 0, |
| 1953 |
'bottom' => 0, |
| 1954 |
'left' => 0, |
| 1955 |
), |
| 1956 |
'Mobile' => array( |
| 1957 |
'top' => 0, |
| 1958 |
'right' => 0, |
| 1959 |
'bottom' => 0, |
| 1960 |
'left' => 0, |
| 1961 |
), |
| 1962 |
), |
| 1963 |
'unit' => array( |
| 1964 |
'Desktop' => 'outset', |
| 1965 |
'Tablet' => 'outset', |
| 1966 |
'Mobile' => 'outset', |
| 1967 |
), |
| 1968 |
'color' => '#4E4F521A', |
| 1969 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 1970 |
), |
| 1971 |
), |
| 1972 |
'socialPopupBoxShadow' => array( |
| 1973 |
'type' => 'boolean', |
| 1974 |
'default' => false, |
| 1975 |
), |
| 1976 |
'socialPopupBoxShadowValue' => array( |
| 1977 |
'type' => 'object', |
| 1978 |
'default' => array( |
| 1979 |
'device' => array( |
| 1980 |
'Desktop' => array( |
| 1981 |
'top' => 0, |
| 1982 |
'right' => 0, |
| 1983 |
'bottom' => 0, |
| 1984 |
'left' => 0, |
| 1985 |
), |
| 1986 |
'Tablet' => array( |
| 1987 |
'top' => 0, |
| 1988 |
'right' => 0, |
| 1989 |
'bottom' => 0, |
| 1990 |
'left' => 0, |
| 1991 |
), |
| 1992 |
'Mobile' => array( |
| 1993 |
'top' => 0, |
| 1994 |
'right' => 0, |
| 1995 |
'bottom' => 0, |
| 1996 |
'left' => 0, |
| 1997 |
), |
| 1998 |
), |
| 1999 |
'unit' => array( |
| 2000 |
'Desktop' => 'outset', |
| 2001 |
'Tablet' => 'outset', |
| 2002 |
'Mobile' => 'outset', |
| 2003 |
), |
| 2004 |
'color' => '#4E4F521A', |
| 2005 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 2006 |
), |
| 2007 |
), |
| 2008 |
'socialPopupPadding' => $this->spacing_attribute( 12, 12, 12, 12, 'px', true ), |
| 2009 |
'catTabCategoryBarColor' => array( |
| 2010 |
'type' => 'string', |
| 2011 |
'default' => '#FFF', |
| 2012 |
), |
| 2013 |
'readMoreButtonType' => array( |
| 2014 |
'type' => 'string', |
| 2015 |
'default' => 'button', |
| 2016 |
), |
| 2017 |
'metaDisplayType' => array( |
| 2018 |
'type' => 'string', |
| 2019 |
'default' => 'inline', |
| 2020 |
), |
| 2021 |
'paginationTypeParent' => array( |
| 2022 |
'type' => 'string', |
| 2023 |
'default' => '', |
| 2024 |
), |
| 2025 |
'paginationPosition' => array( |
| 2026 |
'type' => 'string', |
| 2027 |
'default' => '', |
| 2028 |
), |
| 2029 |
'enableMetaData' => array( |
| 2030 |
'type' => 'boolean', |
| 2031 |
'default' => true, |
| 2032 |
), |
| 2033 |
'globalBreakPointData' => array( |
| 2034 |
'type' => 'object', |
| 2035 |
'default' => array(), |
| 2036 |
), |
| 2037 |
'allTaxonomy' => array( |
| 2038 |
'type' => 'array', |
| 2039 |
'default' => array(), |
| 2040 |
), |
| 2041 |
); |
| 2042 |
$shared_attributes = array_merge( $shared_attributes, $style_title, $content_area_attr ); |
| 2043 |
$carousel_attributes = array( |
| 2044 |
'carouselPauseOnHover' => array( |
| 2045 |
'type' => 'boolean', |
| 2046 |
'default' => true, |
| 2047 |
), |
| 2048 |
'carouselDirection' => array( |
| 2049 |
'type' => 'string', |
| 2050 |
'default' => 'right_to_left', |
| 2051 |
), |
| 2052 |
'carouselAutoPlay' => array( |
| 2053 |
'type' => 'boolean', |
| 2054 |
'default' => true, |
| 2055 |
), |
| 2056 |
'carouselAutoPlayDelay' => array( |
| 2057 |
'type' => 'object', |
| 2058 |
'default' => array( |
| 2059 |
'value' => 2000, |
| 2060 |
'unit' => 'ms', |
| 2061 |
), |
| 2062 |
), |
| 2063 |
'carouselSpeed' => array( |
| 2064 |
'type' => 'object', |
| 2065 |
'default' => array( |
| 2066 |
'value' => 600, |
| 2067 |
'unit' => 'ms', |
| 2068 |
), |
| 2069 |
), |
| 2070 |
'carouselStyle' => array( |
| 2071 |
'type' => 'string', |
| 2072 |
'default' => 'standard', |
| 2073 |
), |
| 2074 |
'carouselGap' => $this->ranger_attribute( 24 ), |
| 2075 |
'carouselColumn' => array( |
| 2076 |
'type' => 'object', |
| 2077 |
'default' => array( |
| 2078 |
'device' => array( |
| 2079 |
'Desktop' => 3, |
| 2080 |
'Tablet' => 2, |
| 2081 |
'Mobile' => 1, |
| 2082 |
), |
| 2083 |
), |
| 2084 |
), |
| 2085 |
'carouselArrowStyle' => array( |
| 2086 |
'type' => 'string', |
| 2087 |
'default' => 'chevron-solid', |
| 2088 |
), |
| 2089 |
'carouselArrowSize' => $this->ranger_attribute( 16 ), |
| 2090 |
'carouselArrowWidth' => $this->ranger_attribute( 40, 40, 40 ), |
| 2091 |
'carouselArrowHeight' => $this->ranger_attribute( 40 ), |
| 2092 |
'carouselArrowSpaceBetween' => $this->ranger_attribute( 100, 100, 100, '%' ), |
| 2093 |
'carouselArrowHorizontal' => array( |
| 2094 |
'type' => 'object', |
| 2095 |
'default' => array( |
| 2096 |
'device' => array( |
| 2097 |
'Desktop' => -22, |
| 2098 |
'Tablet' => 0, |
| 2099 |
'Mobile' => 0, |
| 2100 |
), |
| 2101 |
'unit' => array( |
| 2102 |
'Desktop' => 'px', |
| 2103 |
'Tablet' => '%', |
| 2104 |
'Mobile' => 'px', |
| 2105 |
), |
| 2106 |
), |
| 2107 |
), |
| 2108 |
'carouselArrowVertical' => $this->ranger_attribute( 50, 50, 50, '%' ), |
| 2109 |
'carouselArrowColor' => array( |
| 2110 |
'type' => 'object', |
| 2111 |
'default' => array( |
| 2112 |
'color' => '#FFFFFF', |
| 2113 |
'hoverColor' => '#FFFFFF', |
| 2114 |
), |
| 2115 |
), |
| 2116 |
'carouselArrowBgColor' => array( |
| 2117 |
'type' => 'object', |
| 2118 |
'default' => array( |
| 2119 |
'color' => '', |
| 2120 |
'hoverColor' => '', |
| 2121 |
), |
| 2122 |
), |
| 2123 |
'carouselArrowBorder' => array( |
| 2124 |
'type' => 'object', |
| 2125 |
'default' => array( |
| 2126 |
'style' => 'solid', |
| 2127 |
'hoverStyle' => '', |
| 2128 |
'color' => '', |
| 2129 |
'hoverColor' => '', |
| 2130 |
), |
| 2131 |
), |
| 2132 |
'carouselArrowBorderWidth' => $this->spacing_attribute( 2, 2, 2, 2, 'px', true ), |
| 2133 |
'carouselArrowBorderWidthHover' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 2134 |
'carouselArrowBorderRadius' => $this->spacing_attribute( 50, 50, 50, 50, '%', true ), |
| 2135 |
'carouselBoxShadowEnable' => array( |
| 2136 |
'type' => 'boolean', |
| 2137 |
'default' => false, |
| 2138 |
), |
| 2139 |
'carouselBoxShadow' => array( |
| 2140 |
'type' => 'object', |
| 2141 |
'default' => array( |
| 2142 |
'device' => array( |
| 2143 |
'Desktop' => array( |
| 2144 |
'top' => 3, |
| 2145 |
'right' => 3, |
| 2146 |
'bottom' => 6, |
| 2147 |
'left' => 0, |
| 2148 |
), |
| 2149 |
'Tablet' => array( |
| 2150 |
'top' => '', |
| 2151 |
'right' => '', |
| 2152 |
'bottom' => '', |
| 2153 |
'left' => '', |
| 2154 |
), |
| 2155 |
'Mobile' => array( |
| 2156 |
'top' => '', |
| 2157 |
'right' => '', |
| 2158 |
'bottom' => '', |
| 2159 |
'left' => '', |
| 2160 |
), |
| 2161 |
), |
| 2162 |
'unit' => array( |
| 2163 |
'Desktop' => 'outset', |
| 2164 |
'Tablet' => 'outset', |
| 2165 |
'Mobile' => 'outset', |
| 2166 |
), |
| 2167 |
'color' => '#4E4F521A ', |
| 2168 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 2169 |
), |
| 2170 |
), |
| 2171 |
'carouselPaginationStyle' => array( |
| 2172 |
'type' => 'string', |
| 2173 |
'default' => 'dots', |
| 2174 |
), |
| 2175 |
'infiniteLoop' => array( |
| 2176 |
'type' => 'boolean', |
| 2177 |
'default' => true, |
| 2178 |
), |
| 2179 |
'carouselPaginationWidth' => $this->ranger_attribute( 12 ), |
| 2180 |
'carouselPaginationHeight' => $this->ranger_attribute( 12 ), |
| 2181 |
'carouselPaginationSpaceBetween' => $this->ranger_attribute( 4 ), |
| 2182 |
'carouselPaginationHorizontal' => $this->ranger_attribute( '', '', '', '%' ), |
| 2183 |
'carouselPaginationVertical' => $this->ranger_attribute( -36 ), |
| 2184 |
'carouselPaginationTextColor' => array( |
| 2185 |
'type' => 'object', |
| 2186 |
'default' => array( |
| 2187 |
'color' => '', |
| 2188 |
'activeColor' => '#FFFFFF', |
| 2189 |
), |
| 2190 |
), |
| 2191 |
'carouselPaginationColor' => array( |
| 2192 |
'type' => 'object', |
| 2193 |
'default' => array( |
| 2194 |
'color' => '', |
| 2195 |
'hoverColor' => '', |
| 2196 |
), |
| 2197 |
), |
| 2198 |
'carouselPaginationBorder' => array( |
| 2199 |
'type' => 'object', |
| 2200 |
'default' => array( |
| 2201 |
'style' => 'none', |
| 2202 |
'hoverStyle' => 'none', |
| 2203 |
'color' => '#4e4f52', |
| 2204 |
'hoverColor' => '#4E4F52', |
| 2205 |
), |
| 2206 |
), |
| 2207 |
'carouselPaginationBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 2208 |
'carouselPaginationBorderWidthHover' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 2209 |
'navArrowVisibilityOnHover' => array( |
| 2210 |
'type' => 'boolean', |
| 2211 |
'default' => false, |
| 2212 |
), |
| 2213 |
'carouselNavArrow' => array( |
| 2214 |
'type' => 'boolean', |
| 2215 |
'default' => true, |
| 2216 |
), |
| 2217 |
'carouselPaginationDot' => array( |
| 2218 |
'type' => 'boolean', |
| 2219 |
'default' => true, |
| 2220 |
), |
| 2221 |
'carouselData' => array( |
| 2222 |
'type' => 'string', |
| 2223 |
'default' => '', |
| 2224 |
), |
| 2225 |
); |
| 2226 |
|