/** * 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>
"><img src='<?php echo YIT_Services()->plugin_assets_url; ?> /images/no-featured.jpg' title="<?php _e('(this post does not have a featured image)', 'yit'); ?> " alt="no featured images" /></a> <?php } ?> </div> <?php if ($show_title == 'yes') { ?> <h3><?php echo yit_plugin_decode_title(get_the_title()); ?> </h3><?php } ?> <?php if ($show_excerpt == 'yes') { echo yit_plugin_content('content', $excerpt_length); if ($show_services_button == "yes") { ?> <div class="read-more"> <a class="red-button" href="<?php echo esc_url(get_permalink()); ?> "><?php echo $services_button_text;
* @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>
$id = isset($id) ? (int) $id : 0; $show_avatar = isset($show_avatar) && $show_avatar == 'yes' ? 'yes' : 'no'; $show_rating = isset($show_rating) && $show_rating == 'yes' ? 'yes' : 'no'; $items = isset($items) ? $items : 10; //fix old version that have -1 to select all, instead the query wants blank value to grab all product $items = isset($items) && $items == '-1' ? '' : $items; $args = array('status' => 'approve', 'post_status' => 'publish', 'post_type' => 'product', 'order' => 'DESC', 'number' => $items, 'ignore_sticky_posts' => 1); if ($id != 0) { $args['post_id'] = $id; } $reviews = get_comments($args); ?> <div class="sc-review"> <?php if (!empty($title)) { yit_plugin_string('<h3 class="title">', yit_plugin_decode_title($title), '</h3>'); } if (!empty($description)) { yit_plugin_string('<p class="desc">', $description, '</p>'); } ?> </div> <div class="comment_container comment-flexslider <?php echo esc_attr($vc_css); ?> " data-timeout="<?php echo isset($timeout) ? $timeout : 3000; ?> " data-speed="<?php echo isset($speed) ? $speed : 400; ?>