$settings, 'setting_name' => 'alignment', 'selector' => ".fl-node-$id .fl-countdown", 'prop' => 'text-align', ) ); // Number Typography FLBuilderCSS::typography_field_rule( array( 'settings' => $settings, 'setting_name' => 'number_typography', 'selector' => ".fl-node-$id .fl-countdown .fl-countdown-unit-number", ) ); // Label Typography FLBuilderCSS::typography_field_rule( array( 'settings' => $settings, 'setting_name' => 'label_typography', 'selector' => ".fl-node-$id .fl-countdown .fl-countdown-unit-label", ) ); // Set Text Alignment ( default to 'center' ) for Number and Label Typography fields. foreach ( array( 'default', 'medium', 'responsive' ) as $media ) : $suffix = ( 'default' === $media ) ? '' : ( '_' . $media ); // Number Typography $prop = 'number_typography' . $suffix; $text_align = empty( $settings->{ $prop }['text_align'] ) ? 'center' : $settings->{ $prop }['text_align']; FLBuilderCSS::rule( array( 'selector' => ".fl-node-$id .fl-countdown .fl-countdown-unit-number", 'media' => $media, 'props' => array( 'text-align' => $text_align, ), ) ); // Label Typography $prop = 'label_typography' . $suffix; $text_align = empty( $settings->{ $prop }['text_align'] ) ? 'center' : $settings->{ $prop }['text_align']; FLBuilderCSS::rule( array( 'selector' => ".fl-node-$id .fl-countdown .fl-countdown-unit-label", 'media' => $media, 'props' => array( 'text-align' => $text_align, ), ) ); endforeach; ?> number_spacing ) ) : ?> .fl-node- .fl-countdown .fl-countdown-number { font-size: 1px; margin-left: number_spacing; ?>px; margin-right: number_spacing; ?>px; } number_color ) ) { ?> .fl-builder-content .fl-node- .fl-countdown .fl-countdown-unit-number { color: number_color ); ?>; } label_color ) ) { ?> .fl-builder-content .fl-node- .fl-countdown .fl-countdown-unit-label { color: label_color ); ?>; } layout ) && 'default' == $settings->layout ) : ?> .fl-node- .fl-countdown .fl-countdown-unit { vertical_padding ) ) { echo 'padding-top: ' . $settings->vertical_padding . 'px;'; echo 'padding-bottom: ' . $settings->vertical_padding . 'px;'; } if ( isset( $settings->horizontal_padding ) ) { echo 'padding-left: ' . $settings->horizontal_padding . 'px;'; echo 'padding-right: ' . $settings->horizontal_padding . 'px;'; } if ( ! empty( $settings->number_bg_color ) ) { echo 'background-color: ' . FLBuilderColor::hex_or_rgb( $settings->number_bg_color ) . ';'; } if ( isset( $settings->border_radius ) ) { echo 'border-radius: ' . $settings->border_radius . 'px;'; } ?> } show_separator && 'colon' == $settings->separator_type ) : ?> .fl-node- .fl-countdown .fl-countdown-number:after { number_spacing ) ) { echo 'width: ' . ( $settings->number_spacing * 2 ) . 'px;'; echo 'right: -' . ( $settings->number_spacing * 2 ) . 'px;'; } if ( isset( $settings->separator_color ) ) { echo 'color: ' . FLBuilderColor::hex_or_rgb( $settings->separator_color ) . ';'; } ?> } show_separator && 'line' == $settings->separator_type ) : ?> .fl-node- .fl-countdown .fl-countdown-number:after { number_spacing ) ) { echo 'right: -' . $settings->number_spacing . 'px;'; } if ( isset( $settings->separator_color ) ) { echo 'border-color: ' . FLBuilderColor::hex_or_rgb( $settings->separator_color ) . ';'; } ?> } layout ) && 'circle' == $settings->layout ) : ?> .fl-node- .svg { overflow: overlay; } .fl-node- .fl-countdown-unit{ position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%,-50%); -moz-transform: translate(-50%,-50%); -ms-transform: translate(-50%,-50%); transform: translate(-50%,-50%); } .fl-node- .fl-countdown-number{ circle_width ) ) { echo 'width: ' . $settings->circle_width . 'px;'; echo 'height: ' . $settings->circle_width . 'px;'; } else { echo 'max-width: 100px;'; echo 'max-height: 100px;'; } ?> } .fl-node- .fl-countdown-circle-container{ circle_width ) ) { echo 'max-width: ' . $settings->circle_width . 'px;'; echo 'max-height: ' . $settings->circle_width . 'px;'; } else { echo 'max-width: 100px;'; echo 'max-height: 100px;'; } ?> } .fl-node- .fl-countdown .svg circle{ circle_dash_width ) ) { echo 'stroke-width: ' . $settings->circle_dash_width . 'px;'; } ?> } .fl-node- .fl-countdown .svg .fl-number-bg{ circle_bg_color ) ) { echo 'stroke: ' . FLBuilderColor::hex_or_rgb( $settings->circle_bg_color ) . ';'; } else { echo 'stroke: transparent;'; } ?> } .fl-node- .fl-countdown .svg .fl-number{ circle_color ) ) { echo 'stroke: ' . FLBuilderColor::hex_or_rgb( $settings->circle_color ) . ';'; } else { echo 'stroke: transparent;'; } ?> }