* @author Francesco Licandro <*****@*****.**> * @since 1.0.0 */ $animate_data = $animate != '' ? 'data-animate="' . $animate . '"' : ''; $animate_data .= $animation_delay != '' ? ' data-delay="' . $animation_delay . '"' : ''; $animate = $animate != '' ? ' yit_animate ' . $animate : ''; ?> <div class="box-sections numbers-sections margin-bottom <?php echo esc_attr($animate . $vc_css); ?> " <?php echo $animate_data; ?> > <div class="number-box"> <div class="number"><?php echo $number; ?> </div> <?php if (!empty($title)) { yit_plugin_string('<h4>', yit_plugin_decode_title($title), '</h4>'); } ?> </div> <div class="clear"></div> <?php echo apply_filters('the_content', $content); ?> </div>
/** * Template file for show a number background with a title and text * * @package Yithemes * @author Francesco Licandro <*****@*****.**> * @since 1.0.0 */ if ( yit_get_option('general-layout-type') == 'boxed' ){ $color = yit_get_option('container-background-color'); $background_color = $color['color']; } else { $color = yit_get_option('background-style'); $background_color = $color['color']; } $animate_data = ( $animate != '' ) ? 'data-animate="' . $animate . '"' : ''; $animate_data .= ( $animation_delay != '' ) ? ' data-delay="' . $animation_delay . '"' : ''; $animate = ( $animate != '' ) ? ' yit_animate' : ''; ?> <div class="box-sections numbers-sections <?php echo esc_attr( $animate . $vc_css ); ?>" <?php echo $animate_data ?>> <div class="number-box"> <div class="number"><?php echo $number ?></div> <?php if( !empty( $title ) ) yit_plugin_string( '<h4 style="background-color:' . $background_color . ';">', yit_plugin_decode_title($title), '</h4>' ); ?> </div> <div class="clearfix"></div> <?php echo apply_filters( 'the_content', $content ); ?> </div>
<?php if (!empty($title)) { if (!empty($services_icon_title)) { ?> <img src="<?php echo $services_icon_title; ?> "> <?php } yit_string('<h4 class="title">', yit_plugin_decode_title($title), '</h4>'); } ?> <?php if (!empty($description)) { yit_plugin_string('<p class="description">', $description, '</p>'); } ?> <div class="services-row row group"> <?php while ($services->have_posts()) { $services->the_post(); ?> <div class="col-sm-<?php echo $items_span; ?> service-wrapper col-xs-6"> <div class="service group"> <div class="image-wrapper <?php echo $show_border == 'yes' ? 'border' : '';