[ 'type' => 'string', 'default' => '', ], //-------------------------- // Heading Setting/Style //-------------------------- 'headingText' => [ 'type' => 'string', 'default' => 'This is a Heading Example', ], '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, .ultp-heading-inner span:after { 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' => '#037fff', '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' => '#037fff', '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, .ultp-heading-inner span:after { 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'=>20, 'sm'=>10, '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)['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)['top' => '8', 'unit' =>'px']], 'style' => [ (object)[ 'depends' => [ (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true], ], 'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }' ], ], ], //-------------------------- // 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' => '#037fff'], '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}}; }' ], ], ], '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;}' ], ], ], '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' => '{{ULTP}} {display:none;}' ], ], ], ); 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/heading', array( 'title' => __('Image', 'ultimate-post'), 'attributes' => $this->get_attributes(), 'render_callback' => array($this, 'content') ) ); } public function content($attr, $noAjax) { $wraper_before = ''; $block_name = 'heading'; $attr['headingShow'] = true; $wraper_before .= '