function et_builder_get_failure_notification_modal() { $warnings = et_builder_get_warnings(); if (false === $warnings) { return ''; } $messages = ''; $i = 1; foreach ($warnings as $warning) { $messages .= sprintf('<p><strong>%1$s. </strong>%2$s</p>', esc_html($i), $warning); $i++; } $output = sprintf('<div class="et-core-modal-overlay et-builder-timeout et-core-active"> <div class="et-core-modal"> <div class="et-core-modal-header"> <h3 class="et-core-modal-title">%1$s</h3> <a href="#" class="et-core-modal-close" data-et-core-modal="close"></a> </div> <div class="et-core-modal-content"> <p><strong>%4$s</strong></p> %2$s </div> <div class="et_pb_prompt_buttons"> <br> <span class="spinner"></span> <a href="#" class="et-core-modal-action">%3$s</a> </div> </div> </div>', esc_html__('Divi Builder Timeout', 'et_builder'), $messages, esc_html__('Reload The Builder', 'et_builder'), esc_html__('Oops, it looks like the Divi Builder failed to load. Performing the following actions may help solve the problem.', 'et_builder')); return $output; }
function et_builder_get_failure_notification_modal() { $warnings = et_builder_get_warnings(); if (false === $warnings) { return ''; } $messages = ''; $i = 1; foreach ($warnings as $warning) { $messages .= sprintf('<p><strong>%1$s. </strong>%2$s</p>', esc_html($i), $warning); $i++; } $output = sprintf('<div class="et_pb_modal_overlay et_modal_on_top et_pb_failure_notification_modal et_pb_new_template_modal"> <div class="et_pb_prompt_modal"> <h2>%1$s</h2> <div class="et_pb_prompt_modal_inside"> <p><strong>Oops, it looks like the Divi Builder failed to load. Performing the following actions may help solve the problem.</strong></p> %2$s </div> <a href="#"" class="et_pb_prompt_dont_proceed et-pb-modal-close"></a> <div class="et_pb_prompt_buttons"> <br> <span class="spinner"></span> <a href="#" class="et_pb_reload_builder button-primary et_pb_prompt_proceed">%3$s</a> </div> </div> </div>', esc_html__('Divi Builder Timeout', 'et_builder'), $messages, esc_html__('Reload The Builder', 'et_builder')); return $output; }