| 1 |
<?php |
| 2 |
/** |
| 3 |
* Social profiles 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 |
'uniqueId' => array( |
| 15 |
'type' => 'string', |
| 16 |
'default' => '', |
| 17 |
), |
| 18 |
|
| 19 |
'dynamicCss' => array( |
| 20 |
'type' => 'string', |
| 21 |
'default' => '', |
| 22 |
), |
| 23 |
'blockName' => array( |
| 24 |
'type' => 'string', |
| 25 |
'default' => '', |
| 26 |
), |
| 27 |
'templateItems' => array( |
| 28 |
'type' => 'array', |
| 29 |
'default' => array( 'facebook', 'x (twitter)', 'linkedin', 'digg', 'reddit' ), |
| 30 |
), |
| 31 |
'layout' => array( |
| 32 |
'type' => 'string', |
| 33 |
'default' => 'social-profiles-layout-one', |
| 34 |
), |
| 35 |
'socialListViewEnable' => array( |
| 36 |
'type' => 'boolean', |
| 37 |
'default' => false, |
| 38 |
), |
| 39 |
'columns' => array( |
| 40 |
'type' => 'object', |
| 41 |
'default' => array( |
| 42 |
'device' => array( |
| 43 |
'Desktop' => '', |
| 44 |
'Tablet' => '', |
| 45 |
'Mobile' => '', |
| 46 |
), |
| 47 |
), |
| 48 |
), |
| 49 |
'socialHorizontalGap' => array( |
| 50 |
'type' => 'object', |
| 51 |
'default' => array( |
| 52 |
'device' => array( |
| 53 |
'Desktop' => 24, |
| 54 |
'Tablet' => '', |
| 55 |
'Mobile' => '', |
| 56 |
), |
| 57 |
'unit' => array( |
| 58 |
'Desktop' => 'px', |
| 59 |
'Tablet' => 'px', |
| 60 |
'Mobile' => 'px', |
| 61 |
), |
| 62 |
), |
| 63 |
), |
| 64 |
'socialVerticalGap' => array( |
| 65 |
'type' => 'object', |
| 66 |
'default' => array( |
| 67 |
'device' => array( |
| 68 |
'Desktop' => 24, |
| 69 |
'Tablet' => '', |
| 70 |
'Mobile' => '', |
| 71 |
), |
| 72 |
'unit' => array( |
| 73 |
'Desktop' => 'px', |
| 74 |
'Tablet' => 'px', |
| 75 |
'Mobile' => 'px', |
| 76 |
), |
| 77 |
), |
| 78 |
), |
| 79 |
'socialHoverEffect' => array( |
| 80 |
'type' => 'string', |
| 81 |
'default' => 'none', |
| 82 |
), |
| 83 |
'socialAlignment' => array( |
| 84 |
'type' => 'string', |
| 85 |
'default' => 'center', |
| 86 |
), |
| 87 |
'socialIconEnable' => array( |
| 88 |
'type' => 'boolean', |
| 89 |
'default' => true, |
| 90 |
), |
| 91 |
'socialIconSize' => array( |
| 92 |
'type' => 'object', |
| 93 |
'default' => array( |
| 94 |
'device' => array( |
| 95 |
'Desktop' => 18, |
| 96 |
'Tablet' => '', |
| 97 |
'Mobile' => '', |
| 98 |
), |
| 99 |
'unit' => array( |
| 100 |
'Desktop' => 'px', |
| 101 |
'Tablet' => 'px', |
| 102 |
'Mobile' => 'px', |
| 103 |
), |
| 104 |
), |
| 105 |
), |
| 106 |
'socialIconBGSize' => array( |
| 107 |
'type' => 'object', |
| 108 |
'default' => array( |
| 109 |
'device' => array( |
| 110 |
'Desktop' => 36, |
| 111 |
'Tablet' => '', |
| 112 |
'Mobile' => '', |
| 113 |
), |
| 114 |
'unit' => array( |
| 115 |
'Desktop' => 'px', |
| 116 |
'Tablet' => 'px', |
| 117 |
'Mobile' => 'px', |
| 118 |
), |
| 119 |
), |
| 120 |
), |
| 121 |
'socialIconDivider' => array( |
| 122 |
'type' => 'boolean', |
| 123 |
'default' => true, |
| 124 |
), |
| 125 |
'socialIconCustomColorEnable' => array( |
| 126 |
'type' => 'boolean', |
| 127 |
'default' => false, |
| 128 |
), |
| 129 |
'socialIconDividerColor' => array( |
| 130 |
'type' => 'object', |
| 131 |
'default' => array( |
| 132 |
'color' => '#DDDDDD', |
| 133 |
'hover' => '', |
| 134 |
), |
| 135 |
), |
| 136 |
'socialIconColor' => array( |
| 137 |
'type' => 'object', |
| 138 |
'default' => array( |
| 139 |
'color' => '#FFFFFF', |
| 140 |
'hover' => '', |
| 141 |
), |
| 142 |
), |
| 143 |
'socialIconBg' => array( |
| 144 |
'type' => 'object', |
| 145 |
'default' => array( |
| 146 |
'color' => array( |
| 147 |
'style' => 'bgColor', |
| 148 |
'solidColor' => '', |
| 149 |
'gradient' => '', |
| 150 |
), |
| 151 |
'hover' => array( |
| 152 |
'style' => 'bgColor', |
| 153 |
'solidColor' => '', |
| 154 |
'gradient' => '', |
| 155 |
), |
| 156 |
), |
| 157 |
), |
| 158 |
'socialIconBorder' => array( |
| 159 |
'type' => 'object', |
| 160 |
'default' => array( |
| 161 |
'style' => 'none', |
| 162 |
'color' => '', |
| 163 |
), |
| 164 |
), |
| 165 |
'socialIconBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 166 |
'socialIconBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 167 |
'socialIconBorderHover' => array( |
| 168 |
'type' => 'object', |
| 169 |
'default' => array( |
| 170 |
'style' => '', |
| 171 |
'color' => '', |
| 172 |
), |
| 173 |
), |
| 174 |
'socialIconBorderWidthHover' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 175 |
'socialIconBorderRadiusHover' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 176 |
'socialIconBoxShadowEnable' => array( |
| 177 |
'type' => 'boolean', |
| 178 |
'default' => false, |
| 179 |
), |
| 180 |
'socialIconBoxShadowValue' => array( |
| 181 |
'type' => 'object', |
| 182 |
'default' => array( |
| 183 |
'value' => array( |
| 184 |
'top' => '', |
| 185 |
'right' => '', |
| 186 |
'bottom' => '', |
| 187 |
'left' => '', |
| 188 |
), |
| 189 |
'unit' => 'outset', |
| 190 |
'color' => '#ddd', |
| 191 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 192 |
), |
| 193 |
), |
| 194 |
'socialIconBoxShadowHoverEnable' => array( |
| 195 |
'type' => 'boolean', |
| 196 |
'default' => false, |
| 197 |
), |
| 198 |
'socialIconBoxShadowHoverValue' => array( |
| 199 |
'type' => 'object', |
| 200 |
'default' => array( |
| 201 |
'value' => array( |
| 202 |
'top' => '', |
| 203 |
'right' => '', |
| 204 |
'bottom' => '', |
| 205 |
'left' => '', |
| 206 |
), |
| 207 |
'unit' => 'outset', |
| 208 |
'color' => '#ddd', |
| 209 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 210 |
), |
| 211 |
), |
| 212 |
'socialIconMargin' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 213 |
'socialLabelEnable' => array( |
| 214 |
'type' => 'boolean', |
| 215 |
'default' => false, |
| 216 |
), |
| 217 |
'socialLabelPosition' => array( |
| 218 |
'type' => 'string', |
| 219 |
'default' => 'right', |
| 220 |
), |
| 221 |
'socialLabelGap' => array( |
| 222 |
'type' => 'object', |
| 223 |
'default' => array( |
| 224 |
'value' => 8, |
| 225 |
'unit' => 'px', |
| 226 |
), |
| 227 |
), |
| 228 |
'socialSubTextEnable' => array( |
| 229 |
'type' => 'boolean', |
| 230 |
'default' => false, |
| 231 |
), |
| 232 |
'socialSubTextGap' => array( |
| 233 |
'type' => 'object', |
| 234 |
'default' => array( |
| 235 |
'value' => 8, |
| 236 |
'unit' => 'px', |
| 237 |
), |
| 238 |
), |
| 239 |
'socialLabelTypography' => array( |
| 240 |
'type' => 'object', |
| 241 |
'default' => array( |
| 242 |
'typography' => array( |
| 243 |
'family' => '', |
| 244 |
'fontWeight' => '', |
| 245 |
'style' => '', |
| 246 |
'transform' => '', |
| 247 |
'decoration' => '', |
| 248 |
), |
| 249 |
), |
| 250 |
), |
| 251 |
'socialLabelGlobalTypography' => array( |
| 252 |
'type' => 'object', |
| 253 |
'default' => array(), |
| 254 |
), |
| 255 |
'socialLabelFontSize' => 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 |
'socialLabelLetterSpacing' => array( |
| 271 |
'type' => 'object', |
| 272 |
'default' => array( |
| 273 |
'device' => array( |
| 274 |
'Desktop' => '', |
| 275 |
'Tablet' => '', |
| 276 |
'Mobile' => '', |
| 277 |
), |
| 278 |
'unit' => array( |
| 279 |
'Desktop' => 'px', |
| 280 |
'Tablet' => 'px', |
| 281 |
'Mobile' => 'px', |
| 282 |
), |
| 283 |
), |
| 284 |
), |
| 285 |
'socialLabelWordSpacing' => 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 |
'socialLabelLineHeight' => array( |
| 301 |
'type' => 'object', |
| 302 |
'default' => array( |
| 303 |
'device' => array( |
| 304 |
'Desktop' => '', |
| 305 |
'Tablet' => '', |
| 306 |
'Mobile' => '', |
| 307 |
), |
| 308 |
), |
| 309 |
), |
| 310 |
'socialSubTextTypography' => array( |
| 311 |
'type' => 'object', |
| 312 |
'default' => array( |
| 313 |
'typography' => array( |
| 314 |
'family' => '', |
| 315 |
'fontWeight' => '', |
| 316 |
'style' => '', |
| 317 |
'transform' => '', |
| 318 |
'decoration' => '', |
| 319 |
), |
| 320 |
), |
| 321 |
), |
| 322 |
'socialSubTextGlobalTypography' => array( |
| 323 |
'type' => 'object', |
| 324 |
'default' => array(), |
| 325 |
), |
| 326 |
'socialSubTextFontSize' => array( |
| 327 |
'type' => 'object', |
| 328 |
'default' => array( |
| 329 |
'device' => array( |
| 330 |
'Desktop' => '', |
| 331 |
'Tablet' => '', |
| 332 |
'Mobile' => '', |
| 333 |
), |
| 334 |
'unit' => array( |
| 335 |
'Desktop' => 'px', |
| 336 |
'Tablet' => 'px', |
| 337 |
'Mobile' => 'px', |
| 338 |
), |
| 339 |
), |
| 340 |
), |
| 341 |
'socialSubTextLetterSpacing' => array( |
| 342 |
'type' => 'object', |
| 343 |
'default' => array( |
| 344 |
'device' => array( |
| 345 |
'Desktop' => '', |
| 346 |
'Tablet' => '', |
| 347 |
'Mobile' => '', |
| 348 |
), |
| 349 |
'unit' => array( |
| 350 |
'Desktop' => 'px', |
| 351 |
'Tablet' => 'px', |
| 352 |
'Mobile' => 'px', |
| 353 |
), |
| 354 |
), |
| 355 |
), |
| 356 |
'socialSubTextWordSpacing' => array( |
| 357 |
'type' => 'object', |
| 358 |
'default' => array( |
| 359 |
'device' => array( |
| 360 |
'Desktop' => '', |
| 361 |
'Tablet' => '', |
| 362 |
'Mobile' => '', |
| 363 |
), |
| 364 |
'unit' => array( |
| 365 |
'Desktop' => 'px', |
| 366 |
'Tablet' => 'px', |
| 367 |
'Mobile' => 'px', |
| 368 |
), |
| 369 |
), |
| 370 |
), |
| 371 |
'socialSubTextLineHeight' => array( |
| 372 |
'type' => 'object', |
| 373 |
'default' => array( |
| 374 |
'device' => array( |
| 375 |
'Desktop' => '', |
| 376 |
'Tablet' => '', |
| 377 |
'Mobile' => '', |
| 378 |
), |
| 379 |
), |
| 380 |
), |
| 381 |
'socialLabelColor' => array( |
| 382 |
'type' => 'object', |
| 383 |
'default' => array( |
| 384 |
'color' => '', |
| 385 |
'hoverColor' => '', |
| 386 |
), |
| 387 |
), |
| 388 |
'socialSubTextColor' => array( |
| 389 |
'type' => 'object', |
| 390 |
'default' => array( |
| 391 |
'color' => '', |
| 392 |
'hoverColor' => '', |
| 393 |
), |
| 394 |
), |
| 395 |
'socialContentAreaBG' => array( |
| 396 |
'type' => 'object', |
| 397 |
'default' => array( |
| 398 |
'color' => array( |
| 399 |
'style' => 'bgColor', |
| 400 |
'solidColor' => '', |
| 401 |
'gradient' => '', |
| 402 |
), |
| 403 |
'hover' => array( |
| 404 |
'style' => 'bgColor', |
| 405 |
'solidColor' => '', |
| 406 |
'gradient' => '', |
| 407 |
), |
| 408 |
), |
| 409 |
), |
| 410 |
'socialContentAreaBorder' => array( |
| 411 |
'type' => 'object', |
| 412 |
'default' => array( |
| 413 |
'style' => 'none', |
| 414 |
'color' => '#E0E0E0', |
| 415 |
), |
| 416 |
), |
| 417 |
'socialContentAreaBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 418 |
'socialContentAreaBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 419 |
'socialContentAreaBorderHover' => array( |
| 420 |
'type' => 'object', |
| 421 |
'default' => array( |
| 422 |
'style' => '', |
| 423 |
'color' => '', |
| 424 |
), |
| 425 |
), |
| 426 |
'socialContentAreaBorderWidthHover' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 427 |
'socialContentAreaBorderRadiusHover' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 428 |
'socialContentAreaShadowEnable' => array( |
| 429 |
'type' => 'boolean', |
| 430 |
'default' => false, |
| 431 |
), |
| 432 |
'socialContentAreaShadow' => array( |
| 433 |
'type' => 'object', |
| 434 |
'default' => array( |
| 435 |
'value' => array( |
| 436 |
'top' => '', |
| 437 |
'right' => '', |
| 438 |
'bottom' => '', |
| 439 |
'left' => '', |
| 440 |
), |
| 441 |
'unit' => 'outset', |
| 442 |
'color' => '#ddd', |
| 443 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 444 |
), |
| 445 |
), |
| 446 |
'socialContentAreaShadowHoverEnable' => array( |
| 447 |
'type' => 'boolean', |
| 448 |
'default' => false, |
| 449 |
), |
| 450 |
'socialContentAreaShadowHover' => array( |
| 451 |
'type' => 'object', |
| 452 |
'default' => array( |
| 453 |
'value' => array( |
| 454 |
'top' => '', |
| 455 |
'right' => '', |
| 456 |
'bottom' => '', |
| 457 |
'left' => '', |
| 458 |
), |
| 459 |
'unit' => 'outset', |
| 460 |
'color' => '#ddd', |
| 461 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 462 |
), |
| 463 |
), |
| 464 |
'socialContentAreaPadding' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 465 |
'socialContentAreaMargin' => $this->spacing_attribute( '', '', '', '', 'px', true ), |
| 466 |
'fontLists' => array( |
| 467 |
'type' => 'string', |
| 468 |
'default' => '', |
| 469 |
), |
| 470 |
'fontListsEditPage' => array( |
| 471 |
'type' => 'string', |
| 472 |
'default' => '', |
| 473 |
), |
| 474 |
'socialContentAreaBgBlur' => array( |
| 475 |
'type' => 'object', |
| 476 |
'default' => array( |
| 477 |
'value' => 0, |
| 478 |
'unit' => '%', |
| 479 |
), |
| 480 |
), |
| 481 |
'isPreview' => array( |
| 482 |
'type' => 'boolean', |
| 483 |
'default' => false, |
| 484 |
), |
| 485 |
'additionalCssClass' => array( |
| 486 |
'type' => 'string', |
| 487 |
'default' => '', |
| 488 |
), |
| 489 |
'customCss' => array( |
| 490 |
'type' => 'string', |
| 491 |
'default' => '', |
| 492 |
), |
| 493 |
'hideOnDesktop' => array( |
| 494 |
'type' => 'boolean', |
| 495 |
'default' => false, |
| 496 |
), |
| 497 |
'hideOnTablet' => array( |
| 498 |
'type' => 'boolean', |
| 499 |
'default' => false, |
| 500 |
), |
| 501 |
'hideOnMobile' => array( |
| 502 |
'type' => 'boolean', |
| 503 |
'default' => false, |
| 504 |
), |
| 505 |
'globalBreakPointData' => array( |
| 506 |
'type' => 'object', |
| 507 |
'default' => array(), |
| 508 |
), |
| 509 |
); |
| 510 |
|