[ 'type' => 'string', 'default' => '', ], //-------------------------- // Query Setting //-------------------------- 'queryQuick' => [ 'type' => 'string', 'default' =>'', ], 'queryNumber' => [ 'type' => 'string', 'default' =>'5' ], 'queryType' => [ 'type' => 'string', 'default' => 'post' ], 'queryTax' => [ 'type' => 'string', 'default' => 'category' ], 'queryTaxValue' => [ 'type' => 'string', 'default' => '[]', 'style' => [ (object)[ 'depends' => [(object)['key' => 'queryTax','condition' => '!=','value' => '']] ], ], ], 'queryCat' => [ // for compatibility 'type' => 'string', 'default' => '[]' ], 'queryTag' => [ // for compatibility 'type' => 'string', 'default' => '[]' ], 'queryOrderBy' => [ 'type' => 'string', 'default' => 'date', ], 'metaKey' => [ 'type' => 'string', 'default' => 'custom_meta_key', 'style' => [ (object)[ 'depends' => [(object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num']] ], ], ], 'queryOrder' => [ 'type' => 'string', 'default' => 'desc', ], 'queryInclude' => [ 'type' => 'string', 'default' => '' ], 'queryExclude' => [ 'type' => 'string', 'default' => '' ], 'queryOffset' => [ 'type' => 'string', 'default' => '0', ], //-------------------------- // General Setting //-------------------------- 'slidesToShow' => [ 'type' => 'number', 'default' => 4, ], 'autoPlay' => [ 'type' => 'boolean', 'default' => true, ], 'height' => [ 'type' => 'object', 'default' => (object)['lg' =>'550', 'unit' =>'px'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-image, {{ULTP}} .ultp-block-items-wrap .ultp-block-slider-wrap { height: {{height}}; }' ], ], ], 'slideSpeed' => [ 'type' => 'string', 'default' => '3000', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'autoPlay','condition'=>'==','value'=>true], ] ], ] ], 'dots' => [ 'type' => 'boolean', 'default' => true, ], 'arrows' => [ 'type' => 'boolean', 'default' => true, ], 'fade' => [ 'type' => 'boolean', 'default' => true, ], 'titleShow' => [ 'type' => 'boolean', 'default' => true, ], 'headingShow' => [ 'type' => 'boolean', 'default' => false, ], 'excerptShow' => [ 'type' => 'boolean', 'default' => true ], 'catShow' => [ 'type' => 'boolean', 'default' => true, ], 'metaShow' => [ 'type' => 'boolean', 'default' => true, ], 'showImage' => [ 'type' => 'boolean', 'default' => true, ], 'readMore' => [ 'type' => 'boolean', 'default' => true, ], 'openInTab' => [ 'type' => 'boolean', 'default' => false, ], //-------------------------- // Heading Setting/Style //-------------------------- 'headingText' => [ 'type' => 'string', 'default' => 'Post Slider #1', ], 'headingURL' => [ 'type' => 'string', 'default' => '', ], 'headingBtnText' => [ 'type' => 'string', 'default' => 'View More', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'], ], ], ], ], 'headingStyle' => [ 'type' => 'string', 'default' => 'style9', ], 'headingTag' => [ 'type' => 'string', 'default' => 'h2', ], 'headingAlign' => [ 'type' => 'string', 'default' => 'left', 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-inner, {{ULTP}} .ultp-sub-heading-inner { text-align:{{headingAlign}}; }']] ], 'headingTypo' => [ 'type' => 'object', 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => 'uppercase', 'family'=>'','weight'=>'700'], 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-wrap .ultp-heading-inner']] ], 'headingColor' => [ 'type' => 'string', 'default' => '#0e1523', 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { color:{{headingColor}}; }']], ], 'headingBorderBottomColor' => [ 'type' => 'string', 'default' => '#0e1523', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before { border-color:{{headingBorderBottomColor}}; }' ], ], ], 'headingBorderBottomColor2' => [ 'type' => 'string', 'default' => '#e5e5e5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor2}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }' ], ], ], 'headingBg' => [ 'type' => 'string', 'default' => '#1740f5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'], ], 'selector'=>'{{ULTP}} .ultp-heading-style5 .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }' ], ], ], 'headingBg2' => [ 'type' => 'string', 'default' => '#e5e5e5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg2}}; }' ], ], ], 'headingBtnTypo' => [ 'type' => 'object', 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '14', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none','family'=>''], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn' ], ], ], 'headingBtnColor' => [ 'type' => 'string', 'default' => '#1740f5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn { color:{{headingBtnColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn svg { fill:{{headingBtnColor}}; }' ], ], ], 'headingBtnHoverColor' => [ 'type' => 'string', 'default' => '#0a31da', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover { color:{{headingBtnHoverColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover svg { fill:{{headingBtnHoverColor}}; }' ], ], ], 'headingBorder' => [ 'type' => 'string', 'default' => '3', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-width:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { width:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'], ], 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }' ], ], ], 'headingSpacing' => [ 'type' => 'object', 'default' => (object)['lg'=>30, 'unit'=>'px'], 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap {margin-top:0; margin-bottom:{{headingSpacing}}; }']] ], 'headingRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }' ], ] ], 'headingPadding' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' ], (object)[ 'depends' => [ (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'], ], 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }' ], ] ], 'subHeadingShow' => [ 'type' => 'boolean', 'default' => false, ], 'subHeadingText' => [ 'type' => 'string', 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], ], ], ], ], 'subHeadingTypo' => [ 'type' => 'object', 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'16', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)[ 'lg'=>'27', 'unit'=>'px'],'decoration'=>'none','transform' => 'capitalize','family'=>'','weight'=>'500'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-sub-heading div' ], ], ], 'subHeadingColor' => [ 'type' => 'string', 'default' => '#989898', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-sub-heading div{ color:{{subHeadingColor}}; }' ], ], ], 'subHeadingSpacing' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }' ], ], ], //-------------------------- // Title Setting/Style //-------------------------- 'titleTag' => [ 'type' => 'string', 'default' => 'h3', ], 'titlePosition' => [ 'type' => 'boolean', 'default' => true, ], 'titleColor' => [ 'type' => 'string', 'default' => '#0e1523', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'titleShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-title a { color:{{titleColor}}; }' ], ], ], 'titleHoverColor' => [ 'type' => 'string', 'default' => '#1740f5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'titleShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-title a:hover { color:{{titleHoverColor}}; }' ], ], ], 'titleTypo' => [ 'type' => 'object', 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'28', 'unit'=>'px'], 'height'=>(object)['lg'=>'36', 'unit'=>'px'], 'decoration'=>'none','family'=>'','weight'=>'500'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'titleShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-content .ultp-block-title, {{ULTP}} .ultp-block-item .ultp-block-content .ultp-block-title a' ], ], ], 'titlePadding' => [ 'type' => 'object', 'default' => (object)['lg'=>(object)['top'=>25,'bottom'=>12, 'unit'=>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'titleShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }' ], ], ], //-------------------------- // Content Setting/Style //-------------------------- 'showFullExcerpt' => [ 'type' => 'boolean', 'default' => false, ], 'excerptLimit' => [ 'type' => 'string', 'default' => 40, 'style' => [ (object)[ 'depends' => [ (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false], ], ], ], ], 'excerptColor' => [ 'type' => 'string', 'default' => '#777', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'excerptShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }' ], ], ], 'excerptTypo' => [ 'type' => 'object', 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>26, 'unit' =>'px'], 'decoration' => 'none','family'=>''], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'excerptShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-excerpt' ], ], ], 'excerptPadding' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => 10,'bottom' => '', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'excerptShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }' ], ], ], //-------------------------- // Content Wrap Setting/Style //-------------------------- 'contentVerticalPosition' => [ 'type' => 'string', 'default' => 'middlePosition', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'topPosition'], ], 'selector'=>'{{ULTP}} .ultp-block-content-topPosition { align-items:flex-start; }' ], (object)[ 'depends' => [ (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'middlePosition'], ], 'selector'=>'{{ULTP}} .ultp-block-content-middlePosition { align-items:center; }' ], (object)[ 'depends' => [ (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'bottomPosition'], ], 'selector'=>'{{ULTP}} .ultp-block-content-bottomPosition { align-items:flex-end; }' ], ] ], 'contentHorizontalPosition' => [ 'type' => 'string', 'default' => 'centerPosition', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'leftPosition'], ], 'selector'=>'{{ULTP}} .ultp-block-content-leftPosition { justify-content:flex-start; }' ], (object)[ 'depends' => [ (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'centerPosition'], ], 'selector'=>'{{ULTP}} .ultp-block-content-centerPosition { justify-content:center; }' ], (object)[ 'depends' => [ (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'rightPosition'], ], 'selector'=>'{{ULTP}} .ultp-block-content-rightPosition { justify-content:flex-end; }' ], ] ], 'contentAlign' => [ 'type' => 'string', 'default' => "center", 'style' => [ (object)[ 'depends' => [ (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'], ], 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}' ], (object)[ 'depends' => [ (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'], ], 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}' ], (object)[ 'depends' => [ (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'], ], 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;}' ], ], ], 'contenWraptWidth' => [ 'type' => 'object', 'default' => (object)['lg'=>'60','unit' =>'%'], 'style' => [ (object)[ 'selector' => '{{ULTP}} .ultp-block-content-inner { width:{{contenWraptWidth}}; }' ], ] ], 'contenWraptHeight' => [ 'type' => 'object', 'default' => (object)['lg'=>''], 'style' => [ (object)[ 'selector' => '{{ULTP}} .ultp-block-content-inner { height:{{contenWraptHeight}}; }' ], ] ], 'contentWrapBg' => [ 'type' => 'string', 'default' => '#fff', 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-content-inner { background:{{contentWrapBg}}; }' ], ], ], 'contentWrapHoverBg' => [ 'type' => 'string', 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover { background:{{contentWrapHoverBg}}; }' ], ], ], 'contentWrapBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-content-inner' ], ], ], 'contentWrapHoverBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover' ], ], ], 'contentWrapRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '6','bottom' => '6', 'left' => '6', 'right' => '6', 'unit' =>'px']], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-content-inner{ border-radius: {{contentWrapRadius}}; }' ], ], ], 'contentWrapHoverRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '10','bottom' => '10', 'left' => '10', 'right' => '10', 'unit' =>'px']], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover{ border-radius: {{contentWrapHoverRadius}}; }' ], ], ], 'contentWrapShadow' => [ 'type' => 'object', 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 0, 'right' => 5, 'bottom' => 15, 'left' => 0],'color' => 'rgba(0,0,0,0.15)'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-content-inner' ], ], ], 'contentWrapHoverShadow' => [ 'type' => 'object', 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 0, 'right' => 10, 'bottom' => 25, 'left' => 0],'color' => 'rgba(0,0,0,0.25)'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover' ], ], ], 'contentWrapPadding' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left'=>'50','right'=>'50', 'unit' =>'px']], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-content-inner { padding: {{contentWrapPadding}}; }' ], ], ], //-------------------------- // Arrow Setting/Style //-------------------------- 'arrowStyle' => [ 'type' => 'string', 'default' => 'leftAngle2#rightAngle2', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], ], ] ], 'arrowSize' => [ 'type' => 'object', 'default' => (object)['lg' =>'', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-next svg, {{ULTP}} .slick-prev svg { width:{{arrowSize}}; }' ], ] ], 'arrowWidth' => [ 'type' => 'object', 'default' => (object)['lg' =>'60', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-arrow { width:{{arrowWidth}}; }' ], ] ], 'arrowHeight' => [ 'type' => 'object', 'default' => (object)['lg' =>'60', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-arrow { height:{{arrowHeight}}; } {{ULTP}} .slick-arrow { line-height:{{arrowHeight}}; }' ], ] ], 'arrowVartical' => [ 'type' => 'object', 'default' => (object)['lg' =>'', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-next { right:{{arrowVartical}}; } {{ULTP}} .slick-prev { left:{{arrowVartical}}; }' ], ] ], 'arrowColor' => [ 'type' => 'string', 'default' => '#1740f5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-arrow:before { color:{{arrowColor}}; } {{ULTP}} .slick-arrow svg { fill:{{arrowColor}}; }' ], ], ], 'arrowHoverColor' => [ 'type' => 'string', 'default' => '#fff', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-arrow:hover:before { color:{{arrowHoverColor}}; } {{ULTP}} .slick-arrow:hover svg { fill:{{arrowHoverColor}}; }' ], ], ], 'arrowBg' => [ 'type' => 'string', 'default' => '#fff', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-arrow { background:{{arrowBg}}; }' ], ], ], 'arrowHoverBg' => [ 'type' => 'string', 'default' => '#1740f5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-arrow:hover { background:{{arrowHoverBg}}; }' ], ], ], 'arrowBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-arrow' ], ], ], 'arrowHoverBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-arrow:hover' ], ], ], 'arrowRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left' => '50','right' => '50', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-arrow { border-radius: {{arrowRadius}}; }' ], ], ], 'arrowHoverRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left' => '50','right' => '50', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-arrow:hover{ border-radius: {{arrowHoverRadius}}; }' ], ], ], 'arrowShadow' => [ 'type' => 'object', 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-arrow' ], ], ], 'arrowHoverShadow' => [ 'type' => 'object', 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'arrows','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-arrow:hover' ], ], ], //-------------------------- // Dot Setting/Style //-------------------------- 'dotWidth' => [ 'type' => 'object', 'default' => (object)['lg' =>'10', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-dots li button { width:{{dotWidth}}; }' ], ] ], 'dotHeight' => [ 'type' => 'object', 'default' => (object)['lg' =>'10', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-dots li button { height:{{dotHeight}}; }' ], ] ], 'dotHoverWidth' => [ 'type' => 'object', 'default' => (object)['lg' =>'16', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-dots li.slick-active button { width:{{dotHoverWidth}}; }' ], ] ], 'dotHoverHeight' => [ 'type' => 'object', 'default' => (object)['lg' =>'16', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-dots li.slick-active button { height:{{dotHoverHeight}}; }' ], ] ], 'dotSpace' => [ 'type' => 'object', 'default' => (object)['lg' =>'4', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-dots { padding: 0 {{dotSpace}}; } {{ULTP}} .slick-dots li button { margin: 0 {{dotSpace}}; }' ], ] ], 'dotVartical' => [ 'type' => 'object', 'default' => (object)['lg' =>'40', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-dots { bottom:{{dotVartical}}; }' ], ] ], 'dotHorizontal' => [ 'type' => 'object', 'default' => (object)['lg'=>''], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .slick-dots { left:{{dotHorizontal}}; }' ], ] ], 'dotBg' => [ 'type' => 'string', 'default' => '#f5f5f5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-dots li button { background:{{dotBg}}; }' ], ], ], 'dotHoverBg' => [ 'type' => 'string', 'default' => '#000', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button { background:{{dotHoverBg}}; }' ], ], ], 'dotBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-dots li button' ], ], ], 'dotHoverBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button' ], ], ], 'dotRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50','left' => '50','right' => '50', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-dots li button { border-radius: {{dotRadius}}; }' ], ], ], 'dotHoverRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50','left' => '50','right' => '50', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button { border-radius: {{dotHoverRadius}}; }' ], ], ], 'dotShadow' => [ 'type' => 'object', 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-dots li button' ], ], ], 'dotHoverShadow' => [ 'type' => 'object', 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'dots','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button' ], ], ], //-------------------------- // Category Setting/Style //-------------------------- 'catStyle' => [ 'type' => 'string', 'default' => 'classic', ], 'catPosition' => [ 'type' => 'string', 'default' => 'aboveTitle', ], 'customCatColor' => [ 'type' => 'boolean', 'default' => false, ], 'seperatorLink' => [ 'type' => 'string', 'default' => admin_url( 'edit-tags.php?taxonomy=category' ), 'style' => [ (object)[ 'depends' => [ (object)['key'=>'customCatColor','condition'=>'==','value'=>true], ] ] ] ], 'onlyCatColor' => [ 'type' => 'boolean', 'default' => false, 'style' => [ (object)[ 'depends' => [ (object)['key'=>'customCatColor','condition'=>'==','value'=>true], ] ] ] ], 'catLineWidth' => [ 'type' => 'object', 'default' => (object)['lg'=>'20'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'], ], '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; }' ], ] ], 'catLineSpacing' => [ 'type' => 'object', 'default' => (object)['lg'=>'30'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'], ], 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; } {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; } {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }' ], ] ], 'catLineColor' => [ 'type' => 'string', 'default' => '#000', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'], ], '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}}; }' ], ] ], 'catLineHoverColor' => [ 'type' => 'string', 'default' => '#1740f5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'], ], '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}}; }' ], ] ], 'catTypo' => [ 'type' => 'object', 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>15, 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => 'uppercase', 'weight' => '500', 'decoration' => 'none','family'=>'' ], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a' ], ], ], 'catColor' => [ 'type' => 'string', 'default' => '#fff', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catShow','condition'=>'==','value'=>true], (object)['key'=>'customCatColor','condition'=>'!=','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }' ], ], ], 'catBgColor' => [ 'type' => 'object', 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => '#000'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catShow','condition'=>'==','value'=>true], (object)['key'=>'customCatColor','condition'=>'!=','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-category-grid a' ], ], ], 'catBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catShow','condition'=>'==','value'=>true], (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-category-grid a' ], ], ], 'catRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>'2', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catShow','condition'=>'==','value'=>true], (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }' ], ], ], 'catHoverColor' => [ 'type' => 'string', 'default' => '#fff', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catShow','condition'=>'==','value'=>true], (object)['key'=>'customCatColor','condition'=>'!=','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-category-grid a:hover { color:{{catHoverColor}}; }' ], ], ], 'catBgHoverColor' => [ 'type' => 'object', 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catShow','condition'=>'==','value'=>true], (object)['key'=>'customCatColor','condition'=>'!=','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-category-grid a:hover' ], ], ], 'catHoverBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catShow','condition'=>'==','value'=>true], (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-category-grid a:hover' ], ], ], 'catSacing' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => -65,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }' ], ], ], 'catPadding' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => 8,'bottom' => 6,'left' => 16,'right' => 16, 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'catShow','condition'=>'==','value'=>true], (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }' ], ], ], //-------------------------- // Image Overlay Setting/Style //-------------------------- 'imgCrop' => [ 'type' => 'string', 'default' => 'full', 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']] ], 'imgOverlay' => [ 'type' => 'boolean', 'default' => false, ], 'imgOverlayType' => [ 'type' => 'string', 'default' => 'default', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'imgOverlay','condition'=>'==','value'=>true], ] ], ] ], 'overlayColor' => [ 'type' => 'object', 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'], ], 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before' ], ], ], 'imgOpacity' => [ 'type' => 'string', 'default' => .7, 'style' => [ (object)[ 'depends' => [ (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'], ], 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }' ], ], ], 'imgGrayScale' => [ 'type' => 'object', 'default' => (object)['lg' =>'0', 'unit' =>'%'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'showImage','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-image img { filter: grayscale({{imgGrayScale}}); }' ], ], ], 'imgHoverGrayScale' => [ 'type' => 'object', 'default' => (object)['lg' =>'0', 'unit' =>'%'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'showImage','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image img { filter: grayscale({{imgHoverGrayScale}}); }' ], ], ], 'imgRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>'', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'showImage','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }' ], ], ], 'imgHoverRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>'', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'showImage','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }' ], ], ], 'imgShadow' => [ 'type' => 'object', 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'showImage','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-image' ], ], ], 'imgHoverShadow' => [ 'type' => 'object', 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'showImage','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image' ], ], ], //-------------------------- // Read more Setting/Style //-------------------------- 'readMoreText' => [ 'type' => 'string', 'default' => '' ], 'readMoreIcon' => [ 'type' => 'string', 'default' => 'rightArrowLg', ], 'readMoreTypo' => [ 'type' => 'object', 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => 'uppercase', 'weight' => '500', 'decoration' => 'none','family'=>'' ], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-readmore a' ], ], ], 'readMoreIconSize' => [ 'type' => 'object', 'default' => (object)['lg' =>'', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }' ], ] ], 'readMoreColor' => [ 'type' => 'string', 'default' => '#000', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }' ], ], ], 'readMoreBgColor' => [ 'type' => 'object', 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => '#1740f5'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-readmore a' ], ], ], 'readMoreBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-readmore a' ], ], ], 'readMoreRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>'', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }' ], ], ], 'readMoreHoverColor' => [ 'type' => 'string', 'default' => '#1740f5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }' ], ], ], 'readMoreBgHoverColor' => [ 'type' => 'object', 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#0c32d8'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover' ], ], ], 'readMoreHoverBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover' ], ], ], 'readMoreHoverRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>'', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }' ], ], ], 'readMoreSacing' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => 30,'bottom' => '','left' => '','right' => '', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }' ], ], ], 'readMorePadding' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'readMore','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }' ], ], ], //-------------------------- // Meta Setting/Style //-------------------------- 'metaPosition' => [ 'type' => 'string', 'default' => 'top', ], 'metaStyle' => [ 'type' => 'string', 'default' => 'icon', ], 'metaSeparator' => [ 'type' => 'string', 'default' => 'dash', ], 'metaList' => [ 'type' => 'string', 'default' => '["metaAuthor","metaDate","metaRead"]', ], 'metaTypo' => [ 'type' => 'object', 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'metaShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a' ], ], ], 'metaColor' => [ 'type' => 'string', 'default' => '#989898', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'metaShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-meta span { color: {{metaColor}}; } {{ULTP}} .ultp-block-meta span svg { fill: {{metaColor}}; } {{ULTP}} .ultp-block-meta span a { color: {{metaColor}}; }{{ULTP}} .ultp-block-meta-dot span:after { background:{{metaColor}}; } {{ULTP}} .ultp-block-meta span:after { color:{{metaColor}}; }' ], ], ], 'metaHoverColor' => [ 'type' => 'string', 'default' => '#1740f5', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'metaShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }' ], ], ], 'metaSpacing' => [ 'type' => 'object', 'default' => (object)['lg' =>'15', 'unit' =>'px'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'metaShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-meta span { margin-right:{{metaSpacing}}; } {{ULTP}} .ultp-block-meta span { padding-left: {{metaSpacing}}; }' ], ], ], 'metaMargin' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'metaShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }' ], ], ], 'metaPadding' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'metaShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }' ], ], ], 'metaBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'metaShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-meta' ], ], ], 'metaBg' => [ 'type' => 'string', 'default' => '', 'style' => [ (object)[ 'depends' => [ (object)['key'=>'metaShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }' ], ], ], //-------------------------- // Wrapper Style //-------------------------- 'wrapBg' => [ 'type' => 'object', 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper' ], ], ], 'wrapBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper' ], ], ], 'wrapShadow' => [ 'type' => 'object', 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper' ], ], ], 'wrapRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>'', 'unit' =>'px'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }' ], ], ], 'wrapHoverBackground' => [ 'type' => 'object', 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#1740f5'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover' ], ], ], 'wrapHoverBorder' => [ 'type' => 'object', 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover' ], ], ], 'wrapHoverRadius' => [ 'type' => 'object', 'default' => (object)['lg' =>'', 'unit' =>'px'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }' ], ], ], 'wrapHoverShadow' => [ 'type' => 'object', 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover' ], ], ], 'wrapMargin' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }' ], ], ], 'wrapOuterPadding' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }' ], ], ], 'wrapInnerPadding' => [ 'type' => 'object', 'default' => (object)['lg' =>(object)['unit' =>'px']], 'style' => [ (object)[ 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }' ], ], ], 'advanceId' => [ 'type' => 'string', 'default' => '', ], 'advanceZindex' => [ 'type' => 'number', 'default' => '', 'style' => [ (object)[ 'selector' => '{{ULTP}} {z-index:{{advanceZindex}};}' ], ], ], 'hideExtraLarge' => [ 'type' => 'boolean', 'default' => false, 'style' => [ (object)[ 'selector' => '{{ULTP}} {display:none;}' ], ], ], 'hideDesktop' => [ 'type' => 'boolean', 'default' => false, 'style' => [ (object)[ 'selector' => '{{ULTP}} {display:none;}' ], ], ], 'hideTablet' => [ 'type' => 'boolean', 'default' => false, 'style' => [ (object)[ 'selector' => '{{ULTP}} {display:none;}' ], ], ], 'hideMobile' => [ 'type' => 'boolean', 'default' => false, 'style' => [ (object)[ 'selector' => '{{ULTP}} {display:none;}' ], ], ], 'advanceCss' => [ 'type' => 'string', 'default' => '', 'style' => [(object)['selector' => '']], ] ); if( $default ){ $temp = array(); foreach ($attributes as $key => $value) { if( isset($value['default']) ){ $temp[$key] = $value['default']; } } return $temp; }else{ return $attributes; } } public function register() { register_block_type( 'ultimate-post/post-slider-1', array( 'attributes' => $this->get_attributes(), 'description' => __( 'Dynamic post slider with lots of settings.' ), 'keywords' => [__( 'Latest Post' ), __( 'Popular Post' ), __( 'Article' )], 'render_callback' => array($this, 'content') )); } public function content($attr, $noAjax) { if(!$noAjax){ $paged = is_front_page() ? get_query_var('page') : get_query_var('paged'); $attr['paged'] = $paged ? $paged : 1; } $block_name = 'post-slider-1'; $page_post_id = get_the_ID(); $wraper_before = $wraper_after = $post_loop = ''; $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) ); $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts); if ( $recent_posts->have_posts() ) { $wraper_before .= '