?> </h3> <p class="[ no-margin ]"><?php echo format_contenido_platillo($guarnicion_1, $guarnicion_2); ?> </p> </div> <?php if (is_user_logged_in()) { ?> <div class="[ col-xs-12 col-sm-4 ]"> <div class="[ pull-right ][ width-xs-100 ]"> <?php if (!$product->is_in_stock()) { echo '<a rel="nofollow" class="[ btn btn-sm btn-default btn-hollow ]">agotado</a>'; } elseif (!is_lunch() && can_order_breakfast()) { echo '<a href="' . get_permalink() . '" rel="nofollow" class="[ btn btn-sm btn-primary btn-xs-block ][ js-view-details ]" data-id="' . $post->ID . '" data-name="' . get_the_title() . '" data-price="' . $product->price . '">ver detalles</a>'; } else { echo woocommerce_template_loop_add_to_cart(); } ?> </div> </div> <?php } ?> </div> </article> <?php if ($query_count % 2 == 0) { echo '<div class="[ clearfix ]"></div>';
* @version 2.3.0 */ if (!defined('ABSPATH')) { exit; } //wc_print_notices(); ?> <div class="[ container ]"> <div class="[ row ]"> <section class="[ col-xs-12 col-md-7 ]"> <article class="[ ]"> <?php if (is_lunch() && can_order_lunch()) { get_template_part('templates/menu', 'complementos'); } ?> <?php get_template_part('templates/menu', 'aguas'); ?> <?php get_template_part('templates/menu', 'postre'); ?> </article> <?php do_action('woocommerce_before_checkout_form', $checkout); // If checkout registration is disabled and not logged in, the user cannot checkout if (!$checkout->enable_signup && !$checkout->enable_guest_checkout && !is_user_logged_in()) {
/** * Regresa si estamos en el desayuno, comida o cena * dependiendo la hora del día * @return $comida_del_dia */ function get_comida_del_dia() { if (is_breakfast()) { return 'desayuno'; } if (is_lunch()) { return 'comida'; } if (is_dinner()) { return 'cena'; } }