| 1 |
<?php |
| 2 |
namespace ULTP\blocks; |
| 3 |
|
| 4 |
defined('ABSPATH') || exit; |
| 5 |
|
| 6 |
class Post_Module_1{ |
| 7 |
|
| 8 |
public function __construct() { |
| 9 |
add_action('init', array($this, 'register')); |
| 10 |
} |
| 11 |
|
| 12 |
public function get_attributes($default = false){ |
| 13 |
|
| 14 |
$attributes = array( |
| 15 |
'blockId' => [ |
| 16 |
'type' => 'string', |
| 17 |
'default' => '', |
| 18 |
], |
| 19 |
|
| 20 |
//-------------------------- |
| 21 |
// Layout |
| 22 |
//-------------------------- |
| 23 |
'layout' => [ |
| 24 |
'type' => 'string', |
| 25 |
'default' => 'layout1', |
| 26 |
], |
| 27 |
|
| 28 |
//-------------------------- |
| 29 |
// Query Setting |
| 30 |
//-------------------------- |
| 31 |
'queryQuick' => [ |
| 32 |
'type' => 'string', |
| 33 |
'default' =>'', |
| 34 |
], |
| 35 |
'queryNumber' => [ |
| 36 |
'type' => 'string', |
| 37 |
'default' => 5, |
| 38 |
], |
| 39 |
'queryType' => [ |
| 40 |
'type' => 'string', |
| 41 |
'default' => 'post' |
| 42 |
], |
| 43 |
'queryTax' => [ |
| 44 |
'type' => 'string', |
| 45 |
'default' => 'category' |
| 46 |
], |
| 47 |
'queryTaxValue' => [ |
| 48 |
'type' => 'string', |
| 49 |
'default' => '[]', |
| 50 |
'style' => [ |
| 51 |
(object)[ |
| 52 |
'depends' => [(object)['key' => 'queryTax','condition' => '!=','value' => '']] |
| 53 |
], |
| 54 |
], |
| 55 |
], |
| 56 |
'queryRelation' => [ |
| 57 |
'type' => 'string', |
| 58 |
'default' => 'OR' |
| 59 |
], |
| 60 |
'queryCat' => [ // for compatibility |
| 61 |
'type' => 'string', |
| 62 |
'default' => '[]' |
| 63 |
], |
| 64 |
'queryTag' => [ // for compatibility |
| 65 |
'type' => 'string', |
| 66 |
'default' => '[]' |
| 67 |
], |
| 68 |
'queryOrderBy' => [ |
| 69 |
'type' => 'string', |
| 70 |
'default' => 'date', |
| 71 |
], |
| 72 |
'metaKey' => [ |
| 73 |
'type' => 'string', |
| 74 |
'default' => 'custom_meta_key', |
| 75 |
'style' => [ |
| 76 |
(object)[ |
| 77 |
'depends' => [(object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num']] |
| 78 |
], |
| 79 |
], |
| 80 |
], |
| 81 |
'queryOrder' => [ |
| 82 |
'type' => 'string', |
| 83 |
'default' => 'desc', |
| 84 |
], |
| 85 |
'queryInclude' => [ |
| 86 |
'type' => 'string', |
| 87 |
'default' => '' |
| 88 |
], |
| 89 |
'queryExclude' => [ |
| 90 |
'type' => 'string', |
| 91 |
'default' => '' |
| 92 |
], |
| 93 |
'queryAuthor' => [ |
| 94 |
'type' => 'string', |
| 95 |
'default' => '' |
| 96 |
], |
| 97 |
'queryOffset' => [ |
| 98 |
'type' => 'string', |
| 99 |
'default' => '0', |
| 100 |
], |
| 101 |
//-------------------------- |
| 102 |
// General Setting |
| 103 |
//-------------------------- |
| 104 |
'titleShow' => [ |
| 105 |
'type' => 'boolean', |
| 106 |
'default' => true, |
| 107 |
], |
| 108 |
'headingShow' => [ |
| 109 |
'type' => 'boolean', |
| 110 |
'default' => true, |
| 111 |
], |
| 112 |
'excerptShow' => [ |
| 113 |
'type' => 'boolean', |
| 114 |
'default' => true |
| 115 |
], |
| 116 |
'catShow' => [ |
| 117 |
'type' => 'boolean', |
| 118 |
'default' => true, |
| 119 |
], |
| 120 |
'metaShow' => [ |
| 121 |
'type' => 'boolean', |
| 122 |
'default' => true, |
| 123 |
], |
| 124 |
'showImage' => [ |
| 125 |
'type' => 'boolean', |
| 126 |
'default' => true, |
| 127 |
], |
| 128 |
'filterShow' => [ |
| 129 |
'type' => 'boolean', |
| 130 |
'default' => false, |
| 131 |
], |
| 132 |
'paginationShow' => [ |
| 133 |
'type' => 'boolean', |
| 134 |
'default' => false, |
| 135 |
], |
| 136 |
'readMore' => [ |
| 137 |
'type' => 'boolean', |
| 138 |
'default' => false, |
| 139 |
], |
| 140 |
'columnGridGap' => [ |
| 141 |
'type' => 'object', |
| 142 |
'default' => (object)['lg' =>'15', 'unit' =>'px'], |
| 143 |
'style' => [ |
| 144 |
(object)[ |
| 145 |
'selector'=>'{{ULTP}} .ultp-block-post-module1 { margin: 0 -{{columnGridGap}};} {{ULTP}} .ultp-block-post-module1 .ultp-big-post-module1, {{ULTP}} .ultp-block-post-module1 .ultp-small-post-module1 { padding: 0 {{columnGridGap}};} {{ULTP}} .ultp-block-row {grid-column-gap: {{columnGridGap}}; }' |
| 146 |
], |
| 147 |
], |
| 148 |
], |
| 149 |
'largeHeight' => [ |
| 150 |
'type' => 'object', |
| 151 |
'default' => (object)['lg' =>'245', 'unit' =>'px'], |
| 152 |
'style' => [ |
| 153 |
(object)[ |
| 154 |
'selector'=>'{{ULTP}} .ultp-big-post-module1 .ultp-block-content-wrap .ultp-block-image img {width: 100%; object-fit: cover; height: {{largeHeight}};}' |
| 155 |
], |
| 156 |
], |
| 157 |
], |
| 158 |
'contentTag' => [ |
| 159 |
'type' => 'string', |
| 160 |
'default' => 'div', |
| 161 |
], |
| 162 |
'openInTab' => [ |
| 163 |
'type' => 'boolean', |
| 164 |
'default' => false, |
| 165 |
], |
| 166 |
|
| 167 |
//-------------------------- |
| 168 |
// Heading Setting/Style |
| 169 |
//-------------------------- |
| 170 |
'headingText' => [ |
| 171 |
'type' => 'string', |
| 172 |
'default' => 'Post Module #1', |
| 173 |
], |
| 174 |
'headingURL' => [ |
| 175 |
'type' => 'string', |
| 176 |
'default' => '', |
| 177 |
], |
| 178 |
'headingBtnText' => [ |
| 179 |
'type' => 'string', |
| 180 |
'default' => 'View More', |
| 181 |
'style' => [ |
| 182 |
(object)[ |
| 183 |
'depends' => [ |
| 184 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'], |
| 185 |
], |
| 186 |
], |
| 187 |
], |
| 188 |
], |
| 189 |
'headingStyle' => [ |
| 190 |
'type' => 'string', |
| 191 |
'default' => 'style9', |
| 192 |
], |
| 193 |
'headingTag' => [ |
| 194 |
'type' => 'string', |
| 195 |
'default' => 'h2', |
| 196 |
], |
| 197 |
'headingAlign' => [ |
| 198 |
'type' => 'string', |
| 199 |
'default' => 'left', |
| 200 |
'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-inner, {{ULTP}} .ultp-sub-heading-inner{ text-align:{{headingAlign}}; }']] |
| 201 |
], |
| 202 |
'headingTypo' => [ |
| 203 |
'type' => 'object', |
| 204 |
'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => 'uppercase', 'family'=>'','weight'=>'700'], |
| 205 |
'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-wrap .ultp-heading-inner']] |
| 206 |
], |
| 207 |
'headingColor' => [ |
| 208 |
'type' => 'string', |
| 209 |
'default' => '#0e1523', |
| 210 |
'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { color:{{headingColor}}; }']], |
| 211 |
], |
| 212 |
'headingBorderBottomColor' => [ |
| 213 |
'type' => 'string', |
| 214 |
'default' => '#0e1523', |
| 215 |
'style' => [ |
| 216 |
(object)[ |
| 217 |
'depends' => [ |
| 218 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], |
| 219 |
], |
| 220 |
'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-color:{{headingBorderBottomColor}}; }' |
| 221 |
], |
| 222 |
(object)[ |
| 223 |
'depends' => [ |
| 224 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'], |
| 225 |
], |
| 226 |
'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }' |
| 227 |
], |
| 228 |
(object)[ |
| 229 |
'depends' => [ |
| 230 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'], |
| 231 |
], |
| 232 |
'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }' |
| 233 |
], |
| 234 |
(object)[ |
| 235 |
'depends' => [ |
| 236 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'], |
| 237 |
], |
| 238 |
'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }' |
| 239 |
], |
| 240 |
(object)[ |
| 241 |
'depends' => [ |
| 242 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'], |
| 243 |
], |
| 244 |
'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }' |
| 245 |
], |
| 246 |
(object)[ |
| 247 |
'depends' => [ |
| 248 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'], |
| 249 |
], |
| 250 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }' |
| 251 |
], |
| 252 |
(object)[ |
| 253 |
'depends' => [ |
| 254 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'], |
| 255 |
], |
| 256 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }' |
| 257 |
], |
| 258 |
(object)[ |
| 259 |
'depends' => [ |
| 260 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'], |
| 261 |
], |
| 262 |
'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }' |
| 263 |
], |
| 264 |
(object)[ |
| 265 |
'depends' => [ |
| 266 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'], |
| 267 |
], |
| 268 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }' |
| 269 |
], |
| 270 |
(object)[ |
| 271 |
'depends' => [ |
| 272 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'], |
| 273 |
], |
| 274 |
'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }' |
| 275 |
], |
| 276 |
(object)[ |
| 277 |
'depends' => [ |
| 278 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'], |
| 279 |
], |
| 280 |
'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }' |
| 281 |
], |
| 282 |
(object)[ |
| 283 |
'depends' => [ |
| 284 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'], |
| 285 |
], |
| 286 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }' |
| 287 |
], |
| 288 |
(object)[ |
| 289 |
'depends' => [ |
| 290 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'], |
| 291 |
], |
| 292 |
'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }' |
| 293 |
], |
| 294 |
(object)[ |
| 295 |
'depends' => [ |
| 296 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'], |
| 297 |
], |
| 298 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before { border-color:{{headingBorderBottomColor}}; }' |
| 299 |
], |
| 300 |
], |
| 301 |
], |
| 302 |
'headingBorderBottomColor2' => [ |
| 303 |
'type' => 'string', |
| 304 |
'default' => '#e5e5e5', |
| 305 |
'style' => [ |
| 306 |
(object)[ |
| 307 |
'depends' => [ |
| 308 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'], |
| 309 |
], |
| 310 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor2}}; }' |
| 311 |
], |
| 312 |
(object)[ |
| 313 |
'depends' => [ |
| 314 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'], |
| 315 |
], |
| 316 |
'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }' |
| 317 |
], |
| 318 |
(object)[ |
| 319 |
'depends' => [ |
| 320 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'], |
| 321 |
], |
| 322 |
'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }' |
| 323 |
], |
| 324 |
(object)[ |
| 325 |
'depends' => [ |
| 326 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'], |
| 327 |
], |
| 328 |
'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }' |
| 329 |
], |
| 330 |
], |
| 331 |
], |
| 332 |
'headingBg' => [ |
| 333 |
'type' => 'string', |
| 334 |
'default' => '#037fff', |
| 335 |
'style' => [ |
| 336 |
(object)[ |
| 337 |
'depends' => [ |
| 338 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'], |
| 339 |
], |
| 340 |
'selector'=>'{{ULTP}} .ultp-heading-style5 .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' |
| 341 |
], |
| 342 |
(object)[ |
| 343 |
'depends' => [ |
| 344 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'], |
| 345 |
], |
| 346 |
'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' |
| 347 |
], |
| 348 |
(object)[ |
| 349 |
'depends' => [ |
| 350 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], |
| 351 |
], |
| 352 |
'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' |
| 353 |
], |
| 354 |
(object)[ |
| 355 |
'depends' => [ |
| 356 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'], |
| 357 |
], |
| 358 |
'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' |
| 359 |
], |
| 360 |
(object)[ |
| 361 |
'depends' => [ |
| 362 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'], |
| 363 |
], |
| 364 |
'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' |
| 365 |
], |
| 366 |
(object)[ |
| 367 |
'depends' => [ |
| 368 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'], |
| 369 |
], |
| 370 |
'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }' |
| 371 |
], |
| 372 |
(object)[ |
| 373 |
'depends' => [ |
| 374 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'], |
| 375 |
], |
| 376 |
'selector'=>'{{ULTP}} .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }' |
| 377 |
], |
| 378 |
], |
| 379 |
], |
| 380 |
'headingBg2' => [ |
| 381 |
'type' => 'string', |
| 382 |
'default' => '#e5e5e5', |
| 383 |
'style' => [ |
| 384 |
(object)[ |
| 385 |
'depends' => [ |
| 386 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'], |
| 387 |
], |
| 388 |
'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg2}}; }' |
| 389 |
], |
| 390 |
], |
| 391 |
], |
| 392 |
'headingBtnTypo' => [ |
| 393 |
'type' => 'object', |
| 394 |
'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '14', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none','family'=>''], |
| 395 |
'style' => [ |
| 396 |
(object)[ |
| 397 |
'depends' => [ |
| 398 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'], |
| 399 |
], |
| 400 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn' |
| 401 |
], |
| 402 |
], |
| 403 |
], |
| 404 |
'headingBtnColor' => [ |
| 405 |
'type' => 'string', |
| 406 |
'default' => '#037fff', |
| 407 |
'style' => [ |
| 408 |
(object)[ |
| 409 |
'depends' => [ |
| 410 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'], |
| 411 |
], |
| 412 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn { color:{{headingBtnColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn svg { fill:{{headingBtnColor}}; }' |
| 413 |
], |
| 414 |
], |
| 415 |
], |
| 416 |
'headingBtnHoverColor' => [ |
| 417 |
'type' => 'string', |
| 418 |
'default' => '#0a31da', |
| 419 |
'style' => [ |
| 420 |
(object)[ |
| 421 |
'depends' => [ |
| 422 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'], |
| 423 |
], |
| 424 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover { color:{{headingBtnHoverColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover svg { fill:{{headingBtnHoverColor}}; }' |
| 425 |
], |
| 426 |
], |
| 427 |
], |
| 428 |
|
| 429 |
'headingBorder' => [ |
| 430 |
'type' => 'string', |
| 431 |
'default' => '3', |
| 432 |
'style' => [ |
| 433 |
(object)[ |
| 434 |
'depends' => [ |
| 435 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], |
| 436 |
], |
| 437 |
'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-width:{{headingBorder}}px; }' |
| 438 |
], |
| 439 |
(object)[ |
| 440 |
'depends' => [ |
| 441 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'], |
| 442 |
], |
| 443 |
'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }' |
| 444 |
], |
| 445 |
(object)[ |
| 446 |
'depends' => [ |
| 447 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'], |
| 448 |
], |
| 449 |
'selector'=>'{{ULTP}} .ultp-heading-inner span:before { width:{{headingBorder}}px; }' |
| 450 |
], |
| 451 |
(object)[ |
| 452 |
'depends' => [ |
| 453 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'], |
| 454 |
], |
| 455 |
'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }' |
| 456 |
], |
| 457 |
(object)[ |
| 458 |
'depends' => [ |
| 459 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'], |
| 460 |
], |
| 461 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }' |
| 462 |
], |
| 463 |
(object)[ |
| 464 |
'depends' => [ |
| 465 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'], |
| 466 |
], |
| 467 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }' |
| 468 |
], |
| 469 |
(object)[ |
| 470 |
'depends' => [ |
| 471 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'], |
| 472 |
], |
| 473 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }' |
| 474 |
], |
| 475 |
(object)[ |
| 476 |
'depends' => [ |
| 477 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'], |
| 478 |
], |
| 479 |
'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }' |
| 480 |
], |
| 481 |
(object)[ |
| 482 |
'depends' => [ |
| 483 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'], |
| 484 |
], |
| 485 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }' |
| 486 |
], |
| 487 |
(object)[ |
| 488 |
'depends' => [ |
| 489 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'], |
| 490 |
], |
| 491 |
'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }' |
| 492 |
], |
| 493 |
(object)[ |
| 494 |
'depends' => [ |
| 495 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'], |
| 496 |
], |
| 497 |
'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }' |
| 498 |
], |
| 499 |
(object)[ |
| 500 |
'depends' => [ |
| 501 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'], |
| 502 |
], |
| 503 |
'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }' |
| 504 |
], |
| 505 |
(object)[ |
| 506 |
'depends' => [ |
| 507 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'], |
| 508 |
], |
| 509 |
'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }' |
| 510 |
], |
| 511 |
(object)[ |
| 512 |
'depends' => [ |
| 513 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'], |
| 514 |
], |
| 515 |
'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }' |
| 516 |
], |
| 517 |
], |
| 518 |
], |
| 519 |
'headingSpacing' => [ |
| 520 |
'type' => 'object', |
| 521 |
'default' => (object)['lg'=>30, 'unit'=>'px'], |
| 522 |
'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap {margin-top:0; margin-bottom:{{headingSpacing}}; }']] |
| 523 |
], |
| 524 |
|
| 525 |
|
| 526 |
'headingRadius' => [ |
| 527 |
'type' => 'object', |
| 528 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']], |
| 529 |
'style' => [ |
| 530 |
(object)[ |
| 531 |
'depends' => [ |
| 532 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'], |
| 533 |
], |
| 534 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }' |
| 535 |
], |
| 536 |
(object)[ |
| 537 |
'depends' => [ |
| 538 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], |
| 539 |
], |
| 540 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }' |
| 541 |
], |
| 542 |
(object)[ |
| 543 |
'depends' => [ |
| 544 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'], |
| 545 |
], |
| 546 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }' |
| 547 |
], |
| 548 |
(object)[ |
| 549 |
'depends' => [ |
| 550 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'], |
| 551 |
], |
| 552 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }' |
| 553 |
], |
| 554 |
(object)[ |
| 555 |
'depends' => [ |
| 556 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'], |
| 557 |
], |
| 558 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }' |
| 559 |
], |
| 560 |
(object)[ |
| 561 |
'depends' => [ |
| 562 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'], |
| 563 |
], |
| 564 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }' |
| 565 |
], |
| 566 |
(object)[ |
| 567 |
'depends' => [ |
| 568 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'], |
| 569 |
], |
| 570 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }' |
| 571 |
], |
| 572 |
(object)[ |
| 573 |
'depends' => [ |
| 574 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'], |
| 575 |
], |
| 576 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }' |
| 577 |
], |
| 578 |
] |
| 579 |
], |
| 580 |
|
| 581 |
|
| 582 |
'headingPadding' => [ |
| 583 |
'type' => 'object', |
| 584 |
'default' => (object)['lg'=>'', 'unit'=>'px'], |
| 585 |
'style' => [ |
| 586 |
(object)[ |
| 587 |
'depends' => [ |
| 588 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'], |
| 589 |
], |
| 590 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 591 |
], |
| 592 |
(object)[ |
| 593 |
'depends' => [ |
| 594 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], |
| 595 |
], |
| 596 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 597 |
], |
| 598 |
(object)[ |
| 599 |
'depends' => [ |
| 600 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'], |
| 601 |
], |
| 602 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 603 |
], |
| 604 |
(object)[ |
| 605 |
'depends' => [ |
| 606 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'], |
| 607 |
], |
| 608 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 609 |
], |
| 610 |
(object)[ |
| 611 |
'depends' => [ |
| 612 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'], |
| 613 |
], |
| 614 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 615 |
], |
| 616 |
(object)[ |
| 617 |
'depends' => [ |
| 618 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'], |
| 619 |
], |
| 620 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 621 |
], |
| 622 |
(object)[ |
| 623 |
'depends' => [ |
| 624 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'], |
| 625 |
], |
| 626 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 627 |
], |
| 628 |
(object)[ |
| 629 |
'depends' => [ |
| 630 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'], |
| 631 |
], |
| 632 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 633 |
], |
| 634 |
(object)[ |
| 635 |
'depends' => [ |
| 636 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'], |
| 637 |
], |
| 638 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 639 |
], |
| 640 |
(object)[ |
| 641 |
'depends' => [ |
| 642 |
(object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'], |
| 643 |
], |
| 644 |
'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 645 |
], |
| 646 |
] |
| 647 |
], |
| 648 |
'subHeadingShow' => [ |
| 649 |
'type' => 'boolean', |
| 650 |
'default' => false, |
| 651 |
], |
| 652 |
'subHeadingText' => [ |
| 653 |
'type' => 'string', |
| 654 |
'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.', |
| 655 |
'style' => [ |
| 656 |
(object)[ |
| 657 |
'depends' => [ |
| 658 |
(object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], |
| 659 |
], |
| 660 |
], |
| 661 |
], |
| 662 |
], |
| 663 |
'subHeadingTypo' => [ |
| 664 |
'type' => 'object', |
| 665 |
'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'16', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)[ 'lg'=>'27', 'unit'=>'px'],'decoration'=>'none','transform' => 'capitalize','family'=>'','weight'=>'500'], |
| 666 |
'style' => [ |
| 667 |
(object)[ |
| 668 |
'depends' => [ |
| 669 |
(object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], |
| 670 |
], |
| 671 |
'selector'=>'{{ULTP}} .ultp-sub-heading div' |
| 672 |
], |
| 673 |
], |
| 674 |
], |
| 675 |
'subHeadingColor' => [ |
| 676 |
'type' => 'string', |
| 677 |
'default' => '#989898', |
| 678 |
'style' => [ |
| 679 |
(object)[ |
| 680 |
'depends' => [ |
| 681 |
(object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], |
| 682 |
], |
| 683 |
'selector'=>'{{ULTP}} .ultp-sub-heading div{ color:{{subHeadingColor}}; }' |
| 684 |
], |
| 685 |
], |
| 686 |
], |
| 687 |
'subHeadingSpacing' => [ |
| 688 |
'type' => 'object', |
| 689 |
'default' => (object)['lg' =>(object)['unit' =>'px']], |
| 690 |
'style' => [ |
| 691 |
(object)[ |
| 692 |
'depends' => [ |
| 693 |
(object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], |
| 694 |
], |
| 695 |
'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }' |
| 696 |
], |
| 697 |
], |
| 698 |
], |
| 699 |
|
| 700 |
|
| 701 |
//-------------------------- |
| 702 |
// Title Setting/Style |
| 703 |
//-------------------------- |
| 704 |
'titleTag' => [ |
| 705 |
'type' => 'string', |
| 706 |
'default' => 'h3', |
| 707 |
], |
| 708 |
'titlePosition' => [ |
| 709 |
'type' => 'boolean', |
| 710 |
'default' => true, |
| 711 |
], |
| 712 |
'titleColor' => [ |
| 713 |
'type' => 'string', |
| 714 |
'default' => '#0e1523', |
| 715 |
'style' => [ |
| 716 |
(object)[ |
| 717 |
'depends' => [ |
| 718 |
(object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| 719 |
], |
| 720 |
'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a { color:{{titleColor}}; }' |
| 721 |
], |
| 722 |
], |
| 723 |
], |
| 724 |
'titleHoverColor' => [ |
| 725 |
'type' => 'string', |
| 726 |
'default' => '#828282', |
| 727 |
'style' => [ |
| 728 |
(object)[ |
| 729 |
'depends' => [ |
| 730 |
(object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| 731 |
], |
| 732 |
'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}}; }' |
| 733 |
], |
| 734 |
], |
| 735 |
], |
| 736 |
'titleLgTypo' => [ |
| 737 |
'type' => 'object', |
| 738 |
'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'24', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)[ 'lg'=>'32', 'unit'=>'px'],'decoration'=>'none','transform' => 'capitalize','family'=>'','weight'=>'500'], |
| 739 |
'style' => [ |
| 740 |
(object)[ |
| 741 |
'depends' => [ |
| 742 |
(object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| 743 |
], |
| 744 |
'selector'=>'{{ULTP}} .ultp-big-post-module1 .ultp-block-item:first-child .ultp-block-title, {{ULTP}} .ultp-big-post-module1 .ultp-block-item:first-child .ultp-block-title a' |
| 745 |
], |
| 746 |
], |
| 747 |
], |
| 748 |
'titleTypo' => [ |
| 749 |
'type' => 'object', |
| 750 |
'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'14', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)['lg'=>'22', 'unit'=>'px'],'transform' => 'capitalize', 'decoration'=>'none','family'=>'','weight'=>'500'], |
| 751 |
'style' => [ |
| 752 |
(object)[ |
| 753 |
'depends' => [ |
| 754 |
(object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| 755 |
], |
| 756 |
'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-title, {{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-title a' |
| 757 |
], |
| 758 |
], |
| 759 |
], |
| 760 |
'titlePadding' => [ |
| 761 |
'type' => 'object', |
| 762 |
'default' => (object)['lg'=>(object)['top'=>0,'bottom'=>5, 'unit'=>'px']], |
| 763 |
'style' => [ |
| 764 |
(object)[ |
| 765 |
'depends' => [ |
| 766 |
(object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| 767 |
], |
| 768 |
'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }' |
| 769 |
], |
| 770 |
], |
| 771 |
], |
| 772 |
'titleLgPadding' => [ |
| 773 |
'type' => 'object', |
| 774 |
'default' => (object)['lg'=>(object)['top'=>10,'bottom'=>8, 'unit'=>'px']], |
| 775 |
'style' => [ |
| 776 |
(object)[ |
| 777 |
'depends' => [ |
| 778 |
(object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| 779 |
], |
| 780 |
'selector'=>'{{ULTP}} .ultp-big-post-module1 .ultp-block-content .ultp-block-title { padding:{{titleLgPadding}}; }' |
| 781 |
], |
| 782 |
], |
| 783 |
], |
| 784 |
'titleLength' => [ |
| 785 |
'type' => 'string', |
| 786 |
'default' => 0, |
| 787 |
], |
| 788 |
|
| 789 |
//-------------------------- |
| 790 |
// Content Setting/Style |
| 791 |
//-------------------------- |
| 792 |
|
| 793 |
'varticalAlign' => [ |
| 794 |
'type' => 'string', |
| 795 |
'default' => 'middle', |
| 796 |
'style' => [ |
| 797 |
(object)[ |
| 798 |
'depends' => [ |
| 799 |
(object)['key'=>'varticalAlign','condition'=>'==','value'=>'top'], |
| 800 |
], |
| 801 |
'selector'=>'{{ULTP}} .ultp-block-content-top .ultp-block-content { -ms-flex-item-align: flex-start;-ms-grid-row-align: flex-start;align-self: flex-start; }' |
| 802 |
], |
| 803 |
(object)[ |
| 804 |
'depends' => [ |
| 805 |
(object)['key'=>'varticalAlign','condition'=>'==','value'=>'middle'], |
| 806 |
], |
| 807 |
'selector'=>'{{ULTP}} .ultp-block-content-middle .ultp-block-content { -ms-flex-item-align: center;-ms-grid-row-align: center;align-self: center; }' |
| 808 |
], |
| 809 |
(object)[ |
| 810 |
'depends' => [ |
| 811 |
(object)['key'=>'varticalAlign','condition'=>'==','value'=>'bottom'], |
| 812 |
], |
| 813 |
'selector'=>'{{ULTP}} .ultp-block-content-bottom .ultp-block-content { -ms-flex-item-align: flex-end;-ms-grid-row-align: flex-end;align-self: flex-end; }' |
| 814 |
], |
| 815 |
], |
| 816 |
], |
| 817 |
'showSeoMeta' => [ |
| 818 |
'type' => 'boolean', |
| 819 |
'default'=> false |
| 820 |
], |
| 821 |
'showSmallExcerpt' => [ |
| 822 |
'type' => 'boolean', |
| 823 |
'default'=> false, |
| 824 |
], |
| 825 |
'showFullExcerpt' => [ |
| 826 |
'type' => 'boolean', |
| 827 |
'default' => false, |
| 828 |
], |
| 829 |
'excerptLimit' => [ |
| 830 |
'type' => 'string', |
| 831 |
'default' => 20, |
| 832 |
'style' => [ |
| 833 |
(object)[ |
| 834 |
'depends' => [ |
| 835 |
(object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false] |
| 836 |
], |
| 837 |
], |
| 838 |
], |
| 839 |
], |
| 840 |
'excerptColor' => [ |
| 841 |
'type' => 'string', |
| 842 |
'default' => '#777', |
| 843 |
'style' => [ |
| 844 |
(object)[ |
| 845 |
'depends' => [ |
| 846 |
(object)['key'=>'excerptShow','condition'=>'==','value'=>true], |
| 847 |
], |
| 848 |
'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }' |
| 849 |
], |
| 850 |
], |
| 851 |
], |
| 852 |
'excerptTypo' => [ |
| 853 |
'type' => 'object', |
| 854 |
'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''], |
| 855 |
'style' => [ |
| 856 |
(object)[ |
| 857 |
'depends' => [ |
| 858 |
(object)['key'=>'excerptShow','condition'=>'==','value'=>true], |
| 859 |
], |
| 860 |
'selector'=>'{{ULTP}} .ultp-block-excerpt, {{ULTP}} .ultp-block-excerpt p' |
| 861 |
], |
| 862 |
], |
| 863 |
], |
| 864 |
'excerptPadding' => [ |
| 865 |
'type' => 'object', |
| 866 |
'default' => (object)['lg' =>(object)['top' => 5,'bottom' => '', 'unit' =>'px']], |
| 867 |
'style' => [ |
| 868 |
(object)[ |
| 869 |
'depends' => [ |
| 870 |
(object)['key'=>'excerptShow','condition'=>'==','value'=>true], |
| 871 |
], |
| 872 |
'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }' |
| 873 |
], |
| 874 |
], |
| 875 |
], |
| 876 |
|
| 877 |
//-------------------------- |
| 878 |
// Count Style Setting/Style |
| 879 |
//-------------------------- |
| 880 |
'counterTypo' => [ |
| 881 |
'type' => 'object', |
| 882 |
'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>14, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>0, 'unit' =>'px'], 'transform' => 'capitalize', 'weight' => '400', 'decoration' => 'none','family'=>'' ], |
| 883 |
'style' => [ |
| 884 |
(object)[ |
| 885 |
'depends' => [ |
| 886 |
(object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']], |
| 887 |
], |
| 888 |
'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before' |
| 889 |
], |
| 890 |
], |
| 891 |
], |
| 892 |
'counterColor' => [ |
| 893 |
'type' => 'string', |
| 894 |
'default' => '#828282', |
| 895 |
'style' => [ |
| 896 |
(object)[ |
| 897 |
'depends' => [ |
| 898 |
(object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']], |
| 899 |
], |
| 900 |
'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { color:{{counterColor}}; }' |
| 901 |
], |
| 902 |
] |
| 903 |
], |
| 904 |
'counterBgColor' => [ |
| 905 |
'type' => 'object', |
| 906 |
'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''], |
| 907 |
'style' => [ |
| 908 |
(object)[ |
| 909 |
'depends' => [ |
| 910 |
(object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']], |
| 911 |
], |
| 912 |
'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before' |
| 913 |
], |
| 914 |
], |
| 915 |
], |
| 916 |
'counterWidth' => [ |
| 917 |
'type' => 'string', |
| 918 |
'default' => '', |
| 919 |
'style' => [ |
| 920 |
(object)[ |
| 921 |
'depends' => [ |
| 922 |
(object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']], |
| 923 |
], |
| 924 |
'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { width:{{counterWidth}}px; }' |
| 925 |
], |
| 926 |
] |
| 927 |
], |
| 928 |
'counterHeight' => [ |
| 929 |
'type' => 'string', |
| 930 |
'default' => '', |
| 931 |
'style' => [ |
| 932 |
(object)[ |
| 933 |
'depends' => [ |
| 934 |
(object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']], |
| 935 |
], |
| 936 |
'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { height:{{counterHeight}}px; }' |
| 937 |
], |
| 938 |
] |
| 939 |
], |
| 940 |
'counterBorder' => [ |
| 941 |
'type' => 'object', |
| 942 |
'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], |
| 943 |
'style' => [ |
| 944 |
(object)[ |
| 945 |
'depends' => [ |
| 946 |
(object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']], |
| 947 |
], |
| 948 |
'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before' |
| 949 |
], |
| 950 |
], |
| 951 |
], |
| 952 |
'counterRadius' => [ |
| 953 |
'type' => 'object', |
| 954 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 955 |
'style' => [ |
| 956 |
(object)[ |
| 957 |
'depends' => [ |
| 958 |
(object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']], |
| 959 |
], |
| 960 |
'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { border-radius:{{counterRadius}}; }' |
| 961 |
], |
| 962 |
], |
| 963 |
], |
| 964 |
|
| 965 |
//-------------------------- |
| 966 |
// Category Setting/Style |
| 967 |
//-------------------------- |
| 968 |
'showSmallCat' => [ |
| 969 |
'type' => 'boolean', |
| 970 |
'default' => false, |
| 971 |
], |
| 972 |
'catStyle' => [ |
| 973 |
'type' => 'string', |
| 974 |
'default' => 'classic', |
| 975 |
], |
| 976 |
'catPosition' => [ |
| 977 |
'type' => 'string', |
| 978 |
'default' => 'aboveTitle', |
| 979 |
], |
| 980 |
'customCatColor' => [ |
| 981 |
'type' => 'boolean', |
| 982 |
'default' => false, |
| 983 |
], |
| 984 |
'seperatorLink' => [ |
| 985 |
'type' => 'string', |
| 986 |
'default' => admin_url( 'edit-tags.php?taxonomy=category' ), |
| 987 |
'style' => [ |
| 988 |
(object)[ |
| 989 |
'depends' => [ |
| 990 |
(object)['key'=>'customCatColor','condition'=>'==','value'=>true], |
| 991 |
] |
| 992 |
] |
| 993 |
] |
| 994 |
], |
| 995 |
'onlyCatColor' => [ |
| 996 |
'type' => 'boolean', |
| 997 |
'default' => false, |
| 998 |
'style' => [ |
| 999 |
(object)[ |
| 1000 |
'depends' => [ |
| 1001 |
(object)['key'=>'customCatColor','condition'=>'==','value'=>true], |
| 1002 |
] |
| 1003 |
] |
| 1004 |
] |
| 1005 |
], |
| 1006 |
'catLineWidth' => [ |
| 1007 |
'type' => 'object', |
| 1008 |
'default' => (object)['lg'=>'20'], |
| 1009 |
'style' => [ |
| 1010 |
(object)[ |
| 1011 |
'depends' => [ |
| 1012 |
(object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'], |
| 1013 |
], |
| 1014 |
'selector' => '{{ULTP}} .ultp-category-borderRight .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:after, {{ULTP}} .ultp-category-borderLeft .ultp-category-in:before { width:{{catLineWidth}}px; }' |
| 1015 |
], |
| 1016 |
] |
| 1017 |
], |
| 1018 |
'catLineSpacing' => [ |
| 1019 |
'type' => 'object', |
| 1020 |
'default' => (object)['lg'=>'30'], |
| 1021 |
'style' => [ |
| 1022 |
(object)[ |
| 1023 |
'depends' => [ |
| 1024 |
(object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'], |
| 1025 |
], |
| 1026 |
'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; } |
| 1027 |
{{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; } |
| 1028 |
{{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }' |
| 1029 |
], |
| 1030 |
] |
| 1031 |
], |
| 1032 |
'catLineColor' => [ |
| 1033 |
'type' => 'string', |
| 1034 |
'default' => '#828282', |
| 1035 |
'style' => [ |
| 1036 |
(object)[ |
| 1037 |
'depends' => [ |
| 1038 |
(object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'], |
| 1039 |
], |
| 1040 |
'selector' => '{{ULTP}} .ultp-category-borderRight .ultp-category-in:before, {{ULTP}} .ultp-category-borderLeft .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:after, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:before { background:{{catLineColor}}; }' |
| 1041 |
], |
| 1042 |
] |
| 1043 |
], |
| 1044 |
'catLineHoverColor' => [ |
| 1045 |
'type' => 'string', |
| 1046 |
'default' => '#037fff', |
| 1047 |
'style' => [ |
| 1048 |
(object)[ |
| 1049 |
'depends' => [ |
| 1050 |
(object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'], |
| 1051 |
], |
| 1052 |
'selector' => '{{ULTP}} .ultp-category-borderBoth:hover .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth:hover .ultp-category-in:after, {{ULTP}} .ultp-category-borderLeft:hover .ultp-category-in:before, {{ULTP}} .ultp-category-borderRight:hover .ultp-category-in:before { background:{{catLineHoverColor}}; }' |
| 1053 |
], |
| 1054 |
] |
| 1055 |
], |
| 1056 |
'catTypo' => [ |
| 1057 |
'type' => 'object', |
| 1058 |
'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>14, 'unit' =>'px'], 'height' => (object)['lg' =>20, 'unit' =>'px'], 'spacing' => (object)['lg' =>0, 'unit' =>'px'], 'transform' => 'capitalize', 'weight' => '400', 'decoration' => 'none','family'=>'' ], |
| 1059 |
'style' => [ |
| 1060 |
(object)[ |
| 1061 |
'depends' => [ |
| 1062 |
(object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1063 |
], |
| 1064 |
'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a' |
| 1065 |
], |
| 1066 |
], |
| 1067 |
], |
| 1068 |
'catColor' => [ |
| 1069 |
'type' => 'string', |
| 1070 |
'default' => '#037fff', |
| 1071 |
'style' => [ |
| 1072 |
(object)[ |
| 1073 |
'depends' => [ |
| 1074 |
(object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1075 |
(object)['key'=>'customCatColor','condition'=>'!=','value'=>true], |
| 1076 |
], |
| 1077 |
'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }' |
| 1078 |
], |
| 1079 |
], |
| 1080 |
], |
| 1081 |
'catBgColor' => [ |
| 1082 |
'type' => 'object', |
| 1083 |
'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''], |
| 1084 |
'style' => [ |
| 1085 |
(object)[ |
| 1086 |
'depends' => [ |
| 1087 |
(object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1088 |
(object)['key'=>'customCatColor','condition'=>'!=','value'=>true], |
| 1089 |
], |
| 1090 |
'selector'=>'{{ULTP}} .ultp-category-grid a' |
| 1091 |
], |
| 1092 |
], |
| 1093 |
], |
| 1094 |
'catBorder' => [ |
| 1095 |
'type' => 'object', |
| 1096 |
'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], |
| 1097 |
'style' => [ |
| 1098 |
(object)[ |
| 1099 |
'depends' => [ |
| 1100 |
(object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1101 |
(object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true], |
| 1102 |
], |
| 1103 |
'selector'=>'{{ULTP}} .ultp-category-grid a' |
| 1104 |
], |
| 1105 |
], |
| 1106 |
], |
| 1107 |
'catRadius' => [ |
| 1108 |
'type' => 'object', |
| 1109 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 1110 |
'style' => [ |
| 1111 |
(object)[ |
| 1112 |
'depends' => [ |
| 1113 |
(object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1114 |
(object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true], |
| 1115 |
], |
| 1116 |
'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }' |
| 1117 |
], |
| 1118 |
], |
| 1119 |
], |
| 1120 |
'catHoverColor' => [ |
| 1121 |
'type' => 'string', |
| 1122 |
'default' => '#828282', |
| 1123 |
'style' => [ |
| 1124 |
(object)[ |
| 1125 |
'depends' => [ |
| 1126 |
(object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1127 |
(object)['key'=>'customCatColor','condition'=>'!=','value'=>true], |
| 1128 |
], |
| 1129 |
'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }' |
| 1130 |
], |
| 1131 |
], |
| 1132 |
], |
| 1133 |
'catBgHoverColor' => [ |
| 1134 |
'type' => 'object', |
| 1135 |
'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => ''], |
| 1136 |
'style' => [ |
| 1137 |
(object)[ |
| 1138 |
'depends' => [ |
| 1139 |
(object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1140 |
(object)['key'=>'customCatColor','condition'=>'!=','value'=>true], |
| 1141 |
], |
| 1142 |
'selector'=>'{{ULTP}} .ultp-category-grid a:hover' |
| 1143 |
], |
| 1144 |
], |
| 1145 |
], |
| 1146 |
'catHoverBorder' => [ |
| 1147 |
'type' => 'object', |
| 1148 |
'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], |
| 1149 |
'style' => [ |
| 1150 |
(object)[ |
| 1151 |
'depends' => [ |
| 1152 |
(object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1153 |
(object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true], |
| 1154 |
], |
| 1155 |
'selector'=>'{{ULTP}} .ultp-category-grid a:hover' |
| 1156 |
], |
| 1157 |
], |
| 1158 |
], |
| 1159 |
'catSacing' => [ |
| 1160 |
'type' => 'object', |
| 1161 |
'default' => (object)['lg' =>(object)['top' => 5,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']], |
| 1162 |
'style' => [ |
| 1163 |
(object)[ |
| 1164 |
'depends' => [ |
| 1165 |
(object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1166 |
], |
| 1167 |
'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }' |
| 1168 |
], |
| 1169 |
], |
| 1170 |
], |
| 1171 |
'catPadding' => [ |
| 1172 |
'type' => 'object', |
| 1173 |
'default' => (object)['lg' =>(object)['unit' =>'px']], |
| 1174 |
'style' => [ |
| 1175 |
(object)[ |
| 1176 |
'depends' => [ |
| 1177 |
(object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1178 |
(object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true], |
| 1179 |
], |
| 1180 |
'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }' |
| 1181 |
], |
| 1182 |
], |
| 1183 |
], |
| 1184 |
|
| 1185 |
//-------------------------- |
| 1186 |
// Meta Setting/Style |
| 1187 |
//-------------------------- |
| 1188 |
'showSmallMeta' => [ |
| 1189 |
'type' => 'boolean', |
| 1190 |
'default' => true, |
| 1191 |
], |
| 1192 |
'metaPosition' => [ |
| 1193 |
'type' => 'string', |
| 1194 |
'default' => 'top', |
| 1195 |
], |
| 1196 |
'metaStyle' => [ |
| 1197 |
'type' => 'string', |
| 1198 |
'default' => 'icon', |
| 1199 |
], |
| 1200 |
'metaSeparator' => [ |
| 1201 |
'type' => 'string', |
| 1202 |
'default' => 'dot', |
| 1203 |
], |
| 1204 |
'metaList' => [ |
| 1205 |
'type' => 'string', |
| 1206 |
'default' => '["metaAuthor","metaDate","metaRead"]', |
| 1207 |
], |
| 1208 |
'metaListSmall' => [ |
| 1209 |
'type' => 'string', |
| 1210 |
'default' => '["metaAuthor","metaDate"]', |
| 1211 |
], |
| 1212 |
'metaTypo' => [ |
| 1213 |
'type' => 'object', |
| 1214 |
'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''], |
| 1215 |
'style' => [ |
| 1216 |
(object)[ |
| 1217 |
'depends' => [ |
| 1218 |
(object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1219 |
], |
| 1220 |
'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a' |
| 1221 |
], |
| 1222 |
], |
| 1223 |
], |
| 1224 |
'metaColor' => [ |
| 1225 |
'type' => 'string', |
| 1226 |
'default' => '#989898', |
| 1227 |
'style' => [ |
| 1228 |
(object)[ |
| 1229 |
'depends' => [ |
| 1230 |
(object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1231 |
], |
| 1232 |
'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span { color: {{metaColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span svg { fill: {{metaColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span a { color: {{metaColor}}; }{{ULTP}} .ultp-block-meta-dot span:after { background:{{metaColor}}; } {{ULTP}} .ultp-block-meta span:after { color:{{metaColor}}; }' |
| 1233 |
], |
| 1234 |
], |
| 1235 |
], |
| 1236 |
'metaHoverColor' => [ |
| 1237 |
'type' => 'string', |
| 1238 |
'default' => '#000', |
| 1239 |
'style' => [ |
| 1240 |
(object)[ |
| 1241 |
'depends' => [ |
| 1242 |
(object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1243 |
], |
| 1244 |
'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }' |
| 1245 |
], |
| 1246 |
], |
| 1247 |
], |
| 1248 |
'metaSpacing' => [ |
| 1249 |
'type' => 'object', |
| 1250 |
'default' => (object)['lg' =>'10', 'unit' =>'px'], |
| 1251 |
'style' => [ |
| 1252 |
(object)[ |
| 1253 |
'depends' => [ |
| 1254 |
(object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1255 |
], |
| 1256 |
'selector'=>'{{ULTP}} .ultp-block-meta span { margin-right:{{metaSpacing}}; } {{ULTP}} .ultp-block-meta span { padding-left: {{metaSpacing}}; } .rtl {{ULTP}} .ultp-block-meta span {margin-right:0; margin-left:{{metaSpacing}}; } .rtl {{ULTP}} .ultp-block-meta span { padding-left:0; padding-right: {{metaSpacing}}; }' |
| 1257 |
], |
| 1258 |
(object)[ |
| 1259 |
'depends' => [ |
| 1260 |
(object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1261 |
(object)['key'=>'contentAlign','condition'=>'==','value'=>'right'], |
| 1262 |
], |
| 1263 |
'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:last-child{margin-right:0px;}' |
| 1264 |
], |
| 1265 |
], |
| 1266 |
], |
| 1267 |
'metaMargin' => [ |
| 1268 |
'type' => 'object', |
| 1269 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '0', 'left'=>'','right'=>'', 'unit' =>'px']], |
| 1270 |
'style' => [ |
| 1271 |
(object)[ |
| 1272 |
'depends' => [ |
| 1273 |
(object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1274 |
], |
| 1275 |
'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }' |
| 1276 |
], |
| 1277 |
], |
| 1278 |
], |
| 1279 |
'metaPadding' => [ |
| 1280 |
'type' => 'object', |
| 1281 |
'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']], |
| 1282 |
'style' => [ |
| 1283 |
(object)[ |
| 1284 |
'depends' => [ |
| 1285 |
(object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1286 |
], |
| 1287 |
'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }' |
| 1288 |
], |
| 1289 |
], |
| 1290 |
], |
| 1291 |
'metaBorder' => [ |
| 1292 |
'type' => 'object', |
| 1293 |
'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'], |
| 1294 |
'style' => [ |
| 1295 |
(object)[ |
| 1296 |
'depends' => [ |
| 1297 |
(object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1298 |
], |
| 1299 |
'selector'=>'{{ULTP}} .ultp-block-meta' |
| 1300 |
], |
| 1301 |
], |
| 1302 |
], |
| 1303 |
'metaBg' => [ |
| 1304 |
'type' => 'string', |
| 1305 |
'default' => '', |
| 1306 |
'style' => [ |
| 1307 |
(object)[ |
| 1308 |
'depends' => [ |
| 1309 |
(object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1310 |
], |
| 1311 |
'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }' |
| 1312 |
], |
| 1313 |
], |
| 1314 |
], |
| 1315 |
|
| 1316 |
|
| 1317 |
//-------------------------- |
| 1318 |
// Inner Content Setting/Style |
| 1319 |
//-------------------------- |
| 1320 |
'contentAlign' => [ |
| 1321 |
'type' => 'string', |
| 1322 |
'default' => "left", |
| 1323 |
'style' => [ |
| 1324 |
(object)[ |
| 1325 |
'depends' => [ |
| 1326 |
(object)['key'=>'contentAlign','condition'=>'==','value'=>'left'], |
| 1327 |
], |
| 1328 |
'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}' |
| 1329 |
], |
| 1330 |
(object)[ |
| 1331 |
'depends' => [ |
| 1332 |
(object)['key'=>'contentAlign','condition'=>'==','value'=>'center'], |
| 1333 |
], |
| 1334 |
'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}' |
| 1335 |
], |
| 1336 |
(object)[ |
| 1337 |
'depends' => [ |
| 1338 |
(object)['key'=>'contentAlign','condition'=>'==','value'=>'right'], |
| 1339 |
], |
| 1340 |
'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;} .rtl {{ULTP}} .ultp-block-meta {justify-content: start;}' |
| 1341 |
], |
| 1342 |
(object)[ |
| 1343 |
'depends' => [ |
| 1344 |
(object)['key'=>'contentAlign','condition'=>'==','value'=>'right'], |
| 1345 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1346 |
], |
| 1347 |
'selector'=>' .rtl {{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a {display:flex; flex-direction:row-reverse;justify-content: flex-end;}' |
| 1348 |
], |
| 1349 |
], |
| 1350 |
], |
| 1351 |
'contentWrapBg' => [ |
| 1352 |
'type' => 'string', |
| 1353 |
'default' => '', |
| 1354 |
'style' => [ |
| 1355 |
(object)[ |
| 1356 |
'selector'=>'{{ULTP}} .ultp-block-content-wrap { background:{{contentWrapBg}}; }' |
| 1357 |
], |
| 1358 |
], |
| 1359 |
], |
| 1360 |
'contentWrapHoverBg' => [ |
| 1361 |
'type' => 'string', |
| 1362 |
'style' => [ |
| 1363 |
(object)[ |
| 1364 |
'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { background:{{contentWrapHoverBg}}; }' |
| 1365 |
], |
| 1366 |
], |
| 1367 |
], |
| 1368 |
'contentWrapBorder' => [ |
| 1369 |
'type' => 'object', |
| 1370 |
'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], |
| 1371 |
'style' => [ |
| 1372 |
(object)[ |
| 1373 |
'selector'=>'{{ULTP}} .ultp-block-content-wrap' |
| 1374 |
], |
| 1375 |
], |
| 1376 |
], |
| 1377 |
'contentWrapHoverBorder' => [ |
| 1378 |
'type' => 'object', |
| 1379 |
'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], |
| 1380 |
'style' => [ |
| 1381 |
(object)[ |
| 1382 |
'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover' |
| 1383 |
], |
| 1384 |
], |
| 1385 |
], |
| 1386 |
'contentWrapRadius' => [ |
| 1387 |
'type' => 'object', |
| 1388 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']], |
| 1389 |
'style' => [ |
| 1390 |
(object)[ |
| 1391 |
'selector'=>'{{ULTP}} .ultp-block-content-wrap { border-radius: {{contentWrapRadius}}; }' |
| 1392 |
], |
| 1393 |
], |
| 1394 |
], |
| 1395 |
'contentWrapHoverRadius' => [ |
| 1396 |
'type' => 'object', |
| 1397 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']], |
| 1398 |
'style' => [ |
| 1399 |
(object)[ |
| 1400 |
'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { border-radius: {{contentWrapHoverRadius}}; }' |
| 1401 |
], |
| 1402 |
], |
| 1403 |
], |
| 1404 |
'contentWrapShadow' => [ |
| 1405 |
'type' => 'object', |
| 1406 |
'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], |
| 1407 |
'style' => [ |
| 1408 |
(object)[ |
| 1409 |
'selector'=>'{{ULTP}} .ultp-block-content-wrap' |
| 1410 |
], |
| 1411 |
], |
| 1412 |
], |
| 1413 |
'contentWrapHoverShadow' => [ |
| 1414 |
'type' => 'object', |
| 1415 |
'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], |
| 1416 |
'style' => [ |
| 1417 |
(object)[ |
| 1418 |
'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover' |
| 1419 |
], |
| 1420 |
], |
| 1421 |
], |
| 1422 |
|
| 1423 |
'contentWrapInnerPadding' => [ |
| 1424 |
'type' => 'object', |
| 1425 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']], |
| 1426 |
'style' => [ |
| 1427 |
(object)[ |
| 1428 |
'selector'=>'{{ULTP}} .ultp-block-content { padding: {{contentWrapInnerPadding}}; }' |
| 1429 |
], |
| 1430 |
], |
| 1431 |
], |
| 1432 |
'contentWrapPadding' => [ |
| 1433 |
'type' => 'object', |
| 1434 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']], |
| 1435 |
'style' => [ |
| 1436 |
(object)[ |
| 1437 |
'selector'=>'{{ULTP}} .ultp-block-content-wrap { padding: {{contentWrapPadding}}; }' |
| 1438 |
], |
| 1439 |
], |
| 1440 |
], |
| 1441 |
|
| 1442 |
|
| 1443 |
//-------------------------- |
| 1444 |
// Image Setting/Style |
| 1445 |
//-------------------------- |
| 1446 |
'columnFlip' => [ |
| 1447 |
'type' => 'boolean', |
| 1448 |
'default' => false, |
| 1449 |
], |
| 1450 |
'imgCrop' => [ |
| 1451 |
'type' => 'string', |
| 1452 |
'default' => 'full', |
| 1453 |
'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']] |
| 1454 |
], |
| 1455 |
'imgCropSmall' => [ |
| 1456 |
'type' => 'string', |
| 1457 |
'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_square'), |
| 1458 |
'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']] |
| 1459 |
], |
| 1460 |
'imgWidth' => [ |
| 1461 |
'type' => 'object', |
| 1462 |
'default' => (object)['lg' =>'80', 'sm' =>'65', 'xs' =>'', 'unit' =>'px'], |
| 1463 |
'style' => [ |
| 1464 |
(object)[ |
| 1465 |
'depends' => [ |
| 1466 |
(object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1467 |
], |
| 1468 |
'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { max-width: {{imgWidth}}; }' |
| 1469 |
], |
| 1470 |
], |
| 1471 |
], |
| 1472 |
'imgHeight' => [ |
| 1473 |
'type' => 'object', |
| 1474 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 1475 |
'style' => [ |
| 1476 |
(object)[ |
| 1477 |
'depends' => [ |
| 1478 |
(object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1479 |
], |
| 1480 |
'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image img {object-fit: cover; height: {{imgHeight}}; }' |
| 1481 |
], |
| 1482 |
], |
| 1483 |
], |
| 1484 |
'imgAnimation' => [ |
| 1485 |
'type' => 'string', |
| 1486 |
'default' => 'opacity', |
| 1487 |
], |
| 1488 |
'imgGrayScale' => [ |
| 1489 |
'type' => 'object', |
| 1490 |
'default' => (object)['lg' =>'0', 'unit' =>'%'], |
| 1491 |
'style' => [ |
| 1492 |
(object)[ |
| 1493 |
'depends' => [ |
| 1494 |
(object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1495 |
], |
| 1496 |
'selector'=>'{{ULTP}} .ultp-block-image { filter: grayscale({{imgGrayScale}}); }' |
| 1497 |
], |
| 1498 |
], |
| 1499 |
], |
| 1500 |
'imgHoverGrayScale' => [ |
| 1501 |
'type' => 'object', |
| 1502 |
'default' => (object)['lg' =>'0', 'unit' =>'%'], |
| 1503 |
'style' => [ |
| 1504 |
(object)[ |
| 1505 |
'depends' => [ |
| 1506 |
(object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1507 |
], |
| 1508 |
'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { filter: grayscale({{imgHoverGrayScale}}); }' |
| 1509 |
], |
| 1510 |
], |
| 1511 |
], |
| 1512 |
'imgRadius' => [ |
| 1513 |
'type' => 'object', |
| 1514 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 1515 |
'style' => [ |
| 1516 |
(object)[ |
| 1517 |
'depends' => [ |
| 1518 |
(object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1519 |
], |
| 1520 |
'selector'=>'{{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }' |
| 1521 |
], |
| 1522 |
], |
| 1523 |
], |
| 1524 |
'imgHoverRadius' => [ |
| 1525 |
'type' => 'object', |
| 1526 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 1527 |
'style' => [ |
| 1528 |
(object)[ |
| 1529 |
'depends' => [ |
| 1530 |
(object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1531 |
], |
| 1532 |
'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }' |
| 1533 |
], |
| 1534 |
], |
| 1535 |
], |
| 1536 |
'imgShadow' => [ |
| 1537 |
'type' => 'object', |
| 1538 |
'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], |
| 1539 |
'style' => [ |
| 1540 |
(object)[ |
| 1541 |
'depends' => [ |
| 1542 |
(object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1543 |
], |
| 1544 |
'selector'=>'{{ULTP}} .ultp-block-image' |
| 1545 |
], |
| 1546 |
], |
| 1547 |
], |
| 1548 |
'imgHoverShadow' => [ |
| 1549 |
'type' => 'object', |
| 1550 |
'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], |
| 1551 |
'style' => [ |
| 1552 |
(object)[ |
| 1553 |
'depends' => [ |
| 1554 |
(object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1555 |
], |
| 1556 |
'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image' |
| 1557 |
], |
| 1558 |
], |
| 1559 |
], |
| 1560 |
'imgSpacing' => [ |
| 1561 |
'type' => 'object', |
| 1562 |
'default' => (object)['lg'=>'20'], |
| 1563 |
'style' => [ |
| 1564 |
(object)[ |
| 1565 |
'depends' => [ |
| 1566 |
(object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1567 |
(object)['key'=>'layout','condition'=>'!=','value'=>'layout2'], |
| 1568 |
], |
| 1569 |
'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-right: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-right: 0; margin-left: {{imgSpacing}}px; }' |
| 1570 |
], |
| 1571 |
(object)[ |
| 1572 |
'depends' => [ |
| 1573 |
(object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1574 |
(object)['key'=>'layout','condition'=>'==','value'=>'layout2'], |
| 1575 |
], |
| 1576 |
'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-left: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-left: 0; margin-right: {{imgSpacing}}px; }' |
| 1577 |
], |
| 1578 |
], |
| 1579 |
], |
| 1580 |
'imgOverlay' => [ |
| 1581 |
'type' => 'boolean', |
| 1582 |
'default' => false, |
| 1583 |
], |
| 1584 |
'imgOverlayType' => [ |
| 1585 |
'type' => 'string', |
| 1586 |
'default' => 'default', |
| 1587 |
'style' => [ |
| 1588 |
(object)[ |
| 1589 |
'depends' => [ |
| 1590 |
(object)['key'=>'imgOverlay','condition'=>'==','value'=>true], |
| 1591 |
] |
| 1592 |
], |
| 1593 |
] |
| 1594 |
], |
| 1595 |
'overlayColor' => [ |
| 1596 |
'type' => 'object', |
| 1597 |
'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'], |
| 1598 |
'style' => [ |
| 1599 |
(object)[ |
| 1600 |
'depends' => [ |
| 1601 |
(object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'], |
| 1602 |
], |
| 1603 |
'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before' |
| 1604 |
], |
| 1605 |
], |
| 1606 |
|
| 1607 |
], |
| 1608 |
'imgOpacity' => [ |
| 1609 |
'type' => 'string', |
| 1610 |
'default' => .7, |
| 1611 |
'style' => [ |
| 1612 |
(object)[ |
| 1613 |
'depends' => [ |
| 1614 |
(object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'], |
| 1615 |
], |
| 1616 |
'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }' |
| 1617 |
], |
| 1618 |
], |
| 1619 |
], |
| 1620 |
|
| 1621 |
//-------------------------- |
| 1622 |
// Separator |
| 1623 |
//-------------------------- |
| 1624 |
'separatorShow' => [ |
| 1625 |
'type' => 'boolean', |
| 1626 |
'default' => false, |
| 1627 |
], |
| 1628 |
'septColor' => [ |
| 1629 |
'type' => 'string', |
| 1630 |
'default' => '#e5e5e5', |
| 1631 |
'style' => [ |
| 1632 |
(object)[ |
| 1633 |
'depends' => [ |
| 1634 |
(object)['key'=>'separatorShow','condition'=>'==','value'=>true], |
| 1635 |
], |
| 1636 |
'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { border-bottom-color:{{septColor}}; }' |
| 1637 |
], |
| 1638 |
], |
| 1639 |
], |
| 1640 |
'septStyle' => [ |
| 1641 |
'type' => 'string', |
| 1642 |
'default' => 'dashed', |
| 1643 |
'style' => [ |
| 1644 |
(object)[ |
| 1645 |
'depends' => [ |
| 1646 |
(object)['key'=>'separatorShow','condition'=>'==','value'=>true], |
| 1647 |
], |
| 1648 |
'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { border-bottom-style:{{septStyle}}; }' |
| 1649 |
], |
| 1650 |
], |
| 1651 |
], |
| 1652 |
'septSize' => [ |
| 1653 |
'type' => 'string', |
| 1654 |
'default' => (object)['lg'=>'1'], |
| 1655 |
'style' => [ |
| 1656 |
(object)[ |
| 1657 |
'depends' => [ |
| 1658 |
(object)['key'=>'separatorShow','condition'=>'==','value'=>true], |
| 1659 |
], |
| 1660 |
'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { border-bottom-width: {{septSize}}px; }' |
| 1661 |
], |
| 1662 |
], |
| 1663 |
], |
| 1664 |
'septSpace' => [ |
| 1665 |
'type' => 'object', |
| 1666 |
'default' => (object)['lg'=>'15'], |
| 1667 |
'style' => [ |
| 1668 |
(object)[ |
| 1669 |
'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { padding-bottom: {{septSpace}}px; } {{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { margin-bottom: {{septSpace}}px; }' |
| 1670 |
], |
| 1671 |
], |
| 1672 |
], |
| 1673 |
|
| 1674 |
//-------------------------- |
| 1675 |
// Read more Setting/Style |
| 1676 |
//-------------------------- |
| 1677 |
'showSmallBtn' => [ |
| 1678 |
'type' => 'boolean', |
| 1679 |
'default' => false, |
| 1680 |
], |
| 1681 |
'readMoreText' => [ |
| 1682 |
'type' => 'string', |
| 1683 |
'default' => '' |
| 1684 |
], |
| 1685 |
'readMoreIcon' => [ |
| 1686 |
'type' => 'string', |
| 1687 |
'default' => 'rightArrowLg', |
| 1688 |
], |
| 1689 |
'readMoreTypo' => [ |
| 1690 |
'type' => 'object', |
| 1691 |
'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => 'uppercase', 'weight' => '400', 'decoration' => 'none','family'=>'' ], |
| 1692 |
'style' => [ |
| 1693 |
(object)[ |
| 1694 |
'depends' => [ |
| 1695 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1696 |
], |
| 1697 |
'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a' |
| 1698 |
], |
| 1699 |
], |
| 1700 |
], |
| 1701 |
'readMoreIconSize' => [ |
| 1702 |
'type' => 'object', |
| 1703 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 1704 |
'style' => [ |
| 1705 |
(object)[ |
| 1706 |
'depends' => [ |
| 1707 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1708 |
], |
| 1709 |
'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }' |
| 1710 |
], |
| 1711 |
] |
| 1712 |
], |
| 1713 |
'readMoreColor' => [ |
| 1714 |
'type' => 'string', |
| 1715 |
'default' => '#0d1523', |
| 1716 |
'style' => [ |
| 1717 |
(object)[ |
| 1718 |
'depends' => [ |
| 1719 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1720 |
], |
| 1721 |
'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }' |
| 1722 |
], |
| 1723 |
], |
| 1724 |
], |
| 1725 |
'readMoreBgColor' => [ |
| 1726 |
'type' => 'object', |
| 1727 |
'default' => (object)['openColor' => 0,'type' => 'color', 'color' => ''], |
| 1728 |
'style' => [ |
| 1729 |
(object)[ |
| 1730 |
'depends' => [ |
| 1731 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1732 |
], |
| 1733 |
'selector'=>'{{ULTP}} .ultp-block-readmore a' |
| 1734 |
], |
| 1735 |
], |
| 1736 |
], |
| 1737 |
'readMoreBorder' => [ |
| 1738 |
'type' => 'object', |
| 1739 |
'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], |
| 1740 |
'style' => [ |
| 1741 |
(object)[ |
| 1742 |
'depends' => [ |
| 1743 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1744 |
], |
| 1745 |
'selector'=>'{{ULTP}} .ultp-block-readmore a' |
| 1746 |
], |
| 1747 |
], |
| 1748 |
], |
| 1749 |
'readMoreRadius' => [ |
| 1750 |
'type' => 'object', |
| 1751 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 1752 |
'style' => [ |
| 1753 |
(object)[ |
| 1754 |
'depends' => [ |
| 1755 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1756 |
], |
| 1757 |
'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }' |
| 1758 |
], |
| 1759 |
], |
| 1760 |
], |
| 1761 |
'readMoreHoverColor' => [ |
| 1762 |
'type' => 'string', |
| 1763 |
'default' => '#0c32d8', |
| 1764 |
'style' => [ |
| 1765 |
(object)[ |
| 1766 |
'depends' => [ |
| 1767 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1768 |
], |
| 1769 |
'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }' |
| 1770 |
], |
| 1771 |
], |
| 1772 |
], |
| 1773 |
'readMoreBgHoverColor' => [ |
| 1774 |
'type' => 'object', |
| 1775 |
'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => ''], |
| 1776 |
'style' => [ |
| 1777 |
(object)[ |
| 1778 |
'depends' => [ |
| 1779 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1780 |
], |
| 1781 |
'selector'=>'{{ULTP}} .ultp-block-readmore a:hover' |
| 1782 |
], |
| 1783 |
], |
| 1784 |
], |
| 1785 |
'readMoreHoverBorder' => [ |
| 1786 |
'type' => 'object', |
| 1787 |
'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], |
| 1788 |
'style' => [ |
| 1789 |
(object)[ |
| 1790 |
'depends' => [ |
| 1791 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1792 |
], |
| 1793 |
'selector'=>'{{ULTP}} .ultp-block-readmore a:hover' |
| 1794 |
], |
| 1795 |
], |
| 1796 |
], |
| 1797 |
'readMoreHoverRadius' => [ |
| 1798 |
'type' => 'object', |
| 1799 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 1800 |
'style' => [ |
| 1801 |
(object)[ |
| 1802 |
'depends' => [ |
| 1803 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1804 |
], |
| 1805 |
'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }' |
| 1806 |
], |
| 1807 |
], |
| 1808 |
], |
| 1809 |
'readMoreSacing' => [ |
| 1810 |
'type' => 'object', |
| 1811 |
'default' => (object)['lg' =>(object)['top' => 15,'bottom' => '','left' => '','right' => '', 'unit' =>'px']], |
| 1812 |
'style' => [ |
| 1813 |
(object)[ |
| 1814 |
'depends' => [ |
| 1815 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1816 |
], |
| 1817 |
'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }' |
| 1818 |
], |
| 1819 |
], |
| 1820 |
], |
| 1821 |
'readMorePadding' => [ |
| 1822 |
'type' => 'object', |
| 1823 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']], |
| 1824 |
'style' => [ |
| 1825 |
(object)[ |
| 1826 |
'depends' => [ |
| 1827 |
(object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1828 |
], |
| 1829 |
'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }' |
| 1830 |
], |
| 1831 |
], |
| 1832 |
], |
| 1833 |
|
| 1834 |
//-------------------------- |
| 1835 |
// Filter Setting/Style |
| 1836 |
//-------------------------- |
| 1837 |
'filterType' => [ |
| 1838 |
'type' => 'string', |
| 1839 |
'default' => 'category' |
| 1840 |
], |
| 1841 |
'filterText' => [ |
| 1842 |
'type' => 'string', |
| 1843 |
'default' => 'all' |
| 1844 |
], |
| 1845 |
'filterValue' => [ |
| 1846 |
'type' => 'string', |
| 1847 |
'default' => '[]', |
| 1848 |
'style' => [ |
| 1849 |
(object)[ |
| 1850 |
'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']] |
| 1851 |
], |
| 1852 |
], |
| 1853 |
], |
| 1854 |
'filterCat' => [ // for compatibility |
| 1855 |
'type' => 'string', |
| 1856 |
'default' => '[]' |
| 1857 |
], |
| 1858 |
'filterTag' => [ // for compatibility |
| 1859 |
'type' => 'string', |
| 1860 |
'default' => '[]' |
| 1861 |
], |
| 1862 |
'fliterTypo' => [ |
| 1863 |
'type' => 'object', |
| 1864 |
'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>18, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500], |
| 1865 |
'style' => [ |
| 1866 |
(object)[ |
| 1867 |
'depends' => [ |
| 1868 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1869 |
], |
| 1870 |
'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a' |
| 1871 |
], |
| 1872 |
], |
| 1873 |
], |
| 1874 |
'filterColor' => [ |
| 1875 |
'type' => 'string', |
| 1876 |
'default' => '#0e1523', |
| 1877 |
'style' => [ |
| 1878 |
(object)[ |
| 1879 |
'depends' => [ |
| 1880 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1881 |
], |
| 1882 |
'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a { color:{{filterColor}}; }' |
| 1883 |
], |
| 1884 |
], |
| 1885 |
], |
| 1886 |
'filterHoverColor' => [ |
| 1887 |
'type' => 'string', |
| 1888 |
'default' => '#828282', |
| 1889 |
'style' => [ |
| 1890 |
(object)[ |
| 1891 |
'depends' => [ |
| 1892 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1893 |
], |
| 1894 |
'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a:hover, {{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a.filter-active { color:{{filterHoverColor}}; }' |
| 1895 |
], |
| 1896 |
], |
| 1897 |
], |
| 1898 |
'filterBgColor' => [ |
| 1899 |
'type' => 'string', |
| 1900 |
'style' => [ |
| 1901 |
(object)[ |
| 1902 |
'depends' => [ |
| 1903 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1904 |
], |
| 1905 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { background:{{filterBgColor}}; }' |
| 1906 |
], |
| 1907 |
], |
| 1908 |
], |
| 1909 |
'filterHoverBgColor' => [ |
| 1910 |
'type' => 'string', |
| 1911 |
'style' => [ |
| 1912 |
(object)[ |
| 1913 |
'depends' => [ |
| 1914 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1915 |
], |
| 1916 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover, {{ULTP}} .ultp-filter-wrap ul li.filter-item > a.filter-active { background:{{filterHoverBgColor}}; }' |
| 1917 |
], |
| 1918 |
], |
| 1919 |
], |
| 1920 |
'filterBorder' => [ |
| 1921 |
'type' => 'object', |
| 1922 |
'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], |
| 1923 |
'style' => [ |
| 1924 |
(object)[ |
| 1925 |
'depends' => [ |
| 1926 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1927 |
], |
| 1928 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a' |
| 1929 |
], |
| 1930 |
], |
| 1931 |
], |
| 1932 |
'filterHoverBorder' => [ |
| 1933 |
'type' => 'object', |
| 1934 |
'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], |
| 1935 |
'style' => [ |
| 1936 |
(object)[ |
| 1937 |
'depends' => [ |
| 1938 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1939 |
], |
| 1940 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover' |
| 1941 |
], |
| 1942 |
], |
| 1943 |
], |
| 1944 |
'filterRadius' => [ |
| 1945 |
'type' => 'object', |
| 1946 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 1947 |
'style' => [ |
| 1948 |
(object)[ |
| 1949 |
'depends' => [ |
| 1950 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1951 |
], |
| 1952 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { border-radius:{{filterRadius}}; }' |
| 1953 |
], |
| 1954 |
], |
| 1955 |
], |
| 1956 |
'fliterSpacing' => [ |
| 1957 |
'type' => 'object', |
| 1958 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'right' => '', 'left' => '20', 'unit' =>'px']], |
| 1959 |
'style' => [ |
| 1960 |
(object)[ |
| 1961 |
'depends' => [ |
| 1962 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1963 |
], |
| 1964 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li { margin:{{fliterSpacing}}; }' |
| 1965 |
], |
| 1966 |
], |
| 1967 |
], |
| 1968 |
'fliterPadding' => [ |
| 1969 |
'type' => 'object', |
| 1970 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']], |
| 1971 |
'style' => [ |
| 1972 |
(object)[ |
| 1973 |
'depends' => [ |
| 1974 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1975 |
], |
| 1976 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { padding:{{fliterPadding}}; }' |
| 1977 |
], |
| 1978 |
], |
| 1979 |
], |
| 1980 |
'filterDropdownColor' => [ |
| 1981 |
'type' => 'string', |
| 1982 |
'default' => '#0e1523', |
| 1983 |
'style' => [ |
| 1984 |
(object)[ |
| 1985 |
'depends' => [ |
| 1986 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1987 |
], |
| 1988 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a { color:{{filterDropdownColor}}; }' |
| 1989 |
], |
| 1990 |
], |
| 1991 |
], |
| 1992 |
'filterDropdownHoverColor' => [ |
| 1993 |
'type' => 'string', |
| 1994 |
'default' => '#037fff', |
| 1995 |
'style' => [ |
| 1996 |
(object)[ |
| 1997 |
'depends' => [ |
| 1998 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1999 |
], |
| 2000 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a:hover { color:{{filterDropdownHoverColor}}; }' |
| 2001 |
], |
| 2002 |
], |
| 2003 |
], |
| 2004 |
'filterDropdownBg' => [ |
| 2005 |
'type' => 'string', |
| 2006 |
'default' => '#fff', |
| 2007 |
'style' => [ |
| 2008 |
(object)[ |
| 2009 |
'depends' => [ |
| 2010 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 2011 |
], |
| 2012 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { background:{{filterDropdownBg}}; }' |
| 2013 |
], |
| 2014 |
], |
| 2015 |
], |
| 2016 |
'filterDropdownRadius' => [ |
| 2017 |
'type' => 'object', |
| 2018 |
'default' => (object)['lg'=>'0'], |
| 2019 |
'style' => [ |
| 2020 |
(object)[ |
| 2021 |
'depends' => [ |
| 2022 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 2023 |
], |
| 2024 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { border-radius:{{filterDropdownRadius}}; }' |
| 2025 |
], |
| 2026 |
], |
| 2027 |
], |
| 2028 |
'filterDropdownPadding' => [ |
| 2029 |
'type' => 'object', |
| 2030 |
'default' => (object)['lg' =>(object)['top' => '15','bottom' => '15','left' => '20','right' => '20', 'unit' =>'px']], |
| 2031 |
'style' => [ |
| 2032 |
(object)[ |
| 2033 |
'depends' => [ |
| 2034 |
(object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 2035 |
], |
| 2036 |
'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { padding:{{filterDropdownPadding}}; }' |
| 2037 |
], |
| 2038 |
], |
| 2039 |
], |
| 2040 |
|
| 2041 |
//-------------------------- |
| 2042 |
// Pagination Setting/Style |
| 2043 |
//-------------------------- |
| 2044 |
'paginationType' => [ |
| 2045 |
'type' => 'string', |
| 2046 |
'default' => 'navigation', |
| 2047 |
], |
| 2048 |
'paginationNav' => [ |
| 2049 |
'type' => 'string', |
| 2050 |
'default' => 'textArrow', |
| 2051 |
'style' => [ |
| 2052 |
(object)[ |
| 2053 |
'depends' => [ |
| 2054 |
(object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'], |
| 2055 |
], |
| 2056 |
], |
| 2057 |
], |
| 2058 |
], |
| 2059 |
'navPosition' => [ |
| 2060 |
'type' => 'string', |
| 2061 |
'default' => 'topRight', |
| 2062 |
'style' => [ |
| 2063 |
(object)[ |
| 2064 |
'depends' => [ |
| 2065 |
(object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'], |
| 2066 |
], |
| 2067 |
], |
| 2068 |
], |
| 2069 |
], |
| 2070 |
'pagiAlign' => [ |
| 2071 |
'type' => 'object', |
| 2072 |
'default' => (object)['lg' =>'left'], |
| 2073 |
'style' => [ |
| 2074 |
(object)[ |
| 2075 |
'depends' => [ |
| 2076 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2077 |
], |
| 2078 |
'selector'=>'{{ULTP}} .ultp-loadmore, {{ULTP}} .ultp-next-prev-wrap ul, {{ULTP}} .ultp-pagination { text-align:{{pagiAlign}}; }' |
| 2079 |
], |
| 2080 |
], |
| 2081 |
], |
| 2082 |
'pagiTypo' => [ |
| 2083 |
'type' => 'object', |
| 2084 |
'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''], |
| 2085 |
'style' => [ |
| 2086 |
(object)[ |
| 2087 |
'depends' => [ |
| 2088 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2089 |
], |
| 2090 |
'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-loadmore-action' |
| 2091 |
], |
| 2092 |
], |
| 2093 |
|
| 2094 |
], |
| 2095 |
'pagiArrowSize' => [ |
| 2096 |
'type' => 'object', |
| 2097 |
'default' => (object)['lg'=>'14'], |
| 2098 |
'style' => [ |
| 2099 |
(object)[ |
| 2100 |
'depends' => [ |
| 2101 |
(object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'], |
| 2102 |
], |
| 2103 |
'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul li a svg { width:{{pagiArrowSize}}px; }' |
| 2104 |
], |
| 2105 |
], |
| 2106 |
|
| 2107 |
], |
| 2108 |
'pagiColor' => [ |
| 2109 |
'type' => 'string', |
| 2110 |
'default' => '#fff', |
| 2111 |
'style' => [ |
| 2112 |
(object)[ |
| 2113 |
'depends' => [ |
| 2114 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2115 |
], |
| 2116 |
'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-block-wrapper .ultp-loadmore .ultp-loadmore-action { color:{{pagiColor}}; } {{ULTP}} .ultp-next-prev-wrap ul li a svg { fill:{{pagiColor}}; } {{ULTP}} .ultp-pagination li a svg { fill:{{pagiColor}}; }' |
| 2117 |
], |
| 2118 |
], |
| 2119 |
], |
| 2120 |
'pagiBgColor' => [ |
| 2121 |
'type' => 'object', |
| 2122 |
'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'], |
| 2123 |
'style' => [ |
| 2124 |
(object)[ |
| 2125 |
'depends' => [ |
| 2126 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2127 |
], |
| 2128 |
'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action' |
| 2129 |
], |
| 2130 |
], |
| 2131 |
], |
| 2132 |
'pagiBorder' => [ |
| 2133 |
'type' => 'object', |
| 2134 |
'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], |
| 2135 |
'style' => [ |
| 2136 |
(object)[ |
| 2137 |
'depends' => [ |
| 2138 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2139 |
], |
| 2140 |
'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action' |
| 2141 |
], |
| 2142 |
], |
| 2143 |
], |
| 2144 |
'pagiShadow' => [ |
| 2145 |
'type' => 'object', |
| 2146 |
'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], |
| 2147 |
'style' => [ |
| 2148 |
(object)[ |
| 2149 |
'depends' => [ |
| 2150 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2151 |
], |
| 2152 |
'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action' |
| 2153 |
], |
| 2154 |
], |
| 2155 |
], |
| 2156 |
'pagiRadius' => [ |
| 2157 |
'type' => 'object', |
| 2158 |
'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']], |
| 2159 |
'style' => [ |
| 2160 |
(object)[ |
| 2161 |
'depends' => [ |
| 2162 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2163 |
], |
| 2164 |
'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { border-radius:{{pagiRadius}}; }' |
| 2165 |
], |
| 2166 |
], |
| 2167 |
], |
| 2168 |
'pagiHoverColor' => [ |
| 2169 |
'type' => 'string', |
| 2170 |
'default' => '#fff', |
| 2171 |
'style' => [ |
| 2172 |
(object)[ |
| 2173 |
'depends' => [ |
| 2174 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2175 |
], |
| 2176 |
'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-block-wrapper .ultp-loadmore .ultp-loadmore-action:hover { color:{{pagiHoverColor}}; } {{ULTP}} .ultp-pagination li a:hover svg { fill:{{pagiHoverColor}}; } {{ULTP}} .ultp-next-prev-wrap ul li a:hover svg { fill:{{pagiHoverColor}}; } @media (min-width: 768px) { {{ULTP}} .ultp-pagination li a:hover { color:{{pagiHoverColor}};}}' |
| 2177 |
], |
| 2178 |
], |
| 2179 |
], |
| 2180 |
'pagiHoverbg' => [ |
| 2181 |
'type' => 'object', |
| 2182 |
'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff','replace'=>1], |
| 2183 |
'style' => [ |
| 2184 |
(object)[ |
| 2185 |
'depends' => [ |
| 2186 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2187 |
], |
| 2188 |
'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-pagination-wrap .ultp-pagination li a:focus, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover{ {{pagiHoverbg}} }' |
| 2189 |
], |
| 2190 |
], |
| 2191 |
], |
| 2192 |
'pagiHoverBorder' => [ |
| 2193 |
'type' => 'object', |
| 2194 |
'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], |
| 2195 |
'style' => [ |
| 2196 |
(object)[ |
| 2197 |
'depends' => [ |
| 2198 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2199 |
], |
| 2200 |
'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover' |
| 2201 |
], |
| 2202 |
], |
| 2203 |
], |
| 2204 |
'pagiHoverShadow' => [ |
| 2205 |
'type' => 'object', |
| 2206 |
'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], |
| 2207 |
'style' => [ |
| 2208 |
(object)[ |
| 2209 |
'depends' => [ |
| 2210 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2211 |
], |
| 2212 |
'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover' |
| 2213 |
], |
| 2214 |
], |
| 2215 |
], |
| 2216 |
'pagiHoverRadius' => [ |
| 2217 |
'type' => 'object', |
| 2218 |
'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']], |
| 2219 |
'style' => [ |
| 2220 |
(object)[ |
| 2221 |
'depends' => [ |
| 2222 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2223 |
], |
| 2224 |
'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }' |
| 2225 |
], |
| 2226 |
], |
| 2227 |
], |
| 2228 |
'pagiPadding' => [ |
| 2229 |
'type' => 'object', |
| 2230 |
'default' => (object)['lg' =>(object)['top' => '8','bottom' => '8','left' => '14','right' => '14', 'unit' =>'px']], |
| 2231 |
'style' => [ |
| 2232 |
(object)[ |
| 2233 |
'depends' => [ |
| 2234 |
(object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2235 |
], |
| 2236 |
'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { padding:{{pagiPadding}}; }' |
| 2237 |
], |
| 2238 |
], |
| 2239 |
], |
| 2240 |
'navMargin' => [ |
| 2241 |
'type' => 'object', |
| 2242 |
'default' => (object)['lg' =>(object)['top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']], |
| 2243 |
'style' => [ |
| 2244 |
(object)[ |
| 2245 |
'depends' => [ |
| 2246 |
(object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'], |
| 2247 |
], |
| 2248 |
'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul { margin:{{navMargin}}; }' |
| 2249 |
], |
| 2250 |
], |
| 2251 |
], |
| 2252 |
|
| 2253 |
//-------------------------- |
| 2254 |
// Wrapper Style |
| 2255 |
//-------------------------- |
| 2256 |
'loadingColor' => [ |
| 2257 |
'type' => 'string', |
| 2258 |
'default' => '#000', |
| 2259 |
'style' => [ |
| 2260 |
(object)[ |
| 2261 |
'selector'=>'{{ULTP}} .ultp-loading .ultp-loading-blocks div { --loading-block-color: {{loadingColor}}; }' |
| 2262 |
], |
| 2263 |
], |
| 2264 |
], |
| 2265 |
'wrapBg' => [ |
| 2266 |
'type' => 'object', |
| 2267 |
'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'], |
| 2268 |
'style' => [ |
| 2269 |
(object)[ |
| 2270 |
'selector'=>'{{ULTP}} .ultp-block-wrapper' |
| 2271 |
], |
| 2272 |
], |
| 2273 |
], |
| 2274 |
'wrapBorder' => [ |
| 2275 |
'type' => 'object', |
| 2276 |
'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], |
| 2277 |
'style' => [ |
| 2278 |
(object)[ |
| 2279 |
'selector'=>'{{ULTP}} .ultp-block-wrapper' |
| 2280 |
], |
| 2281 |
], |
| 2282 |
], |
| 2283 |
'wrapShadow' => [ |
| 2284 |
'type' => 'object', |
| 2285 |
'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], |
| 2286 |
'style' => [ |
| 2287 |
(object)[ |
| 2288 |
'selector'=>'{{ULTP}} .ultp-block-wrapper' |
| 2289 |
], |
| 2290 |
], |
| 2291 |
], |
| 2292 |
'wrapRadius' => [ |
| 2293 |
'type' => 'object', |
| 2294 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 2295 |
'style' => [ |
| 2296 |
(object)[ |
| 2297 |
'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }' |
| 2298 |
], |
| 2299 |
], |
| 2300 |
], |
| 2301 |
'wrapHoverBackground' => [ |
| 2302 |
'type' => 'object', |
| 2303 |
'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'], |
| 2304 |
'style' => [ |
| 2305 |
(object)[ |
| 2306 |
'selector'=>'{{ULTP}} .ultp-block-wrapper:hover' |
| 2307 |
], |
| 2308 |
], |
| 2309 |
], |
| 2310 |
'wrapHoverBorder' => [ |
| 2311 |
'type' => 'object', |
| 2312 |
'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], |
| 2313 |
'style' => [ |
| 2314 |
(object)[ |
| 2315 |
'selector'=>'{{ULTP}} .ultp-block-wrapper:hover' |
| 2316 |
], |
| 2317 |
], |
| 2318 |
], |
| 2319 |
'wrapHoverRadius' => [ |
| 2320 |
'type' => 'object', |
| 2321 |
'default' => (object)['lg' =>'', 'unit' =>'px'], |
| 2322 |
'style' => [ |
| 2323 |
(object)[ |
| 2324 |
'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }' |
| 2325 |
], |
| 2326 |
], |
| 2327 |
], |
| 2328 |
'wrapHoverShadow' => [ |
| 2329 |
'type' => 'object', |
| 2330 |
'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], |
| 2331 |
'style' => [ |
| 2332 |
(object)[ |
| 2333 |
'selector'=>'{{ULTP}} .ultp-block-wrapper:hover' |
| 2334 |
], |
| 2335 |
], |
| 2336 |
], |
| 2337 |
'wrapMargin' => [ |
| 2338 |
'type' => 'object', |
| 2339 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']], |
| 2340 |
'style' => [ |
| 2341 |
(object)[ |
| 2342 |
'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }' |
| 2343 |
], |
| 2344 |
], |
| 2345 |
], |
| 2346 |
'wrapOuterPadding' => [ |
| 2347 |
'type' => 'object', |
| 2348 |
'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']], |
| 2349 |
'style' => [ |
| 2350 |
(object)[ |
| 2351 |
'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }' |
| 2352 |
], |
| 2353 |
], |
| 2354 |
], |
| 2355 |
'wrapInnerPadding' => [ |
| 2356 |
'type' => 'object', |
| 2357 |
'default' => (object)['lg' =>(object)['unit' =>'px']], |
| 2358 |
'style' => [ |
| 2359 |
(object)[ |
| 2360 |
'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }' |
| 2361 |
], |
| 2362 |
], |
| 2363 |
], |
| 2364 |
'advanceId' => [ |
| 2365 |
'type' => 'string', |
| 2366 |
'default' => '', |
| 2367 |
], |
| 2368 |
'advanceZindex' => [ |
| 2369 |
'type' => 'number', |
| 2370 |
'default' => '', |
| 2371 |
'style' => [ |
| 2372 |
(object)[ |
| 2373 |
'selector' => '{{ULTP}} {z-index:{{advanceZindex}};}' |
| 2374 |
], |
| 2375 |
], |
| 2376 |
], |
| 2377 |
'hideExtraLarge' => [ |
| 2378 |
'type' => 'boolean', |
| 2379 |
'default' => false, |
| 2380 |
'style' => [ |
| 2381 |
(object)[ |
| 2382 |
'selector' => '{{ULTP}} {display:none;}' |
| 2383 |
], |
| 2384 |
], |
| 2385 |
], |
| 2386 |
'hideDesktop' => [ |
| 2387 |
'type' => 'boolean', |
| 2388 |
'default' => false, |
| 2389 |
'style' => [ |
| 2390 |
(object)[ |
| 2391 |
'selector' => '{{ULTP}} {display:none;}' |
| 2392 |
], |
| 2393 |
], |
| 2394 |
], |
| 2395 |
'hideTablet' => [ |
| 2396 |
'type' => 'boolean', |
| 2397 |
'default' => false, |
| 2398 |
'style' => [ |
| 2399 |
(object)[ |
| 2400 |
'selector' => '{{ULTP}} {display:none;}' |
| 2401 |
], |
| 2402 |
], |
| 2403 |
], |
| 2404 |
'hideMobile' => [ |
| 2405 |
'type' => 'boolean', |
| 2406 |
'default' => false, |
| 2407 |
'style' => [ |
| 2408 |
(object)[ |
| 2409 |
'selector' => '{{ULTP}} {display:none;}' |
| 2410 |
], |
| 2411 |
], |
| 2412 |
], |
| 2413 |
'advanceCss' => [ |
| 2414 |
'type' => 'string', |
| 2415 |
'default' => '', |
| 2416 |
'style' => [(object)['selector' => '']], |
| 2417 |
] |
| 2418 |
); |
| 2419 |
|
| 2420 |
if( $default ){ |
| 2421 |
$temp = array(); |
| 2422 |
foreach ($attributes as $key => $value) { |
| 2423 |
if( isset($value['default']) ){ |
| 2424 |
$temp[$key] = $value['default']; |
| 2425 |
} |
| 2426 |
} |
| 2427 |
return $temp; |
| 2428 |
}else{ |
| 2429 |
return $attributes; |
| 2430 |
} |
| 2431 |
} |
| 2432 |
|
| 2433 |
public function register() { |
| 2434 |
register_block_type( 'ultimate-post/post-module-1', |
| 2435 |
array( |
| 2436 |
'title' => __('Post Module #1', 'ultimate-post'), |
| 2437 |
'attributes' => $this->get_attributes(), |
| 2438 |
'render_callback' => array($this, 'content') |
| 2439 |
) |
| 2440 |
); |
| 2441 |
} |
| 2442 |
|
| 2443 |
public function content($attr, $noAjax) { |
| 2444 |
|
| 2445 |
if(!$noAjax){ |
| 2446 |
$paged = is_front_page() ? get_query_var('page') : get_query_var('paged'); |
| 2447 |
$attr['paged'] = $paged ? $paged : 1; |
| 2448 |
} |
| 2449 |
|
| 2450 |
$bigloop = ''; |
| 2451 |
$block_name = 'post-module-1'; |
| 2452 |
$page_post_id = ultimate_post()->get_ID(); |
| 2453 |
$wraper_before = $wraper_after = $post_loop = ''; |
| 2454 |
$recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) ); |
| 2455 |
$pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts); |
| 2456 |
|
| 2457 |
if ($recent_posts->have_posts()) { |
| 2458 |
|
| 2459 |
$wraper_before .= '<div '.($attr['advanceId']?'id="'.$attr['advanceId'].'" ':'').' class="wp-block-ultimate-post-'.$block_name.' ultp-block-'.$attr["blockId"].''.(isset($attr["align"])? ' align' .$attr["align"]:'').''.(isset($attr["className"])?' '.$attr["className"]:'').'">'; |
| 2460 |
$wraper_before .= '<div class="ultp-block-wrapper">'; |
| 2461 |
|
| 2462 |
// Loading |
| 2463 |
$wraper_before .= ultimate_post()->loading(); |
| 2464 |
|
| 2465 |
if ($attr['headingShow'] || $attr['filterShow'] || $attr['paginationShow']) { |
| 2466 |
$wraper_before .= '<div class="ultp-heading-filter">'; |
| 2467 |
$wraper_before .= '<div class="ultp-heading-filter-in">'; |
| 2468 |
|
| 2469 |
// Heading |
| 2470 |
include ULTP_PATH.'blocks/template/heading.php'; |
| 2471 |
|
| 2472 |
if ($attr['filterShow'] || $attr['paginationShow']) { |
| 2473 |
$wraper_before .= '<div class="ultp-filter-navigation">'; |
| 2474 |
// Filter |
| 2475 |
if($attr['filterShow']) { |
| 2476 |
include ULTP_PATH.'blocks/template/filter.php'; |
| 2477 |
} |
| 2478 |
// Navigation |
| 2479 |
if($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) { |
| 2480 |
include ULTP_PATH.'blocks/template/navigation-before.php'; |
| 2481 |
} |
| 2482 |
$wraper_before .= '</div>'; |
| 2483 |
} |
| 2484 |
|
| 2485 |
$wraper_before .= '</div>'; |
| 2486 |
$wraper_before .= '</div>'; |
| 2487 |
} |
| 2488 |
|
| 2489 |
$wraper_before .= '<div class="ultp-block-items-wrap ultp-block-post-module1 ultp-block-content-'.$attr['varticalAlign'].' ultp-block-content-'.($attr['columnFlip'] ? 'true' : 'false').' ultp-'.$attr['layout'].'">'; |
| 2490 |
$idx = 0; // $idx = $noAjax ? 1 : 0; |
| 2491 |
while ( $recent_posts->have_posts() ): $recent_posts->the_post(); |
| 2492 |
|
| 2493 |
include ULTP_PATH.'blocks/template/data.php'; |
| 2494 |
|
| 2495 |
include ULTP_PATH.'blocks/template/category.php'; |
| 2496 |
|
| 2497 |
$post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.'">'; |
| 2498 |
|
| 2499 |
$post_loop .= '<div class="ultp-block-content-wrap">'; |
| 2500 |
if( has_post_thumbnail() && $attr['showImage'] && ($idx == 0 || $attr['layout'] == 'layout2' || $attr['layout'] == 'layout3' || $attr['layout'] == 'layout5') ){ |
| 2501 |
$post_loop .= '<div class="ultp-block-image ultp-block-image-'.$attr['imgAnimation'].($attr["imgOverlay"] ? ' ultp-block-image-overlay ultp-block-image-'.$attr["imgOverlayType"].' ultp-block-image-'.$attr["imgOverlayType"].$idx : '' ).'">'; |
| 2502 |
if ($idx == 0) { |
| 2503 |
$post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCrop'], '', $title).'</a>'; |
| 2504 |
} else { |
| 2505 |
if($attr['layout'] == 'layout2' || $attr['layout'] == 'layout3' || $attr['layout'] == 'layout5'){ |
| 2506 |
$post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCropSmall'], '', $title).'</a>'; |
| 2507 |
} |
| 2508 |
} |
| 2509 |
if( ($attr['catPosition'] != 'aboveTitle') && ($idx == 0 || $attr['showSmallCat']) && $attr['catShow'] ) { |
| 2510 |
$post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>'; |
| 2511 |
} |
| 2512 |
$post_loop .= '</div>'; |
| 2513 |
} |
| 2514 |
$post_loop .= '<div class="ultp-block-content">'; |
| 2515 |
// Category |
| 2516 |
if(($attr['catPosition'] == 'aboveTitle') && ($idx == 0 || $attr['showSmallCat'] ) && $attr['catShow']) { |
| 2517 |
$post_loop .= $category; |
| 2518 |
} |
| 2519 |
// Title |
| 2520 |
if ($title && $attr['titleShow'] && $attr['titlePosition'] == 1) { |
| 2521 |
include ULTP_PATH.'blocks/template/title.php'; |
| 2522 |
} |
| 2523 |
// Meta |
| 2524 |
if( $attr['metaPosition'] =='top' ) { |
| 2525 |
include ULTP_PATH.'blocks/template/meta.php'; |
| 2526 |
} |
| 2527 |
// Title |
| 2528 |
if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0) { |
| 2529 |
include ULTP_PATH.'blocks/template/title.php'; |
| 2530 |
} |
| 2531 |
// Excerpt |
| 2532 |
if (($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) { |
| 2533 |
$post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->get_excerpt($post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit']).'</div>'; |
| 2534 |
} |
| 2535 |
|
| 2536 |
// Read More |
| 2537 |
if ($attr['readMore'] && ($idx == 0 || $attr['showSmallBtn'])) { |
| 2538 |
$post_loop .= '<div class="ultp-block-readmore"><a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.($attr['readMoreText'] ? $attr['readMoreText'] : __( "Read More", "ultimate-post" )).ultimate_post()->svg_icon($attr['readMoreIcon']).'</a></div>'; |
| 2539 |
} |
| 2540 |
// Bottom |
| 2541 |
if( $attr['metaPosition'] =='bottom' ) { |
| 2542 |
include ULTP_PATH.'blocks/template/meta.php'; |
| 2543 |
} |
| 2544 |
$post_loop .= '</div>'; |
| 2545 |
$post_loop .= '</div>'; |
| 2546 |
$post_loop .= '</'.$attr['contentTag'].'>'; |
| 2547 |
|
| 2548 |
if($idx == 0) { |
| 2549 |
$bigloop = $post_loop; |
| 2550 |
$post_loop = ''; |
| 2551 |
} |
| 2552 |
|
| 2553 |
$idx ++; |
| 2554 |
endwhile; |
| 2555 |
|
| 2556 |
$bigloop = '<div class="ultp-big-post-module1">'.$bigloop.'</div>'; |
| 2557 |
$post_loop = $bigloop.'<div class="ultp-small-post-module1">'.$post_loop.'</div>'; |
| 2558 |
|
| 2559 |
$wraper_after .= '</div>';//ultp-block-items-wrap |
| 2560 |
|
| 2561 |
// Navigation |
| 2562 |
if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] != 'topRight')) { |
| 2563 |
include ULTP_PATH.'blocks/template/navigation-after.php'; |
| 2564 |
} |
| 2565 |
|
| 2566 |
$wraper_after .= '</div>'; |
| 2567 |
$wraper_after .= '</div>'; |
| 2568 |
|
| 2569 |
wp_reset_query(); |
| 2570 |
} |
| 2571 |
|
| 2572 |
return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after; |
| 2573 |
} |
| 2574 |
|
| 2575 |
} |