| Server IP : 77.39.210.126 / Your IP : 216.73.216.203 Web Server : Apache System : Linux v00l0v-vmpcnews.sphostserver.com 4.18.0-553.124.4.el8_10.x86_64 #1 SMP Fri May 15 04:14:14 EDT 2026 x86_64 User : artecasarepresti ( 1022) PHP Version : 7.4.33 Disable Function : dl,passthru,proc_open,proc_close,proc_terminate,shell_exec,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/artecasarepresti/www/wp-content/themes/Avada/includes/lib/inc/importer/ |
Upload File : |
<?php
class WP_Importer_Logger_HTML extends WP_Importer_Logger {
/**
* Logs with an arbitrary level.
*
* @param mixed $level
* @param string $message
* @param array $context
* @return null
*/
public function log( $level, $message, array $context = array() ) {
switch ( $level ) {
case 'emergency':
case 'alert':
case 'critical':
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'Avada' ) . '</strong><br />';
echo esc_html( $message );
echo '</p>';
break;
case 'error':
case 'warning':
case 'notice':
case 'info':
echo '<p>' . esc_html( $message ) . '</p>';
break;
case 'debug':
if ( defined( 'IMPORT_DEBUG' ) && IMPORT_DEBUG ) {
echo '<p class="debug">' . esc_html( $message ) . '</p>';
}
break;
}
}
}