| @@ -15,9 +15,12 @@ | ||
| 15 | 15 | 'blockId' => [ |
| 16 | 16 | 'type' => 'string', |
| 17 | 17 | 'default' => '', |
| 18 | 18 | ], |
| 19 | - | |
| 19 | + 'previewImg' => [ | |
| 20 | + 'type' => 'string', | |
| 21 | + 'default' => '', | |
| 22 | + ], | |
| 20 | 23 | //-------------------------- |
| 21 | 24 | // Layout |
| 22 | 25 | //-------------------------- |
| 23 | 26 | 'layout' => [ |
| @@ -29,13 +32,38 @@ | ||
| 29 | 32 | // Query Setting |
| 30 | 33 | //-------------------------- |
| 31 | 34 | 'queryQuick' => [ |
| 32 | 35 | 'type' => 'string', |
| 33 | - 'default' =>'', | |
| 36 | + 'default' => '', | |
| 37 | + 'style' => [ | |
| 38 | + (object)[ | |
| 39 | + 'depends' => [ | |
| 40 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 41 | + ] | |
| 42 | + ], | |
| 43 | + ], | |
| 34 | 44 | ], |
| 45 | + 'queryNumPosts' => [ | |
| 46 | + 'type' => 'object', | |
| 47 | + 'default' => (object)['lg'=>5,'sm'=>5,'xs'=>5], | |
| 48 | + 'style' => [ | |
| 49 | + (object)[ | |
| 50 | + 'depends' => [ | |
| 51 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 52 | + ] | |
| 53 | + ], | |
| 54 | + ], | |
| 55 | + ], | |
| 35 | 56 | 'queryNumber' => [ |
| 36 | 57 | 'type' => 'string', |
| 37 | 58 | 'default' => 5, |
| 59 | + 'style' => [ | |
| 60 | + (object)[ | |
| 61 | + 'depends' => [ | |
| 62 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 63 | + ] | |
| 64 | + ], | |
| 65 | + ], | |
| 38 | 66 | ], |
| 39 | 67 | 'queryType' => [ |
| 40 | 68 | 'type' => 'string', |
| 41 | 69 | 'default' => 'post' |
| @@ -41,25 +69,38 @@ | ||
| 41 | 69 | 'default' => 'post' |
| 42 | 70 | ], |
| 43 | 71 | 'queryTax' => [ |
| 44 | 72 | 'type' => 'string', |
| 45 | - 'default' => 'category' | |
| 73 | + 'default' => 'category', | |
| 74 | + 'style' => [ | |
| 75 | + (object)[ | |
| 76 | + 'depends' => [ | |
| 77 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 78 | + ] | |
| 79 | + ], | |
| 80 | + ], | |
| 46 | 81 | ], |
| 47 | - 'queryCat' => [ | |
| 82 | + 'queryTaxValue' => [ | |
| 48 | 83 | 'type' => 'string', |
| 49 | 84 | 'default' => '[]', |
| 50 | 85 | 'style' => [ |
| 51 | 86 | (object)[ |
| 52 | - 'depends' => [(object)['key' => 'queryTax','condition' => '==','value' => 'category']] | |
| 87 | + 'depends' => [ | |
| 88 | + (object)['key' => 'queryTax','condition' => '!=','value' => ''], | |
| 89 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 90 | + ] | |
| 53 | 91 | ], |
| 54 | 92 | ], |
| 55 | 93 | ], |
| 56 | - 'queryTag' => [ | |
| 94 | + 'queryRelation' => [ | |
| 57 | 95 | 'type' => 'string', |
| 58 | - 'default' => '[]', | |
| 96 | + 'default' => 'OR', | |
| 59 | 97 | 'style' => [ |
| 60 | 98 | (object)[ |
| 61 | - 'depends' => [(object)['key' => 'queryTax','condition' => '==','value' => 'post_tag']] | |
| 99 | + 'depends' => [ | |
| 100 | + (object)['key' => 'queryTaxValue','condition' => '!=','value' => '[]'], | |
| 101 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 102 | + ] | |
| 62 | 103 | ], |
| 63 | 104 | ], |
| 64 | 105 | ], |
| 65 | 106 | 'queryOrderBy' => [ |
| @@ -70,9 +111,12 @@ | ||
| 70 | 111 | 'type' => 'string', |
| 71 | 112 | 'default' => 'custom_meta_key', |
| 72 | 113 | 'style' => [ |
| 73 | 114 | (object)[ |
| 74 | - 'depends' => [(object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num']] | |
| 115 | + 'depends' => [ | |
| 116 | + (object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num'], | |
| 117 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 118 | + ] | |
| 75 | 119 | ], |
| 76 | 120 | ], |
| 77 | 121 | ], |
| 78 | 122 | 'queryOrder' => [ |
| @@ -78,20 +122,112 @@ | ||
| 78 | 122 | 'queryOrder' => [ |
| 79 | 123 | 'type' => 'string', |
| 80 | 124 | 'default' => 'desc', |
| 81 | 125 | ], |
| 126 | + // Include Remove from Version 2.5.4 | |
| 82 | 127 | 'queryInclude' => [ |
| 83 | 128 | 'type' => 'string', |
| 84 | - 'default' => '' | |
| 129 | + 'default' => '', | |
| 85 | 130 | ], |
| 86 | 131 | 'queryExclude' => [ |
| 87 | 132 | 'type' => 'string', |
| 88 | - 'default' => '' | |
| 133 | + 'default' => '[]', | |
| 134 | + 'style' => [ | |
| 135 | + (object)[ | |
| 136 | + 'depends' => [ | |
| 137 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 138 | + ] | |
| 139 | + ], | |
| 140 | + ], | |
| 89 | 141 | ], |
| 142 | + 'queryAuthor' => [ | |
| 143 | + 'type' => 'string', | |
| 144 | + 'default' => '[]', | |
| 145 | + 'style' => [ | |
| 146 | + (object)[ | |
| 147 | + 'depends' => [ | |
| 148 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 149 | + ] | |
| 150 | + ], | |
| 151 | + ], | |
| 152 | + ], | |
| 90 | 153 | 'queryOffset' => [ |
| 91 | 154 | 'type' => 'string', |
| 92 | 155 | 'default' => '0', |
| 156 | + 'style' => [ | |
| 157 | + (object)[ | |
| 158 | + 'depends' => [ | |
| 159 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 160 | + ] | |
| 161 | + ], | |
| 162 | + ], | |
| 93 | 163 | ], |
| 164 | + 'queryExcludeTerm' => [ | |
| 165 | + 'type' => 'string', | |
| 166 | + 'default' => '[]', | |
| 167 | + 'style' => [ | |
| 168 | + (object)[ | |
| 169 | + 'depends' => [ | |
| 170 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 171 | + ] | |
| 172 | + ], | |
| 173 | + ], | |
| 174 | + ], | |
| 175 | + 'queryExcludeAuthor' => [ | |
| 176 | + 'type' => 'string', | |
| 177 | + 'default' => '[]', | |
| 178 | + 'style' => [ | |
| 179 | + (object)[ | |
| 180 | + 'depends' => [ | |
| 181 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 182 | + ] | |
| 183 | + ], | |
| 184 | + ], | |
| 185 | + ], | |
| 186 | + 'querySticky' => [ | |
| 187 | + 'type' => 'boolean', | |
| 188 | + 'default' => true, | |
| 189 | + 'style' => [ | |
| 190 | + (object)[ | |
| 191 | + 'depends' => [ | |
| 192 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 193 | + ] | |
| 194 | + ], | |
| 195 | + ], | |
| 196 | + ], | |
| 197 | + 'queryUnique' => [ | |
| 198 | + 'type' => 'string', | |
| 199 | + 'default' => '', | |
| 200 | + 'style' => [ | |
| 201 | + (object)[ | |
| 202 | + 'depends' => [ | |
| 203 | + (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')] | |
| 204 | + ] | |
| 205 | + ], | |
| 206 | + ], | |
| 207 | + ], | |
| 208 | + 'queryPosts' => [ | |
| 209 | + 'type' => 'string', | |
| 210 | + 'default' => '[]', | |
| 211 | + 'style' => [ | |
| 212 | + (object)[ | |
| 213 | + 'depends' => [ | |
| 214 | + (object)['key' => 'queryType','condition' => '==','value' => 'posts'] | |
| 215 | + ] | |
| 216 | + ], | |
| 217 | + ], | |
| 218 | + ], | |
| 219 | + 'queryCustomPosts' => [ | |
| 220 | + 'type' => 'string', | |
| 221 | + 'default' => '[]', | |
| 222 | + 'style' => [ | |
| 223 | + (object)[ | |
| 224 | + 'depends' => [ | |
| 225 | + (object)['key' => 'queryType','condition' => '==','value' => 'customPosts'] | |
| 226 | + ] | |
| 227 | + ], | |
| 228 | + ], | |
| 229 | + ], | |
| 94 | 230 | //-------------------------- |
| 95 | 231 | // General Setting |
| 96 | 232 | //-------------------------- |
| 97 | 233 | 'titleShow' => [ |
| @@ -97,8 +233,190 @@ | ||
| 97 | 233 | 'titleShow' => [ |
| 98 | 234 | 'type' => 'boolean', |
| 99 | 235 | 'default' => true, |
| 100 | 236 | ], |
| 237 | + 'titleStyle' => [ | |
| 238 | + 'type' => 'string', | |
| 239 | + 'default' => 'none', | |
| 240 | + ], | |
| 241 | + 'titleAnimColor' => [ | |
| 242 | + 'type' => 'string', | |
| 243 | + 'default' => 'black', | |
| 244 | + 'style' => [ | |
| 245 | + (object)[ | |
| 246 | + 'depends' => [ | |
| 247 | + (object)['key'=>'titleStyle','condition'=>'==','value'=>'style1'] | |
| 248 | + ], | |
| 249 | + 'selector'=>'{{ULTP}} .ultp-title-style1 a { | |
| 250 | + cursor: pointer; | |
| 251 | + text-decoration: none; | |
| 252 | + display: inline; | |
| 253 | + padding-bottom: 2px; | |
| 254 | + transition: all 0.35s linear !important; | |
| 255 | + background: linear-gradient( | |
| 256 | + to bottom, | |
| 257 | + {{titleAnimColor}} 0%, | |
| 258 | + {{titleAnimColor}} 98% | |
| 259 | + ); | |
| 260 | + background-size: 0px 2px; | |
| 261 | + background-repeat: no-repeat; | |
| 262 | + background-position: left 100%; | |
| 263 | + }' | |
| 264 | + ], | |
| 265 | + (object)[ | |
| 266 | + 'depends' => [ | |
| 267 | + (object)['key'=>'titleStyle','condition'=>'==','value'=>'style2'] | |
| 268 | + ], | |
| 269 | + 'selector'=>'{{ULTP}} .ultp-title-style2 a:hover { | |
| 270 | + border-bottom:none; | |
| 271 | + padding-bottom: 2px; | |
| 272 | + background-position:0 100%; | |
| 273 | + background-repeat: repeat; | |
| 274 | + background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id=\'squiggle-link\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' xmlns:ev=\'http://www.w3.org/2001/xml-events\' viewBox=\'0 0 10 18\'%3E%3Cstyle type=\'text/css\'%3E.squiggle%7Banimation:shift .5s linear infinite;%7D@keyframes shift %7Bfrom %7Btransform:translateX(-10px);%7Dto %7Btransform:translateX(0);%7D%7D%3C/style%3E%3Cpath fill=\'none\' stroke=\'{{titleAnimColor}}\' stroke-width=\'1\' class=\'squiggle\' d=\'M0,17.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5\' /%3E%3C/svg%3E"); | |
| 275 | + }' | |
| 276 | + ], | |
| 277 | + (object)[ | |
| 278 | + 'depends' => [ | |
| 279 | + (object)['key'=>'titleStyle','condition'=>'==','value'=>'style3'] | |
| 280 | + ], | |
| 281 | + 'selector'=>'{{ULTP}} .ultp-title-style3 a { | |
| 282 | + text-decoration: none; | |
| 283 | + $thetransition: all 1s cubic-bezier(1,.25,0,.75) 0s; | |
| 284 | + position: relative; | |
| 285 | + transition: all 0.35s ease-out; | |
| 286 | + padding-bottom: 3px; | |
| 287 | + border-bottom:none; | |
| 288 | + padding-bottom: 2px; | |
| 289 | + background-position:0 100%; | |
| 290 | + background-repeat: repeat; | |
| 291 | + background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id=\'squiggle-link\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' xmlns:ev=\'http://www.w3.org/2001/xml-events\' viewBox=\'0 0 10 18\'%3E%3Cstyle type=\'text/css\'%3E.squiggle%7Banimation:shift .5s linear infinite;%7D@keyframes shift %7Bfrom %7Btransform:translateX(-10px);%7Dto %7Btransform:translateX(0);%7D%7D%3C/style%3E%3Cpath fill=\'none\' stroke=\'{{titleAnimColor}}\' stroke-width=\'1\' class=\'squiggle\' d=\'M0,17.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5\' /%3E%3C/svg%3E"); | |
| 292 | + }' | |
| 293 | + ], | |
| 294 | + (object)[ | |
| 295 | + 'depends' => [ | |
| 296 | + (object)['key'=>'titleStyle','condition'=>'==','value'=>'style4'] | |
| 297 | + ], | |
| 298 | + 'selector'=>'{{ULTP}} .ultp-title-style4 a { | |
| 299 | + cursor: pointer; | |
| 300 | + font-weight: 600; | |
| 301 | + text-decoration: none; | |
| 302 | + display: inline; | |
| 303 | + padding-bottom: 2px; | |
| 304 | + transition: all 0.3s linear !important; | |
| 305 | + background: linear-gradient( | |
| 306 | + to bottom, | |
| 307 | + {{titleAnimColor}} 0%, | |
| 308 | + {{titleAnimColor}} 98% | |
| 309 | + ); | |
| 310 | + background-size: 100% 2px; | |
| 311 | + background-repeat: no-repeat; | |
| 312 | + background-position: left 100%; | |
| 313 | + }' | |
| 314 | + ] , | |
| 315 | + (object)[ | |
| 316 | + 'depends' => [ | |
| 317 | + (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5'] | |
| 318 | + ], | |
| 319 | + 'selector'=>'{{ULTP}} .ultp-title-style5 a:hover{ | |
| 320 | + text-decoration: none; | |
| 321 | + transition: all 0.35s ease-out; | |
| 322 | + border-bottom:none; | |
| 323 | + padding-bottom: 2px; | |
| 324 | + background-position:0 100%; | |
| 325 | + background-repeat: repeat; | |
| 326 | + background-size:auto; | |
| 327 | + background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id=\'squiggle-link\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' xmlns:ev=\'http://www.w3.org/2001/xml-events\' viewBox=\'0 0 10 18\'%3E%3Cstyle type=\'text/css\'%3E.squiggle%7Banimation:shift .5s linear infinite;%7D@keyframes shift %7Bfrom %7Btransform:translateX(-10px);%7Dto %7Btransform:translateX(0);%7D%7D%3C/style%3E%3Cpath fill=\'none\' stroke=\'{{titleAnimColor}}\' stroke-width=\'1\' class=\'squiggle\' d=\'M0,17.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5\' /%3E%3C/svg%3E"); | |
| 328 | + } ' | |
| 329 | + ], | |
| 330 | + (object)[ | |
| 331 | + 'depends' => [ | |
| 332 | + (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5'] | |
| 333 | + ], | |
| 334 | + 'selector'=>'{{ULTP}} .ultp-title-style5 a { | |
| 335 | + cursor: pointer; | |
| 336 | + text-decoration: none; | |
| 337 | + display: inline; | |
| 338 | + padding-bottom: 2px; | |
| 339 | + transition: all 0.3s linear !important; | |
| 340 | + background: linear-gradient( | |
| 341 | + to bottom, | |
| 342 | + {{titleAnimColor}} 0%, | |
| 343 | + {{titleAnimColor}} 98% | |
| 344 | + ); | |
| 345 | + background-size: 100% 2px; | |
| 346 | + background-repeat: no-repeat; | |
| 347 | + background-position: left 100%; | |
| 348 | + }' | |
| 349 | + ], | |
| 350 | + (object)[ | |
| 351 | + 'depends' => [ | |
| 352 | + (object)['key'=>'titleStyle','condition'=>'==','value'=>'style6'] | |
| 353 | + ], | |
| 354 | + 'selector'=>'{{ULTP}} .ultp-title-style6 a{ | |
| 355 | + background-image: linear-gradient(120deg, {{titleAnimColor}} 0%, {{titleAnimColor}} 100%); | |
| 356 | + background-repeat: no-repeat; | |
| 357 | + background-size: 100% 2px; | |
| 358 | + background-position: 0 88%; | |
| 359 | + transition: background-size 0.15s ease-in; | |
| 360 | + padding: 5px 5px; | |
| 361 | + }' | |
| 362 | + ], | |
| 363 | + (object)[ | |
| 364 | + 'depends' => [ | |
| 365 | + (object)['key'=>'titleStyle','condition'=>'==','value'=>'style7'] | |
| 366 | + ], | |
| 367 | + 'selector'=>'{{ULTP}} .ultp-title-style7 a { | |
| 368 | + cursor: pointer; | |
| 369 | + text-decoration: none; | |
| 370 | + display: inline; | |
| 371 | + padding-bottom: 2px; | |
| 372 | + transition: all 0.3s linear !important; | |
| 373 | + background: linear-gradient( | |
| 374 | + to bottom, | |
| 375 | + {{titleAnimColor}} 0%, | |
| 376 | + {{titleAnimColor}} 98% | |
| 377 | + ); | |
| 378 | + background-size: 0px 2px; | |
| 379 | + background-repeat: no-repeat; | |
| 380 | + background-position: right 100%; | |
| 381 | + } ' | |
| 382 | + ], | |
| 383 | + (object)[ | |
| 384 | + 'depends' => [ | |
| 385 | + (object)['key'=>'titleStyle','condition'=>'==','value'=>'style8'] | |
| 386 | + ], | |
| 387 | + 'selector'=>'{{ULTP}} .ultp-title-style8 a { | |
| 388 | + cursor: pointer; | |
| 389 | + text-decoration: none; | |
| 390 | + display: inline; | |
| 391 | + padding-bottom: 2px; | |
| 392 | + transition: all 0.3s linear !important; | |
| 393 | + background: linear-gradient( | |
| 394 | + to bottom, | |
| 395 | + {{titleAnimColor}} 0%, | |
| 396 | + {{titleAnimColor}} 98% | |
| 397 | + ); | |
| 398 | + background-size: 0px 2px; | |
| 399 | + background-repeat: no-repeat; | |
| 400 | + background-position: center 100%; | |
| 401 | + } ' | |
| 402 | + ], | |
| 403 | + (object)[ | |
| 404 | + 'depends' => [ | |
| 405 | + (object)['key'=>'titleStyle','condition'=>'==','value'=>'style9'] | |
| 406 | + ], | |
| 407 | + 'selector'=>'{{ULTP}} .ultp-title-style9 a { | |
| 408 | + background-image: linear-gradient(120deg,{{titleAnimColor}} 0%, {{titleAnimColor}} 100%); | |
| 409 | + background-repeat: no-repeat; | |
| 410 | + background-size: 100% 10px; | |
| 411 | + background-position: 0 88%; | |
| 412 | + transition: 0.3s ease-in; | |
| 413 | + padding: 3px 5px; | |
| 414 | + } ' | |
| 415 | + ] | |
| 416 | + ], | |
| 417 | + ], | |
| 418 | + | |
| 101 | 419 | 'headingShow' => [ |
| 102 | 420 | 'type' => 'boolean', |
| 103 | 421 | 'default' => true, |
| 104 | 422 | ], |
| @@ -120,8 +438,15 @@ | ||
| 120 | 438 | ], |
| 121 | 439 | 'filterShow' => [ |
| 122 | 440 | 'type' => 'boolean', |
| 123 | 441 | 'default' => false, |
| 442 | + 'style' => [ | |
| 443 | + (object)[ | |
| 444 | + 'depends' => [ | |
| 445 | + (object)['key'=>'queryType','condition'=>'!=','value'=>['posts','customPosts']], | |
| 446 | + ], | |
| 447 | + ], | |
| 448 | + ] | |
| 124 | 449 | ], |
| 125 | 450 | 'paginationShow' => [ |
| 126 | 451 | 'type' => 'boolean', |
| 127 | 452 | 'default' => false, |
| @@ -147,8 +472,12 @@ | ||
| 147 | 472 | 'selector'=>'{{ULTP}} .ultp-big-post-module2 .ultp-block-content-wrap .ultp-block-image img {width: 100%; object-fit: cover; height: {{largeHeight}};}' |
| 148 | 473 | ], |
| 149 | 474 | ], |
| 150 | 475 | ], |
| 476 | + 'contentTag' => [ | |
| 477 | + 'type' => 'string', | |
| 478 | + 'default' => 'div', | |
| 479 | + ], | |
| 151 | 480 | 'openInTab' => [ |
| 152 | 481 | 'type' => 'boolean', |
| 153 | 482 | 'default' => false, |
| 154 | 483 | ], |
| @@ -189,9 +518,9 @@ | ||
| 189 | 518 | 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-inner, {{ULTP}} .ultp-sub-heading-inner{ text-align:{{headingAlign}}; }']] |
| 190 | 519 | ], |
| 191 | 520 | 'headingTypo' => [ |
| 192 | 521 | 'type' => 'object', |
| 193 | - 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => 'uppercase', 'family'=>'','weight'=>'700'], | |
| 522 | + 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => '', 'family'=>'','weight'=>'700'], | |
| 194 | 523 | 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-wrap .ultp-heading-inner']] |
| 195 | 524 | ], |
| 196 | 525 | 'headingColor' => [ |
| 197 | 526 | 'type' => 'string', |
| @@ -223,9 +552,9 @@ | ||
| 223 | 552 | (object)[ |
| 224 | 553 | 'depends' => [ |
| 225 | 554 | (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'], |
| 226 | 555 | ], |
| 227 | - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }' | |
| 556 | + 'selector'=>'{{ULTP}} .ultp-heading-inner span:before, {{ULTP}} .ultp-heading-inner span:after { background-color: {{headingBorderBottomColor}}; }' | |
| 228 | 557 | ], |
| 229 | 558 | (object)[ |
| 230 | 559 | 'depends' => [ |
| 231 | 560 | (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'], |
| @@ -319,9 +648,9 @@ | ||
| 319 | 648 | ], |
| 320 | 649 | ], |
| 321 | 650 | 'headingBg' => [ |
| 322 | 651 | 'type' => 'string', |
| 323 | - 'default' => '#1740f5', | |
| 652 | + 'default' => '#037fff', | |
| 324 | 653 | 'style' => [ |
| 325 | 654 | (object)[ |
| 326 | 655 | 'depends' => [ |
| 327 | 656 | (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'], |
| @@ -335,8 +664,14 @@ | ||
| 335 | 664 | 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' |
| 336 | 665 | ], |
| 337 | 666 | (object)[ |
| 338 | 667 | 'depends' => [ |
| 668 | + (object)['key'=>'headingStyle','condition'=>'==','value'=>'style21'], | |
| 669 | + ], | |
| 670 | + 'selector'=>'{{ULTP}} .ultp-heading-inner span, {{ULTP}} .ultp-heading-inner span:after { background-color:{{headingBg}}; }' | |
| 671 | + ], | |
| 672 | + (object)[ | |
| 673 | + 'depends' => [ | |
| 339 | 674 | (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], |
| 340 | 675 | ], |
| 341 | 676 | 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' |
| 342 | 677 | ], |
| @@ -391,9 +726,9 @@ | ||
| 391 | 726 | ], |
| 392 | 727 | ], |
| 393 | 728 | 'headingBtnColor' => [ |
| 394 | 729 | 'type' => 'string', |
| 395 | - 'default' => '#1740f5', | |
| 730 | + 'default' => '#037fff', | |
| 396 | 731 | 'style' => [ |
| 397 | 732 | (object)[ |
| 398 | 733 | 'depends' => [ |
| 399 | 734 | (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'], |
| @@ -440,9 +775,9 @@ | ||
| 440 | 775 | (object)[ |
| 441 | 776 | 'depends' => [ |
| 442 | 777 | (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'], |
| 443 | 778 | ], |
| 444 | - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }' | |
| 779 | + 'selector'=>'{{ULTP}} .ultp-heading-inner span:before, {{ULTP}} .ultp-heading-inner span:after { height:{{headingBorder}}px; }' | |
| 445 | 780 | ], |
| 446 | 781 | (object)[ |
| 447 | 782 | 'depends' => [ |
| 448 | 783 | (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'], |
| @@ -506,9 +841,9 @@ | ||
| 506 | 841 | ], |
| 507 | 842 | ], |
| 508 | 843 | 'headingSpacing' => [ |
| 509 | 844 | 'type' => 'object', |
| 510 | - 'default' => (object)['lg'=>30, 'unit'=>'px'], | |
| 845 | + 'default' => (object)['lg'=>20, 'unit'=>'px'], | |
| 511 | 846 | 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap {margin-top:0; margin-bottom:{{headingSpacing}}; }']] |
| 512 | 847 | ], |
| 513 | 848 | |
| 514 | 849 | |
| @@ -569,9 +904,9 @@ | ||
| 569 | 904 | |
| 570 | 905 | |
| 571 | 906 | 'headingPadding' => [ |
| 572 | 907 | 'type' => 'object', |
| 573 | - 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']], | |
| 908 | + 'default' => (object)['lg' =>(object)['unit' =>'px']], | |
| 574 | 909 | 'style' => [ |
| 575 | 910 | (object)[ |
| 576 | 911 | 'depends' => [ |
| 577 | 912 | (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'], |
| @@ -631,8 +966,14 @@ | ||
| 631 | 966 | (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'], |
| 632 | 967 | ], |
| 633 | 968 | 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' |
| 634 | 969 | ], |
| 970 | + (object)[ | |
| 971 | + 'depends' => [ | |
| 972 | + (object)['key'=>'headingStyle','condition'=>'==','value'=>'style21'], | |
| 973 | + ], | |
| 974 | + 'selector'=>'{{ULTP}} .ultp-heading-inner span { padding:{{headingPadding}}; }' | |
| 975 | + ], | |
| 635 | 976 | ] |
| 636 | 977 | ], |
| 637 | 978 | 'subHeadingShow' => [ |
| 638 | 979 | 'type' => 'boolean', |
| @@ -650,9 +991,9 @@ | ||
| 650 | 991 | ], |
| 651 | 992 | ], |
| 652 | 993 | 'subHeadingTypo' => [ |
| 653 | 994 | 'type' => 'object', |
| 654 | - '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'], | |
| 995 | + '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' => '','family'=>'','weight'=>'500'], | |
| 655 | 996 | 'style' => [ |
| 656 | 997 | (object)[ |
| 657 | 998 | 'depends' => [ |
| 658 | 999 | (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], |
| @@ -674,9 +1015,9 @@ | ||
| 674 | 1015 | ], |
| 675 | 1016 | ], |
| 676 | 1017 | 'subHeadingSpacing' => [ |
| 677 | 1018 | 'type' => 'object', |
| 678 | - 'default' => (object)['lg' =>(object)['unit' =>'px']], | |
| 1019 | + 'default' => (object)['lg' =>(object)['top' => '8', 'unit' =>'px']], | |
| 679 | 1020 | 'style' => [ |
| 680 | 1021 | (object)[ |
| 681 | 1022 | 'depends' => [ |
| 682 | 1023 | (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], |
| @@ -705,9 +1046,9 @@ | ||
| 705 | 1046 | (object)[ |
| 706 | 1047 | 'depends' => [ |
| 707 | 1048 | (object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| 708 | 1049 | ], |
| 709 | - 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a { color:{{titleColor}}; }' | |
| 1050 | + 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-content .ultp-block-title a { color:{{titleColor}} !important; }' | |
| 710 | 1051 | ], |
| 711 | 1052 | ], |
| 712 | 1053 | ], |
| 713 | 1054 | 'titleHoverColor' => [ |
| @@ -717,15 +1058,15 @@ | ||
| 717 | 1058 | (object)[ |
| 718 | 1059 | 'depends' => [ |
| 719 | 1060 | (object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| 720 | 1061 | ], |
| 721 | - 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}}; }' | |
| 1062 | + 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}} !important; }' | |
| 722 | 1063 | ], |
| 723 | 1064 | ], |
| 724 | 1065 | ], |
| 725 | 1066 | 'titleLgTypo' => [ |
| 726 | 1067 | 'type' => 'object', |
| 727 | - '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'], | |
| 1068 | + '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' => '','family'=>'','weight'=>'500'], | |
| 728 | 1069 | 'style' => [ |
| 729 | 1070 | (object)[ |
| 730 | 1071 | 'depends' => [ |
| 731 | 1072 | (object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| @@ -733,11 +1074,24 @@ | ||
| 733 | 1074 | 'selector'=>'{{ULTP}} .ultp-big-post-module2 .ultp-block-item:first-child .ultp-block-title, {{ULTP}} .ultp-big-post-module2 .ultp-block-item:first-child .ultp-block-title a' |
| 734 | 1075 | ], |
| 735 | 1076 | ], |
| 736 | 1077 | ], |
| 1078 | + 'lgTitleColor' => [ | |
| 1079 | + 'type' => 'string', | |
| 1080 | + 'default' => '#fff', | |
| 1081 | + 'style' => [ | |
| 1082 | + (object)[ | |
| 1083 | + 'depends' => [ | |
| 1084 | + (object)['key'=>'titleShow','condition'=>'==','value'=>true], | |
| 1085 | + ], | |
| 1086 | + 'selector'=>'{{ULTP}} .ultp-big-post-module2 .ultp-block-content | |
| 1087 | + .ultp-block-title a { color: {{lgTitleColor}} !important }' | |
| 1088 | + ], | |
| 1089 | + ], | |
| 1090 | + ], | |
| 737 | 1091 | 'titleTypo' => [ |
| 738 | 1092 | 'type' => 'object', |
| 739 | - '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'], | |
| 1093 | + 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'14', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)['lg'=>'22', 'unit'=>'px'],'transform' => '', 'decoration'=>'none','family'=>'','weight'=>'500'], | |
| 740 | 1094 | 'style' => [ |
| 741 | 1095 | (object)[ |
| 742 | 1096 | 'depends' => [ |
| 743 | 1097 | (object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| @@ -757,8 +1111,24 @@ | ||
| 757 | 1111 | 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }' |
| 758 | 1112 | ], |
| 759 | 1113 | ], |
| 760 | 1114 | ], |
| 1115 | + 'titleLength' => [ | |
| 1116 | + 'type' => 'string', | |
| 1117 | + 'default' => 0, | |
| 1118 | + ], | |
| 1119 | + 'titleBackground' => [ | |
| 1120 | + 'type' => 'string', | |
| 1121 | + 'default' => '', | |
| 1122 | + 'style' => [ | |
| 1123 | + (object)[ | |
| 1124 | + 'depends' => [ | |
| 1125 | + (object)['key'=>'titleShow','condition'=>'==','value'=>true], | |
| 1126 | + ], | |
| 1127 | + 'selector'=>'{{ULTP}} .ultp-big-post-module2 .ultp-block-title a{ padding: 2px 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background-color:{{titleBackground}}; }' | |
| 1128 | + ], | |
| 1129 | + ], | |
| 1130 | + ], | |
| 761 | 1131 | |
| 762 | 1132 | //-------------------------- |
| 763 | 1133 | // Content Setting/Style |
| 764 | 1134 | //-------------------------- |
| @@ -786,9 +1156,12 @@ | ||
| 786 | 1156 | '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; }' |
| 787 | 1157 | ], |
| 788 | 1158 | ], |
| 789 | 1159 | ], |
| 790 | - | |
| 1160 | + 'showSeoMeta' => [ | |
| 1161 | + 'type' => 'boolean', | |
| 1162 | + 'default'=> false | |
| 1163 | + ], | |
| 791 | 1164 | 'showSmallExcerpt' => [ |
| 792 | 1165 | 'type' => 'boolean', |
| 793 | 1166 | 'default'=> false, |
| 794 | 1167 | ], |
| @@ -801,9 +1174,9 @@ | ||
| 801 | 1174 | 'default' => 20, |
| 802 | 1175 | 'style' => [ |
| 803 | 1176 | (object)[ |
| 804 | 1177 | 'depends' => [ |
| 805 | - (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false], | |
| 1178 | + (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false] | |
| 806 | 1179 | ], |
| 807 | 1180 | ], |
| 808 | 1181 | ], |
| 809 | 1182 | ], |
| @@ -826,9 +1199,9 @@ | ||
| 826 | 1199 | (object)[ |
| 827 | 1200 | 'depends' => [ |
| 828 | 1201 | (object)['key'=>'excerptShow','condition'=>'==','value'=>true], |
| 829 | 1202 | ], |
| 830 | - 'selector'=>'{{ULTP}} .ultp-block-excerpt' | |
| 1203 | + 'selector'=>'{{ULTP}} .ultp-block-excerpt, {{ULTP}} .ultp-block-excerpt p' | |
| 831 | 1204 | ], |
| 832 | 1205 | ], |
| 833 | 1206 | ], |
| 834 | 1207 | 'excerptPadding' => [ |
| @@ -848,9 +1221,9 @@ | ||
| 848 | 1221 | // Count Style Setting/Style |
| 849 | 1222 | //-------------------------- |
| 850 | 1223 | 'counterTypo' => [ |
| 851 | 1224 | 'type' => 'object', |
| 852 | - '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'=>'' ], | |
| 1225 | + 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>14, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>0, 'unit' =>'px'], 'transform' => '', 'weight' => '400', 'decoration' => 'none','family'=>'' ], | |
| 853 | 1226 | 'style' => [ |
| 854 | 1227 | (object)[ |
| 855 | 1228 | 'depends' => [ |
| 856 | 1229 | (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']], |
| @@ -934,8 +1307,12 @@ | ||
| 934 | 1307 | |
| 935 | 1308 | //-------------------------- |
| 936 | 1309 | // Category Setting/Style |
| 937 | 1310 | //-------------------------- |
| 1311 | + 'taxonomy' => [ | |
| 1312 | + 'type' => 'string', | |
| 1313 | + 'default' => 'category' | |
| 1314 | + ], | |
| 938 | 1315 | 'showSmallCat' => [ |
| 939 | 1316 | 'type' => 'boolean', |
| 940 | 1317 | 'default' => false, |
| 941 | 1318 | ], |
| @@ -1012,9 +1389,9 @@ | ||
| 1012 | 1389 | ] |
| 1013 | 1390 | ], |
| 1014 | 1391 | 'catLineHoverColor' => [ |
| 1015 | 1392 | 'type' => 'string', |
| 1016 | - 'default' => '#1740f5', | |
| 1393 | + 'default' => '#037fff', | |
| 1017 | 1394 | 'style' => [ |
| 1018 | 1395 | (object)[ |
| 1019 | 1396 | 'depends' => [ |
| 1020 | 1397 | (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'], |
| @@ -1024,21 +1401,21 @@ | ||
| 1024 | 1401 | ] |
| 1025 | 1402 | ], |
| 1026 | 1403 | 'catTypo' => [ |
| 1027 | 1404 | 'type' => 'object', |
| 1028 | - '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'=>'' ], | |
| 1405 | + 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>14, 'unit' =>'px'], 'height' => (object)['lg' =>20, 'unit' =>'px'], 'spacing' => (object)['lg' =>0, 'unit' =>'px'], 'transform' => '', 'weight' => '400', 'decoration' => 'none','family'=>'' ], | |
| 1029 | 1406 | 'style' => [ |
| 1030 | 1407 | (object)[ |
| 1031 | 1408 | 'depends' => [ |
| 1032 | 1409 | (object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1033 | 1410 | ], |
| 1034 | - 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a' | |
| 1411 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a' | |
| 1035 | 1412 | ], |
| 1036 | 1413 | ], |
| 1037 | 1414 | ], |
| 1038 | 1415 | 'catColor' => [ |
| 1039 | 1416 | 'type' => 'string', |
| 1040 | - 'default' => '#1740f5', | |
| 1417 | + 'default' => '#037fff', | |
| 1041 | 1418 | 'style' => [ |
| 1042 | 1419 | (object)[ |
| 1043 | 1420 | 'depends' => [ |
| 1044 | 1421 | (object)['key'=>'catShow','condition'=>'==','value'=>true], |
| @@ -1043,9 +1420,9 @@ | ||
| 1043 | 1420 | 'depends' => [ |
| 1044 | 1421 | (object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1045 | 1422 | (object)['key'=>'customCatColor','condition'=>'!=','value'=>true], |
| 1046 | 1423 | ], |
| 1047 | - 'selector'=>'{{ULTP}} .ultp-category-grid a { color:{{catColor}}; }' | |
| 1424 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }' | |
| 1048 | 1425 | ], |
| 1049 | 1426 | ], |
| 1050 | 1427 | ], |
| 1051 | 1428 | 'catBgColor' => [ |
| @@ -1095,9 +1472,9 @@ | ||
| 1095 | 1472 | 'depends' => [ |
| 1096 | 1473 | (object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1097 | 1474 | (object)['key'=>'customCatColor','condition'=>'!=','value'=>true], |
| 1098 | 1475 | ], |
| 1099 | - 'selector'=>'{{ULTP}} .ultp-category-grid a:hover { color:{{catHoverColor}}; }' | |
| 1476 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }' | |
| 1100 | 1477 | ], |
| 1101 | 1478 | ], |
| 1102 | 1479 | ], |
| 1103 | 1480 | 'catBgHoverColor' => [ |
| @@ -1166,8 +1543,12 @@ | ||
| 1166 | 1543 | 'metaStyle' => [ |
| 1167 | 1544 | 'type' => 'string', |
| 1168 | 1545 | 'default' => 'icon', |
| 1169 | 1546 | ], |
| 1547 | + 'authorLink' => [ | |
| 1548 | + 'type' => 'boolean', | |
| 1549 | + 'default' => true, | |
| 1550 | + ], | |
| 1170 | 1551 | 'metaSeparator' => [ |
| 1171 | 1552 | 'type' => 'string', |
| 1172 | 1553 | 'default' => 'dot', |
| 1173 | 1554 | ], |
| @@ -1174,8 +1555,20 @@ | ||
| 1174 | 1555 | 'metaList' => [ |
| 1175 | 1556 | 'type' => 'string', |
| 1176 | 1557 | 'default' => '["metaAuthor","metaDate","metaRead"]', |
| 1177 | 1558 | ], |
| 1559 | + 'metaMinText' => [ | |
| 1560 | + 'type' => 'string', | |
| 1561 | + 'default' => 'min read', | |
| 1562 | + ], | |
| 1563 | + 'metaAuthorPrefix' => [ | |
| 1564 | + 'type' => 'string', | |
| 1565 | + 'default' => 'By', | |
| 1566 | + ], | |
| 1567 | + 'metaDateFormat' => [ | |
| 1568 | + 'type' => 'string', | |
| 1569 | + 'default' => 'M j, Y', | |
| 1570 | + ], | |
| 1178 | 1571 | 'metaListSmall' => [ |
| 1179 | 1572 | 'type' => 'string', |
| 1180 | 1573 | 'default' => '["metaAuthor","metaDate"]', |
| 1181 | 1574 | ], |
| @@ -1198,9 +1591,9 @@ | ||
| 1198 | 1591 | (object)[ |
| 1199 | 1592 | 'depends' => [ |
| 1200 | 1593 | (object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1201 | 1594 | ], |
| 1202 | - 'selector'=>'{{ULTP}} .ultp-block-meta span { color: {{metaColor}}; } {{ULTP}} .ultp-block-meta span svg { fill: {{metaColor}}; } {{ULTP}} .ultp-block-meta span a { color: {{metaColor}}; }{{ULTP}} .ultp-block-meta-dot span:after { background:{{metaColor}}; } {{ULTP}} .ultp-block-meta span:after { color:{{metaColor}}; }' | |
| 1595 | + '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}}; }' | |
| 1203 | 1596 | ], |
| 1204 | 1597 | ], |
| 1205 | 1598 | ], |
| 1206 | 1599 | 'metaHoverColor' => [ |
| @@ -1210,9 +1603,9 @@ | ||
| 1210 | 1603 | (object)[ |
| 1211 | 1604 | 'depends' => [ |
| 1212 | 1605 | (object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1213 | 1606 | ], |
| 1214 | - 'selector'=>'{{ULTP}} .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }' | |
| 1607 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }' | |
| 1215 | 1608 | ], |
| 1216 | 1609 | ], |
| 1217 | 1610 | ], |
| 1218 | 1611 | 'metaSpacing' => [ |
| @@ -1224,8 +1617,15 @@ | ||
| 1224 | 1617 | (object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1225 | 1618 | ], |
| 1226 | 1619 | '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}}; }' |
| 1227 | 1620 | ], |
| 1621 | + (object)[ | |
| 1622 | + 'depends' => [ | |
| 1623 | + (object)['key'=>'metaShow','condition'=>'==','value'=>true], | |
| 1624 | + (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'], | |
| 1625 | + ], | |
| 1626 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:last-child{margin-right:0px;}' | |
| 1627 | + ], | |
| 1228 | 1628 | ], |
| 1229 | 1629 | ], |
| 1230 | 1630 | 'metaMargin' => [ |
| 1231 | 1631 | 'type' => 'object', |
| @@ -1299,10 +1699,17 @@ | ||
| 1299 | 1699 | (object)[ |
| 1300 | 1700 | 'depends' => [ |
| 1301 | 1701 | (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'], |
| 1302 | 1702 | ], |
| 1303 | - 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;}' | |
| 1703 | + 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;} .rtl {{ULTP}} .ultp-block-meta {justify-content: start;}' | |
| 1304 | 1704 | ], |
| 1705 | + (object)[ | |
| 1706 | + 'depends' => [ | |
| 1707 | + (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'], | |
| 1708 | + (object)['key'=>'readMore','condition'=>'==','value'=>true], | |
| 1709 | + ], | |
| 1710 | + 'selector'=>' .rtl {{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a {display:flex; flex-direction:row-reverse;justify-content: flex-end;}' | |
| 1711 | + ], | |
| 1305 | 1712 | ], |
| 1306 | 1713 | ], |
| 1307 | 1714 | 'contentWrapBg' => [ |
| 1308 | 1715 | 'type' => 'string', |
| @@ -1405,22 +1812,32 @@ | ||
| 1405 | 1812 | ], |
| 1406 | 1813 | 'imgCrop' => [ |
| 1407 | 1814 | 'type' => 'string', |
| 1408 | 1815 | 'default' => 'full', |
| 1409 | - 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']] | |
| 1816 | + 'depends' => [ | |
| 1817 | + (object)['key' => 'showImage','condition' => '==','value' => true] | |
| 1818 | + ] | |
| 1410 | 1819 | ], |
| 1411 | 1820 | 'imgCropSmall' => [ |
| 1412 | 1821 | 'type' => 'string', |
| 1413 | - 'default' => 'ultp_layout_square', | |
| 1414 | - 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']] | |
| 1822 | + 'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_square'), | |
| 1823 | + 'style' => [ | |
| 1824 | + (object)[ | |
| 1825 | + 'depends' => [ | |
| 1826 | + (object)['key' => 'showImage','condition' => '==','value' => true], | |
| 1827 | + (object)['key' => 'layout','condition' => '!=','value' => 'layout1'] | |
| 1828 | + ] | |
| 1829 | + ], | |
| 1830 | + ], | |
| 1415 | 1831 | ], |
| 1416 | 1832 | 'imgWidth' => [ |
| 1417 | 1833 | 'type' => 'object', |
| 1418 | - 'default' => (object)['lg' =>'80', 'sm' =>'65', 'xs' =>'', 'unit' =>'px'], | |
| 1834 | + 'default' => (object)['lg' =>'80', 'sm' =>'65', 'xs' =>'', 'ulg' =>'px', 'usm' =>'px'], | |
| 1419 | 1835 | 'style' => [ |
| 1420 | 1836 | (object)[ |
| 1421 | 1837 | 'depends' => [ |
| 1422 | 1838 | (object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1839 | + (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"] | |
| 1423 | 1840 | ], |
| 1424 | 1841 | 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { max-width: {{imgWidth}}; }' |
| 1425 | 1842 | ], |
| 1426 | 1843 | ], |
| @@ -1431,13 +1848,27 @@ | ||
| 1431 | 1848 | 'style' => [ |
| 1432 | 1849 | (object)[ |
| 1433 | 1850 | 'depends' => [ |
| 1434 | 1851 | (object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1852 | + (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"] | |
| 1435 | 1853 | ], |
| 1436 | - 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image img {object-fit: cover; height: {{imgHeight}}; }' | |
| 1854 | + 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image img {height: {{imgHeight}}; }' | |
| 1437 | 1855 | ], |
| 1438 | 1856 | ], |
| 1439 | 1857 | ], |
| 1858 | + 'imageScale' => [ | |
| 1859 | + 'type' => 'string', | |
| 1860 | + 'default' => 'cover', | |
| 1861 | + 'style' => [ | |
| 1862 | + (object)[ | |
| 1863 | + 'depends' => [ | |
| 1864 | + (object)['key'=>'showImage','condition'=>'==','value'=>true], | |
| 1865 | + (object)['key' => 'layout','condition' => '!=','value' => 'layout1'] | |
| 1866 | + ], | |
| 1867 | + 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image img {object-fit: {{imageScale}};}' | |
| 1868 | + ], | |
| 1869 | + ], | |
| 1870 | + ], | |
| 1440 | 1871 | 'imgAnimation' => [ |
| 1441 | 1872 | 'type' => 'string', |
| 1442 | 1873 | 'default' => 'opacity', |
| 1443 | 1874 | ], |
| @@ -1472,9 +1903,9 @@ | ||
| 1472 | 1903 | (object)[ |
| 1473 | 1904 | 'depends' => [ |
| 1474 | 1905 | (object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1475 | 1906 | ], |
| 1476 | - 'selector'=>'{{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }' | |
| 1907 | + 'selector'=>'{{ULTP}} .ultp-big-post-module2 .ultp-block-image, {{ULTP}} .ultp-small-post-module2 .ultp-block-image, {{ULTP}} .ultp-block-image img, {{ULTP}} .ultp-block-image.ultp-block-image-overlay > a:before, {{ULTP}} .ultp-block-image.ultp-block-image-overlay > a:after { border-radius:{{imgRadius}}; }' | |
| 1477 | 1908 | ], |
| 1478 | 1909 | ], |
| 1479 | 1910 | ], |
| 1480 | 1911 | 'imgHoverRadius' => [ |
| @@ -1484,9 +1915,10 @@ | ||
| 1484 | 1915 | (object)[ |
| 1485 | 1916 | 'depends' => [ |
| 1486 | 1917 | (object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1487 | 1918 | ], |
| 1488 | - 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }' | |
| 1919 | + 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image, {{ULTP}} .ultp-block-item:hover .ultp-block-image img, {{ULTP}} | |
| 1920 | + .ultp-block-item:hover .ultp-block-image.ultp-block-image-overlay > a:before, {{ULTP}} .ultp-block-item:hover .ultp-block-image.ultp-block-image-overlay > a:after{ border-radius:{{imgHoverRadius}}; }' | |
| 1489 | 1921 | ], |
| 1490 | 1922 | ], |
| 1491 | 1923 | ], |
| 1492 | 1924 | 'imgShadow' => [ |
| @@ -1520,8 +1952,9 @@ | ||
| 1520 | 1952 | (object)[ |
| 1521 | 1953 | 'depends' => [ |
| 1522 | 1954 | (object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1523 | 1955 | (object)['key'=>'layout','condition'=>'!=','value'=>'layout2'], |
| 1956 | + (object)['key'=>'layout','condition'=>'!=','value'=>'layout1'], | |
| 1524 | 1957 | ], |
| 1525 | 1958 | 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { margin-right: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { margin-right: 0; margin-left: {{imgSpacing}}px; }' |
| 1526 | 1959 | ], |
| 1527 | 1960 | (object)[ |
| @@ -1572,8 +2005,16 @@ | ||
| 1572 | 2005 | 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }' |
| 1573 | 2006 | ], |
| 1574 | 2007 | ], |
| 1575 | 2008 | ], |
| 2009 | + 'imgSrcset' => [ | |
| 2010 | + 'type' => 'boolean', | |
| 2011 | + 'default' => false, | |
| 2012 | + ], | |
| 2013 | + 'imgLazy' => [ | |
| 2014 | + 'type' => 'boolean', | |
| 2015 | + 'default' => false, | |
| 2016 | + ], | |
| 1576 | 2017 | |
| 1577 | 2018 | //-------------------------- |
| 1578 | 2019 | // Separator |
| 1579 | 2020 | //-------------------------- |
| @@ -1643,15 +2084,15 @@ | ||
| 1643 | 2084 | 'default' => 'rightArrowLg', |
| 1644 | 2085 | ], |
| 1645 | 2086 | 'readMoreTypo' => [ |
| 1646 | 2087 | 'type' => 'object', |
| 1647 | - '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'=>'' ], | |
| 2088 | + 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => '', 'weight' => '400', 'decoration' => 'none','family'=>'' ], | |
| 1648 | 2089 | 'style' => [ |
| 1649 | 2090 | (object)[ |
| 1650 | 2091 | 'depends' => [ |
| 1651 | 2092 | (object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1652 | 2093 | ], |
| 1653 | - 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-readmore a' | |
| 2094 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a' | |
| 1654 | 2095 | ], |
| 1655 | 2096 | ], |
| 1656 | 2097 | ], |
| 1657 | 2098 | 'readMoreIconSize' => [ |
| @@ -1673,9 +2114,9 @@ | ||
| 1673 | 2114 | (object)[ |
| 1674 | 2115 | 'depends' => [ |
| 1675 | 2116 | (object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1676 | 2117 | ], |
| 1677 | - 'selector'=>'{{ULTP}} .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }' | |
| 2118 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }' | |
| 1678 | 2119 | ], |
| 1679 | 2120 | ], |
| 1680 | 2121 | ], |
| 1681 | 2122 | 'readMoreBgColor' => [ |
| @@ -1721,9 +2162,9 @@ | ||
| 1721 | 2162 | (object)[ |
| 1722 | 2163 | 'depends' => [ |
| 1723 | 2164 | (object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1724 | 2165 | ], |
| 1725 | - 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }' | |
| 2166 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }' | |
| 1726 | 2167 | ], |
| 1727 | 2168 | ], |
| 1728 | 2169 | ], |
| 1729 | 2170 | 'readMoreBgHoverColor' => [ |
| @@ -1789,8 +2230,32 @@ | ||
| 1789 | 2230 | |
| 1790 | 2231 | //-------------------------- |
| 1791 | 2232 | // Filter Setting/Style |
| 1792 | 2233 | //-------------------------- |
| 2234 | + 'filterBelowTitle' => [ | |
| 2235 | + 'type' => 'boolean', | |
| 2236 | + 'default' => false, | |
| 2237 | + 'style' => [ | |
| 2238 | + (object)[ | |
| 2239 | + 'depends' => [ | |
| 2240 | + (object)['key'=>'filterShow','condition'=>'==','value'=>true], | |
| 2241 | + ], | |
| 2242 | + 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { position: relative; display: block; margin: auto 0 0 0; height: auto;}' | |
| 2243 | + ], | |
| 2244 | + ], | |
| 2245 | + ], | |
| 2246 | + 'filterAlign' => [ | |
| 2247 | + 'type' => 'object', | |
| 2248 | + 'default' => (object)['lg' =>''], | |
| 2249 | + 'style' => [ | |
| 2250 | + (object)[ | |
| 2251 | + 'depends' => [ | |
| 2252 | + (object)['key'=>'filterBelowTitle','condition'=>'==','value'=>true], | |
| 2253 | + ], | |
| 2254 | + 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { text-align:{{filterAlign}}; }' | |
| 2255 | + ], | |
| 2256 | + ], | |
| 2257 | + ], | |
| 1793 | 2258 | 'filterType' => [ |
| 1794 | 2259 | 'type' => 'string', |
| 1795 | 2260 | 'default' => 'category' |
| 1796 | 2261 | ], |
| @@ -1797,29 +2262,20 @@ | ||
| 1797 | 2262 | 'filterText' => [ |
| 1798 | 2263 | 'type' => 'string', |
| 1799 | 2264 | 'default' => 'all' |
| 1800 | 2265 | ], |
| 1801 | - 'filterCat' => [ | |
| 2266 | + 'filterValue' => [ | |
| 1802 | 2267 | 'type' => 'string', |
| 1803 | 2268 | 'default' => '[]', |
| 1804 | 2269 | 'style' => [ |
| 1805 | 2270 | (object)[ |
| 1806 | - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'category']] | |
| 2271 | + 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']] | |
| 1807 | 2272 | ], |
| 1808 | 2273 | ], |
| 1809 | 2274 | ], |
| 1810 | - 'filterTag' => [ | |
| 1811 | - 'type' => 'string', | |
| 1812 | - 'default' => '[]', | |
| 1813 | - 'style' => [ | |
| 1814 | - (object)[ | |
| 1815 | - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'post_tag']] | |
| 1816 | - ], | |
| 1817 | - ], | |
| 1818 | - ], | |
| 1819 | 2275 | 'fliterTypo' => [ |
| 1820 | 2276 | 'type' => 'object', |
| 1821 | - 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>18, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500], | |
| 2277 | + 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>22, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500], | |
| 1822 | 2278 | 'style' => [ |
| 1823 | 2279 | (object)[ |
| 1824 | 2280 | 'depends' => [ |
| 1825 | 2281 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| @@ -1835,9 +2291,9 @@ | ||
| 1835 | 2291 | (object)[ |
| 1836 | 2292 | 'depends' => [ |
| 1837 | 2293 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1838 | 2294 | ], |
| 1839 | - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li a { color:{{filterColor}}; }' | |
| 2295 | + 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a { color:{{filterColor}}; }{{ULTP}} .flexMenu-viewMore a:before { border-color:{{filterColor}}}' | |
| 1840 | 2296 | ], |
| 1841 | 2297 | ], |
| 1842 | 2298 | ], |
| 1843 | 2299 | 'filterHoverColor' => [ |
| @@ -1847,9 +2303,9 @@ | ||
| 1847 | 2303 | (object)[ |
| 1848 | 2304 | 'depends' => [ |
| 1849 | 2305 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1850 | 2306 | ], |
| 1851 | - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li a:hover, {{ULTP}} .ultp-filter-wrap ul li a.filter-active { color:{{filterHoverColor}}; }' | |
| 2307 | + '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}} !important; } {{ULTP}} .ultp-flex-menu .flexMenu-viewMore a:hover::before { border-color:{{filterHoverColor}}}' | |
| 1852 | 2308 | ], |
| 1853 | 2309 | ], |
| 1854 | 2310 | ], |
| 1855 | 2311 | 'filterBgColor' => [ |
| @@ -1869,9 +2325,9 @@ | ||
| 1869 | 2325 | (object)[ |
| 1870 | 2326 | 'depends' => [ |
| 1871 | 2327 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1872 | 2328 | ], |
| 1873 | - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover, {{ULTP}} .ultp-filter-wrap ul li.filter-item > a.filter-active { background:{{filterHoverBgColor}}; }' | |
| 2329 | + 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover, {{ULTP}} .ultp-filter-wrap ul li.filter-item > a.filter-active, {{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore > a:hover { background:{{filterHoverBgColor}}; }' | |
| 1874 | 2330 | ], |
| 1875 | 2331 | ], |
| 1876 | 2332 | ], |
| 1877 | 2333 | 'filterBorder' => [ |
| @@ -1929,9 +2385,9 @@ | ||
| 1929 | 2385 | (object)[ |
| 1930 | 2386 | 'depends' => [ |
| 1931 | 2387 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1932 | 2388 | ], |
| 1933 | - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { padding:{{fliterPadding}}; }' | |
| 2389 | + 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a, {{ULTP}} .ultp-filter-wrap .flexMenu-viewMore > a { padding:{{fliterPadding}}; }' | |
| 1934 | 2390 | ], |
| 1935 | 2391 | ], |
| 1936 | 2392 | ], |
| 1937 | 2393 | 'filterDropdownColor' => [ |
| @@ -1947,9 +2403,9 @@ | ||
| 1947 | 2403 | ], |
| 1948 | 2404 | ], |
| 1949 | 2405 | 'filterDropdownHoverColor' => [ |
| 1950 | 2406 | 'type' => 'string', |
| 1951 | - 'default' => '#1740f5', | |
| 2407 | + 'default' => '#037fff', | |
| 1952 | 2408 | 'style' => [ |
| 1953 | 2409 | (object)[ |
| 1954 | 2410 | 'depends' => [ |
| 1955 | 2411 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| @@ -1993,8 +2449,23 @@ | ||
| 1993 | 2449 | 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { padding:{{filterDropdownPadding}}; }' |
| 1994 | 2450 | ], |
| 1995 | 2451 | ], |
| 1996 | 2452 | ], |
| 2453 | + 'filterMobile' => [ | |
| 2454 | + 'type' => 'boolean', | |
| 2455 | + 'default' => true, | |
| 2456 | + ], | |
| 2457 | + 'filterMobileText' => [ | |
| 2458 | + 'type' => 'string', | |
| 2459 | + 'default' => 'More', | |
| 2460 | + 'style' => [ | |
| 2461 | + (object)[ | |
| 2462 | + 'depends' => [ | |
| 2463 | + (object)['key'=>'filterMobile','condition'=>'==','value'=>true], | |
| 2464 | + ] | |
| 2465 | + ] | |
| 2466 | + ] | |
| 2467 | + ], | |
| 1997 | 2468 | |
| 1998 | 2469 | |
| 1999 | 2470 | //-------------------------- |
| 2000 | 2471 | // Pagination Setting/Style |
| @@ -2060,9 +2531,8 @@ | ||
| 2060 | 2531 | ], |
| 2061 | 2532 | 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul li a svg { width:{{pagiArrowSize}}px; }' |
| 2062 | 2533 | ], |
| 2063 | 2534 | ], |
| 2064 | - | |
| 2065 | 2535 | ], |
| 2066 | 2536 | 'pagiColor' => [ |
| 2067 | 2537 | 'type' => 'string', |
| 2068 | 2538 | 'default' => '#fff', |
| @@ -2070,9 +2540,9 @@ | ||
| 2070 | 2540 | (object)[ |
| 2071 | 2541 | 'depends' => [ |
| 2072 | 2542 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2073 | 2543 | ], |
| 2074 | - 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .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}}; }' | |
| 2544 | + '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}}; }' | |
| 2075 | 2545 | ], |
| 2076 | 2546 | ], |
| 2077 | 2547 | ], |
| 2078 | 2548 | 'pagiBgColor' => [ |
| @@ -2130,21 +2600,21 @@ | ||
| 2130 | 2600 | (object)[ |
| 2131 | 2601 | 'depends' => [ |
| 2132 | 2602 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2133 | 2603 | ], |
| 2134 | - 'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .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}};}}' | |
| 2604 | + '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}};}}' | |
| 2135 | 2605 | ], |
| 2136 | 2606 | ], |
| 2137 | 2607 | ], |
| 2138 | 2608 | 'pagiHoverbg' => [ |
| 2139 | 2609 | 'type' => 'object', |
| 2140 | - 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5', 'replace'=>1], | |
| 2610 | + 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff','replace'=>1], | |
| 2141 | 2611 | 'style' => [ |
| 2142 | 2612 | (object)[ |
| 2143 | 2613 | 'depends' => [ |
| 2144 | 2614 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2145 | 2615 | ], |
| 2146 | - 'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore .ultp-loadmore-action:hover { {{pagiHoverbg}} } @media (min-width: 768px) { {{ULTP}} .ultp-pagination li a:hover { {{pagiHoverbg}} }}' | |
| 2616 | + '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}} }' | |
| 2147 | 2617 | ], |
| 2148 | 2618 | ], |
| 2149 | 2619 | ], |
| 2150 | 2620 | 'pagiHoverBorder' => [ |
| @@ -2178,9 +2648,9 @@ | ||
| 2178 | 2648 | (object)[ |
| 2179 | 2649 | 'depends' => [ |
| 2180 | 2650 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2181 | 2651 | ], |
| 2182 | - 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }' | |
| 2652 | + '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}}; }' | |
| 2183 | 2653 | ], |
| 2184 | 2654 | ], |
| 2185 | 2655 | ], |
| 2186 | 2656 | 'pagiPadding' => [ |
| @@ -2258,9 +2728,9 @@ | ||
| 2258 | 2728 | ], |
| 2259 | 2729 | ], |
| 2260 | 2730 | 'wrapHoverBackground' => [ |
| 2261 | 2731 | 'type' => 'object', |
| 2262 | - 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#1740f5'], | |
| 2732 | + 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'], | |
| 2263 | 2733 | 'style' => [ |
| 2264 | 2734 | (object)[ |
| 2265 | 2735 | 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover' |
| 2266 | 2736 | ], |
| @@ -2324,13 +2794,13 @@ | ||
| 2324 | 2794 | 'type' => 'string', |
| 2325 | 2795 | 'default' => '', |
| 2326 | 2796 | ], |
| 2327 | 2797 | 'advanceZindex' => [ |
| 2328 | - 'type' => 'number', | |
| 2798 | + 'type' => 'string', | |
| 2329 | 2799 | 'default' => '', |
| 2330 | 2800 | 'style' => [ |
| 2331 | 2801 | (object)[ |
| 2332 | - 'selector' => '{{ULTP}} {z-index:{{advanceZindex}};}' | |
| 2802 | + 'selector' => '{{ULTP}} .ultp-block-wrapper{z-index:{{advanceZindex}};}' | |
| 2333 | 2803 | ], |
| 2334 | 2804 | ], |
| 2335 | 2805 | ], |
| 2336 | 2806 | 'hideExtraLarge' => [ |
| @@ -2341,17 +2811,8 @@ | ||
| 2341 | 2811 | 'selector' => '{{ULTP}} {display:none;}' |
| 2342 | 2812 | ], |
| 2343 | 2813 | ], |
| 2344 | 2814 | ], |
| 2345 | - 'hideDesktop' => [ | |
| 2346 | - 'type' => 'boolean', | |
| 2347 | - 'default' => false, | |
| 2348 | - 'style' => [ | |
| 2349 | - (object)[ | |
| 2350 | - 'selector' => '{{ULTP}} {display:none;}' | |
| 2351 | - ], | |
| 2352 | - ], | |
| 2353 | - ], | |
| 2354 | 2815 | 'hideTablet' => [ |
| 2355 | 2816 | 'type' => 'boolean', |
| 2356 | 2817 | 'default' => false, |
| 2357 | 2818 | 'style' => [ |
| @@ -2391,11 +2852,10 @@ | ||
| 2391 | 2852 | |
| 2392 | 2853 | public function register() { |
| 2393 | 2854 | register_block_type( 'ultimate-post/post-module-2', |
| 2394 | 2855 | array( |
| 2856 | + // 'title' => __('Post Module #2', 'ultimate-post'), | |
| 2395 | 2857 | 'attributes' => $this->get_attributes(), |
| 2396 | - 'description' => __( 'Listing your post with top big post.' ), | |
| 2397 | - 'keywords' => [__( 'Post grid' ), __( 'post List' ), __( 'article' ), __('Post Module')], | |
| 2398 | 2858 | 'render_callback' => array($this, 'content') |
| 2399 | 2859 | ) |
| 2400 | 2860 | ); |
| 2401 | 2861 | } |
| @@ -2400,17 +2860,18 @@ | ||
| 2400 | 2860 | ); |
| 2401 | 2861 | } |
| 2402 | 2862 | |
| 2403 | 2863 | public function content($attr, $noAjax) { |
| 2404 | - | |
| 2864 | + global $unique_ID; | |
| 2405 | 2865 | if(!$noAjax){ |
| 2406 | - $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
| 2407 | - $attr['paged'] = $paged; | |
| 2866 | + $paged = is_front_page() ? get_query_var('page') : get_query_var('paged'); | |
| 2867 | + $attr['paged'] = $paged ? $paged : 1; | |
| 2408 | 2868 | } |
| 2409 | 2869 | |
| 2410 | 2870 | $block_name = 'post-module-2'; |
| 2411 | - $page_post_id = get_the_ID(); | |
| 2871 | + $page_post_id = ultimate_post()->get_ID(); | |
| 2412 | 2872 | $wraper_before = $wraper_after = $post_loop = ''; |
| 2873 | + $attr['queryNumber'] = ultimate_post()->get_post_number(5, $attr['queryNumber'], $attr['queryNumPosts']); | |
| 2413 | 2874 | $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) ); |
| 2414 | 2875 | $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts); |
| 2415 | 2876 | |
| 2416 | 2877 | if ($recent_posts->have_posts()) { |
| @@ -2430,9 +2891,9 @@ | ||
| 2430 | 2891 | |
| 2431 | 2892 | if ($attr['filterShow'] || $attr['paginationShow']) { |
| 2432 | 2893 | $wraper_before .= '<div class="ultp-filter-navigation">'; |
| 2433 | 2894 | // Filter |
| 2434 | - if($attr['filterShow']) { | |
| 2895 | + if($attr['filterShow'] && $attr['queryType'] != 'posts' && $attr['queryType'] != 'customPosts') { | |
| 2435 | 2896 | include ULTP_PATH.'blocks/template/filter.php'; |
| 2436 | 2897 | } |
| 2437 | 2898 | // Navigation |
| 2438 | 2899 | if($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) { |
| @@ -2452,18 +2913,22 @@ | ||
| 2452 | 2913 | include ULTP_PATH.'blocks/template/data.php'; |
| 2453 | 2914 | |
| 2454 | 2915 | include ULTP_PATH.'blocks/template/category.php'; |
| 2455 | 2916 | |
| 2456 | - $post_loop .= '<div class="ultp-block-item post-id-'.$post_id.'">'; | |
| 2917 | + if ($attr['queryUnique']) { | |
| 2918 | + $unique_ID[$attr['queryUnique']][] = $post_id; | |
| 2919 | + } | |
| 2457 | 2920 | |
| 2921 | + $post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.'">'; | |
| 2922 | + | |
| 2458 | 2923 | $post_loop .= '<div class="ultp-block-content-wrap">'; |
| 2459 | - if( has_post_thumbnail() && $attr['showImage'] ){ | |
| 2924 | + if( has_post_thumbnail() && $attr['showImage'] && ($idx == 0 || ($attr['layout'] == 'layout2') || ($attr['layout'] == 'layout3') || ($attr['layout'] == 'layout5') ) ){ | |
| 2460 | 2925 | $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 : '' ).'">'; |
| 2461 | 2926 | if ($idx == 0) { |
| 2462 | - $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCrop'], '', $title).'</a>'; | |
| 2927 | + $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCrop'], '', $title, $attr['imgSrcset'], $attr['imgLazy']).'</a>'; | |
| 2463 | 2928 | } else { |
| 2464 | 2929 | if(($attr['layout'] == 'layout2') || ($attr['layout'] === 'layout3') || ($attr['layout'] === 'layout5')){ |
| 2465 | - $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCropSmall'], '', $title).'</a>'; | |
| 2930 | + $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCropSmall'], '', $title, $attr['imgSrcset'], $attr['imgLazy']).'</a>'; | |
| 2466 | 2931 | } |
| 2467 | 2932 | } |
| 2468 | 2933 | if( ($attr['catPosition'] != 'aboveTitle') && ($idx == 0 || $attr['showSmallCat']) && $attr['catShow'] ) { |
| 2469 | 2934 | $post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>'; |
| @@ -2487,18 +2952,15 @@ | ||
| 2487 | 2952 | if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0) { |
| 2488 | 2953 | include ULTP_PATH.'blocks/template/title.php'; |
| 2489 | 2954 | } |
| 2490 | 2955 | // Excerpt |
| 2491 | - if(($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) { | |
| 2492 | - if ( $attr['showFullExcerpt']== 0 ) { | |
| 2493 | - $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->excerpt($post_id, $attr['excerptLimit']).'</div>'; | |
| 2494 | - } else { | |
| 2495 | - $post_loop .= '<div class="ultp-block-excerpt">'.get_the_excerpt().'</div>'; | |
| 2496 | - } | |
| 2956 | + if (($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) { | |
| 2957 | + $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->get_excerpt($post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit']).'</div>'; | |
| 2497 | 2958 | } |
| 2959 | + | |
| 2498 | 2960 | // Read More |
| 2499 | 2961 | if ($attr['readMore'] && ($idx == 0 || $attr['showSmallBtn'])) { |
| 2500 | - $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>'; | |
| 2962 | + $post_loop .= '<div class="ultp-block-readmore"><a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.($attr['readMoreText'] ? $attr['readMoreText'] : esc_html__( "Read More", "ultimate-post" )).ultimate_post()->svg_icon($attr['readMoreIcon']).'</a></div>'; | |
| 2501 | 2963 | } |
| 2502 | 2964 | // Bottom |
| 2503 | 2965 | if( $attr['metaPosition'] =='bottom' ) { |
| 2504 | 2966 | include ULTP_PATH.'blocks/template/meta.php'; |
| @@ -2504,9 +2966,9 @@ | ||
| 2504 | 2966 | include ULTP_PATH.'blocks/template/meta.php'; |
| 2505 | 2967 | } |
| 2506 | 2968 | $post_loop .= '</div>'; |
| 2507 | 2969 | $post_loop .= '</div>'; |
| 2508 | - $post_loop .= '</div>'; | |
| 2970 | + $post_loop .= '</'.$attr['contentTag'].'>'; | |
| 2509 | 2971 | |
| 2510 | 2972 | if($idx == 0) { |
| 2511 | 2973 | $bigloop = $post_loop; |
| 2512 | 2974 | $post_loop = ''; |