function hb_class_template_single_date_time() { global $post; if ("yes" != get_post_meta($post->ID, '_virtual', true)) { return; } $date = hb_get_class_date_value(); $time = hb_get_class_time_value(); if (!$date && !$time) { return; } if (hb_get_class_date_status()) { $date .= sprintf(' %s', $time); } echo sprintf('<h5 class="ledolci-popup-time">%s</h5>', $date); }
/** * The template for displaying class content within loops. * * @package WordPress * @subpackage Swiss_Design_Group * @since Swiss Design Group 1.0 */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } global $product; $color = hb_get_product_color(); $style = $color ? 'style="color:' . esc_attr($color) . ' !important"' : ''; $date = hb_get_class_date_value(); $time = hb_get_class_time_value(); ?> <div data-classid="<?php echo esc_attr(get_the_ID()); ?> " <?php post_class('clearfix'); ?> > <div class="ledolci-popup-media"> <?php do_action('ledolci_class_item_featured_image'); ?> </div>