function wp_booking_calendar_admin_view_mails_list() { global $wpdb; global $blog_id; $bookingLangObj = new wp_booking_calendar_lang(); $blog_prefix = $blog_id . "_"; if ($blog_id == 1) { $blog_prefix = ""; } if ($wpdb->get_var($wpdb->prepare("SELECT config_value FROM " . $wpdb->base_prefix . $blog_prefix . "booking_config WHERE config_name = %s", "reservation_confirmation_mode")) > 0) { global $linkToUpload; echo $linkToUpload; include dirname(__FILE__) . '/admin/mails.php'; } else { ?> <div class="booking_padding_20 booking_font_20 booking_line_percent"> <div class="booking_padding_20 booking_bg_f00 booking_mark_fff"> <p> <?php echo $bookingLangObj->getLabel("WELCOME_TEXT3"); ?> <br /> <?php echo $bookingLangObj->getLabel("WELCOME_TEXT4"); ?> <br /> <?php echo $bookingLangObj->getLabel("WELCOME_TEXT5"); ?> <strong><?php echo $bookingLangObj->getLabel("WELCOME_TEXT6"); ?> </strong><br /> <?php echo $bookingLangObj->getLabel("WELCOME_TEXT7"); ?> </p> </div> </div> <?php } }
public function getLabel($label) { global $wpdb; return wp_booking_calendar_lang::doLanguageQuery($label); }