| @@ -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-module1 .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 | |
| @@ -631,8 +966,15 @@ | ||
| 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 | + ], | |
| 976 | + | |
| 635 | 977 | ] |
| 636 | 978 | ], |
| 637 | 979 | 'subHeadingShow' => [ |
| 638 | 980 | 'type' => 'boolean', |
| @@ -650,9 +992,9 @@ | ||
| 650 | 992 | ], |
| 651 | 993 | ], |
| 652 | 994 | 'subHeadingTypo' => [ |
| 653 | 995 | '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'], | |
| 996 | + '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 | 997 | 'style' => [ |
| 656 | 998 | (object)[ |
| 657 | 999 | 'depends' => [ |
| 658 | 1000 | (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], |
| @@ -674,9 +1016,9 @@ | ||
| 674 | 1016 | ], |
| 675 | 1017 | ], |
| 676 | 1018 | 'subHeadingSpacing' => [ |
| 677 | 1019 | 'type' => 'object', |
| 678 | - 'default' => (object)['lg' =>(object)['unit' =>'px']], | |
| 1020 | + 'default' => (object)['lg' =>(object)['top' => '8', 'unit' =>'px']], | |
| 679 | 1021 | 'style' => [ |
| 680 | 1022 | (object)[ |
| 681 | 1023 | 'depends' => [ |
| 682 | 1024 | (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], |
| @@ -705,9 +1047,9 @@ | ||
| 705 | 1047 | (object)[ |
| 706 | 1048 | 'depends' => [ |
| 707 | 1049 | (object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| 708 | 1050 | ], |
| 709 | - 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a { color:{{titleColor}}; }' | |
| 1051 | + 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a { color:{{titleColor}} !important; }' | |
| 710 | 1052 | ], |
| 711 | 1053 | ], |
| 712 | 1054 | ], |
| 713 | 1055 | 'titleHoverColor' => [ |
| @@ -717,15 +1059,15 @@ | ||
| 717 | 1059 | (object)[ |
| 718 | 1060 | 'depends' => [ |
| 719 | 1061 | (object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| 720 | 1062 | ], |
| 721 | - 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}}; }' | |
| 1063 | + 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}} !important; }' | |
| 722 | 1064 | ], |
| 723 | 1065 | ], |
| 724 | 1066 | ], |
| 725 | 1067 | 'titleLgTypo' => [ |
| 726 | 1068 | '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'], | |
| 1069 | + '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 | 1070 | 'style' => [ |
| 729 | 1071 | (object)[ |
| 730 | 1072 | 'depends' => [ |
| 731 | 1073 | (object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| @@ -735,9 +1077,9 @@ | ||
| 735 | 1077 | ], |
| 736 | 1078 | ], |
| 737 | 1079 | 'titleTypo' => [ |
| 738 | 1080 | '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'], | |
| 1081 | + '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 | 1082 | 'style' => [ |
| 741 | 1083 | (object)[ |
| 742 | 1084 | 'depends' => [ |
| 743 | 1085 | (object)['key'=>'titleShow','condition'=>'==','value'=>true], |
| @@ -769,8 +1111,12 @@ | ||
| 769 | 1111 | 'selector'=>'{{ULTP}} .ultp-big-post-module1 .ultp-block-content .ultp-block-title { padding:{{titleLgPadding}}; }' |
| 770 | 1112 | ], |
| 771 | 1113 | ], |
| 772 | 1114 | ], |
| 1115 | + 'titleLength' => [ | |
| 1116 | + 'type' => 'string', | |
| 1117 | + 'default' => 0, | |
| 1118 | + ], | |
| 773 | 1119 | |
| 774 | 1120 | //-------------------------- |
| 775 | 1121 | // Content Setting/Style |
| 776 | 1122 | //-------------------------- |
| @@ -798,9 +1144,12 @@ | ||
| 798 | 1144 | '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; }' |
| 799 | 1145 | ], |
| 800 | 1146 | ], |
| 801 | 1147 | ], |
| 802 | - | |
| 1148 | + 'showSeoMeta' => [ | |
| 1149 | + 'type' => 'boolean', | |
| 1150 | + 'default'=> false | |
| 1151 | + ], | |
| 803 | 1152 | 'showSmallExcerpt' => [ |
| 804 | 1153 | 'type' => 'boolean', |
| 805 | 1154 | 'default'=> false, |
| 806 | 1155 | ], |
| @@ -813,9 +1162,9 @@ | ||
| 813 | 1162 | 'default' => 20, |
| 814 | 1163 | 'style' => [ |
| 815 | 1164 | (object)[ |
| 816 | 1165 | 'depends' => [ |
| 817 | - (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false], | |
| 1166 | + (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false] | |
| 818 | 1167 | ], |
| 819 | 1168 | ], |
| 820 | 1169 | ], |
| 821 | 1170 | ], |
| @@ -838,9 +1187,9 @@ | ||
| 838 | 1187 | (object)[ |
| 839 | 1188 | 'depends' => [ |
| 840 | 1189 | (object)['key'=>'excerptShow','condition'=>'==','value'=>true], |
| 841 | 1190 | ], |
| 842 | - 'selector'=>'{{ULTP}} .ultp-block-excerpt' | |
| 1191 | + 'selector'=>'{{ULTP}} .ultp-block-excerpt, {{ULTP}} .ultp-block-excerpt p' | |
| 843 | 1192 | ], |
| 844 | 1193 | ], |
| 845 | 1194 | ], |
| 846 | 1195 | 'excerptPadding' => [ |
| @@ -860,9 +1209,9 @@ | ||
| 860 | 1209 | // Count Style Setting/Style |
| 861 | 1210 | //-------------------------- |
| 862 | 1211 | 'counterTypo' => [ |
| 863 | 1212 | 'type' => 'object', |
| 864 | - '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'=>'' ], | |
| 1213 | + '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'=>'' ], | |
| 865 | 1214 | 'style' => [ |
| 866 | 1215 | (object)[ |
| 867 | 1216 | 'depends' => [ |
| 868 | 1217 | (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']], |
| @@ -946,8 +1295,12 @@ | ||
| 946 | 1295 | |
| 947 | 1296 | //-------------------------- |
| 948 | 1297 | // Category Setting/Style |
| 949 | 1298 | //-------------------------- |
| 1299 | + 'taxonomy' => [ | |
| 1300 | + 'type' => 'string', | |
| 1301 | + 'default' => 'category' | |
| 1302 | + ], | |
| 950 | 1303 | 'showSmallCat' => [ |
| 951 | 1304 | 'type' => 'boolean', |
| 952 | 1305 | 'default' => false, |
| 953 | 1306 | ], |
| @@ -1024,9 +1377,9 @@ | ||
| 1024 | 1377 | ] |
| 1025 | 1378 | ], |
| 1026 | 1379 | 'catLineHoverColor' => [ |
| 1027 | 1380 | 'type' => 'string', |
| 1028 | - 'default' => '#1740f5', | |
| 1381 | + 'default' => '#037fff', | |
| 1029 | 1382 | 'style' => [ |
| 1030 | 1383 | (object)[ |
| 1031 | 1384 | 'depends' => [ |
| 1032 | 1385 | (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'], |
| @@ -1036,21 +1389,21 @@ | ||
| 1036 | 1389 | ] |
| 1037 | 1390 | ], |
| 1038 | 1391 | 'catTypo' => [ |
| 1039 | 1392 | 'type' => 'object', |
| 1040 | - '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'=>'' ], | |
| 1393 | + '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'=>'' ], | |
| 1041 | 1394 | 'style' => [ |
| 1042 | 1395 | (object)[ |
| 1043 | 1396 | 'depends' => [ |
| 1044 | 1397 | (object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1045 | 1398 | ], |
| 1046 | - 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a' | |
| 1399 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a' | |
| 1047 | 1400 | ], |
| 1048 | 1401 | ], |
| 1049 | 1402 | ], |
| 1050 | 1403 | 'catColor' => [ |
| 1051 | 1404 | 'type' => 'string', |
| 1052 | - 'default' => '#1740f5', | |
| 1405 | + 'default' => '#037fff', | |
| 1053 | 1406 | 'style' => [ |
| 1054 | 1407 | (object)[ |
| 1055 | 1408 | 'depends' => [ |
| 1056 | 1409 | (object)['key'=>'catShow','condition'=>'==','value'=>true], |
| @@ -1055,9 +1408,9 @@ | ||
| 1055 | 1408 | 'depends' => [ |
| 1056 | 1409 | (object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1057 | 1410 | (object)['key'=>'customCatColor','condition'=>'!=','value'=>true], |
| 1058 | 1411 | ], |
| 1059 | - 'selector'=>'{{ULTP}} .ultp-category-grid a { color:{{catColor}}; }' | |
| 1412 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }' | |
| 1060 | 1413 | ], |
| 1061 | 1414 | ], |
| 1062 | 1415 | ], |
| 1063 | 1416 | 'catBgColor' => [ |
| @@ -1107,9 +1460,9 @@ | ||
| 1107 | 1460 | 'depends' => [ |
| 1108 | 1461 | (object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1109 | 1462 | (object)['key'=>'customCatColor','condition'=>'!=','value'=>true], |
| 1110 | 1463 | ], |
| 1111 | - 'selector'=>'{{ULTP}} .ultp-category-grid a:hover { color:{{catHoverColor}}; }' | |
| 1464 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }' | |
| 1112 | 1465 | ], |
| 1113 | 1466 | ], |
| 1114 | 1467 | ], |
| 1115 | 1468 | 'catBgHoverColor' => [ |
| @@ -1178,8 +1531,12 @@ | ||
| 1178 | 1531 | 'metaStyle' => [ |
| 1179 | 1532 | 'type' => 'string', |
| 1180 | 1533 | 'default' => 'icon', |
| 1181 | 1534 | ], |
| 1535 | + 'authorLink' => [ | |
| 1536 | + 'type' => 'boolean', | |
| 1537 | + 'default' => true, | |
| 1538 | + ], | |
| 1182 | 1539 | 'metaSeparator' => [ |
| 1183 | 1540 | 'type' => 'string', |
| 1184 | 1541 | 'default' => 'dot', |
| 1185 | 1542 | ], |
| @@ -1186,8 +1543,20 @@ | ||
| 1186 | 1543 | 'metaList' => [ |
| 1187 | 1544 | 'type' => 'string', |
| 1188 | 1545 | 'default' => '["metaAuthor","metaDate","metaRead"]', |
| 1189 | 1546 | ], |
| 1547 | + 'metaMinText' => [ | |
| 1548 | + 'type' => 'string', | |
| 1549 | + 'default' => 'min read', | |
| 1550 | + ], | |
| 1551 | + 'metaAuthorPrefix' => [ | |
| 1552 | + 'type' => 'string', | |
| 1553 | + 'default' => 'By', | |
| 1554 | + ], | |
| 1555 | + 'metaDateFormat' => [ | |
| 1556 | + 'type' => 'string', | |
| 1557 | + 'default' => 'M j, Y', | |
| 1558 | + ], | |
| 1190 | 1559 | 'metaListSmall' => [ |
| 1191 | 1560 | 'type' => 'string', |
| 1192 | 1561 | 'default' => '["metaAuthor","metaDate"]', |
| 1193 | 1562 | ], |
| @@ -1210,9 +1579,9 @@ | ||
| 1210 | 1579 | (object)[ |
| 1211 | 1580 | 'depends' => [ |
| 1212 | 1581 | (object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1213 | 1582 | ], |
| 1214 | - '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}}; }' | |
| 1583 | + '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}}; }' | |
| 1215 | 1584 | ], |
| 1216 | 1585 | ], |
| 1217 | 1586 | ], |
| 1218 | 1587 | 'metaHoverColor' => [ |
| @@ -1222,9 +1591,9 @@ | ||
| 1222 | 1591 | (object)[ |
| 1223 | 1592 | 'depends' => [ |
| 1224 | 1593 | (object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1225 | 1594 | ], |
| 1226 | - 'selector'=>'{{ULTP}} .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }' | |
| 1595 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }' | |
| 1227 | 1596 | ], |
| 1228 | 1597 | ], |
| 1229 | 1598 | ], |
| 1230 | 1599 | 'metaSpacing' => [ |
| @@ -1236,8 +1605,15 @@ | ||
| 1236 | 1605 | (object)['key'=>'metaShow','condition'=>'==','value'=>true], |
| 1237 | 1606 | ], |
| 1238 | 1607 | '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}}; }' |
| 1239 | 1608 | ], |
| 1609 | + (object)[ | |
| 1610 | + 'depends' => [ | |
| 1611 | + (object)['key'=>'metaShow','condition'=>'==','value'=>true], | |
| 1612 | + (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'], | |
| 1613 | + ], | |
| 1614 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:last-child{margin-right:0px;}' | |
| 1615 | + ], | |
| 1240 | 1616 | ], |
| 1241 | 1617 | ], |
| 1242 | 1618 | 'metaMargin' => [ |
| 1243 | 1619 | 'type' => 'object', |
| @@ -1311,10 +1687,17 @@ | ||
| 1311 | 1687 | (object)[ |
| 1312 | 1688 | 'depends' => [ |
| 1313 | 1689 | (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'], |
| 1314 | 1690 | ], |
| 1315 | - 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;}' | |
| 1691 | + 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;} .rtl {{ULTP}} .ultp-block-meta {justify-content: start;}' | |
| 1316 | 1692 | ], |
| 1693 | + (object)[ | |
| 1694 | + 'depends' => [ | |
| 1695 | + (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'], | |
| 1696 | + (object)['key'=>'readMore','condition'=>'==','value'=>true], | |
| 1697 | + ], | |
| 1698 | + 'selector'=>' .rtl {{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a {display:flex; flex-direction:row-reverse;justify-content: flex-end;}' | |
| 1699 | + ], | |
| 1317 | 1700 | ], |
| 1318 | 1701 | ], |
| 1319 | 1702 | 'contentWrapBg' => [ |
| 1320 | 1703 | 'type' => 'string', |
| @@ -1417,22 +1800,32 @@ | ||
| 1417 | 1800 | ], |
| 1418 | 1801 | 'imgCrop' => [ |
| 1419 | 1802 | 'type' => 'string', |
| 1420 | 1803 | 'default' => 'full', |
| 1421 | - 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']] | |
| 1804 | + 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => true]] | |
| 1422 | 1805 | ], |
| 1423 | 1806 | 'imgCropSmall' => [ |
| 1424 | 1807 | 'type' => 'string', |
| 1425 | - 'default' => 'ultp_layout_square', | |
| 1426 | - 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']] | |
| 1808 | + 'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_square'), | |
| 1809 | + 'style' => [ | |
| 1810 | + (object)[ | |
| 1811 | + 'depends' => [ | |
| 1812 | + (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"], | |
| 1813 | + (object)['key' => 'showImage','condition' => '==','value' => true] | |
| 1814 | + ], | |
| 1815 | + ], | |
| 1816 | + ], | |
| 1427 | 1817 | ], |
| 1428 | 1818 | 'imgWidth' => [ |
| 1429 | 1819 | 'type' => 'object', |
| 1430 | - 'default' => (object)['lg' =>'80', 'sm' =>'65', 'xs' =>'', 'unit' =>'px'], | |
| 1820 | + 'default' => (object)['lg' =>'80', 'sm' =>'65', 'xs' =>'', 'ulg' =>'px', 'usm' =>'px'], | |
| 1431 | 1821 | 'style' => [ |
| 1432 | 1822 | (object)[ |
| 1433 | 1823 | 'depends' => [ |
| 1434 | 1824 | (object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1825 | + ], | |
| 1826 | + 'depends' => [ | |
| 1827 | + (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"], | |
| 1435 | 1828 | ], |
| 1436 | 1829 | 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { max-width: {{imgWidth}}; }' |
| 1437 | 1830 | ], |
| 1438 | 1831 | ], |
| @@ -1444,12 +1837,28 @@ | ||
| 1444 | 1837 | (object)[ |
| 1445 | 1838 | 'depends' => [ |
| 1446 | 1839 | (object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1447 | 1840 | ], |
| 1448 | - 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image img {object-fit: cover; height: {{imgHeight}}; }' | |
| 1841 | + 'depends' => [ | |
| 1842 | + (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"], | |
| 1843 | + ], | |
| 1844 | + 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image img {height: {{imgHeight}}; }' | |
| 1449 | 1845 | ], |
| 1450 | 1846 | ], |
| 1451 | 1847 | ], |
| 1848 | + 'imageScale' => [ | |
| 1849 | + 'type' => 'string', | |
| 1850 | + 'default' => 'cover', | |
| 1851 | + 'style' => [ | |
| 1852 | + (object)[ | |
| 1853 | + 'depends' => [ | |
| 1854 | + (object)['key'=>'showImage','condition'=>'==','value'=>true], | |
| 1855 | + (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"], | |
| 1856 | + ], | |
| 1857 | + 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image img {object-fit: {{imageScale}};}' | |
| 1858 | + ], | |
| 1859 | + ], | |
| 1860 | + ], | |
| 1452 | 1861 | 'imgAnimation' => [ |
| 1453 | 1862 | 'type' => 'string', |
| 1454 | 1863 | 'default' => 'opacity', |
| 1455 | 1864 | ], |
| @@ -1484,9 +1893,9 @@ | ||
| 1484 | 1893 | (object)[ |
| 1485 | 1894 | 'depends' => [ |
| 1486 | 1895 | (object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1487 | 1896 | ], |
| 1488 | - 'selector'=>'{{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }' | |
| 1897 | + 'selector'=>'{{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}}; }' | |
| 1489 | 1898 | ], |
| 1490 | 1899 | ], |
| 1491 | 1900 | ], |
| 1492 | 1901 | 'imgHoverRadius' => [ |
| @@ -1496,9 +1905,10 @@ | ||
| 1496 | 1905 | (object)[ |
| 1497 | 1906 | 'depends' => [ |
| 1498 | 1907 | (object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1499 | 1908 | ], |
| 1500 | - 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }' | |
| 1909 | + 'selector'=>' {{ULTP}} .ultp-block-item:hover .ultp-block-image img, {{ULTP}} .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 | |
| 1910 | + { border-radius:{{imgHoverRadius}}; }' | |
| 1501 | 1911 | ], |
| 1502 | 1912 | ], |
| 1503 | 1913 | ], |
| 1504 | 1914 | 'imgShadow' => [ |
| @@ -1532,8 +1942,9 @@ | ||
| 1532 | 1942 | (object)[ |
| 1533 | 1943 | 'depends' => [ |
| 1534 | 1944 | (object)['key'=>'showImage','condition'=>'==','value'=>true], |
| 1535 | 1945 | (object)['key'=>'layout','condition'=>'!=','value'=>'layout2'], |
| 1946 | + (object)['key'=>'layout','condition'=>'!=','value'=>'layout1'], | |
| 1536 | 1947 | ], |
| 1537 | 1948 | '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; }' |
| 1538 | 1949 | ], |
| 1539 | 1950 | (object)[ |
| @@ -1584,8 +1995,16 @@ | ||
| 1584 | 1995 | 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }' |
| 1585 | 1996 | ], |
| 1586 | 1997 | ], |
| 1587 | 1998 | ], |
| 1999 | + 'imgSrcset' => [ | |
| 2000 | + 'type' => 'boolean', | |
| 2001 | + 'default' => false, | |
| 2002 | + ], | |
| 2003 | + 'imgLazy' => [ | |
| 2004 | + 'type' => 'boolean', | |
| 2005 | + 'default' => false, | |
| 2006 | + ], | |
| 1588 | 2007 | |
| 1589 | 2008 | //-------------------------- |
| 1590 | 2009 | // Separator |
| 1591 | 2010 | //-------------------------- |
| @@ -1655,15 +2074,15 @@ | ||
| 1655 | 2074 | 'default' => 'rightArrowLg', |
| 1656 | 2075 | ], |
| 1657 | 2076 | 'readMoreTypo' => [ |
| 1658 | 2077 | 'type' => 'object', |
| 1659 | - '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'=>'' ], | |
| 2078 | + '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'=>'' ], | |
| 1660 | 2079 | 'style' => [ |
| 1661 | 2080 | (object)[ |
| 1662 | 2081 | 'depends' => [ |
| 1663 | 2082 | (object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1664 | 2083 | ], |
| 1665 | - 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-readmore a' | |
| 2084 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a' | |
| 1666 | 2085 | ], |
| 1667 | 2086 | ], |
| 1668 | 2087 | ], |
| 1669 | 2088 | 'readMoreIconSize' => [ |
| @@ -1685,9 +2104,9 @@ | ||
| 1685 | 2104 | (object)[ |
| 1686 | 2105 | 'depends' => [ |
| 1687 | 2106 | (object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1688 | 2107 | ], |
| 1689 | - 'selector'=>'{{ULTP}} .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }' | |
| 2108 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }' | |
| 1690 | 2109 | ], |
| 1691 | 2110 | ], |
| 1692 | 2111 | ], |
| 1693 | 2112 | 'readMoreBgColor' => [ |
| @@ -1733,9 +2152,9 @@ | ||
| 1733 | 2152 | (object)[ |
| 1734 | 2153 | 'depends' => [ |
| 1735 | 2154 | (object)['key'=>'readMore','condition'=>'==','value'=>true], |
| 1736 | 2155 | ], |
| 1737 | - 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }' | |
| 2156 | + 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }' | |
| 1738 | 2157 | ], |
| 1739 | 2158 | ], |
| 1740 | 2159 | ], |
| 1741 | 2160 | 'readMoreBgHoverColor' => [ |
| @@ -1801,8 +2220,32 @@ | ||
| 1801 | 2220 | |
| 1802 | 2221 | //-------------------------- |
| 1803 | 2222 | // Filter Setting/Style |
| 1804 | 2223 | //-------------------------- |
| 2224 | + 'filterBelowTitle' => [ | |
| 2225 | + 'type' => 'boolean', | |
| 2226 | + 'default' => false, | |
| 2227 | + 'style' => [ | |
| 2228 | + (object)[ | |
| 2229 | + 'depends' => [ | |
| 2230 | + (object)['key'=>'filterShow','condition'=>'==','value'=>true], | |
| 2231 | + ], | |
| 2232 | + 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { position: relative; display: block; margin: auto 0 0 0; height: auto;}' | |
| 2233 | + ], | |
| 2234 | + ], | |
| 2235 | + ], | |
| 2236 | + 'filterAlign' => [ | |
| 2237 | + 'type' => 'object', | |
| 2238 | + 'default' => (object)['lg' =>''], | |
| 2239 | + 'style' => [ | |
| 2240 | + (object)[ | |
| 2241 | + 'depends' => [ | |
| 2242 | + (object)['key'=>'filterBelowTitle','condition'=>'==','value'=>true], | |
| 2243 | + ], | |
| 2244 | + 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { text-align:{{filterAlign}}; }' | |
| 2245 | + ], | |
| 2246 | + ], | |
| 2247 | + ], | |
| 1805 | 2248 | 'filterType' => [ |
| 1806 | 2249 | 'type' => 'string', |
| 1807 | 2250 | 'default' => 'category' |
| 1808 | 2251 | ], |
| @@ -1809,29 +2252,20 @@ | ||
| 1809 | 2252 | 'filterText' => [ |
| 1810 | 2253 | 'type' => 'string', |
| 1811 | 2254 | 'default' => 'all' |
| 1812 | 2255 | ], |
| 1813 | - 'filterCat' => [ | |
| 2256 | + 'filterValue' => [ | |
| 1814 | 2257 | 'type' => 'string', |
| 1815 | 2258 | 'default' => '[]', |
| 1816 | 2259 | 'style' => [ |
| 1817 | 2260 | (object)[ |
| 1818 | - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'category']] | |
| 2261 | + 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']] | |
| 1819 | 2262 | ], |
| 1820 | 2263 | ], |
| 1821 | 2264 | ], |
| 1822 | - 'filterTag' => [ | |
| 1823 | - 'type' => 'string', | |
| 1824 | - 'default' => '[]', | |
| 1825 | - 'style' => [ | |
| 1826 | - (object)[ | |
| 1827 | - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'post_tag']] | |
| 1828 | - ], | |
| 1829 | - ], | |
| 1830 | - ], | |
| 1831 | 2265 | 'fliterTypo' => [ |
| 1832 | 2266 | 'type' => 'object', |
| 1833 | - 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>18, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500], | |
| 2267 | + 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>22, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500], | |
| 1834 | 2268 | 'style' => [ |
| 1835 | 2269 | (object)[ |
| 1836 | 2270 | 'depends' => [ |
| 1837 | 2271 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| @@ -1847,9 +2281,9 @@ | ||
| 1847 | 2281 | (object)[ |
| 1848 | 2282 | 'depends' => [ |
| 1849 | 2283 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1850 | 2284 | ], |
| 1851 | - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li a { color:{{filterColor}}; }' | |
| 2285 | + 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a { color:{{filterColor}}; }{{ULTP}} .flexMenu-viewMore a:before { border-color:{{filterColor}}}' | |
| 1852 | 2286 | ], |
| 1853 | 2287 | ], |
| 1854 | 2288 | ], |
| 1855 | 2289 | 'filterHoverColor' => [ |
| @@ -1859,9 +2293,9 @@ | ||
| 1859 | 2293 | (object)[ |
| 1860 | 2294 | 'depends' => [ |
| 1861 | 2295 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1862 | 2296 | ], |
| 1863 | - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li a:hover, {{ULTP}} .ultp-filter-wrap ul li a.filter-active { color:{{filterHoverColor}}; }' | |
| 2297 | + '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}}}' | |
| 1864 | 2298 | ], |
| 1865 | 2299 | ], |
| 1866 | 2300 | ], |
| 1867 | 2301 | 'filterBgColor' => [ |
| @@ -1881,9 +2315,9 @@ | ||
| 1881 | 2315 | (object)[ |
| 1882 | 2316 | 'depends' => [ |
| 1883 | 2317 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1884 | 2318 | ], |
| 1885 | - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover, {{ULTP}} .ultp-filter-wrap ul li.filter-item > a.filter-active { background:{{filterHoverBgColor}}; }' | |
| 2319 | + '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}}; }' | |
| 1886 | 2320 | ], |
| 1887 | 2321 | ], |
| 1888 | 2322 | ], |
| 1889 | 2323 | 'filterBorder' => [ |
| @@ -1941,9 +2375,9 @@ | ||
| 1941 | 2375 | (object)[ |
| 1942 | 2376 | 'depends' => [ |
| 1943 | 2377 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| 1944 | 2378 | ], |
| 1945 | - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { padding:{{fliterPadding}}; }' | |
| 2379 | + 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a, {{ULTP}} .ultp-filter-wrap .flexMenu-viewMore > a { padding:{{fliterPadding}}; }' | |
| 1946 | 2380 | ], |
| 1947 | 2381 | ], |
| 1948 | 2382 | ], |
| 1949 | 2383 | 'filterDropdownColor' => [ |
| @@ -1959,9 +2393,9 @@ | ||
| 1959 | 2393 | ], |
| 1960 | 2394 | ], |
| 1961 | 2395 | 'filterDropdownHoverColor' => [ |
| 1962 | 2396 | 'type' => 'string', |
| 1963 | - 'default' => '#1740f5', | |
| 2397 | + 'default' => '#037fff', | |
| 1964 | 2398 | 'style' => [ |
| 1965 | 2399 | (object)[ |
| 1966 | 2400 | 'depends' => [ |
| 1967 | 2401 | (object)['key'=>'filterShow','condition'=>'==','value'=>true], |
| @@ -2005,8 +2439,23 @@ | ||
| 2005 | 2439 | 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { padding:{{filterDropdownPadding}}; }' |
| 2006 | 2440 | ], |
| 2007 | 2441 | ], |
| 2008 | 2442 | ], |
| 2443 | + 'filterMobile' => [ | |
| 2444 | + 'type' => 'boolean', | |
| 2445 | + 'default' => true, | |
| 2446 | + ], | |
| 2447 | + 'filterMobileText' => [ | |
| 2448 | + 'type' => 'string', | |
| 2449 | + 'default' => 'More', | |
| 2450 | + 'style' => [ | |
| 2451 | + (object)[ | |
| 2452 | + 'depends' => [ | |
| 2453 | + (object)['key'=>'filterMobile','condition'=>'==','value'=>true], | |
| 2454 | + ] | |
| 2455 | + ] | |
| 2456 | + ] | |
| 2457 | + ], | |
| 2009 | 2458 | |
| 2010 | 2459 | //-------------------------- |
| 2011 | 2460 | // Pagination Setting/Style |
| 2012 | 2461 | //-------------------------- |
| @@ -2081,9 +2530,9 @@ | ||
| 2081 | 2530 | (object)[ |
| 2082 | 2531 | 'depends' => [ |
| 2083 | 2532 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2084 | 2533 | ], |
| 2085 | - '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}}; }' | |
| 2534 | + '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}}; }' | |
| 2086 | 2535 | ], |
| 2087 | 2536 | ], |
| 2088 | 2537 | ], |
| 2089 | 2538 | 'pagiBgColor' => [ |
| @@ -2141,21 +2590,21 @@ | ||
| 2141 | 2590 | (object)[ |
| 2142 | 2591 | 'depends' => [ |
| 2143 | 2592 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2144 | 2593 | ], |
| 2145 | - '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}};}}' | |
| 2594 | + '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}};}}' | |
| 2146 | 2595 | ], |
| 2147 | 2596 | ], |
| 2148 | 2597 | ], |
| 2149 | 2598 | 'pagiHoverbg' => [ |
| 2150 | 2599 | 'type' => 'object', |
| 2151 | - 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5', 'replace'=>1], | |
| 2600 | + 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff','replace'=>1], | |
| 2152 | 2601 | 'style' => [ |
| 2153 | 2602 | (object)[ |
| 2154 | 2603 | 'depends' => [ |
| 2155 | 2604 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2156 | 2605 | ], |
| 2157 | - '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}} }}' | |
| 2606 | + '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}} }' | |
| 2158 | 2607 | ], |
| 2159 | 2608 | ], |
| 2160 | 2609 | ], |
| 2161 | 2610 | 'pagiHoverBorder' => [ |
| @@ -2189,9 +2638,9 @@ | ||
| 2189 | 2638 | (object)[ |
| 2190 | 2639 | 'depends' => [ |
| 2191 | 2640 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 2192 | 2641 | ], |
| 2193 | - 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }' | |
| 2642 | + '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}}; }' | |
| 2194 | 2643 | ], |
| 2195 | 2644 | ], |
| 2196 | 2645 | ], |
| 2197 | 2646 | 'pagiPadding' => [ |
| @@ -2268,9 +2717,9 @@ | ||
| 2268 | 2717 | ], |
| 2269 | 2718 | ], |
| 2270 | 2719 | 'wrapHoverBackground' => [ |
| 2271 | 2720 | 'type' => 'object', |
| 2272 | - 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#1740f5'], | |
| 2721 | + 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'], | |
| 2273 | 2722 | 'style' => [ |
| 2274 | 2723 | (object)[ |
| 2275 | 2724 | 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover' |
| 2276 | 2725 | ], |
| @@ -2334,13 +2783,13 @@ | ||
| 2334 | 2783 | 'type' => 'string', |
| 2335 | 2784 | 'default' => '', |
| 2336 | 2785 | ], |
| 2337 | 2786 | 'advanceZindex' => [ |
| 2338 | - 'type' => 'number', | |
| 2787 | + 'type' => 'string', | |
| 2339 | 2788 | 'default' => '', |
| 2340 | 2789 | 'style' => [ |
| 2341 | 2790 | (object)[ |
| 2342 | - 'selector' => '{{ULTP}} {z-index:{{advanceZindex}};}' | |
| 2791 | + 'selector' => '{{ULTP}} .ultp-block-wrapper{z-index:{{advanceZindex}};}' | |
| 2343 | 2792 | ], |
| 2344 | 2793 | ], |
| 2345 | 2794 | ], |
| 2346 | 2795 | 'hideExtraLarge' => [ |
| @@ -2351,17 +2800,8 @@ | ||
| 2351 | 2800 | 'selector' => '{{ULTP}} {display:none;}' |
| 2352 | 2801 | ], |
| 2353 | 2802 | ], |
| 2354 | 2803 | ], |
| 2355 | - 'hideDesktop' => [ | |
| 2356 | - 'type' => 'boolean', | |
| 2357 | - 'default' => false, | |
| 2358 | - 'style' => [ | |
| 2359 | - (object)[ | |
| 2360 | - 'selector' => '{{ULTP}} {display:none;}' | |
| 2361 | - ], | |
| 2362 | - ], | |
| 2363 | - ], | |
| 2364 | 2804 | 'hideTablet' => [ |
| 2365 | 2805 | 'type' => 'boolean', |
| 2366 | 2806 | 'default' => false, |
| 2367 | 2807 | 'style' => [ |
| @@ -2401,11 +2841,10 @@ | ||
| 2401 | 2841 | |
| 2402 | 2842 | public function register() { |
| 2403 | 2843 | register_block_type( 'ultimate-post/post-module-1', |
| 2404 | 2844 | array( |
| 2845 | + // 'title' => __('Post Module #1', 'ultimate-post'), | |
| 2405 | 2846 | 'attributes' => $this->get_attributes(), |
| 2406 | - 'description' => __( 'Listing your post with top big post.' ), | |
| 2407 | - 'keywords' => [__( 'Post grid' ), __( 'post List' ), __( 'article' ), __('Post Module')], | |
| 2408 | 2847 | 'render_callback' => array($this, 'content') |
| 2409 | 2848 | ) |
| 2410 | 2849 | ); |
| 2411 | 2850 | } |
| @@ -2410,18 +2849,19 @@ | ||
| 2410 | 2849 | ); |
| 2411 | 2850 | } |
| 2412 | 2851 | |
| 2413 | 2852 | public function content($attr, $noAjax) { |
| 2414 | - | |
| 2853 | + global $unique_ID; | |
| 2415 | 2854 | if(!$noAjax){ |
| 2416 | - $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
| 2417 | - $attr['paged'] = $paged; | |
| 2855 | + $paged = is_front_page() ? get_query_var('page') : get_query_var('paged'); | |
| 2856 | + $attr['paged'] = $paged ? $paged : 1; | |
| 2418 | 2857 | } |
| 2419 | 2858 | |
| 2420 | 2859 | $bigloop = ''; |
| 2421 | 2860 | $block_name = 'post-module-1'; |
| 2422 | - $page_post_id = get_the_ID(); | |
| 2861 | + $page_post_id = ultimate_post()->get_ID(); | |
| 2423 | 2862 | $wraper_before = $wraper_after = $post_loop = ''; |
| 2863 | + $attr['queryNumber'] = ultimate_post()->get_post_number(5, $attr['queryNumber'], $attr['queryNumPosts']); | |
| 2424 | 2864 | $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) ); |
| 2425 | 2865 | $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts); |
| 2426 | 2866 | |
| 2427 | 2867 | if ($recent_posts->have_posts()) { |
| @@ -2441,9 +2881,9 @@ | ||
| 2441 | 2881 | |
| 2442 | 2882 | if ($attr['filterShow'] || $attr['paginationShow']) { |
| 2443 | 2883 | $wraper_before .= '<div class="ultp-filter-navigation">'; |
| 2444 | 2884 | // Filter |
| 2445 | - if($attr['filterShow']) { | |
| 2885 | + if($attr['filterShow'] && $attr['queryType'] != 'posts' && $attr['queryType'] != 'customPosts') { | |
| 2446 | 2886 | include ULTP_PATH.'blocks/template/filter.php'; |
| 2447 | 2887 | } |
| 2448 | 2888 | // Navigation |
| 2449 | 2889 | if($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) { |
| @@ -2463,18 +2903,22 @@ | ||
| 2463 | 2903 | include ULTP_PATH.'blocks/template/data.php'; |
| 2464 | 2904 | |
| 2465 | 2905 | include ULTP_PATH.'blocks/template/category.php'; |
| 2466 | 2906 | |
| 2467 | - $post_loop .= '<div class="ultp-block-item post-id-'.$post_id.'">'; | |
| 2907 | + if ($attr['queryUnique']) { | |
| 2908 | + $unique_ID[$attr['queryUnique']][] = $post_id; | |
| 2909 | + } | |
| 2468 | 2910 | |
| 2911 | + $post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.'">'; | |
| 2912 | + | |
| 2469 | 2913 | $post_loop .= '<div class="ultp-block-content-wrap">'; |
| 2470 | - if( has_post_thumbnail() && $attr['showImage'] ){ | |
| 2914 | + if( has_post_thumbnail() && $attr['showImage'] && ($idx == 0 || $attr['layout'] == 'layout2' || $attr['layout'] == 'layout3' || $attr['layout'] == 'layout5') ){ | |
| 2471 | 2915 | $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 : '' ).'">'; |
| 2472 | 2916 | if ($idx == 0) { |
| 2473 | - $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCrop'], '', $title).'</a>'; | |
| 2917 | + $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCrop'], '', $title, $attr['imgSrcset'], $attr['imgLazy']).'</a>'; | |
| 2474 | 2918 | } else { |
| 2475 | 2919 | if($attr['layout'] == 'layout2' || $attr['layout'] == 'layout3' || $attr['layout'] == 'layout5'){ |
| 2476 | - $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCropSmall'], '', $title).'</a>'; | |
| 2920 | + $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCropSmall'], '', $title, $attr['imgSrcset'], $attr['imgLazy']).'</a>'; | |
| 2477 | 2921 | } |
| 2478 | 2922 | } |
| 2479 | 2923 | if( ($attr['catPosition'] != 'aboveTitle') && ($idx == 0 || $attr['showSmallCat']) && $attr['catShow'] ) { |
| 2480 | 2924 | $post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>'; |
| @@ -2498,18 +2942,15 @@ | ||
| 2498 | 2942 | if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0) { |
| 2499 | 2943 | include ULTP_PATH.'blocks/template/title.php'; |
| 2500 | 2944 | } |
| 2501 | 2945 | // Excerpt |
| 2502 | - if(($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) { | |
| 2503 | - if ( $attr['showFullExcerpt']== 0 ) { | |
| 2504 | - $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->excerpt($post_id, $attr['excerptLimit']).'</div>'; | |
| 2505 | - } else { | |
| 2506 | - $post_loop .= '<div class="ultp-block-excerpt">'.get_the_excerpt().'</div>'; | |
| 2507 | - } | |
| 2946 | + if (($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) { | |
| 2947 | + $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->get_excerpt($post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit']).'</div>'; | |
| 2508 | 2948 | } |
| 2949 | + | |
| 2509 | 2950 | // Read More |
| 2510 | 2951 | if ($attr['readMore'] && ($idx == 0 || $attr['showSmallBtn'])) { |
| 2511 | - $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>'; | |
| 2952 | + $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>'; | |
| 2512 | 2953 | } |
| 2513 | 2954 | // Bottom |
| 2514 | 2955 | if( $attr['metaPosition'] =='bottom' ) { |
| 2515 | 2956 | include ULTP_PATH.'blocks/template/meta.php'; |
| @@ -2515,9 +2956,9 @@ | ||
| 2515 | 2956 | include ULTP_PATH.'blocks/template/meta.php'; |
| 2516 | 2957 | } |
| 2517 | 2958 | $post_loop .= '</div>'; |
| 2518 | 2959 | $post_loop .= '</div>'; |
| 2519 | - $post_loop .= '</div>'; | |
| 2960 | + $post_loop .= '</'.$attr['contentTag'].'>'; | |
| 2520 | 2961 | |
| 2521 | 2962 | if($idx == 0) { |
| 2522 | 2963 | $bigloop = $post_loop; |
| 2523 | 2964 | $post_loop = ''; |