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